/* ============ YADA — neon party cards ============ */
:root {
  --bg: #0a0910;
  --bg-2: #110f19;
  --panel: #16131f;
  --panel-2: #1d1929;
  --line: #2a2438;
  --line-2: #3a3250;
  --text: #f4f0fa;
  --muted: #9a91ad;
  --dim: #6c6480;
  --pink: #ff2d95;
  --pink-hi: #ff6bb5;
  --pink-deep: #c4116c;
  --pink-glow: rgba(255, 45, 149, .55);
  --pink-soft: rgba(255, 45, 149, .12);
  --cyan: #5ef2ff;
  --lime: #b8ff5e;
  --card-white: #f7f4ee;
  --card-ink: #15121c;
  --card-black: #08070b;
  --radius: 16px;
  --display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 45, 149, .13), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(94, 242, 255, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink-hi); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(10, 9, 16, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.embed .topbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { position: relative; width: 26px; height: 26px; }
.brand-mark i { position: absolute; inset: 0 5px; border-radius: 4px; }
.brand-mark i:first-child { background: var(--card-white); transform: rotate(-14deg) translateX(-3px); }
.brand-mark i:last-child { background: var(--pink); transform: rotate(9deg) translateX(4px); box-shadow: 0 0 14px var(--pink-glow); }
.brand-word { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  color: var(--muted); font-weight: 600; font-size: 14px; border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.tabs a:hover { color: var(--text); background: var(--panel); }
.tabs a.active { color: var(--text); border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 18px -6px var(--pink-glow); }
.tab-showcase { margin-left: 6px; }

main { position: relative; z-index: 1; }

/* ---------- primitives ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line-2); background: var(--panel-2);
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .2s, opacity .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-ghost { background: transparent; }
.btn-danger:hover { border-color: #ff5d6c; color: #ff8a95; background: rgba(255, 93, 108, .08); }

.btn-neon {
  position: relative; border: none; color: #fff;
  background: linear-gradient(180deg, var(--pink-hi), var(--pink) 45%, var(--pink-deep));
  font-family: var(--display); font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 14px; font-size: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 30px -8px var(--pink-glow), 0 0 42px -10px var(--pink);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn-neon:hover:not([disabled]) { box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset, 0 14px 40px -6px var(--pink-glow), 0 0 64px -8px var(--pink); transform: translateY(-1px); }
.btn-neon[disabled] { background: var(--panel-2); color: var(--dim); box-shadow: 0 0 0 1px var(--line-2) inset; text-shadow: none; opacity: 1; }
.btn-neon .arrow { transition: transform .2s; }
.btn-neon:hover:not([disabled]) .arrow { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel);
}
.chip.pink { color: var(--pink-hi); border-color: rgba(255,45,149,.45); background: var(--pink-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.dot.live { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-hi); }
.h-display { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; margin: 0; }

/* ---------- playing cards ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 18px 18px 46px;
  font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
  aspect-ratio: 5 / 7; display: block;
}
.card-foot {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.card-foot .mini { width: 14px; height: 14px; position: relative; }
.card-foot .mini::before, .card-foot .mini::after { content: ""; position: absolute; inset: 0 3px; border-radius: 2px; }
.card-foot .mini::before { background: currentColor; opacity: .45; transform: rotate(-14deg) translateX(-2px); }
.card-foot .mini::after { background: var(--pink); transform: rotate(9deg) translateX(2px); }

.card-black {
  background: linear-gradient(160deg, #18151f, var(--card-black) 70%);
  color: #fff; font-size: clamp(20px, 2.1vw, 28px);
  border: 1px solid #2c2638;
  box-shadow: 0 30px 60px -30px #000, 0 0 0 1px rgba(255,45,149,.0);
}
.card-black .card-foot { color: #8c849c; }
.blank { display: inline-block; min-width: 3.2em; border-bottom: 3px solid var(--pink); transform: translateY(-.12em); }
.fill { color: var(--pink-hi); text-shadow: 0 0 18px rgba(255,45,149,.5); }
.pick-tag {
  position: absolute; right: 16px; bottom: 12px; font-family: var(--display); font-size: 13px; letter-spacing: .06em;
  background: var(--pink); color: #fff; border-radius: 8px; padding: 3px 8px; box-shadow: 0 0 16px var(--pink-glow);
}

.card-white {
  background: var(--card-white); color: var(--card-ink); font-size: clamp(16px, 1.25vw, 19px);
  border: 2px solid transparent; text-align: left; width: 100%;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 30px -22px #000;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .15s, background .15s;
}
.card-white .card-foot { color: #8f8898; }
button.card-white:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 40px -24px #000; }
.card-white.selected {
  border-color: var(--pink);
  background: linear-gradient(180deg, #fff, #ffe7f3);
  transform: translateY(-8px);
  box-shadow: 0 0 0 4px rgba(255,45,149,.25), 0 0 34px -2px var(--pink-glow), 0 26px 40px -24px #000;
}
.sel-badge {
  position: absolute; top: -12px; right: -12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #fff;
  font-family: var(--display); font-size: 16px; box-shadow: 0 0 18px var(--pink-glow), 0 0 0 3px var(--bg);
  animation: pop .25s cubic-bezier(.3,1.6,.5,1);
}
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }
.card-white.dimmed { opacity: .45; }

/* ---------- JOIN ---------- */
.join {
  min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(24px, 5vw, 72px) clamp(16px, 6vw, 96px);
}
.embed .join { min-height: 100vh; }
.join-hero .h-display { font-size: clamp(44px, 6.4vw, 104px); }
.join-hero .h-display em { font-style: normal; color: var(--pink); text-shadow: 0 0 28px var(--pink-glow), 0 0 2px #fff; }
.join-hero p { color: var(--muted); max-width: 46ch; font-size: 18px; margin: 18px 0 0; }
.fan { position: relative; height: 230px; margin-top: 40px; max-width: 520px; }
.fan .card { position: absolute; width: 160px; font-size: 16px; padding: 14px 14px 40px; }
.fan .card-black { font-size: 17px; left: 0; top: 10px; transform: rotate(-9deg); z-index: 1; }
.fan .f2 { left: 120px; top: 0; transform: rotate(2deg); z-index: 2; }
.fan .f3 { left: 240px; top: 18px; transform: rotate(11deg); z-index: 3; }
.fan .card-white { font-size: 15px; }

.join-panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(255,45,149,.06);
  max-width: 480px; width: 100%; justify-self: center;
}
.join-panel h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 6px 0 24px; }
.field { display: block; margin-bottom: 20px; }
.field-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 14px;
  padding: 15px 16px; font-size: 17px; transition: border-color .15s, box-shadow .2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft), 0 0 24px -8px var(--pink-glow); }
