/* VOLT base styles. Keep component styles here as classes (no inline styles in prod). */
* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden; /* clip the 100vw tape / a slightly-too-wide nav */
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* paper grain + gold plate frame + the lock sitting in the field */
.paper-grain,
.kairos-wash {
  position: fixed; pointer-events: none; z-index: 0;
}
.paper-grain {
  inset: 0;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 0 0.12  0 0 0 .28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.kairos-wash {
  top: 14vh;
  left: auto;
  right: 4vw;
  width: min(38vw, 440px);
  height: min(80vh, 900px);
  background: url("../img/kairos-mark.png") no-repeat center 8% / contain;
  opacity: .16;
}
body::after {
  content: "";
  position: fixed; inset: 11px;
  border: 1.5px solid rgba(183, 132, 42, .32);
  pointer-events: none; z-index: 2;
}
[data-theme="midnight"] body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(212, 168, 74, .07), transparent 50%),
    linear-gradient(180deg, #080706 0%, #14110d 48%, #1a1410 100%);
}
[data-theme="midnight"] body::before {
  content: "";
  position: fixed; top: 7vh; right: 9vw;
  width: min(28vw, 240px); height: min(28vw, 240px);
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 46% 40%, #161210 0%, #0a0908 68%, transparent 72%);
  box-shadow: 0 0 90px 24px rgba(212, 168, 74, .07);
}
[data-theme="midnight"] .paper-grain { mix-blend-mode: overlay; opacity: .3; }
[data-theme="midnight"] .kairos-wash { opacity: .1; filter: brightness(.55) sepia(.45); }
[data-theme="midnight"] body::after { border-color: rgba(212, 168, 74, .28); }
[data-theme="midnight"] .masthead {
  background: color-mix(in srgb, #0e0c0a 90%, transparent);
}
[data-theme="midnight"] .masthead::before {
  background: linear-gradient(90deg, #3a2a10, #d4a84a 42%, #8a6116);
}

/* Aurore: the sun sits on the water, like the shop seal. */
[data-theme="aurora"] body {
  background:
    radial-gradient(ellipse 80% 50% at 82% -6%, rgba(255, 196, 96, .62), transparent 56%),
    radial-gradient(ellipse 55% 36% at 8% 4%, rgba(194, 78, 46, .2), transparent 50%),
    linear-gradient(180deg, #E8A06A 0%, #F3D8C0 42%, #F6E2CC 100%);
}
[data-theme="aurora"] body::before {
  content: "";
  position: fixed; top: -10vh; right: 6vw;
  width: min(46vw, 420px); height: min(46vw, 420px);
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle,
    rgba(255, 228, 150, .95) 0%,
    rgba(255, 168, 64, .42) 36%,
    rgba(194, 78, 46, .1) 60%,
    transparent 72%);
}
[data-theme="aurora"] .paper-grain { opacity: .14; }
[data-theme="aurora"] .kairos-wash { opacity: .2; filter: sepia(.3) saturate(1.15); }
[data-theme="aurora"] body::after { border-color: rgba(194, 78, 46, .32); }
[data-theme="aurora"] .masthead::before {
  background: linear-gradient(90deg, #8F3A18, #E8A050 32%, #F3C46A 58%, #C24E2E);
}

[data-theme="gold"] body {
  background:
    radial-gradient(ellipse 80% 50% at 78% -8%, rgba(255, 214, 100, .7), transparent 56%),
    linear-gradient(180deg, #E0C060 0%, #E8D4A0 40%, #EFE0B4 100%);
}
[data-theme="gold"] body::before {
  content: "";
  position: fixed; top: -8vh; right: 8vw;
  width: min(40vw, 360px); height: min(40vw, 360px);
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle,
    rgba(255, 230, 140, .95) 0%,
    rgba(212, 160, 50, .4) 38%,
    rgba(183, 132, 42, .1) 60%,
    transparent 72%);
}
[data-theme="gold"] .paper-grain { opacity: .18; }
[data-theme="gold"] .kairos-wash { opacity: .22; filter: sepia(.5) saturate(1.3); }
[data-theme="gold"] body::after { border-color: rgba(154, 100, 20, .45); }
[data-theme="gold"] .masthead::before {
  background: linear-gradient(90deg, #8a6116, #E7C476 35%, #B7842A 70%, #8a6116);
}
body.is-stage .colophon { display: none; }
body:has(.cockpit) .colophon { display: none; }
body.is-stage .kairos-wash { display: none; }
body:has(.lobby-temple) .kairos-wash,
body:has(.tv) .kairos-wash { display: block; opacity: .12; }
body:has(.cockpit)::after,
body:has(.cockpit)::before,
body:has(.obs) .paper-grain,
body:has(.obs) .kairos-wash,
body:has(.obs)::after,
body:has(.obs)::before { display: none; }

.container { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 22px 24px 40px; }
body.is-home .container { padding-top: 0; }

.mono { font-family: var(--font-mono); }
.is-up { color: var(--up); }
.is-down { color: var(--down); }

/* ── masthead ─────────────────────────────────────────────────────────────
   Barre pleine largeur, sticky : le fond + la bordure rendent sa position
   identique sur toutes les pages (scrollbar-gutter neutralise le décalage
   dû à la barre de scroll). Le liseré or en tête est la signature VOLT. */
html { scrollbar-gutter: stable; }
@media (max-width: 1100px) {
  /* Overlay scrollbars on phones: the gutter + 100vw tape = sideways scroll. */
  html { scrollbar-gutter: auto; }
}

.masthead {
  position: sticky; top: 0; z-index: 90;
  max-width: 100%;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.masthead::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light) 30%, var(--gold) 60%, var(--gold-deep));
}
.nav {
  display: flex; align-items: center; gap: 12px;
  max-width: 1180px; margin: 0 auto; padding: 10px 24px;
  min-width: 0;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
}
.nav__wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-style: normal;
  font-size: 28px;
  line-height: 34px;
  height: 34px;
  letter-spacing: .18em;
  color: var(--gold-ink);
  -webkit-text-fill-color: var(--gold-ink);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.nav__brand .brand-mark { transition: transform .2s ease; }
.nav__brand:hover .brand-mark { transform: rotate(4deg); }
.nav__brand:hover .nav__wordmark { color: var(--gold-deep); -webkit-text-fill-color: var(--gold-deep); }
.nav__links { display: flex; align-items: center; gap: 1px; flex: 1; min-width: 0; overflow: hidden; }
.nav__link {
  font-family: var(--font-wordmark); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  color: var(--text-2); text-decoration: none;
  padding: 6px 9px; border-radius: 0;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface-3); }
.nav__link.is-active {
  color: var(--gold-deep); font-weight: 700;
  background: linear-gradient(150deg, rgba(231,196,118,.34), rgba(231,196,118,.12));
  box-shadow: inset 0 0 0 1px rgba(183,132,42,.28);
}
.nav__link--accent {
  color: var(--gold-ink); font-family: var(--font-wordmark); letter-spacing: .08em;
  border: 1.5px solid var(--gold-ink); background: var(--plate); padding: 5px 11px;
}
.nav__link--accent:hover { color: var(--gold-deep); background: var(--plate); box-shadow: 2px 2px 0 rgba(90, 64, 16, .45); }
.nav__sep { width: 1px; height: 16px; background: var(--border); margin: 0 7px; flex-shrink: 0; }
.nav__side {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  margin-left: auto; padding-left: 12px; border-left: 1.5px solid var(--gold-ink);
}
.nav__user {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 13em; min-width: 0;
  font-family: var(--font-wordmark); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: var(--gold-deep);
  text-decoration: none; padding: 4px 10px;
  border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav__user-id {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
}
.nav__user-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.nav__user:hover { color: var(--gold-ink); box-shadow: 2px 2px 0 rgba(90, 64, 16, .45); }
.nav__logout {
  display: inline-flex; align-items: center;
  font-family: var(--font-wordmark); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold-ink); text-decoration: none;
  padding: 5px 9px; border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: transparent;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav__logout:hover { color: var(--gold-deep); background: var(--plate); box-shadow: 2px 2px 0 rgba(90, 64, 16, .45); }
/* burger + tiroir + backdrop : n'existent que sous 1100px */
.nav__burger { display: none; }
.nav__backdrop { display: none; }
.nav__drawer-logout { display: none; }

/* kairos mark — the engraved lock (taller than wide, never squashed) */
.brand-mark {
  height: 34px; width: auto; display: block; flex-shrink: 0;
}
.page-kicker .brand-mark,
.hero__kicker .brand-mark { height: 16px; }
.cockpit-top .brand-mark { height: 26px; }

/* ── shared page & form primitives ───────────────────────────────────────── */
.page-title {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12;
  letter-spacing: .06em; margin: 0 0 6px;
}
.page-sub { color: var(--text-2); margin: 0 0 22px; max-width: 540px; }

/* ── gabarit commun des pages de contenu ──────────────────────────────────
   Hors home et cockpit, toutes les pages ouvrent sur le MÊME en-tête :
   kicker éclair + titre + sous-titre à gauche, méta ou module à droite.
   Le corps suit le même sens de lecture partout : contenu principal à
   gauche (1fr), complément à droite (360px) via .page-grid. */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-head__main { max-width: 640px; }
.page-head__main .page-title { margin: 0 0 6px; }
.page-head__main .page-sub { margin: 0; }
.page-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; }
.page-head__aside { text-align: right; }
/* variante centrée : les écrans du tunnel de jeu (créer -> salon) sont des
   cartes centrées, leur en-tête se centre avec elles */
.page-head--center { justify-content: center; text-align: center; }
.page-head--center .page-kicker { justify-content: center; }
.page-head--center .page-sub { margin-left: auto; margin-right: auto; }
.page-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px; align-items: start;
}
.page-aside__sticky { position: sticky; top: 16px; }
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-head { margin-bottom: 22px; }
}

.input {
  display: block; width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
}
.input:focus, .field-input:focus, .join-card__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 132, 42, .18);
}
input[type="range"], input[type="checkbox"] { accent-color: var(--gold); }

/* selectable chip button (create form: duration, markets, options) */
.chip-btn {
  padding: 9px 15px; border: 1.5px solid var(--border); border-radius: 0;
  background: var(--plate); color: var(--text-2); cursor: pointer;
  font-family: var(--font-wordmark); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.chip-btn:hover { border-color: var(--gold-ink); color: var(--gold-deep); }
.chip-btn.is-on {
  border-color: var(--gold-ink); background: rgba(183, 132, 42, .14);
  color: var(--gold-deep); font-weight: 700; box-shadow: 2px 2px 0 var(--gold-deep);
}
.chip-btn.is-on--up {
  border-color: var(--gold-ink); background: rgba(183, 132, 42, .14);
  color: var(--gold-deep);
}

/* Arcade: cabinet neon (gold + amber). Distinct from heat-gold on the watchlist
   (that's "this asset is moving") and from the green is-on--up chips. */
.chip-btn.chip-btn--arcade { position: relative; overflow: visible; }
.chip-btn.is-arcade {
  border-color: rgba(224, 138, 60, .85);
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(231,196,118,.35), transparent 55%),
    rgba(224, 138, 60, .12);
  color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(231,196,118,.35), 0 0 16px -2px rgba(224,138,60,.55);
  animation: arcade-glow 2.4s ease-in-out infinite;
}

