/* Klop/Blop: "neon rivals" look. Word one is cyan, word two is magenta, player submissions glow yellow. */
:root {
  --ink: #0A0618;
  --panel: #151032;
  --panel2: #1E1745;
  --text: #F4F1FF;
  --muted: #B9B3DA;
  --dim: #7D77A3;
  --cyan: #22E4FF;
  --mag: #FF3DA8;
  --glow: #FFE24A;
  --win: #7CFF6B;
  --lose: #FF5470;
  --line: rgba(255,255,255,.1);
  --display: Bungee, Outfit, system-ui, sans-serif;
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--text); }
body { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
a { color: var(--cyan); }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; }
.c1 { color: var(--cyan); } .c2 { color: var(--mag); } .cy { color: var(--glow); }
.neon1 { color: #E9FCFF; text-shadow: 0 0 6px var(--cyan), 0 0 22px var(--cyan); }
.neon2 { color: #FFEAF6; text-shadow: 0 0 6px var(--mag), 0 0 22px var(--mag); }
.logo { font-family: var(--display); line-height: 1; white-space: nowrap; }
.logo .k { color: var(--cyan); text-shadow: 0 0 8px rgba(34,228,255,.9), 0 0 28px rgba(34,228,255,.6); }
.logo .s { display: inline-block; margin: 0 .04em; }
.logo .s svg { display: inline-block; width: auto; height: 1.5em; vertical-align: middle; position: relative; top: -.06em; }
.logo .b { color: var(--mag); text-shadow: 0 0 8px rgba(255,61,168,.9), 0 0 28px rgba(255,61,168,.6); }
/* The living logo (lobby): one 10s routine shared by every part so they stay in step. Slashy rocks
   all the time; blinks at 20% and 90%; side-eyes KLOP, then BLOP, then rolls his eyes; then crouches,
   hops and flips (60-80%), bonking his speech bubble, and his landing bumps the two words apart. The TV app runs the same beats. */
.logo .s { position: relative; }
.logo.live .hop, .logo.live .rock { display: inline-block; transform-origin: 50% 100%; }
.logo.live .hop { position: relative; z-index: 2; animation: logoHop 10s linear infinite; }
.logo.live .say { animation: logoBonk 10s linear infinite; }
.logo.live .rock { animation: logoRock 3.333s ease-in-out infinite; }
.logo.live .hop svg { transform-origin: 50% 55%; animation: logoFlip 10s linear infinite; }
.logo.live .k, .logo.live .b { display: inline-block; animation: logoBumpK 10s linear infinite; }
.logo.live .b { animation-name: logoBumpB; }
.logo.live .sl-eyes { transform-box: fill-box; transform-origin: center; animation: logoBlink 10s linear infinite; }
.logo.live .sl-pupils { animation: logoLook 10s ease-in-out infinite; }
@keyframes logoRock { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes logoHop {
  0%,60% { transform: none; animation-timing-function: ease-out }
  62.5% { transform: translateY(.03em) scale(1.12,.86); animation-timing-function: ease-out }
  67.5% { transform: translateY(-.32em) scale(.94,1.08); animation-timing-function: ease-in }
  72.5% { transform: translateY(0) scale(1.14,.84); animation-timing-function: ease-out }
  75.5% { transform: scale(.96,1.04) }
  78%,100% { transform: none }
}
@keyframes logoFlip { 0%,63% { transform: none; animation-timing-function: ease-in-out } 72%,100% { transform: rotate(360deg) } }
@keyframes logoBonk { 0%,66% { transform: none } 68% { transform: translateY(-9px) rotate(-3deg) } 72%,100% { transform: none } }
@keyframes logoBumpK { 0%,72% { transform: none } 74% { transform: translateX(-.07em) rotate(-3deg) } 79%,100% { transform: none } }
@keyframes logoBumpB { 0%,72% { transform: none } 74% { transform: translateX(.07em) rotate(3deg) } 79%,100% { transform: none } }
@keyframes logoBlink { 0%,19%,21.5%,89%,91.5%,100% { transform: none } 20.2%,90.2% { transform: scaleY(.1) } }
@keyframes logoLook {
  0%,27%,57%,100% { transform: none }
  30%,37% { transform: translate(-7px,-1px) }
  41%,47% { transform: translate(1.5px,-1px) }
  50%,54% { transform: translate(-2.5px,-7px) }
}
/* Reduced motion: he stays put but still blinks and glances. */
@media (prefers-reduced-motion: reduce) { .logo.live .rock, .logo.live .hop, .logo.live .say, .logo.live .hop svg, .logo.live .k, .logo.live .b { animation: none } }
/* His speech bubble sits above-right of him, tail pointing back down at him. */
.logo .say { position: absolute; left: 62%; bottom: 112%; border-radius: 16px 16px 16px 4px; font-family: Outfit, system-ui, sans-serif; line-height: 1.2; }
.flicker { animation: flicker 5s linear infinite; }
@keyframes flicker { 0%,92%,100% { opacity: 1 } 93% { opacity: .55 } 95% { opacity: 1 } 97% { opacity: .7 } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-10px) rotate(3deg) } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 4px var(--glow), 0 0 40px rgba(255,226,74,.6) } 50% { box-shadow: 0 0 0 4px var(--glow), 0 0 70px rgba(255,226,74,.95) } }
@keyframes blink { 0%,100% { opacity: .3 } 50% { opacity: 1 } }
@keyframes popIn { from { transform: scale(.3); opacity: 0 } }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0 } }
.bob { animation: bob 3.2s ease-in-out infinite; }
/* Slashy talking: the web screen sets --mouth (0 shut … 1 wide) on the page while a line plays. */
.sl-open { transform-box: fill-box; transform-origin: center; transform: scale(calc(.75 + var(--mouth, 0) * .25), var(--mouth, 0)); }
.sl-shut { opacity: calc(1 - var(--mouth, 0) * 5); }
.sl-grin { transform-box: fill-box; transform-origin: top center; transform: scaleY(calc(1 + var(--mouth, 0) * .7)); }
.blink { animation: blink 1.4s ease-in-out infinite; }
.fade-up { animation: fadeUp .35s ease-out both; }

