/* Ball Knowledge — matchday visual language
 * Pitch-green ground with mowing stripes, cream "programme paper" cards, ink type,
 * referee-card yellow and red, LED stadium scoreboard digits. Mobile first. */

:root {
  --pitch: #0b2a1f; --pitch-2: #0e3326; --pitch-3: #134232; --pitch-hi: #1d5a43;
  --chalk: rgba(246, 241, 228, .16); --chalk-2: rgba(246, 241, 228, .32);
  --paper: #f6f1e4; --paper-2: #ece4d1; --paper-3: #ddd3bb;
  --ink: #16181b; --ink-2: #45443e; --ink-3: #77735f;
  --cream-txt: #f6f1e4; --cream-2: rgba(246, 241, 228, .72); --cream-3: rgba(246, 241, 228, .5);
  --yellow: #ffc928; --yellow-2: #f0b400; --red: #e23b3b; --red-2: #b92a2a; --green: #2ec27e; --green-2: #1f9a62; --blue: #3d7be0; --gold: #e0b04a;
  --led: #ffd23f; --led-bg: #0d0f0f;
  --p0: #ffc928; --p1: #5cc8ff; --p2: #ff7a59; --p3: #b98cff; --p4: #2ec27e; --p5: #ff6fa8;
  --f-display: 'Alumni Sans', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-led: 'Doto', 'Alumni Sans', monospace;
  --r: 14px; --r-sm: 10px;
  --lift: 0 3px 0 var(--ink);
  --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 12px 28px -12px rgba(0, 0, 0, .55);
  --safe-t: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-b: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --ad-h: 0px;
  --ui-scale: 1;
  --grain: 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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: calc(16px * var(--ui-scale)); background: var(--pitch); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--cream-txt); font-family: var(--f-body); font-size: 1rem; line-height: 1.45;
  background:
    repeating-linear-gradient(180deg, transparent 0 var(--stripe-w, 88px), var(--stripe-c, rgba(255, 255, 255, .022)) var(--stripe-w, 88px) calc(var(--stripe-w, 88px) * 2)),
    radial-gradient(120% 60% at 50% -10%, var(--pitch-3), transparent 70%),
    var(--pitch);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: var(--grain); opacity: .14; mix-blend-mode: overlay; z-index: 0; }
#app { position: relative; z-index: 1; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--cream-2); }
.small { font-size: .85rem; }
.center { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }
svg.i { width: 1.25em; height: 1.25em; flex: none; display: block; }

/* ---------------- layout */
.view { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--ad-h) + var(--safe-b)); }
.view.enter > .page, .view.enter > .stage { animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 28px; }
.appbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) 16px 10px; max-width: 640px; margin: 0 auto;
  background: linear-gradient(var(--pitch) 70%, transparent);
}
.appbar-title { flex: 1; margin: 0; font: 600 1.15rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.appbar-spacer { width: 44px; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dock {
  position: sticky; bottom: calc(var(--ad-h) + var(--safe-b)); z-index: 15; max-width: 640px; margin: 0 auto;
  padding: 14px 16px 14px; background: linear-gradient(transparent, var(--pitch) 28%);
}
.dock .field-msg { margin: 8px 0 0; }

/* ---------------- brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-word { display: flex; flex-direction: column; font: 700 .78rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .18em; color: var(--cream-2); }
.brand-word b { font-size: 1.12rem; letter-spacing: .04em; color: var(--cream-txt); margin-top: 2px; }

/* ---------------- buttons */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--lift);
  font: 600 .98rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  transition: transform .08s, box-shadow .08s, filter .15s; touch-action: manipulation; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary { --bg: var(--yellow); }
.btn-paper { --bg: var(--paper); }
.btn-green { --bg: var(--green); }
.btn-red { --bg: var(--red); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--cream-txt); border-color: var(--chalk-2); box-shadow: none; }
.btn-ghost:active:not(:disabled) { transform: translateY(1px); background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 56px; font-size: 1.12rem; }
.btn-xl { min-height: 68px; font-size: 1.6rem; letter-spacing: .1em; border-width: 3px; box-shadow: 0 5px 0 var(--ink); border-radius: 16px; }
.btn-xl svg.i { width: 1.1em; height: 1.1em; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.armed { --bg: var(--red); --fg: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--cream-txt); border: 1.5px solid var(--chalk); background: rgba(0, 0, 0, .14); flex: none; }
.icon-btn:active { background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 22px; height: 22px; }
.link { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* LED chip in the app bar */
.led-chip { display: flex; align-items: baseline; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--led-bg); border: 2px solid #2a2d2c; }
.led-chip span { font: 600 .62rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); align-self: center; }
.led-chip b { font: 900 1.25rem/38px var(--f-led); color: var(--led); text-shadow: 0 0 8px rgba(255, 210, 63, .55); }

/* ---------------- type helpers */
.kicker, .eyebrow { font: 600 .74rem/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2); margin: 0; }
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 .9rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2); }
.sec-h::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--chalk) 0 6px, transparent 6px 10px); }
.sec-h em { font-style: normal; color: var(--yellow); }
.sec-h.small { font-size: .8rem; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font: 600 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .25); border: 1.5px solid var(--chalk); color: var(--cream-2); white-space: nowrap; }
.pill.live { color: var(--green); border-color: rgba(46, 194, 126, .45); }
.pill.live::before, .pulse { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 194, 126, .6); animation: pulse 1.6s infinite; }
.pill.warn { color: var(--yellow); border-color: rgba(255, 201, 40, .45); }
.pill.turn { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 194, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 194, 126, 0); } }
.tag { display: inline-block; font: 600 .7rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--yellow); }
.tag-green { color: var(--green); }

/* ---------------- home */
.hero { position: relative; padding: 18px 0 6px; }
.hero-pitch { position: absolute; inset: -20px -16px auto; width: calc(100% + 32px); height: 260px; color: var(--chalk); opacity: .7; pointer-events: none; }
.hero > *:not(.hero-pitch) { position: relative; }
.hero .kicker { margin-bottom: 10px; color: var(--yellow); }
.hero-h { margin: 0; font: 700 3rem/0.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.hero-h span { display: block; }
.hero-h em { display: block; font: italic 900 3.3rem/.95 var(--f-display); text-transform: uppercase; color: var(--yellow); letter-spacing: .01em; margin-top: 2px; }
.hero-sub { margin: 14px 0 22px; color: var(--cream-2); font-size: 1.04rem; max-width: 30em; }
.hero-ctas { display: grid; gap: 12px; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-row .btn { font-size: .86rem; padding: 0 10px; }
.hero-db { margin: 16px 0 0; font-size: .85rem; color: var(--cream-3); }
.hero-db b { color: var(--cream-txt); font-weight: 800; }
.resume-card { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); border: 2px solid var(--ink); }
.resume-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resume-card b { font: 600 1rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.resume-card span:not(.pulse) { font-size: .85rem; color: var(--ink-2); }

/* mode cards */
.mode-list { display: grid; gap: 14px; }
.mode-card { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); border: 2px solid var(--ink); position: relative; }
.mode-card::after { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: .08; pointer-events: none; mix-blend-mode: multiply; }
.mode-art { display: grid; place-items: center; gap: 8px; padding: 14px 8px; border-right: 2px dashed rgba(22, 24, 27, .25); }
.art-blitz { background: var(--yellow); }
.art-tiki { background: var(--pitch-2); }
.mode-body { padding: 14px 14px 14px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mode-body h3 { margin: 0; font: 700 1.5rem/1 var(--f-display); text-transform: uppercase; }
.how { margin: 0 0 6px; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); }
.how li { counter-increment: how; display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.how li::before { content: counter(how); width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .7rem/20px var(--f-display); text-align: center; margin-top: 1px; }
.mini-ticket { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 6px 10px 4px; text-align: center; transform: rotate(-6deg); box-shadow: 2px 3px 0 var(--ink); }
.mini-ticket i { display: block; font: 600 .6rem/1 var(--f-display); letter-spacing: .12em; font-style: normal; color: var(--red); }
.mini-ticket b { display: block; font: 700 2rem/1 var(--f-display); }
.mini-ticket small { font: 600 .55rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.mini-clock { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.mini-clock svg { width: 26px; height: 26px; }
.mini-clock b { font: 900 1.1rem/1 var(--f-led); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 22px); gap: 4px; padding: 6px; border: 2px solid var(--chalk-2); border-radius: 6px; }
.mini-grid i { width: 22px; height: 22px; border-radius: 4px; background: rgba(246, 241, 228, .12); }
.mini-grid i.a { background: var(--yellow); }
.mini-grid i.b { background: var(--p1); }

/* scoreboard (LED) */
.scoreboard { display: block; width: 100%; position: relative; padding: 16px 18px; border-radius: var(--r); text-align: left; color: var(--cream-txt);
  background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px) 0 0 / 5px 5px, var(--led-bg); border: 3px solid #2b2f2d; box-shadow: inset 0 0 0 2px #000, var(--shadow); }
.sb-label { display: block; font: 600 .7rem/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); }
.sb-num { display: block; font: 900 3.6rem/1 var(--f-led); color: var(--led); text-shadow: 0 0 14px rgba(255, 210, 63, .5); margin: 6px 0 2px; letter-spacing: .02em; }
.sb-tier { display: inline-block; font: 600 .85rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--led); padding: 5px 8px; border-radius: 5px; }
.sb-note { display: block; margin-top: 10px; font-size: .85rem; color: var(--cream-2); }
.sb-promo { cursor: pointer; }

.foot { margin-top: 36px; padding-top: 16px; border-top: 2px dashed var(--chalk); }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 18px; font-size: .9rem; }
.foot-note { font-size: .78rem; color: var(--cream-3); margin: 14px 0 0; }

/* ---------------- forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .set-row label { font: 600 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); }
.input { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 1.05rem; font-weight: 600; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .08); }
.input::placeholder { color: var(--ink-3); font-weight: 500; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.input.is-error { box-shadow: 0 0 0 3px var(--red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.input-sm { min-height: 42px; width: auto; font-size: .95rem; }
.input-code { font: 700 2rem/1 var(--f-display); letter-spacing: .4em; text-transform: uppercase; text-align: center; padding-left: .4em; }
.field-msg { margin: 0; min-height: 1.2em; font-size: .88rem; color: #ffb3a8; }
.field-msg.info { color: var(--cream-2); }
.field-msg:empty { min-height: 0; }

/* ---------------- setup (choices) */
.step-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font: 600 1.2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.step-h i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: .95rem; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: var(--r); background: rgba(0, 0, 0, .2); border: 2px solid var(--chalk); color: var(--cream-txt); transition: background .15s, border-color .15s, transform .1s; }
.choice:active { transform: scale(.99); }
.choice[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: var(--lift); }
.choice-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(246, 241, 228, .1); }
.choice[aria-checked="true"] .choice-ic { background: var(--yellow); border: 2px solid var(--ink); }
.choice-ic svg { width: 26px; height: 26px; }
.choice-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choice-txt b { font: 600 1.15rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.choice-txt span { font-size: .88rem; opacity: .8; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; flex: none; opacity: .6; position: relative; }
.choice[aria-checked="true"] .radio { opacity: 1; background: var(--ink); }
.choice[aria-checked="true"] .radio::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--yellow); }
.setup-note { margin: 16px 2px 0; font-size: .88rem; color: var(--cream-2); }