.arcade-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; overflow: visible;
  border: 1px solid rgba(224, 138, 60, .7); border-radius: 4px;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(231,196,118,.32), transparent 55%),
    rgba(224, 138, 60, .12);
  font-family: var(--font-mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: .08em; color: var(--gold);
  box-shadow: 0 0 14px -2px rgba(224,138,60,.5);
  animation: arcade-glow 2.4s ease-in-out infinite;
  white-space: nowrap;
}
.arcade-sparks {
  position: absolute; inset: -7px; pointer-events: none; overflow: visible;
}
.arcade-sparks i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px var(--orange);
  animation: arcade-spark 1.7s ease-in-out infinite;
}
.arcade-sparks i:nth-child(1) { left: 8%; top: 4%; }
.arcade-sparks i:nth-child(2) {
  right: 6%; top: -2px; animation-delay: .45s; background: var(--orange);
}
.arcade-sparks i:nth-child(3) {
  left: 58%; bottom: -3px; animation-delay: .9s;
  width: 3px; height: 3px; background: var(--gold-ink);
}
@keyframes arcade-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(231,196,118,.28), 0 0 12px -2px rgba(224,138,60,.4); }
  50%      { box-shadow: 0 0 0 1px rgba(231,196,118,.55), 0 0 20px 0 rgba(224,138,60,.62); }
}
@keyframes arcade-spark {
  0%, 100% { opacity: 0; transform: translateY(3px) scale(.35); }
  35%      { opacity: 1; transform: translateY(-5px) scale(1); }
  70%      { opacity: .15; }
}
.join-chip.is-arcade {
  border-color: rgba(224, 138, 60, .65);
  background: rgba(224, 138, 60, .12);
  color: var(--gold);
  box-shadow: 0 0 10px -1px rgba(224,138,60,.4);
}
.arcade-warn {
  margin: -4px 0 18px; padding: 12px 14px;
  border: 1.5px solid rgba(220, 74, 79, .5);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(220,74,79,.12), rgba(224,138,60,.08));
  color: var(--text); font-size: 13.5px; line-height: 1.45;
}
.arcade-warn b {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display); font-size: 15px; color: var(--down);
}
.cockpit.is-arcade .cockpit-top {
  border-color: rgba(224, 138, 60, .5);
  background:
    linear-gradient(180deg, rgba(224,138,60,.11), transparent 72%),
    var(--surface);
}
.cockpit.is-arcade .cockpit-body { border-color: rgba(224, 138, 60, .42); }
.cockpit.is-arcade .countdown-fill:not(.is-low) {
  background: linear-gradient(90deg, var(--gold-light), var(--orange));
  box-shadow: 0 0 8px rgba(224, 138, 60, .55);
}
.tv.is-arcade .tv-head {
  box-shadow: 0 12px 28px -18px rgba(224, 138, 60, .55);
}
@media (prefers-reduced-motion: reduce) {
  .chip-btn.is-arcade, .arcade-pill { animation: none; }
  .arcade-sparks { display: none; }
}

/* papyrus plate + CRT scanlines (gold take on a signal texture) */
.cta > * { position: relative; z-index: 1; }
.cta {
  --cta-scan:
    repeating-linear-gradient(
      180deg,
      rgba(255, 246, 220, .18) 0 1px,
      transparent 1px 3px
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='72'><filter id='s' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.015 0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.62  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold-deep);
  background:
    var(--cta-scan),
    linear-gradient(168deg, #d8ae55 0%, var(--gold) 48%, var(--gold-ink) 100%);
  background-size: auto, 180px 72px, 100% 100%;
  color: var(--on-gold);
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--gold-deep);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 4px 4px 0 var(--gold-deep); }
.cta:active { transform: translateY(1px); box-shadow: 1px 1px 0 var(--gold-deep); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cta--ghost {
  background:
    repeating-linear-gradient(180deg, rgba(156, 112, 31, .05) 0 1px, transparent 1px 3px),
    var(--bg);
  background-size: auto;
  color: var(--gold-ink);
  border-color: var(--gold-ink);
  box-shadow: none;
}
.cta--ghost:hover {
  background:
    repeating-linear-gradient(180deg, rgba(156, 112, 31, .08) 0 1px, transparent 1px 3px),
    color-mix(in srgb, var(--gold-ink) 10%, var(--bg));
  color: var(--gold-deep);
  filter: none;
  box-shadow: none;
}

.cta:disabled { opacity: .55; cursor: default; pointer-events: none; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(183, 132, 42, .14);
  border-radius: calc(var(--radius-lg) - 3px);
  pointer-events: none;
}
body:not(.is-stage) .card {
  background: var(--plate);
  border: 1.5px solid var(--gold-ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(90, 64, 16, .45);
}
body:not(.is-stage) .card::after {
  inset: 5px;
  border-color: rgba(156, 112, 31, .28);
  border-radius: 0;
}

.label {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* leaderboard row */
.lb-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; margin-bottom: 5px;
  border: 1px solid transparent; border-radius: var(--radius);
}
.lb-row--you { background: rgba(183,132,42,.1); border-color: rgba(183,132,42,.45); }
.lb-rank {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 10.5px;
  background: rgba(58,44,16,.07); border-radius: 3px;
}
.lb-name { flex: 1; font-weight: 600; }
.lb-avatar, .nav__user span:first-child, .glyph {
  font-family: var(--font-wordmark); font-weight: 700;
  color: var(--gold-ink); letter-spacing: .04em;
}
.nav__seal, .lb-avatar-img, .seal-img {
  display: inline-block; object-fit: cover; object-position: center;
  vertical-align: middle;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  clip-path: circle(41% at 50% 50%);
}
.nav__seal { width: 30px; height: 30px; }
.seal-img--md { width: 40px; height: 40px; }
.seal-img--lg { width: 56px; height: 56px; }

.flair-title {
  display: inline-block;
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--plate);
  border: 1.5px solid var(--gold-ink);
  padding: 4px 12px; margin: 8px 0 0;
}
.flair-title--nav {
  font-size: 8px; letter-spacing: .1em; padding: 1px 6px; margin: 0;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.flair-title--lb {
  font-size: 8.5px; letter-spacing: .08em; padding: 1px 6px; margin: 0 0 0 6px;
  vertical-align: middle;
}
.lb-pct { font-family: var(--font-mono); font-weight: 700; }

.disclaimer { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.home-foot { margin-top: 48px; text-align: center; }
.home-quote {
  margin: 0 0 12px;
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .08em;
  color: var(--gold-ink);
}
.colophon {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: 28px 24px 36px;
}
.colophon__links {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: center;
  margin: 0 0 14px;
}
.colophon__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.colophon__links a:hover { color: var(--gold-ink); border-bottom-color: var(--gold); }
.colophon__myth {
  margin: 0;
  font-family: var(--font-wordmark);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

.herald {
  position: relative;
  max-width: 640px;
  margin: 40px auto 8px;
  padding: 28px 28px 26px;
  overflow: hidden;
}
.herald::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
}
.herald__kicker { margin: 0 0 6px; }
.herald__title {
  margin: 0 0 8px;
  font-family: var(--font-wordmark);
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--gold-ink);
}
.herald__sub, .herald__prize {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.herald__prize { color: var(--gold-deep); font-weight: 600; }
.herald__form { display: grid; gap: 6px; margin-top: 16px; }
.herald__form .input { margin-bottom: 8px; }
.herald__go { width: 100%; height: 46px; margin-top: 4px; }
.herald__ok {
  margin: 16px 0 0;
  font-family: var(--font-wordmark);
  color: var(--gold-ink);
  letter-spacing: .04em;
}
.podium-herald { text-align: left; min-width: 0; min-height: 0; overflow-y: auto; }
.podium-herald .herald { margin: 0; padding: 22px 20px; max-width: none; height: 100%; }

.legal { max-width: 720px; margin: 36px auto; padding: 32px; }
.legal__wip {
  display: inline-block;
  margin: 0 0 18px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid var(--gold);
}
.legal__body { color: var(--text-2); line-height: 1.6; }

.pit__window { display: flex; gap: 8px; align-items: center; }
.pit__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}
.pit__stat { padding: 16px 18px; }
.pit__stat b { display: block; font-size: 28px; margin-top: 6px; color: var(--gold-ink); }
.pit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pit__panel { padding: 18px 20px; margin-bottom: 14px; }
.pit__panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-wordmark);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--gold-ink);
}
.pit__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.pit__table-wrap { overflow-x: auto; }
.pit__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pit__table th, .pit__table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border-soft); }
.pit__table th { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: 500; }
.pit__live { max-height: 360px; overflow: auto; }
.pit__tick {
  display: grid;
  grid-template-columns: 72px 1fr 1fr 90px;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.pit__kind { color: var(--gold-ink); text-transform: uppercase; }
@media (max-width: 800px) {
  .pit__stats, .pit__grid { grid-template-columns: 1fr 1fr; }
  .pit__tick { grid-template-columns: 64px 1fr; }
}

/* ── trading cockpit ──────────────────────────────────────────────────────
   « Borne d'arcade de salle des marchés » : hauteur fixe (100dvh), zéro scroll
   de page pendant la manche. Le graphique est le pare-brise, le pupitre une
   manette permanente (colonne droite desktop / dock mobile). */

/* Le body devient un cockpit dès que l'écran de trading est monté.
   Le masthead du site reste visible (Home / Shop / profil), y compris sur
   l'écran TV une fois la manche finie. OBS reste sans nav (overlay stream). */
body:has(.cockpit) { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; max-width: 100%; }
body:has(.cockpit) .container {
  flex: 1; min-height: 0; min-width: 0; max-width: 100%; width: 100%;
  padding: 0 16px 12px; display: flex; flex-direction: column;
}
body:has(.cockpit) .container > [x-data] { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.cockpit { flex: 1; min-height: 0; min-width: 0; max-width: 100%; display: flex; flex-direction: column; }

/* HUD */
.cockpit-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px; border: 1.5px solid var(--gold-ink); border-bottom: none;
  background: var(--plate); border-radius: 0;
  flex-shrink: 0; min-width: 0; max-width: 100%;
}
.cockpit-top__left { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.cockpit-top__stats { display: flex; align-items: center; gap: 18px; min-width: 0; flex-shrink: 1; }
.hud-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hud-stat__label { font-family: var(--font-wordmark); font-size: 9px; letter-spacing: .14em; color: var(--text-muted); }
.hud-stat__value { font-size: 15px; font-weight: 700; white-space: nowrap; }
.hud-stat__value.is-low { color: var(--down); animation: volt-pulse .9s infinite; }
.icon-btn {
  border: 1.5px solid var(--gold-ink); border-radius: 0; background: var(--plate);
  padding: 4px 8px; font-size: 12px; cursor: pointer; line-height: 1;
  color: var(--gold-deep);
}
.rank-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px;
  border: 1.5px solid var(--gold-ink); border-radius: 0; cursor: pointer;
  background: rgba(183,132,42,.12);
  color: var(--gold-deep); font-weight: 700; font-size: 12.5px;
  font-family: var(--font-wordmark); letter-spacing: .04em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rank-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }

/* corps : centre + colonne droite */
.cockpit-body {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 324px;
  border: 1.5px solid var(--gold-ink); border-top: none; background: #f3ead8;
  border-radius: 0; overflow: hidden;
}
.cockpit-main {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 10px 14px 12px; gap: 8px; border-right: 1px solid var(--border-soft);
}
.cockpit-banner { margin-bottom: 0; flex-shrink: 0; }

/* rail de symboles (la watchlist, toujours visible, un tap pour changer) */
.symbol-rail {
  display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none; padding-bottom: 2px;
}
.symbol-rail::-webkit-scrollbar { display: none; }
.sym-chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 5px 9px; border: 1.5px solid var(--border); border-radius: 0;
  background: var(--plate); cursor: pointer; text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.sym-chip:hover { border-color: var(--gold-ink); }
.sym-chip:active { transform: scale(.97); }
.sym-chip.is-on { border-color: var(--gold-ink); background: rgba(183,132,42,.12); }
.sym-chip__txt { display: flex; flex-direction: column; line-height: 1.25; }
.sym-chip__sym { font-weight: 700; font-size: 11px; }
.sym-chip__price { font-size: 10px; color: var(--text-2); }
.sym-chip__chg { font-size: 10px; font-weight: 600; }

/* Heat : où le mouvement se passe MAINTENANT (arcade.py recalcule ce classement
   toutes les 5 min). Le rail est trié par mouvement attendu décroissant, donc
   l'actif à trader est toujours le premier. Le glow ne dit PAS "ça monte" —
   il dit "ça bouge" : couleur neutre (or), jamais vert/rouge, pour ne pas
   suggérer une direction. */
.sym-chip__heat { font-size: 11px; line-height: 1; margin-left: 1px; }
.sym-chip.is-warm { border-color: rgba(201,162,39,.34); }
.sym-chip.is-hot {
  border-color: rgba(201,162,39,.75);
  background: rgba(201,162,39,.10);
  animation: sym-heat-glow 2.4s ease-in-out infinite;
}
.sym-chip.is-hot .sym-chip__sym { color: var(--gold); }
/* Flash court au moment où un actif DEVIENT le plus chaud : c'est le signal de
   changer de cheval. Volontairement bref — un clignotement permanent devient
   du bruit et on cesse de le voir. */
.sym-chip.just-heated { animation: sym-heat-pop .55s ease-out 3; }

@keyframes sym-heat-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
  50%      { box-shadow: 0 0 10px 1px rgba(201,162,39,.42); }
}
@keyframes sym-heat-pop {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(201,162,39,.55); }
  40%  { transform: scale(1.06); box-shadow: 0 0 14px 3px rgba(201,162,39,.6); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}
