/* ============================================================================
   YERALTI design system v4.0 — "DOSYA" (DESIGN.md is the source of truth)
   Warm near-black surfaces · BRASS/GOLD = brand/action · coral = danger ONLY ·
   info-blue = data · green = money · patina = location/time. Soft rounded
   geometry (border-radius, NEVER clip-path chamfer) · Bricolage Grotesque /
   Hanken Grotesk / JetBrains Mono / Newsreader. Depth from light (lamp glow,
   top sheen) + long soft shadow. Token & class NAMES are stable (104 templates
   depend on them) — the chamfer engine is removed; only values/geometry change.
   Legacy var names (--amber, --text-hi, --cut-*, …) are aliased so older markup
   keeps working. Fully supersedes the "CEPHE HUD" language.
   ============================================================================ */
:root {
  /* ---- DOSYA canonical tokens (DESIGN §3) ---- */
  --ink:#0f0c0a; --bg1:#15110d; --panel:#1c1712; --panel2:#241d16; --raised:#2c241b;
  --line:rgba(228,183,95,.11); --line2:rgba(228,183,95,.2); --line3:rgba(228,183,95,.32);
  --thi:#f4ecdc; --tx2:#e6dcc8; --tx:#c9bca4; --tdim:#8e8268; --tmute:#6a6049;

  /* BRAND — brass/gold */
  --gold:#e3b75f; --gold-deep:#b8863a; --gold-hi:#f4d79a;
  --gold-soft:rgba(227,183,95,.12); --gold-line:rgba(227,183,95,.40); --on-gold:#1d1306;

  /* semantics */
  --money:#5fc08a; --money-deep:#3f9c74;
  --info:#74b6cf; --info-deep:#3f8aa3;
  --patina:#74aaa6; --danger:#e3776c; --danger-hi:#f2998f; --ox:#a8463c;

  /* recipes */
  --card-grad:linear-gradient(165deg, rgba(45,37,27,.60), rgba(24,19,14,.50));
  --shadow:0 30px 60px -34px rgba(0,0,0,.90);
  --glow:0 18px 34px -16px var(--gold-line);
  --ease:cubic-bezier(.2,.8,.2,1);

  /* font families */
  --disp:'Bricolage Grotesque', sans-serif;
  --body:'Hanken Grotesk', system-ui, sans-serif;
  --mono:'JetBrains Mono', monospace;
  --serif:'Newsreader', serif;

  /* ---- LEGACY ALIASES (old names → DOSYA) so existing markup never breaks ---- */
  --bg-0:var(--ink); --bg-1:var(--bg1); --bg-top:var(--raised); --bg-mid:var(--bg1); --bg-bot:var(--ink);
  --panel-2:var(--panel2);
  --line-soft:rgba(228,183,95,.07); --line-strong:var(--line3); --hair:rgba(228,183,95,.06);
  --panel-grad:var(--card-grad); --module-grad:linear-gradient(165deg, rgba(50,41,29,.55), rgba(28,23,16,.45));
  --amber:var(--gold); --amber-deep:var(--gold-deep); --amber-hi:var(--gold-hi);
  --amber-glow:var(--gold-line); --amber-grad:linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  --on-amber:var(--on-gold);
  --accent:var(--info); --accent-deep:var(--info-deep); --accent-glow:rgba(116,182,207,.32);
  --cyan:var(--info); --diamond:var(--info);
  --money-dim:var(--money-deep); --warn:var(--gold);
  --danger-2:var(--danger-hi);
  --red:var(--danger); --red-deep:var(--ox); --red-dark:#3a1714; --red-glow:rgba(227,119,108,.4);
  --blood-grad:linear-gradient(90deg, var(--danger), var(--ox));
  --text-hi:var(--thi); --text:var(--tx); --text-2:var(--tx2); --text-dim:var(--tdim); --text-mute:var(--tmute);

  /* chamfer engine REMOVED — old clip-path refs resolve to none (soft radii instead) */
  --cut-sm:none; --cut-card:none; --cut-hero:none; --cut-bar:none; --cut-ctl:none;
  --radius-ctl:12px; --radius-card:18px; --radius-modal:20px;
}

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  color: var(--tx); font-family: var(--body);
  background:
    radial-gradient(56% 46% at 84% -4%, rgba(241,212,147,.13), transparent 62%),
    radial-gradient(60% 50% at 50% 38%, rgba(40,32,22,.5), transparent 70%),
    radial-gradient(54% 46% at 4% 2%, rgba(116,170,166,.045), transparent 56%),
    linear-gradient(180deg, #14100b 0%, #0e0a06 62%, #090703 100%);
  background-color: var(--ink); background-attachment: fixed;
}
::selection { background: rgba(227,183,95,.3); color: #fff; }

/* ---- atmosphere layers (DESIGN §8) — fixed, behind content, no pointer events.
   Class names .fx-grain/.fx-vignette/.fx-lamp; .atmo-* kept as aliases for safety. ---- */
.fx-grain, .fx-vignette, .fx-lamp,
.atmo-grain, .atmo-vignette, .atmo-lamp { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fx-grain, .atmo-grain {
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-vignette, .atmo-vignette { background: radial-gradient(128% 96% at 50% 30%, transparent 56%, rgba(0,0,0,.55) 100%); }
.fx-lamp, .atmo-lamp { background: radial-gradient(46% 36% at 85% -3%, rgba(241,212,147,.14), transparent 66%); animation: lampOn 1.4s both; }
/* legacy atmosphere class aliases */
.noise-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.top-vignette { position: fixed; inset: 0 0 auto 0; height: 150px; pointer-events: none; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), transparent); }

/* ============================================================================
   ANIMATIONS (DESIGN §6) — defined once
   ============================================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lampOn { from { opacity: 0; } to { opacity: 1; } }
@keyframes badgeIn { 0% { opacity: 0; transform: scale(1.4) rotate(var(--rot,-7deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--rot,-7deg)); } }
@keyframes glint { 0% { background-position: -180% 0; } 100% { background-position: 280% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 80%,100% { transform: scale(2.4); opacity: 0; } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .28; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes growBar { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 15% { transform: translateX(-6px); } 30% { transform: translateX(5px); } 45% { transform: translateX(-4px); } 60% { transform: translateX(3px); } 75% { transform: translateX(-2px); } 90% { transform: translateX(1px); } }
@keyframes bleed { from { width: 0%; } to { width: 100%; } }
@keyframes sweep { 0% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
@keyframes pulseTick { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes pulse-tick { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes bellSwing { 0%,100% { transform: rotate(0); } 18% { transform: rotate(14deg); } 38% { transform: rotate(-11deg); } 58% { transform: rotate(7deg); } 78% { transform: rotate(-3deg); } }
.dot-pulse { animation: pulseDot 1.8s infinite; } .dot-blink { animation: blink 1.4s infinite; }

/* ============================================================================
   BUTTONS (DESIGN §10.1) — one brass CTA per view
   ============================================================================ */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger-outline, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: 13px;
  font-family: var(--disp); font-weight: 800; font-size: 14px; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; position: relative;
  transition: transform .15s var(--ease), background .15s ease, border-color .15s ease, filter .15s ease, color .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); color: var(--on-gold);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); filter: brightness(.98); }
