:root {
  --bg: #1a0b2e;
  --bg2: #2d1250;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff7e8;
  --muted: #c7b8e0;
  --beer: #ffb400;
  --hot: #ff4f79;
  --cool: #3ddc97;
  --blue: #4cc9f0;
  --radius: 18px;
  --display: "Bungee", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 79, 121, 0.25), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(76, 201, 240, 0.2), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0.3em 0; line-height: 1.15; }
code { background: var(--card); padding: 2px 6px; border-radius: 6px; }

/* ---------- common ---------- */
.center { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.spacer { flex: 1; }

.logo { font-family: var(--display); font-size: 2.4rem; color: var(--beer); text-shadow: 3px 3px 0 var(--hot); letter-spacing: 1px; }
.logo.huge { font-size: clamp(2.6rem, 12vw, 4.5rem); text-align: center; line-height: 1; }
.logo.sm { font-size: 1.3rem; text-shadow: 2px 2px 0 var(--hot); }
.tag { color: var(--muted); text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none;
  background: var(--beer); color: #2a1300; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 5px 0 #b37400; transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b37400; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.big { font-size: 1.25rem; padding: 16px 28px; width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--hot); color: #fff; box-shadow: 0 5px 0 #a8264a; }
.btn.danger:active { box-shadow: 0 1px 0 #a8264a; }
.btn.sm { font-size: 0.85rem; padding: 8px 14px; }
.link { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; padding: 4px 8px; }

.pill { border: 2px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 700; }
.pill.on { background: var(--blue); border-color: var(--blue); color: #002233; }

.avatar {
  --c: #999;
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c); color: #1a0b2e; font-family: var(--display); font-size: 1rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.avatar.sm { width: 24px; height: 24px; font-size: 0.7rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.8rem; }
.avatar.xl { width: 110px; height: 110px; font-size: 3.2rem; }

.chip {
  --c: #999;
  display: inline-flex; align-items: center; gap: 6px; margin: 4px;
  padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 22%, transparent); border: 2px solid var(--c);
}
.chip.wait { opacity: 0.4; border-style: dashed; }
.chip.done { animation: pop 0.35s; }
.chip.done::after { content: "✓"; }

.spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--beer); animation: spin 0.8s linear infinite; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99;
  background: var(--hot); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); animation: pop 0.25s; max-width: calc(100vw - 32px);
}

.timer { position: relative; height: 14px; background: var(--card); border-radius: 999px; overflow: visible; margin: 8px 0 24px; }
.timer-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hot), var(--beer)); animation: shrink linear forwards; }
.timer-num { position: absolute; right: -4px; top: -14px; font-family: var(--display); font-size: 1.4rem; background: var(--bg2); border-radius: 999px; padding: 2px 10px; border: 2px solid var(--line); }

.pop { animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.wobble { animation: wobble 2.4s ease-in-out infinite; }
.shake { animation: shake 0.5s ease-in-out 3; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shrink { to { width: 0; } }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }

/* ---------- home ---------- */
.home { max-width: 420px; margin: 0 auto; padding: 48px 16px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--muted); }
.card input {
  background: rgba(0, 0, 0, 0.25); border: 2px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 1.3rem; font-weight: 900; color: var(--text); outline: none;
}
.card input:focus { border-color: var(--beer); }
#code { text-transform: uppercase; letter-spacing: 0.4em; font-family: var(--display); text-align: center; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- host (big screen) ---------- */
.host { min-height: 100vh; display: flex; flex-direction: column; }
.host main { flex: 1; display: flex; flex-direction: column; padding: 16px clamp(16px, 4vw, 64px); }
.host-head { display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 64px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.roomcode { color: var(--muted); }
.roomcode .code { color: var(--beer); font-family: var(--display); letter-spacing: 3px; font-size: 1.3rem; }
.round-no { margin-left: auto; font-family: var(--display); color: var(--blue); }
.host-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px clamp(16px, 4vw, 64px); }