@media (prefers-reduced-motion: reduce) {
  .sym-chip.is-hot, .sym-chip.just-heated { animation: none; }
  .sym-chip.is-hot { box-shadow: 0 0 8px 1px rgba(201,162,39,.35); }
}

/* Mouvement attendu de l'actif affiché (même source que le tri du rail). */
.heat-pill {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--border-soft); background: var(--surface);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .02em; color: var(--text-muted); white-space: nowrap;
}
.heat-pill--hot {
  border-color: rgba(201,162,39,.6); background: rgba(201,162,39,.12); color: var(--gold);
}
.heat-pill--calm { opacity: .8; }

/* gros prix + timeframes */
.quote-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; flex-shrink: 0;
}
.quote-row__main { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.quote-row__price { font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.05; }
.quote-row__chg { font-size: 12.5px; font-weight: 700; }
.quote-row__name {
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}

.live-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid rgba(14,157,107,.3); border-radius: 4px; background: rgba(14,157,107,.08);
  font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; color: var(--up);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 8px var(--up); animation: volt-blink 1.5s infinite;
}
@keyframes volt-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* brand ticker badge (eye-candy: instant asset recognition) */
.ticker-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  box-shadow: 0 2px 6px -1px rgba(0,0,0,.28); flex-shrink: 0;
}
.ticker-badge--sm { width: 24px; height: 24px; border-radius: 5px; font-size: 10.5px; }
.ticker-badge--mark {
  border-radius: 0;
  font-family: var(--font-wordmark); font-weight: 700; color: #f0ebe1;
}

/* win-streak flame (momentum / variable reward) */
.streak-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px;
  background: linear-gradient(150deg, #ffb347, #e8611f); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  box-shadow: 0 3px 10px -2px rgba(232,97,31,.6); animation: volt-pulse 1.4s infinite;
}
.tf-row { display: flex; align-items: center; gap: 6px; }
.tf-btn {
  padding: 6px 11px; font-family: var(--font-wordmark); font-weight: 600; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); border: 1.5px solid var(--border); border-radius: 0;
  background: var(--plate); cursor: pointer;
}
.tf-btn:hover:not(.is-active) { border-color: var(--gold-ink); color: var(--gold-deep); }
.tf-btn.is-active { background: var(--gold-ink); border-color: var(--gold-ink); color: #f0ebe1; font-weight: 700; }

/* graphique : toute la hauteur restante */
.chart-wrap { position: relative; flex: 1; min-height: 160px; display: flex; overflow: hidden; }
.chart-panel {
  flex: 1; min-height: 0; min-width: 0; background: var(--surface-4);
  border: 1.5px solid var(--gold-ink); border-radius: 0; overflow: hidden;
}
.chart-panel.is-dragging-line { touch-action: none; cursor: ns-resize; }
/* flash d'exécution : lame de couleur qui monte du bas du graphique */
.chart-flash { position: absolute; inset: 0; border-radius: 0; pointer-events: none; opacity: 0; overflow: hidden; }
.chart-flash.is-buy {
  background: radial-gradient(130% 110% at 50% 105%, rgba(14,157,107,.45), transparent 62%);
  animation: chart-flash .65s ease-out;
}
.chart-flash.is-sell {
  background: radial-gradient(130% 110% at 50% 105%, rgba(220,74,79,.45), transparent 62%);
  animation: chart-flash .65s ease-out;
}
@keyframes chart-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* positions ouvertes : cartes horizontales sous le graphique */
.pos-rail {
  display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none; padding-bottom: 2px;
}
.pos-rail::-webkit-scrollbar { display: none; }
.pos-card {
  flex-shrink: 0; min-width: 168px; padding: 7px 10px 8px; cursor: pointer;
  border: 1.5px solid var(--gold-ink); border-radius: 0; background: var(--plate);
  animation: volt-slidein .3s ease-out;
}
.pos-card:hover { border-color: var(--gold-deep); }
.pos-card__head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.pos-card__side { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.pos-card__side.is-long { color: var(--up); background: rgba(14,157,107,.12); }
.pos-card__side.is-short { color: var(--down); background: rgba(220,74,79,.12); }
.pos-card__lev { font-size: 9px; font-weight: 700; color: var(--violet); }
.pos-card__close {
  margin-left: auto; border: none; background: var(--surface-4); color: var(--text-2);
  width: 20px; height: 20px; border-radius: 99px; font-size: 10px; cursor: pointer; line-height: 1;
}
.pos-card__close:hover { background: var(--down); color: #fff; }
.pos-card__pnl { font-size: 12.5px; font-weight: 700; margin-top: 3px; }
.pos-card__sub {
  font-size: 9px; color: var(--text-muted); margin-top: 2px; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
/* stop/target de la position : valeur posée ou bouton "+SL/+TP" un-tap */
.pos-prot { font-size: 8.5px; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.pos-prot--sl { color: var(--down); background: rgba(220,74,79,.1); }
.pos-prot--tp { color: var(--up); background: rgba(14,157,107,.1); }
.pos-prot--add {
  border: 1px dashed var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; font-family: var(--font-mono);
}
.pos-prot--add:hover { border-color: var(--accent); color: var(--accent); }

/* ── colonne droite : pupitre + onglets ── */
.cockpit-side {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  padding: 12px; gap: 10px;
}

.order-panel {
  flex-shrink: 0; border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate); padding: 12px 14px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.order-panel.is-armed { border-color: rgba(183,132,42,.65); box-shadow: 0 0 0 3px rgba(231,196,118,.35), var(--shadow-gold); }
.order-panel__handle { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.order-panel__handle .label { margin-right: auto; }
.order-panel__close {
  display: none; border: none; background: var(--surface-4); color: var(--text-2);
  width: 30px; height: 30px; border-radius: 99px; font-size: 13px; cursor: pointer;
}
.order-panel__avail { margin-top: 9px; font-size: 10px; color: var(--text-muted); text-align: center; }
.order-panel__avail b { color: var(--text); }

/* segmented control (Simple/Avancé, Achat/Vente) */
.mode-seg {
  display: inline-flex; border: 1px solid var(--border); border-radius: 5px;
  overflow: hidden; background: var(--surface-4);
}
.mode-seg button {
  border: none; background: transparent; cursor: pointer; padding: 5px 11px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2);
}
.mode-seg button.is-on { background: var(--text); color: var(--bg); font-weight: 700; }
.mode-seg--side button.is-buy.is-on { background: var(--up); color: #fff; }
.mode-seg--side button.is-sell.is-on { background: var(--down); color: #fff; }

/* curseur de mise (la commande principale) */
.size-block { margin-bottom: 10px; }
.size-block__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.size-block__pct { font-size: 13px; font-weight: 700; color: var(--gold-deep); transition: transform .2s ease; }
.size-block__pct.is-allin { color: var(--gold-deep); animation: volt-pulse 1s infinite; }
.size-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 99px; border: 1px solid var(--border); outline: none;
  background: var(--surface-4); cursor: pointer; display: block;
}
.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  border: 2px solid var(--surface); box-shadow: 0 2px 8px -2px rgba(183,132,42,.8);
  cursor: grab; transition: transform .12s ease, box-shadow .2s ease;
}
.size-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.size-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.22); }
.size-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  border: 2px solid var(--surface); box-shadow: 0 2px 8px -2px rgba(183,132,42,.8); cursor: grab;
}
.is-armed .size-slider::-webkit-slider-thumb, .dock__size.is-armed .size-slider::-webkit-slider-thumb {
  box-shadow: 0 0 14px 2px rgba(231,196,118,.9); animation: volt-pulse 1s infinite;
}
.size-presets { display: flex; gap: 5px; margin-top: 7px; }
.size-presets button {
  flex: 1; padding: 5px 0; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 4px; background: var(--surface-4);
  color: var(--text-2); cursor: pointer; transition: transform .1s ease;
}
.size-presets button:hover { border-color: var(--accent); color: var(--accent); }
.size-presets button:active { transform: scale(.94); }
.size-presets__allin { color: var(--gold-deep) !important; border-color: rgba(183,132,42,.5) !important; }
.size-presets__allin.is-on {
  background: linear-gradient(150deg, var(--gold-light), var(--gold)) !important;
  color: var(--on-gold) !important; box-shadow: var(--shadow-gold);
}

/* champs montant / qté / risque */
.order-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.order-fields--risk { grid-template-columns: repeat(3, 1fr); margin-top: 9px; }
.field-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); margin-bottom: 4px; }
.field-input {
  height: 38px; width: 100%; padding: 0 11px; background: var(--surface-4);
  border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-mono);
  font-size: 13px; color: var(--text);
}
.order-sep { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 11px; color: var(--text-2); }

/* boutons d'exécution */
.exec-row { display: flex; gap: 8px; margin-top: 12px; }
.exec-row--advanced { flex-direction: column; }
.exec-row--advanced .mode-seg--side { align-self: flex-start; }
.exec-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 11px 8px; border: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
  line-height: 1.15; transition: transform .1s ease, filter .15s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.exec-btn--buy { background: var(--up); box-shadow: 0 6px 18px -8px rgba(14,157,107,.8); }
.exec-btn--sell { background: var(--down); box-shadow: 0 6px 18px -8px rgba(220,74,79,.8); }
.exec-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.exec-btn:active { transform: translateY(1px) scale(.98); }
.exec-btn:disabled { opacity: .55; pointer-events: none; }
.exec-btn__est { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; opacity: .9; }
.is-armed .exec-btn { animation: allin-armed 1.1s ease-in-out infinite; }
@keyframes allin-armed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,196,118,.0); }
  50% { box-shadow: 0 0 16px 3px rgba(231,196,118,.75); }
}

/* onglets d'infos (classement / flux / défis) */
.info-panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface);
  padding: 10px 12px;
}
.info-panel__handle { display: none; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.info-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-shrink: 0; }
.info-tabs button {
  flex: 1; padding: 6px 4px; border: 1px solid var(--border-soft); border-radius: 4px;
  background: transparent; color: var(--text-2); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px;
}
.info-tabs button.is-on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }
.info-pane { flex: 1; min-height: 0; overflow-y: auto; }
.info-pane__empty { color: var(--text-muted); font-size: 11px; }
.info-panel__legal { margin: 8px 0 0; flex-shrink: 0; text-align: center; }

.feedback { padding: 8px 12px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; margin-top: 10px; }
.feedback.ok { background: rgba(14,157,107,.08); color: var(--up); border: 1px solid rgba(14,157,107,.3); }
.feedback.err { background: rgba(220,74,79,.08); color: var(--down); border: 1px solid rgba(220,74,79,.3); }
/* toast flottant : l'exécution reste visible même pupitre fermé */
.feedback--toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 65;
  margin: 0; box-shadow: var(--shadow-card); animation: volt-slidein .25s ease-out;
  background: var(--surface); white-space: nowrap; max-width: min(92vw, 480px);
  overflow: hidden; text-overflow: ellipsis;
}
.feedback--toast.ok { background: var(--surface); }
.feedback--toast.err { background: var(--surface); }

