:root {
  --bg: #0b0710;
  --bg2: #170d22;
  --ink: #f4ecdf;
  --muted: #a99bb4;
  --gold: #e8c46a;
  --gold-hi: #fff1c1;
  --gold-lo: #9c7426;
  --shadow: #e0405a;
  --light: #5fd4c4;
  --chaos: #b07cff;
  --custom: #e8c46a;
  --line: rgba(232, 196, 106, .22);
  --glass: rgba(26, 15, 36, .72);
  --r: 18px;
  --display: "Cinzel", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% -10%, #2a1438 0%, var(--bg2) 38%, var(--bg) 75%) fixed, var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }

#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(90% 70% at 50% 45%, transparent 55%, rgba(0,0,0,.65) 100%); }

#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100%;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }

.view { animation: viewIn .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } }

/* ---------------------------------------------------------------- home */
.center-view { display: flex; flex-direction: column; align-items: center; padding-top: 10vh; text-align: center; }
.center-view .btn { min-width: 220px; }
.crest { width: 150px; filter: drop-shadow(0 0 22px rgba(232,196,106,.45)); animation: float 5s ease-in-out infinite; }
.crest-mask { width: 100%; display: block; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

.title { font: 900 clamp(34px, 10.5vw, 56px)/1 var(--display); letter-spacing: .06em; margin: 18px 0 6px;
  white-space: nowrap; filter: drop-shadow(0 2px 10px rgba(232,196,106,.25)); }
/* the gradient lives on each letter: background-clip:text does not reach transformed children */
.title span { display: inline-block; animation: letter .9s cubic-bezier(.2,.9,.3,1.3) both;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.title span:nth-child(1){animation-delay:.05s}.title span:nth-child(2){animation-delay:.1s}
.title span:nth-child(3){animation-delay:.15s}.title span:nth-child(4){animation-delay:.2s}
.title span:nth-child(5){animation-delay:.25s}.title span:nth-child(6){animation-delay:.3s}
.title span:nth-child(7){animation-delay:.35s}.title span:nth-child(8){animation-delay:.4s}
.title span:nth-child(9){animation-delay:.45s}.title span:nth-child(10){animation-delay:.5s}
@keyframes letter { from { opacity: 0; transform: translateY(24px) rotateX(80deg); } }
.sub { color: var(--muted); margin: 0 0 28px; letter-spacing: .04em; }

.panel { width: 100%; padding: 20px; border-radius: var(--r); background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,241,193,.06); }
label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; }
input { width: 100%; font: 600 18px var(--body); color: var(--ink); background: rgba(0,0,0,.35);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,196,106,.15); }
#in-code { font: 700 22px var(--display); letter-spacing: .4em; text-transform: uppercase; text-align: center; }
.split { display: flex; gap: 10px; margin-top: 14px; }
.split .btn { flex: 1; }
.join-row { display: flex; gap: 10px; }
.join-row input { flex: 1; min-width: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err { color: #ff8b9c; min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; overflow: hidden; border: 0; border-radius: 14px; padding: 14px 18px;
  font: 800 15px var(--body); letter-spacing: .04em; cursor: pointer; color: var(--ink);
  transition: transform .15s, box-shadow .25s, opacity .25s, filter .25s; }
.btn:active { transform: scale(.97); }
.btn.gold { color: #2a1a05; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #c9a14a);
  box-shadow: 0 8px 26px rgba(232,196,106,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.btn.ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.btn.small { padding: 10px 14px; font-size: 13px; }
.btn.big { padding: 18px; font-size: 18px; font-family: var(--display); letter-spacing: .08em; }
.btn:disabled { filter: grayscale(.85) brightness(.55); cursor: not-allowed; box-shadow: none; }
.btn .shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%); }
.btn.ready .shine { animation: shine 2.4s ease-in-out infinite; }
.btn.ready { animation: pulseGold 2.4s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
@keyframes pulseGold { 50% { box-shadow: 0 8px 40px rgba(232,196,106,.6), 0 0 0 6px rgba(232,196,106,.12); } }

/* ---------------------------------------------------------------- room */
.room-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.chip small { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.chip b { font: 700 18px var(--display); letter-spacing: .25em; color: var(--gold); }
.chip.quiet { color: var(--muted); }
.chip.static { cursor: default; }
.chip.icon { padding: 9px; }
.chip.icon .ico { width: 20px; height: 20px; color: var(--gold); }
.head-right { display: flex; gap: 8px; align-items: center; }
.wordmark { font: 900 22px var(--display); letter-spacing: .06em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.here b { font: 800 17px var(--body); letter-spacing: 0; color: var(--ink); }
.here b.tick { display: inline-block; animation: tick .5s cubic-bezier(.2,.9,.3,1.6); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 9px rgba(74,222,128,0); } }

.me-bar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 0; padding: 11px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--muted);
  font: 600 14px var(--body); cursor: pointer; text-align: left; }
.me-bar b { color: var(--ink); font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-bar em { font-style: normal; color: var(--gold); font-weight: 800; font-size: 13px; }

.line { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; padding: 11px; border-radius: 14px;
  border: 1px dashed var(--line); }
.line-label { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line-list { display: flex; flex-wrap: wrap; gap: 6px; }
.line-list span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700;
  animation: chipIn .45s cubic-bezier(.2,1.4,.3,1); }
@keyframes chipIn { from { transform: scale(.5); } }
.line-list span.me { background: rgba(232,196,106,.18); color: var(--gold-hi); }
.line-list span.away { opacity: .45; }
#dlg-name input { margin-top: 4px; }
.ico { width: 16px; height: 16px; color: var(--muted); }

.table-wrap { display: flex; justify-content: center; padding: 24px 0 4px; }
.table { --size: min(88vw, 380px); position: relative; width: var(--size); height: var(--size); }
.ring { position: absolute; inset: 14%; width: 72%; height: 72%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: none; stroke: rgba(232,196,106,.12); stroke-width: 3; }
.ring-fg { fill: none; stroke: url(#g-gold); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 578; stroke-dashoffset: 578; transition: stroke-dashoffset .9s cubic-bezier(.3,.9,.3,1);
  filter: drop-shadow(0 0 6px rgba(232,196,106,.6)); }
.felt { position: absolute; inset: 22%; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #3b1c4d, #1d0f29 70%);
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 0 0 1px var(--line), 0 0 60px rgba(120,60,160,.25);
  transition: box-shadow .8s; }
.table.full .felt { box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 0 0 2px var(--gold), 0 0 80px rgba(232,196,106,.45); }
.count { font: 900 46px/1 var(--display); color: var(--gold); }
.count span { font-size: 22px; color: var(--muted); }
.count b.tick { display: inline-block; animation: tick .5s cubic-bezier(.2,.9,.3,1.6); }
@keyframes tick { from { transform: scale(1.6); color: var(--gold-hi); } }
.count-label { margin-top: 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.deck { position: absolute; width: 44px; height: 62px; opacity: 0; transition: opacity .3s; }
.deck i { position: absolute; inset: 0; border-radius: 6px; border: 1px solid var(--gold);
  background: repeating-linear-gradient(45deg, #2b1438 0 6px, #3a1d4b 6px 12px); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.deck i:nth-child(2) { transform: translate(2px, -2px); }
.deck i:nth-child(3) { transform: translate(4px, -4px); }
.table.dealing .deck { opacity: 1; }
.table.dealing .deck i { animation: shuffle .35s ease-in-out 3 alternate; }
.table.dealing .deck i:nth-child(2) { animation-delay: .08s; }
.table.dealing .deck i:nth-child(3) { animation-delay: .16s; }
@keyframes shuffle { to { transform: translateX(18px) rotate(10deg); } }
.table.dealing .count, .table.dealing .count-label { opacity: 0; }

.seat { --x: 0px; --y: 0px; position: absolute; left: 50%; top: 50%; width: 76px; margin: -38px 0 0 -38px;
  transform: translate(var(--x), var(--y)); display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.token { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font: 700 20px var(--display); color: var(--ink); }
.seat.empty .token { border: 2px dashed rgba(232,196,106,.35); animation: breathe 2.2s ease-in-out infinite; }
.seat.empty .token::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(232,196,106,.35); }
@keyframes breathe { 50% { border-color: rgba(232,196,106,.7); transform: scale(1.05); } }
.seat.filled .token { background: radial-gradient(circle at 35% 30%, var(--hue-hi), var(--hue) 70%);
  box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 0 2px rgba(255,241,193,.35); }
.seat.pop .token { animation: pop .7s cubic-bezier(.2,1.4,.3,1); }
@keyframes pop { 0% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.15); } }
.seat.pop .token::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold);
  animation: ripple .9s ease-out forwards; }
@keyframes ripple { to { inset: -26px; opacity: 0; } }
.seat.me .token { box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 0 3px var(--gold), 0 0 18px rgba(232,196,106,.55); }
.seat.away .token { filter: grayscale(1) brightness(.55); }
.seat.away .token::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--muted); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crown { position: absolute; top: -12px; right: -6px; font-size: 16px; filter: drop-shadow(0 2px 3px #000); }
.seen-mark { position: absolute; bottom: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--light); color: #062a25; font: 900 12px/20px var(--body); text-align: center;
  animation: pop .5s cubic-bezier(.2,1.4,.3,1); }
.seat .nm { max-width: 76px; font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.seat.empty .nm { color: var(--muted); font-weight: 600; }
.kick { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: #3a1d2a; color: #ff8b9c; font: 800 13px/22px var(--body); cursor: pointer; padding: 0; }

#flyers { position: absolute; inset: 0; pointer-events: none; }
.flyer { position: absolute; left: 50%; top: 50%; width: 34px; height: 48px; margin: -24px 0 0 -17px; border-radius: 5px;
  border: 1px solid var(--gold); background: repeating-linear-gradient(45deg, #2b1438 0 5px, #3a1d4b 5px 10px);
  box-shadow: 0 6px 14px rgba(0,0,0,.6); }

.status { text-align: center; color: var(--muted); min-height: 1.5em; margin: 10px 0 14px; font-size: 15px; }
.status b { color: var(--gold); }
.host-bar { display: flex; gap: 10px; align-items: stretch; }
.host-bar .big { flex: 1; }

.cast { margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); padding: 14px; }
.cast summary { cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cast ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cast li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.25); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* ---------------------------------------------------------------- reveal */
.stage { perspective: 1400px; display: flex; justify-content: center; padding: 10px 0 18px; }
.card3d { position: relative; width: min(84vw, 340px); aspect-ratio: 5 / 7.4; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3,1.25,.4,1); cursor: pointer; outline: none; }
.card3d.arrive { animation: arrive 1s cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes arrive { from { transform: translateY(-60vh) rotate(-28deg) scale(.4); opacity: 0; } }
.card3d.flipped { transform: rotateY(180deg); }
.card3d:not(.flipped):hover { transform: rotateY(-8deg) rotateX(4deg); }
.face { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.back { border: 2px solid var(--gold); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(232,196,106,.18), transparent 60%),
              repeating-linear-gradient(45deg, #24112f 0 14px, #2f1640 14px 28px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 8px rgba(0,0,0,.25), inset 0 0 0 9px var(--line); }
.back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,241,193,.18) 50%, transparent 65%);
  animation: sheen 3.5s ease-in-out infinite; }
@keyframes sheen { from { transform: translateX(-100%); } 60%, to { transform: translateX(100%); } }
.back-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.back-art svg { width: 62%; min-width: 150px; filter: drop-shadow(0 0 18px rgba(232,196,106,.5)); animation: float 4s ease-in-out infinite; }
.back-art span { font: 700 14px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }

.front { --c: var(--light); transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center;
  justify-content: space-evenly; padding: 22px; text-align: center; border: 2px solid var(--c);
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), #140b1c;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px color-mix(in srgb, var(--c) 35%, transparent); }
.front.shadow { --c: var(--shadow); } .front.light { --c: var(--light); }
.front.chaos { --c: var(--chaos); } .front.custom { --c: var(--custom); }
.team { font: 800 11px var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--c);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.sigil { width: 38%; margin: 0; color: var(--c); filter: drop-shadow(0 0 16px var(--c)); }
.sigil svg { width: 100%; display: block; }
.card3d.flipped .sigil { animation: sigil 1.1s .45s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes sigil { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }
.front h2 { font: 900 clamp(24px, 7vw, 30px)/1.1 var(--display); margin: 0; letter-spacing: .03em;
  background: linear-gradient(180deg, #fff, var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blurb { margin: 0; color: #d9cde3; font-size: 14px; line-height: 1.5; }
.know { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.know li { padding: 11px; border-radius: 12px; font-size: 14px; font-weight: 700; text-align: left;
  background: rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.card3d.flipped .know li { animation: rise .6s cubic-bezier(.2,.9,.3,1) both; }
.card3d.flipped .know li:nth-child(1) { animation-delay: .8s; }
.card3d.flipped .know li:nth-child(2) { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.reveal-actions { display: flex; gap: 10px; }
.reveal-actions .btn { flex: 1; }
#v-reveal .host-bar { justify-content: center; margin-top: 4px; }
#v-reveal .host-bar .btn { flex: 1; }

/* ---------------------------------------------------------------- dialog, toast, burst */
dialog { border: 1px solid var(--line); border-radius: var(--r); background: #160c20; color: var(--ink);
  padding: 0; width: min(92vw, 420px); box-shadow: 0 30px 90px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(5,2,8,.7); backdrop-filter: blur(4px); }
dialog[open] { animation: viewIn .35s cubic-bezier(.2,.8,.2,1); }
.dlg { padding: 20px; }
.dlg h3 { font: 700 20px var(--display); margin: 0 0 14px; color: var(--gold); }
.opt { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 500;
  font-size: 14px; color: var(--ink); padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; }
.opt input { width: auto; margin-top: 3px; accent-color: var(--gold); }
.custom { display: grid; gap: 8px; }
.custom input { font-size: 15px; padding: 11px; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20;
  transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 999px; background: #2a1a05; color: var(--gold-hi);
  border: 1px solid var(--gold); font-weight: 700; font-size: 14px;
  white-space: nowrap; opacity: 0; visibility: hidden; transition: transform .45s cubic-bezier(.2,1.2,.3,1), opacity .3s, visibility 0s .45s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s cubic-bezier(.2,1.2,.3,1), opacity .3s; }

.burst { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- host tools, how to play */
#host-bar { flex-wrap: wrap; }
#host-bar .big { flex: 1 1 100%; }
#host-bar .small, #host-bar-2 .small { flex: 1; }
.chip.icon.b-help .ico { color: var(--gold); }

#dlg-help { width: min(94vw, 520px); max-height: 88vh; max-height: 88dvh; }
#dlg-help[open] { display: flex; }
.dlg.help { display: flex; flex-direction: column; min-height: 0; width: 100%; padding: 0; }
.help-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid var(--line); }
.help-head h3 { margin: 0; }
.help-head .chip { font-size: 22px; line-height: 1; width: 40px; height: 40px; justify-content: center; padding: 0; color: var(--muted); }
.help-body { overflow-y: auto; padding: 4px 20px 20px; font-size: 15px; line-height: 1.55; color: #d9cde3;
  -webkit-overflow-scrolling: touch; }
.help-body .lead { font-size: 16px; color: var(--ink); }
.help-body h4 { font: 700 15px var(--display); letter-spacing: .05em; color: var(--gold); margin: 20px 0 6px; }
.help-body p { margin: 0 0 8px; }
.help-body b { color: var(--ink); }
.help-body .muted { color: var(--muted); font-size: 14px; }
.wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wins li { display: flex; gap: 10px; align-items: baseline; padding: 11px; border-radius: 12px; background: rgba(0,0,0,.28); }
.wins .dot { position: relative; top: -1px; }
.roles { margin: 0; display: grid; gap: 4px; }
.roles dt { font-weight: 800; color: var(--ink); margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--c); }
.roles dt small { font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-left: 6px; }
.roles dd { margin: 0; padding-left: 15px; }

/* the table header holds four things on a phone: let the wordmark scale, keep the chips tight */
.room-head .wordmark { font-size: clamp(16px, 5.2vw, 22px); white-space: nowrap; }
.room-head .head-right { gap: 6px; }
.room-head .chip.icon { padding: 8px; }
.room-head .here { padding: 8px 11px; gap: 6px; }
@media (max-width: 360px) { .here small { display: none; } }

/* ---------------------------------------------------------------- the Regicide cast */
:root { --hunter: #f08a3c; --crown: #5fd4c4; }
.front.crown { --c: var(--crown); } .front.assassins { --c: var(--shadow); }
.front.jester { --c: var(--chaos); } .front.executioner { --c: var(--hunter); }

.king-banner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; padding: 11px;
  border-radius: 14px; border: 1px solid rgba(232,196,106,.55); background: rgba(232,196,106,.1);
  font-size: 15px; color: var(--ink); animation: viewIn .5s cubic-bezier(.2,.8,.2,1) both; }
.king-banner svg { width: 26px; height: 26px; flex: none; color: var(--gold); filter: drop-shadow(0 0 8px rgba(232,196,106,.7)); }
.king-banner b { color: var(--gold-hi); font-weight: 800; }

.hosttag { position: absolute; top: -9px; right: -10px; padding: 2px 6px; border-radius: 999px; font: 800 9px var(--body);
  letter-spacing: .1em; background: var(--gold); color: #2a1a05; box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.kingmark { position: absolute; top: -16px; left: 50%; width: 26px; height: 26px; margin-left: -13px; color: var(--gold);
  filter: drop-shadow(0 2px 3px #000); }
