/* Fawz «طريق النيون» — Fawz identity: navy → green, gold accents, Plex Arabic + El Messiri. */
@font-face { font-family: "Plex Arabic"; src: url(assets/fonts/plex-ar-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(assets/fonts/plex-ar-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(assets/fonts/plex-ar-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Messiri"; src: url(assets/fonts/ElMessiri.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0b1b3a;
  --navy: #0b1b3a;
  --navy-2: #13284f;
  --green: #0f7a5a;
  --gold: #d0a046;
  --gold-hi: #e2bb62;
  --gold-btn: linear-gradient(180deg, #ffe7a3 0%, #f0c25a 42%, #c88f2e 100%);
  --tx: #f5f1e6;
  --tx-2: rgba(245, 241, 230, 0.72);
  --glass: rgba(11, 27, 58, 0.62);
  --line: rgba(226, 187, 98, 0.35);
  --font: "Plex Arabic", "Cairo", system-ui, sans-serif;
  --display: "Messiri", "Plex Arabic", serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy); font-family: var(--font); color: var(--tx); -webkit-font-smoothing: antialiased; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
button, input, select { font: inherit; color: inherit; }
#app { position: fixed; inset: 0; }
#stage { display: block; width: 100%; height: 100%; touch-action: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- splash (static in index.html, driven by main.ts) ---------- */
#splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 18%, #164b5a 0%, var(--navy) 58%), var(--navy); transition: opacity .45s ease; }
#splash.splash--out { opacity: 0; pointer-events: none; }
.splash__inner { display: grid; justify-items: center; gap: 10px; width: min(320px, 80vw); text-align: center; }
.splash__logo { width: min(190px, 46vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); animation: splash-in .7s cubic-bezier(.2,.9,.3,1.2) both; }
.splash__name { margin: 8px 0 0; font-family: var(--display); font-size: 30px; color: var(--gold-hi); letter-spacing: .5px; }
.splash__bar { width: 100%; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 14px; box-shadow: inset 0 0 0 1px rgba(226,187,98,.25); }
.splash__bar span { display: block; height: 100%; width: 8%; border-radius: inherit; background: var(--gold-btn); transition: width .35s ease; animation: splash-pre 2.4s ease-out forwards; }
.splash__bar span[data-live] { animation: none; }
.splash__text { margin: 6px 0 0; font-size: 13px; color: var(--tx-2); min-height: 1.4em; }
.splash__foot { position: absolute; bottom: calc(18px + var(--safe-b)); font-size: 12px; color: var(--tx-2); }
.splash__foot b { color: var(--gold-hi); }
.splash__cta { display: inline-block; margin-top: 12px; padding: 12px 20px; border-radius: 14px; background: var(--gold-btn); color: var(--navy); font-weight: 700; text-decoration: none; }
@keyframes splash-in { from { transform: scale(.82) translateY(8px); opacity: 0; } }
@keyframes splash-pre { from { width: 4%; } to { width: 30%; } }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; pointer-events: none; }
.screen[hidden] { display: none; }
.screen--menu, .screen--lobby, .screen--finish, .screen--error { pointer-events: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(11,27,58,.78) 0%, rgba(11,27,58,.35) 38%, rgba(15,122,90,.55) 100%); }
.screen--finish { background: linear-gradient(180deg, rgba(11,27,58,.9) 0%, rgba(11,27,58,.8) 55%, rgba(15,60,70,.85) 100%); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 6px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 18px; color: var(--gold-hi); }
.brand img { width: 30px; height: 30px; }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; backdrop-filter: blur(6px); }
.iconbtn--ghost { visibility: hidden; }
.iconbtn--sm { width: 34px; height: 34px; border-radius: 10px; }
.iconbtn--glass { pointer-events: auto; }

.menu { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 0 16px calc(16px + var(--safe-b)); max-width: 520px; width: 100%; margin: 0 auto; }
.hero { text-align: center; margin-bottom: auto; padding-top: 4vh; }
.hero__title { margin: 0; font-family: var(--display); font-size: clamp(40px, 12vw, 58px); line-height: 1.1; color: #fff; text-shadow: 0 4px 0 rgba(11,27,58,.55), 0 0 30px rgba(226,187,98,.45); }
.hero__sub { margin: 6px auto 12px; max-width: 30ch; color: var(--tx); font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.me { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; }
.modes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mode { min-width: 0; width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-align: start; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(11,27,58,.78); backdrop-filter: blur(8px); cursor: pointer; transition: transform .12s ease; }
.mode:active { transform: scale(.98); }
.mode:disabled { opacity: .6; }
.mode--gold { background: var(--gold-btn); color: var(--navy); border-color: transparent; box-shadow: 0 6px 0 #8a5f1f, 0 12px 26px rgba(0,0,0,.3); }
.mode--private { cursor: default; }
.mode__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; }
.mode--gold .mode__icon { background: rgba(11,27,58,.12); }
.mode__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mode__text b { font-size: 18px; }
.mode__text small { font-size: 12.5px; opacity: .85; }
.private-row { display: flex; gap: 8px; width: 100%; min-width: 0; }
.private-row .btn { flex: none; padding-inline: 14px; }
.code-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.08); text-align: center; letter-spacing: 6px; font-weight: 700; font-family: "Plex Arabic", monospace; }
.code-input::placeholder { letter-spacing: 0; color: var(--tx-2); }
.howto { margin: 0; text-align: center; font-size: 12px; color: var(--tx-2); }

.btn { min-height: 48px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .1s ease; }
.btn:active { transform: translateY(2px); }
.btn--gold { background: var(--gold-btn); color: var(--navy); border-color: transparent; box-shadow: 0 4px 0 #8a5f1f; }
.btn--ghost { background: rgba(255,255,255,.08); }
.btn--danger { background: #c0392b; border-color: transparent; color: #fff; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- lobby ---------- */
.sheet { margin: auto 12px calc(14px + var(--safe-b)); padding: 18px 16px; border-radius: 24px; background: rgba(11,27,58,.88); border: 1px solid var(--line); backdrop-filter: blur(10px); max-width: 520px; width: calc(100% - 24px); align-self: center; }
.sheet--center { margin: auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.sheet__title { margin: 0 0 6px; font-family: var(--display); font-size: 24px; color: var(--gold-hi); text-align: center; }
.sheet__hint { margin: 0 0 10px; text-align: center; color: var(--tx-2); font-size: 14px; }
.roomcode { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.roomcode strong { font-size: 30px; letter-spacing: 8px; color: #fff; padding: 2px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px dashed var(--gold); }
.fill { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin: 0 0 12px; }
.fill span { display: block; height: 100%; width: 0; background: var(--gold-btn); transition: width .2s linear; }
.players { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.player { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: rgba(255,255,255,.06); animation: row-in .3s ease both; }
.player--me { background: rgba(226,187,98,.16); box-shadow: inset 0 0 0 1px var(--gold); }
.player--away { opacity: .5; }
.player--slot { opacity: .55; border: 1px dashed rgba(255,255,255,.18); background: none; }
.player__name { flex: 1; font-weight: 600; }
.player__name em, .results__name em, .podium__name em { font-style: normal; font-size: 11px; color: var(--gold-hi); font-weight: 600; }
.player__state { font-size: 12px; color: var(--tx-2); }
.av { width: var(--sz, 40px); height: var(--sz, 40px); flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--navy-2); box-shadow: 0 0 0 3px var(--ring, var(--gold)); font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av--slot { box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- HUD ---------- */
.hud { position: absolute; top: 0; inset-inline: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: calc(10px + var(--safe-t)) 12px 0; pointer-events: none; }
.hud__place { min-width: 74px; display: grid; justify-items: center; padding: 4px 10px 6px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); line-height: 1.05; }
.hud__place:empty { visibility: hidden; }
.hud__place b { font-size: 30px; color: var(--gold-hi); font-family: var(--display); }
.hud__place small { font-size: 11px; color: var(--tx-2); }
.hud__mid { display: grid; justify-items: center; gap: 6px; }
.hud__timer { padding: 6px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.hud__pips { display: flex; gap: 6px; direction: ltr; }
.pip { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: background .2s, transform .2s; }
.pip--on { background: var(--gold-hi); transform: scale(1.15); box-shadow: 0 0 10px rgba(226,187,98,.8); }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(90px, 30vw, 170px); color: #fff; text-shadow: 0 6px 0 var(--navy), 0 0 40px rgba(226,187,98,.9); pointer-events: none; }
.countdown--go { color: var(--gold-hi); font-size: clamp(64px, 20vw, 120px); }
.countdown--pop { animation: cd-pop .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cd-pop { 0% { transform: scale(2.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1); } }
.toast { position: absolute; top: calc(92px + var(--safe-t)); left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; animation: row-in .25s ease both; }
.banner { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 30; padding: 8px 16px; border-radius: 99px; background: #b23b2e; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.banner[hidden], .toast[hidden] { display: none; }

/* touch controls (phones) */
.touch { position: absolute; inset: 0; pointer-events: auto; touch-action: none; display: none; }
@media (pointer: coarse) { .touch { display: block; } }
body[data-screen="hud"] .touch { display: block; }
@media (pointer: fine) { body[data-screen="hud"] .touch { display: none; } }
.stick { position: absolute; left: 0; top: 0; width: 112px; height: 112px; border-radius: 50%; background: rgba(11,27,58,.35); box-shadow: inset 0 0 0 2px rgba(226,187,98,.5); opacity: 0; transition: opacity .15s; pointer-events: none; }
.stick--on { opacity: 1; }
.stick__knob { position: absolute; left: 31px; top: 31px; width: 50px; height: 50px; border-radius: 50%; background: var(--gold-btn); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.stick-hint { position: absolute; left: 22px; bottom: calc(46px + var(--safe-b)); padding: 8px 14px; border-radius: 99px; background: var(--glass); border: 1px dashed var(--gold); font-size: 13px; transition: opacity .6s; pointer-events: none; }
.stick-hint--off { opacity: 0; }
.tbtns { position: absolute; right: 14px; bottom: calc(18px + var(--safe-b)); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 12px; align-items: end; }
.tbtn { border: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy); cursor: pointer; touch-action: none; transition: transform .06s ease, filter .06s; }
.tbtn--down { transform: scale(.9); filter: brightness(1.15); }
.tbtn--jump { grid-column: 2; grid-row: 1 / span 2; width: 92px; height: 92px; font-size: 19px; background: var(--gold-btn); box-shadow: 0 5px 0 #8a5f1f, 0 10px 22px rgba(0,0,0,.35); }
.tbtn--dive { grid-column: 1; grid-row: 2; width: 70px; height: 70px; font-size: 14px; background: linear-gradient(180deg, #7fe0bf, #0f7a5a); color: #fff; box-shadow: 0 4px 0 #064a36, 0 8px 18px rgba(0,0,0,.3); }
.tbtn--small { grid-column: 1; grid-row: 1; justify-self: end; width: 44px; height: 44px; font-size: 20px; background: var(--glass); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line); }
@media (orientation: landscape) and (max-height: 500px) {
  .tbtn--jump { width: 80px; height: 80px; }
  .tbtn--dive { width: 60px; height: 60px; }
  .hero { padding-top: 0; }
  .hero__title { font-size: 34px; }
  .menu { max-width: 720px; }
  .modes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mode--private { grid-column: 1 / -1; }
}

/* ---------- finish / podium ---------- */
.finish { margin: auto; padding: calc(14px + var(--safe-t)) 14px calc(14px + var(--safe-b)); width: min(520px, 100%); max-height: 100%; overflow-y: auto; text-align: center; }
.finish__kicker { margin: 0; color: var(--tx-2); font-size: 14px; }
.finish__title { margin: 2px 0 0; font-family: var(--display); font-size: clamp(32px, 10vw, 44px); color: #fff; text-shadow: 0 3px 0 var(--navy); }
body[data-win="1"] .finish__title { color: var(--gold-hi); }
.finish__time { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--gold-hi); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; height: 196px; margin: 8px 0 6px; }
.podium__step { width: 31%; display: grid; justify-items: center; gap: 6px; animation: podium-up .7s cubic-bezier(.2,1.2,.3,1) both; animation-delay: var(--delay, 0s); }
.podium__name { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__block { width: 100%; display: grid; place-items: center; align-content: center; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid var(--line); }
.podium__block b { font-family: var(--display); font-size: 30px; line-height: 1; }
.podium__block small { font-size: 11px; color: var(--tx-2); }
.podium__step--1 .podium__block { height: 92px; background: var(--gold-btn); color: var(--navy); border: none; }
.podium__step--1 .podium__block small { color: rgba(11,27,58,.75); }
.podium__step--2 .podium__block { height: 66px; }
.podium__step--3 .podium__block { height: 48px; }
.podium__step--me .podium__name { color: var(--gold-hi); }
@keyframes podium-up { from { transform: translateY(40px); opacity: 0; } }
.finish__xp { margin: 4px 0 10px; font-size: 16px; color: var(--tx); }
.finish__xp b { font-size: 26px; color: var(--gold-hi); font-family: var(--display); }
.finish__xp--pop { animation: cd-pop .6s ease both; }
.results { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px; text-align: start; }
.results__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(11,27,58,.7); border: 1px solid rgba(255,255,255,.06); animation: row-in .35s ease both; }
.results__row--me { border-color: var(--gold); background: rgba(226,187,98,.16); }
.results__place { width: 22px; text-align: center; font-weight: 700; color: var(--gold-hi); }
.results__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); }
.results__name { flex: 1; font-weight: 600; }
.results__time { font-size: 13px; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.error__mark { width: 64px; height: 64px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(5,12,28,.6); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal__card { width: min(360px, 100%); padding: 18px; border-radius: 22px; background: var(--navy-2); border: 1px solid var(--line); display: grid; gap: 12px; text-align: center; }
.modal__card h3 { margin: 0; font-family: var(--display); color: var(--gold-hi); font-size: 22px; }
.modal__card p { margin: 0; color: var(--tx-2); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); font-weight: 600; }
.toggle input { width: 22px; height: 22px; accent-color: var(--gold); }
.toggle select { background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


.lobby-course { position: absolute; top: calc(70px + var(--safe-t)); width: 100%; text-align: center; color: var(--gold-hi); }

/* «طريق النيون»: dark glass, cyan/magenta light, warm Fawz gold for actions. */
body { background: #060a1f; }
.screen--menu { background: linear-gradient(180deg,rgba(6,10,31,.28),rgba(6,10,31,.9) 72%); }
.hero__title { color:#fff; text-shadow:0 0 28px #28e7ff77,0 0 80px #ff3fb455; }
.hero__sub { color:#d5e5ff; }
.brand { color:#e2bb62; }
.mode { background:linear-gradient(125deg,#111c38ed,#15122feb); border-color:#28e7ff33; box-shadow:0 10px 34px #0005; }
.mode--gold { background:linear-gradient(125deg,#1f3647f5,#242141f5); border-color:#e2bb62aa; }
.hud__place,.hud__mid,.iconbtn--glass { background:#0a1029c9; border:1px solid #28e7ff33; }
.hud { padding-top:max(12px,env(safe-area-inset-top)); }
.hud__mid { border-radius:18px; padding:8px 12px; min-width:130px; }
.hud__timer { background:none; padding:0; }
.touch { touch-action:none; pointer-events:auto; }
.drive-stats { position:absolute;bottom:calc(20px + env(safe-area-inset-bottom));right:20px;width:140px;text-align:center;background:#080e24db;border:1px solid #28e7ff4d;border-radius:18px;padding:10px;pointer-events:none; }
.drive-stats>b { display:block;font-size:36px;font-weight:700;line-height:1.1;color:#fff;text-shadow:0 0 15px #28e7ff88; }
.drive-stats>small { display:block;color:#d4e5ff;font-size:11px; }
.nitro-meter { height:8px;background:#392b1e;border-radius:9px;overflow:hidden;margin:8px 0;direction:ltr; }
.nitro-meter>span { display:block;width:50%;height:100%;background:linear-gradient(90deg,#ff9c2e,#ffe270);box-shadow:0 0 14px #ffb02e88; }
.nitro-button { position:absolute;bottom:calc(24px + env(safe-area-inset-bottom));left:24px;width:105px;height:105px;border-radius:50%;border:2px solid #ffd16b;background:radial-gradient(circle at 35% 25%,#ffdb7c,#bf7630);color:#0b1b3a;font:700 20px "Plex Arabic";box-shadow:0 0 30px #ffb02e33,0 7px 0 #74451c;touch-action:none;pointer-events:auto; }
.nitro-button>span { display:block;font-size:26px;line-height:1; }
.nitro-button:active { transform:translateY(4px);box-shadow:0 0 45px #ffb02e77,0 3px 0 #74451c; }
.lane-arrow { position:absolute;bottom:calc(170px + env(safe-area-inset-bottom));color:#c8f6ff65;font:70px/1 sans-serif;pointer-events:none;direction:ltr;unicode-bidi:isolate; }
.lane-arrow--left { left:28px; }
.lane-arrow--right { right:28px; }
.stick-hint { bottom:calc(166px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:225px;text-align:center;background:#070e24c9;border:1px solid #28e7ff22; }
.ghost-legend { position:absolute;top:calc(138px + var(--safe-t));left:20px;right:20px;text-align:center;color:#d7e5ffbd;font-size:10px;pointer-events:none; }
.countdown { text-shadow:0 0 35px #28e7ff99,0 4px 16px #000; }
.screen--finish { background:linear-gradient(170deg,#071127f5,#20122af5); }
.lobby-course { color:#28e7ff; }
@media (max-height:720px) { .hero {padding-top:4px}.hero__title{font-size:38px}.mode{padding:12px}.howto{font-size:10px}.menu{gap:12px} }
.floats { position:absolute;top:36%;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none; }
.float { font:700 22px "Plex Arabic";text-shadow:0 0 14px currentColor,0 2px 6px #000;animation:floatUp 1.1s ease-out forwards; }
@keyframes floatUp { 0%{opacity:0;transform:translateY(12px) scale(.8)} 15%{opacity:1;transform:none} 100%{opacity:0;transform:translateY(-46px)} }
body[data-nitro="1"] .drive-stats { border-color:#ffd23f;box-shadow:0 0 22px #ffb02e66; }
.ghost-legend { transition:opacity .6s; }
.ghost-legend--off { opacity:0; }