.closed-badge { font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 3px; background: var(--surface-4); color: var(--text-muted); }

/* ── countdown (game header) ─────────────────────────────────────────────── */
@keyframes volt-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.countdown-bar { height: 3px; background: var(--surface-4); overflow: hidden; }
.countdown-fill { height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width 1s linear; }
.countdown-fill.is-low { background: var(--down); }

/* ── P&L flash on trade ──────────────────────────────────────────────────── */
.flash-up { animation: volt-flash-up .7s ease-out; }
.flash-down { animation: volt-flash-down .7s ease-out; }
@keyframes volt-flash-up {
  0% { background: rgba(14,157,107,.35); transform: scale(1.06); }
  100% { background: transparent; transform: scale(1); }
}
@keyframes volt-flash-down {
  0% { background: rgba(220,74,79,.35); transform: scale(1.06); }
  100% { background: transparent; transform: scale(1); }
}

/* leverage stepper */
.lev-stepper { display: flex; align-items: center; height: 38px; border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; background: var(--surface-4); }
.lev-stepper button { width: 30px; height: 100%; border: none; background: transparent; cursor: pointer;
  font-size: 17px; font-weight: 700; color: var(--text-2); line-height: 1; }
.lev-stepper button:hover { background: rgba(183,132,42,.14); color: var(--gold-deep); }
.lev-stepper input { width: 34px; height: 100%; border: none; background: transparent; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--gold-deep); }
.lev-stepper .lev-x { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); padding-right: 4px; }

/* ── market-closed banner ────────────────────────────────────────────────── */
.market-closed-banner {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px; margin-bottom: 12px;
  border: 1px solid rgba(224,138,60,.4); border-radius: 5px; background: rgba(224,138,60,.09);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--orange);
}
.market-closed-banner button {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  border: none; background: var(--orange); color: #fff; padding: 5px 11px; border-radius: 4px; cursor: pointer;
}

/* ── challenges strip ────────────────────────────────────────────────────── */
.challenge-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; margin: 0 5px 5px 0;
  border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
}
.challenge-chip.is-done { border-color: rgba(14,157,107,.4); background: rgba(14,157,107,.08); color: var(--up); }
.challenge-chip .cc-icon { filter: grayscale(1); opacity: .5; }
.challenge-chip.is-done .cc-icon { filter: none; opacity: 1; }

/* ── price tick flash (watchlist + big price) ────────────────────────────── */
.tick-up { animation: volt-tick-up .6s ease-out; display: inline-block; }
.tick-down { animation: volt-tick-down .6s ease-out; display: inline-block; }
@keyframes volt-tick-up { 0% { color: var(--up); transform: scale(1.07); } 100% { } }
@keyframes volt-tick-down { 0% { color: var(--down); transform: scale(1.07); } 100% { } }

/* ── risk preview (advanced order desk) ──────────────────────────────────── */
.risk-preview {
  margin-top: 9px; padding: 7px 11px; border-radius: 4px; font-size: 10.5px;
  background: var(--surface-4); border: 1px dashed var(--border); color: var(--text-2);
}

/* ── trade ticker (opponents + me) ───────────────────────────────────────── */
.feed-ticker { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow: hidden; }
.feed-item { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); animation: volt-slidein .35s ease-out; }
.feed-item b { color: var(--text); }
.feed-item--me b { color: var(--gold-deep); }
@keyframes volt-slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── hero-reset overlay ──────────────────────────────────────────────────── */
.volt-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(20,15,8,.55); backdrop-filter: blur(2px); animation: volt-fadein .25s ease-out;
}
.volt-overlay--podium {
  align-items: safe center; padding: 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
@keyframes volt-fadein { from { opacity: 0; } to { opacity: 1; } }
.hero-card {
  text-align: center; padding: 30px 40px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card); animation: volt-pop .4s cubic-bezier(.2,1.4,.4,1);
}
.hero-card .hero-bolt { font-size: 54px; animation: volt-shake .5s ease-in-out 2; }
@keyframes volt-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes volt-shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ── final podium ────────────────────────────────────────────────────────── */
.podium-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: stretch; gap: 0;
  width: min(920px, calc(100vw - 32px));
  max-height: min(92dvh, 860px);
  min-width: 0; padding: 0; overflow: hidden; text-align: left;
}
.podium-card__main {
  min-width: 0; min-height: 0; overflow-y: auto;
  padding: 26px 28px 22px; text-align: center;
}
.podium-card .podium-herald {
  border-left: 1.5px solid var(--gold-ink);
  background: var(--plate);
}
.podium-card .herald__title { font-size: 18px; }
.podium-card .herald__sub, .podium-card .herald__prize { font-size: 13px; margin-bottom: 6px; }
.podium-card .herald__form { margin-top: 10px; gap: 4px; }
.podium-card .herald__form .input { height: 42px; margin-bottom: 4px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 22px 0; }
.podium-step { text-align: center; }
.podium-bar {
  width: 92px; border-radius: 6px 6px 0 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px; font-family: var(--font-display); font-weight: 800; color: var(--on-gold);
  animation: volt-rise .6s cubic-bezier(.2,1.2,.4,1) backwards;
}
.podium-bar--1 { height: 120px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.podium-bar--2 { height: 88px; background: linear-gradient(180deg, #e8e4da, #c3bdae); animation-delay: .1s; }
.podium-bar--3 { height: 66px; background: linear-gradient(180deg, #e6b98f, #cf9663); animation-delay: .2s; }
@keyframes volt-rise { from { height: 0; opacity: 0; } }
.confetti {
  position: fixed; top: -18px; z-index: 60; pointer-events: none;
  font-family: var(--font-wordmark); font-weight: 700; line-height: 1;
  background: none; animation: volt-fall linear forwards;
}
@keyframes volt-fall { to { transform: translateY(105vh) rotate(220deg); opacity: 0; } }

/* ── floating "+N XP" toasts (progression made visible) ──────────────────── */
.xp-toasts { position: fixed; top: 70px; right: 22px; z-index: 55; display: flex;
  flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.xp-toast {
  padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
  color: var(--on-gold); background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-card); animation: volt-xp 2.2s ease-out forwards;
}
@keyframes volt-xp {
  0% { opacity: 0; transform: translateY(8px) scale(.85); }
  15% { opacity: 1; transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}

/* ── story mode path ─────────────────────────────────────────────────────── */
.story-progress { margin-bottom: 26px; }
.story-progress-bar { height: 9px; background: var(--surface-4); border: 1px solid var(--border-soft);
  border-radius: 99px; overflow: hidden; }
.story-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width .5s cubic-bezier(.2,1,.4,1); }

.story-path { display: flex; flex-direction: column; max-width: 680px; }
.story-node { display: flex; gap: 16px; }
.story-node__rail { display: flex; flex-direction: column; align-items: center; }
.story-node__dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono); font-weight: 700; background: var(--surface-4);
  color: var(--text-2); border: 2px solid var(--border); flex-shrink: 0; }
.story-node__rail::after { content: ""; flex: 1; width: 2px; background: var(--border); margin: 4px 0; }
.story-node:last-child .story-node__rail::after { display: none; }
.story-node__card { flex: 1; padding: 16px 18px; margin-bottom: 16px; transition: box-shadow .2s, border-color .2s; }
.story-node__head { display: flex; align-items: flex-start; gap: 12px; }
.story-icon {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 22px; line-height: 1; color: var(--gold-ink); letter-spacing: .04em;
}
.story-node__title { font-family: var(--font-wordmark); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.story-learn { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.story-goal { margin: 11px 0 13px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  background: var(--surface-4); padding: 8px 11px; border-radius: 5px; }
.story-status { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.story-locked-hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

.story-node.is-completed .story-node__dot { background: var(--gold-ink); color: #f0ebe1; border-color: var(--gold-ink); }
.story-node.is-completed .story-status { color: var(--gold-deep); background: rgba(183,132,42,.12); }
.story-node.is-current .story-node__card { border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231,196,118,.4), var(--shadow-card); }
.story-node.is-current .story-node__dot { background: linear-gradient(150deg, var(--gold-light), var(--gold));
  color: var(--on-gold); border-color: var(--gold); animation: volt-pulse 1.7s infinite; }
.story-node.is-current .story-status { color: var(--gold-deep); background: rgba(183,132,42,.14); }
.story-node.is-locked { opacity: .5; }
.story-node.is-locked .story-status { color: var(--text-muted); background: var(--surface-4); }

/* mobile : le tag de statut passe au-dessus du titre au lieu d'écraser la
   colonne de texte (icône + titre gardent toute la largeur de la carte) */
@media (max-width: 640px) {
  .story-node { gap: 10px; }
  .story-node__card { padding: 14px; }
  .story-node__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; }
  .story-node__head .story-status { grid-column: 1 / -1; grid-row: 1; justify-self: start; margin-left: 0; }
  .story-node__head .story-icon { grid-row: 2; }
  .story-node__head > div { grid-row: 2; grid-column: 2; }
}

/* ── home: « papier & haute tension » ───────────────────────────────────── */

/* full-bleed scrolling ticker tape */
.tape {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  margin: 0 calc(50% - 50vw) 34px;
}
.tape__track {
  display: flex;
  gap: 38px;
  width: max-content;
  padding: 9px 0;
  animation: tape-scroll 45s linear infinite;
}
.tape__item {
  display: inline-flex;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.tape__item b { color: var(--text); }
@keyframes tape-scroll { to { transform: translateX(calc(-50% - 19px)); } }

/* hero: pitch on the left, live arena preview on the right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px 40px;
  align-items: center;
}
body.is-home .hero {
  min-height: clamp(440px, calc(100dvh - 380px), 600px);
}
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero__pitch { position: relative; z-index: 0; }
.hero__kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 18px; }

.hero__title {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: clamp(32px, 5.2vw, 62px);
  line-height: 1.12;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 20px;
}
.hero__title span { display: block; white-space: nowrap; }
html[lang="en"] .hero__title {
  font-size: clamp(26px, 4.2vw, 48px);
  letter-spacing: .03em;
}
.hero__sub {
  font-family: var(--font-wordmark);
  font-weight: 600;
  color: var(--text-2);
  font-size: 14px;
  letter-spacing: .03em;
  line-height: 1.7;
  margin: 0;
}
.hero__sub span { display: block; white-space: nowrap; }

.hero__ctas { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.hero__ease {
  margin: 12px 0 0;
  font-family: var(--font-wordmark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.join-card { padding: 18px 16px 16px; position: relative; z-index: 2; }
.join-card .label { margin-bottom: 10px; }
.join-card__row { display: flex; gap: 8px; }
.join-card__input {
  flex: 1; width: 0; min-width: 0; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: #f3ead4;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text);
}
.join-card__input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 3px 3px 0 var(--gold-deep);
}
.join-card__go { padding: 0 18px; }
.join-card__hint {
  font-family: var(--font-wordmark); font-size: 11.5px;
  letter-spacing: .04em; color: var(--text-muted); margin: 10px 0 0;
}

/* plates: stele / papyrus, not generic white cards */
.plate {
  position: relative;
  background: var(--plate);
  border: 1.5px solid var(--gold-ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(90, 64, 16, .5);
}
.plate--frieze { padding-top: 18px; }
.plate--frieze::before {
  content: "";
  position: absolute; left: 8px; right: 8px; top: 6px;
  height: 8px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'><path d='M0 7h5V1h3v6h4V1h3v6h5' fill='none' stroke='%239c701f' stroke-width='1.15'/></svg>") repeat-x center / 20px 8px;
}

.create-desk {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: start;
}
.create-desk__col { padding: 12px 22px 18px; min-width: 0; }
.create-desk__col + .create-desk__col {
  border-left: 1.5px solid rgba(156, 112, 31, .28);
}
.create-desk__who {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); margin: 0 0 14px;
}
.create-field { margin-bottom: 14px; }
.create-field .input { margin-top: 8px; }
.create-field input[type="range"] { width: 100%; margin-top: 8px; }
.create-field .disclaimer, .create-desk .disclaimer { margin: 8px 0 0; }
.create-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.create-desk__money {
  font-weight: 700; color: var(--gold-ink); font-size: 22px; margin-top: 4px;
}
.create-desk__go { width: 100%; height: 52px; margin-top: 6px; }
.create-desk .arcade-warn { margin: 0 0 14px; border-radius: 0; }
@media (max-width: 860px) {
  .create-desk { grid-template-columns: 1fr; }
  .create-desk__col + .create-desk__col {
    border-left: 0;
    border-top: 1.5px solid rgba(156, 112, 31, .28);
  }
}
.hero__side .card::after {
  border-radius: 0;
  inset: 5px;
  border-color: rgba(156, 112, 31, .28);
}
.hero__side .card::before {
  content: "";
  position: absolute; left: 8px; right: 8px; top: 6px;
  height: 8px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'><path d='M0 7h5V1h3v6h4V1h3v6h5' fill='none' stroke='%239c701f' stroke-width='1.15'/></svg>") repeat-x center / 20px 8px;
}

.arena-preview { position: relative; pointer-events: none; }
.arena-preview::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  background: #efe6d4;
  border: 1.5px solid var(--gold-ink);
  transform: translate(6px, 6px);
}
.arena-card {
  position: relative;
  z-index: 1;
  padding: 22px 16px 16px;
}
.arena-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.arena-card__code {
  font-family: var(--font-wordmark); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.arena-card__clock {
  margin-left: auto;
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 16px; letter-spacing: .06em; color: var(--gold-deep);
}
.arena-card__spark { width: 100%; height: 84px; margin-bottom: 14px; display: block; }
.arena-card__dot { animation: volt-blink 1.5s infinite; }
.arena-card__bar { border-radius: 0; margin-top: 10px; }
.arena-card__fill { width: 38%; }
.arena-card .lb-name { font-family: var(--font-wordmark); letter-spacing: .04em; }
.arena-card .lb-row { border-radius: 0; }
.hero__side .live-pill {
  font-family: var(--font-wordmark); letter-spacing: .12em;
  border-radius: 0; text-transform: uppercase;
}
@keyframes volt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* newspaper-masthead stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--border);
  margin: 46px 0 16px;
}
.stat-strip__item {
  flex: 1;
  min-width: 130px;
  padding: 15px 18px;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-strip__item:last-child { border-right: none; }
.stat-strip__item b { font-family: var(--font-mono); font-size: 21px; font-weight: 700; }

@media (max-width: 980px) {
  /* minmax(0,1fr) : sans lui, le min-content de la colonne (input du
     join-card) force la page au-delà du viewport sur mobile */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  body.is-home .hero { min-height: 0; }
  .hero__title span, .hero__sub span { white-space: normal; }
  .hero__side { max-width: 430px; }
  .arena-preview { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tape__track, .arena-card, .arena-card__dot, .cta,
  .cockpit.is-shaking, .is-armed .exec-btn, .chart-flash,
  .is-quaking, .tv-vignette, .tv-moment { animation: none !important; }
  .cta { transition: none; }
  .volt-fx__hud { animation: none !important; }
}

/* ── nav: Volts balance pill ─────────────────────────────────────────────── */
.nav__volts {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0; color: var(--gold-ink); text-decoration: none;
  white-space: nowrap;
  transition: box-shadow .15s ease, color .15s ease;
}
.nav__volts:hover { box-shadow: 2px 2px 0 rgba(90, 64, 16, .45); color: var(--gold-deep); }

/* ── interrupteur de langue ──────────────────────────────────────────────────
   Un <a> (donc fonctionnel sans JS) déguisé en switch : les deux drapeaux
   restent visibles, la poignée glisse sous la langue active. On lit l'état ET
   la destination d'un seul coup d'œil. */
.lang-switch {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate); text-decoration: none; line-height: 1;
  flex-shrink: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.lang-switch:hover { border-color: var(--gold-deep); box-shadow: 2px 2px 0 rgba(90, 64, 16, .4); }
.lang-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 20px;
  border-radius: 0; background: rgba(183,132,42,.18);
  box-shadow: inset 0 0 0 1px var(--gold-ink);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.lang-switch.is-en .lang-switch__knob { transform: translateX(26px); }
.lang-switch__flag {
  position: relative; z-index: 1; width: 24px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  filter: saturate(.25) opacity(.45);
  transition: filter .28s ease, transform .28s ease;
}
.lang-switch__flag svg {
  display: block; border-radius: 2px; box-shadow: 0 0 0 .5px rgba(0,0,0,.18);
}
/* Seul le drapeau actif est en couleur : l'autre est la destination, pas l'état.
   Ciblage par classe explicite, PAS :nth-of-type — la poignée est un <span>
   elle aussi, elle décalait le compte et inversait les deux états. */
.lang-switch.is-fr .lang-switch__flag--fr,
.lang-switch.is-en .lang-switch__flag--en {
  filter: none; transform: scale(1.06);
}
.lang-switch:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .lang-switch__knob, .lang-switch__flag { transition: none; }
}

/* ── boutique (Volts sink) ───────────────────────────────────────────────── */
.volt-vault {
  min-width: 210px; padding: 16px 20px; text-align: right;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
  border-color: rgba(183,132,42,.45);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(231,196,118,.28), transparent 55%),
    var(--surface);
}
.volt-vault__amount { display: flex; align-items: baseline; gap: 7px; }
.volt-vault__amount b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.volt-vault__bolt { font-size: 20px; color: var(--gold-ink); }
.volt-vault__hint { font-size: 9.5px; color: var(--text-muted); }
a.volt-vault__hint { color: var(--gold-ink); text-decoration: none; }

.shop-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap; margin: 4px 0 18px;
}
.shop-tabs { display: flex; gap: 7px; margin: 0; flex-wrap: wrap; flex: 1; }
.shop-affiliate { padding: 10px 12px; flex: 0 1 320px; }
.shop-affiliate__on {
  font-family: var(--font-wordmark); font-size: 11px;
  letter-spacing: .04em; color: var(--text-muted); margin: 8px 0 0;
}

.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px;
}
.shop-card {
  position: relative; padding: 20px 14px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
  /* Entrée en cascade : la grille se REMPLIT au lieu d'apparaître d'un bloc.
     --i vient du x-for ; on plafonne le retard pour que la fin de grille
     n'attende pas une seconde. */
  animation: shop-card-in .38s cubic-bezier(.22, 1, .36, 1) backwards;
  animation-delay: calc(min(var(--i, 0) * 35ms, 420ms));
}
.shop-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(90, 64, 16, .5);
}
.shop-card:hover .shop-card__emoji,
.shop-card:hover .shop-card__seal-wrap { transform: scale(1.06); }
.shop-card__emoji, .shop-card__seal-wrap { transition: transform .22s ease; }

@keyframes shop-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Achat : la carte encaisse le coup, un halo doré balaie l'article. */
.shop-card.just-bought { animation: shop-buy-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
.shop-card.just-bought::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(231,196,118,.75) 50%, transparent 70%);
  animation: shop-buy-sweep .85s ease-out;
}
@keyframes shop-buy-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.07); box-shadow: 0 0 28px 6px rgba(201,162,39,.55); }
  100% { transform: scale(1); }
}
@keyframes shop-buy-sweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

