/* aSound styles.css – v1.8.64.ui_menu_scrollfix1
   - FIX: drawer is scrollable so Session buttons are reachable
*/

:root{
  --bg: #cfeecf;            /* matcher din mockup grøn */
  --topbar: rgba(40,45,42,.42);
  --card: rgba(255,255,255,.18);
  --card2: rgba(255,255,255,.12);
  --border: rgba(0,0,0,.10);
  --text: #000;
  --white: #fff;
  --shadow: 0 12px 40px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Topbar */
.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; gap:12px;
  padding:10px 12px;
  background: var(--topbar);
  backdrop-filter: blur(6px);
  z-index:40;
}
.iconbtn{
  border:0; background: rgba(0,0,0,.10);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
  color: var(--white);
}
.brand{display:flex; flex-direction:column}
.brandTitle{font-weight:800; font-size:22px; color: var(--white)}
.brandSub{opacity:.9; font-size:13px; color: var(--white)}
.topbarRight{margin-left:auto; display:flex; gap:10px; align-items:center}
.pill{
  padding:10px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.16);
  color: var(--white);
  font-weight:700;
}

/* Drawer */
.drawerOverlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.35);
  display:none;
  z-index:49;
}
.drawer{
  position:fixed; top:0; left:0;
  height:100%; width:340px;
  /* Allow scrolling inside the drawer so lower controls (Create/Join/etc.) stay reachable */
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;

  transform: translateX(-360px);
  transition: transform 180ms ease;
  background: rgba(20,24,22,.78);
  backdrop-filter: blur(8px);
  border-right: 1px solid rgba(255,255,255,.18);
  padding:12px;
  z-index:50;
  color: var(--white);
}
.drawer.open{ transform: translateX(0); }
.drawerOverlay.open{ display:block; }

.drawerHeader{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.drawerTitle{font-weight:900; font-size:18px; color: var(--white)}
.drawerSection{
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.12);
}
.drawerH2{font-weight:900; margin:0 0 10px 0; color: var(--white)}
.drawerLabel{display:block; margin:10px 0 6px 0; color: var(--white); font-weight:700}

.drawerDivider{
  height:1px;
  background: rgba(255,255,255,.12);
  margin: 12px 0;
}

.drawerCheck{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 8px 0 10px 0;
  font-weight:800;
}
.drawerCheck input{ width:auto; }

.drawer input, .drawer select, .drawer textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: var(--white);
  outline:none;
}
.drawer textarea{ resize: vertical; min-height: 92px; }
.drawer select option{ color:#000; } /* dropdown list læsbar */

.drawerDivider{
  height:1px;
  background: rgba(255,255,255,.12);
  margin: 12px 0;
}

.drawerCheck{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 6px 0 10px;
  font-weight:800;
}
.drawerCheck input{
  width:auto;
  margin-top: 4px;
}

/* Page */
.page{
  padding: 18px 16px 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.zone{margin-bottom:18px}
.group-title{
  font-weight:900;
  margin: 6px 0 10px;
}

/* Tiles */
.tileRow{
  display:flex; gap:12px; flex-wrap:wrap;
}
.tile-btn{
  width:70px; height:70px;
  border-radius: 18px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  overflow:hidden;
}
.tile-btn.active{ outline:3px solid rgba(50,100,255,.55); }
.tile-btn img{ width:54px; height:54px; object-fit:contain; display:block; }
.tile-btn .fallback{ font-weight:800; font-size:12px; }

/* Card */
.card{
  border:1px solid rgba(0,0,0,.10);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding:16px;
}
.cardTitle{font-weight:900; margin-bottom:10px}

/* Game top */
.gameTop{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.btnPlay{
  border:0;
  border-radius: 18px;
  padding:14px 18px;
  font-weight:900;
  cursor:pointer;
  background: #3a73ff;
  color:#fff;
  display:flex; align-items:center; gap:10px;
}
.playIcon{font-size:16px}

.hint{ margin-top:10px; font-weight:700; opacity:.85 }

/* Clip text box (for film category - licensing text only) */
.clipTextBox{
  margin-top:16px;
  padding:16px;
  border-radius:18px;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(0,0,0,.08);
  font-size:16px;
  font-weight:600;
  line-height:1.5;
  text-align:center;
}

/* Competitive buzzer */
.buzzerBox{
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.10);
}
.buzzerTitle{ font-weight:950; margin-bottom:8px; }
.buzzerRow{ display:flex; flex-wrap:wrap; gap:10px; }
.buzzerBtn{
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight:900;
  cursor:pointer;
}
.buzzerBtn:disabled{ opacity:.55; cursor:default; }
.buzzerBtn.active{ outline:3px solid rgba(50,100,255,.55); }
.buzzerBtn.attempted{ text-decoration: line-through; }
.buzzerInfo{ margin-top:10px; font-weight:800; opacity:.85; }

/* Pie countdown */
.pieWrap{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:86px}
.pie{
  --p: 0%;
  width:56px; height:56px;
  border-radius:50%;
  background: conic-gradient(rgba(0,0,0,.45) var(--p), rgba(0,0,0,.10) 0);
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,.10);
}
.pie span{font-weight:900}
.pieLabel{font-weight:800; font-size:13px}

/* Options */
.optionsBox{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.option-btn{
  text-align:left;
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.10);
  cursor:pointer;
  font-weight:800;
}
.option-btn strong{display:inline-block; width:28px}
.option-btn.disabled{opacity:.6; cursor:default}
.option-btn.correct{ background: rgba(10,140,70,.28); border-color: rgba(10,140,70,.55); }
.option-btn.incorrect{ background: rgba(190,40,40,.28); border-color: rgba(190,40,40,.55); }

/* Result inline (NO wide bar overlay!) */
.resultInline{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.10);
}
.resultTitle{font-weight:950; font-size:26px}
.resultInstr{margin-top:6px; font-weight:800}
.btn{
  width:100%;
  margin-top:10px;
  border-radius: 18px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-weight:900;
  cursor:pointer;
}
.btn.primary{ background:#3a73ff; border-color: rgba(58,115,255,.55); }
.btn.save{ background:#2f8bff; border-color: rgba(47,139,255,.70); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.btn.danger{ background:#d85a5a; border-color: rgba(216,90,90,.70); }


/* Participants (topbar) */
.participantsBar{
  display:flex;
  gap:8px;
  align-items:center;
  padding:6px 8px;
  border-radius: 16px;
  background: rgba(0,0,0,.16);
  min-height: 38px;
}
.participantsEmpty{
  color: rgba(255,255,255,.85);
  font-weight:900;
  padding: 0 6px;
}
.pChip{
  width:34px;
  height:34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  color: var(--white);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  user-select:none;
}
.pChip.me{
  outline: 2px solid rgba(58,115,255,.80);
}
.pChip.overflow{
  opacity:.95;
}

.participant-pill{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.22);
  white-space: nowrap;
  user-select: none;
}
.participant-pill.current{
  background: rgba(58,115,255,.40);
  border-color: rgba(58,115,255,.70);
  font-weight: 900;
}
.participant-pill.winner{
  background: rgba(76,175,80,.50);
  border-color: rgba(76,175,80,.80);
  font-weight: 900;
  box-shadow: 0 0 12px rgba(76,175,80,.40);
}

/* WebRTC Share Section */
#shareSection {
  margin-top: 1rem;
}

/* Session code in top bar - make it bold */
.brandSub strong {
  font-weight: 900;
  color: var(--white);
}