/* ---------------- ticket (room code, lot header) */
.ticket { display: grid; grid-template-columns: 44px 1fr; background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); position: relative; border: 2px solid var(--ink); }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 33px; width: 20px; height: 20px; border-radius: 50%; background: var(--pitch); border: 2px solid var(--ink); }
.ticket::before { top: -11px; border-top-color: transparent; border-left-color: transparent; transform: rotate(45deg); }
.ticket::after { bottom: -11px; border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.ticket-stub { border-right: 2px dashed rgba(22, 24, 27, .35); display: grid; place-items: center; background: var(--yellow); border-radius: 12px 0 0 12px; }
.ticket-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 .8rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; }
.ticket-body { padding: 14px 16px 16px 22px; min-width: 0; }
.ticket .eyebrow { color: var(--ink-3); }
.room-code { display: block; font: 700 3rem/1 var(--f-display); letter-spacing: .18em; margin: 6px 0 8px; }
.invite-note { margin: 0 0 12px; font-size: .88rem; color: var(--ink-2); }
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qr { margin-top: 12px; width: 180px; padding: 8px; background: #fff; border-radius: 10px; border: 2px solid var(--ink); }
.qr svg { width: 100%; height: auto; display: block; }

/* ---------------- lobby */
.add-player { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.add-player .field-msg { grid-column: 1 / -1; }
.squad { display: grid; gap: 8px; }
.prow-l { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1.5px solid var(--chalk); }
.prow-l.arrive { animation: arrive .35s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes arrive { from { opacity: 0; transform: translateX(-16px) scale(.96); } }
.prow-l .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow-l .nm { font-weight: 800; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-l .sub { font-size: .78rem; color: var(--cream-3); }
.prow-l.is-off { opacity: .5; }
.prow-l.empty { justify-content: center; color: var(--cream-3); border-style: dashed; min-height: 64px; font-size: .9rem; }
.x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--cream-2); }
.x:active { background: rgba(255, 255, 255, .08); }
.x svg { width: 18px; height: 18px; }

/* player shirt avatar */
.kit { width: 44px; height: 44px; flex: none; position: relative; display: grid; place-items: center; }
.kit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kit b { position: relative; font: 700 .82rem/1 var(--f-display); color: var(--ink); margin-top: 4px; letter-spacing: .02em; }
.kit.sm { width: 32px; height: 32px; }
.kit.sm b { font-size: .64rem; margin-top: 3px; }
.kit.lg { width: 64px; height: 64px; }
.kit.lg b { font-size: 1.15rem; }

/* match setup panel */
.mset { background: var(--paper); color: var(--ink); border-radius: var(--r); border: 2px solid var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.mset-mode { display: flex; align-items: center; gap: 12px; padding: 14px; }
.mset-mode .choice-ic { background: var(--yellow); border: 2px solid var(--ink); }
.mset-mode div { flex: 1; min-width: 0; }
.mset-mode b { display: block; font: 700 1.25rem/1.1 var(--f-display); text-transform: uppercase; }
.mset-mode span { font-size: .85rem; color: var(--ink-2); }
.mset-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px; }
.mset-modes button { font-size: .72rem !important; line-height: 1.2; }
.mset-modes button { padding: 10px; border-radius: 10px; border: 2px solid var(--paper-3); text-align: left; font-size: .8rem; color: var(--ink-2); }
.mset-modes button b { display: block; font: 700 1rem/1.1 var(--f-display); text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.mset-modes button[aria-pressed="true"] { border-color: var(--ink); background: var(--yellow); }
.mset-modes button:disabled { cursor: default; }
.mset details { border-top: 2px dashed rgba(22, 24, 27, .2); }
.mset summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; font: 600 .9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.mset summary::-webkit-details-marker { display: none; }
.mset summary small { font: 600 .8rem/1.2 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink-3); text-align: right; }
.mset summary::after { content: ''; width: 10px; height: 10px; border-right: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; transition: transform .2s; }
.mset details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.mset-body { padding: 0 14px 14px; display: grid; gap: 14px; }
.lbl { display: block; font: 600 .74rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.seg { display: flex; padding: 3px; border-radius: 11px; background: var(--paper-2); border: 2px solid var(--ink); gap: 3px; }
.seg button { flex: 1; min-height: 40px; padding: 0 6px; border-radius: 8px; font: 600 .86rem/1.1 var(--f-display); letter-spacing: .03em; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.seg button:disabled { cursor: default; }
.hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-3); }

/* ---------------- world ranking */
.rk-me { margin-top: 4px; }
.rk-me .rk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.rk-me .rk-stats div { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 8px; }
.rk-me dt { font: 600 .62rem/1.1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.rk-me dd { margin: 4px 0 0; font: 700 1.25rem/1 var(--f-display); color: var(--cream-txt); }
.rk-me dd.up { color: var(--green); } .rk-me dd.down { color: #ff8a80; }
.rk-me p { margin: 10px 0 0; font-size: .88rem; color: var(--cream-2); }
.rk-tiers { display: flex; gap: 6px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.rk-tiers::-webkit-scrollbar { display: none; }
.rk-tiers span { flex: none; padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--chalk); font-size: .74rem; color: var(--cream-2); white-space: nowrap; }
.rk-tiers span.on { background: var(--led); color: var(--ink); border-color: var(--ink); font-weight: 800; }
.rk-tiers b { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rk-table { margin: 16px 0; }
.rk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rk-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.rk-row.me { background: var(--yellow); }
.rk-pos { font: 700 1rem/1 var(--f-display); color: var(--ink-3); }
.rk-row.p1 .rk-pos { color: #b8860b; } .rk-row.p2 .rk-pos { color: #7a7d80; } .rk-row.p3 .rk-pos { color: #a0522d; }
.rk-name { min-width: 0; display: flex; flex-direction: column; }
.rk-name b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name small { font-size: .74rem; color: var(--ink-3); }
.rk-rt { font: 700 1.3rem/1 var(--f-display); }
.rk-row.skel { height: 56px; background: rgba(246, 241, 228, .1); border-color: transparent; animation: shimmer 1.2s infinite alternate; }
@keyframes shimmer { to { opacity: .5; } }
.rk-state { padding: 18px; border-radius: 12px; border: 2px dashed var(--chalk); color: var(--cream-2); font-size: .92rem; text-align: center; list-style: none; }
.rk-note { font-size: .8rem; color: var(--cream-3); margin: 12px 2px 0; }
.you { font: 700 .62rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 3px 5px; border-radius: 4px; vertical-align: 2px; margin-left: 4px; }

/* ---------------- game chrome */
#v-game { display: flex; flex-direction: column; }
.gbar { position: sticky; top: 0; z-index: 20; background: var(--pitch); padding-top: var(--safe-t); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.gbar-in { display: flex; align-items: center; gap: 10px; padding: 8px 12px; max-width: 980px; margin: 0 auto; }
.gbar-round { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.gbar-round b { font: 700 1.15rem/1 var(--f-display); letter-spacing: .08em; }
.gbar-round span { font-size: .72rem; color: var(--cream-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gbar .pill { height: 24px; font-size: .64rem; padding: 0 8px; flex: none; }
.ticker { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px; background: var(--ink); border-top: 2px solid var(--yellow); font: 600 .8rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; overflow: hidden; }
.ticker-tag { background: var(--red); color: #fff; padding: 3px 6px; border-radius: 4px; font-size: .64rem; letter-spacing: .14em; flex: none; }
#ticker-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker.flash #ticker-txt { animation: tick-in .35s ease-out; }
@keyframes tick-in { from { opacity: 0; transform: translateY(6px); } }
.board { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 6px; scrollbar-width: none; max-width: 980px; margin: 0 auto; width: 100%; }
.board::-webkit-scrollbar { display: none; }
.bp { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1.5px solid var(--chalk); min-width: 0; max-width: 170px; transition: background .2s, transform .2s; }
.bp .nm { font-weight: 800; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 84px; }
.bp .st { font-size: .66rem; color: var(--cream-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 84px; }
.bp .sc { font: 700 1.4rem/1 var(--f-display); color: var(--led); margin-left: 2px; min-width: 1.2em; text-align: right; }
.bp .sc.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.5); } }
.bp.is-turn { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.bp.is-turn .st { color: var(--ink-2); font-weight: 700; }
.bp.is-turn .sc { color: var(--ink); text-shadow: none; }
.bp.is-out { opacity: .45; }
.bp.is-off { opacity: .4; filter: grayscale(1); }
.bp .dl { font: 700 .74rem/1 var(--f-display); margin-left: 2px; }
.dl.up { color: var(--green); } .dl.down { color: #ff8a80; }
.bp.is-turn .dl.up { color: var(--green-2); }
.coach { max-width: 980px; width: 100%; margin: 4px auto 0; padding: 0 16px; font-size: .86rem; color: var(--cream-2); min-height: 1.3em; }
.coach b { color: var(--yellow); }
.coach:empty { display: none; }
.stage { width: 100%; max-width: 640px; margin: 0 auto; padding: 10px 14px 24px; flex: 1; }

/* lot header (ticket) */
.lot { display: grid; grid-template-columns: 34px auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px 10px 0; background: var(--paper); color: var(--ink); border-radius: var(--r); border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.lot-stub { align-self: stretch; display: grid; place-items: center; background: var(--yellow); border-right: 2px dashed rgba(22, 24, 27, .35); border-radius: 12px 0 0 12px; }
.lot-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 .7rem/1 var(--f-display); letter-spacing: .2em; }
.lot .crest { width: 48px; }
.lot-txt { min-width: 0; }
.lot-name { font: 700 1.25rem/1.05 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.lot-meta { font-size: .76rem; color: var(--ink-3); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.lot-side { text-align: center; padding-left: 10px; border-left: 2px dashed rgba(22, 24, 27, .2); }
.lot-side small { display: block; font: 600 .62rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lot-side b { font: 700 1.9rem/1 var(--f-display); }
.crest { display: inline-block; flex: none; line-height: 0; }
.crest svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }
.flag { display: inline-block; width: 1.5em; height: 1.125em; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1.5px rgba(22, 24, 27, .7); background: var(--paper-2); vertical-align: -.15em; }
.flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* stamp */
.stamp { display: inline-block; padding: 6px 12px 4px; border: 3px solid currentColor; border-radius: 8px; font: 700 1.1rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red); transform: rotate(-7deg); position: relative;
  -webkit-mask: var(--grain) 0 0 / 120px, linear-gradient(#000, #000); -webkit-mask-composite: source-over; mask-image: linear-gradient(#000, #000); }
.stamp::after { content: ''; position: absolute; inset: -3px; background: var(--grain); opacity: .5; mix-blend-mode: screen; border-radius: 8px; }
.stamp.green { color: var(--green-2); }
.stamp.ink { color: var(--ink); }
.stamp.big { font-size: 2.2rem; padding: 10px 18px 6px; border-width: 5px; }
.stamp.slam { animation: slam .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes slam { from { opacity: 0; transform: rotate(-7deg) scale(2.2); } }

/* reveal */
.reveal { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 12px 0; position: relative; }
.reveal .crest-xl { width: 150px; animation: flip .8s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes flip { from { transform: perspective(600px) rotateY(90deg) scale(.6); opacity: 0; } }
.reveal-name { font: 700 2.6rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; animation: rise .4s .35s both; }
.reveal-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; animation: rise .4s .5s both; }
.reveal-ins { margin: 0; max-width: 24em; color: var(--cream-2); animation: rise .4s .6s both; }
.reveal .stamp { color: var(--yellow); }

/* auction */
.auction { display: grid; gap: 12px; margin-top: 12px; }
.bidboard { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.bidboard .sb-num { font-size: 5.4rem; margin: 0; min-width: 1.2em; text-align: center; }
.bidboard .sb-num.zero { color: rgba(255, 210, 63, .25); text-shadow: none; }
.bidboard .sb-num.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.18); } }
.bid-by { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; font-size: .92rem; }
.bid-q { font: 600 1rem/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--cream-txt); margin: 0; }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: var(--cream-3); }
.ladder .step { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--cream-txt); font-weight: 800; }
.turn { padding: 14px; border-radius: var(--r); background: rgba(0, 0, 0, .25); border: 2px solid var(--chalk); }
.turn.mine { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.turn-top { display: flex; align-items: center; gap: 10px; }
.turn-top .who { flex: 1; min-width: 0; }
.turn-top .who small { display: block; font: 600 .7rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.turn-top .who b { display: block; font: 700 1.4rem/1.1 var(--f-display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { font: 700 2rem/1 var(--f-display); color: var(--led); min-width: 1.4em; text-align: right; }
.turn.mine .clock { color: var(--ink); }
.clock-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 12px 0 2px; }
.turn.mine .clock-bar { background: var(--paper-3); }
.clock-bar i { display: block; height: 100%; background: var(--green); transform-origin: left; transition: background .3s; }
.clock-bar.warn i { background: var(--yellow-2); } .clock-bar.crit i { background: var(--red); }
.bid-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bid-btns .btn { flex-direction: column; gap: 2px; min-height: 76px; padding: 8px 4px; }
.bid-btns .btn small { font-size: .66rem; letter-spacing: .12em; }
.bid-btns .btn b { font: 700 2.1rem/1 var(--f-display); }
.fold { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.fold .card-red { width: 20px; height: 28px; border-radius: 3px; background: #fff; border: 2px solid var(--ink); transform: rotate(8deg); }
.btn-red .card-red { background: #fff; }
.turn-wait { margin: 10px 0 0; font-size: .92rem; opacity: .85; }
.kbd-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: block; margin: 10px 0 0; font-size: .76rem; color: var(--ink-3); text-align: center; } }

/* won */
.won { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.won h2 { margin: 0; font: 700 2rem/1 var(--f-display); text-transform: uppercase; }
.won-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 1.05rem; }
.won-line b { font: 900 2.6rem/1 var(--f-led); color: var(--led); }

/* rush */
.rush-top { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 12px; }
.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: rgba(255, 255, 255, .1); }
.ring .arc { stroke: var(--led); transition: stroke-dashoffset .25s linear, stroke .3s; stroke-linecap: round; }
.ring.warn .arc { stroke: #ff9f43; } .ring.crit .arc { stroke: var(--red); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; background: radial-gradient(circle, var(--led-bg) 62%, transparent 63%); border-radius: 50%; }
.ring-num b { font: 900 2.8rem/1 var(--f-led); color: var(--led); text-shadow: 0 0 12px rgba(255, 210, 63, .45); }
.ring.crit .ring-num b { color: var(--red); animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }
.ring-num span { font: 600 .56rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); margin-top: 2px; }
.count .eyebrow { margin-bottom: 6px; }
.count-num { font: 700 2.6rem/1 var(--f-display); }
.count-num small { font-size: 1.3rem; color: var(--cream-3); }
.pips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pips i { width: 16px; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.pips i.on { background: var(--green); } .pips i.extra { background: var(--yellow); }
.answer { margin-top: 14px; }
.answer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.answer-head .who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; min-width: 0; }
.answer-form { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.answer-form .input { min-height: 56px; font-size: 1.1rem; }
.answer-form .btn { min-height: 56px; padding: 0 16px; }
.answer-form .btn span { display: none; }
.mic { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--lift); }
.mic svg { width: 26px; height: 26px; }
.mic.on { background: var(--red); color: #fff; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 50% { box-shadow: 0 3px 0 var(--ink), 0 0 0 8px rgba(226, 59, 59, .3); } }
.mic:disabled { opacity: .4; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.sugg:empty { display: none; }
.sugg button { display: block; width: 100%; text-align: left; padding: 13px 14px; font-weight: 700; border-top: 1px solid var(--paper-3); }
.sugg button:first-child { border-top: 0; }
.sugg button[aria-selected="true"], .sugg button:active { background: var(--yellow); }
.heard { margin: 8px 0 0; font-size: .88rem; color: var(--cream-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.onair { font: 700 .62rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; background: var(--red); color: #fff; padding: 4px 6px; border-radius: 4px; }
.feedback { min-height: 30px; margin: 10px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; padding: 4px 10px 4px 6px; border-radius: 8px; }
.fb svg { width: 18px; height: 18px; }
.fb.ok { color: var(--ink); background: var(--green); animation: rise .2s; }
.fb.bad { color: #fff; background: var(--red); animation: shake .3s; }
.fb.ask { color: var(--cream-txt); padding-left: 0; }
.fb-choice { padding: 8px 12px; border-radius: 10px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; text-align: left; box-shadow: var(--lift); }
.fb-choice small { display: block; font-weight: 600; font-size: .72rem; color: var(--ink-3); }
.speak { padding: 16px; border-radius: var(--r); border: 2px dashed var(--chalk-2); text-align: center; color: var(--cream-2); }
.speak b { display: block; font: 700 1.4rem/1.1 var(--f-display); text-transform: uppercase; color: var(--cream-txt); margin-bottom: 4px; }
.ref { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ref .btn { min-height: 84px; flex-direction: column; gap: 4px; font-size: 1.05rem; }
.ref .btn svg { width: 30px; height: 30px; }
.ref-name { margin-top: 10px; }

/* sticker chips (named players) */
.stickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sticker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; background: var(--paper); color: var(--ink); border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink), 2px 3px 0 rgba(0, 0, 0, .35); font-weight: 800; font-size: .92rem; transform: rotate(var(--rot, 0deg)); max-width: 100%; }
.sticker:nth-child(3n+1) { --rot: -1.5deg; } .sticker:nth-child(3n+2) { --rot: 1deg; } .sticker:nth-child(3n) { --rot: -.5deg; }
.sticker .n { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 700 .72rem/1 var(--f-display); }
.sticker .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticker.extra { background: var(--yellow); }
.sticker.fresh { animation: peel .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes peel { from { opacity: 0; transform: rotate(-14deg) scale(1.5) translateY(-10px); } }
.sticker.rej { background: transparent; color: var(--cream-2); border-color: transparent; box-shadow: 0 0 0 1.5px var(--chalk-2); text-decoration: line-through; text-decoration-color: var(--red); }
.sticker.rej .n { background: var(--red); color: #fff; }
.sticker.rej small { text-decoration: none; display: block; font-size: .68rem; font-weight: 600; color: var(--cream-3); }
.sticker .var { margin-left: 4px; font: 700 .64rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; padding: 5px 6px; border-radius: 5px; background: var(--ink); color: var(--paper); text-decoration: none; }
.sticker.rej .var { background: var(--green); color: var(--ink); }
.empty-stickers { padding: 18px; width: 100%; text-align: center; border: 2px dashed var(--chalk); border-radius: var(--r); color: var(--cream-3); font-size: .92rem; }
.bank { margin-top: 12px; }

/* result */
.res-head { position: relative; padding: 18px 16px 16px; background: var(--paper); color: var(--ink); border-radius: var(--r); border: 2px solid var(--ink); box-shadow: var(--shadow); display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-top: 12px; }
.res-head .crest { width: 56px; }
.res-head h2 { margin: 0; font: 700 1.9rem/1 var(--f-display); text-transform: uppercase; }
.res-head p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }
.res-head .stamp { position: absolute; right: 12px; top: -14px; background: var(--paper); }
.res-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px dashed rgba(22, 24, 27, .2); padding-top: 12px; }
.res-stats div { text-align: center; }
.res-stats b { display: block; font: 700 1.8rem/1 var(--f-display); }
.res-stats span { font: 600 .66rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.res-stats .up { color: var(--green-2); } .res-stats .down { color: var(--red); }
.res-sec { margin-top: 18px; }
.res-sec h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font: 600 .8rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); }
.res-sec h3 small { color: var(--yellow); letter-spacing: .06em; font-size: .72rem; }
.could { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.could span { padding: 5px 9px; border-radius: 7px; background: rgba(0, 0, 0, .22); border: 1px solid var(--chalk); font-size: .84rem; color: var(--cream-2); }

/* tiki-taka */
.tboard { margin-top: 12px; display: grid; grid-template-columns: 88px repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: var(--r);
  background: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.5px) 0 0 / 6px 6px, #173d2e; border: 3px solid #0a2219; box-shadow: inset 0 0 0 2px rgba(246, 241, 228, .14), var(--shadow); }
.th { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 64px; padding: 4px 2px; }
.th small { font: 600 .66rem/1.1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--cream-2); overflow-wrap: anywhere; }
.th .crest { width: 34px; }
.th .flag { width: 34px; height: 25px; }
.th.corner { font: 600 .56rem/1.1 var(--f-display); color: var(--cream-3); letter-spacing: .1em; text-transform: uppercase; }
.cell { aspect-ratio: 1; min-height: 64px; border-radius: 10px; border: 2px dashed rgba(246, 241, 228, .3); display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; font-size: .74rem; font-weight: 800; color: var(--cream-txt); text-align: center; line-height: 1.1; transition: transform .1s, background .15s; }
.cell .plus { font: 300 1.8rem/1 var(--f-display); opacity: .5; }
.cell:not(:disabled):active { transform: scale(.95); }
.cell.sel { border: 3px solid var(--yellow); background: rgba(255, 201, 40, .12); }
.cell.own { border: 2px solid var(--ink); color: var(--ink); background: var(--pc, var(--paper)); animation: peel .4s both; }
.cell.own span { overflow-wrap: anywhere; }
.cell.own small { font-size: .6rem; font-weight: 600; opacity: .7; }
.tiki-panel { margin-top: 12px; }
.tiki-q { font: 600 1.1rem/1.25 var(--f-display); text-transform: uppercase; margin: 10px 0; }
.tiki-q em { font-style: normal; color: var(--yellow); }

/* final */
.final { text-align: center; padding-top: 6px; }
.final .eyebrow { margin-top: 10px; }
.final h1 { margin: 6px 0 0; font: 700 3rem/1 var(--f-display); text-transform: uppercase; }
.final h1 em { font: italic 900 2.8rem/.95 var(--f-display); text-transform: uppercase; color: var(--yellow); display: block; }
.trophy { width: 110px; margin: 10px auto 0; display: block; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); animation: rise .6s both; }
.winner-name { font: 700 1.9rem/1.05 var(--f-display); text-transform: uppercase; margin-top: 8px; overflow-wrap: anywhere; }
.winner-sub { color: var(--cream-2); margin: 4px 0 0; }
.podium { display: grid; gap: 6px; margin: 18px 0 0; text-align: left; }
.podium .prow-l { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.podium .prow-l .sub { color: var(--ink-3); }
.podium .prow-l.lead { background: var(--yellow); }
.podium .pos { font: 700 1.1rem/1 var(--f-display); width: 22px; color: var(--ink-3); }
.podium .pts { font: 700 1.6rem/1 var(--f-display); }
.awards { display: grid; gap: 8px; margin-top: 18px; text-align: left; }
.award { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--chalk); background: rgba(0, 0, 0, .2); }
.award span { font: 600 .66rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); grid-column: 1 / -1; }
.award b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award i { font-style: normal; color: var(--yellow); font-weight: 800; }
.rk-final { margin-top: 18px; text-align: left; }
.rk-final .scoreboard { padding: 14px; }
.rk-delta { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.rk-delta:first-of-type { border-top: 0; }
.rk-delta .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-delta .from { font: 600 .9rem/1 var(--f-display); color: var(--cream-3); }
.rk-delta b { font: 700 1.4rem/1 var(--f-display); }
.rk-delta b.up { color: var(--green); } .rk-delta b.down { color: #ff8a80; }
.final-actions { display: grid; gap: 10px; margin-top: 22px; }
.final-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.next-row { margin-top: 18px; }
.next-row p { margin: 0 0 8px; text-align: center; color: var(--cream-2); font-size: .9rem; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---------------- modals */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 14, 10, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px - var(--safe-t)); overflow: auto; padding: 22px 18px 20px; border-radius: 18px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: rise .25s; }
.modal-card .muted { color: var(--ink-2); }
.modal-card .icon-btn { color: var(--ink); border-color: var(--paper-3); background: transparent; }
.modal-card .field label, .modal-card .set-row label { color: var(--ink-2); }
.modal-card .field-msg { color: var(--red-2); }
.modal-card .field-msg.info { color: var(--ink-2); }
.modal-card .link { color: var(--ink); text-decoration-color: var(--yellow-2); text-decoration-thickness: 3px; }
.modal-card .eyebrow { color: var(--ink-3); }
.modal-x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px !important; height: 40px !important; }
.modal-h { margin: 0 44px 8px 0; font: 700 1.7rem/1.05 var(--f-display); text-transform: uppercase; }
.modal.sheet { place-items: end center; padding: 0; }
.modal.sheet .modal-card { border-radius: 20px 20px 0 0; padding-bottom: calc(22px + var(--safe-b)); max-height: 90dvh; animation: up .28s cubic-bezier(.2, .8, .2, 1); border-bottom: 0; }
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.menu-list { display: grid; gap: 6px; margin-top: 14px; }
.menu-item { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 2px 12px; text-align: left; padding: 13px 12px; border-radius: 12px; border: 2px solid var(--paper-3); }
.menu-item:active { background: var(--paper-2); }
.menu-item svg { width: 22px; height: 22px; grid-row: span 2; }
.menu-item b { font: 600 1.05rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.menu-item small { color: var(--ink-3); font-size: .8rem; grid-column: 2; }
.menu-item.danger { color: var(--red-2); border-color: rgba(226, 59, 59, .3); }
.menu-item.armed { background: var(--red); color: #fff; border-color: var(--ink); }
.menu-item.armed small { color: #fff; }
.rules section { padding: 12px 0; border-top: 2px dashed var(--paper-3); }
.rules section:first-child { border-top: 0; padding-top: 0; }
.rules h3 { margin: 0 0 6px; font: 600 1.05rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.rules p, .rules ul { margin: 0 0 6px; font-size: .92rem; color: var(--ink-2); }
.rules ul { padding-left: 18px; }
.rules .ex { padding: 8px 10px; border-radius: 8px; background: var(--paper-2); font-weight: 700; font-size: .85rem; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 2px dashed var(--paper-3); }
.set-row:first-of-type { border-top: 0; }
.set-row .input { border-width: 2px; }
.set-hint { margin: 4px 0 0; font-size: .78rem; color: var(--ink-3); }
.set-links { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 14px; border-top: 2px dashed var(--paper-3); margin-top: 6px; font-size: .9rem; }
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 99px; background: var(--paper-3); border: 2px solid var(--ink); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(22px); }
.range { width: 52%; accent-color: var(--ink); }

/* tutorial */
.tut { padding-top: 62px; }
.tut-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; }
.tut-track::-webkit-scrollbar { display: none; }
.tut-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 22px; text-align: center; }
.tut-slide h3 { margin: 16px 0 6px; font: 700 1.6rem/1 var(--f-display); text-transform: uppercase; }
.tut-slide p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.tut-art { height: 170px; display: grid; place-items: center; border-radius: 14px; background: var(--pitch-2); position: relative; overflow: hidden; }
.tut-art .stamp { position: absolute; right: 18%; bottom: 18px; color: var(--yellow); }
.tut-crest { width: 92px; }
.tut-bids { display: flex; gap: 10px; align-items: flex-end; }
.tut-bids span { width: 54px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); font: 700 1.8rem/1 var(--f-display); color: var(--ink); box-shadow: var(--lift); }
.tut-bids span.on { background: var(--yellow); height: 84px; font-size: 2.4rem; }
.tut-stickers { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.tut-stickers span { padding: 7px 12px; background: var(--paper); border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink), 2px 3px 0 rgba(0, 0, 0, .35); font-weight: 800; color: var(--ink); }
.tut-stickers span:nth-child(1) { transform: rotate(-3deg); } .tut-stickers span:nth-child(2) { transform: rotate(2deg) translateX(18px); } .tut-stickers span:nth-child(3) { transform: rotate(-1deg) translateX(-14px); }
.tut-sb { width: auto; text-align: center; padding: 14px 28px; }
.tut-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--paper-3); transition: width .2s, background .2s; }
.dots i.on { width: 24px; background: var(--ink); }

/* ---------------- toasts, net */
.toasts { position: fixed; left: 50%; bottom: calc(var(--ad-h) + var(--safe-b) + 90px); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); border-left: 5px solid var(--green); animation: rise .25s; text-align: left; }
.toast.err { border-left-color: var(--red); }
.netbar { position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); z-index: 80; padding: 9px 14px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .85rem; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.netbar.bad { background: var(--red); color: #fff; }
.spinner { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
.timesup { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; pointer-events: none; background: rgba(226, 59, 59, .18); animation: fade .2s; }
.timesup b { font: 700 3.4rem/1 var(--f-display); text-transform: uppercase; color: #fff; padding: 12px 22px; border: 5px solid #fff; border-radius: 12px; transform: rotate(-6deg); background: var(--red); animation: slam .4s cubic-bezier(.3, 1.6, .5, 1) both; }
#web-ad { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 41; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #0d0f10; }
#web-ad[hidden] { display: none; }
#web-ad > div { width: 100%; max-width: 728px; height: 64px; }
.ad-space { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--ad-h) + var(--safe-b)); background: #000; z-index: 40; pointer-events: none; }

/* ---------------- larger screens */
@media (min-width: 700px) {
  .hero-h { font-size: 4.2rem; } .hero-h em { font-size: 3.6rem; }
  .mode-list { grid-template-columns: 1fr 1fr; }
  .mode-card { grid-template-columns: 1fr; }
  .mode-art { border-right: 0; border-bottom: 2px dashed rgba(22, 24, 27, .25); padding: 22px; grid-auto-flow: column; }
}
@media (min-width: 980px) {
  #v-game .stage { max-width: 720px; }
}
@media (max-width: 360px) {
  .hero-h { font-size: 2.5rem; } .hero-h em { font-size: 2.25rem; }
  .bidboard .sb-num { font-size: 4.4rem; }
  .ring { width: 96px; height: 96px; }
  .tboard { padding: 6px; gap: 4px; }
}

/* ---------------- motion preferences */
.rm *, .rm *::before, .rm *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; } }

/* ---------------- odds mode */
.tag-red { color: #ff8a80; }
.art-odds { background: var(--ink); gap: 10px; }
.mini-odds { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 2px solid var(--paper-3); transform: rotate(-4deg); min-width: 84px; }
.mini-odds + .mini-odds { transform: rotate(3deg); }
.mini-odds span { font: 600 .58rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mini-odds b { font: 700 1.5rem/1.1 var(--f-display); color: var(--ink); }
.mini-odds.hot { background: var(--yellow); border-color: var(--ink); }
.odds { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--led); font: 700 .78rem/1.2 var(--f-display); letter-spacing: .04em; }
.odds.hot { background: var(--red); color: #fff; }
.odds-big { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; border-radius: 14px; background: var(--led-bg); border: 3px solid #2b2f2d; animation: rise .4s .45s both; }
.odds-big span { font: 600 .66rem/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); }
.odds-big b { font: 900 2.8rem/1 var(--f-led); color: var(--led); text-shadow: 0 0 12px rgba(255, 210, 63, .5); }
.odds-big small { font-size: .78rem; color: var(--cream-2); }
.res-stats small.k { font-size: .9rem; color: var(--green-2); margin-left: 3px; }

/* ---------------- tiki-taka duel */
.cell.own { background: var(--paper); color: var(--ink); gap: 1px; font-size: .66rem; }
.cell.own svg { width: 52%; max-width: 40px; height: auto; }
.cell.own.mk-X svg { color: #d99a00; }
.cell.own.mk-O svg { color: #1f7fd1; }
.cell.own.mk-X { background: #fff3c4; }
.cell.own.mk-O { background: #d9efff; }
.cell.own span { font-weight: 800; overflow-wrap: anywhere; }
.cell.own.steal { cursor: pointer; outline: 2px dashed var(--red); outline-offset: 2px; }
.cell.own.steal:active { transform: scale(.95); }
.cell.own.sel { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cell.own.win { box-shadow: 0 0 0 3px var(--green), 0 0 18px rgba(46, 194, 126, .7); animation: beat 1s infinite; }
.cell.own.fresh { animation: peel .4s both; }
.duo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.duo-p { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 2px solid var(--chalk); }
.duo-p svg { width: 22px; height: 22px; flex: none; }
.duo-p.mk-X svg { color: var(--yellow); } .duo-p.mk-O svg { color: var(--p1); }
.duo-p span { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo-p b { font: 700 1.4rem/1 var(--f-display); }
.duo-p.on { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.duo-p.on.mk-X svg { color: #d99a00; } .duo-p.on.mk-O svg { color: #1f7fd1; }
.vs { font: 700 .8rem/1 var(--f-display); color: var(--cream-3); text-transform: uppercase; }
.tiki-q small { font: 600 .78rem/1.3 var(--f-body); text-transform: none; color: var(--ink-2); }

/* ---------------- boot / loading screen */
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(90% 60% at 50% 40%, var(--pitch-3), var(--pitch) 70%); transition: opacity .45s ease, visibility .45s; }
.boot::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 88px, rgba(255, 255, 255, .025) 88px 176px); }
.boot.done { opacity: 0; visibility: hidden; }
.boot-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(78vw, 300px); }
.boot-ball { width: 96px; height: 96px; animation: bounce 1.1s cubic-bezier(.3, .1, .3, 1) infinite; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .3)); }
.boot-gavel { position: relative; width: 132px; height: 112px; display: grid; place-items: center; animation: bootShake 1.5s linear infinite; }
.boot-gavel svg { width: 104px; height: 104px; display: block; overflow: visible; filter: drop-shadow(0 9px 0 rgba(0, 0, 0, .3)); }
.boot-ball svg { width: 100%; height: 100%; display: block; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-22px) rotate(-8deg); } 55% { transform: translateY(-22px) rotate(-8deg); } }
.boot-word { display: flex; flex-direction: column; align-items: center; font: 700 .9rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--cream-2); }
.boot-word b { font-size: 2rem; letter-spacing: .06em; color: var(--cream-txt); margin-top: 4px; }
.boot-bar { width: 100%; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 2px solid var(--ink); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 8%; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--yellow-2) 10px 20px); background-size: 28px 28px; animation: stripes .6s linear infinite; transition: width .25s ease; border-radius: 99px; }
@keyframes stripes { to { background-position: 28px 0; } }
.boot-msg { margin: 0; font-size: .86rem; color: var(--cream-2); text-align: center; min-height: 1.3em; }

.th.club small { font-size: .62rem; line-height: 1.1; letter-spacing: 0; text-transform: none; font-family: var(--f-body); font-weight: 800; color: var(--cream-txt); }
.tiki-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.draw-offer { margin-bottom: 12px; padding: 14px; border-radius: var(--r); background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow); display: grid; gap: 6px; animation: rise .25s; }
.draw-offer b { font: 700 1.15rem/1.1 var(--f-display); text-transform: uppercase; }
.draw-offer span { font-size: .88rem; }
.draw-offer .row { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 360px) { .tboard { grid-template-columns: 72px repeat(3, 1fr); } }

/* quick match */
.btn-quick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; align-items: center;
  padding: 12px 16px; border-radius: var(--r); background: #0f2a1d; color: var(--cream-txt, #f4f1e6); border: 2px solid #2fd17a; box-shadow: 0 0 0 0 rgba(47,209,122,.5); }
.btn-quick b { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.btn-quick small { grid-column: 2; opacity: .75; font-size: .78rem; }
.btn-quick .qm-dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #2fd17a; animation: qmPulse 1.6s infinite; }
@keyframes qmPulse { 0% { box-shadow: 0 0 0 0 rgba(47,209,122,.6); } 70% { box-shadow: 0 0 0 10px rgba(47,209,122,0); } 100% { box-shadow: 0 0 0 0 rgba(47,209,122,0); } }
.qm-status { display: grid; justify-items: center; gap: 6px; padding: 14px 0 6px; text-align: center; }
.qm-radar { position: relative; width: 72px; height: 72px; margin-bottom: 6px; }
.qm-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #2fd17a; opacity: 0; animation: qmRing 2.4s infinite; }
.qm-radar span:nth-child(2) { animation-delay: .8s; } .qm-radar span:nth-child(3) { animation-delay: 1.6s; }
.qm-status.found .qm-radar span { animation: none; opacity: 1; background: rgba(47,209,122,.15); }
@keyframes qmRing { from { transform: scale(.2); opacity: .9; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .qm-radar span, .btn-quick .qm-dot { animation: none; opacity: .6; } }

/* account */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.08); margin: 4px 0 10px; }
.seg-b { padding: 9px 6px; border-radius: 9px; font-weight: 700; background: transparent; border: 0; color: inherit; }
.seg-b.on { background: var(--paper, #f4f1e6); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.acct-card { display: grid; gap: 4px; margin: 6px 0 10px; }
.acct-card b { font-size: 1.3rem; }
.acct-reset { display: block; margin: 10px auto 0; }

/* referee check */
.ref-check-box { position: relative; margin-top: 10px; }
.ref-verdict { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; }
.ref-verdict.yes { background: rgba(31,157,85,.14); border: 1.5px solid #1f9d55; }
.ref-verdict.no { background: rgba(200,16,46,.10); border: 1.5px solid #c8102e; }
.ref-verdict svg { width: 16px; height: 16px; vertical-align: -3px; }
.ref-verdict .btn { margin-left: auto; }

/* last man standing */
.chain-turn { margin-top: 12px; }
.chain-turn .answer-form { margin-top: 12px; }
.chain-turn [data-giveup] { margin-top: 10px; }
.chain-alive { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.ch-p { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 700; font-size: .9rem; }
.ch-p.turn { background: var(--yellow); color: var(--ink, #16181b); }
.ch-p.out { opacity: .4; text-decoration: line-through; }
.chain-list { margin-top: 10px; }
.chain-done { justify-content: center; margin: 12px 0 16px; }
.art-chain { display: grid; place-items: center; }
.mini-chain { display: grid; gap: 6px; transform: rotate(-4deg); }
.mini-chain span { padding: 5px 12px; border-radius: 8px; background: #f6f1e4; color: #16181b; border: 2px solid #16181b; font: 800 .95rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; box-shadow: 2px 2px 0 #16181b; }
.mini-chain span:nth-child(2) { margin-left: 14px; } .mini-chain span:nth-child(3) { margin-left: 28px; }
.mini-chain span.x { margin-left: 42px; background: #e23b3b; color: #fff; }

/* 38-0 */
.art-d380 { display: grid; place-items: center; }
.mini-d380 { display: flex; align-items: baseline; gap: 4px; font: 900 2.6rem/1 var(--f-display); letter-spacing: .02em; color: #16181b; text-shadow: 2px 2px 0 rgba(255,255,255,.55); }
.mini-d380 i { font-style: normal; opacity: .6; }
.mini-d380.big { font-size: 5rem; justify-content: center; color: var(--yellow); text-shadow: 0 0 22px rgba(255,201,40,.35); }
.d380-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d380-wide { grid-column: 1 / -1; }
.draft { max-width: 640px; margin: 0 auto; padding-bottom: calc(var(--ad-h) + var(--safe-b) + 28px); }
.dr-load { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 60px 0; color: var(--cream-2); }
.dr-hero { text-align: center; padding: 6px 0 14px; }
.dr-hero p { margin: 8px 0 12px; color: var(--cream-2); }
.dr-how { text-align: left; margin: 0 0 8px; padding-left: 1.2rem; color: var(--cream-2); display: grid; gap: 4px; }
.dr-forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.dr-form { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; }
.dr-form b { font: 800 .95rem/1 var(--f-display); letter-spacing: .05em; }
.dr-form[aria-checked="true"] { border-color: var(--yellow); background: rgba(255,201,40,.14); }
.dr-mini { display: grid; gap: 3px; width: 100%; padding: 6px 4px; border-radius: 8px; background: rgba(31,157,85,.5); }
.dr-mini i { display: flex; justify-content: space-evenly; }
.dr-mini b { width: 7px; height: 7px; border-radius: 50%; background: #f6f1e4; }
.dr-best { text-align: center; color: var(--cream-2); font-size: .92rem; margin: 6px 0 14px; }
.dr-top { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; flex-wrap: wrap; }
.dr-rt { margin-left: auto; font-weight: 700; color: var(--cream-2); }
.dr-rt b { color: var(--yellow); font-size: 1.15rem; }
.dr-pitch { display: grid; gap: 6px; padding: 14px 6px 10px; border-radius: 16px; background: repeating-linear-gradient(0deg, #1c7a45 0 38px, #1f8a4e 38px 76px); border: 2px solid rgba(255,255,255,.25); position: relative; }
.dr-row { display: flex; justify-content: space-evenly; gap: 4px; }
.dr-slot { display: grid; justify-items: center; gap: 2px; width: 56px; }
.dr-slot em { font-style: normal; font-size: .66rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; max-width: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-shirt { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f6f1e4; border: 2.5px solid #16181b; color: #16181b; }
.dr-shirt b { font: 900 1rem/1 var(--f-display); }
.dr-shirt.empty { background: rgba(0,0,0,.28); border-style: dashed; border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.8); }
.dr-shirt.empty b { font-size: .75rem; letter-spacing: .04em; }
.dr-slot.hot .dr-shirt.empty { border-color: var(--yellow); color: var(--yellow); animation: qmPulse 1.6s infinite; }
.dr-slot.on.r-gold .dr-shirt { background: #ffc928; } .dr-slot.on.r-green .dr-shirt { background: #5fd38d; } .dr-slot.on.r-lime .dr-shirt { background: #c9e265; } .dr-slot.on.r-amber .dr-shirt { background: #f4b95a; } .dr-slot.on.r-grey .dr-shirt { background: #cfd3d6; }
.dr-spin { margin: 14px 0 6px; }
.dr-reels { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.dr-reel { padding: 8px 10px; border-radius: 14px; background: #0c1512; border: 2px solid rgba(255,255,255,.18); min-height: 78px; display: grid; align-content: center; gap: 4px; overflow: hidden; }
.dr-reel small { font: 700 .62rem/1 var(--f-display); letter-spacing: .16em; color: var(--cream-3); }
.dr-reel-in { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.dr-reel-in b { font: 800 1.2rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .03em; color: var(--yellow); }
.dr-reel-in.big b { font-size: 1.5rem; }
.dr-reel-in .crest { width: 34px; height: 34px; flex: none; }
.dr-btns { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.dr-btns .btn { min-height: 52px; }
.dr-hint { text-align: center; color: var(--cream-3); margin: 18px 0; }
.dr-tabs { display: flex; gap: 6px; margin: 12px 0 8px; overflow-x: auto; scrollbar-width: none; }
.dr-tabs button { padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.2); background: transparent; color: inherit; font-weight: 800; white-space: nowrap; }
.dr-tabs button small { margin-left: 5px; opacity: .65; }
.dr-tabs button.on { background: var(--yellow); color: #16181b; border-color: var(--yellow); }
.dr-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dr-p { display: grid; grid-template-columns: 46px 1fr auto 34px; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: inherit; text-align: left; }
.dr-p:not(.off):active { transform: scale(.985); }
.dr-p.off { opacity: .4; }
.dr-p .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-p .ps { font: 800 .72rem/1 var(--f-display); letter-spacing: .08em; color: var(--cream-3); text-align: right; }
.rt { display: grid; place-items: center; width: 42px; height: 34px; border-radius: 9px; font: 900 1.2rem/1 var(--f-display); color: #16181b; border: 2px solid #16181b; }
.rt.r-gold { background: #ffc928; } .rt.r-green { background: #5fd38d; } .rt.r-lime { background: #c9e265; } .rt.r-amber { background: #f4b95a; } .rt.r-grey { background: #cfd3d6; }
.dr-xi-head { text-align: center; margin: 4px 0 10px; }
.dr-big-rt { display: inline-block; padding: 4px 22px; border-radius: 16px; border: 3px solid #16181b; font: 900 3.4rem/1.1 var(--f-display); color: #16181b; }
.dr-big-rt.r-gold { background: #ffc928; } .dr-big-rt.r-green { background: #5fd38d; } .dr-big-rt.r-lime { background: #c9e265; } .dr-big-rt.r-amber { background: #f4b95a; } .dr-big-rt.r-grey { background: #cfd3d6; }
.dr-xi-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.dr-xi-list li { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.06); }
.dr-xi-list .rt { grid-row: span 2; } .dr-xi-list .nm { font-weight: 700; } .dr-xi-list small { color: var(--cream-3); }
.dr-live { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 16px; background: #0c1512; border: 2px solid rgba(255,255,255,.18); margin-bottom: 10px; }
.dr-rec { display: flex; align-items: baseline; gap: 6px; } .dr-rec b { font: 900 2rem/1 var(--f-led); color: var(--led); } .dr-rec small { color: var(--cream-3); margin-right: 8px; font-weight: 800; }
.dr-pts { text-align: right; } .dr-pts b { display: block; font: 900 2rem/1 var(--f-led); color: var(--yellow); } .dr-pts small { color: var(--cream-3); }
.dr-fixtures { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; max-height: 46vh; overflow: auto; }
.dr-m { display: grid; grid-template-columns: 28px 22px 1fr auto; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; border-left: 5px solid #888; background: rgba(255,255,255,.06); font-size: .92rem; }
.dr-m.w { border-color: #2fd17a; } .dr-m.d { border-color: #f4b95a; } .dr-m.l { border-color: #e23b3b; background: rgba(226,59,59,.14); }
.dr-m .n { color: var(--cream-3); font-size: .78rem; } .dr-m .ha { font-weight: 800; color: var(--cream-3); } .dr-m .o { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dr-m .sc { font-family: var(--f-display); font-size: 1.1rem; }
.dr-result { text-align: center; padding: 16px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.16); margin-bottom: 12px; }
.dr-result h2 { margin: 6px 0; font: 900 1.9rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.dr-result.gold { background: linear-gradient(180deg, rgba(255,201,40,.28), rgba(255,201,40,.08)); border-color: var(--yellow); } .dr-result.gold h2 { color: var(--yellow); font-size: 2.3rem; }
.dr-result.silver { border-color: #cfd3d6; } .dr-result.win { border-color: #2fd17a; }
.dr-recline { margin: 4px 0 12px; color: var(--cream-2); }
.dr-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.dr-table td { padding: 4px 6px; border-top: 1px solid rgba(255,255,255,.08); } .dr-table td:nth-child(3), .dr-table td:nth-child(4) { text-align: right; }
.dr-table tr.me { background: rgba(255,201,40,.2); font-weight: 800; } .dr-table tr.cl td:first-child { box-shadow: inset 3px 0 #2fd17a; } .dr-table tr.rel td:first-child { box-shadow: inset 3px 0 #e23b3b; }
.dr-rounds { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.dr-rounds li { display: grid; grid-template-columns: 1fr auto; padding: 8px 12px; border-radius: 10px; border-left: 5px solid #888; background: rgba(255,255,255,.06); }
.dr-rounds li.w { border-color: #2fd17a; } .dr-rounds li.l { border-color: #e23b3b; } .dr-rounds small { grid-column: span 2; color: var(--cream-3); } .dr-rounds b { font-family: var(--f-display); font-size: 1.15rem; }
.dr-newbest { text-align: center; font-weight: 800; color: var(--yellow); margin: 0 0 10px; }
.dr-actions { display: grid; gap: 8px; }


/* ================================================================ splash: the gavel strikes, the "sound" is drawn */
.gv { transform-box: view-box; transform-origin: 43px 41px; animation: gavelHit 1.5s cubic-bezier(.5, 0, .6, 1) infinite; }
/* the head swings about its own centre: raised and pulled back → down onto the block (its end cap lands on the middle of the black bar) → a small rebound */
@keyframes gavelHit {
  0% { transform: translate(5px, -6px) rotate(18deg); } 30% { transform: translate(10px, -15px) rotate(32deg); }
  44% { transform: translate(-11px, 5px) rotate(-45deg); } 50% { transform: translate(-11px, 1px) rotate(-38deg); } 56% { transform: translate(-11px, 5px) rotate(-45deg); }
  70% { transform: translate(-9px, 3px) rotate(-43deg); } 100% { transform: translate(5px, -6px) rotate(18deg); }
}
@keyframes bootShake { 0%, 41% { transform: translate(0, 0); } 44% { transform: translate(-3px, 4px); } 47% { transform: translate(3px, -3px); } 50% { transform: translate(-2px, 2px); } 54%, 100% { transform: translate(0, 0); } }
.boot-gavel .bang { position: absolute; right: -26px; top: -6px; font: 900 1.45rem/1 var(--f-display); letter-spacing: .06em; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 2px -1px 0 var(--ink), -1px 2px 0 var(--ink); transform: rotate(10deg) scale(0); opacity: 0; animation: bangPop 1.5s ease-out infinite; }
.boot-gavel .bang::before { content: 'BAM!'; }
html[data-lang="ru"] .boot-gavel .bang::before { content: 'БАХ!'; }
@keyframes bangPop { 0%, 42% { transform: rotate(10deg) scale(0); opacity: 0; } 46% { transform: rotate(10deg) scale(1.35); opacity: 1; } 52% { transform: rotate(10deg) scale(1); opacity: 1; } 78% { transform: rotate(10deg) scale(1); opacity: 1; } 92%, 100% { transform: rotate(10deg) scale(.9); opacity: 0; } }
.boot-gavel .wave { position: absolute; left: 37px; bottom: 16px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--cream-txt); opacity: 0; transform: scale(.2); animation: waveOut 1.5s ease-out infinite; }
.boot-gavel .wave.w2 { animation-delay: .09s; border-width: 2px; }
.boot-gavel .wave.w3 { animation-delay: .18s; border-width: 1.5px; }
@keyframes waveOut { 0%, 43% { opacity: 0; transform: scale(.2); } 46% { opacity: .95; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(3.4); } }
.boot-gavel .spark { position: absolute; width: 10px; height: 3px; border-radius: 2px; background: var(--yellow); left: 47px; bottom: 26px; opacity: 0; transform-origin: 0 50%; animation: sparkOut 1.5s ease-out infinite; }
.boot-gavel .spark.k2 { --a: -48deg; } .boot-gavel .spark.k3 { --a: -88deg; } .boot-gavel .spark.k1 { --a: -12deg; } .boot-gavel .spark.k4 { --a: -128deg; }
@keyframes sparkOut { 0%, 43% { opacity: 0; transform: rotate(var(--a)) translateX(2px) scaleX(.3); } 47% { opacity: 1; transform: rotate(var(--a)) translateX(10px) scaleX(1); } 66%, 100% { opacity: 0; transform: rotate(var(--a)) translateX(26px) scaleX(.4); } }
@media (prefers-reduced-motion: reduce) { .gv, .boot-gavel, .boot-gavel .bang, .boot-gavel .wave, .boot-gavel .spark { animation: none; } .gv { transform: translate(-11px, 5px) rotate(-45deg); } .boot-gavel .bang { opacity: 1; transform: rotate(10deg) scale(1); } }

/* ================================================================ coins */
.coin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c542 55%, #b98a12); border: 1.5px solid #7a5b00; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); position: relative; flex: none; vertical-align: -.12em; }
.coin::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgba(122, 91, 0, .55); }
.coinv { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.coinv b { font-variant-numeric: tabular-nums; }
.led-chip .coin { font-size: .9em; margin-right: 2px; }

/* ================================================================ name styles (leaderboard, rooms, shop) */
.ns-plain { overflow: hidden; text-overflow: ellipsis; }
.ns { position: relative; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; vertical-align: middle; isolation: isolate; }
.ns .nt { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.ns.big { font-size: 1.5rem; }
.ns .bd { flex: none; }
.bd-i { width: 1.15em; height: 1.15em; display: block; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.bd-t { font: 900 .62em/1 var(--f-display); letter-spacing: .09em; font-style: normal; padding: .32em .5em .22em; border-radius: 5px; background: var(--ink); color: var(--yellow); border: 1.5px solid var(--yellow); transform: skewX(-8deg); }
.bd-t.bd-goat { background: #fff; color: #16181b; border-color: #16181b; } .bd-t.bd-var { background: #0c1512; color: #fff; border-color: #fff; } .bd-t.bd-siu { background: #e23b3b; color: #fff; border-color: #fff; }
.bd-t.bd-inv { background: linear-gradient(90deg, #ffd23f, #fff6c4, #ffd23f); color: #16181b; border-color: #7a5b00; } .bd-t.bd-p38 { background: #16181b; color: #ffd23f; border-color: #ffd23f; letter-spacing: .02em; }
.ns.has-plate { min-width: 9.5em; justify-content: center; padding: 3px 14px; border-radius: 9px; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); overflow: hidden; }
.ns .plate { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; font: 900 .56em/1 var(--f-display); letter-spacing: .28em; opacity: .38; text-transform: uppercase; pointer-events: none; padding-left: 4px; }
.ns-gold .nt { background: linear-gradient(100deg, #8f6a00 10%, #ffe27a 28%, #fffbe0 40%, #e0a919 55%, #8f6a00 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldshine 3.2s linear infinite; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)); }
@keyframes goldshine { to { background-position: -220% 0; } }
.ns-silver .nt { background: linear-gradient(100deg, #8f989e, #f5f8fa 35%, #aab3b9 60%, #eef2f5); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.ns-neon .nt { color: #d7ffe9; text-shadow: 0 0 4px #2fd17a, 0 0 10px #2fd17a, 0 0 22px #19b862; }
.ns-fire .nt { background: linear-gradient(0deg, #ff3b00 5%, #ff9a1a 45%, #ffe27a 95%); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fireflick 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 5px rgba(255, 90, 0, .65)); }
@keyframes fireflick { to { background-position: 0 40%; } }
.ns-mu { background: linear-gradient(90deg, #6e0a0a, #da291c 60%, #8f1010); } .ns-mu .nt { color: #fff; text-shadow: 0 1px 0 #3a0505; } .ns-mu .plate { color: #ffd24a; }
.ns-rm { background: linear-gradient(90deg, #ffffff, #ece6ff 70%, #fff); } .ns-rm .nt { color: #2b1b6b; } .ns-rm .plate { color: #b8860b; opacity: .5; }
.ns-ars { background: linear-gradient(90deg, #9c0005, #ef0107 55%, #9c0005); } .ns-ars .nt { color: #fff; } .ns-ars .plate { color: #ffd9a0; }
.ns-liv { background: linear-gradient(90deg, #8f0b1c, #c8102e 55%, #8f0b1c); } .ns-liv .nt { color: #fff; } .ns-liv .plate { color: #f6eb61; }
.ns-mci { background: linear-gradient(90deg, #4f8fc2, #6cabdd 55%, #4f8fc2); } .ns-mci .nt { color: #fff; text-shadow: 0 1px 0 #1c2c5b; } .ns-mci .plate { color: #1c2c5b; opacity: .45; }
.ns-che { background: linear-gradient(90deg, #022b6b, #034694 55%, #022b6b); } .ns-che .nt { color: #fff; } .ns-che .plate { color: #dba111; }
.ns-bar { background: linear-gradient(90deg, #004d98 0 50%, #a50044 50% 100%); } .ns-bar .nt { color: #edbb00; text-shadow: 0 1px 0 #000; } .ns-bar .plate { color: #fff; }
.ns-bvb { background: linear-gradient(90deg, #f5d800, #fde100 60%, #f5d800); } .ns-bvb .nt { color: #111; } .ns-bvb .plate { color: #111; opacity: .35; }
.ns-spa { background: linear-gradient(90deg, #a30c24, #c8102e 55%, #a30c24); } .ns-spa .nt { color: #fff; } .ns-spa .plate { color: #fff; }
.ns-zen { background: linear-gradient(90deg, #0c3f95, #0a8fd3 55%, #0c3f95); } .ns-zen .nt { color: #fff; } .ns-zen .plate { color: #cfeaff; }
.ns-cska { background: linear-gradient(90deg, #0c3a82 0 50%, #d52b1e 50% 100%); } .ns-cska .nt { color: #fff; text-shadow: 0 1px 0 #000; } .ns-cska .plate { color: #fff; }
.ns-loko { background: linear-gradient(90deg, #0a7d3b 0 50%, #d52b1e 50% 100%); } .ns-loko .nt { color: #fff; text-shadow: 0 1px 0 #000; } .ns-loko .plate { color: #fff; }
.rk-row .rk-name b .ns { font-size: 1em; }

/* ================================================================ shop */
.sh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 2px solid rgba(255, 255, 255, .16); margin: 6px 0 12px; }
.sh-me { min-width: 0; flex: 1; font: 800 1.3rem/1.2 var(--f-body); overflow: hidden; }
.sh-bal { text-align: right; } .sh-bal small { display: block; color: var(--cream-3); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; } .sh-bal .coinv { font-size: 1.5rem; }
.sh-tabs button small, .sh-sub button small { margin-left: 6px; opacity: .7; }
.sh-note { margin: 4px 2px 10px; }
.sh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.sh-card { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .14); align-content: start; }
.sh-card.on { border-color: var(--yellow); background: rgba(255, 201, 40, .1); }
.sh-prev { min-height: 68px; border-radius: 12px; background: #0e1b17; display: grid; place-items: center; padding: 8px; overflow: hidden; font-size: .95rem; position: relative; }
.sh-pitch { background: repeating-linear-gradient(180deg, var(--pa) 0 18px, var(--pb) 18px 36px); min-height: 90px; padding: 0; }
.sh-pitch .stadium-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-pitch.snow { background: repeating-linear-gradient(180deg, #4a6a79 0 18px, #577886 18px 36px); } .sh-pitch.sand { background: repeating-linear-gradient(180deg, #8a7648 0 18px, #9a8556 18px 36px); }
.sh-pitch.chess { background: repeating-conic-gradient(var(--pb) 0 25%, var(--pa) 0 50%) 0 0 / 28px 28px; }
.sh-pitch.lights { background: radial-gradient(60% 80% at 20% 0, rgba(255, 255, 255, .35), transparent 70%), radial-gradient(60% 80% at 80% 0, rgba(255, 255, 255, .35), transparent 70%), repeating-linear-gradient(180deg, var(--pa) 0 18px, var(--pb) 18px 36px); }
.sh-pl { position: absolute; left: 20%; right: 20%; top: 38%; bottom: 14%; border: 2px solid rgba(255, 255, 255, .4); border-radius: 4px; }
.sh-meta { display: grid; gap: 6px; } .sh-meta b { font-size: .9rem; line-height: 1.2; }
.sh-meta .btn { width: 100%; justify-content: center; }
.sh-lock { font-size: .74rem; color: var(--cream-2); line-height: 1.3; }
.sh-ach { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.sh-ach li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .12); }
.sh-ach li.done { border-color: var(--yellow); background: rgba(255, 201, 40, .1); }
.sh-ach .sh-ai { font-size: 1.4rem; color: var(--yellow); text-align: center; } .sh-ach small { display: block; color: var(--cream-3); } .sh-ach .sh-un { color: var(--yellow); }

/* pitch / stadium behind the whole game */
.stadium { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stadium-svg { width: 100%; height: 100%; display: block; }
html.has-stadium .appbar { background: linear-gradient(rgba(0, 0, 0, .5) 55%, transparent); }
.stadium.st-lights::before, .stadium.st-lights::after { content: ''; position: absolute; top: -10%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(255, 255, 255, .32), transparent); }
.stadium.st-lights::before { left: -25%; } .stadium.st-lights::after { right: -25%; }
html[data-pitch="chess"] body { background: repeating-conic-gradient(rgba(255, 255, 255, .045) 0 25%, transparent 0 50%) 0 0 / 96px 96px, radial-gradient(120% 60% at 50% -10%, var(--pitch-3), transparent 70%), var(--pitch); background-attachment: fixed; }
html[data-pitch="snow"] .dr-pitch, html[data-pitch="snow"] .cr-pitch { background: repeating-linear-gradient(0deg, #4a6a79 0 38px, #577886 38px 76px); }
html[data-pitch="sand"] .dr-pitch, html[data-pitch="sand"] .cr-pitch { background: repeating-linear-gradient(0deg, #8a7648 0 38px, #9a8556 38px 76px); }
html[data-pitch="night"] .dr-pitch, html[data-pitch="night"] .cr-pitch { background: repeating-linear-gradient(0deg, #0e3a4d 0 38px, #114659 38px 76px); }
html[data-pitch]:not([data-pitch="grass"]):not([data-pitch="snow"]):not([data-pitch="sand"]):not([data-pitch="night"]) .dr-pitch, html[data-pitch]:not([data-pitch="grass"]):not([data-pitch="snow"]):not([data-pitch="sand"]):not([data-pitch="night"]) .cr-pitch { background: repeating-linear-gradient(0deg, #1a7a40 0 38px, #1f8a4a 38px 76px); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 14px 30px -14px rgba(0, 0, 0, .7); }


/* ================================================================ coach career */
.cr-logo { width: 72px; height: 72px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 22px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--lift); }
.cr-logo svg { width: 42px; height: 42px; }
.cr-h { margin: 6px 0 8px; font: 900 2.2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--yellow); }
.cr-card { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .14); margin: 0 0 12px; display: grid; gap: 8px; }
.cr-card.bad { border-color: var(--red); background: rgba(226, 59, 59, .14); }
.cr-card > b:first-child { font: 800 1rem/1.1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); }
.cr-cont { gap: 12px; } .cr-cont-top { display: flex; align-items: center; gap: 12px; } .cr-cont-top b { display: block; font-size: 1.15rem; } .cr-cont-top small { color: var(--cream-2); }
.cr-cont-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--cream-2); } .cr-cont-stats b { color: var(--yellow); }
.cr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.cr-rules { margin: 16px 0; padding-left: 1.1rem; display: grid; gap: 8px; color: var(--cream-2); font-size: .92rem; }
.crest-md { width: 48px; height: 48px; flex: none; }
.cr-offers { display: grid; gap: 10px; margin: 10px 0; }
.cr-offer { display: grid; grid-template-columns: 52px 1fr; gap: 10px 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .16); align-items: start; }
.cr-offer > .btn { grid-column: 1 / -1; }
.cr-offer-b b { display: block; font-size: 1.1rem; } .cr-offer-b > small { color: var(--cream-2); }
.cr-offer dl { display: flex; gap: 14px; margin: 8px 0 4px; flex-wrap: wrap; } .cr-offer dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); } .cr-offer dd { margin: 0; font-weight: 800; } .cr-offer dd small { color: var(--cream-3); font-weight: 600; }
.cr-exp { margin: 4px 0 0; font-size: .88rem; color: var(--cream-2); } .cr-exp b { color: var(--cream-txt); }
.cr-head { padding: 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 2px solid rgba(255, 255, 255, .16); margin: 4px 0 10px; display: grid; gap: 10px; }
.cr-head-top { display: flex; align-items: center; gap: 12px; } .cr-head-top > div:nth-child(2) { min-width: 0; flex: 1; } .cr-head-top b { display: block; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cr-head-top small { color: var(--cream-2); }
.cr-bud { text-align: right; } .cr-bud small { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); } .cr-bud b { font: 900 1.5rem/1 var(--f-led); color: var(--led); }
.cr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-need { margin: 0; font-size: .86rem; font-weight: 700; } .cr-need.warn { color: var(--yellow); } .cr-need.ok { color: var(--green); }
.cr-tabs button { flex: 1; text-align: center; }
.cr-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.cr-p { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px 7px 8px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); }
.cr-p.armed { border-color: var(--yellow); background: rgba(255, 201, 40, .12); }
.cr-pn { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; } .cr-pn .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.cr-pn small { flex-basis: 100%; color: var(--cream-3); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-xi { color: var(--green); font-style: normal; font-size: .7rem; }
.cr-pot { color: var(--yellow); font-weight: 800; }
.pos { display: inline-block; min-width: 2.2em; text-align: center; padding: 1px 5px; border-radius: 5px; font: 800 .7rem/1.3 var(--f-display); letter-spacing: .06em; color: #16181b; }
.pos-0 { background: #ffd23f; } .pos-1 { background: #6bb8ff; } .pos-2 { background: #5fd38d; } .pos-3 { background: #ff8a6a; }
.cr-pv { display: flex; align-items: center; gap: 8px; } .cr-val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cream-2); font-size: .9rem; }
.cr-offbox { display: grid; gap: 3px; text-align: right; justify-items: end; } .cr-offbox small { color: var(--cream-3); max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cr-offbox b { font: 900 1.2rem/1 var(--f-led); color: var(--led); } .cr-offbox span { display: flex; gap: 6px; }
.cr-gh { display: flex; justify-content: space-between; margin: 14px 2px 6px; font: 800 .9rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); } .cr-gh small { opacity: .6; }
.cr-dev { margin-top: 10px; } .cr-dev .up { color: var(--green); } .cr-dev .down { color: #ff8a6a; }
.cr-filters { display: grid; gap: 8px; margin-bottom: 10px; } .cr-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.cr-filters select, .cr-filters input[type=search] { width: 100%; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3); color: inherit; }
.cr-chk { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.cr-buy { white-space: nowrap; min-width: 74px; justify-content: center; }
.cr-cta { position: sticky; bottom: calc(var(--ad-h) + var(--safe-b) + 8px); margin-top: 12px; z-index: 5; }
.cr-pitch { margin-top: 4px; }
.cr-focus { display: grid; gap: 8px; margin-bottom: 12px; } .cr-focus button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); display: grid; gap: 2px; color: inherit; } .cr-focus button small { color: var(--cream-3); } .cr-focus button[aria-checked="true"] { border-color: var(--yellow); background: rgba(255, 201, 40, .13); }
.cr-obj { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; } .cr-obj.chk { list-style: none; padding: 0; } .cr-obj.chk li { padding-left: 1.6rem; position: relative; } .cr-obj.chk li::before { position: absolute; left: 0; font-weight: 900; } .cr-obj.chk li.ok::before { content: '✓'; color: var(--green); } .cr-obj.chk li.no::before { content: '✗'; color: var(--red); }
.cr-live { padding: 12px 14px; border-radius: 18px; background: #0c1512; border: 2px solid rgba(255, 255, 255, .18); margin-bottom: 10px; display: grid; gap: 10px; }
.cr-live-top { display: flex; align-items: center; gap: 12px; } .cr-live-top b { display: block; font-size: 1.1rem; } .cr-live-top small { color: var(--cream-2); }
.cr-live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; } .cr-live-stats small { display: block; color: var(--cream-3); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; } .cr-live-stats b { font: 900 1.7rem/1.1 var(--f-led); color: var(--led); }
.cr-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; } .cr-bar i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .3s; }
.cr-phase { color: var(--cream-3); }
.cr-feed { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; max-height: 52vh; overflow: auto; }
.cr-m { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; border-left: 5px solid #888; background: rgba(255, 255, 255, .06); font-size: .92rem; animation: arrive .25s ease-out both; }
.cr-m.w { border-color: #2fd17a; } .cr-m.d { border-color: #f4b95a; } .cr-m.l { border-color: #e23b3b; background: rgba(226, 59, 59, .13); }
.cr-mt small { display: block; color: var(--cream-3); font-size: .7rem; } .cr-mt .me { font-weight: 800; color: var(--yellow); } .cr-mt i { color: var(--cream-3); font-style: normal; margin: 0 3px; }
.cr-m b { font-family: var(--f-display); font-size: 1.15rem; white-space: nowrap; } .cr-m b small { font: 600 .65rem var(--f-body); color: var(--cream-3); }
.cp { display: inline-block; text-align: center; padding: 3px 0; border-radius: 6px; font: 900 .68rem/1 var(--f-display); letter-spacing: .06em; color: #16181b; background: #cfd3d6; min-width: 34px; padding-inline: 4px; }
.cp-lg { background: #5fd38d; } .cp-cup { background: #ffd23f; } .cp-cl { background: #6bb8ff; } .cp-el { background: #ff9a3d; } .cp-ecl { background: #7be0c2; }
.cr-verdict { margin: 4px 0 8px; font-weight: 800; } .cr-conf { margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: .8rem; background: rgba(255, 255, 255, .1); } .cr-conf.up { color: var(--green); } .cr-conf.down { color: #ff8a6a; }
.dr-result.bad { border-color: var(--red); background: rgba(226, 59, 59, .13); }
.cr-trophies { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.cr-tr { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: linear-gradient(180deg, rgba(255, 201, 40, .32), rgba(255, 201, 40, .1)); border: 1.5px solid var(--yellow); color: var(--yellow); font-weight: 800; } .cr-tr svg { width: 1.3em; height: 1.3em; }
.cr-comps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cr-comps li { display: flex; align-items: center; gap: 10px; } .cr-comps li b { margin-left: auto; }
.cr-scorers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .cr-scorers li { display: grid; grid-template-columns: 22px 24px 1fr auto auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; } .cr-scorers li.me { background: rgba(255, 201, 40, .16); } .cr-scorers .n { color: var(--cream-3); } .cr-scorers small { color: var(--cream-3); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cr-scorers b { font: 900 1.2rem/1 var(--f-display); color: var(--yellow); }
.cr-tab { font-size: .84rem; } .cr-tab tr.z-cl td:first-child { box-shadow: inset 4px 0 #6bb8ff; } .cr-tab tr.z-el td:first-child { box-shadow: inset 4px 0 #ff9a3d; } .cr-tab tr.z-ecl td:first-child { box-shadow: inset 4px 0 #7be0c2; } .cr-tab tr.z-rel td:first-child { box-shadow: inset 4px 0 #e23b3b; }
.cr-tab td:nth-child(3), .cr-tab td:nth-child(4), .cr-tab td:nth-child(5) { text-align: right; }
.cr-legend { margin: 6px 0 0; font-size: .74rem; color: var(--cream-3); } .cr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; } .cr-legend i.z-cl { background: #6bb8ff; } .cr-legend i.z-el { background: #ff9a3d; } .cr-legend i.z-ecl { background: #7be0c2; } .cr-legend i.z-rel { background: #e23b3b; }
.cr-champs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .cr-champs li { display: flex; justify-content: space-between; gap: 10px; } .cr-champs li span { color: var(--cream-3); } .cr-champs li.sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cr-coins { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .cr-coins li { display: flex; justify-content: space-between; } .cr-coins li.tot { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 1.1rem; }
.cr-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .cr-news li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; } .cr-news li > span { grid-column: 1 / -1; color: var(--cream-3); font-size: .8rem; }
.cr-cabinet { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; } .cr-cabinet li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 201, 40, .2), rgba(255, 201, 40, .05)); border: 1.5px solid rgba(255, 201, 40, .55); color: var(--yellow); } .cr-cabinet li svg { width: 24px; height: 24px; } .cr-cabinet li span { color: var(--cream-txt); font-weight: 700; } .cr-cabinet li b { font: 900 1.4rem/1 var(--f-display); }
.cr-hist td:nth-child(3) { text-align: right; } .cr-hist td:last-child { color: var(--yellow); }

.dr-coins { text-align: center; margin: 0 0 10px; color: var(--cream-2); } .dr-coins .coinv { font-size: 1.3rem; color: var(--yellow); margin-right: 4px; }

/* ================================================================ draft duel */
.duel-opp { background: rgba(107, 184, 255, .2); border-color: #6bb8ff; } .duel-t { background: rgba(255, 201, 40, .18); border-color: var(--yellow); font-weight: 800; } .duel-t.warn { background: rgba(226, 59, 59, .3); border-color: var(--red); animation: pulse 1s infinite; }
.du-join { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 8px 0; } .du-join input { min-height: 48px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); color: inherit; padding: 0 14px; font: 900 1.4rem var(--f-led); letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.du-wait .qm-ring { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; border: 4px solid var(--green); animation: qmRing 1.6s ease-out infinite; }
.du-code { margin: 10px auto 12px; padding: 10px 22px; width: max-content; border-radius: 14px; background: #0c1512; border: 2px solid var(--yellow); font: 900 2.6rem/1 var(--f-led); letter-spacing: .28em; color: var(--led); }
.du-waitcard { grid-auto-flow: column; justify-content: center; align-items: center; margin-bottom: 12px; }
.du-score { font: 900 2.1rem/1 var(--f-display); margin: 0 8px; }
.du-vs { display: flex; justify-content: center; gap: 22px; margin: 10px 0; } .du-vs div { display: grid; justify-items: center; gap: 4px; } .du-vs small { color: var(--cream-3); } .du-vs b { font: 900 1.9rem/1 var(--f-display); padding: 3px 14px; border-radius: 12px; border: 2.5px solid #16181b; color: #16181b; background: #cfd3d6; }
.du-vs b.r-gold { background: #ffc928; } .du-vs b.r-green { background: #5fd38d; } .du-vs b.r-lime { background: #c9e265; } .du-vs b.r-amber { background: #f4b95a; }
.du-elo { margin: 6px 0; color: var(--cream-2); } .du-elo .up { color: var(--green); } .du-elo .down { color: #ff8a6a; }
.du-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.du-xi { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .du-xi li { display: grid; grid-template-columns: 38px 1fr; gap: 8px; align-items: center; padding: 3px 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: .88rem; } .du-xi .rt { width: 36px; height: 28px; font-size: 1rem; }

.ns.has-pill { padding: 2px 11px; border-radius: 8px; background: #101a16; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }

.cr-rel { min-width: 34px; padding-inline: 8px; }

/* ================================================================ career v2: line-up, match centre, decisions */
.cr-bud b.neg, .cr-after.neg b { color: #ff8a6a; }
.cr-ref { color: #ff8a6a; font-weight: 700; } .cr-def { color: var(--cream-3); } .cr-ct1 { color: #ff8a6a; font-weight: 700; }
.cr-p.refuse { opacity: .6; }
.dr-slot { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.dr-slot .dr-shirt { position: relative; }
.dr-slot .dr-shirt sup { position: absolute; right: -9px; top: -7px; font: 900 .62rem/1 var(--f-display); color: #fff; background: var(--red); border-radius: 6px; padding: 2px 3px; border: 1.5px solid #16181b; }
.dr-slot.off .dr-shirt { box-shadow: 0 0 0 2.5px rgba(226, 59, 59, .75); }
.dr-slot.sel .dr-shirt { box-shadow: 0 0 0 3.5px var(--yellow); transform: scale(1.1); }
.dr-slot .rl { font: 800 .56rem/1 var(--f-display); font-style: normal; letter-spacing: .06em; color: rgba(255, 255, 255, .75); }
.cr-tip { text-align: center; margin: 4px 6px 10px; }
.cr-eff { font: 900 1.05rem/1 var(--f-display); color: var(--green); } .cr-eff.off { color: #ff8a6a; } .cr-eff small { font-size: .7rem; }
.cr-skips { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.cr-skips .btn { display: grid; gap: 2px; padding: 8px 10px; min-height: 56px; text-align: center; } .cr-skips .btn b { font-size: .92rem; line-height: 1.1; } .cr-skips .btn small { font-weight: 600; opacity: .75; font-size: .7rem; }
.cr-skips .btn.on { animation: pulse 1.4s infinite; }
.cr-m.key { border-left-width: 7px; background: rgba(255, 201, 40, .1); }
.cr-m .kt { font: 900 .62rem/1 var(--f-display); font-style: normal; letter-spacing: .08em; color: #16181b; background: var(--yellow); padding: 2px 5px; border-radius: 5px; margin-left: 4px; }
.cr-gl { display: block; margin-top: 2px; color: var(--cream-3); line-height: 1.35; } .cr-gl i { font-style: normal; font-weight: 800; color: var(--cream-2); } .cr-gl span.you { color: var(--yellow); font-weight: 800; }
.cr-mc { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4, 12, 9, .82); backdrop-filter: blur(3px); }
.cr-mc[hidden] { display: none; }
.cr-mc-card { width: min(100%, 420px); max-height: 92vh; overflow: auto; padding: 16px; border-radius: 20px; background: #0c1512; border: 2px solid var(--yellow); box-shadow: 0 20px 50px -10px #000; display: grid; gap: 10px; }
.mc-tags { display: flex; align-items: center; gap: 8px; } .mc-tags small { color: var(--cream-2); } .mc-key { margin-left: auto; font: 900 .72rem/1 var(--f-display); letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: var(--yellow); color: #16181b; }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; }
.mc-t { display: grid; justify-items: center; gap: 4px; } .mc-t b { font-size: .95rem; line-height: 1.15; }
.mc-sc { display: flex; align-items: center; gap: 8px; font: 900 2.6rem/1 var(--f-led); color: var(--led); } .mc-sc i { color: var(--cream-3); font-style: normal; }
.mc-clock { text-align: center; font: 800 1.1rem var(--f-display); letter-spacing: .1em; color: var(--green); }
.mc-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 40px; }
.mc-goals li { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); animation: arrive .25s ease-out both; } .mc-goals li.a { flex-direction: row-reverse; text-align: right; } .mc-goals li span { color: var(--cream-3); font-weight: 800; min-width: 2.4em; }
.mc-goals li.you { background: rgba(255, 201, 40, .2); } .mc-goals li.you b { color: var(--yellow); } .mc-goals li.hd { justify-content: center; background: none; color: var(--cream-3); font: 800 .75rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.mc-agg { margin: 0; text-align: center; color: var(--cream-2); } .mc-actions { display: grid; gap: 8px; } .mc-actions .btn { width: 100%; }
.cr-after { margin: 4px 0 0; font-weight: 700; color: var(--cream-2); } .cr-after b { color: var(--green); }

/* ================================================================ more cosmetics: name styles, titles, row frames, stadium previews */
.ns-ice .nt { background: linear-gradient(180deg, #ffffff, #8fd4ff 55%, #4aa3df); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 5px rgba(120, 200, 255, .7)); }
.ns-matrix { font-family: 'Doto', monospace; } .ns-matrix .nt { color: #8dff9d; text-shadow: 0 0 6px #18e043, 0 0 14px #0a9a2a; letter-spacing: .06em; font-family: var(--f-led); }
.ns-royal .nt { background: linear-gradient(100deg, #5b2bb8, #c9a6ff 40%, #ffe48a 60%, #8a4be0); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldshine 5s linear infinite; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.ns-rainbow .nt { background: linear-gradient(90deg, #ff4d4d, #ffb84d, #f6ff4d, #4dff88, #4dc3ff, #b84dff, #ff4d4d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldshine 4s linear infinite; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)); }
.tt { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font: 800 .62em/1.2 var(--f-display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; background: #16181b; color: var(--yellow); border: 1.5px solid var(--yellow); white-space: nowrap; }
.tt-rags, .tt-cinder, .tt-dyn, .tt-perfect, .tt-legion { background: linear-gradient(90deg, #7a5b00, #f5c542 50%, #7a5b00); color: #16181b; border-color: #fff2b0; }
.tt-special, .tt-legend { background: #3a1a6a; color: #e8d6ff; border-color: #c9a6ff; }
.rk-row.fr-goldf { border: 2px solid #f5c542 !important; background: linear-gradient(90deg, rgba(245, 197, 66, .35), rgba(255, 255, 255, .0) 60%), var(--paper) !important; box-shadow: 0 0 0 2px #7a5b00, 0 0 18px rgba(245, 197, 66, .55); }
.rk-row.fr-flame { border: 2px solid #ff7a1a !important; box-shadow: 0 0 16px rgba(255, 110, 20, .6), inset 0 -10px 18px -10px rgba(255, 90, 0, .5); animation: flameBox 1.3s ease-in-out infinite alternate; }
@keyframes flameBox { to { box-shadow: 0 0 24px rgba(255, 140, 30, .8), inset 0 -14px 22px -8px rgba(255, 60, 0, .6); } }
.rk-row.fr-neonf { border: 2px solid #2fd17a !important; box-shadow: 0 0 10px #2fd17a, inset 0 0 10px rgba(47, 209, 122, .35); }
.rk-row.fr-grassf { background: repeating-linear-gradient(90deg, #1f8a4e 0 22px, #1a7a42 22px 44px) !important; color: #fff; border: 2px solid #fff !important; } .rk-row.fr-grassf * { color: #fff !important; }
.rk-row.fr-lights { background: radial-gradient(70% 160% at 10% -30%, rgba(255, 255, 220, .85), transparent 60%), radial-gradient(70% 160% at 90% -30%, rgba(255, 255, 220, .85), transparent 60%), #1b2a24 !important; color: #fff; border: 2px solid #cfe9ff !important; } .rk-row.fr-lights * { color: #fff !important; }
.rk-row.fr-confetti { background: radial-gradient(circle at 12% 30%, #ff4d4d 2.5px, transparent 3px), radial-gradient(circle at 36% 70%, #4dc3ff 2.5px, transparent 3px), radial-gradient(circle at 62% 25%, #f6ff4d 2.5px, transparent 3px), radial-gradient(circle at 84% 65%, #b84dff 2.5px, transparent 3px), radial-gradient(circle at 50% 50%, #4dff88 2px, transparent 3px), var(--paper) !important; border: 2px dashed #e23b3b !important; }
.rk-row.fr-champ { border: 2px solid #c9a6ff !important; background: linear-gradient(90deg, rgba(90, 40, 180, .4), rgba(255, 228, 138, .25)), var(--paper) !important; box-shadow: 0 0 0 2px #4a1fa0, 0 0 20px rgba(150, 100, 255, .6); }
.sh-prev .rk-row.demo { width: 100%; min-height: 48px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.sh-prev .rk-row.demo .rk-name small { color: var(--ink-3); }
.sh-pitch.sh-stad { min-height: 112px; background: #06120c; } .sh-pitch.sh-stad .stadium-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .rk-row.fr-flame, .ns-royal .nt, .ns-rainbow .nt { animation: none; } }
/* injuries */
.cr-inj { color: #ff8a6a; font-weight: 800; } .cr-m.inj { border-color: #ff8a6a; background: rgba(255, 138, 106, .1); } .cp-inj { background: #ff8a6a; }
.dr-slot.hurt .dr-shirt { box-shadow: 0 0 0 2.5px #ff8a6a; } .dr-slot .cross { position: absolute; right: -8px; bottom: -4px; font-size: .8rem; }

.art-career { background: linear-gradient(160deg, #2fd17a, #1f9a62); } .mini-career { display: grid; justify-items: center; gap: 2px; color: #16181b; } .mini-career svg { width: 40px; height: 40px; } .mini-career b { font: 900 2.2rem/1 var(--f-display); } .mini-career small { font: 800 .7rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.mode-career { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.cr-skips .btn { min-width: 0; } .cr-skips .btn b, .cr-skips .btn small { white-space: normal; overflow-wrap: anywhere; }

.sh-pitch.sh-stad { aspect-ratio: 400 / 156; min-height: 0 !important; padding: 0; background: #050f0a; }