.code-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.code-boxes input {
  text-align: center; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); text-transform: uppercase;
  padding: 14px 0; aspect-ratio: 1 / 1.05;
}
.code-boxes input.filled { border-color: rgba(255,45,149,.6); color: var(--pink-hi); }
.avatars { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-opt {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg);
  display: grid; place-items: center; font-size: 20px; transition: border-color .15s, box-shadow .2s, transform .12s;
}
.avatar-opt[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft), 0 0 18px -4px var(--pink-glow); transform: translateY(-2px); }
.join-panel .btn-neon { width: 100%; margin-top: 8px; font-size: 20px; padding: 18px; }
.join-meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--dim); }
.err { color: #ff8a95; font-size: 13px; min-height: 18px; margin-top: 6px; }

/* ---------- shared game layout ---------- */
.game { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) 120px; max-width: 1480px; margin: 0 auto; }
.rail .card-black { aspect-ratio: 5 / 6; }
.rail { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.embed .rail { top: 20px; }
.round-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timer { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--pink-hi); }
.timer-track { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.timer-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-deep), var(--pink-hi)); box-shadow: 0 0 10px var(--pink); transition: width 1s linear; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 12px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.players li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.players li.me { background: var(--pink-soft); }
.players .av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-size: 15px; }
.players .pts { margin-left: auto; font-family: var(--mono); color: var(--muted); }
.players .tag { font-size: 10px; font-family: var(--mono); letter-spacing: .1em; padding: 2px 6px; border-radius: 6px; background: var(--pink); color: #fff; }
.players .status { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.players .status.done { background: var(--lime); box-shadow: 0 0 8px var(--lime); }

.stage-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stage-head h1 { font-size: clamp(26px, 2.6vw, 38px); }
.stage-head p { margin: 6px 0 0; color: var(--muted); }

.hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px clamp(16px, 3vw, 40px) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(10,9,16,.92) 30%);
}
.action-inner { width: 100%; max-width: 1480px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.action-hint { color: var(--muted); font-size: 14px; font-weight: 600; }
.action-hint b { color: var(--pink-hi); }

/* ---------- judging ---------- */
.submissions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sub {
  position: relative; text-align: left; border-radius: 20px; padding: 14px; border: 1.5px solid var(--line);
  background: var(--panel); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .2s, transform .18s;
}
.sub:hover { border-color: var(--line-2); transform: translateY(-3px); }
.sub-label { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.sub .card-white { aspect-ratio: auto; min-height: 120px; font-size: 18px; padding-bottom: 40px; }
.sub-preview { font-size: 14px; color: var(--muted); line-height: 1.4; padding: 2px 4px 0; }
.sub-preview .fill { font-weight: 700; }
.sub.selected { border-color: var(--pink); background: linear-gradient(180deg, rgba(255,45,149,.14), var(--panel)); box-shadow: 0 0 0 4px rgba(255,45,149,.18), 0 0 40px -10px var(--pink-glow); }
.sub.selected .sub-label { color: var(--pink-hi); }
.sub .crown { opacity: 0; transition: opacity .2s; }
.sub.selected .crown { opacity: 1; }
.sub.winner { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,45,149,.3), 0 0 70px -6px var(--pink-glow); }
.sub.loser { opacity: .35; filter: saturate(.4); }
.winner-name { display: none; font-weight: 700; color: var(--pink-hi); font-size: 14px; }
.sub.winner .winner-name { display: block; }

.czar-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--pink-soft); border: 1px solid rgba(255,45,149,.45); font-weight: 700; color: var(--pink-hi); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- ADMIN ---------- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 64px); }
.embed .admin { min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 22px 14px; background: rgba(17,15,25,.6); display: flex; flex-direction: column; gap: 4px; }
.side .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); margin: 14px 10px 6px; text-transform: uppercase; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.side a:hover { background: var(--panel); color: var(--text); }
.side a.on { background: var(--pink-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--pink); }
.side a .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--pink-hi); }
.side .stream-card { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.side .stream-card b { display: block; font-size: 15px; margin: 4px 0 2px; }

.admin-main { padding: 26px clamp(16px, 2.5vw, 36px) 60px; min-width: 0; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(26px, 2.4vw, 34px); }
.admin-head p { margin: 6px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--display); font-size: 32px; margin-top: 6px; line-height: 1; }
.stat .v.pink { color: var(--pink); text-shadow: 0 0 22px var(--pink-glow); }
.stat .s { font-size: 12px; color: var(--dim); margin-top: 6px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.search { flex: 1; min-width: 200px; max-width: 360px; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 38px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 14px; }
.search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.toolbar .spacer { flex: 1; }

.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
table.quotes { width: 100%; border-collapse: collapse; }
.quotes th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.quotes td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.quotes tr:last-child td { border-bottom: 0; }
.quotes tr { transition: background .15s; }
.quotes tbody tr:hover { background: rgba(255,255,255,.02); }
.quotes tr.is-hidden .q-text { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.2); }
.quotes tr.new-row { animation: flash 1.8s ease-out; }
@keyframes flash { from { background: rgba(255,45,149,.18); } to { background: transparent; } }
.who { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.who .av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.who b { display: block; font-size: 14px; }
.who small { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.q-text { font-weight: 600; font-size: 15px; max-width: 46ch; min-width: 220px; }
.q-text::before { content: "“"; color: var(--pink); margin-right: 1px; }
.q-text::after { content: "”"; color: var(--pink); }
.votes { font-family: var(--mono); color: var(--muted); font-size: 13px; white-space: nowrap; }

.cardtype { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.cardtype button { border: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); background: transparent; }
.cardtype .sw { width: 10px; height: 14px; border-radius: 2px; border: 1px solid var(--line-2); }
.cardtype .sw.b { background: #000; border-color: #555; }
.cardtype .sw.w { background: var(--card-white); }
.cardtype button[aria-pressed="true"].t-black { background: #000; color: #fff; box-shadow: 0 0 0 1px #4a4458; }
.cardtype button[aria-pressed="true"].t-white { background: var(--card-white); color: var(--card-ink); }

.toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 108px; }
.toggle .track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #2b2536; border: 1px solid var(--line-2); transition: background .2s, box-shadow .2s, border-color .2s; flex: none; }
.toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #8d859c; transition: transform .22s cubic-bezier(.3,1.4,.5,1), background .2s; }
.toggle[aria-checked="true"] { color: var(--pink-hi); }
.toggle[aria-checked="true"] .track { background: var(--pink); border-color: var(--pink-hi); box-shadow: 0 0 16px -2px var(--pink-glow); }
.toggle[aria-checked="true"] .track::after { transform: translateX(20px); background: #fff; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.empty { padding: 50px; text-align: center; color: var(--muted); }

.board-split { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
.preview-col { position: sticky; top: 88px; display: grid; gap: 14px; }
.embed .preview-col { top: 20px; }
.preview-col .card { max-width: 100%; }
.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-pair .card { font-size: 15px; padding: 14px 14px 38px; }
.deck-bars { display: grid; gap: 10px; }
.deck-bars .bar { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.deck-bars .bar span:last-child { font-family: var(--mono); color: var(--muted); text-align: right; }
.deck-bars .bar i { display: block; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; position: relative; }
.deck-bars .bar i b { position: absolute; inset: 0 auto 0 0; border-radius: 6px; transition: width .4s; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(5,4,8,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: 0 40px 100px -30px #000, 0 0 60px -30px var(--pink-glow); }
.modal h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.modal textarea { width: 100%; min-height: 110px; resize: vertical; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 600; }
.modal textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.modal .hint { font-size: 12px; color: var(--dim); margin-top: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-actions .btn-neon { font-size: 15px; padding: 12px 20px; }

/* toast */
#toast-root { position: fixed; z-index: 70; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #1e1a2a; border: 1px solid var(--line-2); border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px -20px #000; animation: rise .25s cubic-bezier(.2,1.4,.5,1); }
.toast button { border: 0; background: transparent; color: var(--pink-hi); font-weight: 700; padding: 0; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* ---------- SHOWCASE ---------- */
.showcase { padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 80px; max-width: 1640px; margin: 0 auto; }
.showcase-head { margin-bottom: 26px; }
.showcase-head h1 { font-size: clamp(30px, 3.4vw, 52px); }
.showcase-head p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.sc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 26px; }
.sc-tabs button { border: 1px solid var(--line-2); background: var(--panel); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.sc-tabs button[aria-pressed="true"] { color: var(--text); border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 18px -6px var(--pink-glow); }
.sc-stage { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.frame-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.frame-label b { color: var(--pink-hi); }
.browser { border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: #000; box-shadow: 0 50px 90px -40px #000, 0 0 0 1px rgba(255,45,149,.08); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #19161f; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3446; }
.lights i:first-child { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 460px; margin: 0 auto; height: 24px; border-radius: 7px; background: var(--bg); font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.desk-viewport { position: relative; width: 100%; overflow: hidden; }
.desk-viewport iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; background: var(--bg); }
.phone { width: 300px; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2b2733, #0d0c11); box-shadow: 0 0 0 1px #3c3647, 0 50px 90px -40px #000, 0 0 70px -40px var(--pink-glow); position: relative; }
.phone-screen { position: relative; width: 278px; height: 600px; border-radius: 36px; overflow: hidden; background: var(--bg); }
.phone-screen iframe { position: absolute; top: 36px; left: 0; width: 390px; height: 792px; border: 0; transform: scale(.7128); transform-origin: 0 0; }
.notch { position: absolute; z-index: 2; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1560px) {
  .board-split { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .preview-pair .card { aspect-ratio: auto; min-height: 150px; }
}
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sc-stage { grid-template-columns: 1fr; justify-items: center; }
  .sc-stage > div { width: 100%; }
  .sc-stage > .phone-col { width: auto; }
}

@media (max-width: 900px) {
  .join { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; min-height: auto; }
  .join-hero { text-align: center; }
  .join-hero p { margin-left: auto; margin-right: auto; font-size: 16px; }
  .fan { display: none; }
  .game { grid-template-columns: 1fr; gap: 18px; padding-bottom: 130px; }
  .rail { position: static; }
  .rail .panel.players-panel { display: none; }
  .rail .prompt-wrap { display: grid; grid-template-columns: 1fr; }
  .rail .card-black { aspect-ratio: auto; min-height: 170px; font-size: 22px; padding-bottom: 50px; }
  .admin { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; gap: 6px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side .label, .side .stream-card { display: none; }
  .side a { white-space: nowrap; }
  .action-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  .topbar { gap: 12px; padding: 10px 14px; }
  .brand-word { font-size: 18px; }
  .tabs a { padding: 7px 10px; font-size: 13px; }

  .hand { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hand .card-white { font-size: 15px; padding: 12px 12px 36px; border-radius: 13px; }
  .hand .card-foot { left: 12px; right: 12px; bottom: 10px; font-size: 8px; }
  .sel-badge { width: 28px; height: 28px; font-size: 14px; top: -9px; right: -7px; }
  .stage-head { margin-bottom: 14px; }
  .stage-head p { font-size: 14px; }
  .submissions { grid-template-columns: 1fr; gap: 12px; }
  .sub .card-white { min-height: 0; font-size: 17px; padding: 14px 14px 36px; }
  .action-bar .btn-neon { flex: 1; font-size: 16px; padding: 15px 16px; }
  .action-hint { font-size: 13px; }
  .action-inner { gap: 12px; }
  .stats { gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 26px; }
  .search { max-width: none; min-width: 100%; order: -1; }
  .toolbar .spacer { display: none; }
  /* table -> stacked cards */
  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  table.quotes, .quotes tbody { display: block; }
  .quotes thead { display: none; }
  .quotes tr { display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; padding: 14px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
  .quotes td { display: block; padding: 0; border: 0; }
  .quotes td.c-who { grid-column: 1; }
  .quotes td.c-votes { grid-column: 2; align-self: center; }
  .quotes td.c-quote { grid-column: 1 / -1; }
  .quotes td.c-type { grid-column: 1; }
  .quotes td.c-status { grid-column: 2; justify-self: end; align-self: center; }
  .quotes td.c-actions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
  .row-actions { justify-content: stretch; }
  .row-actions .btn { flex: 1; }
  .toggle { min-width: 0; }
  .q-text { max-width: none; }
  #toast-root { bottom: 110px; }
  .modal-actions .btn { flex: 1; }
}

/* buttons center their content by default — keep card text top-aligned */
button.card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }

/* ===================== LIVE GAME ADDITIONS ===================== */
.game-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 40px 16px; color: var(--muted); }
.game-loading h2 { color: var(--text); font-size: 30px; }
.game-loading p { max-width: 46ch; margin: 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.conn-banner { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 80; background: #2a1020; color: var(--pink-hi); border: 1px solid rgba(255,45,149,.5); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px -10px #000; }
.embed .conn-banner { top: 12px; }
.opt { font-weight: 500; color: var(--dim); font-size: 12px; margin-left: 6px; }
.timer.urgent { color: #fff; background: var(--pink); padding: 2px 8px; border-radius: 6px; box-shadow: 0 0 14px var(--pink-glow); }
.players li.off { opacity: .5; }
.players .pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players .offline { font-size: 10px; font-family: var(--mono); color: var(--dim); }
.dot.off { background: var(--dim); box-shadow: none; }
.dot.warn { background: #ffc24a; box-shadow: 0 0 10px #ffc24a; animation: pulse 1.2s infinite; }
.card-white.locked { cursor: default; }
button.card-white[disabled] { cursor: default; }
button.card-white[disabled]:hover { transform: none; }
.sub.mine:not(.selected):not(.winner) { border-style: dashed; border-color: var(--line-2); }
.sub[disabled] { cursor: default; }
.sub[disabled]:hover { transform: none; }
div.sub:hover { transform: none; }
.reveal-name { font-weight: 700; font-size: 14px; color: var(--muted); }
.reveal-name.won { color: var(--pink-hi); }
.vote-bar { position: relative; height: 22px; border-radius: 7px; background: var(--bg); overflow: hidden; font-size: 11px; font-family: var(--mono); font-weight: 700; color: var(--muted); }
.vote-bar i { position: absolute; inset: 0 auto 0 0; background: rgba(255,45,149,.28); }
.vote-bar span { position: relative; line-height: 22px; padding-left: 8px; }

.facedown { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card-back { background: repeating-linear-gradient(45deg, #1a1624 0 10px, #15121e 10px 20px); border: 1.5px dashed var(--line-2); display: grid; place-items: center; padding: 0; }
.card-back span { font-family: var(--display); font-size: 34px; color: var(--pink); text-shadow: 0 0 20px var(--pink-glow); }
.card-back.in { border: 1.5px solid var(--pink); background: linear-gradient(160deg, #2a1123, #120d18); box-shadow: 0 0 30px -10px var(--pink-glow); animation: pop .3s; }

/* lobby + game over */
.lobby { max-width: 980px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 80px; display: grid; gap: 28px; }
.lobby-card { text-align: center; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -40px #000; }
.lobby-code { display: flex; justify-content: center; gap: clamp(8px, 1.5vw, 14px); margin: 18px 0 10px; }
.lobby-code span { width: clamp(58px, 11vw, 96px); aspect-ratio: 1 / 1.1; display: grid; place-items: center; border-radius: 18px; background: var(--bg); border: 2px solid var(--pink); font-family: var(--display); font-size: clamp(34px, 7vw, 64px); color: var(--pink-hi); text-shadow: 0 0 24px var(--pink-glow); box-shadow: 0 0 30px -10px var(--pink-glow), inset 0 0 20px rgba(255,45,149,.08); }
.lobby-sub { color: var(--muted); font-size: 17px; margin: 8px 0 0; }
.lobby-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.lobby-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.lp { display: grid; justify-items: center; gap: 4px; padding: 18px 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-align: center; animation: pop .3s; }
.lp.me { border-color: var(--pink); background: linear-gradient(180deg, rgba(255,45,149,.12), var(--panel)); }
.lp.off { opacity: .5; }
.lp.empty { border-style: dashed; background: transparent; animation: none; }
.lp-av { font-size: 30px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); margin-bottom: 4px; }
.lp.empty .lp-av { color: var(--dim); font-family: var(--display); }
.lp b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp small { color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.leave { justify-self: center; }
.champ { font-size: clamp(30px, 5vw, 54px); margin-top: 12px; }
.final-card { max-width: 380px; margin: 22px auto 0; aspect-ratio: auto; min-height: 170px; text-align: left; font-size: 22px; }
.standings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.standings li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 16px; }
.standings li.me { border-color: var(--pink); }
.standings .rank { font-family: var(--display); color: var(--pink-hi); width: 24px; }
.standings .av { font-size: 22px; }
.standings .pts { margin-left: auto; font-family: var(--display); font-size: 20px; }

/* host create */
.host-create { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; padding: clamp(28px, 5vw, 72px) clamp(16px, 6vw, 96px); max-width: 1400px; margin: 0 auto; }
.host-intro .h-display { font-size: clamp(42px, 6vw, 92px); }
.host-intro .h-display em { font-style: normal; color: var(--pink); text-shadow: 0 0 28px var(--pink-glow); }
.host-intro > p { color: var(--muted); font-size: 18px; max-width: 48ch; margin: 18px 0 0; }
.howto { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 520px; }
.howto li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.howto b { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--pink); font-family: var(--display); font-weight: 400; box-shadow: 0 0 14px var(--pink-glow); }
.mini-h { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 30px 0 10px; }
.room-list { display: grid; gap: 8px; max-width: 520px; }
.room-pill { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); text-decoration: none; }
.room-pill:hover { border-color: var(--pink); }
.room-pill b { font-size: 18px; color: var(--pink-hi); }
.room-pill span { color: var(--muted); font-size: 14px; }
.room-pill .go { margin-left: auto; color: var(--text); font-weight: 600; }
.host-form { justify-self: stretch; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-sm { padding: 10px 12px; font-size: 15px; border-radius: 11px; }
textarea.input { resize: vertical; font-family: inherit; }

/* dashboard */
.code-btn { font: inherit; font-family: var(--display); color: var(--pink); background: none; border: 0; padding: 0 4px; letter-spacing: .06em; text-shadow: 0 0 22px var(--pink-glow); border-radius: 10px; }
.code-btn:hover { background: var(--pink-soft); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions .btn-neon { font-size: 16px; padding: 14px 22px; }
.stat .v small { font-size: 16px; color: var(--dim); font-family: var(--body); margin-left: 2px; }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.host-players { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.host-players li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.host-players li:hover { background: var(--bg-2); }
.host-players li.off { opacity: .5; }
.host-players .av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); }
.host-players .pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-players .tag { font-size: 10px; font-family: var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--pink); color: #fff; }
.host-players .pts { margin-left: auto; font-family: var(--mono); color: var(--muted); font-size: 12px; white-space: nowrap; }
.host-players .pstate { font-family: var(--mono); font-size: 10px; color: var(--dim); text-transform: uppercase; width: 44px; text-align: right; }
.icon-x { border: 0; background: transparent; color: var(--dim); width: 26px; height: 26px; border-radius: 8px; }
.icon-x:hover { background: rgba(255,93,108,.12); color: #ff8a95; }
.empty-li { color: var(--dim); font-weight: 500 !important; }
.invite { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.invite span { flex: 1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-connect { display: flex; gap: 8px; margin-bottom: 14px; }
.tw-connect .input { flex: 1; min-width: 0; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.seg-sm button { padding: 6px 9px; font-size: 12px; }
.tw-toggles { display: grid; gap: 10px; margin-bottom: 12px; }
.tw-toggles .toggle { min-width: 0; text-align: left; }
.tw-toggles .toggle[disabled] { opacity: .45; cursor: not-allowed; }
.cmds { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.cmds summary { cursor: pointer; font-weight: 700; color: var(--text); }
.cmds ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cmds .mono { color: var(--pink-hi); font-size: 12px; }
.feed { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; display: grid; gap: 4px; }
.feed-h { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.feed-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.feed-empty { color: var(--dim); }
.feed-err { color: #ff8a95; }
.set-form .field { margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 0; color: var(--muted); }
.quotes td.c-num { color: var(--dim); font-size: 12px; width: 40px; }

@media (max-width: 1280px) { .panels { grid-template-columns: 1fr 1fr; } #settings-panel { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .host-create { grid-template-columns: 1fr; }
  .host-intro { text-align: center; }
  .host-intro > p, .howto, .room-list { margin-left: auto; margin-right: auto; }
  .howto li { text-align: left; }
  .panels { grid-template-columns: 1fr; }
  .facedown { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .quotes td.c-num { display: none; }
  .head-actions { width: 100%; }
  .head-actions > * { flex: 1; }
  .lobby-players { grid-template-columns: repeat(2, 1fr); }
  .field-row { gap: 10px; }
}

/* ===================== OBS OVERLAY ===================== */
body.overlay-mode .topbar { display: none; }
body.overlay-mode.transparent, body.overlay-mode.transparent::before { background: transparent !important; }
body.overlay-mode.transparent::before { display: none; }
.overlay { min-height: 100vh; display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 40px; align-items: start; }
.ov-join { background: rgba(10,9,16,.88); border: 2px solid var(--pink); border-radius: 26px; padding: 26px; box-shadow: 0 0 60px -14px var(--pink-glow); text-align: center; }
.ov-label { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ov-url { font-size: 20px; margin: 6px 0 14px; color: var(--text); font-weight: 700; }
.ov-code { display: flex; justify-content: center; gap: 8px; }
.ov-code span { width: 62px; height: 72px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); border: 2px solid var(--pink); font-family: var(--display); font-size: 42px; color: var(--pink-hi); text-shadow: 0 0 20px var(--pink-glow); }
.ov-stage { background: rgba(10,9,16,.86); border: 1px solid var(--line-2); border-radius: 26px; padding: 26px; display: grid; gap: 16px; max-width: 900px; }
.ov-top { display: flex; justify-content: space-between; align-items: center; }
.ov-top .timer { font-size: 22px; }
.ov-prompt { aspect-ratio: auto; min-height: 180px; font-size: 32px; }
.ov-title { font-family: var(--display); font-size: 40px; color: var(--pink-hi); text-shadow: 0 0 26px var(--pink-glow); }
.ov-sub { color: var(--muted); font-size: 20px; font-weight: 600; }
.ov-sub .mono { color: var(--pink-hi); }
.ov-avatars { display: flex; flex-wrap: wrap; gap: 14px; }
.ov-avatars span { display: grid; justify-items: center; font-size: 40px; gap: 4px; }
.ov-avatars b { font-size: 15px; color: var(--muted); }
.ov-answers { display: grid; gap: 10px; }
.ov-ans { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--card-white); color: var(--card-ink); font-weight: 700; font-size: 20px; }
.ov-ans b { font-family: var(--display); font-weight: 400; color: #fff; background: var(--pink); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.ov-ans span { position: relative; z-index: 1; }
.ov-ans i { position: absolute; inset: 0 auto 0 0; background: rgba(255,45,149,.22); transition: width .5s; }
.ov-ans em { margin-left: auto; font-style: normal; font-family: var(--mono); position: relative; z-index: 1; color: var(--pink-deep); }
@media (max-width: 900px) { .overlay { grid-template-columns: 1fr; padding: 16px; gap: 16px; } .ov-prompt { font-size: 22px; } .ov-title { font-size: 28px; } .ov-ans { font-size: 16px; } .ov-code span { width: 52px; height: 60px; font-size: 34px; } }
.btn-neon { white-space: nowrap; }
.action-hint { flex: 1; min-width: 0; text-align: right; }
@media (max-width: 900px) { .action-hint { text-align: left; } }
@media (max-width: 640px) {
  #toast-root { top: 70px; bottom: auto; }
  .embed #toast-root { top: 16px; }
  .toast { padding: 9px 14px; font-size: 13px; }
}
.server-old pre { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; text-align: left; color: var(--pink-hi); font-size: 13px; white-space: pre-wrap; max-width: 100%; }
