:root {
  --sand: #e9d3ac; --stone: #c9b28c; --ink: #1b120c; --blood: #9b1c1c; --crimson: #7d1515;
  --gold: #e6c066; --gold2: #b8862f; --bone: #f4ead6; --shadow: rgba(18, 10, 5, 0.78);
  --serif: 'Trajan Pro', 'Cinzel', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120b06; color: var(--bone); font-family: var(--sans); user-select: none; }
#stage, #stage canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hidden { display: none !important; }
kbd { font-family: var(--sans); font-size: 0.82em; background: rgba(255, 240, 210, 0.14); border: 1px solid rgba(230, 192, 102, 0.55); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--gold); white-space: nowrap; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.panel { position: absolute; top: 18px; padding: 10px 14px 8px; background: linear-gradient(180deg, rgba(25, 14, 8, 0.82), rgba(25, 14, 8, 0.55)); border: 1px solid rgba(230, 192, 102, 0.35); border-radius: 3px; min-width: min(300px, 30vw); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
#me { left: 18px; }
#foe { right: 18px; text-align: right; }
.panel.center { left: 50%; transform: translateX(-50%); min-width: 0; text-align: center; padding: 8px 22px; }
#bout-title { font-family: var(--serif); letter-spacing: 0.22em; color: var(--gold); font-size: 15px; }
#fame { font-size: 12px; letter-spacing: 0.2em; opacity: 0.85; margin-top: 2px; }
#fame b { color: var(--bone); font-size: 15px; margin-left: 4px; }
.who { font-family: var(--serif); letter-spacing: 0.18em; font-size: 15px; color: var(--gold); margin-bottom: 6px; }
.bar { position: relative; height: 16px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(230, 192, 102, 0.4); margin-bottom: 5px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(180deg, #d23a2a, #8f1a14); transition: width 0.12s; }
.bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 220, 160, 0.5); transition: width 0.7s 0.25s; z-index: -0; }
.bar.hp i { z-index: 1; }
.bar.poise { height: 10px; }
.bar.poise i { background: linear-gradient(180deg, #cfd6de, #7d8894); }
#foe .bar i, #foe .bar b { left: auto; right: 0; }
.lbl { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.18em; opacity: 0.78; }
.p-row { display: flex; gap: 12px; align-items: center; }
.p-col { flex: 1; min-width: 0; }
/* wound doll: each part darkens as it is cut; a dropped sword, shield or a knee down shows dashed */
.doll { width: 30px; height: 48px; flex: none; overflow: visible; }
.doll circle, .doll rect { fill: rgba(244, 234, 214, 0.18); stroke: rgba(244, 234, 214, 0.75); stroke-width: 1.6; }
.doll path { fill: none; stroke: rgba(244, 234, 214, 0.7); stroke-width: 4; stroke-linecap: round; }
.doll .w1 { stroke: #f0c060; fill: rgba(240, 192, 96, 0.35); }
.doll .w2 { stroke: #f07a3a; fill: rgba(240, 122, 58, 0.45); }
.doll .w3 { stroke: #e3321f; fill: rgba(227, 50, 31, 0.55); }
.doll path.w1, .doll path.w2, .doll path.w3 { fill: none; }
.doll .gone { stroke-dasharray: 2 3; opacity: 0.6; }
/* one verdict per exchange, top centre, replacing the last */
#verdict { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; white-space: nowrap; }
#verdict::before { content: ''; position: absolute; inset: -14px -40px; z-index: -1; background: radial-gradient(ellipse at center, rgba(12, 6, 3, 0.78), rgba(12, 6, 3, 0.35) 55%, rgba(12, 6, 3, 0) 75%); }
#verdict b { display: block; font-family: var(--serif); font-size: 40px; letter-spacing: 0.1em; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 22px rgba(0, 0, 0, 0.75); }
#verdict span { display: inline-block; margin-top: 2px; font-size: 15px; letter-spacing: 0.06em; padding: 3px 12px; background: rgba(18, 10, 5, 0.6); border-radius: 3px; }
#verdict span:empty { display: none; }
#verdict.good b { color: var(--gold); } #verdict.bad b { color: #ff6a50; } #verdict.ok b { color: var(--bone); }
#verdict.show { animation: verdict 1.8s ease-out forwards; }
@keyframes verdict { 0% { opacity: 0; transform: translateX(-50%) scale(1.25); } 8% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
/* the tutorial: one panel, bottom centre */
#tut { top: 50%; left: 18px; transform: translateY(-50%); width: min(340px, 28vw); min-width: 260px; text-align: left; padding: 14px 18px; }
#tut-step { font-family: var(--serif); letter-spacing: 0.22em; color: var(--gold); font-size: 14px; }
#tut-text { font-size: 18px; line-height: 1.35; margin: 6px 0 4px; }
#tut-text small { font-size: 13px; opacity: 0.7; }
#tut-tip { min-height: 20px; font-size: 14px; color: #ffb38a; }
#tut-tip.good { color: #9fe08a; }
#tut-hold { height: 5px; margin: 8px 0 4px; width: 100%; background: rgba(255, 255, 255, 0.12); }
#tut-hold i { display: block; height: 100%; width: 0; background: var(--gold); }
#tut-pips { display: flex; gap: 8px; margin-top: 6px; padding-left: 2px; }
#tut-pips i { width: 10px; height: 10px; border: 1px solid var(--gold); transform: rotate(45deg); }
#tut-pips i.on { background: var(--gold); }
#practice { top: auto; bottom: 22px; left: 18px; min-width: 0; display: flex; gap: 18px; padding: 8px 16px; }
#practice div { text-align: center; }
#practice b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold); }
#practice span { font-size: 10px; letter-spacing: 0.16em; opacity: 0.7; }
.vs-w { font-size: 11px; letter-spacing: 0.14em; opacity: 0.8; min-height: 14px; }
.vs-w b { color: #ff9d7a; font-weight: 600; }
#hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 15px; letter-spacing: 0.06em; padding: 8px 18px; background: var(--shadow); border-radius: 3px; border: 1px solid rgba(230, 192, 102, 0.25); max-width: 80vw; text-align: center; transition: opacity 0.3s; }
#hint:empty { opacity: 0; }
#ctrl-pill { position: absolute; bottom: 22px; right: 18px; font-size: 12px; padding: 6px 12px; background: var(--shadow); border-radius: 20px; display: flex; gap: 8px; align-items: center; }
#ctrl-pill i, .ctrl-status i { width: 9px; height: 9px; border-radius: 50%; background: #e0a030; display: inline-block; }
#ctrl-pill.phone i, .ctrl-status.phone i { background: #5ad06a; box-shadow: 0 0 8px #5ad06a; }

#vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; background: radial-gradient(ellipse at center, rgba(120, 0, 0, 0) 45%, rgba(150, 0, 0, 0.85) 100%); }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; background: radial-gradient(ellipse at center, rgba(255, 245, 220, 0.6), rgba(255, 230, 180, 0) 70%); }
#popups { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--serif); font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, 0.7); animation: pop 1.1s ease-out forwards; }
.pop.big { font-size: 46px; color: var(--gold); }
.pop.mid { font-size: 30px; color: var(--bone); }
.pop.dmg { font-size: 26px; color: #ffb199; }
.pop.bad { font-size: 30px; color: #ff5a4a; }
.pop.sub { font-size: 18px; color: var(--bone); opacity: 0.9; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(1.5); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%) scale(0.95); } }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; z-index: 10; }
#loading { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #3b2414, #120b06); }
.load-box { text-align: center; width: 340px; }
.sigil { width: 64px; height: 64px; margin: 0 auto 18px; border: 2px solid var(--gold); border-radius: 50%; position: relative; animation: spin 3s linear infinite; }
.sigil::before, .sigil::after { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; background: var(--gold); transform-origin: center; }
.sigil::before { transform: translateX(-50%) rotate(40deg); } .sigil::after { transform: translateX(-50%) rotate(-40deg); }
@keyframes spin { to { transform: rotate(360deg); } }
#load-text { font-family: var(--serif); letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px; }
.load-bar { height: 4px; background: rgba(255, 255, 255, 0.1); } .load-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s; }

#title { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.1fr); gap: 4vw; align-items: center; padding: clamp(16px, 5svh, 64px) 5vw; background: linear-gradient(90deg, rgba(18, 10, 5, 0.92) 0%, rgba(18, 10, 5, 0.75) 45%, rgba(18, 10, 5, 0.55) 100%); }
.t-left { display: flex; flex-direction: column; justify-content: center; max-height: 100%; max-width: 440px; gap: clamp(10px, 2.4svh, 26px); }
.t-left > header { display: grid; gap: clamp(2px, 0.8svh, 8px); }
.t-kicker { letter-spacing: 0.35em; font-size: 12px; color: var(--gold); opacity: 0.85; }
/* the logo sizes to the shorter of width and height, so it never pushes the menu off a laptop screen */
h1 { font-family: var(--serif); font-size: clamp(46px, min(7.5vw, 13svh), 104px); line-height: 0.9; margin: 0; letter-spacing: 0.04em; color: var(--bone); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.6); }
h1 span { display: block; color: var(--gold); }
.t-sub { font-size: clamp(14px, 2.1svh, 17px); opacity: 0.85; max-width: 420px; line-height: 1.4; margin: 0; }
.menu { display: flex; flex-direction: column; gap: clamp(5px, 1svh, 8px); max-width: 420px; }
/* side-by-side buttons share one width, whatever their labels */
.menu.row { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; justify-content: center; max-width: none; }
.mi { pointer-events: auto; cursor: pointer; font-family: var(--serif); font-size: clamp(15px, 2.2svh, 17px); letter-spacing: 0.14em; text-align: left; padding: clamp(7px, 1.4svh, 12px) 18px; color: var(--bone); background: rgba(255, 240, 210, 0.06); border: 1px solid rgba(230, 192, 102, 0.3); border-radius: 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; transition: background 0.15s, border-color 0.15s; }
.mi small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; opacity: 0.6; }
.mi b { color: var(--gold); }
.mi.primary { background: linear-gradient(180deg, #8e1d17, #5e100c); border-color: var(--gold); }
.mi:hover, .mi.focus { border-color: var(--gold); background: rgba(230, 192, 102, 0.18); }
.mi.primary:hover, .mi.primary.focus { background: linear-gradient(180deg, #a8251d, #721510); box-shadow: 0 0 0 2px rgba(230, 192, 102, 0.5); }
.t-connect { display: grid; gap: 8px; }
.t-connect-row { display: flex; align-items: center; gap: 14px; padding-left: 19px; }
.ctrl-status { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-size: 14px; }
.ctrl-status small { grid-column: 2; opacity: 0.6; font-size: 12px; }
.rumble-status { font-size: 12px; opacity: 0.7; }
.t-right { justify-self: end; width: min(520px, 100%); max-height: 100%; background: rgba(18, 10, 5, 0.7); border: 1px solid rgba(230, 192, 102, 0.3); padding: clamp(14px, 2.6svh, 24px) 24px; border-radius: 3px; }
.t-right h3 { font-family: var(--serif); letter-spacing: 0.25em; color: var(--gold); margin: 0 0 clamp(8px, 1.6svh, 14px); font-size: 16px; }
/* how to play: an emblem and a few words per idea; the second line drops on short screens */
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.6svh, 14px) 18px; }
.howto li { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.3; opacity: 0.95; }
.howto li span { opacity: 0.7; }
.howto svg { grid-row: span 2; width: 32px; height: 32px; padding: 6px; border: 1px solid rgba(230, 192, 102, 0.45); background: rgba(125, 21, 21, 0.45); fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.howto b { font-family: var(--serif); color: var(--gold); font-size: 13.5px; letter-spacing: 0.04em; font-weight: 600; }
.t-keys { margin-top: clamp(10px, 1.8svh, 16px); display: grid; grid-template-columns: auto 1fr 1fr; gap: 5px 14px; align-items: center; font-size: 12.5px; border-top: 1px solid rgba(230, 192, 102, 0.35); padding-top: clamp(8px, 1.4svh, 12px); }
.t-keys > span:nth-child(3n+1) { opacity: 0.65; }
.t-keys b { font-family: var(--serif); letter-spacing: 0.18em; font-size: 11px; color: var(--gold); font-weight: 400; opacity: 0.55; }
body[data-ctl="wand"] .t-keys b.c-wand, body[data-ctl="grip"] .t-keys b.c-grip { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.t-more { margin-top: clamp(8px, 1.4svh, 12px); font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 8px; }
.t-more summary { cursor: pointer; font-family: var(--serif); letter-spacing: 0.2em; font-size: 12px; color: var(--gold); opacity: 0.8; }
.t-more p { margin: 6px 0 0; line-height: 1.45; opacity: 0.8; }
.shield-ico { display: inline-block; width: 13px; height: 15px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); vertical-align: -2px; }
table.controls { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.controls th { text-align: left; font-size: 11px; letter-spacing: 0.18em; color: var(--gold); padding: 6px 8px; border-bottom: 1px solid rgba(230, 192, 102, 0.35); }
.controls td { padding: 5px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.controls td:first-child { font-weight: 600; opacity: 0.9; white-space: nowrap; }

.modal { display: flex; align-items: center; justify-content: center; background: rgba(12, 6, 3, 0.55); }
.card { background: linear-gradient(180deg, rgba(36, 20, 10, 0.96), rgba(22, 12, 6, 0.96)); border: 1px solid var(--gold2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 4px rgba(230, 192, 102, 0.08); padding: clamp(16px, 3.6svh, 26px) 34px; min-width: 460px; max-width: 760px; max-height: calc(100svh - 32px); text-align: center; border-radius: 3px; }
.card.wide { min-width: 560px; }
.card h2 { font-family: var(--serif); letter-spacing: 0.12em; font-size: clamp(26px, 4.6svh, 34px); margin: clamp(2px, 0.8svh, 6px) 0 clamp(6px, 1.4svh, 10px); color: var(--bone); }
.c-kicker { letter-spacing: 0.3em; font-size: 12px; color: var(--gold); }
.card p { opacity: 0.85; line-height: 1.45; margin: clamp(6px, 1.6svh, 14px) auto; max-width: 600px; }
.hint { font-size: 13px; opacity: 0.7; }
.ladder { display: flex; justify-content: center; gap: 6px; margin: clamp(8px, 1.8svh, 14px) 0; flex-wrap: wrap; }
.ladder .rung { font-size: 11px; letter-spacing: 0.08em; padding: 6px 8px; border: 1px solid rgba(230, 192, 102, 0.3); min-width: 92px; opacity: 0.55; }
.ladder .rung.done { opacity: 0.9; background: rgba(230, 192, 102, 0.15); }
.ladder .rung.done::before { content: '\2713  '; color: var(--gold); }
.ladder .rung.next { opacity: 1; border-color: var(--gold); box-shadow: 0 0 12px rgba(230, 192, 102, 0.35); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: clamp(8px, 1.8svh, 14px) 0 clamp(10px, 2.2svh, 18px); }
.stats:empty { display: none; }
.stats div { background: rgba(255, 240, 210, 0.05); padding: clamp(4px, 1svh, 8px) 8px; border: 1px solid rgba(230, 192, 102, 0.15); }
.stats b { display: block; font-family: var(--serif); font-size: clamp(18px, 3svh, 22px); color: var(--gold); }
.stats span { font-size: 11px; letter-spacing: 0.14em; opacity: 0.7; }
.fame-big { font-family: var(--serif); letter-spacing: 0.25em; font-size: 16px; color: var(--gold); }
.fame-big b { font-size: clamp(30px, 5.4svh, 40px); color: var(--bone); margin-left: 8px; }
.card .menu.row .mi { justify-content: center; letter-spacing: 0.1em; white-space: nowrap; }
.card p .lesson { display: inline-block; margin-top: 8px; color: #f1c96a; font-size: 0.92em; }

/* ---------- readability + controller wording ---------- */
.hp-num { float: right; font-family: var(--sans); font-weight: 700; letter-spacing: 0; color: var(--bone); font-size: 15px; }
#foe .hp-num, .vs-p.right .hp-num { float: none; }
.mouse-note { font-size: 12.5px; opacity: 0.65; margin: 12px 0 0; }
.controls th.c-wand, .controls th.c-grip { opacity: 0.55; }
body[data-ctl="wand"] .controls th.c-wand, body[data-ctl="grip"] .controls th.c-grip { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.why { color: #ffb38a; font-size: 15px; margin: 4px 0 12px; }
.pause-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; text-align: left; margin-top: clamp(10px, 2svh, 16px); font-size: 13px; }
#pause .menu .mi { justify-content: center; }
.pause-ctl div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); padding: 4px 0; }
.pause-ctl span { opacity: 0.7; } .pause-ctl b { font-weight: 600; }
#pause .menu { margin: 0 auto; }
.hint.small { font-size: 12px; opacity: 0.55; max-width: 560px; margin: 4px auto clamp(8px, 1.8svh, 14px); }

/* ---------- versus lobby ---------- */
.lobby { width: min(820px, 92vw); }
.slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: clamp(8px, 2svh, 18px) 0 clamp(6px, 1.2svh, 10px); }
.sl-vs { font-family: var(--serif); font-size: 28px; color: var(--gold); letter-spacing: 0.1em; }
.slot { --team: #e0503c; border: 1px dashed rgba(230, 192, 102, 0.35); padding: clamp(10px, 2svh, 18px) 14px clamp(10px, 1.8svh, 16px); background: rgba(255, 240, 210, 0.04); transition: all 0.25s; min-height: clamp(150px, 26svh, 190px); }
.slot.t1 { --team: #4a9cf0; }
.slot.joined { border: 1px solid var(--team); background: linear-gradient(180deg, color-mix(in srgb, var(--team) 22%, transparent), rgba(255, 240, 210, 0.03)); box-shadow: 0 0 24px color-mix(in srgb, var(--team) 35%, transparent); }
.sl-crest { width: clamp(46px, 8svh, 64px); height: clamp(54px, 9.4svh, 74px); margin: 0 auto clamp(4px, 1.2svh, 10px); background: rgba(255, 255, 255, 0.08); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); display: flex; align-items: center; justify-content: center; padding-bottom: 12px; transition: background 0.25s; }
.slot.joined .sl-crest { background: var(--team); }
.sl-crest span { font-family: var(--serif); font-size: 22px; color: var(--bone); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.sl-team { font-family: var(--serif); letter-spacing: 0.3em; font-size: 18px; color: var(--team); }
.sl-ctl { font-size: 13px; margin: 8px 0 4px; opacity: 0.85; }
.slot:not(.joined) .sl-ctl { opacity: 0.5; }
.sl-state { font-size: 13px; opacity: 0.8; line-height: 1.5; }
.slot:not(.joined) .sl-state { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.4; } }
.lobby-go { margin: 6px auto 0; width: 60%; }
.go-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(230, 192, 102, 0.4); }
.go-bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* ---------- versus HUD ---------- */
#vs-hud { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.vs-divider { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: linear-gradient(180deg, #2a170c, #120b06); box-shadow: 0 0 0 1px rgba(230, 192, 102, 0.35), 0 0 18px rgba(0, 0, 0, 0.7); }
.vs-p { --team: #e0503c; min-width: min(300px, 22vw); }
.vs-p.t1 { --team: #4a9cf0; }
.vs-p.t0 { left: 18px; } .vs-p.t1 { right: 18px; text-align: right; }
.vs-p .who { color: var(--team); }
.vs-p.right .bar i, .vs-p.right .bar b { left: auto; right: 0; }
.vs-p .hp-num { margin: 0 8px; }
.pips { display: inline-flex; gap: 5px; vertical-align: middle; }
.pips i { width: 11px; height: 11px; border: 1px solid var(--gold); transform: rotate(45deg); display: inline-block; }
.pips i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.vs-clock { top: 18px; }
#vs-round { font-family: var(--serif); letter-spacing: 0.22em; color: var(--gold); font-size: 13px; }
#vs-time { font-family: var(--serif); font-size: 26px; letter-spacing: 0.06em; }
#vs-time.low { color: #ff6a50; }
.vs-vig { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; opacity: 0; background: radial-gradient(ellipse at center, rgba(120, 0, 0, 0) 45%, rgba(150, 0, 0, 0.85) 100%); }
.vs-vig.r { left: 50%; }
.pop.vs-call { font-size: 64px; z-index: 5; }
.pop.vs-call.t0 { color: #ff7a5e; } .pop.vs-call.t1 { color: #7ab8ff; }
.vs-table { width: 100%; border-collapse: collapse; margin: clamp(8px, 1.8svh, 16px) 0 clamp(10px, 2svh, 18px); font-size: 15px; }
.vs-table th { font-family: var(--serif); letter-spacing: 0.16em; font-size: 14px; padding: clamp(3px, 0.7svh, 6px) 6px; border-bottom: 1px solid rgba(230, 192, 102, 0.4); }
.vs-table td { padding: clamp(2px, 0.6svh, 6px) 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.vs-table td:first-child { text-align: left; font-size: 11.5px; letter-spacing: 0.14em; opacity: 0.75; }
.vs-table td + td { font-family: var(--serif); font-size: clamp(16px, 2.8svh, 20px); color: var(--gold); }
.stats:has(.vs-table) { display: block; }
.card.wide:has(.vs-table) { min-width: 620px; }

/* laptop screens under browser chrome: one-line logo, emblem-and-title how-to */
@media (max-height: 780px) {
  h1 span { display: inline; margin-left: 0.25em; }
  h1 { font-size: clamp(40px, min(5.4vw, 10svh), 84px); }
  .t-kicker { display: none; }
  .howto li span { display: none; }
  .howto svg { grid-row: auto; }
}
@media (max-height: 640px) {
  .ctrl-status small { display: none; }
  .t-keys { gap: 3px 12px; }
}
@media (max-width: 1000px) { #title { grid-template-columns: 1fr; } .t-right { display: none; } }

/* browser phones (games/lib/mimic-link.js): a scan-to-join QR in the first empty slot */
.slot .sl-join { margin-top: 12px; }
.slot.joined .sl-join, .slot:not(.joined) ~ .slot:not(.joined) .sl-join { display: none; }