.btn-primary:disabled, .btn-primary.disabled { background: var(--raised); color: var(--tmute); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary { background: rgba(0,0,0,.2); color: var(--tx2); border-color: var(--line2); }
.btn-secondary:hover { color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-soft); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--tdim); }
.btn-ghost:hover { background: var(--panel2); color: var(--thi); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: rgba(168,70,60,.5); }
.btn-danger-outline:hover { background: rgba(168,70,60,.12); border-color: var(--danger); }
.btn-accent { background: rgba(116,182,207,.12); color: var(--info); border-color: rgba(116,182,207,.4); }
.btn-accent:hover { transform: translateY(-2px); background: rgba(116,182,207,.18); border-color: var(--info); }
/* CTA light sweep — add <span class="sweep"></span> or <span class="glint"></span> inside */
.sweep, .glint {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, transparent 34%, rgba(255,255,255,.42) 50%, transparent 66%);
  background-size: 220% 100%; animation: glint 3.8s ease infinite;
}

/* ============================================================================
   SURFACES — cards / panels (DESIGN §10.3) soft radius + long shadow
   ============================================================================ */
.card {
  position: relative; background: var(--card-grad); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  transition: transform .15s var(--ease), border-color .15s ease, box-shadow .15s ease;
}
a.card:hover, button.card:hover, .card.card-lift:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
.card-hero { border-radius: 22px; border-color: var(--line2); box-shadow: var(--shadow); }
/* hero/feature top-sheen */
.card-edge::before, .card-hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
/* corner-brackets retired — kept as no-ops so old markup doesn't show stray borders */
.corner-brackets > .cb-tl, .corner-brackets > .cb-br { display: none !important; }

.panel { position: relative; background: var(--card-grad); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 15px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: 0; color: var(--thi); white-space: nowrap;
}
.panel-header > .ph-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-header > .ph-title > i, .panel-header .ph-icon { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.panel-header .ph-meta { font-family: var(--mono); font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 0; padding: 3px 9px; border-radius: 8px; background: var(--gold-soft); }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-row .dr-k { font-size: 13px; color: var(--tdim); display: flex; align-items: center; gap: 9px; }
.data-row .dr-k i { width: 15px; height: 15px; color: var(--tmute); }
.data-row .dr-v { font-family: var(--mono); font-size: 13px; color: var(--thi); text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================================
   FORMS (DESIGN §10.15) — brass focus ring
   ============================================================================ */
.input, input.input, select.input, textarea.input {
  height: 44px; width: 100%; padding: 0 13px; border-radius: 12px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line2);
  color: var(--tx2); font-size: 14px; font-family: var(--body); outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
textarea.input { height: auto; min-height: 84px; padding: 11px 13px; border-radius: 14px; }
.input:focus { border-color: var(--gold-line); background: rgba(0,0,0,.4); box-shadow: 0 0 0 3px var(--gold-soft); }
.input::placeholder { color: var(--tmute); }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; }
label { color: var(--tdim); }

/* ============================================================================
   LABELS / PILLS / TAGS / STAMPS (DESIGN §10.4)
   ============================================================================ */
.micro-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--tdim); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; font-weight: 600;
  border: 1px solid transparent; transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.pill i { width: 12px; height: 12px; }
.pill-danger { background: rgba(168,70,60,.12); color: var(--danger-hi); border-color: rgba(168,70,60,.32); }
.pill-warn,  .pill-gold { background: var(--gold-soft); color: var(--gold-hi); border-color: var(--gold-line); }
.pill-money { background: rgba(95,192,138,.12); color: var(--money); border-color: rgba(95,192,138,.3); }
.pill-info,  .pill-accent { background: rgba(116,182,207,.12); color: var(--info); border-color: rgba(116,182,207,.3); }
.pill-patina { background: rgba(116,170,166,.1); color: var(--patina); border-color: rgba(116,170,166,.3); }
.pill-muted { background: rgba(0,0,0,.25); color: var(--tdim); border-color: var(--line); }
/* tag — compact mono stamp (chat role etc.) */
.tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .05em; }
/* stamp — dossier flavor (ARANIYOR / TAMAM / GÖREVDE) */
.stamp {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 7px;
  font-family: var(--disp); font-weight: 700; font-size: 10px; letter-spacing: .06em;
  transform: rotate(-4deg); animation: badgeIn .5s both;
}
.stamp-money { background: rgba(95,192,138,.14); border: 1px solid rgba(95,192,138,.4); color: var(--money); }
.stamp-danger { background: linear-gradient(180deg, #e8675b, #b3433a); border: 1px solid transparent; color: #fff; box-shadow: 0 10px 20px -8px rgba(168,70,60,.7); }
.stamp-gold { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-hi); }

/* ============================================================================
   NAV RAIL (DESIGN §9) — active: gold-soft bg + 3px gold bar + gold-hi text
   ============================================================================ */
.nav-group { margin-bottom: 16px; }
.nav-label { display: flex; align-items: center; gap: 9px; padding: 0 11px 7px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .2em; color: var(--tmute); font-weight: 600; }
.nav-label::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); opacity: .85; flex-shrink: 0; }
.nav-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 38px;
  margin: 1px 0; padding: 0 12px 0 13px; border-radius: 10px;
  color: var(--tx); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav-item:hover { background: var(--panel2); color: var(--gold-hi); }
.nav-active { background: var(--gold-soft); color: var(--gold-hi); font-weight: 600; }
.nav-active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold-line); }
.nav-icon { width: 17px; height: 17px; color: var(--tdim); flex-shrink: 0; }
.nav-active .nav-icon { color: var(--gold); }
.nav-item:hover .nav-icon { color: var(--gold-hi); }
.nav-locked { opacity: .4; pointer-events: none; }
/* nav count badge */
.nav-badge { flex-shrink: 0; min-width: 17px; height: 17px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-family: var(--mono); font-weight: 700; font-size: 9px; background: rgba(116,182,207,.18); color: var(--info); }

/* mobile tabs */
.mob-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--tdim); text-decoration: none; border-top: 2px solid transparent; transition: color .12s ease; }
.mob-active { color: var(--gold); border-top-color: var(--gold); }

/* ============================================================================
   TABLES (DESIGN §10.12)
   ============================================================================ */