/* avatars & chips */
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av svg { display: block; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); font-weight: 800; }
.chip.off { opacity: .4; }
.tag { padding: 3px 9px; border-radius: 8px; background: var(--glow); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; }

/* ring timer */
.ring { display: block; }
.ring .track { stroke: rgba(255,255,255,.12); }
.ring .bar { stroke: var(--glow); transition: stroke-dashoffset .25s linear; }
.ring.low .bar { stroke: var(--lose); }
.ring.low { animation: throb .9s ease-in-out infinite; }
.ring text { font-family: Outfit, sans-serif; font-weight: 900; fill: var(--text); }
.ring.low text { fill: #FF8A9C; }
@keyframes throb { 50% { transform: scale(1.08) } }

/* ================= PHONE ================= */
.phone { position: relative; overflow-x: clip; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 18px; }
.phone.has-dock { padding-bottom: 230px; }
.halos { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.halos .halo { position: absolute; width: 380px; height: 380px; border-radius: 50%; }
.halos .halo.l { left: -140px; top: -150px; background: radial-gradient(circle, rgba(34,228,255,.18), rgba(34,228,255,0) 65%); }
.halos .halo.r { right: -150px; top: -110px; background: radial-gradient(circle, rgba(255,61,168,.16), rgba(255,61,168,0) 65%); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; min-width: 0; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbr { display: flex; align-items: center; gap: 10px; }
.leavebtn { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex: none; }
.pts { font-weight: 800; font-size: 15px; color: var(--muted); white-space: nowrap; }
.lbl { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input { height: 56px; width: 100%; border-radius: 16px; border: 2px solid rgba(255,255,255,.14); background: var(--panel); color: var(--text); font-size: 20px; font-weight: 700; padding: 0 16px; }
.input::placeholder { color: var(--dim); font-weight: 600; }
.input:focus { outline: none; border-color: var(--glow); }
.input.code { font-size: 32px; font-weight: 900; letter-spacing: 16px; text-align: center; text-transform: uppercase; padding-left: 16px; }
.input.w1 { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34,228,255,.35); background: #0F1A33; color: #E9FCFF; font-weight: 900; letter-spacing: 1px; }
.input.w2 { border-color: var(--mag); box-shadow: 0 0 14px rgba(255,61,168,.35); background: #2A0F2A; color: #FFEAF6; font-weight: 900; letter-spacing: 1px; }
.input.t1 { border-color: var(--glow); box-shadow: 0 0 16px rgba(255,226,74,.3); background: #211C10; color: #FFF8D6; }
.input.t2 { border-style: dashed; border-color: rgba(255,255,255,.22); }
.hint { font-size: 14px; color: var(--muted); line-height: 1.4; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; min-height: 20px; }
.check.ok { color: var(--win); } .check.bad { color: #FF8A9C; }
.btn { height: 60px; border-radius: 18px; font-size: 21px; font-weight: 900; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn.primary { background: var(--glow); color: var(--ink); box-shadow: 0 0 28px rgba(255,226,74,.45); }
.btn.primary:disabled { background: var(--muted); box-shadow: none; opacity: 1; }
.swatch:disabled, .iconbtn:disabled { opacity: .3; background-image: linear-gradient(to top right, transparent 47%, rgba(244,241,255,.85) 48% 52%, transparent 53%); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.2); color: var(--text); font-size: 17px; height: 52px; font-weight: 800; }
.btn.block { width: 100%; }
.btn.danger { border: 1.5px solid var(--lose); color: #FFC2CC; background: rgba(255,84,112,.12); font-size: 17px; height: 52px; font-weight: 800; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.swatch { height: 46px; border-radius: 14px; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--text), 0 0 18px var(--c); }
.iconbtn { height: 46px; border-radius: 14px; border: 2px solid rgba(255,255,255,.12); background: var(--panel); display: flex; align-items: center; justify-content: center; }
.error { background: rgba(255,84,112,.15); border: 1px solid var(--lose); color: #FFC2CC; padding: 10px 14px; border-radius: 14px; font-weight: 700; }
.banner { padding: 10px 14px; border-radius: 14px; background: rgba(255,226,74,.08); border: 1px solid rgba(255,226,74,.35); font-weight: 700; }
.banner.ended { border-color: rgba(255,84,112,.5); background: rgba(255,84,112,.1); font-size: 15px; }
.banner.warn { background: rgba(255,84,112,.15); border-color: var(--lose); color: #FFC2CC; text-align: center; }
.big-title { font-size: 30px; font-weight: 900; line-height: 1.1; }
.center { text-align: center; align-items: center; }
.card-panel { padding: 16px 18px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }

/* swipe voting */
.vote { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; overflow: hidden; user-select: none; -webkit-user-select: none; }
.vote .side { position: absolute; top: 0; bottom: 0; width: 50%; opacity: 0; pointer-events: none; transition: opacity .15s; }
.vote .side.l { left: 0; background: linear-gradient(90deg, rgba(34,228,255,.38), rgba(34,228,255,0)); }
.vote .side.r { right: 0; background: linear-gradient(270deg, rgba(255,61,168,.38), rgba(255,61,168,0)); }
.vote .head { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; align-items: center; justify-content: space-between; }
.pips { display: flex; gap: 5px; margin-top: 8px; }
.pips i { width: 20px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.vote .words { position: absolute; left: 18px; right: 18px; top: 92px; display: flex; justify-content: space-between; font-size: 22px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.vote .words span { max-width: 48%; overflow-wrap: anywhere; }
@keyframes nudgeL { 50% { transform: translateX(-6px) } } @keyframes nudgeR { 50% { transform: translateX(6px) } }
.nl { animation: nudgeL 1.6s ease-in-out infinite; } .nr { animation: nudgeR 1.6s ease-in-out infinite; }
.vote .stage { position: absolute; left: 0; right: 0; top: 140px; bottom: 190px; display: flex; align-items: center; justify-content: center; }
.vcard-wrap { position: relative; width: min(290px, 78vw); height: min(360px, 100%); }
.vcard-wrap .behind { position: absolute; inset: 14px -8px -10px 8px; border-radius: 28px; background: var(--panel2); transform: rotate(4deg); }
.vcard { position: absolute; inset: 0; border-radius: 28px; background: var(--text); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; touch-action: none; cursor: grab; }
.vcard.glow { background: #FFF8D6; animation: pulseGlow 1.6s ease-in-out infinite; }
.vcard .item { font-size: 40px; font-weight: 900; line-height: 1.05; letter-spacing: -.5px; overflow-wrap: anywhere; }
.vcard .item.long { font-size: 32px; }
.vcard .drag-hint { font-size: 14px; font-weight: 600; color: #5B5480; }
.fromplayer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--glow); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }
.stamp { position: absolute; top: 18px; padding: 4px 10px; border-radius: 10px; border: 3px solid; font-weight: 900; font-size: 17px; opacity: 0; text-transform: uppercase; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp.l { left: 18px; border-color: var(--cyan); color: #0A8FA3; transform: rotate(-12deg); }
.stamp.r { right: 18px; border-color: var(--mag); color: #C4127A; transform: rotate(12deg); }
.vote .below { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.vote .google { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
.vote .nav { display: flex; justify-content: space-between; }
.vote .nav button { color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 4px; }
.pick2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pickbtn { height: 78px; border-radius: 22px; border: 2px solid; font-size: 21px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.pickbtn.l { border-color: var(--cyan); background: rgba(34,228,255,.12); color: #E9FCFF; box-shadow: 0 0 18px rgba(34,228,255,.3); }
.pickbtn.r { border-color: var(--mag); background: rgba(255,61,168,.12); color: #FFEAF6; box-shadow: 0 0 18px rgba(255,61,168,.3); }
.pickbtn.on { outline: 3px solid var(--text); }
.vote.warn::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation: edge 1s ease-in-out infinite; }
@keyframes edge { 0%,100% { box-shadow: inset 0 0 0 0 rgba(255,84,112,0) } 50% { box-shadow: inset 0 0 40px 6px rgba(255,84,112,.45) } }
.warnbar { position: absolute; left: 14px; right: 14px; top: 92px; display: none; }
.vote.warn .warnbar { display: block; }
.vote.warn .words { top: 150px; }
.vote.warn .stage { top: 196px; }

/* summary */
.sumlist { border-radius: 20px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.sumrow { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 6px 8px 6px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.sumrow:first-child { border-top: 0; }
.sumrow.glow { background: rgba(255,226,74,.06); }
.sumrow.missing { background: rgba(255,84,112,.1); }
.sumrow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sumrow .txt b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sumrow.glow .txt b { color: #FFF1A8; }
.sumrow .txt small { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--ink); border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.sumrow.missing .seg { border-color: var(--lose); }
.seg button { width: 76px; height: 40px; border-radius: 9px; font-size: 12px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.seg .l { color: #7FA7B3; } .seg .r { color: #B87A9C; }
.seg .l[aria-pressed="true"] { background: var(--cyan); color: var(--ink); box-shadow: 0 0 14px rgba(34,228,255,.6); }
.seg .r[aria-pressed="true"] { background: var(--mag); color: var(--ink); box-shadow: 0 0 14px rgba(255,61,168,.6); }

/* waiting + zaps */
.locked { font-family: var(--display); font-size: 34px; color: var(--win); text-shadow: 0 0 16px rgba(124,255,107,.6); text-align: center; }
.waiting-on { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.waiting-on .chip { font-size: 14px; padding: 3px 10px 3px 3px; border-width: 1.5px; color: var(--text); }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.08); }
.split .a { background: var(--cyan); } .split .b { background: var(--mag); }
.zapzone { position: relative; flex: 1; min-height: 240px; border-radius: 24px; border: 1.5px dashed rgba(255,255,255,.12); background: rgba(21,16,50,.5); overflow: hidden; }
.zapzone .slash { position: absolute; width: 84px; height: 106px; padding: 0; transition: left .18s cubic-bezier(.3,1.4,.5,1), top .18s cubic-bezier(.3,1.4,.5,1); touch-action: manipulation; }
.zapzone .slash.flipping svg { animation: zapFlip .26s cubic-bezier(.3,1.4,.5,1); }
/* Starts upside down in the new colors (so it looks like the old Slashy) and spins upright. */
@keyframes zapFlip { from { transform: rotate(-180deg) scale(.8) } 60% { transform: rotate(15deg) scale(.9) } to { transform: none } }
@media (prefers-reduced-motion: reduce) { .zapzone .slash.flipping svg { animation: none } }
.zapcount { text-align: center; min-height: 54px; }
.zapcount b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--glow); display: block; }
.zapcount span { font-size: 15px; font-weight: 600; color: var(--muted); }
.zap-burst { position: absolute; pointer-events: none; font-family: var(--display); color: var(--glow); font-size: 22px; animation: burst .6s ease-out forwards; }
@keyframes burst { to { transform: translateY(-40px) scale(1.4); opacity: 0 } }

/* reveal on phone */
.myresult { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.myresult .item { font-size: 34px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.yousaid { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--muted); }
.wordpill { padding: 5px 13px; border-radius: 12px; color: var(--ink); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.wordpill.l { background: var(--cyan); box-shadow: 0 0 18px rgba(34,228,255,.6); }
.wordpill.r { background: var(--mag); box-shadow: 0 0 18px rgba(255,61,168,.6); }
.bigpts { font-family: var(--display); font-size: 64px; line-height: 1; animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.bigpts.up { color: var(--win); text-shadow: 0 0 22px rgba(124,255,107,.7); }
.bigpts.down { color: var(--lose); text-shadow: 0 0 22px rgba(255,84,112,.6); }
.bigpts.zero { color: var(--muted); }

/* favorite pair voting */
.pairbtn { width: 100%; min-height: 64px; border-radius: 18px; background: var(--panel); border: 2px solid rgba(255,255,255,.12); font-size: 22px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; flex-wrap: wrap; }
.pairbtn[aria-pressed="true"] { border-color: var(--glow); box-shadow: 0 0 22px rgba(255,226,74,.45); background: #211C10; }

/* host dock & sheets */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.dock .inner { max-width: 480px; margin: 0 auto; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--panel2); border-top: 2px solid var(--glow); box-shadow: 0 -10px 40px rgba(255,226,74,.12); display: flex; flex-direction: column; gap: 10px; }
.dock .row1 { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; min-height: 30px; }
.dock .sq { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.dock .tools { display: flex; align-items: center; gap: 10px; }
.dock .endbtn { height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(255,84,112,.55); color: #FFC2CC; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.dock .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dock details summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 4px 2px; }
.dock select { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.16); background: var(--ink); padding: 0 12px; font-weight: 700; margin-top: 4px; }
.dock .setgrid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0 4px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(10,6,24,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 30; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; }
.sheet .inner { max-width: 480px; margin: 0 auto; padding: 18px 18px calc(26px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--panel2); border-top: 2px solid var(--glow); box-shadow: 0 -10px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 14px; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); align-self: center; }
.offbadge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--lose); border: 3px solid var(--panel2); }

/* ================= TV / SHARED SCREEN ================= */
.tv { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
.stage16 { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; }
.tv .orb { position: absolute; border-radius: 50%; pointer-events: none; }
.tv .netbar { position: absolute; left: 0; right: 0; top: 0; z-index: 50; }
.drift { position: absolute; opacity: .55; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(0) rotate(var(--r)) } to { transform: translateY(-40px) rotate(calc(var(--r) + 40deg)) } }
.codebox { width: 96px; height: 116px; border-radius: 20px; background: var(--panel); border: 3px solid var(--glow); display: flex; align-items: center; justify-content: center; font-size: 76px; font-weight: 900; color: #FFF6C4; text-shadow: 0 0 14px rgba(255,226,74,.8); animation: codePulse 2.4s ease-in-out infinite; }
@keyframes codePulse { 0%,100% { box-shadow: 0 0 24px rgba(255,226,74,.35) } 50% { box-shadow: 0 0 0 6px rgba(255,226,74,.12), 0 0 36px rgba(255,226,74,.6) } }
.pill { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 15px; font-weight: 600; }
.slot { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 9px; border-radius: 18px; background: var(--panel2); border: 2px solid; }
.slot .nm { font-size: 24px; font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty { border: 2px dashed rgba(255,255,255,.16); background: none; color: rgba(255,255,255,.35); font-size: 18px; font-weight: 600; padding: 0 22px; }
.slot.off { opacity: .45; }
.bubble { position: absolute; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--ink); font-weight: 800; font-size: 17px; box-shadow: 0 0 24px rgba(255,255,255,.25); white-space: nowrap; }
.sway1 { animation: sway1 4s ease-in-out infinite; } .sway2 { animation: sway2 4s ease-in-out infinite; }
@keyframes sway1 { 0%,100% { transform: rotate(-4deg) scale(1) } 50% { transform: rotate(-2deg) scale(1.04) } }
@keyframes sway2 { 0%,100% { transform: rotate(4deg) scale(1) } 50% { transform: rotate(2deg) scale(1.04) } }
.hum { animation: hum 2.2s ease-in-out infinite; }
@keyframes hum { 0%,100% { filter: drop-shadow(0 0 10px rgba(255,226,74,.5)) } 50% { filter: drop-shadow(0 0 24px rgba(255,226,74,.9)) } }
.mote { position: absolute; top: 740px; border-radius: 50%; animation: rise 9s linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: .7 } 100% { transform: translateY(-760px); opacity: 0 } }
.pcard { width: 150px; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(21,16,50,.85); border: 2px solid rgba(255,255,255,.1); transition: border-color .3s, background .3s; }
.pcard.done { background: var(--panel2); border-color: var(--win); }
.pcard.off { opacity: .4; }
.pcard .top { display: flex; align-items: center; gap: 8px; }
.pcard .nm { font-size: 18px; font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pp { display: flex; gap: 3px; }
.pcard .pp i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); transition: background .2s; }
.itemcard { padding: 20px 52px; border-radius: 28px; background: var(--text); color: var(--ink); box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--text), 0 0 50px rgba(255,255,255,.35); font-size: 68px; font-weight: 900; letter-spacing: -1px; max-width: 1100px; text-align: center; line-height: 1.05; animation: tilt 5s ease-in-out infinite, popIn .45s cubic-bezier(.2,1.5,.4,1); }
.itemcard.glow { background: #FFF8D6; animation: glowTv 1.8s ease-in-out infinite, popIn .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes tilt { 0%,100% { transform: rotate(-2deg) } 50% { transform: rotate(1deg) } }
@keyframes glowTv { 0%,100% { box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--glow), 0 0 50px rgba(255,226,74,.55) } 50% { box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--glow), 0 0 90px rgba(255,226,74,.95) } }
.vbar { flex: 1; height: 26px; border-radius: 13px; overflow: hidden; display: flex; background: var(--panel); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.vbar .a { background: linear-gradient(90deg, #0E8FA3, var(--cyan)); transition: width .9s cubic-bezier(.2,.9,.3,1); }
.vbar .mid { width: 4px; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.vbar .b { flex: 1; background: linear-gradient(90deg, var(--mag), #FF8FCB); }
.vbar.pre .a { width: 50% !important; opacity: .35; } .vbar.pre .b { opacity: .35; }
.voters { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.voter { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .3s; }
.voter .chip { font-size: 22px; padding: 7px 16px 7px 7px; transition: background .3s, border-color .3s; }
.voter .vp { font-family: var(--display); font-size: 30px; line-height: 1; height: 32px; opacity: 0; }
.voter.win .chip { background: rgba(124,255,107,.14); border-color: var(--win); box-shadow: 0 0 20px rgba(124,255,107,.35); color: #E6FFE0; }
.voter.win .vp { color: var(--win); text-shadow: 0 0 16px rgba(124,255,107,.8); opacity: 1; }
.voter.win { animation: floatUp 1.8s ease-in-out infinite; }
.voter.lose .chip { background: rgba(255,84,112,.16); border-color: var(--lose); color: #FFC2CC; }
.voter.lose .vp { color: var(--lose); opacity: 1; order: 2; }
.voter.lose { animation: deflate 2.4s ease-in-out infinite; }
@keyframes floatUp { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes deflate { 0% { transform: none } 30%,100% { transform: scale(.9) translateY(8px) } }
/* a double score: the ×2 slams on with the second ding, a gold ring bursts out, the points flash */
.x2.x2pop { animation: x2stamp .45s cubic-bezier(.2,1.6,.4,1) both; }
.x2burst { position: absolute; right: -8px; top: -2px; width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--glow); box-shadow: 0 0 18px var(--glow); pointer-events: none; animation: x2burst .7s ease-out both; }
.vp.doubled { animation: x2flash .6s ease-out both; }
@keyframes x2stamp { from { transform: rotate(-30deg) scale(3); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-10deg) scale(1); } }
@keyframes x2burst { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
@keyframes x2flash { 0% { transform: scale(1.7); color: var(--glow); text-shadow: 0 0 24px var(--glow); } 100% { transform: scale(1); } }
.x2 { position: absolute; right: -18px; top: -6px; padding: 3px 8px; border-radius: 8px; background: var(--glow); color: var(--ink); font-family: var(--display); font-size: 15px; box-shadow: 3px 3px 0 var(--mag); transform: rotate(-10deg); }
.takes { padding: 14px 30px; background: var(--glow); color: var(--ink); border-radius: 14px; font-family: var(--display); font-size: 36px; box-shadow: 0 0 40px rgba(255,226,74,.6), 6px 6px 0 var(--mag); animation: popIn .4s cubic-bezier(.2,1.6,.4,1), pop 1.4s ease-in-out .4s infinite; white-space: nowrap; }
@keyframes pop { 0%,100% { transform: scale(1) rotate(-4deg) } 50% { transform: scale(1.06) rotate(-2deg) } }
.coin { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; background: linear-gradient(135deg, #FFE98A, #E2A800); color: #3B2800; box-shadow: 0 0 40px rgba(255,226,74,.7); animation: flip .22s linear infinite; }
@keyframes flip { 50% { transform: scaleX(.05) } }
.conf { position: absolute; width: 10px; height: 14px; border-radius: 2px; animation: confetti 2.2s ease-out forwards; }
@keyframes confetti { 0% { transform: translate(0,0) rotate(0); opacity: 1 } 100% { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0 } }
.srow { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 18px 0 12px; border-radius: 16px; background: rgba(21,16,50,.8); border: 2px solid rgba(255,255,255,.06); animation: fadeUp .4s ease-out both; }
.srow.lead { background: var(--panel2); border-color: var(--glow); box-shadow: 0 0 22px rgba(255,226,74,.25); }
.srow .rk { width: 34px; font-size: 26px; font-weight: 900; text-align: center; color: var(--muted); }
.srow.lead .rk { color: var(--glow); }
.srow .nm { width: 150px; font-size: 24px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .track { flex: 1; height: 14px; border-radius: 7px; background: rgba(255,255,255,.07); overflow: hidden; }
.srow .fill { height: 100%; border-radius: 7px; transition: width 1s cubic-bezier(.2,.9,.3,1); }
.srow .dl { width: 80px; text-align: right; font-family: var(--display); font-size: 18px; }
.srow .sc { width: 70px; text-align: right; font-size: 28px; font-weight: 900; }
.srow .zp { width: 110px; text-align: right; font-family: var(--display); font-size: 16px; color: var(--glow); }
.qbox { width: 84px; height: 84px; border-radius: 20px; border: 3px solid; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 46px; animation: bob 2.2s ease-in-out infinite; }
.bonus { width: 250px; padding: 18px 20px; border-radius: 20px; background: var(--panel); border: 2px solid; display: flex; flex-direction: column; gap: 4px; align-items: center; animation: popIn .5s cubic-bezier(.2,1.5,.4,1) both; }
.bonus b { font-family: var(--display); font-weight: 400; font-size: 48px; color: var(--win); text-shadow: 0 0 16px rgba(124,255,107,.7); }
.bonus small { font-size: 15px; color: var(--muted); }
.bonus .t { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.maker { display: flex; align-items: center; gap: 24px; padding: 20px 46px 20px 20px; border-radius: 999px; background: var(--panel2); border: 4px solid; animation: popIn .6s cubic-bezier(.2,1.6,.4,1) both, zoom 2.6s ease-in-out .6s infinite; }
@keyframes zoom { 0%,100% { transform: scale(1) rotate(-2deg) } 50% { transform: scale(1.04) rotate(1deg) } }
.beam { position: absolute; top: -40px; width: 260px; height: 900px; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform-origin: 50% 0; }
.beam.l { left: 220px; background: linear-gradient(rgba(34,228,255,.28), rgba(34,228,255,0) 85%); animation: sweepL 4s ease-in-out infinite; }
.beam.r { right: 220px; background: linear-gradient(rgba(255,61,168,.28), rgba(255,61,168,0) 85%); animation: sweepR 4s ease-in-out infinite; }
@keyframes sweepL { 0%,100% { transform: rotate(18deg) } 50% { transform: rotate(8deg) } }
@keyframes sweepR { 0%,100% { transform: rotate(-18deg) } 50% { transform: rotate(-8deg) } }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: blink 2s ease-in-out infinite; }
.zapbanner { font-family: var(--display); font-size: 40px; color: var(--glow); text-shadow: 0 0 20px rgba(255,226,74,.8); animation: popIn .5s cubic-bezier(.2,1.6,.4,1) both; }
.landing-links { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 10px; }

/* Slashy's rules tutorial (shared screen) */
.tbar { position: absolute; left: 40px; right: 470px; bottom: 26px; display: flex; gap: 8px; }
.tseg { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.tseg i { display: block; height: 100%; width: 0; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.tskip { position: absolute; right: 28px; bottom: 14px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tskip span { padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255,226,74,.5); color: var(--glow); font-weight: 800; font-size: 15px; }
.tskip:hover span, .tskip:focus-visible span { background: var(--glow); color: var(--ink); }

/* Slashy's rules tutorial (phone) */
.tut-slashy { align-self: center; padding: 6px; margin: 4px 0 -4px; }
.tut-cap { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 2px solid rgba(255,226,74,.35); box-shadow: 0 0 24px rgba(255,226,74,.12); }
.tut-cap p { font-size: 21px; font-weight: 800; line-height: 1.25; }
.tut-dots { display: flex; gap: 6px; }
.tut-dots i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); }
.tut-dots i.done { background: rgba(255,226,74,.55); }
.tut-dots i.on { background: var(--glow); box-shadow: 0 0 8px var(--glow); }

/* Asks for the click or key press browsers need before Slashy can talk. */
.voicepill { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px; border: 2px solid var(--glow); background: rgba(10,6,24,.88); color: var(--glow); font: 800 17px Outfit, system-ui, sans-serif; cursor: pointer; }
.voicepill:hover, .voicepill:focus-visible { background: var(--glow); color: var(--ink); }

/* the end-of-game zap award */
.zapaward { position: absolute; left: 50%; top: 50%; z-index: 30; transform: translate(-50%, -50%); min-width: 640px; padding: 30px 60px 34px; border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--ink); border: 5px solid var(--glow);
  box-shadow: 0 0 0 9999px rgba(8,6,24,.72), 0 0 90px rgba(255,226,74,.6); animation: slamIn .45s cubic-bezier(.2,1.5,.4,1) both; }
.zapaward .t { font-family: var(--display); font-size: 30px; letter-spacing: 4px; color: var(--muted); }
.zapaward b { font-weight: 900; line-height: 1.05; color: var(--text); text-align: center; max-width: 1000px; }
.zapaward .n { font-family: var(--display); font-size: 46px; color: var(--glow); text-shadow: 0 0 24px rgba(255,226,74,.8); }
@keyframes slamIn { from { transform: translate(-50%, -50%) scale(2.4) rotate(-6deg); opacity: 0 } 70% { transform: translate(-50%, -50%) scale(.95) rotate(1deg); opacity: 1 } }
#finslash.zapped { animation: none; filter: drop-shadow(0 0 22px rgba(255,226,74,.95)) brightness(1.4); transform: translate(-6px, 4px) rotate(-8deg); }
.srow .zapcrown { color: var(--glow); font-size: 20px; animation: popIn .5s cubic-bezier(.2,1.6,.4,1) both; }
@media (prefers-reduced-motion: reduce) { .zapaward { animation: none } }

/* credits (public/credits.js): the shared screen's overlay and the /credits page share these */
.cr-sec { background: var(--panel); border-radius: 20px; padding: 16px 20px 18px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--sc, var(--cyan)); }
.cr-sec h2 { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 1px; color: var(--sc, var(--cyan)); display: flex; align-items: center; gap: 10px; }
.cr-temp { font-family: Outfit, system-ui, sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1.5px solid currentColor; }
.cr-line { display: grid; gap: 1px; }
.cr-role { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cr-name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cr-note { color: var(--muted); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cr-sec.music .cr-name { font-size: 15px; font-weight: 700; }
.cr-sec.inline .cr-line { display: block; }
.cr-sec.inline .cr-role { margin-right: 8px; }
.cr-sec.inline .cr-note { display: block; }
.cr-sec.music .cr-line:last-child { margin-top: 6px; }
.cr-sec.music .cr-line:last-child .cr-name { font-size: 13px; color: var(--muted); }
.credits-screen { position: absolute; inset: 0; z-index: 35; background: var(--ink); padding: 34px 48px 26px; display: flex; flex-direction: column; gap: 22px; }
.credits-screen .cr-fitbox { flex: 1; min-height: 0; position: relative; }
.credits-screen .cr-cols { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 18px; }
.credits-screen .cr-col { display: grid; gap: 18px; align-content: start; }
.creditsbtn { position: absolute; right: 56px; bottom: 12px; z-index: 5; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14); color: var(--muted); font-weight: 700; font-size: 14px; }
.creditsbtn:hover, .creditsbtn:focus-visible { background: var(--text); color: var(--ink); outline: none; }

/* host moderation sheet */
.modsheet { max-height: 86vh; overflow-y: auto; }
.modrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.modrow.hidden .modtxt { color: var(--muted); font-style: italic; }
.modwho { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.modtxt { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.modstate { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.modask { display: flex; flex-direction: column; gap: 10px; padding: 12px; margin: 6px 0; border-radius: 16px; border: 1.5px solid rgba(255,84,112,.55); background: rgba(255,84,112,.08); }
.modask .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn.small { min-height: 40px; height: 40px; padding: 0 16px; font-size: 15px; width: auto; flex: none; }
.report-link { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* the Onyx/Remix studio card at startup (public/screen-studio.js): test-card bars wipe down, the ident tunes in */
.studiocard { position: absolute; inset: 0; z-index: 90; background: #E2E2DE; display: grid; place-items: center; overflow: hidden; }
.studiocard .sc-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.studiocard .sc-bars i { display: block; margin-right: -1px; animation: scWipe var(--sc-wipe, .6s) cubic-bezier(.16, 1, .3, 1) both; }
.studiocard .sc-ident { position: relative; width: 900px; line-height: 0; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); animation: scTune var(--sc-tune, .7s) cubic-bezier(.16, 1, .3, 1) both; }
.studiocard .sc-ident svg { display: block; width: 100%; height: auto; }
.studiocard .sc-slashy { position: absolute; inset: 0; transform-origin: 50% 85%; animation: scHop var(--sc-hop, .7s) ease-in-out both; }
.studiocard .sc-slashy svg { position: absolute; inset: 0; }
.studiocard .sc-slashy svg + svg { opacity: 0; animation: scSwap var(--sc-swap, 90ms) ease-out var(--sc-laugh, 2.3s) both; }
.studiocard.still .sc-bars i, .studiocard.still .sc-ident, .studiocard.still .sc-slashy { animation: none; }
@keyframes scWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scSwap { from { opacity: 0; } to { opacity: 1; } }
/* Two little hops (a happy giggle), in px of the 900px-wide ident. */
@keyframes scHop { 0%, 100% { transform: none; } 22% { transform: translateY(-14px) rotate(-2deg); } 45% { transform: translateY(0) scaleY(.96); } 66% { transform: translateY(-7px) rotate(1.5deg); } 85% { transform: translateY(0); } }
@keyframes scTune { 0% { opacity: 0; transform: scaleY(.02) scaleX(1.08); filter: brightness(3); } 35% { opacity: 1; transform: scaleY(.04) scaleX(1); } 60% { transform: scaleY(1.06); filter: brightness(1.6); } 100% { transform: none; filter: none; } }

/* The voting timer ran out: a stamp while the time's-up sting plays, before the results. */
.timesup { font-family: var(--display); font-size: 64px; font-weight: 400; letter-spacing: 3px; color: #1A0F2E;
  background: #FFE24A; padding: 6px 30px; border-radius: 18px; box-shadow: 0 0 50px rgba(255,226,74,.6), 7px 7px 0 #FF3DA8;
  animation: timesup .45s cubic-bezier(.2,1.6,.4,1) both; transform: rotate(-4deg); }
@keyframes timesup { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-4deg); opacity: 1; } }

/* Lobby: how to join (QR + address) and the room's name, Sneaky/Pancake */
.joinrow { display: flex; gap: 22px; align-items: center; margin-top: 6px; }
.qrtile { flex: none; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 3px var(--glow), 0 0 34px rgba(255,226,74,.35); line-height: 0; }
.qrtile svg { display: block; border-radius: 8px; }
.roomname { white-space: nowrap; line-height: 1.05; letter-spacing: 1px; }
.roomname .c1 { text-shadow: 0 0 18px rgba(46,233,255,.55); }
.roomname .c2 { text-shadow: 0 0 18px rgba(255,61,166,.55); }
.roomname .roomslash { display: inline-block; margin: 0 .04em; text-shadow: 0 0 16px rgba(255,226,74,.8); }

/* Phone join: the room's two words, Sneaky / Pancake, with word chips to tap */
.roompair { display: flex; align-items: center; gap: 8px; }
.roompair .input { min-width: 0; flex: 1; font-size: 19px; padding: 0 12px; text-transform: capitalize; }
.roompair .roomslash { font-family: var(--display); font-size: 30px; text-shadow: 0 0 12px rgba(255,226,74,.8); }
.roomchips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; }
.roomchip { height: 38px; padding: 0 14px; border-radius: 999px; border: 2px solid currentColor; background: rgba(255,255,255,.04); font: 800 16px/1 inherit; cursor: pointer; }
.roomchip.c1 { color: var(--cyan); } .roomchip.c2 { color: var(--mag); }
.roomok { display: inline-flex; align-items: center; gap: 8px; height: 38px; font-weight: 900; font-size: 19px; letter-spacing: .5px; }

/* ---------- "Last one's a rotten egg!" (common.js eggFx) ---------- */
.eggfx { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 6, 24, .78); animation: eggfx-in .25s ease-out both; }
.eggfx.out { animation: eggfx-in .35s ease-in reverse both; }
.eggfx-card { display: grid; justify-items: center; gap: 2.2vmin; }
.eggfx-say { background: var(--glow, #FFE24A); color: #0A0618; font-weight: 900; font-size: clamp(22px, 6vmin, 64px); padding: .35em .7em; border-radius: .7em; white-space: nowrap; box-shadow: 0 0 40px rgba(255, 226, 74, .45); transform: scale(0); animation: eggfx-bubble .45s .15s cubic-bezier(.2, 1.6, .4, 1) both; margin-bottom: 3vmin; }
.eggfx-av { position: relative; width: clamp(120px, 30vmin, 320px); aspect-ratio: 1; }
.eggfx-av > span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.eggfx-av svg.ic { width: 62%; height: 62%; position: relative; }
.eggfx-av .to svg.ic { position: absolute; left: 19%; top: 19%; }
.eggfx-av .to svg.body { transform-origin: 50% 92%; animation: eggfx-rock 1s 1.5s ease-in-out infinite; }
.eggfx-av .to svg.fume { opacity: 0; animation: eggfx-fume 1.8s ease-out infinite; }
.eggfx-av .to svg.f0 { animation-delay: 1.7s; } .eggfx-av .to svg.f1 { animation-delay: 2.1s; } .eggfx-av .to svg.f2 { animation-delay: 2.5s; }
.eggfx-av .from { animation: eggfx-wob .7s ease-in-out both, eggfx-popout .25s .95s ease-in both; }
.eggfx-av .crack { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: eggfx-show .01s .62s both, eggfx-show .01s 1.15s reverse both; }
.eggfx-av .crack path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: eggfx-draw .3s .62s ease-out both; }
.eggfx-av .to { transform: scale(0); animation: eggfx-popin .55s 1.1s cubic-bezier(.2, 1.6, .4, 1) both; }
.eggfx-av .ooze { position: absolute; left: -10%; right: -10%; top: 0; height: 0; border-radius: 0 0 45% 55% / 0 0 30% 40%; animation: eggfx-ooze 1.1s 1.35s cubic-bezier(.5, 0, .3, 1) both; }
.eggfx-av .puff { position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; opacity: 0; left: 42%; top: 9%; animation: eggfx-puff 1.6s ease-out both; }
.eggfx-av .p1 { animation-delay: 1.5s; } .eggfx-av .p2 { animation-delay: 1.8s; left: 27%; } .eggfx-av .p3 { animation-delay: 2.1s; left: 58%; } .eggfx-av .p4 { animation-delay: 2.5s; left: 36%; }
.eggfx-name { color: #F4F1FF; font-weight: 900; font-size: clamp(20px, 5vmin, 56px); margin-top: 1vmin; animation: eggfx-namewob .5s 1.2s ease-in-out both; }
@keyframes eggfx-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes eggfx-wob { 0%,100% { transform: rotate(0) } 15% { transform: rotate(-9deg) } 30% { transform: rotate(8deg) } 45% { transform: rotate(-7deg) } 60% { transform: rotate(6deg) scale(1.04) } 80% { transform: rotate(-3deg) scale(1.08, .94) } }
@keyframes eggfx-popout { to { transform: scale(1.25); opacity: 0; filter: blur(2px) } }
@keyframes eggfx-show { from { opacity: 0 } to { opacity: 1 } }
@keyframes eggfx-draw { to { stroke-dashoffset: 0 } }
@keyframes eggfx-popin { from { transform: scale(0) rotate(-20deg) } to { transform: scale(1) rotate(0) } }
@keyframes eggfx-ooze { 0% { height: 0 } 60% { height: 85% } 100% { height: 135% } }
@keyframes eggfx-rock { 0%,100% { transform: rotate(-7deg) } 50% { transform: rotate(7deg) } }
@keyframes eggfx-fume { 0% { opacity: 0; transform: translateY(9%) scaleY(.6) } 25% { opacity: 1 } 70% { opacity: .9 } 100% { opacity: 0; transform: translateY(-9%) scaleY(1.15) skewX(-8deg) } }
@keyframes eggfx-puff { 0% { opacity: 0; transform: translateY(0) scale(.4) } 20% { opacity: .9 } 100% { opacity: 0; transform: translateY(-260%) scale(1.6) } }
@keyframes eggfx-namewob { 0%,100% { transform: none } 25% { transform: translateX(-6px) } 50% { transform: translateX(5px) } 75% { transform: translateX(-3px) } }
@keyframes eggfx-bubble { from { transform: scale(0) } to { transform: scale(1) } }
@media (prefers-reduced-motion: reduce) {
  .eggfx * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .eggfx .to, .eggfx-say { transform: scale(1); } .eggfx .to svg.fume { opacity: 1; } .eggfx .ooze { height: 135%; } .eggfx .from { opacity: 0; }
}