.lobby { display: grid; grid-template-columns: minmax(280px, 1fr) 1.4fr; gap: 32px; align-items: start; margin-top: 16px; }
.join-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.qr { width: min(240px, 60vw); margin: 16px auto; background: #fff; border-radius: 12px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.bigcode { font-family: var(--display); font-size: clamp(3rem, 9vw, 6rem); color: var(--beer); letter-spacing: 0.15em; text-shadow: 4px 4px 0 var(--hot); }
.lobby-side { display: flex; flex-direction: column; gap: 16px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.player-card {
  --c: #999; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
  background: var(--card); border: 2px solid var(--c); border-radius: var(--radius); font-weight: 900;
  overflow: hidden; text-overflow: ellipsis;
}
.player-card .kick {
  margin-top: 4px; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer;
  background: rgba(255, 79, 121, 0.18); color: var(--hot); font-weight: 900; font-size: 0.8rem;
}
.player-card .kick:hover { background: var(--hot); color: #fff; }
.settings { display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 16px; }
.setting { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setting > span { min-width: 120px; font-weight: 700; color: var(--muted); }

.stage { max-width: 1100px; width: 100%; margin: 0 auto; text-align: center; }
.round-type { font-family: var(--display); color: var(--blue); font-size: 1.1rem; margin-bottom: 8px; }
.prompt { font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 900; margin: 24px auto; max-width: 1000px; }
.prompt.sm { font-size: clamp(1.3rem, 3vw, 2.2rem); margin: 12px auto; }
.kicker { color: var(--beer); font-size: 1.3rem; font-weight: 900; }
.waiting-on { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

.intro { margin: auto; text-align: center; max-width: 900px; }
.intro h1 { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 5rem); color: var(--beer); text-shadow: 4px 4px 0 var(--hot); }
.intro-emoji { font-size: clamp(4rem, 12vw, 8rem); }
.rules { font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--muted); }

.wyr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 24px 0; }
.wyr-opt { padding: 32px 20px; border-radius: var(--radius); font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 900; }
.wyr-opt.a { background: color-mix(in srgb, var(--hot) 35%, transparent); border: 3px solid var(--hot); }
.wyr-opt.b { background: color-mix(in srgb, var(--blue) 35%, transparent); border: 3px solid var(--blue); }
.or { font-family: var(--display); font-size: 1.6rem; color: var(--beer); }

.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.answer { background: #fff7e8; color: #1a0b2e; border-radius: var(--radius); padding: 20px; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 900; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); }
.answer.win { background: var(--beer); transform: rotate(-1deg); }
.a-meta { margin-top: 10px; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.a-meta .chip { color: #1a0b2e; }

.spotlight { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(1.6rem, 4vw, 3rem); color: var(--beer); margin: 16px 0; }
.spotlight > div:first-child { display: flex; gap: 12px; }
.tally { display: flex; flex-direction: column; gap: 8px; max-width: 700px; margin: 0 auto; text-align: left; }
.tally-row { display: flex; align-items: center; gap: 10px; }
.tally-row .bar { height: 14px; width: calc(var(--n) * 40px); background: var(--beer); border-radius: 999px; }
.voters { color: var(--muted); font-size: 0.9rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
.split > div { background: var(--card); border-radius: var(--radius); padding: 16px; }
.count { font-family: var(--display); font-size: 3rem; color: var(--beer); }

.drink-list { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.drink-list h2 { width: 100%; font-family: var(--display); color: var(--hot); }
.drink { display: flex; align-items: center; gap: 6px; }

.board { list-style: none; padding: 0; max-width: 700px; margin: 16px auto; display: flex; flex-direction: column; gap: 8px; }
.board li { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px 16px; font-size: 1.2rem; }
.board .rank { font-family: var(--display); width: 32px; color: var(--muted); }
.board li:first-child .rank { color: var(--beer); }
.board .name { flex: 1; text-align: left; font-weight: 900; }
.board .sips { color: var(--muted); }
.board .score { font-family: var(--display); color: var(--beer); min-width: 80px; text-align: right; }
.winner { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 2rem; }
.award { font-size: 1.2rem; }

.answer.truth { background: var(--cool); }
.center-text { text-align: center; }

/* The Landlord's caption */
.gm {
  position: fixed; left: 50%; top: 12px; transform: translate(-50%, -30px); z-index: 50;
  width: min(900px, calc(100vw - 32px)); padding: 16px 22px; border-radius: 20px;
  background: rgba(10, 4, 20, 0.92); border: 2px solid var(--beer); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 4px; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.gm.show { opacity: 1; transform: translate(-50%, 0); }
.gm-name { font-family: var(--display); color: var(--beer); font-size: 0.9rem; }
.gm-text { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.3; }

/* ---------- player (phone) ---------- */
.phone { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.phone main { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.phone-head { --c: #999; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 3px solid var(--c); background: #150823; position: sticky; top: 0; z-index: 5; }
.mini { font-size: 0.85rem; color: var(--muted); }
.big-emoji { font-size: 5rem; line-height: 1.1; }
.prompt-sm { font-size: 1.35rem; font-weight: 900; text-align: center; margin: 8px 0 16px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices.two { flex: 1; }
.choice {
  --c: var(--line); display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 64px;
  background: var(--card); border: 3px solid var(--c); border-radius: var(--radius);
  font-size: 1.15rem; font-weight: 900; cursor: pointer; text-align: left;
}
.choice:active { transform: scale(0.97); }
.choices.two .choice { flex: 1; justify-content: center; text-align: center; font-size: 1.4rem; }
.choice.hot, .choice.a { --c: var(--hot); background: color-mix(in srgb, var(--hot) 25%, transparent); }
.choice.cool { --c: var(--cool); background: color-mix(in srgb, var(--cool) 25%, transparent); }
.choice.b { --c: var(--blue); background: color-mix(in srgb, var(--blue) 25%, transparent); }
.answer-choice { background: #fff7e8; color: #1a0b2e; border-color: transparent; }
.quip-form { display: flex; flex-direction: column; gap: 12px; }
.quip-form textarea { background: #fff7e8; color: #1a0b2e; border: 0; border-radius: var(--radius); padding: 16px; font-size: 1.3rem; font-weight: 700; resize: none; outline: none; }
.locked { text-align: center; margin: auto; }
.verdict { margin: auto; text-align: center; padding: 32px 16px; border-radius: 24px; width: 100%; }
.verdict h1 { font-family: var(--display); font-size: clamp(2rem, 10vw, 3rem); }
.verdict.drink { background: color-mix(in srgb, var(--hot) 30%, transparent); border: 3px solid var(--hot); }
.verdict.safe { background: color-mix(in srgb, var(--cool) 22%, transparent); border: 3px solid var(--cool); }
.pts { font-family: var(--display); color: var(--beer); font-size: 1.5rem; }
.stat { font-family: var(--display); font-size: 2.4rem; color: var(--beer); margin: 0; }
.stats { display: flex; gap: 16px; }
.stats div { background: var(--card); border-radius: 14px; padding: 12px 20px; display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-size: 1.6rem; }

@media (max-width: 760px) {
  .lobby { grid-template-columns: 1fr; }
  .wyr { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .host-head { gap: 8px; }
  .round-no { margin-left: 0; }
}

/* ---------- new games ---------- */
.bigyear { font-family: var(--display); font-size: clamp(3rem, 10vw, 6rem); color: var(--beer); text-shadow: 4px 4px 0 var(--hot); }
.chamber-title { font-family: var(--display); color: var(--hot); }
.role-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.role { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); font-weight: 900; }
.drink-role { border-color: var(--hot); color: var(--hot); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin: 16px 0; }
.vs { font-family: var(--display); font-size: clamp(2rem, 6vw, 4rem); color: var(--hot); text-shadow: 3px 3px 0 var(--beer); }
.vs.sm { font-size: 1.4rem; text-align: center; }
.fighter .answer { font-size: clamp(1.2rem, 2.6vw, 2rem); }
.post { text-align: left; }
.post-ctx { font-size: 0.85rem; font-weight: 700; color: #6b4b8a; }
.post-q { font-style: italic; margin: 4px 0 8px; font-weight: 700; }

/* T-shirts */
.shirt { position: relative; width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 1; }
.shirt.big { max-width: 260px; }
.shirt .tee { position: absolute; inset: 0; width: 100%; height: 100%; }
.shirt .tee path { fill: #fdfdfd; stroke: #1a0b2e; stroke-width: 1.5; }
.tee-print { position: absolute; left: 30%; right: 30%; top: 22%; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 4%; }
.tee-print img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 4px; }
.tee-slogan { color: #1a0b2e; font-family: var(--display); font-size: clamp(0.55rem, 1.4vw, 0.95rem); line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.fighter .tee-slogan, .shirt.big .tee-slogan { font-size: clamp(0.7rem, 1.6vw, 1.1rem); }

/* phone: drawing + chamber + shirt maker */
.tee-canvas { width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; display: block; background: #fff; border-radius: 16px; touch-action: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.pens { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.pen { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.3); background: var(--c); cursor: pointer; font-size: 1rem; }
.pen.on { border-color: var(--beer); transform: scale(1.15); }
.slogan-input, .year-input {
  background: #fff7e8; color: #1a0b2e; border: 0; border-radius: var(--radius); padding: 14px; font-size: 1.2rem; font-weight: 900; outline: none; width: 100%;
}
.year-input { font-family: var(--display); font-size: 2rem; text-align: center; }
.glasses { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; margin-top: 12px; }
.glass { justify-content: center; text-align: center; font-size: 1.6rem; min-height: 90px; display: flex; flex-direction: column; align-items: center; }
.make-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickable { background: var(--card); border: 3px solid transparent; border-radius: var(--radius); padding: 6px; cursor: pointer; }
.pickable.on { border-color: var(--beer); background: rgba(255, 180, 0, 0.15); }
.choices.fight .choice { justify-content: center; }
.choices.fight .shirt { max-width: 200px; }
.phone .shirt { max-width: 220px; }

@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; }
}

.speaker-btn { font-size: 1.3rem; }
.speaker-btn.on { filter: drop-shadow(0 0 6px var(--beer)); }
.speaker-card { margin-top: 20px; }

/* Cards Against Sobriety */
.black-card {
  position: relative; background: #111; color: #fff; border-radius: 18px; padding: 28px 24px; margin: 12px auto 20px;
  max-width: 720px; font-size: clamp(1.4rem, 3.6vw, 2.6rem); font-weight: 900; text-align: left; line-height: 1.25;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 2px solid rgba(255, 255, 255, 0.15);
}
.black-card.sm { font-size: 1.15rem; padding: 16px 18px; margin: 8px 0 12px; }
.black-card .blank { border-bottom: 3px solid #fff; color: transparent; }
.black-card .pick { position: absolute; right: 16px; bottom: 10px; font-size: 0.8rem; font-family: var(--display); color: var(--beer); }
.white-fill { background: #fff7e8; color: #1a0b2e; padding: 0 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.answer .white-fill { background: var(--beer); }
.answer.worst { background: #c9b6b6; }
.hand { display: flex; flex-direction: column; gap: 8px; }
.white-card {
  position: relative; text-align: left; background: #fff7e8; color: #1a0b2e; border: 3px solid transparent; border-radius: 14px;
  padding: 14px 16px; font-size: 1.05rem; font-weight: 900; cursor: pointer;
}
.white-card.on { border-color: var(--beer); background: #fff; box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.35); }
.white-card .order { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--beer); font-size: 0.8rem; }
.answer.win .white-fill { background: #fff7e8; }
.black-card.xs { font-size: 0.95rem; padding: 12px 14px; margin: 0; max-width: 260px; }
.won-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }

/* Party Mix game picker */
.picker .row { margin: 12px 0; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 12px 0; text-align: left; }
.game-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); cursor: pointer;
  background: var(--card); border: 3px solid var(--line); opacity: 0.55; transition: opacity 0.15s, border-color 0.15s, transform 0.1s;
}
.game-card:active { transform: scale(0.97); }
.game-card.on { opacity: 1; border-color: var(--beer); background: rgba(255, 180, 0, 0.12); }
.game-card.off { cursor: not-allowed; opacity: 0.3; }
.game-emoji { font-size: 2rem; }
.game-card b { font-size: 1.1rem; }
.game-blurb { color: var(--muted); font-size: 0.9rem; }
.game-tick { margin-top: auto; font-weight: 900; color: var(--beer); font-size: 0.85rem; }
.game-card:not(.on) .game-tick { color: var(--muted); }

/* Photos */
.avatar.photo { overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn { padding: 0; }

/* House rules */
.rules-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; max-width: 75%; padding: 6px 12px; border-radius: 12px;
  background: rgba(10, 4, 20, 0.85); border: 2px solid var(--beer); font-size: 0.9rem; text-align: left;
}
.rules-banner b { font-family: var(--display); color: var(--beer); font-size: 0.85rem; }
.rule-item { font-weight: 700; }
.rule-item small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.rules-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 16px; background: rgba(255, 180, 0, 0.12); border-bottom: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; }
.snitch-list { width: 100%; display: flex; flex-direction: column; gap: 6px; }

/* Hot Seat */
.hot-q { flex: 1; font-weight: 700; }

/* Wheel of Doom */
.wheel-wrap { position: relative; width: min(360px, 70vw); margin: 10px auto; }
.wheel { width: 100%; height: auto; animation: wheel-spin 4s cubic-bezier(0.15, 0.85, 0.25, 1) forwards; }
.wheel-pointer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: var(--beer); z-index: 2; text-shadow: 0 2px 0 #1a0b2e; }
@keyframes wheel-spin { from { transform: rotate(0deg); } to { transform: rotate(var(--turn)); } }
.wheel-result { font-family: var(--display); font-size: clamp(1.4rem, 3.5vw, 2.4rem); color: var(--beer); margin-top: 12px; animation-delay: 4s; }

/* Blank white cards */
.white-card.blank { display: flex; flex-direction: column; gap: 8px; border-style: dashed; border-color: #b8a58a; }
.white-card.blank.on { border-style: solid; border-color: var(--beer); }
.blank-pick { text-align: left; color: #1a0b2e; font-weight: 900; font-size: 1.05rem; padding: 0; }
.blank-input { border: 2px solid var(--beer); border-radius: 10px; padding: 10px; font-size: 1.05rem; font-weight: 700; color: #1a0b2e; background: #fff; }

/* Imposter */
.secret { text-align: center; padding: 18px; border-radius: 18px; background: var(--card); border: 3px solid var(--blue); margin-bottom: 12px; }
.secret h1 { font-family: var(--display); color: var(--beer); font-size: 2.2rem; margin: 6px 0; }
.secret.imposter { border-color: var(--hot); background: rgba(255, 79, 121, 0.15); }

/* What is it? drawings */
.drawing { width: min(360px, 60vw); margin: 10px auto; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transform: rotate(-1.5deg); }
.drawing img { width: 100%; display: block; }
.drawing.sm { width: min(220px, 80vw); }

/* Higher or Lower */
.hol-than { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.hol-row { flex-wrap: wrap; }

/* Buddy rounds */
.buddy-banner { display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 999px; background: var(--hot); color: #fff; font-weight: 900; font-size: clamp(1rem, 2.4vw, 1.5rem); animation: wobble 2.4s ease-in-out infinite; }

/* Out of Context: retro web browser, readable from the sofa */
.net-window {
  width: min(1400px, 100%); margin: 0 auto; background: #c9ccd3; border: 4px solid #e8eaee; border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #8d929c; overflow: hidden; text-align: left; color: #1a0b2e;
}
.net-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: linear-gradient(90deg, #0e6f7a, #1f9aa6); color: #e9fbff; font-family: var(--display); font-size: clamp(0.9rem, 1.6vw, 1.2rem); }
.net-btns i { display: inline-grid; place-items: center; width: 26px; height: 22px; margin-left: 6px; background: #d9dce2; color: #222; border: 2px solid #fff; border-right-color: #666; border-bottom-color: #666; font-style: normal; font-weight: 900; }
.net-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #d9dce2; border-bottom: 2px solid #9ea3ad; }
.net-nav { font-size: clamp(1rem, 1.8vw, 1.4rem); letter-spacing: 6px; color: #555; white-space: nowrap; }
.net-url { flex: 1; background: #fff; border: 2px solid #777; border-right-color: #eee; border-bottom-color: #eee; padding: 6px 12px; font-weight: 700; font-size: clamp(0.9rem, 1.6vw, 1.25rem); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.net-code { background: #111; color: #9aa7ff; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 2rem); padding: 2px 14px; line-height: 1.1; text-align: center; }
.net-code small { display: block; font-family: "Nunito", sans-serif; font-size: 0.6rem; color: #ccc; letter-spacing: 1px; }
.net-body {
  padding: clamp(14px, 2.5vw, 32px); min-height: 40vh;
  background: #2f5a30 radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 50%);
  background-image: repeating-linear-gradient(45deg, transparent 0 38px, rgba(0, 0, 0, 0.05) 38px 40px);
}
.net-hero { background: #fff; border-radius: 6px; padding: clamp(20px, 4vw, 48px); text-align: center; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); }
.net-hero h1 { font-size: clamp(1.6rem, 4vw, 3rem); margin: 0 0 8px; }
.net-hero p { font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: #555; margin: 0; }
.net-banner { background: linear-gradient(90deg, #0e6f7a, #1f9aa6); color: #fff; text-align: center; font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.8rem); padding: 10px 16px; border-top: 3px solid #e9fbff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.net-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(12px, 2vw, 28px); }
.net-card {
  --ink: color-mix(in srgb, var(--c) 60%, #000); background: #fff; border-radius: 6px; padding: clamp(12px, 1.8vw, 22px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); border: 4px solid #f2f2f2; display: flex; flex-direction: column; gap: 6px; color: #1a0b2e;
}
.net-card.win { border-color: var(--beer); box-shadow: 0 0 0 5px var(--beer), 0 6px 0 rgba(0, 0, 0, 0.3); transform: scale(1.02); }
.net-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar.net { width: clamp(52px, 5vw, 76px); height: clamp(52px, 5vw, 76px); border-radius: 6px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); box-shadow: 0 0 0 3px #1a0b2e; flex: none; }
.avatar.net.photo img { border-radius: 4px; }
.net-name { font-family: var(--display); color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.05; }
.net-answer { color: #666; font-weight: 700; font-size: clamp(1rem, 1.9vw, 1.5rem); line-height: 1.2; }
.net-ctx { color: #8a8a8a; font-size: clamp(0.8rem, 1.3vw, 1rem); font-weight: 700; }
.net-twist { font-family: var(--display); color: var(--ink); font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.1; overflow-wrap: anywhere; }
.net-meta { margin-top: auto; font-size: clamp(0.85rem, 1.4vw, 1.1rem); color: #444; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.net-card.phone { text-align: left; align-items: stretch; }
.net-card.phone .net-name { font-size: 1.2rem; }
.net-card.phone .net-answer { font-size: 1rem; }
.net-card.phone .net-twist { font-size: 1.4rem; }
@media (max-width: 760px) { .net-grid { grid-template-columns: 1fr; } .net-nav { display: none; } }

/* ---------- Pub Poll: a TV stats graphic ---------- */
.poll-board { background: linear-gradient(180deg, #0b2b5c, #081a3a); border: 4px solid #4cc9f0; border-radius: 22px; padding: clamp(14px, 2.5vw, 32px); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); max-width: 1300px; margin: 0 auto; }
.poll-head { display: inline-block; font-family: var(--display); background: #4cc9f0; color: #081a3a; padding: 6px 18px; border-radius: 999px; font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: 1px; }
.poll-row { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 60px); flex-wrap: wrap; margin: 12px 0; }
.poll-ask { font-size: clamp(1.3rem, 3vw, 2.2rem); max-width: 560px; }
.poll-arrow { font-size: clamp(2.5rem, 6vw, 5rem); }
.pie { --size: clamp(150px, 20vw, 300px); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--beer) 0 calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0); box-shadow: 0 0 0 6px #fff, 0 12px 40px rgba(0, 0, 0, 0.5); }
.pie.small { --size: clamp(120px, 15vw, 220px); }
.pie.truth { background: conic-gradient(var(--cool) 0 calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0); }
.pie-in { width: 64%; height: 64%; border-radius: 50%; background: #081a3a; display: grid; place-content: center; text-align: center; }
.pie-in b { font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.pie-in small { color: var(--muted); font-size: clamp(0.8rem, 1.4vw, 1.1rem); }
.poll-show { font-family: var(--display); font-size: 4rem; text-align: center; color: var(--beer); }
.poll-slider { width: 100%; height: 44px; accent-color: var(--beer); }

/* ---------- Spiked: the lab ---------- */
.lab { background: radial-gradient(circle at 50% 0, rgba(61, 220, 151, 0.35), transparent 60%); border: 3px dashed var(--cool); border-radius: 22px; padding: clamp(20px, 4vw, 48px); max-width: 1100px; margin: 0 auto; }
.lab-emoji { font-size: clamp(4rem, 10vw, 8rem); animation: wobble 2s ease-in-out infinite; }
.lab-q { background: rgba(61, 220, 151, 0.15); border: 3px solid var(--cool); border-radius: 16px; padding: 14px 20px; font-size: clamp(1.2rem, 2.6vw, 2rem); max-width: 1200px; margin: 0 auto 12px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(10px, 1.6vw, 20px); max-width: 1400px; margin: 12px auto; text-align: left; }
.lab-card { display: flex; gap: 14px; align-items: center; background: #fff; color: #1a0b2e; border-radius: 12px; padding: clamp(10px, 1.4vw, 18px); border-left: 10px solid var(--c); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); }
.lab-card .net-name { color: color-mix(in srgb, var(--c) 60%, #000); }
.lab-card.spiked { outline: 5px solid var(--cool); background: #eafff5; }
.lab-card .muted { color: #6b5a86; }
.lab-answer { font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.15; }

/* ---------- Bullsh*t Interview: the application form ---------- */
.cv { background: #fffdf5; color: #1a0b2e; border-radius: 10px; padding: 0 clamp(18px, 4vw, 48px) clamp(18px, 3vw, 36px); max-width: 1100px; margin: 0 auto; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  background-image: repeating-linear-gradient(transparent 0 38px, #d7e3f4 38px 40px); }
.cv h1 { font-size: clamp(1.8rem, 4.5vw, 3.4rem); }
.cv p { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }
.cv-head { margin: 0 calc(-1 * clamp(18px, 4vw, 48px)) 12px; background: #1d3557; color: #fff; font-family: var(--display); padding: 10px 16px; border-radius: 10px 10px 0 0; font-size: clamp(0.9rem, 1.8vw, 1.3rem); }
.cv-label { color: #5a6b85; margin-bottom: 0; }
.cv-q { background: #1d3557; border-radius: 12px; padding: 12px 20px; font-size: clamp(1.3rem, 3vw, 2.2rem); max-width: 1200px; margin: 0 auto; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(12px, 2vw, 24px); max-width: 1400px; margin: 16px auto; }
.cv-card { background: #fffdf5; color: #1a0b2e; border-radius: 8px; padding: clamp(14px, 2vw, 24px); font-family: Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); border-top: 8px solid #1d3557; }
.cv-card.win { border-top-color: var(--beer); box-shadow: 0 0 0 5px var(--beer), 0 6px 0 rgba(0, 0, 0, 0.3); }
.cv-card .a-meta { font-family: "Nunito", system-ui, sans-serif; font-style: normal; font-size: 1rem; margin-top: 8px; }
.job-answer { background: #fffdf5; color: #1a0b2e; border-radius: 10px; padding: 12px; min-height: 64px; font-family: Georgia, serif; font-style: italic; font-size: 1.2rem; margin-bottom: 12px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile { border: 0; border-radius: 10px; padding: 10px 12px; background: #fff7e8; color: #1a0b2e; font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); cursor: pointer; }
.tile.filler { background: #c7b8e0; }
.tile:active { transform: translateY(2px); box-shadow: none; }

/* ---------- Pub Sort: red vs blue ---------- */
.sort-board { display: grid; grid-template-columns: 1fr minmax(0, 1.3fr) 1fr; gap: clamp(10px, 2vw, 24px); align-items: start; max-width: 1500px; margin: 0 auto; }
.sort-team { border-radius: 18px; padding: 14px; text-align: left; }
.sort-team.red { background: color-mix(in srgb, var(--hot) 30%, transparent); border: 4px solid var(--hot); }
.sort-team.blue { background: color-mix(in srgb, var(--blue) 30%, transparent); border: 4px solid var(--blue); }
.sort-team h2 { font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.8rem); }
.sort-players { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sort-list { padding-left: 0; list-style: none; font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 800; }
.sort-list li { background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 6px 10px; margin: 6px 0; }
.sort-items { display: flex; flex-direction: column; gap: 10px; }
.sort-item { background: #fff7e8; color: #1a0b2e; border-radius: 12px; padding: 10px 16px; font-weight: 900; font-size: clamp(1.1rem, 2.1vw, 1.8rem); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
.sort-item small { color: #6b5a86; font-weight: 800; }
.sort-picked { font-weight: 800; background: var(--card); border-radius: 12px; padding: 8px 8px 8px 32px; }
.choice.static { cursor: default; opacity: 0.85; }

/* ---------- Rap Battle: the stage ---------- */
.rap-stage { background: radial-gradient(ellipse at 50% 0, rgba(255, 180, 0, 0.3), transparent 60%), #0d0618; border-radius: 22px; padding: clamp(16px, 3vw, 40px); max-width: 1500px; margin: 0 auto; box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8); }
.rap-mic { font-size: clamp(4rem, 10vw, 8rem); animation: wobble 2s ease-in-out infinite; }
.rap-label { font-family: var(--display); color: var(--beer); font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: 1px; }
.rap-versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(10px, 2vw, 28px); align-items: center; }
.rap-side { display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 18px; padding: clamp(14px, 2vw, 26px); font-size: clamp(1.1rem, 2vw, 1.6rem); }
.rap-side.red { background: color-mix(in srgb, var(--hot) 25%, transparent); border: 4px solid var(--hot); }
.rap-side.blue { background: color-mix(in srgb, var(--blue) 25%, transparent); border: 4px solid var(--blue); }
.rap-side.win { background: color-mix(in srgb, var(--beer) 20%, transparent); border: 4px solid var(--beer); max-width: 900px; margin: 0 auto; }
.verse { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.verse-open { color: var(--muted); font-style: italic; font-size: clamp(1rem, 2vw, 1.6rem); }
.verse-line { font-family: var(--display); font-size: clamp(1.3rem, 2.8vw, 2.3rem); line-height: 1.2; }
.rap-open { background: #0d0618; border-left: 6px solid var(--beer); border-radius: 10px; padding: 12px; font-style: italic; font-size: 1.2rem; margin-bottom: 8px; }
.rhyme { color: var(--beer); font-family: var(--display); }

@media (max-width: 760px) {
  .sort-board, .rap-versus { grid-template-columns: 1fr; }
}

/* ---------- Kings Cup ---------- */
.pcard { --w: 110px; width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * 0.08); background: #fff; color: #1a0b2e; position: relative; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); border: 3px solid #fff; flex: none; font-family: Georgia, serif; }
.pcard.red { color: #d62246; }
.pcard.back { background: repeating-linear-gradient(45deg, #b3123a 0 10px, #8f0e2e 10px 20px); border-color: #fff; }
.pcard.back span { font-size: calc(var(--w) * 0.35); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4)); }
.pcard .pc-mid { font-size: calc(var(--w) * 0.5); }
.pcard .pc-corner { position: absolute; top: 6%; left: 8%; font-weight: 900; font-size: calc(var(--w) * 0.17); line-height: 1; }
.pcard .pc-corner.br { top: auto; left: auto; bottom: 6%; right: 8%; transform: rotate(180deg); }
.pcard.big { --w: clamp(150px, 18vw, 260px); }
.pcard.mid { --w: 96px; }
.pcard.sm { --w: 64px; }
.pcard.xs { --w: 40px; border-width: 2px; }
.pcard.flip { animation: flip 0.6s ease-out; }
@keyframes flip { from { transform: rotateY(90deg) scale(0.8); } to { transform: rotateY(0) scale(1); } }
.kings-table { display: grid; grid-template-columns: auto auto 1fr auto; gap: clamp(16px, 3vw, 44px); align-items: center; max-width: 1500px; margin: 0 auto;
  background: radial-gradient(ellipse at center, #1f6b3a, #0f3d20); border: 8px solid #6b3f1d; border-radius: 40px; padding: clamp(18px, 3vw, 40px); box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5), 0 16px 50px rgba(0, 0, 0, 0.5); text-align: left; }
.kings-cup { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cup { width: clamp(80px, 9vw, 130px); height: clamp(100px, 11vw, 160px); border: 6px solid #e8d8b0; border-top: 0; border-radius: 0 0 40% 40%; position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.cup-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--k) * 25%); background: linear-gradient(#ffcf4a, #c77d00); transition: height 1s; }
.cup-crowns { font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: 2px; }
.kings-left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kings-name { font-family: var(--display); color: var(--beer); font-size: clamp(2rem, 5vw, 4rem); margin: 0; }
.kings-info .rules { font-size: clamp(1.1rem, 2.2vw, 1.7rem); text-align: left; margin: 8px 0; }
.kings-info .spotlight { align-items: flex-start; }
.kings-word { display: inline-block; font-family: var(--display); background: #fff7e8; color: #1a0b2e; border-radius: 12px; padding: 8px 20px; font-size: clamp(1.6rem, 4vw, 3rem); }
.kings-word.sm { font-size: 1.4rem; padding: 4px 12px; }
.kings-last { font-size: clamp(1rem, 2vw, 1.5rem); background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 10px 14px; }
.kings-log { display: flex; flex-direction: column; gap: 8px; max-width: 1000px; margin: 0 auto; text-align: left; }
.kings-log-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 6px 12px; font-size: clamp(1rem, 1.8vw, 1.3rem); }
.kings-phone { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.kings-phone h2 { margin: 0; color: var(--beer); }
.pcard-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px auto; background: none; border: 0; cursor: pointer; font-weight: 900; font-size: 1.3rem; }
.pcard-btn .pcard { animation: wobble 1.6s ease-in-out infinite; }
.fast-tap-btn { width: 100%; min-height: 220px; border: 0; border-radius: 28px; background: var(--hot); color: #fff; font-family: var(--display); font-size: 2.4rem; box-shadow: 0 10px 0 #a3163c; cursor: pointer; touch-action: manipulation; }
.fast-tap-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 #a3163c; }

/* ---------- Hot Potato Bomb ---------- */
.bomb-stage { max-width: 1300px; margin: 0 auto; }
.bomb-row { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 80px); flex-wrap: wrap; }
.bomb-big { font-size: clamp(6rem, 14vw, 12rem); animation: tick 0.5s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 79, 121, 0.7)); }
.bomb-phone .bomb-big { font-size: 6rem; }
@keyframes tick { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }
.boom { font-size: clamp(7rem, 16vw, 14rem); animation: pop 0.4s ease-out, shake 0.5s 0.4s 3; }
.bomb-used { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.used { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 800; }
.used small { color: var(--muted); }
.bomb-phone { text-align: center; }
.bomb-phone h2 { color: var(--hot); font-family: var(--display); }
.bad { color: var(--hot); font-weight: 900; text-align: center; }

/* ---------- Pub Telephone ---------- */
.tele-board { background: #fffdf5; color: #1a0b2e; border-radius: 22px; padding: clamp(18px, 3vw, 40px); max-width: 1100px; margin: 0 auto; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); }
.tele-board .kicker { color: #6b5a86; }
.tele-steps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tele-step { border-radius: 999px; padding: 6px 14px; background: #e6e0f0; font-weight: 900; font-size: clamp(0.9rem, 1.6vw, 1.2rem); }
.tele-step.on { background: var(--hot); color: #fff; }
.tele-step.done { background: var(--cool); color: #1a0b2e; }
.tele-chain { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1vw, 14px); flex-wrap: wrap; max-width: 1600px; margin: 0 auto; }
.tele-entry { background: #fffdf5; color: #1a0b2e; border-radius: 16px; padding: 10px; width: clamp(180px, 20vw, 300px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); }
.tele-entry img { width: 100%; border-radius: 8px; display: block; background: #fff; }
.tele-text { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 900; margin: 8px 4px; }
.tele-by { margin-bottom: 6px; }
.tele-arrow { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--beer); }
.tele-votes { display: flex; gap: clamp(10px, 2vw, 24px); justify-content: center; flex-wrap: wrap; }
.tele-sum { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border-radius: 18px; padding: 12px; }
.tele-sum .tele-entry { width: clamp(150px, 15vw, 220px); }
.tele-sum.win { outline: 5px solid var(--beer); }

/* ---------- Fastest Finger ---------- */
.fast-pad { display: grid; place-items: center; width: 100%; min-height: 60vh; border: 0; border-radius: 32px; background: #b3123a; color: #fff; cursor: pointer; touch-action: manipulation;
  font-family: var(--display); font-size: 2rem; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35); user-select: none; -webkit-user-select: none; }
.fast-pad.tv { min-height: 50vh; max-width: 1100px; margin: 0 auto; font-size: clamp(2rem, 5vw, 4rem); }
.fast-pad .goemoji { display: none; font-size: clamp(6rem, 18vw, 14rem); }
.fast-pad.go { background: #1a8f4c; }
.fast-pad.go.trap { background: #3a4a6b; }
.fast-pad.go .wait { display: none; }
.fast-pad.go .goemoji { display: block; animation: pop 0.2s ease-out; }
.fast-emoji { font-size: 2rem; }

@media (max-width: 760px) {
  .kings-table { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.tally-row.fast-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tally:has(.fast-row) { max-width: 1100px; }

/* During the game the TV screen is exactly one screen tall; .fit is scaled down to fit (see fitStage). */
.host.fitted { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.host.fitted main { flex: 1; min-height: 0; overflow: hidden; padding: 0; display: block; }
.host.fitted .fit { transform-origin: top left; padding: 10px clamp(16px, 3vw, 48px); }
.host.fitted .host-head { padding-top: 8px; padding-bottom: 8px; }
.host-foot { align-items: center; }
.host-foot .btn { white-space: nowrap; flex: none; }
.host-foot .rules-banner { min-width: 0; flex: 1 1 auto; }
.kings-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1400px; }

/* Cards Against Sobriety deck picker */
.pack-group { text-align: left; margin: 18px 0; }
.pack-group h2 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 0; display: flex; align-items: baseline; gap: 12px; }
.pack-group h2 .link { font-family: "Nunito", system-ui, sans-serif; color: var(--beer); text-decoration: underline; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.pack-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); opacity: 0.55; cursor: pointer; }
.pack-card.on { opacity: 1; border-color: var(--beer); background: rgba(255, 180, 0, 0.12); }
.pack-card b { font-size: 0.95rem; line-height: 1.2; }
.pack-card:not(.on) .game-tick { color: var(--muted); }
.pack-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pack-card { padding: 7px 10px; gap: 2px; border-radius: 10px; }
.pack-card b { font-size: 0.88rem; }
.pack-card .game-tick { margin-top: 2px; }
.pack-group { margin: 10px 0; }
.pack-group p { margin: 2px 0; }