.table-dark { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-dark th { text-align: left; padding: 11px 12px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--tdim); font-weight: 600; border-bottom: 1px solid var(--line); }
.table-dark td { padding: 12px; border-bottom: 1px solid var(--line); height: 44px; }
.table-dark tbody tr { transition: background .1s ease; }
.table-dark tbody tr:hover { background: rgba(0,0,0,.2); }
.table-dark .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* top-3 emphasis */
.table-dark tr.rank-1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.table-dark tr.rank-2 td:first-child { box-shadow: inset 3px 0 0 var(--gold-line); }
.table-dark tr.rank-3 td:first-child { box-shadow: inset 3px 0 0 rgba(227,183,95,.3); }

/* ============================================================================
   PROGRESS / SEGMENTED BARS (DESIGN §10.7)
   ============================================================================ */
.stat-bar { position: relative; height: 8px; border-radius: 6px; background: rgba(0,0,0,.45); overflow: hidden; }
.stat-bar > div { position: relative; height: 100%; border-radius: 6px; transition: width .9s linear; }
.bar-hp > div { background: linear-gradient(90deg, #b8534a, var(--danger-hi)); }
.bar-energy > div, .bar-xp > div { background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.bar-neutral > div { background: linear-gradient(90deg, var(--info-deep), var(--info)); }
.bar-money > div { background: linear-gradient(90deg, var(--money-deep), var(--money)); }

/* ============================================================================
   TELEX / ALERT STRIP (DESIGN §10.21) — was "system-strip"; loudest passive el
   ============================================================================ */
.system-strip {
  position: relative; overflow: hidden; min-height: 48px; display: flex; align-items: center; gap: 14px;
  padding: 13px 17px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(168,70,60,.18), rgba(168,70,60,.03));
  border: 1px solid rgba(168,70,60,.3);
  font-family: var(--body); font-weight: 500; font-size: 13.5px; color: var(--tx2);
}
.system-strip i { color: var(--danger-hi); }
/* gold "opportunity" variant */
.system-strip.strip-gold { background: linear-gradient(90deg, var(--gold-soft), rgba(227,183,95,.03)); border-color: var(--gold-line); }
.system-strip.strip-gold i { color: var(--gold-hi); }

/* crime card result flip */
.flip-card { perspective: 1000px; transition: transform .15s var(--ease); }
.flip-inner { position: relative; transition: transform 600ms var(--ease); transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { backface-visibility: hidden; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); }
/* ÖNEMLİ — flip kartı hover hatası: .game-tile:hover { transform: translateY(-3px) }
   transform tek bir özellik olduğundan yüzün taban transform'unu EZER. İki ayrı kırılma:
   (1) ön/çevrilmemiş kart: lift translateY 3B perspektifi bozuyordu;
   (2) çevrilmiş sonuç kartı: arka yüz (.flip-back DA bir .game-tile) hover'da
       rotateY(180deg) karşı-rotasyonunu kaybedip arkaya dönüyor (backface-visibility:hidden
       → içerik kayboluyor). Çözüm:
   - lift'i YÜZLERDEN al (transform:none) ve kartın TAMAMINA uygula (2B translate —
     perspektifi etkilemez), yalnız çevrilmemiş kartta;
   - çevrilmiş kartta arka yüzün hover'ında rotateY(180deg)'i KORU (en yüksek özgüllük).
   Kenarlık/gölge parıltısı .game-tile:hover'dan korunur (yalnız transform değişir). */
.flip-card .game-tile:hover { transform: none; }
.flip-card:not(.flipped):hover { transform: translateY(-3px); }
.flip-card.flipped .flip-back:hover { transform: rotateY(180deg); }
.flip-card.flipped { cursor: default; }

.fx-shake { animation: shake .34s var(--ease, ease); }
.countdown-critical { color: var(--danger); animation: pulseTick 1s infinite; }

/* ============================================================================
   TOOLTIPS (DESIGN §10.8) — the richness engine
   ============================================================================ */
.tip-wrap { position: relative; display: inline-flex; }
.tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; z-index: 85;
  width: max-content; max-width: min(248px, calc(100vw - 16px));
  background: #0c0a07; border: 1px solid var(--line2); border-radius: 11px; padding: 10px 12px;
  box-shadow: 0 18px 36px -18px rgba(0,0,0,.9); white-space: normal; text-align: left;
  font-size: 11.5px; line-height: 1.45; color: var(--tx);
}
.tip-down { bottom: auto; top: calc(100% + 10px); transform: translateX(-50%) translateY(-6px); }
.tip-r { left: auto; right: 0; transform: translateX(0) translateY(6px); }
.tip-wrap:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.tip-wrap:hover .tip-down { transform: translateX(-50%) translateY(0); }
.tip-wrap:hover .tip-r { transform: translateX(0) translateY(0); }
.tip-title { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--gold-hi); margin-bottom: 5px; }

/* ============================================================================
   TOASTS (DESIGN §10.20)
   ============================================================================ */
.toast {
  --toast-accent: var(--gold); position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px; border-radius: 14px; background: var(--card-grad); border: 1px solid var(--line2);
  box-shadow: var(--shadow); animation: toast-in 220ms var(--ease); transition: opacity .2s ease, transform .2s ease;
}
.toast::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--toast-accent); }
.toast-danger { --toast-accent: var(--danger); }
.toast-money { --toast-accent: var(--money); }
.toast-warn { --toast-accent: var(--gold); }
.toast-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--toast-accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--toast-accent) 32%, transparent); color: var(--toast-accent); }
.toast-progress { position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: var(--toast-accent); transform-origin: left; animation: toast-progress linear forwards; }
.toast.toast-out { opacity: 0; transform: translateX(16px); }
@keyframes toast-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============================================================================
   MODAL (DESIGN §10.17)
   ============================================================================ */
#modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
#modal-root.open { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,4,2,.66); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s ease; }
.modal-panel {
  position: relative; width: 100%; max-width: 33rem; background: linear-gradient(180deg, #231c15, #15110c);
  border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow);
  opacity: 0; transform: scale(.95) translateY(10px); transition: opacity .2s ease, transform .2s ease;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); z-index: 2; }
#modal-root.show .modal-backdrop { opacity: 1; }
#modal-root.show .modal-panel { opacity: 1; transform: scale(1) translateY(0); animation: modalIn .26s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: 0; color: var(--thi); }
.modal-title.modal-title-danger { color: var(--danger-hi); }
.modal-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: none; cursor: pointer; background: rgba(0,0,0,.3); color: var(--tdim); transition: background .12s ease, color .12s ease; }
.modal-close:hover { background: var(--panel2); color: var(--thi); }
.modal-body { padding: 18px 22px 22px; overflow-y: auto; }
body.modal-open { overflow: hidden; }

