:root{
  --cream: #FFF6E8;
  --gold: #F2B93B;
  --gold-deep: #DB962A;
  --coral: #FF6B57;
  --crit: #E63946;
  --mint: #4FBFA0;
}
*{box-sizing:border-box;}
html,body{
  margin:0;padding:0;
  min-height:100%;
  background:radial-gradient(ellipse at 50% 25%, #3a2f4d 0%, #1c1626 55%, #0d0a13 100%);
  font-family:'Nanum Gothic', sans-serif;
  color:var(--cream);
  -webkit-user-select:none;
  user-select:none;
}
.rooms{
  position:relative;
  max-width:420px;
  min-height:100vh;
  margin:0 auto;
  padding:52px 18px 30px;
  display:flex;
  flex-direction:column;
}
.home-link{
  position:absolute;
  top:12px;
  left:14px;
  font-size:13px;
  font-weight:800;
  color:rgba(255,246,232,0.75);
  text-decoration:none;
  padding:6px 10px;
  border:1.5px solid rgba(255,246,232,0.25);
  border-radius:999px;
}
.page-title{
  font-family:'Black Han Sans', sans-serif;
  font-size:30px;
  text-align:center;
  margin:0 0 14px;
  background:linear-gradient(180deg, #FFE9AE 0%, var(--gold) 55%, var(--crit) 130%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.big-btn{
  display:block;
  text-align:center;
  text-decoration:none;
  padding:15px;
  border:0;
  border-radius:16px;
  font-family:'Black Han Sans', sans-serif;
  font-size:19px;
  cursor:pointer;
  margin-bottom:16px;
}
.big-btn.coral{
  color:#FFF1E4;
  background:linear-gradient(180deg, #FF8A70 0%, var(--crit) 100%);
  box-shadow:0 5px 0 #9E1F2A, 0 10px 18px rgba(0,0,0,0.35);
}
.big-btn:active{ transform:translateY(3px); box-shadow:none; }
.list-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.list-head span{
  font-size:14px;
  font-weight:800;
  color:var(--gold);
}
#refreshBtn{
  padding:7px 12px;
  border:1.5px solid rgba(255,246,232,0.25);
  border-radius:999px;
  background:transparent;
  color:rgba(255,246,232,0.75);
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.room-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.room-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border-radius:14px;
  background:rgba(255,255,255,0.06);
  border:1.5px solid rgba(242,185,59,0.35);
}
.room-info{ flex:1; min-width:0; }
.room-title{
  font-size:15px;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.room-meta{
  font-size:11px;
  color:rgba(255,246,232,0.6);
  font-weight:700;
}
.room-btn{
  flex:none;
  padding:9px 13px;
  border:0;
  border-radius:11px;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  background:var(--gold);
  color:#1c1626;
}
.room-btn.watch{
  background:rgba(255,255,255,0.14);
  color:var(--cream);
}
.empty{
  text-align:center;
  font-size:13px;
  color:rgba(255,246,232,0.55);
  line-height:1.7;
  margin:26px 0;
}
.hidden{ display:none !important; }
.join-box{
  margin-top:auto;
  display:flex;
  gap:8px;
}
#codeInput{
  flex:1;
  min-width:0;
  padding:12px;
  border-radius:14px;
  border:1.5px solid rgba(242,185,59,0.5);
  background:rgba(255,255,255,0.06);
  color:var(--cream);
  font-family:'Baloo 2', sans-serif;
  font-size:17px;
  font-weight:800;
  letter-spacing:4px;
  text-transform:uppercase;
  text-align:center;
  outline:none;
}
.join-play{
  padding:12px 16px;
  border:0;
  border-radius:14px;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  color:#1c1626;
  background:var(--gold);
}