/* Le coffre encaisse la dépense pendant que le compteur descend. */
.volt-vault.is-spending .volt-vault__amount b {
  animation: vault-spend .5s ease-out;
  color: var(--gold-deep);
}
@keyframes vault-spend {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card, .shop-card.just-bought, .shop-card.just-bought::after,
  .volt-vault.is-spending .volt-vault__amount b { animation: none; }
  .shop-card:hover { transform: none; }
  .shop-card:hover .shop-card__emoji,
  .shop-card:hover .shop-card__seal-wrap { transform: none; }
}
.shop-card__rarity {
  position: absolute; top: 0; left: 0; right: 0; padding: 3px 0;
  font-size: 8.5px; letter-spacing: .18em; font-weight: 700;
}
.shop-card__emoji {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 42px; line-height: 1; margin-top: 18px;
  color: var(--gold-ink); letter-spacing: .04em;
}
.shop-card__seal-wrap {
  display: block;
  width: 112px; height: 112px; margin: 18px auto 4px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  isolation: isolate;
  box-shadow: 0 0 0 1.5px var(--gold-ink), 0 3px 8px rgba(90, 64, 16, .18);
}
.shop-card__seal {
  /* Zoom into the coin without transform — transform escapes overflow+radius. */
  display: block; width: 128%; height: 128%; max-width: none;
  margin: -14% 0 0 -14%;
  object-fit: cover; object-position: center;
  border-radius: 50%;
}
.shop-card__name { font-family: var(--font-wordmark); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.shop-card__kind { font-size: 9px; }
.shop-card__foot {
  margin-top: auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.shop-card__preview-slot {
  min-height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.shop-card__buy,
.shop-card__equipped { width: 100%; }
.shop-card__buy { padding: 10px 0; font-size: 13px; }
.shop-card__owned { cursor: default; }
.shop-card__equipped {
  padding: 10px 0; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--gold-ink); border-radius: 0; background: rgba(183,132,42,.12);
  color: var(--gold-deep); cursor: pointer;
  font-family: var(--font-wordmark); letter-spacing: .08em; text-transform: uppercase;
}
/* rarity tiers: the frame IS the reward */
.shop-card.is-common    .shop-card__rarity { background: rgba(58,44,16,.08); color: var(--text-muted); }
.shop-card.is-rare      .shop-card__rarity { background: rgba(183,132,42,.12); color: var(--gold-deep); }
.shop-card.is-rare      { border-color: rgba(183,132,42,.4); }
.shop-card.is-epic      .shop-card__rarity { background: rgba(138,97,22,.16); color: var(--gold-deep); }
.shop-card.is-epic      { border-color: rgba(138,97,22,.5); }
.shop-card.is-legendary .shop-card__rarity {
  background: linear-gradient(90deg, var(--gold-light), var(--gold)); color: var(--on-gold);
}
.shop-card.is-legendary {
  border-color: var(--gold-ink);
  box-shadow: 4px 4px 0 rgba(90, 64, 16, .55);
}
.shop-card.is-legendary .shop-card__emoji,
.shop-card.is-legendary .shop-card__seal-wrap { animation: shop-mark-pulse 3.2s ease-in-out infinite; }
@keyframes shop-mark-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 16px rgba(183,132,42,.5); }
}
/* Un légendaire doit accrocher l'œil même immobile : lueur qui balaie la carte
   toutes les 5 s (::before — ::after est pris par l'animation d'achat). */
.shop-card.is-legendary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 38%, rgba(231,196,118,.34) 50%, transparent 62%);
  animation: shop-legendary-shine 5s ease-in-out infinite;
}
@keyframes shop-legendary-shine {
  0%, 62%  { transform: translateX(-120%); }
  86%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card.is-legendary::before,
  .shop-card.is-legendary .shop-card__emoji,
  .shop-card.is-legendary .shop-card__seal-wrap { animation: none; }
}

/* podium volts line */
.podium-volts {
  color: var(--gold-deep); font-size: 13px; font-weight: 700; margin: 6px 0 0;
}
.podium-volts__link { color: var(--accent); font-size: 10.5px; text-decoration: none; margin-left: 6px; }

/* podium: guest conversion hint (the strongest signup moment in the game) */
.podium-guest-hint {
  margin: 12px 0 0; padding: 8px 12px; font-size: 11px; line-height: 1.5;
  border: 1px dashed rgba(183,132,42,.5); border-radius: 5px;
  background: rgba(183,132,42,.07); color: var(--text-2);
}
.podium-guest-hint a { color: var(--accent); font-weight: 700; }

.podium-recap {
  margin: 12px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.4;
}
.podium-recap-tip {
  margin: 6px 0 0; font-size: 12px; color: var(--gold-deep); line-height: 1.4;
}