/* ============================================================================
   POPOVER / DROPDOWN MENU (DESIGN §10.19) — opaque, reads over content
   ============================================================================ */
.popover { position: relative; background: linear-gradient(180deg, #241d15, #15110c); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 28px 54px -28px rgba(0,0,0,.9); overflow: hidden; }
.popover::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--tx); text-decoration: none; transition: background .12s ease, color .12s ease; }
.menu-item:hover { background: var(--panel2); color: var(--thi); }
.menu-item i { width: 16px; height: 16px; color: var(--tdim); flex-shrink: 0; }
.menu-item:hover i { color: var(--gold-hi); }
.menu-item.menu-danger:hover, .menu-item.menu-danger:hover i { color: var(--danger); }

.cmd-btn { transition: transform .15s var(--ease), border-color .15s ease, background .15s ease, color .15s ease; }
.cmd-btn:hover { transform: translateY(-2px); }
.cmd-cell { transition: background .15s ease; }
.cmd-cell:hover .cmd-cv { color: var(--thi); }

/* scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(228,183,95,.16); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(228,183,95,.3); background-clip: padding-box; }
.sidebar-scroll::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar { width: 7px; }

/* focus visibility (a11y) — gold ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* numbers never jump */
.font-mono, [data-money], .num, .tile-value, .chip-value { font-variant-numeric: tabular-nums; }
.text-glow-amber { color: var(--gold-hi); }
.text-grad { background: linear-gradient(180deg, var(--thi), var(--tx)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================================
   STICKY OFFSET + BUSY STRIP + MOBILE
   ============================================================================ */
:root { --app-top: 68px; }
body.has-busy { --app-top: 114px; }
.side-sticky { position: sticky; top: var(--app-top); height: calc(100vh - var(--app-top)); }

.busy-strip {
  display: flex; align-items: center; gap: 20px; min-height: 46px; padding: 0 16px;
  font-family: var(--body); font-size: 13px; color: var(--tx2);
  border-bottom: 1px solid var(--line); background: rgba(11,8,5,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-x: auto;
}
.busy-strip .busy-count { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.busy-strip > .busy-text { flex: 1 1 auto; min-width: 0; }
.busy-strip > .busy-count { margin-left: auto; }
/* state tint when the variant class sits directly on the strip (topbar lockouts) */
.busy-strip.busy-hospital { background: linear-gradient(90deg, rgba(168,70,60,.16), rgba(11,8,5,.55)); border-bottom-color: rgba(168,70,60,.3); }
.busy-strip.busy-jail { background: linear-gradient(90deg, var(--gold-soft), rgba(11,8,5,.55)); border-bottom-color: var(--gold-line); }
.busy-strip.busy-travel { background: linear-gradient(90deg, rgba(116,182,207,.14), rgba(11,8,5,.55)); border-bottom-color: rgba(116,182,207,.3); }
.busy-strip.busy-hospital i, .busy-strip.busy-hospital .busy-count { color: var(--danger); }
.busy-strip.busy-jail i, .busy-strip.busy-jail .busy-count { color: var(--gold); }
.busy-strip.busy-travel i, .busy-strip.busy-travel .busy-count { color: var(--info); }
/* busy / countdown chip (DESIGN §10.23) */
.busy-chip { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.busy-chip .busy-disc { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; }
.busy-chip .busy-bar { width: 100px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.45); overflow: hidden; margin-top: 5px; }
.busy-chip .busy-bar > div { height: 100%; transition: width .9s linear; }
.busy-travel   .busy-disc { background: rgba(116,182,207,.13); color: var(--info); } .busy-travel .busy-count, .busy-travel i { color: var(--info); }
.busy-travel   .busy-bar > div { background: linear-gradient(90deg, var(--info-deep), var(--info)); }
.busy-hospital .busy-disc { background: rgba(168,70,60,.14); color: var(--danger); } .busy-hospital .busy-count, .busy-hospital i { color: var(--danger); }
.busy-hospital .busy-bar > div { background: linear-gradient(90deg, #b8534a, var(--danger-hi)); }
.busy-jail     .busy-disc { background: var(--gold-soft); color: var(--gold); } .busy-jail .busy-count, .busy-jail i { color: var(--gold); }
.busy-jail     .busy-bar > div { background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.busy-money    .busy-disc { background: rgba(95,192,138,.13); color: var(--money); } .busy-money .busy-count, .busy-money i { color: var(--money); }
.busy-money    .busy-bar > div { background: linear-gradient(90deg, var(--money-deep), var(--money)); }
@media (min-width: 768px) { .busy-strip { height: 46px; } }

.nav-mobile .nav-item { height: 46px; font-size: 15px; }
.nav-mobile .nav-icon { width: 20px; height: 20px; }
.nav-mobile .nav-label { padding: 8px 16px 5px; }

.chat-fab {
  position: fixed; right: 16px; bottom: 76px; z-index: 45; width: 54px; height: 54px; border-radius: 16px;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); color: var(--on-gold);
  box-shadow: var(--glow); transition: transform .12s var(--ease);
}
.chat-fab:active { transform: scale(.94); }

/* ============================================================================
   PAGE HEADER (DESIGN §10.2) + masthead helpers
   ============================================================================ */
.page-header { position: relative; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-header .page-eyebrow { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.page-header h1 { font-family: var(--disp); font-weight: 800; font-size: 26px; letter-spacing: -.01em; color: var(--thi); line-height: 1.1; margin-top: 6px; }
.page-header .page-sub { font-size: 13px; color: var(--tdim); margin-top: 5px; max-width: 60ch; }
.page-chip { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 8px 14px; border-radius: 11px; background: var(--card-grad); border: 1px solid var(--line); text-align: right; }
.page-chip .chip-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--tdim); }
.page-chip .chip-value { font-family: var(--mono); font-size: 15px; color: var(--thi); font-variant-numeric: tabular-nums; }
/* masthead serif greeting */
.masthead-greet { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold-hi); }

/* ============================================================================
   STAT TILE (DESIGN §10.6)
   ============================================================================ */
.stat-tile { position: relative; background: var(--card-grad); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; min-width: 0; overflow: hidden; transition: transform .15s var(--ease), border-color .15s ease, box-shadow .15s ease; }
.stat-tile:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
.tile-label { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--tdim); font-weight: 600; }
.tile-value { font-family: var(--disp); font-size: 22px; font-weight: 800; color: var(--thi); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-trend { font-family: var(--mono); font-size: 9.5px; margin-top: 2px; display: inline-flex; align-items: center; gap: 3px; }
.trend-up { color: var(--money); } .trend-down { color: var(--danger); } .trend-flat { color: var(--tmute); }

/* icon disc (DESIGN §10.11) */
.icon-disc { --disc: var(--gold); width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--disc) 13%, transparent); color: var(--disc); }
.icon-disc.disc-lg { width: 52px; height: 52px; border-radius: 14px; }
.disc-blood, .disc-danger { --disc: var(--danger); }
.disc-money { --disc: var(--money); }
.disc-gold, .disc-warn, .disc-amber { --disc: var(--gold); }
.disc-diamond, .disc-info { --disc: var(--info); }
.disc-patina { --disc: var(--patina); }
.disc-muted { --disc: var(--tdim); }

/* ============================================================================
   GAME OBJECTS — tier emblems + item/game tiles (DESIGN §10.13)
   ============================================================================ */
:root { --tier1:#c8c6c0; --tier2:#cd7f4a; --tier3:#74b6cf; --tier4:#e3b75f; --tier5:#e3776c; --tier6:#f4d79a; }
.emblem { --tier: var(--gold); position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: linear-gradient(150deg, color-mix(in srgb, var(--tier) 22%, #1a1610), #1a1610 75%); border: 1px solid color-mix(in srgb, var(--tier) 60%, transparent); color: var(--tier); }
.emblem-sm { width: 40px; height: 40px; } .emblem-md { width: 52px; height: 52px; } .emblem-lg { width: 72px; height: 72px; border-radius: 16px; }
.tier-1 { --tier: var(--tier1); } .tier-2 { --tier: var(--tier2); } .tier-3 { --tier: var(--tier3); }
.tier-4 { --tier: var(--tier4); } .tier-5 { --tier: var(--tier5); } .tier-6 { --tier: var(--tier6); }

.game-tile { position: relative; background: var(--card-grad); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s var(--ease), border-color .15s ease, box-shadow .15s ease; }
.game-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tile-tier, var(--gold)) 55%, var(--line)); box-shadow: 0 22px 34px -22px color-mix(in srgb, var(--tile-tier, var(--gold)) 40%, transparent); }
.game-tile.tier-1 { --tile-tier: var(--tier1); } .game-tile.tier-2 { --tile-tier: var(--tier2); }
.game-tile.tier-3 { --tile-tier: var(--tier3); } .game-tile.tier-4 { --tile-tier: var(--tier4); }
.game-tile.tier-5 { --tile-tier: var(--tier5); } .game-tile.tier-6 { --tile-tier: var(--tier6); }

.stat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--tx); }
.stat-chip i { width: 13px; height: 13px; }

/* equipment slot frame (DESIGN §10.14) */
.slot { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px dashed var(--line2); }
.slot.filled { border-style: solid; background: var(--card-grad); }
.hr-soft { height: 1px; background: var(--line); border: 0; }

/* inventory BAG grid — square tier-rimmed slots */
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.bag-slot { --tier: var(--line3); position: relative; aspect-ratio: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--card-grad); border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--line)); color: var(--tier); transition: transform .15s var(--ease), border-color .15s ease, box-shadow .15s ease; }
.bag-slot:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tier) 75%, var(--line)); box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--tier) 40%, transparent); }
.bag-slot.tier-1 { --tier: var(--tier1); } .bag-slot.tier-2 { --tier: var(--tier2); } .bag-slot.tier-3 { --tier: var(--tier3); }
.bag-slot.tier-4 { --tier: var(--tier4); } .bag-slot.tier-5 { --tier: var(--tier5); } .bag-slot.tier-6 { --tier: var(--tier6); }
.bag-slot .bag-qty { position: absolute; bottom: 2px; right: 5px; font-family: var(--mono); font-size: 10px; color: var(--thi); }
.bag-slot.is-equipped { box-shadow: inset 0 0 0 1px var(--gold); }
.bag-slot.is-equipped::after { content: ''; position: absolute; top: 5px; left: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold-line); }
.bag-slot.empty { --tier: var(--line); background: rgba(0,0,0,.22); border-style: dashed; cursor: default; }
.bag-slot.empty:hover { transform: none; box-shadow: none; border-color: var(--line); }
.bag-slot .bag-bar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.55); overflow: hidden; }
.bag-slot .bag-bar > i { display: block; height: 100%; background: var(--money); }
.bag-slot .bag-bar > i.low { background: var(--danger); }
.bag-cap { display: flex; align-items: center; gap: 10px; }
.bag-cap .stat-bar { flex: 1; }

