@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&family=Nunito:wght@400;700;900&display=swap');

:root {
  --bg1: #0b3d2e; --bg2: #072519; --red: #d62839; --red2: #a4161a; --gold: #ffc857; --cream: #fff8e7;
  --green: #2a9d8f; --ink: #10231b; --card: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .15);
  --ok: #3ddc84; --bad: #ff5a5f;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg2); }
body {
  font-family: 'Nunito', system-ui, sans-serif; color: var(--cream);
  background: radial-gradient(ellipse at top, #145a41 0%, var(--bg1) 40%, var(--bg2) 100%) fixed;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, .xmas { font-family: 'Mountains of Christmas', cursive; letter-spacing: .5px; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* snow */
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }

/* Panicos avatar with santa hat */
.panicos { position: relative; display: inline-block; flex: none; width: 96px; height: 96px; }
.panicos img.face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.panicos .hat { position: absolute; width: 78%; left: -16%; top: -38%; transform: rotate(-22deg); filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.panicos.big { width: 180px; height: 180px; }
.brand .panicos.big { margin-top: 60px; }
.panicos.small { width: 54px; height: 54px; }
.panicos.small img.face { border-width: 3px; }

.bubble { position: relative; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 10px 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.bubble::before { content: ''; position: absolute; left: -10px; top: 18px; border: 10px solid transparent; border-right-color: var(--cream); border-left: 0; }
.host-says { display: flex; gap: 14px; align-items: center; margin: 14px 0; }

.brand { text-align: center; margin: 18px 0 8px; }
.brand h1 { font-size: 40px; margin: 10px 0 0; color: var(--gold); text-shadow: 0 3px 0 var(--red2); line-height: 1.05; }
.brand p { margin: 4px 0 0; opacity: .85; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 14px 0; backdrop-filter: blur(4px); }
label { display: block; font-weight: 700; margin: 10px 0 6px; font-size: 14px; opacity: .9; }
input[type=text], input[type=number], input[type=password], input:not([type]), textarea, select {
  width: 100%; padding: 14px; border-radius: 12px; border: 2px solid transparent; background: var(--cream); color: var(--ink); font-size: 18px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 20px;
  font-weight: 900; font-size: 18px; cursor: pointer; color: #fff; background: var(--red); box-shadow: 0 5px 0 var(--red2); transition: transform .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red2); }
.btn.block { width: 100%; margin-top: 14px; }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #c99a2e; }
.btn.green { background: var(--green); box-shadow: 0 5px 0 #1d6f65; }
.btn.ghost { background: transparent; border: 2px solid var(--line); box-shadow: none; color: var(--cream); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.err { color: #ffb4b4; font-weight: 700; min-height: 22px; margin-top: 8px; }
.muted { opacity: .7; }
.center { text-align: center; }

.team-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.25); font-weight: 900; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.team-choice { display: grid; gap: 10px; }
.team-choice button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: rgba(0,0,0,.2); color: var(--cream); font-weight: 700; font-size: 17px; cursor: pointer; }
.team-choice button.sel { border-color: var(--gold); background: rgba(255,200,87,.15); }
.team-choice .count { margin-left: auto; opacity: .7; font-size: 14px; }

/* question */
.qhead { display: flex; justify-content: space-between; align-items: center; font-weight: 700; opacity: .9; font-size: 14px; }
.qtext { font-size: 24px; font-weight: 900; line-height: 1.25; margin: 12px 0; }
.qimg { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: rgba(0,0,0,.25); margin: 6px 0 10px; }
.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border-radius: 14px; border: 3px solid transparent; font-size: 19px; font-weight: 900; color: #fff; cursor: pointer; text-align: left; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.opt .letter { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,0,0,.25); display: grid; place-items: center; flex: none; }
.opt.c0 { background: #c1121f; } .opt.c1 { background: #1d7a4f; } .opt.c2 { background: #d48c0f; } .opt.c3 { background: #2b59c3; } .opt.c4 { background: #7b2cbf; } .opt.c5 { background: #00838f; }
.opt.sel { border-color: #fff; outline: 4px solid var(--gold); }
.opt.right { outline: 5px solid var(--ok); }
.opt.dim { opacity: .35; }
.opt:disabled { cursor: default; }
.timer { height: 10px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 10px; }
.timer > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .25s linear; }
.timer-num { font-weight: 900; font-size: 18px; color: var(--gold); }
.team-answer { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,200,87,.12); border: 1px dashed var(--gold); }

.big-emoji { font-size: 72px; text-align: center; line-height: 1; margin: 8px 0; }
.result { text-align: center; padding: 22px; border-radius: 18px; }
.result.ok { background: linear-gradient(160deg, #1f8f55, #0f5c35); }
.result.bad { background: linear-gradient(160deg, #a4161a, #6a040f); }
.result h2 { font-size: 40px; margin: 4px 0; }

/* leaderboard */
.board { display: grid; gap: 8px; }
.board .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.25); font-weight: 900; font-size: 18px; }
.board .row.me { outline: 3px solid var(--gold); }
.board .rank { width: 34px; text-align: center; font-size: 20px; }
.board .name { flex: 1; }
.board .score { color: var(--gold); font-size: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.25); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.linkish { background: none; border: 0; color: var(--cream); opacity: .6; text-decoration: underline; cursor: pointer; font-size: 13px; }

@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.08) } 100% { transform: scale(1); opacity: 1 } }
.pop { animation: pop .45s ease-out both; }
@keyframes wobble { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
.wobble { animation: wobble 2.4s ease-in-out infinite; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.conn { position: fixed; top: 0; left: 0; right: 0; background: var(--red); text-align: center; padding: 6px; font-weight: 700; z-index: 70; font-size: 14px; }

/* ---------- phone polish (review pass) ---------- */
.wrap { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(40px, env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
button, .opt, .btn, a { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.bubble { text-align: left; }

/* sticky top bar: team, score, name, timer */
.topbar { position: sticky; top: 0; z-index: 20; margin: -12px -14px 10px; padding: max(10px, env(safe-area-inset-top)) 14px 8px; background: rgba(7, 37, 25, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .row1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar .team-pill { min-width: 0; flex: 1 1 auto; max-width: max-content; padding: 5px 10px; font-size: 15px; }
.topbar .team-pill .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .score { flex: none; font-weight: 900; color: var(--gold); background: rgba(255, 200, 87, .12); border-radius: 999px; padding: 5px 10px; font-size: 15px; }
.topbar .me { flex: 0 1 auto; margin-left: auto; opacity: .7; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30%; }
.topbar .tbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.topbar .tbar .timer { flex: 1; margin: 0; }
.topbar .timer-num { min-width: 38px; text-align: right; }
.timeup .timer-num { color: var(--bad); }
.timeup .options .opt, .timeup #send { opacity: .45; pointer-events: none; }

.qhead > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; margin-right: 8px; }
.qhead > span:last-child { flex: none; }
.qtext { font-size: clamp(19px, 5.4vw, 24px); }
.opt { font-size: clamp(16px, 4.6vw, 19px); min-height: 56px; }
.options.many { gap: 8px; }
.options.many .opt { padding: 11px 12px; min-height: 50px; font-size: clamp(15px, 4.2vw, 18px); }
.options.answered .opt:not(.sel) { opacity: .55; }
.opt .tick { margin-left: auto; font-size: 22px; }
.qimg { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 16px; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.zoom .x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; font-size: 30px; color: #fff; background: none; border: 0; }

.panicos.mid { width: 120px; height: 120px; }
.brand .panicos.mid { margin-top: 44px; }
.round-photo { display: block; margin: 0 auto; width: auto; max-width: 100%; height: clamp(130px, 26vh, 220px); object-fit: contain; border-radius: 16px; border: 3px solid var(--gold); }
.round-title { font-size: clamp(28px, 9vw, 40px); color: var(--gold); margin: 6px 0; line-height: 1.1; }
.bauble { display: flex; gap: 12px; align-items: center; text-align: left; }
.bauble .big-emoji { font-size: 44px; margin: 0; }
.others { display: grid; gap: 6px; margin-top: 8px; }
.others div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 15px; }
.others .ans { margin-left: auto; opacity: .85; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .name { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  #snow, #confetti { display: none; }
  .pop, .wobble { animation: none; }
}

/* ---------- Panicos animations ---------- */
.panicos.anim { animation: enter .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.panicos .body { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 90%; }
.panicos .hat { transform-origin: 70% 90%; animation: hat 2.6s ease-in-out infinite; }
.panicos .fx { position: absolute; right: -14%; top: -6%; font-size: 42%; line-height: 1; pointer-events: none; }
.panicos.small .fx { font-size: 22px; right: -12px; top: -8px; }
.panicos.mid .fx { font-size: 34px; }
.panicos.big .fx { font-size: 52px; }

@keyframes enter { 0% { transform: translateY(30px) scale(.5); opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes hat { 0%, 100% { transform: rotate(-22deg) } 50% { transform: rotate(-12deg) } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6%) } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0) } 10%, 30% { transform: rotate(18deg) } 20%, 40% { transform: rotate(-10deg) } }
@keyframes ponder { 0%, 100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) translateY(-3%) } }
@keyframes float { 0% { transform: translateY(6px) scale(.8); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(-14px) scale(1.1); opacity: 0 } }
@keyframes search { 0% { transform: translate(0, 0) } 25% { transform: translate(-60%, 30%) } 50% { transform: translate(-120%, 0) } 75% { transform: translate(-60%, -30%) } 100% { transform: translate(0, 0) } }
@keyframes jump { 0%, 100% { transform: translateY(0) scale(1) } 30% { transform: translateY(-22%) scale(1.06, .96) } 50% { transform: translateY(0) scale(1.08, .92) } 65% { transform: translateY(-8%) } }
@keyframes sparkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4 } 50% { transform: scale(1.3) rotate(25deg); opacity: 1 } }
@keyframes shake { 0%, 100% { transform: rotate(0) } 15%, 45%, 75% { transform: rotate(-10deg) } 30%, 60%, 90% { transform: rotate(10deg) } }
@keyframes dance { 0%, 100% { transform: rotate(-8deg) translateY(0) } 25% { transform: rotate(0) translateY(-12%) } 50% { transform: rotate(8deg) translateY(0) } 75% { transform: rotate(0) translateY(-12%) } }
@keyframes proud { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) rotate(-3deg) } }

.anim-lobby .body { animation: bob 2.4s ease-in-out infinite; }
.anim-lobby .fx { animation: wave 2s ease-in-out infinite; transform-origin: 70% 80%; }
.anim-question .body { animation: ponder 3s ease-in-out infinite; }
.anim-question .fx { animation: float 2.2s ease-out infinite; }
.anim-locked .body { animation: ponder 2s ease-in-out infinite; }
.anim-locked .fx { animation: search 2.4s ease-in-out infinite; }
.anim-right .body { animation: jump 1.1s ease-out 2 .3s; }
.anim-right .fx { animation: sparkle .9s ease-in-out infinite; }
.anim-wrong .body { animation: shake .9s ease-in-out .3s 2; }
.anim-wrong .fx { animation: sparkle 1.6s ease-in-out infinite; }
.anim-board .body { animation: proud 2.6s ease-in-out infinite; }
.anim-board .fx { animation: sparkle 2s ease-in-out infinite; }
.anim-finished .body { animation: dance 1s ease-in-out infinite; }
.anim-finished .fx { animation: sparkle .8s ease-in-out infinite; }

/* talking bubble: typing dots, then the line */
.bubble.talk { animation: bubble-in .35s ease-out .25s both; transform-origin: 0 50%; }
.bubble.talk { position: relative; }
.bubble.talk .dots { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 4px; animation: fade .2s ease-in 1.1s reverse both; }
.bubble.talk .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .4; animation: blink 1s infinite; }
.bubble.talk .dots i:nth-child(2) { animation-delay: .15s; } .bubble.talk .dots i:nth-child(3) { animation-delay: .3s; }
.bubble.talk .say { animation: fade .4s ease-out 1.1s both; }
@keyframes bubble-in { from { transform: scale(.3); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes blink { 0%, 100% { opacity: .25; transform: translateY(0) } 50% { opacity: .9; transform: translateY(-3px) } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .panicos.anim, .panicos .body, .panicos .hat, .panicos .fx, .bubble.talk, .bubble.talk .dots i { animation: none !important; }
  .bubble.talk .dots { display: none; } .bubble.talk .say { opacity: 1; animation: none !important; }
}

/* TV: Panicos watching from the bottom-right corner during questions */
.tv-corner { position: fixed; right: 3vh; bottom: 5vh; z-index: 4; pointer-events: none; }
.tv-corner .panicos { width: 16vh; height: 16vh; }
.tv-corner .panicos .fx { font-size: 6vh; }
body.has-corner .bars, body.has-corner .count, body.has-corner .results { margin-right: 20vh; }

/* ---------- question extras: pictures, sound, closest number, put in order, team vote ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.thumbs .thumb { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; margin: 0; }
.thumbwrap { position: relative; display: inline-block; }
.thumbwrap .iconbtn { position: absolute; top: 2px; right: 2px; padding: 2px 6px; }
label.upload { display: inline-block; cursor: pointer; margin: 4px 0 8px; }
audio { max-width: 100%; }
.qtype { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(255,200,87,.18); color: var(--gold); font-weight: 900; font-size: 14px; }
.listen { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(42,157,143,.25); font-weight: 900; text-align: center; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }
.qimgs { display: grid; gap: 6px; margin: 6px 0 10px; }
.qimgs.n2, .qimgs.n4 { grid-template-columns: 1fr 1fr; }
.qimgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.qimgs .qimg { margin: 0; }
.qimgs.n2 .qimg, .qimgs.n3 .qimg, .qimgs.n4 .qimg { height: 130px; max-height: none; object-fit: cover; }
.opt .voters { display: block; font-size: 13px; font-weight: 700; opacity: .9; margin-top: 3px; }
.opt .lead { margin-left: auto; font-size: 12px; background: var(--gold); color: #3a2500; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.opt .tick + .lead { margin-left: 6px; }
.order .slots { display: grid; gap: 6px; margin-bottom: 10px; }
.order .slot { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px dashed rgba(255,255,255,.3); background: rgba(0,0,0,.18); color: inherit; font: inherit; font-weight: 800; text-align: left; width: 100%; }
.order .slot.filled { border: 2px solid var(--gold); background: rgba(255,200,87,.14); cursor: pointer; }
.order .slot .n { width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,.3); display: grid; place-items: center; flex: none; }
.order .slot .x { margin-left: auto; opacity: .6; }
.order .pool { display: grid; gap: 8px; }
.order .pool .opt { padding: 12px 14px; min-height: 48px; }
.order #osend:disabled { opacity: .45; }
.timeup .order .pool, .timeup #osend, .timeup .order .slot { opacity: .45; pointer-events: none; }
/* big screen */
.sorder { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh; }
.sorder .opt { font-size: 4vh; padding: 2.4vh; cursor: default; }
.sanswer { font-size: 4.6vh; font-weight: 900; color: var(--ok); margin: 1vh 0; padding-left: 6vh; }
.imgqs { display: flex; justify-content: center; gap: 2vh; flex-wrap: wrap; }
.imgqs .imgq { max-height: 38vh; max-width: 44vw; }
.imgqs.many .imgq { height: 28vh; width: 20vw; max-width: none; object-fit: cover; }
.listen-tv { font-size: 4vh; font-weight: 900; color: var(--gold); animation: pulse 1.6s ease-in-out infinite; margin: 0; }
.soundbtn { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 90; font-size: 4vh; padding: 3vh 5vh; }

/* ---------- letter hints and name-each-picture (e.g. maps) ---------- */
.hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 10px; }
.hint .hw { display: inline-flex; gap: 3px; }
.hint .hb { width: 22px; height: 28px; border-bottom: 3px solid var(--gold); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.hint .hb.on { color: var(--gold); }
.parts { display: grid; gap: 12px; margin-bottom: 12px; }
.part { position: relative; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.2); }
.part .pnum, .spart .pnum { position: absolute; top: 6px; left: 6px; z-index: 1; width: 30px; height: 30px; border-radius: 10px; background: var(--gold); color: #3a2500; display: grid; place-items: center; font-weight: 900; }
.part .pimg { margin: 0 0 4px; max-height: 200px; }
.part .pinp { margin: 0; }
.parts.rev .part .pimg { max-height: 120px; }
.timeup .parts .pinp, .timeup #psend { opacity: .45; pointer-events: none; }
/* big screen */
.sparts { display: grid; gap: 1.6vh; grid-template-columns: repeat(3, 1fr); }
.sparts.n1 { grid-template-columns: 1fr; } .sparts.n2, .sparts.n4 { grid-template-columns: repeat(2, 1fr); }
.sparts.n5, .sparts.n6 { grid-template-columns: repeat(3, 1fr); }
.sparts:not(.n1):not(.n2):not(.n3):not(.n4):not(.n5):not(.n6) { grid-template-columns: repeat(4, 1fr); }
.spart { position: relative; background: rgba(0,0,0,.22); border-radius: 1.6vh; padding: 1vh; text-align: center; }
.spart img { width: 100%; height: 18vh; object-fit: contain; border-radius: 1vh; }
.sparts.n1 .spart img, .sparts.n2 .spart img { height: 34vh; }
.spart .pnum { width: 4.4vh; height: 4.4vh; font-size: 2.8vh; border-radius: 1.2vh; }
.spart .hint { margin: .6vh 0 0; gap: .6vh 1.6vh; }
.spart .hint .hb { width: 2.6vh; height: 3.6vh; font-size: 2.6vh; }
.spart .pname { font-size: 3.4vh; font-weight: 900; color: var(--ok); margin-top: .6vh; }
.stage > .center > .hint .hb { width: 5vh; height: 7vh; font-size: 5vh; border-bottom-width: .6vh; }
/* host console */
.pmarks { display: grid; gap: 4px; }
.pmarks .tog { padding: 2px 8px; }
.partrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px; margin: 8px 0; border-radius: 12px; background: rgba(0,0,0,.18); }
.pthumbcell { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; }
.pthumbcell .thumb { width: 110px; height: 80px; object-fit: contain; margin: 0; background: rgba(0,0,0,.3); }
.hintrow { display: flex; gap: 8px; align-items: center; }
.hintrow input { flex: 1; }
.pthumb { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.pthumb .thumb { width: 100px; height: 70px; object-fit: contain; margin: 0; background: rgba(0,0,0,.3); }

/* ---------- every question style ---------- */
.qtype { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(255,200,87,.16); color: var(--gold); font-weight: 800; font-size: 14px; }
.opt .optimg { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: rgba(0,0,0,.25); }
.options.withimg .opt { padding: 10px 12px; }
/* slow picture reveal: blurry and zoomed in, sharpening over the timer */
@keyframes unblur { from { filter: blur(22px); transform: scale(2.2); } to { filter: blur(0); transform: scale(1); } }
.qimg.slow, .imgq.slow { animation: unblur 30s linear both; }
.qimgs, .imgqs { overflow: hidden; }
/* match pairs */
.pairs { display: grid; gap: 8px; margin-bottom: 12px; }
.pairrow { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.2); }
.pairrow .pl { font-weight: 800; }
.pairrow .pl .qimg { max-height: 90px; margin: 0 0 4px; }
.pairrow select { margin: 0; min-height: 44px; font-size: 16px; }
.pairrow .arrow { opacity: .6; }
/* sort into groups */
.sorts { display: grid; gap: 8px; margin-bottom: 12px; }
.sortrow { padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.2); }
.gbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gbtn { flex: 1 1 0; min-height: 40px; border-radius: 10px; border: 2px solid rgba(255,255,255,.25); background: rgba(0,0,0,.2); color: var(--cream); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.gbtn.on { color: #fff; border-color: #fff; }
.gbtn.on.c0 { background: #c1121f; } .gbtn.on.c1 { background: #1d7a4f; } .gbtn.on.c2 { background: #d48c0f; } .gbtn.on.c3 { background: #2b59c3; }
.timeup .sorts, .timeup .pairs, .timeup #xsend, .timeup #msend, .timeup #pinsend, .timeup #ssend, .timeup .slider { opacity: .45; pointer-events: none; }
/* pin on a picture */
.pinboard { position: relative; line-height: 0; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); }
.pinboard img { width: 100%; display: block; cursor: crosshair; -webkit-user-drag: none; }
.pinboard .pin { position: absolute; transform: translate(-50%, -100%); font-size: 30px; line-height: 1; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.pinboard .pin i { position: absolute; left: 50%; top: -4px; transform: translate(-50%, -100%); font: 800 12px/1.2 Nunito, sans-serif; font-style: normal; white-space: nowrap; background: var(--c); color: #fff; padding: 2px 6px; border-radius: 6px; }
.pinboard .pin.mate { opacity: .5; font-size: 22px; }
.pinboard .pin.other { opacity: .85; }
.pinboard .pin.team::after, .pinboard .pin.other::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); border: 2px solid #fff; }
.pinboard .ptarget { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--ok); background: rgba(61,220,132,.22); box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
/* slider */
.slider { padding: 10px 4px; }
.slider .sval { text-align: center; font-size: 34px; font-weight: 900; color: var(--gold); }
.slider input[type=range] { width: 100%; height: 44px; accent-color: var(--gold); }
.slider .sends { display: flex; justify-content: space-between; opacity: .7; font-weight: 700; }
/* buzzer */
.buzz { display: block; width: min(70vw, 260px); aspect-ratio: 1; margin: 18px auto 10px; border-radius: 50%; border: 8px solid #fff; background: radial-gradient(circle at 35% 30%, #ff6b6b, var(--red) 55%, var(--red2)); color: #fff; font: 900 44px Nunito, sans-serif; letter-spacing: 1px; box-shadow: 0 10px 0 #6a040f, 0 14px 30px rgba(0,0,0,.5); cursor: pointer; }
.buzz:active { transform: translateY(8px); box-shadow: 0 2px 0 #6a040f; }
.buzz:disabled { opacity: .6; }
.buzzed { text-align: center; padding: 16px; border-radius: 16px; background: rgba(255,200,87,.14); border: 2px solid var(--gold); }
.buzzed h2 { margin: 4px 0; font-size: 30px; }
/* bets */
.wager { display: grid; gap: 6px; }
.wager input[type=range] { width: 100%; height: 40px; accent-color: var(--gold); }
.neg { color: var(--bad); }
/* polls and word clouds */
.pollbars { display: grid; gap: 8px; margin-top: 10px; }
.pb { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-weight: 800; }
.pb .bar { height: 22px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.pb .bar > div { height: 100%; background: var(--green); border-radius: 8px; transition: width .5s; }
.pb.top .bar > div { background: var(--gold); }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 12px 0; font-weight: 900; line-height: 1.15; }
.cloud .w { animation: pop .45s ease-out both; }
.cloud .w sup { font-size: .45em; opacity: .7; margin-left: 2px; }
.cloud .c0 { color: #ff8fa3; } .cloud .c1 { color: #7ee2a8; } .cloud .c2 { color: var(--gold); } .cloud .c3 { color: #8fb8ff; } .cloud .c4 { color: #d0a6ff; } .cloud .c5 { color: #6ee7f0; }
/* big screen */
.tvtype { font-size: 3vh; font-weight: 900; color: var(--gold); margin: .6vh 0 0; }
.sopts.withimg .opt .optimg { width: 14vh; height: 14vh; }
.smatch { display: grid; gap: 1.2vh; font-size: 3.4vh; }
.smatch.cols { grid-template-columns: 1fr 1fr; gap: 4vw; }
.smatch .mrow { display: flex; align-items: center; gap: 1.6vh; padding: 1.2vh 2vh; border-radius: 1.4vh; background: rgba(0,0,0,.25); margin-bottom: 1.2vh; }
.smatch .mrow img { height: 9vh; border-radius: 1vh; }
.smatch .ok { color: var(--ok); }
.sgroups { display: flex; gap: 2vh; justify-content: center; margin-bottom: 2vh; }
.sgroup { flex: 1; padding: 2vh; border-radius: 2vh; font-size: 3.2vh; font-weight: 800; color: #fff; }
.sgroup h3 { margin: 0 0 1vh; font-size: 4vh; }
.sgroup.c0 { background: #c1121f; } .sgroup.c1 { background: #1d7a4f; } .sgroup.c2 { background: #d48c0f; } .sgroup.c3 { background: #2b59c3; }
.sgroup.heads { flex: none; background: none; display: flex; gap: 2vh; }
.sgroup.heads .chip { font-size: 3.4vh; color: #fff; } .chip.c0 { background: #c1121f; } .chip.c1 { background: #1d7a4f; } .chip.c2 { background: #d48c0f; } .chip.c3 { background: #2b59c3; }
.tvpin { display: flex; justify-content: center; }
.tvpin .pinboard { height: 56vh; width: auto; display: inline-block; }
.tvpin .pinboard img { height: 56vh; width: auto; }
.tvpin .pin { font-size: 5vh; } .tvpin .pin i { font-size: 2.2vh; }
.buzzlist { list-style: none; padding: 0; margin: 2vh auto; max-width: 70vw; display: grid; gap: 1.4vh; font-size: 4.4vh; font-weight: 900; }
.buzzlist li { display: flex; align-items: center; gap: 2vh; padding: 1.6vh 3vh; border-radius: 2vh; background: rgba(0,0,0,.25); }
.buzzlist li.first { background: var(--gold); color: #3a2500; font-size: 6vh; }
.buzzlist small { opacity: .7; font-size: .6em; }
.buzzwait { font-size: 6vh; font-weight: 900; animation: pulse 1.6s ease-in-out infinite; }
.vslot { display: flex; justify-content: center; margin: 1vh 0; }
.tvvideo { max-height: 58vh; max-width: 90vw; border-radius: 2vh; background: #000; box-shadow: 0 1vh 4vh rgba(0,0,0,.5); }
.revimg { max-height: 34vh; max-width: 70vw; border-radius: 2vh; border: .5vh solid var(--gold); margin: 1vh 0; }
.pollbars.tv { font-size: 3.6vh; max-width: 80vw; margin: 2vh auto; gap: 1.6vh; }
.pollbars.tv .bar { height: 5vh; border-radius: 1.4vh; }
.stage .cloud, #app > .cloud { font-size: 5vh; gap: 1vh 4vh; }
/* host console */
.addsel { width: auto; min-width: 230px; margin: 0; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; }
label.check input { width: auto; margin: 0; }
.thumb.small { width: 44px; height: 44px; object-fit: cover; margin: 0; }
.geditor { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gcol textarea { margin-top: 6px; }
.pinedit, .hostpin { max-width: 520px; }
.opt.nc { background: rgba(0,0,0,.32); border-color: rgba(255,255,255,.25); }
.pmarks > span { white-space: nowrap; }

/* ---------- photo gallery ---------- */
.topbar .photos { flex: none; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: var(--cream); background: rgba(0,0,0,.25); border-radius: 999px; padding: 5px 9px; font-size: 15px; }
.topbar .photos b { font-size: 12px; color: var(--gold); }
.gal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gph { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: rgba(0,0,0,.3); cursor: pointer; }
.gph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gph span { position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 99px; }
.zoom img { max-height: calc(100% - 70px); }
.lbbar { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 10px; color: #fff; font-weight: 800; flex-wrap: wrap; }
.tvgal { position: relative; height: 92vh; display: grid; place-items: center; }
.tvgal #galimg { max-width: 92vw; max-height: 84vh; border-radius: 2vh; border: .6vh solid var(--gold); box-shadow: 0 2vh 6vh rgba(0,0,0,.6); transition: opacity .35s; }
.galcap { position: absolute; bottom: 0; left: 0; font-size: 3vh; font-weight: 800; }
.galjoin { position: absolute; right: 0; bottom: 0; display: flex; gap: 1.6vh; align-items: center; background: rgba(0,0,0,.45); padding: 1.4vh; border-radius: 2vh; font-size: 2.4vh; }
.galjoin .qr { width: 14vh; height: 14vh; }
.galjoin p { margin: 0; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- teams: captain, crew sheet, votes, news ---- */
button.team-pill { border: 0; color: var(--cream); font: inherit; font-weight: 900; cursor: pointer; position: relative; }
.team-pill .badge { background: var(--red); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 13px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.btn.red { background: var(--red); color: #fff; }
.card.alert { border: 2px solid var(--gold); animation: pop .35s ease-out; }
.card.alert.mutiny { border-color: var(--red); background: linear-gradient(135deg, rgba(214,40,57,.25), rgba(0,0,0,.25)); }
.row2 { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 8px 0; flex-wrap: wrap; }
.row2 input { flex: 1; margin: 0; min-width: 0; }
.vbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); margin: 8px 0 4px; }
.vbar i { display: block; height: 100%; transition: width .3s; }
.vbar .y { background: #3ccf6e; } .vbar .n { background: var(--red); }
.cd { font-weight: 900; color: var(--gold); }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; overflow-y: auto; padding: 16px 12px 40px; }
.sheet-in { max-width: 520px; margin: 0 auto; background: var(--bg1); border-radius: 18px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: pop .3s ease-out; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { margin: 0; flex: 1; color: var(--gold); font-size: 24px; }
.sheet-head .x { background: rgba(0,0,0,.3); border: 0; color: var(--cream); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.crew { display: grid; gap: 6px; margin: 10px 0; }
.crew .mem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.2); flex-wrap: wrap; }
.crew .mem.cap { background: rgba(255,200,87,.15); }
.crew .nm { flex: 1; font-weight: 700; }
.crew .on { width: 10px; height: 10px; border-radius: 50%; background: #777; flex: none; }
.crew .on.y { background: #3ccf6e; box-shadow: 0 0 6px #3ccf6e; }
.team-choice button:disabled { opacity: .45; }
/* TV news banner */
.newsflash { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 50; max-width: 80vw; padding: 18px 30px; border-radius: 18px; font-size: clamp(20px, 2.4vw, 38px); font-weight: 900; text-align: center;
  background: var(--cream); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.6); animation: newsIn .5s cubic-bezier(.2,1.6,.4,1); }
.newsflash.bad { background: var(--red); color: #fff; } .newsflash.mutiny { background: #1b1b1b; color: var(--gold); border: 3px solid var(--gold); } .newsflash.good { background: var(--gold); }
.newsflash.out { opacity: 0; transition: opacity .5s; }
@keyframes newsIn { from { transform: translate(-50%, -140%); } }
select.mini { width: auto; padding: 2px 6px; font-size: 12px; margin: 0; border-radius: 8px; }
.newsline { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.chips .chip small { white-space: nowrap; }
/* selfies */
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); display: inline-grid; place-items: center; vertical-align: middle; }
.av.ini { background: var(--red2); color: #fff; font-weight: 900; font-size: 15px; }
.av.sm { width: 26px; height: 26px; font-size: 12px; border-width: 1.5px; }
.av.big { width: 96px; height: 96px; border-width: 3px; }
.topbar .me { display: inline-flex; align-items: center; gap: 6px; }
.faces { display: inline-flex; margin-left: 8px; }
.faces .av { width: 4.4vh; height: 4.4vh; margin-left: -1vh; font-size: 2vh; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.faces .av:first-child { margin-left: 0; }
.selfie-frame { display: grid; place-items: center; width: 220px; height: 220px; margin: 4px auto 18px; border-radius: 50%; border: 5px dashed var(--gold); background: rgba(0,0,0,.25); overflow: hidden; cursor: pointer; font-size: 90px; }
.selfie-frame img { width: 100%; height: 100%; object-fit: cover; }
.selfie-frame:has(img) { border-style: solid; animation: pop .4s ease-out; }
.avbtn { background: none; border: 0; padding: 0; cursor: pointer; }
.av.ini::before { content: attr(data-i); }
.chip .faces { flex-wrap: nowrap; }
/* spice */
.secretbtn { background: rgba(0,0,0,.25); border: 0; border-radius: 999px; padding: 4px 8px; font-size: 18px; cursor: pointer; flex: none; }
.sheet.secret .sheet-in { background: #111; border: 3px solid var(--gold); }
.card.grinch { border: 2px solid #3ccf6e; background: linear-gradient(135deg, rgba(60,207,110,.2), rgba(0,0,0,.2)); }
.suspects { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.suspect { background: rgba(0,0,0,.25); border: 2px solid transparent; border-radius: 14px; padding: 10px 4px; color: var(--cream); font: inherit; font-weight: 700; display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.suspect .av.big { width: 64px; height: 64px; }
.suspect.sel { border-color: var(--red); background: rgba(214,40,57,.25); }
.suspect.sel::after { content: '👉 accused'; font-size: 12px; color: #fff; }
.spotlight { margin: auto; text-align: center; }
.spotlight .kicker { font-size: 4vh; margin: 0; color: var(--gold); }
.spot-face { width: 36vh; height: 36vh; margin: 2vh auto; border-radius: 50%; border: 1vh solid; overflow: hidden; box-shadow: 0 0 8vh rgba(255,200,87,.5); animation: spin-in .8s ease-out; }
.spot-face .av { width: 100%; height: 100%; border: 0; font-size: 18vh; }
.spotlight h1 { font-size: 9vh; margin: 0; color: var(--gold); }
.spotlight .team { font-size: 4vh; margin: .5vh 0; }
.spot-cd { font-size: 10vh; font-weight: 900; }
.spot-cd.over { color: var(--red); animation: pulse .6s infinite; }
@keyframes spin-in { from { transform: rotate(-200deg) scale(.2); opacity: 0; } }
.traitors { display: flex; flex-wrap: wrap; gap: 4vh; justify-content: center; }
.traitor { display: grid; justify-items: center; gap: 1vh; font-size: 3.4vh; position: relative; animation-fill-mode: both; }
.traitor .av { width: 26vh; height: 26vh; border-width: .8vh; font-size: 12vh; }
.stamp { position: absolute; top: 9vh; transform: rotate(-14deg); padding: 1vh 2vh; border: .6vh solid; border-radius: 1vh; font-weight: 900; font-size: 4vh; background: rgba(0,0,0,.55); }
.stamp.caught { color: #3ccf6e; } .stamp.escaped { color: var(--red); }
.newsflash.low { top: auto; bottom: 24px; } .traitors { margin-top: 6vh; }
.seg { display: flex; background: rgba(0,0,0,.3); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; color: var(--cream); font: inherit; font-weight: 800; padding: 9px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--gold); color: var(--ink); }
.secret-note { background: #111; color: var(--gold); border-radius: 10px; padding: 6px 10px; margin: 6px 0; font-weight: 700; font-size: 14px; }
.fee-note { background: rgba(255,200,87,.12); border: 1px dashed var(--gold); border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 14px; }

/* TV: sound needs one click */
.sndhint { position: fixed; left: 2vh; bottom: 2vh; z-index: 60; font-size: 2.2vh; padding: 1.2vh 2.4vh; opacity: .9; }
/* phone: sound on/off */
.sndbtn { background: none; border: 0; font-size: 20px; padding: 0 4px; cursor: pointer; line-height: 1; }

/* Panicos' messages */
.msg-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 8px; max-height: 260px; overflow: auto; }
.msg-players label { display: flex; gap: 6px; align-items: center; font-size: 14px; margin: 3px 0; }
.msg-players input { width: auto; }
.msg-sent { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.pmsg-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pmsg { background: var(--cream, #fff8e7); color: #1d2a24; border-radius: 22px; padding: 22px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 4px solid var(--gold); }
.pmsg .who { font-weight: 900; color: #0b3d2e; margin: 8px 0 4px; }
.pmsg .tag { display: inline-block; font-size: 13px; font-weight: 800; background: #ffe3e3; color: #8a1f1f; border-radius: 10px; padding: 2px 10px; }
.pmsg .txt { font-size: 22px; font-weight: 800; margin: 10px 0 16px; white-space: pre-wrap; }
.tvmsg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; display: flex; gap: 3vh; align-items: center; background: var(--cream, #fff8e7); color: #1d2a24; border: .8vh solid var(--gold); border-radius: 4vh; padding: 3vh 5vh; max-width: 80vw; box-shadow: 0 2vh 8vh rgba(0,0,0,.6); animation: tvmsgIn .5s cubic-bezier(.2,1.6,.5,1); }
.tvmsg img { width: 16vh; height: 16vh; border-radius: 50%; object-fit: cover; border: .6vh solid var(--gold); flex: none; }
.tvmsg .who { font-family: 'Mountains of Christmas', cursive; color: #e63946; font-size: 5vh; line-height: 1; }
.tvmsg .txt { font-size: 5.5vh; font-weight: 900; line-height: 1.15; margin-top: 1vh; }
.tvmsg.out { opacity: 0; transition: opacity .5s; }
@keyframes tvmsgIn { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.pmsg .av { width: 84px; height: 84px; font-size: 34px; margin: 0 auto; }

/* ---------- TV lobby show ---------- */
.lshow { display: flex; flex-direction: column; height: 100%; }
.lshow .ltitle { font-size: 7.5vh; text-align: center; }
.lgrid { flex: 1; display: grid; grid-template-columns: 22vw 1fr 30vw; gap: 2.5vw; align-items: center; min-height: 0; }
.lleft .qr { background: #fff; padding: 1.4vh; border-radius: 2vh; width: 28vh; height: 28vh; }
.lcode { font-size: 11vh; font-weight: 900; color: var(--gold); margin: 0; line-height: 1; }
.lmid { display: flex; flex-direction: column; gap: 1.6vh; align-items: stretch; min-width: 0; }
.lchips { justify-content: center; }
.lmid .host-says { margin-top: 0; justify-content: center; }
.lmid .panicos.big { width: 14vh !important; height: 14vh !important; }
.lmid .sbubble { font-size: 2.4vh; }
.lstage { min-height: 50vh; display: flex; align-items: center; justify-content: center; }
.lteam { width: 100%; background: rgba(0,0,0,.28); border: .5vh solid var(--tc, var(--gold)); border-radius: 3vh; padding: 2.4vh 2.4vw; text-align: center; animation: ltIn .6s cubic-bezier(.2,1.5,.5,1); box-shadow: 0 0 6vh color-mix(in srgb, var(--tc, #ffc857) 35%, transparent); }
.lteam.empty { border-style: dashed; }
@keyframes ltIn { from { transform: translateX(40vw) rotate(6deg); opacity: 0; } }
.lt-name { font-family: 'Mountains of Christmas', cursive; font-size: 6vh; color: var(--gold); line-height: 1.1; display: flex; gap: 1.5vh; align-items: center; justify-content: center; }
.lt-name .dot { width: 3vh; height: 3vh; }
.lt-name small { font-family: Nunito, sans-serif; font-size: 2.4vh; color: var(--cream, #fff8e7); opacity: .8; }
.lt-faces { display: flex; flex-wrap: wrap; gap: 2vh 2.4vw; justify-content: center; margin: 2.4vh 0 1vh; }
.lt-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6vh; font-size: 2.6vh; animation: ltPop .5s cubic-bezier(.2,1.8,.5,1) both; }
.lt-p .av { width: 13vh; height: 13vh; font-size: 6vh; border: .5vh solid rgba(255,255,255,.7); }
.lt-p.cap .av { width: 16vh; height: 16vh; border-color: var(--gold); box-shadow: 0 0 3vh rgba(255,200,87,.7); }
@keyframes ltPop { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
.lt-crown { position: absolute; top: -5vh; font-size: 6vh; z-index: 2; animation: ltCrown .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes ltCrown { from { transform: translateY(-30vh) rotate(-40deg); opacity: 0; } }
.lt-joke { display: flex; align-items: center; gap: 1.6vh; justify-content: center; margin-top: 1.6vh; animation: ltJoke .5s ease both; }
.lt-joke .panicos { width: 9vh; height: 9vh; flex: none; }
.lt-joke .lt-say { background: var(--cream, #fff8e7); color: #1d2a24; font-weight: 800; font-size: 2.7vh; padding: 1.4vh 2.2vh; border-radius: 2.4vh; text-align: left; }
@keyframes ltJoke { from { transform: scale(.6); opacity: 0; } }
.lright { display: flex; flex-direction: column; align-items: center; gap: 1.2vh; height: 100%; justify-content: center; min-height: 0; }
.lright .full.lmem { height: 62vh; width: 28vw; }
.lchat-h { font-weight: 900; font-size: 2.8vh; align-self: flex-start; }
.lchat-h .muted { font-size: 2vh; font-weight: 600; }
.lchat { display: flex; flex-direction: column; gap: 1.4vh; width: 100%; overflow: hidden; max-height: 64vh; }
.lshout { display: flex; gap: 1.4vh; align-items: flex-start; animation: shoutIn .55s cubic-bezier(.2,1.6,.5,1); }
.lshout .av { width: 8vh; height: 8vh; font-size: 3.6vh; flex: none; border: .4vh solid var(--gold); }
.lsb { position: relative; background: var(--cream, #fff8e7); color: #1d2a24; border-radius: 2.2vh; padding: 1.1vh 1.8vh; font-size: 2.5vh; font-weight: 700; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.lsb::before { content: ''; position: absolute; left: -1.4vh; top: 2.4vh; border: .8vh solid transparent; border-right: 1.2vh solid var(--cream, #fff8e7); }
.lsb small { color: #5b6e66; font-size: 1.8vh; }
@keyframes shoutIn { from { transform: translateX(30vw) scale(.7); opacity: 0; } }
.lticker { overflow: hidden; white-space: nowrap; background: rgba(0,0,0,.4); border-top: .4vh solid var(--gold); margin: 1vh -4vw -3vh; padding: 1.2vh 0 1.2vh 22vw; font-size: 2.6vh; font-weight: 800; }
.lticker-in { display: inline-block; padding-left: 100%; animation: ticker 30s linear infinite; }
.lticker .tk-sep { color: var(--gold); margin: 0 2vw; }
.lticker .tk.mutiny, .lticker .tk.bad { color: #ff8a8a; } .lticker .tk.good { color: #8ef0a8; } .lticker .tk.transfer { color: #ffd98a; }
@keyframes ticker { to { transform: translateX(-50%); } }
/* phone: lobby chat box */
.shoutbox .row { display: flex; gap: 8px; }
.shoutbox input { flex: 1; }
.shoutbox .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shout-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 260px; overflow: auto; }
.shout-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px 10px; }
.shout-row span { min-width: 0; overflow-wrap: anywhere; }

/* review fixes */
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
body:has(.sheet) { overflow: hidden; }
@media (max-width: 430px) { .topbar .me .mename { display: none; } .topbar .me { opacity: 1; } }