.convert-chip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0; padding: 7px 12px; font-size: 11px; line-height: 1.4;
  border-bottom: 1px solid var(--border); background: rgba(183,132,42,.08);
  color: var(--text-2);
}
.convert-chip a { color: var(--accent); font-weight: 700; }
.convert-chip__x {
  margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--text-muted);
}
.convert-chip--lobby {
  margin-top: 14px; border: 1px dashed rgba(183,132,42,.45); border-radius: 5px;
  justify-content: center;
}
.sell-hint { font-size: 10.5px; color: var(--text-muted); margin: 6px 0 0; text-align: center; }
.coach-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(12,10,8,.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 24px;
}
.coach-card {
  max-width: 420px; width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-gold);
}
.coach-disable {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12px; color: var(--text-muted); cursor: pointer; user-select: none;
}
.home-continue { padding: 16px 20px; margin: 18px 0; }
.home-continue__row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  text-decoration: none; color: inherit; padding: 8px 0; border-top: 1px solid var(--border-soft);
}
.home-continue__row:first-of-type { border-top: 0; }
.shop-card__bundle { font-size: 10px; color: var(--text-muted); line-height: 1.35; }

/* leaderboard avatar (equipped cosmetic) */
.lb-avatar { font-size: 13px; }

/* ── défi du jour ────────────────────────────────────────────────────────── */
.daily-card { padding: 20px; max-width: none; }
.daily-card__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.daily-card__icon {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 38px; line-height: 1; color: var(--gold-ink);
}
.daily-card__label { font-family: var(--font-wordmark); font-weight: 700; font-size: 21px; letter-spacing: .04em; }
.daily-card__desc { color: var(--text-2); font-size: 13px; }
.daily-card__meta {
  display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-2);
  padding: 9px 12px; background: var(--surface-4); border-radius: 5px; margin-bottom: 14px;
}
.daily-done {
  padding: 11px 13px; border: 1px solid rgba(14,157,107,.35); border-radius: 5px;
  background: rgba(14,157,107,.08); color: var(--up); font-size: 12px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.daily-done__next { color: var(--text-muted); }
.daily-next { margin-top: 14px; font-size: 11.5px; color: var(--text-muted); }
.daily-board { padding: 12px; max-height: 480px; overflow-y: auto; }
.daily-board__empty { color: var(--text-muted); font-size: 12px; text-align: center; padding: 18px 6px; }

/* ── social hub (friends + groups merged) ────────────────────────────────── */
.auth-gate { padding: 30px; max-width: 420px; }
.social-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.social-col__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.social-col__title { font-family: var(--font-wordmark); font-weight: 700; font-size: 21px; margin: 0; letter-spacing: .06em; }
.social-col__count {
  font-size: 11px; font-weight: 700; color: var(--gold-deep);
  background: rgba(183,132,42,.12); border-radius: 0; padding: 2px 9px;
}
.social-add { display: flex; gap: 8px; margin-bottom: 12px; }
.social-add .input { flex: 1; width: auto; height: 42px; }
.social-block { margin-bottom: 16px; }
.social-list { padding: 12px; }
.social-empty { color: var(--text-muted); font-size: 12px; line-height: 1.7; padding: 10px 6px; }
.social-group-row { text-decoration: none; color: inherit; }
.social-group-row:hover { background: var(--surface-3); }
.social-group-row__code { font-size: 11px; color: var(--text-muted); }
.social-group-row__go { color: var(--gold-deep); font-weight: 700; }

/* ── home: daily challenge strip ─────────────────────────────────────────── */
[x-cloak] { display: none !important; }
.home-daily {
  display: flex; align-items: center; gap: 18px;
  margin-top: 44px; padding: 18px 22px;
  border-color: rgba(183,132,42,.4);
  background:
    radial-gradient(90% 160% at 0% 50%, rgba(231,196,118,.22), transparent 55%),
    var(--surface);
}
.home-daily__icon {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--gold-ink);
}
.home-daily__txt { flex: 1; min-width: 0; }
.home-daily__label { font-family: var(--font-wordmark); font-weight: 700; font-size: 19px; letter-spacing: .05em; }
.home-daily__desc { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
.home-daily__go { white-space: nowrap; }
@media (max-width: 640px) {
  .home-daily { flex-wrap: wrap; }
  .home-daily__go { width: 100%; text-align: center; }
}

/* ── join screen: sell the arena before asking for a name ────────────────── */
.join-screen { padding: 34px 32px; max-width: 460px; margin: 34px auto; }
.join-screen__go {
  position: relative; z-index: 1;
  width: 100%; min-height: 56px; height: auto; margin-top: 14px;
  padding: 14px 16px; text-align: center;
  white-space: normal; line-height: 1.25;
}
.join-info {
  margin: 4px 0 20px; padding: 13px 15px; border: 1px solid var(--border-soft);
  border-radius: 6px; background: var(--surface-2);
}
.join-info__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.join-info__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.join-chip {
  font-size: 10px; padding: 4px 9px; border: 1.5px solid var(--gold-ink);
  border-radius: 0; background: var(--plate); color: var(--gold-deep); white-space: nowrap;
  font-family: var(--font-wordmark); letter-spacing: .06em; text-transform: uppercase;
}
.join-info__players { margin-top: 9px; font-size: 11px; color: var(--text-2); }
.join-info__players b { color: var(--text); }
.join-info__status { margin-top: 9px; font-size: 11px; font-weight: 700; color: var(--up); }
.join-info__status--over { color: var(--text-muted); }
@media (max-width: 520px) {
  .join-screen { padding: 24px 18px; margin: 12px auto; }
}

/* ── salon : naos + ailes, comme un temple ──────────────────────────────── */
body:has(.lobby-temple) .container {
  max-width: 1240px;
  padding-top: 18px;
  padding-bottom: 24px;
}
.lobby-temple {
  display: grid;
  grid-template-columns: minmax(200px, .9fr) minmax(300px, 1.35fr) minmax(200px, .9fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100dvh - 150px);
}
.lobby-wing {
  padding: 22px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
  background-image:
    linear-gradient(90deg, rgba(156,112,31,.16) 1px, transparent 1px),
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(156,112,31,.16) 1px);
}
.lobby-roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lobby-roster__name {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 17px; letter-spacing: .06em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(156,112,31,.22);
}
.lobby-wing__hint { margin-top: auto; font-size: 12px; color: var(--text-muted); }
.lobby-rules { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lobby-naos {
  padding: 28px 28px 22px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.live-pill--lobby {
  border-color: rgba(183,132,42,.45); background: rgba(183,132,42,.1);
  color: var(--gold-deep); border-radius: 0;
  font-family: var(--font-wordmark); letter-spacing: .12em;
}
.lobby-naos__title { margin: 12px 0 4px; }
.lobby-naos__wait { color: var(--text-2); margin: 0 0 18px; }
.lobby-code {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: .2em;
  color: var(--gold-ink); margin: 0 0 14px;
}
.lobby-qr {
  width: 168px; height: 168px;
  border: 1.5px solid var(--gold-ink); background: #fff; margin-bottom: 14px;
}
.lobby-link {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; margin-bottom: 18px;
  border: 1.5px solid var(--gold-ink); background: #f3ead8;
}
.lobby-link .mono { flex: 1; font-size: 11px; color: var(--gold-deep); text-align: left; overflow: hidden; text-overflow: ellipsis; }
.lobby-link__copy {
  cursor: pointer; font-size: 11px; background: none; border: none;
  font-family: var(--font-wordmark); letter-spacing: .08em;
  color: var(--gold-ink); text-transform: uppercase;
}
.lobby-naos__go { width: 100%; max-width: 440px; }
.lobby-naos__start { width: 100%; height: 52px; }
.lobby-naos__cast {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: 100%; margin-top: 10px;
}
.lobby-naos__cast .cta { text-decoration: none; text-align: center; padding: 12px 10px; }
.lobby-naos .disclaimer { margin-top: 14px; }
@media (max-width: 900px) {
  .lobby-temple { grid-template-columns: 1fr; min-height: 0; }
  .lobby-wing { min-height: 0; }
  .lobby-rules { flex-direction: row; flex-wrap: wrap; }
}

/* ── profil : identité + reprises, puis desk 2 colonnes ─────────────────── */
.profile { display: flex; flex-direction: column; gap: 16px; }
.profile-id {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
  padding: 22px 22px 18px;
}
.profile-id__seal {
  display: block; width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 2px var(--gold-ink), 0 4px 14px rgba(90, 64, 16, .28);
}
.profile-id__seal-img {
  display: block; width: 128%; height: 128%; max-width: none;
  margin: -14% 0 0 -14%;
  object-fit: cover; object-position: center;
}
.profile-id__seal--glyph {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: 40px; color: var(--gold-ink);
  background: var(--plate);
}
.profile-id__main { min-width: 220px; flex: 1; }
.profile-id__row {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.profile-id__who { flex-shrink: 0; }
.profile-id__name { margin: 0; }
.profile-id__lvl { color: var(--text-muted); margin: 0 0 6px; font-size: 12px; }
.profile-id__xp { flex: 1; min-width: 160px; max-width: 280px; }
.profile-id__xp-note { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.profile-id__meta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.profile-tier { text-decoration: none; text-align: center; }
.profile-tier__badge {
  width: 44px; height: 44px; margin: 0 auto; font-size: 20px; border-radius: 0;
  font-family: var(--font-wordmark); font-weight: 700; color: #f0ebe1;
}
.profile-tier__name {
  font-family: var(--font-wordmark); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; margin-top: 5px;
}
.profile-tier__pts { font-size: 9.5px; color: var(--text-muted); }

.profile-section__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-section__title {
  font-family: var(--font-wordmark); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; margin: 0; color: var(--gold-ink);
}
.profile-section__note { font-size: 11px; color: var(--text-muted); }
.profile-streak {
  font-family: var(--font-wordmark); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; color: var(--gold-deep);
}

.profile-resume__row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.profile-resume__card {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px;
}
.profile-resume__info { flex: 1; min-width: 140px; }
.profile-resume__name { font-family: var(--font-wordmark); font-weight: 700; letter-spacing: .04em; }
.profile-resume__meta { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
.profile-resume__card .cta { text-decoration: none; padding: 9px 16px; }
.profile-resume__empty {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 12px 16px;
}
.profile-resume__empty p { margin: 0; color: var(--text-2); }

.profile-desk {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px 28px; align-items: start;
}
.profile-block { margin: 0; }
.profile-block + .profile-block { margin-top: 18px; }

.profile-quests { display: flex; flex-direction: column; gap: 8px; }
.profile-quest {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
}
.profile-quest__mark { font-size: 22px; line-height: 1; width: 1.2em; text-align: center; }
.profile-quest__body { flex: 1; min-width: 0; }
.profile-quest__label { font-weight: 600; font-size: 13px; }
.profile-quest__prog { font-size: 10px; color: var(--text-muted); }
.profile-quest__cta { padding: 7px 14px; }

.profile-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.profile-stat-card { padding: 12px 13px; grid-column: span 2; }
.profile-stat-card__val { font-family: var(--font-mono); font-weight: 700; font-size: 20px; margin-top: 3px; }
.profile-stat-card__empty { color: var(--text-muted); margin: 3px 0 0; }

.profile-creator { padding: 14px 16px; }
.profile-creator__sub { font-size: 12px; color: var(--text-2); margin: 6px 0 10px; line-height: 1.45; }
.profile-creator__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.profile-creator__row .input { text-transform: uppercase; max-width: 160px; }
.profile-creator__on {
  font-family: var(--font-wordmark); font-size: 11px;
  color: var(--gold-deep); margin: 10px 0 0; letter-spacing: .03em;
}
.profile-creator__pro { margin-top: 12px; }
.profile-creator__pro .cta { text-decoration: none; }
.profile-creator__heat { font-size: 11px; margin: 10px 0 0; color: var(--text-2); }

.profile-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.profile-badge, .profile-story-chip {
  padding: 6px 10px; border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate); font-size: 11px; font-weight: 600;
  font-family: var(--font-wordmark); letter-spacing: .04em;
}
.profile-story-chip.is-done { color: var(--gold-deep); background: rgba(183,132,42,.14); }
.profile-story-chip.is-now { border-color: var(--gold-ink); }
.profile-story-chip.is-locked { opacity: .45; }
.profile-muted { color: var(--text-muted); font-size: 12px; margin: 0; }
.profile-history { padding: 8px 10px; }
.profile-history__name { min-width: 0; font-weight: 600; }

@media (max-width: 900px) {
  .profile-desk { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profile-id { align-items: flex-start; gap: 14px; }
  .profile-id__seal { width: 72px; height: 72px; }
  .profile-id__meta {
    width: 100%; justify-content: flex-start; gap: 20px;
    padding-top: 12px; border-top: 1px solid var(--border-soft);
  }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-stats .profile-stat-card { grid-column: auto; }
  .profile-stat-card__val { font-size: 18px; }
}

/* ── story: US market closed state (level 4 fairness) ────────────────────── */
.story-market-note {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 9px 12px; border: 1px solid rgba(224,138,60,.4); border-radius: 5px;
  background: rgba(224,138,60,.09); color: var(--orange);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
}

@media (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  /* two trading cards per row: denser, more "collection album" */
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-card__emoji { font-size: 36px; }
  .shop-head { gap: 14px; }
  .volt-vault { min-width: 0; width: 100%; align-items: center; text-align: center; }
}

/* ── dock mobile (curseur + achat/vente sous le pouce) ───────────────────── */
.dock {
  display: none;  /* mobile only — see the 960px media query */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  width: 100%; max-width: 100%;
  box-sizing: border-box;
  flex-direction: column; gap: 8px;
  padding: 9px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px -12px rgba(20, 15, 8, .35);
}
.dock__size { display: flex; align-items: center; gap: 10px; }
.dock__size .size-slider { flex: 1; }
.dock__amount {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2;
  border: 1px solid var(--border); border-radius: 5px; background: var(--surface-4);
  padding: 4px 9px; cursor: pointer; min-width: 82px;
}
.dock__amount span { font-size: 9px; color: var(--gold-deep); font-weight: 700; }
.dock__amount b { font-size: 11.5px; }
.dock__size.is-armed .dock__amount {
  border-color: rgba(183,132,42,.6); background: rgba(231,196,118,.25);
  animation: volt-pulse 1s infinite;
}
.dock__actions { display: flex; gap: 8px; min-width: 0; }
.dock__actions .exec-btn {
  padding: 13px 4px; font-size: 14px; min-width: 0; flex: 1 1 0;
}
.dock__confirm {
  margin: 0; text-align: center; font-size: 11px; font-weight: 700;
  color: var(--gold-deep); letter-spacing: .02em;
}
.dock.is-confirming .exec-btn.is-confirm-target {
  box-shadow: 0 0 0 2px var(--gold-ink), 0 0 16px 3px rgba(231,196,118,.75);
}
.dock__gear {
  display: flex; align-items: center; justify-content: center; min-width: 52px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-4);
  cursor: pointer; font-size: 16px;
}
.desk-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 15, 8, .45);
  animation: volt-fadein .2s ease-out;
}
@media (max-width: 960px) {
  .desk-backdrop { display: block; }
}

/* ── Cinematic FX (canvas engine in fx.js) ──────────────────────────────── */
.volt-fx {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: none; overflow: hidden;
  width: 100%; height: 100dvh; height: 100svh;
  background: rgba(8, 6, 4, .78);
}
.volt-fx.is-on { display: block; }
.volt-fx.is-local {
  position: absolute; inset: 0; z-index: 6;
  width: 100%; height: 100%;
  background: rgba(8, 6, 4, .55);
}
.volt-fx__canvas { display: block; width: 100%; height: 100%; }
.volt-fx__hud {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.volt-fx__hud.is-in { animation: volt-fx-stamp 2.8s cubic-bezier(.18, 1.12, .32, 1) forwards; }
.volt-fx__who {
  font-family: var(--font-wordmark); font-size: clamp(13px, 2.2vw, 20px); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #2a1d08; background: var(--plate);
  padding: 5px 14px; margin-bottom: 10px;
  border: 1.5px solid var(--gold-ink);
  box-shadow: 3px 3px 0 rgba(90, 64, 16, .45);
}
.volt-fx__stamp {
  font-family: var(--font-wordmark); font-weight: 700;
  font-size: clamp(56px, 14vw, 140px); letter-spacing: .12em; color: var(--gold-deep);
  transform: rotate(-6deg);
  text-shadow: 0 0 28px rgba(231,196,118,.95), 0 6px 0 rgba(42,29,8,.28);
  -webkit-text-stroke: 2px rgba(42,29,8,.35);
}
@keyframes volt-fx-stamp {
  0% { opacity: 0; transform: scale(2.4); filter: blur(8px); }
  10% { opacity: 1; transform: scale(.92); filter: blur(0); }
  16% { transform: scale(1.04); }
  24% { transform: scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.06); }
}

.shop-card__preview {
  margin: 0; padding: 4px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  font-family: var(--font-wordmark);
  border: 1px dashed var(--gold-ink); border-radius: 0;
  background: none; color: var(--gold-deep);
  transition: border-color .15s ease, color .15s ease;
}
.shop-card__preview:hover,
.shop-card__preview.is-on { border-color: var(--gold); color: var(--gold-deep); background: rgba(183,132,42,.1); }
.theme-preview-bar {
  position: fixed; z-index: 80; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 9px 12px 9px 16px;
  background: var(--plate);
  border: 1.5px solid var(--gold-ink);
  box-shadow: 4px 4px 0 rgba(90, 64, 16, .45);
  font-family: var(--font-wordmark); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep);
  white-space: nowrap;
}
.theme-preview-bar button {
  padding: 5px 10px; cursor: pointer;
  font-family: var(--font-wordmark); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid var(--gold-ink); background: transparent; color: var(--gold-ink);
}
.cockpit.is-shaking { animation: volt-quake .55s linear; }
@keyframes volt-quake {
  0%, 100% { transform: none; }
  10% { transform: translate(-7px, 3px) rotate(-.4deg); }
  25% { transform: translate(6px, -4px) rotate(.4deg); }
  40% { transform: translate(-5px, -3px) rotate(-.3deg); }
  55% { transform: translate(5px, 4px) rotate(.3deg); }
  70% { transform: translate(-3px, 2px); }
  85% { transform: translate(2px, -2px); }
}

/* ── TV / théâtre : readable from the couch ──────────────────────────────── */
body:has(.tv) {
  height: 100dvh; display: flex; flex-direction: column; overflow: auto;
}
body:has(.tv) .masthead { display: none; }
body:has(.tv) .container {
  flex: 1; min-height: 0; max-width: none; width: 100%;
  padding: 18px 28px 20px; display: flex; flex-direction: column;
}
body:has(.tv) .container > [x-data],
.tv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-shrink: 0; }
.tv-head .label {
  font-size: 13px; letter-spacing: .16em; color: var(--gold-ink);
}
.tv-clock {
  font-family: var(--font-wordmark); font-size: clamp(42px, 7vw, 72px);
  font-weight: 700; line-height: 1; letter-spacing: .06em; color: var(--gold-ink);
}
.tv-clock.is-low { color: var(--down); animation: volt-pulse .9s infinite; }
.tv-pill--lobby { border-color: rgba(183,132,42,.4); background: rgba(183,132,42,.1); color: var(--gold-deep); }
.tv-pill--lobby .live-dot { display: none; }
.tv-pill--ended { border-color: var(--border); background: var(--surface-4); color: var(--text-muted); }