/* empty state (DESIGN §10.22) */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 44px 20px; }
.empty-state .icon-disc, .empty-state .emblem { width: 54px; height: 54px; margin-bottom: 6px; }
.empty-state .empty-title { font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--thi); }
.empty-state .empty-sub { font-size: 12.5px; color: var(--tmute); max-width: 40ch; }
.empty-state .btn-primary, .empty-state .btn-secondary { margin-top: 10px; }

.nav-item:active { transform: translateX(1px); }
.mob-tab:active { color: var(--thi); }

/* ============================================================================
   WAX SEAL (DESIGN §10.5) + RADAR (§10.9) + SPARKLINE (§10.10)
   ============================================================================ */
.seal { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #c14b41, #7a2823 74%); box-shadow: 0 8px 16px -5px rgba(0,0,0,.7), inset 0 2px 4px rgba(255,255,255,.2), inset 0 -3px 7px rgba(0,0,0,.45); transform: rotate(-9deg); animation: badgeIn .5s both; }
.seal::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(255,222,214,.4); }
.seal > span { font-family: var(--disp); font-weight: 800; font-size: 14px; color: #f6d0c9; letter-spacing: .01em; }

.radar { position: relative; display: block; width: 86px; height: 86px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line2); background: radial-gradient(circle, rgba(168,70,60,.13), rgba(0,0,0,.35)); overflow: hidden; }
.radar .radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, rgba(227,119,108,.5) 350deg, transparent 360deg); animation: spin 3.6s linear infinite; }
.radar .radar-ring { position: absolute; inset: 22px; border-radius: 50%; border: 1px solid rgba(227,119,108,.22); }
.radar .radar-ring.dashed { inset: 6px; border-style: dashed; }
.radar .radar-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.radar .radar-val { font-family: var(--disp); font-weight: 800; font-size: 23px; color: var(--danger-hi); }
.radar .radar-unit { font-family: var(--mono); font-size: 7.5px; letter-spacing: .18em; color: var(--danger); margin-top: 3px; }

.spark { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.spark > .spark-bar { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--gold), rgba(0,0,0,.1)); transform-origin: bottom; animation: growBar .5s ease both; transition: filter .15s ease; }
.spark > .spark-bar:hover { filter: brightness(1.3); }

/* ============================================================================
   KUMARHANE — casino surfaces (DOSYA warm/soft; brand = brass)
   ============================================================================ */
