@font-face {
  font-family: "Cinzel";
  font-weight: 500 700;
  font-display: swap;
  src: url("/cinzel-500.woff2") format("woff2");
}
:root {
  --bg: #0b0e14;
  --bg2: #10141d;
  --panel: #161b26;
  --panel2: #1d2431;
  --line: #2a323f;
  --text: #e8eef6;
  --muted: #8894a6;
  --good: #4c8dff;
  --good-bg: #16305c;
  --evil: #ff5665;
  --evil-bg: #4a1820;
  --gold: #f5c451;
  --gold2: #b8862f;
  --green: #6ee7a0;
  --party: #37d7c4;
  --wood: #4a3728;
  --wood2: #2e2118;
  --felt: #1f3d34;
  --parch: #e8d9b5;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(90,110,190,.16) 0%, transparent 60%),
    radial-gradient(1200px 700px at 50% -10%, #182033, var(--bg));
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
/* faint parchment/noise texture overlay */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nav, main { position: relative; z-index: 1; }
h1, h2, .brand, .center-phase { font-family: "Cinzel", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }

/* ---- nav ---- */
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: rgba(12,16,22,.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.nav .links { display: flex; gap: 6px; }
.nav .links a {
  color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 8px; font-weight: 600;
}
.nav .links a:hover { color: var(--text); background: var(--panel2); }
.nav .links a.active { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.nav .spacer { flex: 1; }
.nav-stats { display: flex; gap: 18px; }
.nav-stats .s { text-align: center; }
.nav-stats .s b { font-size: 17px; display: block; line-height: 1.1; }
.nav-stats .s label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

main { max-width: 1180px; margin: 0 auto; padding: 22px 24px 60px; }
h2 { margin: 0 0 14px; font-size: 17px; }
h3 { margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
code { background: #0a0d13; padding: 1px 6px; border-radius: 5px; color: #cfe0ff; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, monospace; }

/* ---- game layout ---- */
.game-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
@media (max-width: 920px) { .game-grid { grid-template-columns: 1fr; } }

.arena { position: relative; padding: 14px 14px 18px; }
.arena, .arena * { user-select: none; -webkit-user-select: none; }
/* padded frame so seats (which sit on the ellipse edge) never clip out */
.table-wrap { position: relative; padding: 56px 66px 40px; }

/* timer ring, top-left */
.timer { position: absolute; top: 14px; left: 14px; width: 54px; height: 54px; z-index: 6; }
.timer svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 5; }
.timer .track { stroke: #2a3550; }
.timer .prog { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .12s linear, stroke .3s; }
.timer span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

@keyframes pulse { 50% { opacity: .45; } }

/* doom / rebellion track, top-right */
.doom { position: absolute; top: 14px; right: 16px; z-index: 6; text-align: right; }
.doom-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #c98a8a; margin-bottom: 5px; font-weight: 700; }
.doom-pips { display: flex; gap: 5px; }
.doom-pip {
  width: 17px; height: 17px; border-radius: 4px; transform: rotate(45deg);
  background: #241a1a; border: 1px solid #4a3030;
  display: flex; align-items: center; justify-content: center;
}
.doom-pip.lit { background: radial-gradient(circle at 40% 30%, #ff8088, #c11f2e); border-color: #ff9aa2; box-shadow: 0 0 8px rgba(255,60,80,.7); }
.doom-pip.skull { transform: none; border-radius: 5px; color: #8a6a6a; font-size: 12px; width: 19px; height: 19px; }
.doom-pip.skull.lit { color: #fff; background: radial-gradient(circle at 40% 30%, #ff8088, #a01020); animation: pulse .9s infinite; }

/* video-game quest track along the bottom, like an adventure map */
.quest-track { display: flex; gap: 0; justify-content: center; align-items: flex-start; margin-top: 34px; position: relative; }
.quest-node { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.quest-node::before { /* trail between nodes */
  content: ""; position: absolute; top: 30px; left: -50%; right: 50%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold2) 0 6px, transparent 6px 12px); opacity: .5;
}
.quest-node:first-child::before { display: none; }
.q-ring {
  width: 60px; height: 60px; border-radius: 50%; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #2c3440, #1a2029);
  border: 3px solid #55402090; box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 0 10px rgba(0,0,0,.4);
  color: var(--parch);
}
.q-num { font-size: 22px; font-weight: 800; font-family: "Cinzel", Georgia, serif; line-height: 1; }
.q-label { font-size: 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.q-face { font-size: 26px; }
.q-fails { font-size: 9px; color: rgba(255,255,255,.7); margin-top: 1px; }
.q-idx { font-size: 10px; color: var(--muted); margin-top: 6px; letter-spacing: .03em; }
.quest-node.current .q-ring { border-color: var(--gold); box-shadow: 0 0 16px rgba(245,196,81,.6), inset 0 0 10px rgba(0,0,0,.4); }
.quest-node.success .q-ring { background: radial-gradient(circle at 50% 35%, #2f66c4, #143163); border-color: var(--good); box-shadow: 0 0 14px rgba(76,141,255,.5); }
.quest-node.fail .q-ring { background: radial-gradient(circle at 50% 35%, #b23140, #5c1720); border-color: var(--evil); box-shadow: 0 0 14px rgba(255,86,101,.5); }

/* legend with token swatches */
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .lg {
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; font-style: normal;
}
.legend .lg.tok-crown { background: radial-gradient(circle at 40% 30%, #ffe08a, #b8862f); box-shadow: inset 0 0 0 1px #7a5a1e; }
.legend .lg.tok-shield { background: radial-gradient(circle at 40% 30%, #5fe6d6, #1a9b8c); }
.legend .lg.tok-yes { background: var(--good-bg); color: var(--green); border: 1px solid var(--good); }
.legend .lg.tok-no { background: var(--evil-bg); color: var(--evil); border: 1px solid var(--evil); }
.legend .swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.legend .swatch.good { background: var(--good); }
.legend .swatch.evil { background: var(--evil); }
.admin-tag { font-size: 11px; font-weight: 800; color: #ffd27a; background: #3a2a12; border: 1px solid var(--gold2); border-radius: 6px; padding: 3px 9px; letter-spacing: .04em; margin-right: 16px; }

/* physical tokens laid in front of a player */
.tray {
  position: absolute; transform: translate(-50%,-50%); z-index: 4;
  display: flex; pointer-events: none;
}
.tray .tok:not(:first-child) { margin-left: -7px; }
.tok {
  width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  box-shadow: 0 3px 7px rgba(0,0,0,.55); border: 1.5px solid rgba(0,0,0,.4);
  animation: dealin .3s ease;
}
.tok svg { width: 15px; height: 15px; }
.tok.leader { background: radial-gradient(circle at 40% 30%, #ffe08a, #b8862f); }
.tok.leader svg { fill: #5a3f12; }
.tok.team { background: radial-gradient(circle at 40% 30%, #5fe6d6, #14877a); }
.tok.team svg { fill: #06342e; }
.tok.vote.down { background: radial-gradient(circle at 40% 30%, #3a4560, #202838); color: #8fa0c8; }
.tok.vote.yes { background: radial-gradient(circle at 40% 30%, #4c8dff, #1b3f86); color: #eaf1ff; }
.tok.vote.no { background: radial-gradient(circle at 40% 30%, #ff6472, #a01e2c); color: #fff; }
.tok.quest { width: 24px; height: 32px; border-radius: 6px; }
.tok.quest.down { background: linear-gradient(160deg, #3a2e52, #241a38); color: #7a6aa0; }
.tok.quest.ok { background: linear-gradient(160deg, #1c4aa0, #123163); border-color: var(--good); }
.tok.quest.fail { background: linear-gradient(160deg, #a02636, #5c1720); border-color: var(--evil); }

/* ---- round table ---- */
/* the round table: a carved wooden ring around green quest-felt */
.table {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
  aspect-ratio: 1 / 0.9;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #2a5147 0%, #1c3a31 60%, #16302a 78%,
      #4a3728 78%, #5a4331 88%, #3a2b1f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(245,196,81,.35),
    inset 0 6px 30px rgba(0,0,0,.55),
    inset 0 0 90px rgba(0,0,0,.35),
    0 20px 60px rgba(0,0,0,.55);
  border: 2px solid #2a1f16;
}
/* gold inlay ring separating felt from the wooden rim */
.table::before {
  content: ""; position: absolute; inset: 21%; border-radius: 50%;
  border: 1px dashed rgba(245,196,81,.22);
}
.table::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 2px solid rgba(245,196,81,.15);
  box-shadow: inset 0 0 24px rgba(0,0,0,.4);
}
.table-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 58%; text-align: center;
}
.crest { margin: 0 auto 6px; width: 34px; height: 34px; color: var(--gold); opacity: .85; }
.crest svg { width: 34px; height: 34px; }
.center-phase { font-size: 15px; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.center-sub { font-size: 12px; color: var(--parch); opacity: .8; margin-top: 3px; min-height: 15px; }
.reveal { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }

.cards { display: flex; gap: 8px; justify-content: center; margin-top: 10px; min-height: 62px; }
.pcard {
  width: 42px; height: 58px; border-radius: 8px; border: 1px solid #33405e;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(160deg, #2a3860, #1b2340);
  box-shadow: 0 4px 10px rgba(0,0,0,.4); animation: dealin .3s ease;
}
.pcard.success { background: linear-gradient(160deg, #1c4aa0, #123163); border-color: var(--good); }
.pcard.fail { background: linear-gradient(160deg, #a02636, #5c1720); border-color: var(--evil); }
.pcard.back { color: #52618c; }
@keyframes dealin { from { transform: translateY(-14px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- seats ---- */
.seat {
  position: absolute; transform: translate(-50%,-50%);
  width: 108px; text-align: center;
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 25px;
  background: radial-gradient(circle at 50% 35%, #3a4152, #232a38);
  border: 3px solid #57493a; position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 0 8px rgba(0,0,0,.4);
}
.seat.good .avatar { border-color: var(--good); background: radial-gradient(circle at 50% 35%, #23406e, #16233f); }
.seat.evil .avatar { border-color: var(--evil); background: radial-gradient(circle at 50% 35%, #4a1c24, #35141a); }
.seat.merlin .avatar { border-color: var(--gold); box-shadow: 0 0 12px rgba(245,196,81,.55), inset 0 0 8px rgba(0,0,0,.4); }
.nameplate {
  margin-top: 7px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
  background: linear-gradient(#2a2114, #1c160d); color: var(--parch);
  border: 1px solid var(--gold2); border-radius: 6px; padding: 2px 9px;
  box-shadow: 0 2px 5px rgba(0,0,0,.5); display: inline-block;
  max-width: 118px; overflow: hidden; text-overflow: ellipsis;
}
.nameplate .bot-dot { color: var(--gold); margin-left: 4px; font-size: 10px; opacity: .8; }
.seat .face { line-height: 1; }
/* king / nominator pins (proper SVG icons above the avatar) */
.seat .pin { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 3; }
.seat .pin svg { width: 22px; height: 22px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.seat .pin.king svg { fill: var(--gold); }
.seat .pin.nom { color: #dbe3ef; }
/* pending-action indicator (what this player currently owes) */
.seat .pending {
  position: absolute; top: 26px; left: -6px; width: 24px; height: 24px; border-radius: 7px;
  background: #141b2b; border: 1.5px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center; z-index: 3;
  animation: pulse 1.2s infinite; box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.seat .pending svg { width: 15px; height: 15px; }
.seat-name { font-weight: 700; font-size: 13px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-id { font-size: 10px; color: var(--muted); font-family: ui-monospace, monospace; }
.seat-badges { margin-top: 3px; display: flex; gap: 3px; justify-content: center; }
.badge { font-size: 9px; padding: 1px 6px; border-radius: 999px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.badge.good { background: var(--good-bg); color: #d5e4ff; }
.badge.evil { background: var(--evil-bg); color: #ffd6da; }
.badge.bot { background: #29313f; color: var(--muted); }
.badge.quest { background: rgba(55,215,196,.16); color: var(--party); }
.vote-chip {
  position: absolute; top: 30px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  border: 2px solid var(--bg);
}
.vote-chip.yes { background: var(--good-bg); color: var(--green); }
.vote-chip.no { background: var(--evil-bg); color: var(--evil); }

/* ---- banner ---- */
.banner { padding: 13px 18px; border-radius: 12px; margin: 14px auto 0; max-width: 640px; text-align: center; font-weight: 700; font-size: 16px; }
.banner.good { background: var(--good-bg); border: 1px solid var(--good); }
.banner.evil { background: var(--evil-bg); border: 1px solid var(--evil); }

/* ---- round + history side panel ---- */
.kv { display: flex; gap: 8px; margin: 6px 0; font-size: 14px; }
.kv b { color: var(--muted); font-weight: 600; min-width: 74px; }
.history { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
.hitem { font-size: 12px; padding: 8px 10px; border-radius: 8px; background: var(--panel2); border-left: 3px solid var(--line); }
.hitem.success { border-left-color: var(--good); }
.hitem.fail { border-left-color: var(--evil); }
.hitem.reject { border-left-color: #5b6472; opacity: .85; }
.hcrown { display: inline-block; vertical-align: -2px; }
.hcrown svg { width: 13px; height: 13px; fill: var(--gold); }
.hvotes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.hv { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: #212c37; }
.hv.yes { color: var(--green); } .hv.no { color: #ffadb4; }

/* ---- scoreboard page ---- */
table.scores { width: 100%; border-collapse: collapse; }
table.scores th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.scores td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.scores td.rank { color: var(--muted); width: 44px; font-weight: 700; font-size: 16px; }
table.scores td.pts { text-align: right; font-weight: 800; color: var(--gold); font-size: 18px; }
table.scores tr.top1 td.rank { color: var(--gold); }
table.scores .tid { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.medal { font-size: 18px; }

/* ---- register page ---- */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .reg-grid { grid-template-columns: 1fr; } }
.field { display: flex; gap: 8px; margin: 12px 0; }
.field input { flex: 1; background: #0a0d13; border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: 9px; font-size: 15px; }
button { background: var(--good); color: #04122b; border: 0; border-radius: 9px; padding: 10px 18px; font-weight: 800; cursor: pointer; font-size: 15px; }
button:hover { filter: brightness(1.08); }
pre { background: #0a0d13; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
.api ol { padding-left: 20px; } .api li { margin: 8px 0; }
.api table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.api td, .api th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.saved { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: var(--good-bg); border: 1px solid var(--good); font-size: 13px; }

/* ---- play page ---- */
.tid { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* right-sidebar "You" panel */
#youPanel { display: flex; flex-direction: column; gap: 10px; }
#youPanel h2 { margin: 0; }
#youPanel input { width: 100%; background: #0a0d13; border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: 9px; }
.yp-name { display: flex; flex-direction: column; gap: 2px; }
.role-tag { font-weight: 800; padding: 7px 12px; border-radius: 8px; text-align: center; }
.role-tag.good { background: var(--good-bg); border: 1px solid var(--good); color: #d5e4ff; }
.role-tag.evil { background: var(--evil-bg); border: 1px solid var(--evil); color: #ffd6da; }
.role-tag.merlin { background: #3a2a12; border: 1px solid var(--gold); color: #ffe6a8; }
.role-tag.assassin { background: #2a0d12; border: 1px solid #d0454f; color: #ffd0d5; }
.seat.assassin .avatar { border-color: #d0454f; box-shadow: 0 0 12px rgba(208,69,79,.6), inset 0 0 8px rgba(0,0,0,.4); }
.seat.slain .avatar { filter: grayscale(1) brightness(.6); }
.seat.slain::after { content: "🩸"; position: absolute; top: -6px; right: -6px; font-size: 18px; }
.allies { color: var(--muted); font-size: 13px; }
.yp-status { color: var(--parch); font-size: 14px; line-height: 1.5; }
.yp-turn { font-size: 14px; color: var(--gold); background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; min-height: 20px; }
button.big { padding: 12px 20px; font-size: 15px; border-radius: 11px; font-weight: 800; }

/* on-table choice tokens at your seat — same look as a resting token */
.you-actions { position: absolute; transform: translate(-50%,-50%); z-index: 7; display: flex; gap: 6px; }
.choose-tok {
  width: 27px; height: 27px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; cursor: pointer;
  border: 1.5px solid rgba(0,0,0,.4); box-shadow: 0 3px 7px rgba(0,0,0,.55);
  transition: transform .1s, opacity .1s;
}
.choose-tok:hover { transform: scale(1.16); }
.choose-tok.vote.yes { background: radial-gradient(circle at 40% 30%, #5aa0ff, #1b3f86); }
.choose-tok.vote.no { background: radial-gradient(circle at 40% 30%, #ff6472, #a01e2c); }
.choose-tok.quest { width: 24px; height: 32px; border-radius: 6px; }
.choose-tok.quest.ok { background: linear-gradient(160deg, #1c4aa0, #123163); }
.choose-tok.quest.bad { background: linear-gradient(160deg, #a02636, #5c1720); }
.choose-tok.confirm { background: radial-gradient(circle at 40% 30%, #ffe08a, #b8862f); color: #04122b; }
.choose-tok.dim { opacity: .3; }
.choose-tok.chosen { outline: 3px solid var(--gold); outline-offset: 2px; opacity: 1; }
.choose-tok.confirm.ready { box-shadow: 0 0 9px var(--gold), 0 3px 7px rgba(0,0,0,.55); animation: softpulse 2s ease-in-out infinite; }
.choose-tok.confirm.disabled { opacity: .3; cursor: not-allowed; }
@keyframes softpulse { 50% { box-shadow: 0 0 2px var(--gold), 0 3px 7px rgba(0,0,0,.55); } }

/* interactive seat states on the play board */
.seat.pickable { cursor: pointer; }
.seat.pickable .avatar { transition: transform .1s, box-shadow .1s; }
.seat.pickable:hover .avatar { transform: scale(1.09); box-shadow: 0 0 0 2px var(--gold), 0 6px 14px rgba(0,0,0,.5); }
.seat.selected .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(245,196,81,.6); }
.seat .pick-check { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #04122b; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; z-index: 4; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.seat.you .nameplate { border-color: var(--party); box-shadow: 0 0 0 1px var(--party), 0 2px 5px rgba(0,0,0,.5); }
.seat .me { margin-left: 5px; font-size: 9px; color: var(--party); font-weight: 800; text-transform: uppercase; }

/* ---- multi-table arena ---- */
main.wide { max-width: 1500px; }
.arenas { display: grid; grid-template-columns: 1fr; gap: 20px; }
.arenas.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .arenas.two { grid-template-columns: 1fr; } }
.arena-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 2px; min-height: 22px;
}
.table-no {
  font-family: "Cinzel", Georgia, serif; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
}
.pot-tag {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.pot-tag.live { color: #ffe6a8; background: #3a2a12; border-color: var(--gold2); }
.idle-card { text-align: center; padding: 44px 18px; }
.log-fold { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.log-fold summary {
  cursor: pointer; color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700;
}
.log-fold .history { margin-top: 10px; max-height: 300px; }

/* ---- competition strip on the scoreboard ---- */
.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quarter {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px; text-align: center;
}
.quarter.past { opacity: .5; }
.quarter.now { border-color: var(--gold); box-shadow: 0 0 14px rgba(245,196,81,.25); }
.quarter .q-h { font-family: "Cinzel", Georgia, serif; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.quarter .q-p { font-size: 22px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.quarter .q-t { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.quarter .q-n { font-size: 10px; color: var(--muted); margin-top: 4px; }
table.scores td.num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
table.scores td.pts { font-variant-numeric: tabular-nums; }
.live-dot { color: var(--green); margin-left: 6px; font-size: 10px; vertical-align: 2px; }

/* ---- play page extras ---- */
.warn { background: var(--evil-bg); border: 1px solid var(--evil); color: #ffd6da; border-radius: 9px; padding: 9px 12px; font-size: 13px; }
.yp-pot { font-size: 12.5px; color: var(--muted); }
.rules { padding-left: 20px; margin: 8px 0; }
.rules li { margin: 7px 0; font-size: 13.5px; color: var(--muted); }
.api th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