.tv-lobby {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.2fr) minmax(220px, .85fr);
  gap: 22px; align-items: stretch; margin: 8px 0 0;
}
.tv-qr-card { padding: 36px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tv-qr { width: min(38vw, 380px); height: auto; border: 1.5px solid var(--gold-ink); display: block; margin: 0 auto; }
.tv-code {
  font-family: var(--font-wordmark); font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700; letter-spacing: .2em; margin-top: 16px; color: var(--gold-ink);
}
.tv-code--sm { font-size: 22px; font-weight: 700; letter-spacing: .12em; font-family: var(--font-wordmark); color: var(--gold-ink); }
.tv-join-hint {
  font-family: var(--font-wordmark); color: var(--text-2);
  font-size: 16px; letter-spacing: .06em; margin: 10px 0 0;
}
.tv-lobby__name { font-size: clamp(20px, 2.4vw, 28px); }
.tv-lobby__wing { min-height: 0; }
.tv-players { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tv-player-chip { font-size: 14px; padding: 8px 14px; animation: volt-pop .35s cubic-bezier(.2,1.4,.4,1); }
.tv-wait { color: var(--text-muted); font-size: 12px; }

.tv-grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1.65fr .9fr; gap: 18px; text-align: left;
}
.tv-panel { padding: 18px; }
.tv-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.tv-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.tv-chart-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* graphique TV : suit l'actif du dernier trade, entrées nominatives dessus */
.tv-chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tv-chart-sym, .tv-chart-price { font-size: 22px; font-weight: 700; font-family: var(--font-wordmark); letter-spacing: .04em; }
.tv-chart {
  flex: 1; min-height: 280px; height: auto;
  background: var(--surface-4); border: 1.5px solid var(--gold-ink);
  border-radius: 0; overflow: hidden;
}
.tv-chart-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tv-pos-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid;
}
.tv-pos-chip.is-pos { color: var(--up); border-color: rgba(14,157,107,.4); background: rgba(14,157,107,.08); }
.tv-pos-chip.is-neg { color: var(--down); border-color: rgba(220,74,79,.4); background: rgba(220,74,79,.08); }
.tv-feed { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.tv-feed-item { font-size: 14px; animation: volt-slidein .35s ease-out; }
.tv-feed-item b { color: var(--text); }
.tv-feed-price { color: var(--text-muted); }
.tv-late-qr { display: flex; align-items: center; gap: 14px; }
.tv-late-qr img { border-radius: 6px; border: 1px solid var(--border); }

/* bande de cotations live sur l'écran TV : contenue (pas full-bleed comme la home) */
.tv-tape {
  margin: 0 0 14px; border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate); flex-shrink: 0;
}
.tv-tape .tape__item { font-size: 13px; }
.tv-feed-allin { color: var(--gold-deep); font-weight: 700; }

/* classement animé rendu par la TV : barre de perf + flèche de progression.
   Tout doit se lire à 3 mètres. */
.tvb { display: flex; flex-direction: column; gap: 8px; }
.tvb-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1.5px solid var(--gold-ink); border-radius: 0;
  background: var(--plate); overflow: hidden;
  transition: transform .35s ease;
}
.tvb-row--lead {
  border-color: rgba(183,132,42,.55);
  box-shadow: 0 0 0 2px rgba(231,196,118,.35);
}
.tvb-bar {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 0;
  transition: width .6s cubic-bezier(.2, .9, .3, 1); pointer-events: none;
}
.tvb-bar.is-pos { background: linear-gradient(90deg, rgba(14,157,107,.22), rgba(14,157,107,.05)); }
.tvb-bar.is-neg { background: linear-gradient(90deg, rgba(220,74,79,.22), rgba(220,74,79,.05)); }
.tvb-rank {
  position: relative; width: 30px; height: 30px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 15px;
  background: rgba(58,44,16,.08); border-radius: 5px; flex-shrink: 0;
}
.tvb-row--lead .tvb-rank {
  background: linear-gradient(150deg, var(--gold-light), var(--gold)); color: var(--on-gold);
}
.tvb-move { position: relative; width: 34px; font-size: 13px; font-weight: 700; text-align: center; }
.tvb-name { position: relative; flex: 1; font-weight: 700; font-size: 20px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-wordmark); letter-spacing: .04em; }
.tvb-pct { position: relative; font-weight: 700; font-size: 19px; }