@keyframes reveal-pop { 0% { opacity: 0; transform: translateY(8px) scale(.82) rotate(-4deg); } 60% { opacity: 1; transform: translateY(-2px) scale(1.04); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
.reveal-pop { animation: reveal-pop .34s var(--ease) backwards; animation-delay: var(--d, 0s); }

.play-card { position: relative; display: inline-flex; flex-direction: column; justify-content: space-between; align-items: flex-start; width: 46px; height: 64px; padding: 6px 7px; border-radius: 9px; color: #2a1c10; font-family: var(--disp); font-weight: 700; line-height: 1; background: linear-gradient(157deg, #fbf4e6 0%, #ece0c8 78%, #ddccaa 100%); border: 1px solid rgba(20,12,4,.35); box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7); }
.play-card .pc-rank { font-size: 17px; letter-spacing: -.02em; }
.play-card .pc-suit { font-size: 20px; align-self: flex-end; line-height: .8; }
.play-card.is-red { color: #b3433a; } .play-card.is-red .pc-suit { color: #c14b41; }
.play-card-me { box-shadow: 0 4px 12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1.5px var(--gold-deep); }
.play-card-back { align-items: center; justify-content: center; color: var(--gold); background: repeating-linear-gradient(45deg, rgba(227,183,95,.10) 0 6px, transparent 6px 12px), linear-gradient(160deg, #2c241b, #15110d); border-color: var(--gold-line); box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(227,183,95,.18); }
.play-card-back .pc-back-mark { font-family: var(--disp); font-weight: 800; font-size: 22px; color: var(--gold); opacity: .85; }

.bj-table { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 16px; background: radial-gradient(120% 80% at 50% -20%, rgba(227,183,95,.06), transparent 60%), var(--card-grad); border: 1px solid var(--line); }
.bj-table::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.bj-hand { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; min-height: 64px; align-items: center; }
.bj-score { display: inline-flex; align-items: center; min-width: 34px; justify-content: center; padding: 3px 9px; border-radius: 9px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--thi); background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.bj-score.is-21 { color: var(--gold-hi); border-color: var(--gold-line); }
.bj-score.is-bust { color: var(--danger); border-color: rgba(168,70,60,.4); }
.bj-divider { position: relative; margin: 16px 0; height: 1px; background: var(--line); }
.bj-divider > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 0 9px; background: var(--bg1); font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--tmute); }
.bj-bet-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 9px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }

.coin-flip { position: relative; width: 96px; height: 96px; margin: 4px auto 0; transform-style: preserve-3d; animation: coin-spin 1.1s var(--ease) forwards; }
.coin-flip.show-tura { animation-name: coin-spin-tura; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--disp); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.coin-yazi { color: var(--on-gold); background: radial-gradient(circle at 38% 32%, #f4d79a, #b8863a 70%, #936a28); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.3), 0 10px 22px var(--gold-line); }
.coin-tura { color: var(--on-gold); transform: rotateY(180deg); background: radial-gradient(circle at 38% 32%, #f4d79a, #aa7d2f 70%, #855f22); box-shadow: inset 0 0 0 3px rgba(255,255,255,.3), inset 0 -6px 14px rgba(0,0,0,.35), 0 10px 22px var(--gold-line); }
@keyframes coin-spin { 0% { transform: rotateY(0) scale(.8); } 100% { transform: rotateY(1800deg) scale(1); } }
@keyframes coin-spin-tura { 0% { transform: rotateY(0) scale(.8); } 100% { transform: rotateY(1980deg) scale(1); } }
.coin-static { animation: none; }
.coin-static.show-tura { transform: rotateY(180deg); }

.dice-pair { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.dice-pair .dice-sum { font-family: var(--mono); font-size: 11px; color: var(--tdim); margin-left: 2px; }
.die { position: relative; width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(157deg, #fbf4e6, #ddccaa); border: 1px solid rgba(20,12,4,.3); box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7); }
.die::before { content: ''; position: absolute; inset: 0; padding: 7px; --p: radial-gradient(circle, #2a1c10 46%, transparent 48%); background-repeat: no-repeat; background-size: 8px 8px; }
.die[data-pips="1"]::before { background-image: var(--p); background-position: center; }
.die[data-pips="2"]::before { background-image: var(--p), var(--p); background-position: 7px 7px, calc(100% - 7px) calc(100% - 7px); }
.die[data-pips="3"]::before { background-image: var(--p), var(--p), var(--p); background-position: 7px 7px, center, calc(100% - 7px) calc(100% - 7px); }
.die[data-pips="4"]::before { background-image: var(--p), var(--p), var(--p), var(--p); background-position: 7px 7px, calc(100% - 7px) 7px, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px); }
.die[data-pips="5"]::before { background-image: var(--p), var(--p), var(--p), var(--p), var(--p); background-position: 7px 7px, calc(100% - 7px) 7px, center, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px); }
.die[data-pips="6"]::before { background-image: var(--p), var(--p), var(--p), var(--p), var(--p), var(--p); background-position: 7px 7px, calc(100% - 7px) 7px, 7px center, calc(100% - 7px) center, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px); }
@keyframes die-tumble { 0% { transform: rotate(-12deg) scale(.7); } 55% { transform: rotate(6deg) scale(1.08); } 100% { transform: rotate(0) scale(1); } }
.die-roll { animation: die-tumble .4s var(--ease) backwards; }

.slot-window { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; margin: 0 auto; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #0f0c0a, #1c1712); border: 1px solid var(--line); box-shadow: inset 0 0 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(227,183,95,.08); }
.slot-reel-cell { position: relative; height: 70px; display: flex; align-items: center; justify-content: center; font-size: 38px; line-height: 1; border-radius: 9px; overflow: hidden; background: linear-gradient(180deg, #2c241b, #15110d); border: 1px solid var(--line); box-shadow: inset 0 8px 14px rgba(0,0,0,.5), inset 0 -8px 14px rgba(0,0,0,.5); }
.slot-window.slot-final .slot-reel-cell { animation: reel-land .3s var(--ease) backwards; }
.slot-window.slot-final .slot-reel-cell:nth-child(2) { animation-delay: .12s; }
.slot-window.slot-final .slot-reel-cell:nth-child(3) { animation-delay: .24s; }
@keyframes reel-land { 0% { transform: translateY(-22px); opacity: .2; } 70% { transform: translateY(4px); } 100% { transform: translateY(0); opacity: 1; } }
.reel-strip { display: flex; flex-direction: column; }
.reel-strip > span { height: 70px; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.is-spinning .reel-strip { animation: reel-spin .6s linear infinite; }
@keyframes reel-spin { from { transform: translateY(0); } to { transform: translateY(-210px); } }
.slot-mult { font-size: 13px; letter-spacing: .12em; text-align: center; }

.roulette-pocket { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; font-family: var(--mono); font-size: 26px; font-weight: 700; color: #fff; position: relative; }
.roulette-pocket .rp-num { position: relative; z-index: 1; }
.roulette-pocket::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .4; }
.roulette-pocket.is-red { background: radial-gradient(circle at 38% 32%, #e8675b, #b3433a 75%); color: #f6c7c0; }
.roulette-pocket.is-black { background: radial-gradient(circle at 38% 32%, #2c241b, #0f0c0a 75%); color: #c9bca4; }
.roulette-pocket.is-green { background: radial-gradient(circle at 38% 32%, #5fc08a, #3f9c74 75%); color: #d6ffe9; }
.rl-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rl-cell { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--thi); border-radius: 7px; border: 1px solid transparent; transition: transform .12s var(--ease), box-shadow .12s ease; }
.rl-cell.rl-red { background: linear-gradient(180deg, #b3433a, #8e3229); }
.rl-cell.rl-black { background: linear-gradient(180deg, #2c241b, #15110d); }
.rl-cell.rl-zero { background: linear-gradient(180deg, #3f9c74, #2c6e52); grid-column: span 12; aspect-ratio: auto; height: 26px; }
.rl-cell:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--gold-line); }
.rl-cell input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rl-cell.is-picked { box-shadow: 0 0 0 2px var(--gold); }
/* mobil: 12-sütun rulet tahtası küçük telefonda dokunulamaz oluyordu → 6 sütun (daha büyük hücre/tap) */
@media (max-width:480px){ .rl-grid{ grid-template-columns:repeat(6,1fr); } .rl-cell.rl-zero{ grid-column:span 6; } .rl-cell{ font-size:12px; } }
.seg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn { flex: 1 1 auto; min-width: 0; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-family: var(--disp); font-weight: 600; font-size: 11.5px; text-align: center; color: var(--tdim); background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: color .12s ease, border-color .12s ease, background .12s ease; }
.seg-btn:hover { color: var(--thi); border-color: var(--gold-line); }
.seg-btn.is-active { color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-soft); }

.race-track { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 38px, transparent 38px 40px), rgba(0,0,0,.28); border: 1px solid var(--line); }
.race-lane { position: relative; display: flex; align-items: center; height: 30px; border-bottom: 1px dashed var(--line); }
.race-lane:last-child { border-bottom: 0; }
.race-finish { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(45deg, #f4ecdc 0 4px, #15110d 4px 8px); }
.race-runner { position: absolute; left: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--tx); max-width: calc(100% - 54px); overflow: hidden; white-space: nowrap; transition: left 2.4s cubic-bezier(.4,.1,.3,1); }
.race-runner i { color: var(--gold); }
.race-runner.is-winner i { color: var(--gold-hi); filter: drop-shadow(0 0 8px var(--gold-line)); }
.race-lane.is-mine { background: var(--gold-soft); }

.round-result { animation: reveal-pop .3s var(--ease); }
.round-result.is-lose, .bj-table.res-lose { animation: shake .34s; }
.result-stage { text-align: center; padding: 14px 0 6px; }
.result-banner { margin-top: 14px; padding: 14px 16px; border-radius: 14px; text-align: center; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.round-result.is-win .result-banner, .bj-table.res-win .result-banner { border-color: rgba(95,192,138,.35); background: rgba(95,192,138,.05); }
.round-result.is-lose .result-banner, .bj-table.res-lose .result-banner { border-color: rgba(168,70,60,.35); background: rgba(168,70,60,.06); }
.result-title { display: inline-flex; align-items: center; gap: 7px; font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.result-amount { font-family: var(--mono); font-size: 24px; font-weight: 700; margin-top: 4px; line-height: 1; }
.result-cash { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; color: var(--tdim); }

@keyframes spark-up { 0% { transform: translateY(0) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-44px) scale(1); opacity: 0; } }
.win-sparks { position: relative; height: 0; }
.win-sparks > i { position: absolute; width: 5px; height: 5px; background: var(--money); border-radius: 50%; animation: spark-up .9s var(--ease) backwards; }

.bet-amount-row { display: flex; align-items: stretch; gap: 8px; }
.bet-step { flex: 0 0 auto; width: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; color: var(--tx); background: rgba(0,0,0,.3); border: 1px solid var(--line); cursor: pointer; transition: color .12s ease, border-color .12s ease, background .12s ease; }
.bet-step:hover { color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-soft); }
.bet-amount-field { position: relative; flex: 1 1 auto; display: flex; align-items: center; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line2); }
.bet-amount-field:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.bet-currency { padding-left: 13px; color: var(--tdim); font-family: var(--mono); }
.bet-input { flex: 1; width: 100%; height: 44px; padding: 0 13px; background: transparent; border: 0; color: var(--thi); font-size: 16px; outline: none; }
.bet-input::-webkit-outer-spin-button, .bet-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bet-input { -moz-appearance: textfield; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; font-size: 11px; color: #1a1207; border: 2px dashed rgba(255,255,255,.5); box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 0 0 4px rgba(0,0,0,.06); transition: transform .12s var(--ease), filter .12s ease; }
.chip:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.08); }
.chip:active { transform: translateY(-1px) scale(.98); }
.chip-val { position: relative; }
.chip-w { background: radial-gradient(circle at 38% 32%, #fdf6e8, #e0d2b4 72%); color: #2a1c10; }
.chip-c { background: radial-gradient(circle at 38% 32%, #9ed0e0, #3f8aa3 72%); color: #06222a; }
.chip-g { background: radial-gradient(circle at 38% 32%, #8ad9b4, #3f9c74 72%); color: #05241a; }
.chip-y { background: radial-gradient(circle at 38% 32%, #f4d79a, #e3b75f 72%); color: #2a2206; }
.chip-r { background: radial-gradient(circle at 38% 32%, #f2998f, #b3433a 72%); color: #2a0508; }
.chip-a { background: radial-gradient(circle at 38% 32%, #f4d79a, #b8863a 72%); color: var(--on-gold); }
.quick-row { display: flex; gap: 6px; }
.quick-btn { flex: 1; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-family: var(--mono); font-size: 11px; color: var(--tdim); background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: color .12s ease, border-color .12s ease; }
.quick-btn:hover { color: var(--gold-hi); border-color: var(--gold-line); }

.result-strip { display: flex; gap: 5px; flex-wrap: wrap; }
.rs-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.rs-chip.rs-win { color: var(--money); background: rgba(95,192,138,.1); border-color: rgba(95,192,138,.3); }
.rs-chip.rs-lose { color: var(--danger); background: rgba(168,70,60,.08); border-color: rgba(168,70,60,.25); }
.rs-chip.rs-push { color: var(--tdim); background: rgba(0,0,0,.25); }

.fairplay { position: relative; margin-top: 12px; }
.fairplay-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; cursor: pointer; border-radius: 9px; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--tdim); transition: color .12s ease, border-color .12s ease, background .12s ease; }
.fairplay-badge:hover { color: var(--info); border-color: rgba(116,182,207,.35); background: rgba(116,182,207,.05); }
.fairplay-shield { color: var(--info); display: inline-flex; }
.fairplay-text { font-family: var(--disp); font-weight: 700; font-size: 10px; letter-spacing: .1em; }
.fairplay-i { opacity: .6; }
.fairplay-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: min(320px, 86vw); padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #241d15, #15110c); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.fairplay-pop::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(116,182,207,.4), transparent); }
.fairplay-pop-head { display: flex; align-items: center; gap: 10px; }
.fairplay-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.fairplay-step { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--tdim); }
.fairplay-step-n { flex: 0 0 auto; width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(116,182,207,.12); border: 1px solid rgba(116,182,207,.3); color: var(--info); font-family: var(--mono); font-size: 10px; font-weight: 700; }

/* ============================================================================
   COMBAT — tab strip, quick bullet chip, live damage preview, crit banner
   ============================================================================ */
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 13px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.seg .seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 0; letter-spacing: .01em; }
.seg .seg-btn i { width: 15px; height: 15px; }
.seg-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--tdim); background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: color .12s ease, border-color .12s ease, background .12s ease; }
.seg-chip:hover { color: var(--thi); border-color: var(--gold-line); }
.seg-chip.is-active { color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-soft); }
.seg-chip:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width:767.98px){ .seg-chip{ height:40px; } }   /* mobil dokunma hedefi ≥40px */
.preview-box { padding: 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(168,70,60,.05), rgba(0,0,0,.22)); border: 1px solid rgba(168,70,60,.18); }
.preview-meter { position: relative; display: flex; height: 12px; border-radius: 6px; background: rgba(0,0,0,.4); border: 1px solid var(--line); overflow: hidden; }
.preview-meter .pm-remain { height: 100%; background: linear-gradient(90deg, var(--money-deep), var(--money)); transition: width .25s var(--ease); }
.preview-meter .pm-hit { height: 100%; background: repeating-linear-gradient(45deg, rgba(227,119,108,.85) 0 5px, rgba(168,70,60,.7) 5px 10px); transition: width .25s var(--ease); }
.crit-banner { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; font-family: var(--disp); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: var(--gold-hi); background: var(--gold-soft); border: 1px solid var(--gold-line); animation: reveal-pop .34s var(--ease); }
.crit-banner i { color: var(--gold); }

/* ============================================================================
   VITALS HOVER POPOVER · GUIDE · TUTORIAL
   ============================================================================ */
.vitals-pop-panel { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .13s ease, transform .13s ease, visibility .13s ease; pointer-events: none; }
.vitals-pop:hover .vitals-pop-panel, .vitals-pop:focus-within .vitals-pop-panel { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.toc-link { display: inline-flex; align-items: center; gap: 7px; color: var(--tdim); padding: 2px 0 2px 13px; transition: color .12s ease; position: relative; }
.toc-link::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--gold); opacity: .55; clip-path: polygon(0 0, 100% 50%, 0 100%); transition: opacity .12s ease; }
.toc-link:hover { color: var(--gold-hi); }
.toc-link:hover::before { opacity: 1; }
.guide-row { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.guide-row:last-child { border-bottom: 0; }
.guide-row .gr-k { display: flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--thi); }
.guide-row .gr-k i { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }
.guide-row .gr-v { font-size: 13px; color: var(--tdim); line-height: 1.6; }

.tutorial-card { position: fixed; z-index: 70; right: 16px; bottom: 16px; width: 340px; max-width: calc(100vw - 32px); padding: 16px; background: linear-gradient(180deg, #241d15, #15110c); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); }
.tutorial-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); pointer-events: none; }
.tutorial-head { display: flex; align-items: flex-start; gap: 10px; }
.tutorial-title { font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--thi); line-height: 1.25; margin-top: 1px; }
.tutorial-x { flex-shrink: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--tdim); border-radius: 9px; transition: color .12s ease, background .12s ease; }
.tutorial-x:hover { color: var(--thi); background: var(--panel2); }
.tutorial-body { font-size: 13px; color: var(--tdim); line-height: 1.6; margin: 11px 0 13px; }
.tutorial-go { display: inline-flex; align-items: center; gap: 7px; font-family: var(--disp); font-weight: 600; font-size: 12.5px; color: var(--gold-hi); transition: color .12s ease; }
.tutorial-go:hover { color: var(--thi); }
.tutorial-dots { display: flex; align-items: center; gap: 6px; margin: 14px 0 13px; }
.tutorial-dot { width: 18px; height: 4px; border-radius: 3px; background: var(--line2); transition: background .15s ease; }
.tutorial-dot.is-on { background: var(--gold); }
.tutorial-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tutorial-skip { height: 36px; padding: 0 12px; font-size: 12px; }
.tutorial-next { height: 36px; padding: 0 14px; font-size: 12.5px; }

/* ============================================================================
   RESPONSIVE + REDUCED MOTION
   ============================================================================ */
@media (max-width: 767.98px) {
  .btn-primary, .btn-secondary, .btn-ghost, .btn-danger-outline, .btn-accent { min-height: 44px; }
  .input, input.input, select.input { height: 44px; }
  textarea.input { height: auto; }
  #modal-root.open { padding: 12px; }
  .modal-panel { max-width: 100%; }
  .page-header h1 { font-size: 22px; }
  .tile-value { font-size: 19px; }
  .table-dark { font-size: 12.5px; }
  .table-dark td { padding: 10px 8px; }
  .table-dark th { padding: 8px; }
  .play-card { width: 42px; height: 58px; }
  .play-card .pc-rank { font-size: 15px; } .play-card .pc-suit { font-size: 17px; }
  .die { width: 36px; height: 36px; }
  .slot-reel-cell { height: 60px; font-size: 32px; }
  .rl-cell { font-size: 10px; }
  .chip { width: 38px; height: 38px; }
  .seg-btn { flex-basis: calc(50% - 3px); }
  .tutorial-card { right: 8px; left: 8px; bottom: 76px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: opacity .12s !important; }
  .card, .btn-primary, .btn-secondary, .modal-panel, .game-tile, .stat-tile, .nav-item { transform: none !important; }
  a.card:hover, button.card:hover { transform: none !important; }
  .reveal-pop, .coin-flip, .die-roll, .slot-window.slot-final .slot-reel-cell, .round-result, .bj-table, .win-sparks > i, .race-runner, .radar .radar-sweep, .atmo-lamp, .spark > .spark-bar { animation: none !important; }
  .coin-flip.show-tura { transform: rotateY(180deg) !important; }
  .race-runner { transition: none !important; }
  html { scroll-behavior: auto; }
}