/* bandeau « moment » : prise de tête, gros encaissement — plein centre haut */
.tv-moment {
  position: fixed; top: 12vh; left: 50%; transform: translateX(-50%);
  z-index: 45; display: flex; align-items: center; gap: 14px;
  padding: 16px 30px; border-radius: 12px;
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  color: var(--on-gold); box-shadow: var(--shadow-gold), 0 24px 70px -20px rgba(40,30,12,.55);
  animation: tv-moment-in 3.4s cubic-bezier(.2, 1.3, .4, 1) both;
  white-space: nowrap; max-width: 92vw;
}
.tv-moment__icon { font-size: clamp(26px, 4vw, 42px); line-height: 1; }
.tv-moment__text {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(19px, 3.2vw, 34px); overflow: hidden; text-overflow: ellipsis;
}
@keyframes tv-moment-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(.85); }
  8% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); }
  12% { transform: translateX(-50%) scale(1); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.96); }
}
/* dernière minute : la pièce entière passe sous tension */
.tv-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.tv-vignette { animation: tv-vignette 1.1s ease-in-out infinite; }
@keyframes tv-vignette {
  0%, 100% { box-shadow: inset 0 0 60px 0 rgba(220,74,79,.12); }
  50% { box-shadow: inset 0 0 140px 16px rgba(220,74,79,.38); }
}
/* secousse générique (cockpit OU écran TV) pendant un blast */
.is-quaking { animation: volt-quake .55s linear; }

.tv-ended { text-align: center; margin-top: 20px; }
.tv-winner { font-family: var(--font-wordmark); font-weight: 700; font-size: clamp(24px, 4vw, 40px); margin: 10px 0 0; letter-spacing: .06em; }
.tv-ended .podium-bar { width: 120px; }
.tv-ended-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 420px; margin: 22px auto 0;
}
.tv-ended-actions .cta { width: 100%; }
.tv-ended-hint { color: var(--text-2); font-size: 14px; line-height: 1.45; margin: 0; }
.tv-ended-hint a { color: var(--gold-deep); font-weight: 700; }

@media (max-width: 760px) {
  body:has(.tv) .container { padding: 12px 12px 14px; }
  .tv-lobby { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .tv-players { justify-content: center; }
  .tv-grid { grid-template-columns: 1fr; }
  .lobby-rules { align-items: center; }
}

/* ── responsive: phone-first party game (Sprint 7.6) ─────────────────────── */
/* Masthead compact dès 1100px : en FR, « Déconnexion » + un gros solde
   Kairos débordaient la barre 1180 et recouvraient Profil. */
@media (max-width: 1100px) {
  .nav { gap: 8px; padding: 8px 10px; max-width: 100%; }
  .brand-mark { height: 28px; }
  .nav__wordmark { font-size: 20px; line-height: 28px; height: 28px; letter-spacing: .1em; }
  .nav__link--accent { padding: 5px 8px; letter-spacing: .06em; }
  .nav__user { display: none; }
  .nav__sep { width: auto; height: 1px; margin: 6px 2px; }
  .nav__side { border-left: none; padding-left: 0; }
  .nav__logout { display: none; }  /* déplacée en bas du tiroir */
  /* le blur créerait un containing block qui piégerait le tiroir fixed
     dans la barre : fond opaque sur mobile */
  .masthead { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 34px; flex-shrink: 0; cursor: pointer;
    border: 1.5px solid var(--gold-ink); border-radius: 0;
    background: var(--plate); color: var(--gold-ink); font-size: 15px; line-height: 1;
  }
  .nav__backdrop {
    display: block; position: fixed; inset: 0; z-index: 58;
    background: rgba(20, 15, 8, .45); animation: volt-fadein .2s ease-out;
  }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(76vw, 300px); flex: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: -30px 0 70px -30px rgba(20, 15, 8, .55);
    transform: translateX(105%); transition: transform .25s cubic-bezier(.2, .9, .3, 1);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: none; }
  .nav__links .nav__link { font-size: 13px; padding: 12px 13px; border-radius: 0; }
  .nav__drawer-logout {
    display: block; margin-top: auto; text-align: center;
    color: var(--gold-ink); border: 1.5px solid var(--gold-ink); background: var(--plate);
  }
  .nav__volts { padding: 3px 9px; font-size: 11px; }
}

@media (max-width: 760px) {
  .container { padding: 18px 14px 48px; }
  body::after { inset: 6px; }

  /* Home hero tweaks. */
  .tape { margin-bottom: 24px; }
  .stat-strip__item { min-width: 45%; padding: 12px 14px; }
  .stat-strip__item:nth-child(2n) { border-right: none; }
  .stat-strip__item b { font-size: 17px; }

  /* Podium a touch narrower. */
  .podium-bar { width: 74px; }
  .hero-card { padding: 24px 20px; margin: 0 12px; }
  .podium-card {
    grid-template-columns: 1fr;
    width: min(440px, calc(100vw - 24px));
    max-height: min(92dvh, 100%);
    margin: 0;
    padding: 0;
    overflow-y: auto;
  }
  .podium-card__main,
  .podium-card .podium-herald { overflow: visible; }
  .podium-card__main { padding: 22px 18px 16px; }
  .podium-card .podium-herald {
    border-left: none;
    border-top: 1.5px solid var(--gold-ink);
  }
  .podium-card .herald { padding: 16px 16px 18px; }
}

/* ── cockpit compact (tablette + mobile) : les panneaux de droite deviennent
   des bottom sheets, le dock apparaît, le graphique garde tout l'écran ────── */
@media (max-width: 960px) {
  body:has(.cockpit) .container { padding: 0 8px 0; }
  .cockpit-body { grid-template-columns: minmax(0, 1fr); }
  .cockpit-main { border-right: none; padding: 8px 10px 10px; min-width: 0; }

  /* HUD compact : valeurs seules, plus petites — le chip #1 + % + « à rattraper »
     débordait et élargissait toute la page (scroll horizontal, buy/sell coupés). */
  .cockpit-top { padding: 7px 8px; gap: 6px; overflow: hidden; }
  .cockpit-top__left .live-pill { display: none; }
  .cockpit-top__left .brand-mark { display: none; }
  .arcade-pill__txt { display: none; }
  .cockpit-top__stats { gap: 8px; }
  .hud-stat--value { display: none; }
  .race-chip { max-width: none; padding: 5px 8px; font-size: 11px; gap: 4px; }
  .race-chip__gap, .race-chip__lead { display: none; }
  .hud-stat__value { font-size: 13px; }
  .quote-row__price { font-size: 22px; }
  .quote-row__name { display: none; }
  .tf-btn { padding: 5px 8px; font-size: 10px; }

  /* place pour le dock fixe (+ ligne de confirmation ALL-IN) */
  .cockpit-main { padding-bottom: 156px; }
  .feedback--toast { bottom: 148px; }

  /* rails horizontaux (watchlist, positions) : la carte du bord ne doit pas
     paraître "coupée" — bord à bord + fondu qui indique qu'on peut glisser */
  .symbol-rail, .pos-rail {
    margin-left: -10px; margin-right: -10px;
    padding-left: 10px; padding-right: 10px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  }

  /* la colonne droite n'existe plus : ses deux panneaux deviennent des sheets */
  .cockpit-side { display: contents; }
  .order-panel, .info-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    border-radius: 16px 16px 0 0; border-bottom: none;
    max-height: 80vh; overflow-y: auto;
    box-shadow: 0 -24px 60px -12px rgba(20, 15, 8, .45);
    transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .9, .3, 1);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .order-panel.is-open, .info-panel.is-open { transform: none; }
  .order-panel__close { display: inline-flex; align-items: center; justify-content: center; }
  .info-panel__handle { display: flex; }
  .info-panel { display: flex; }
  .info-pane { max-height: 46vh; }

  .dock { display: flex; }
}

@media (max-width: 640px) {
  /* HUD : le P&L tient sur une ligne — le % (déjà dans le rank-chip et le
     classement) est masqué, seul le montant $ reste */
  .hud-stat__pct { display: none; }
  .hud-stat--pnl { display: none; }
  .cockpit-top__left a.icon-btn[target="_blank"] { display: none; }
  .nav__wordmark { font-size: 17px; letter-spacing: .08em; }
  .nav__link--accent { font-size: 10px; padding: 4px 7px; }
  .pos-card { min-width: 200px; padding: 10px 12px 12px; }
  .pos-card__sub { flex-wrap: wrap; white-space: normal; gap: 6px; font-size: 11px; }
  .pos-prot, .pos-prot--add {
    font-size: 12px; padding: 8px 10px; min-height: 36px; min-width: 48px;
    border-radius: 0; line-height: 1;
  }
  .pos-card__close { width: 36px; height: 36px; font-size: 15px; }
  .size-slider { height: 14px; }
  .size-slider::-webkit-slider-thumb { width: 28px; height: 28px; }
  .size-slider::-moz-range-thumb { width: 28px; height: 28px; }
}

@media (max-width: 420px) {
  h1:not(.hero__title) { font-size: 30px !important; }
  .hud-stat__label { display: none; }
  .cockpit-top__stats { gap: 10px; }
  .pos-card { min-width: 144px; }
}

.race-chip { gap: 7px; max-width: min(52vw, 420px); }
.race-chip__pct { color: var(--text); }
.race-chip__gap { color: var(--gold-deep); font-weight: 600; }
.race-chip__lead { color: var(--text-muted); font-weight: 500; }
@media (max-width: 720px) {
  .race-chip__lead, .race-chip__gap { display: none; }
}

.lb-late {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border: 1px solid rgba(183,132,42,.45); border-radius: 99px;
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-deep); vertical-align: 1px;
}

.cockpit.is-finale .cockpit-top {
  border-color: rgba(220, 74, 79, .55);
  box-shadow: inset 0 0 0 1px rgba(231,196,118,.35);
}
.cockpit.is-finale .countdown-fill.is-low {
  box-shadow: 0 0 10px rgba(220, 74, 79, .55);
}
.tv.is-finale .tv-clock.is-low {
  text-shadow: 0 0 18px rgba(220, 74, 79, .45);
}

.pending-list { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.pending-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; margin-top: 6px; color: var(--gold-deep);
}
.pending-x {
  border: 0; background: transparent; cursor: pointer; color: var(--text-muted); font-size: 14px;
}

.podium-awards { margin-top: 10px; text-align: left; }
.podium-award { margin: 4px 0; color: var(--gold-deep); font-size: 12px; }
.podium-ghost { margin: 10px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.mutator-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rematch-votes { text-align: left; }

body:has(.obs) {
  background: transparent !important;
  height: 100dvh;
}
body:has(.obs) .masthead,
body:has(.obs) .container { background: transparent; }
body:has(.obs) .masthead { display: none; }
body:has(.obs) .container { max-width: none; padding: 18px; }

.obs {
  display: flex; flex-direction: column; gap: 14px; width: min(420px, 92vw);
  font-family: var(--font-display);
}
.obs-plate {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(240, 235, 225, .88);
  border: 1.5px solid rgba(183, 132, 42, .55);
  box-shadow: 0 18px 40px -22px rgba(40, 30, 12, .7);
  backdrop-filter: blur(8px);
}
.obs-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .18em; color: var(--gold-deep); font-weight: 800;
}
.obs-kicker .brand-mark { height: 22px; }
.obs-kicker .nav__wordmark { font-size: 26px; line-height: 22px; height: 22px; letter-spacing: .1em; }
.obs-clock { font-size: 42px; font-weight: 800; line-height: 1; }
.obs-clock.is-low { color: var(--down); }
.obs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-top: 1px solid rgba(183,132,42,.18);
}
.obs-row.is-lead .obs-name { color: var(--gold-deep); font-weight: 800; }
.obs-rank { width: 28px; }
.obs-name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.obs-pct { font-weight: 800; }
.obs-plate--join { flex-direction: row; align-items: center; gap: 14px; }
.obs-plate--join img { border-radius: 8px; background: #fff; }
.obs-code { font-size: 22px; letter-spacing: .12em; font-weight: 800; }
.obs-allin {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  color: var(--on-gold); font-weight: 800; font-size: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .cockpit.is-finale .countdown-fill.is-low,
  .tv.is-finale .tv-clock.is-low { animation: none; }
}
