:root {
  --bg: #0C0E14; --panel: #181B25; --panel2: #222634; --line: #2A2F3D;
  --text: #F2F4F8; --muted: #A3AAB8; --soft: #C9CED8;
  --orange: #FF6A2B; --orange2: #FF3D5A; --gold: #FFE45C; --green: #57D07A; --red: #FF5468; --purple: #C07BFF;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font-family: Rubik, system-ui, sans-serif; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255,106,43,.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(192,123,255,.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 14px),
    var(--bg);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }
h2 { font-family: Bungee, sans-serif; font-size: 28px; }
h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.4; margin: 0; }
.center { text-align: center; }
.big { font-family: Bungee, sans-serif; font-size: 22px; line-height: 1.1; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 6px 16px; flex-wrap: wrap; }
.logo { font-family: Bungee, sans-serif; font-size: 22px; background: linear-gradient(90deg, var(--orange), var(--orange2)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.logo small { font-family: Rubik, sans-serif; font-size: 11px; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: .14em; }
.nav { display: flex; gap: 4px; background: var(--panel); border-radius: 12px; padding: 4px; }
.nav button { min-height: 32px; border: 0; padding: 4px 12px; font-size: 13px; }
.nav button.on { background: var(--panel2); color: var(--gold); }
.me { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; background: var(--panel); border-radius: 12px; padding: 6px 12px; flex-wrap: wrap; }
.me .who { font-weight: 700; }
.me .lv { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.me .lvbar { height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; }
.me .lvbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #9BE58C); }
.me b { color: var(--gold); font-family: Bungee, sans-serif; font-weight: 400; font-size: 15px; }
.checker { height: 4px; background: repeating-linear-gradient(90deg, #F2F4F8 0 12px, #0C0E14 12px 24px); opacity: .18; }

main { padding: 10px 16px 16px; max-width: 1400px; margin: 0 auto; }

/* ---------- Cards & controls ---------- */
.card { background: linear-gradient(180deg, #1C2030, #161925); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 0; }
.card.glass { background: rgba(24,27,37,.85); backdrop-filter: blur(8px); }
.card.fill { flex: 1; min-height: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scroll { overflow-y: auto; min-height: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.narrow { max-width: 440px; width: 100%; }

input { min-height: 38px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 15px; padding: 6px 12px; width: 100%; }
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,43,.15); }
.code-input { text-transform: uppercase; font-family: Bungee, sans-serif; letter-spacing: .2em; flex: 1; width: auto; min-width: 0; }
label { font-size: 12px; font-weight: 700; color: var(--muted); }
details summary { cursor: pointer; }

button { min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 2px solid #343a4a; background: rgba(255,255,255,.02); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .08s, border-color .15s, box-shadow .15s, background .15s; }
button:hover:not(:disabled) { border-color: var(--soft); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.small { min-height: 36px; padding: 4px 12px; font-size: 13px; }
button.primary { background: linear-gradient(135deg, var(--orange), var(--orange2)); border: 0; color: #fff; font-family: Bungee, sans-serif; font-weight: 400; font-size: 15px; text-shadow: 0 1px 0 rgba(0,0,0,.25); box-shadow: 0 6px 20px rgba(255,80,50,.35); }
button.primary:hover:not(:disabled) { box-shadow: 0 8px 28px rgba(255,80,50,.5); }
button.secondary { background: var(--panel2); border-color: var(--line); }
.big-btn { min-height: 46px; font-size: 18px !important; }
.pill { min-height: 30px; padding: 2px 10px; border-radius: 999px; font-size: 12px; }

/* ---------- Sign in ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 3vh; }
.hero-cars { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 900px; }
.hero-cars img { width: 120px; animation: bob 2.4s ease-in-out infinite; }
.hero-cars img:nth-child(2n) { animation-delay: -.8s; }
.hero-cars img:nth-child(3n) { animation-delay: -1.6s; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Home dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.3fr) minmax(300px, 1.1fr); gap: 10px; height: calc(100vh - 80px); min-height: 520px; }
.dash .col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; height: auto; } .dash .card.fill { max-height: 420px; } }
.play-card { gap: 6px; }
.room-list { display: flex; flex-direction: column; gap: 6px; }
.room-row { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 10px; padding: 6px 10px; }
.room-row .rc { font-family: Bungee, sans-serif; font-size: 18px; color: var(--gold); letter-spacing: .08em; }
.room-row .rh { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-row .rp { font-size: 12px; color: var(--muted); }
.room-row button { min-height: 32px; padding: 2px 12px; font-size: 13px; }
.mini-garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; align-content: start; }
.mini { background: var(--panel2); border-radius: 12px; padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--rc, var(--line)); }
.mini img { width: 100%; }
.mini .nm { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .rar { font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.locked-mini { text-align: left; font-weight: 400; min-height: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.locked-mini img { filter: brightness(.45) saturate(.5); }
.keycard { gap: 4px; }
.keycard .key { font-family: Bungee, sans-serif; font-size: 22px; color: var(--gold); letter-spacing: .12em; }

/* ---------- Leaderboard ---------- */
.lb-tabs { display: flex; gap: 4px; background: var(--panel2); border-radius: 10px; padding: 3px; }
.lb-tabs button { min-height: 32px; padding: 4px 12px; font-size: 13px; border: 0; background: transparent; }
.lb-tabs button.on { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; }
.lb-wrap { overflow-y: auto; min-height: 0; flex: 1; }
table.lb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lb th { text-align: left; font-size: 10px; letter-spacing: .08em; color: var(--muted); padding: 4px 6px; position: sticky; top: 0; background: #1A1E2C; }
table.lb td { padding: 6px; border-top: 1px solid var(--line); }
table.lb td.rank { font-family: Bungee, sans-serif; width: 32px; color: var(--muted); }
table.lb tr:nth-child(2) td.rank { color: var(--gold); } table.lb tr:nth-child(3) td.rank { color: var(--soft); } table.lb tr:nth-child(4) td.rank { color: #C98B3A; }
table.lb tr.lb-me td { background: rgba(255,106,43,.12); }
table.lb td.n, table.lb th.n { text-align: right; font-weight: 700; }

/* ---------- Lobby ---------- */
.lobby-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.room-id { display: flex; align-items: center; gap: 10px; }
.room-code { font-family: Bungee, sans-serif; font-size: 40px; line-height: 1; background: linear-gradient(90deg, var(--gold), #FFB01F); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .08em; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: center; }
.howto li { background: var(--panel2); border-radius: 12px; padding: 6px 12px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--soft); }
.howto b { font-family: Bungee, sans-serif; font-size: 20px; color: var(--orange); line-height: 1; }
.howto strong { color: var(--text); font-size: 13px; margin-right: 4px; }
.lobby-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr) minmax(260px, 1fr); gap: 10px; height: calc(100vh - 150px); min-height: 420px; }
.lobby-grid > .card { min-height: 0; }
@media (max-width: 1000px) { .lobby-grid { grid-template-columns: 1fr; height: auto; } }
.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.players li { background: var(--panel2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.players .pname { display: flex; justify-content: space-between; font-weight: 700; }
.players .ok { color: var(--green); font-size: 12px; }
.players .rmbot { min-height: 30px; padding: 2px 10px; font-size: 12px; align-self: flex-start; }
.garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 6px; align-content: start; }
.carbtn { background: var(--panel2); border: 1px solid var(--line); border-top: 3px solid var(--rc, var(--line)); border-radius: 12px; padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.carbtn img { width: 100%; }
.carbtn .nm { font-weight: 700; font-size: 13px; }
.carbtn .rar { font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.stat { display: grid; grid-template-columns: 58px 1fr 22px; gap: 6px; align-items: center; font-size: 10px; color: var(--muted); }
.stat .bar { height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; }
.stat span:last-child { text-align: right; color: var(--soft); }
.chat-card { min-height: 0; }
.chatlog { background: var(--panel2); border-radius: 12px; padding: 8px 10px; flex: 1; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.chatlog.small { flex: none; height: 70px; }
.chatlog .cn { font-weight: 700; color: var(--orange); margin-right: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 5px; }
.quick button { min-height: 30px; padding: 2px 10px; font-size: 12px; border-radius: 999px; border-width: 1px; }

/* ---------- Race ---------- */
.game-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.lights { background: var(--panel); border-radius: 14px; padding: 8px 10px; display: flex; gap: 7px; border: 1px solid var(--line); }
.lights span { width: 20px; height: 20px; border-radius: 50%; background: #3A1414; }
.lights span.g { background: #143A22; }
.lights span.on { background: #FF3B3B; box-shadow: 0 0 14px #FF3B3B; }
.lights span.g.on { background: var(--green); box-shadow: 0 0 18px var(--green); }
.flash { font-weight: 700; color: var(--green); min-height: 18px; }
.flash.bad { color: var(--red); }
canvas#track { width: 100%; display: block; background: linear-gradient(180deg, #1A1E2B, #141722); border-radius: 16px; border: 1px solid var(--line); }
.prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; margin-bottom: 10px; }
@media (max-width: 860px) { .prep { grid-template-columns: 1fr; } }
.door-frame { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 90%, #3A3F4E, #15171D 70%); border: 6px solid #2F3442; border-top-width: 14px; }
.reel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.reel img { width: 72%; }
.door { position: absolute; left: 0; right: 0; top: 0; height: 100%; transition: transform .7s cubic-bezier(.5,0,.2,1); background: repeating-linear-gradient(180deg, #5B6170 0 16px, #4A4F5C 16px 18px, #6B7180 18px 20px); box-shadow: inset 0 -6px 0 var(--orange); }
.door.up { transform: translateY(-92%); }
.gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.gate { min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--panel2); border-radius: 14px; font-weight: 400; }
.gate .gn { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.gate .gb { font-family: Bungee, sans-serif; font-size: 22px; color: var(--green); }
.gate.mys .gb { color: var(--purple); }
.gate .gt { font-size: 12px; color: var(--soft); min-height: 15px; }
.gate.mine { border-color: var(--orange); background: rgba(255,106,43,.14); box-shadow: 0 0 20px rgba(255,106,43,.25); }
.gate:disabled { opacity: 1; }
.gate.taken:not(.mine) { opacity: .45; }
.game-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 860px) { .game-bottom { grid-template-columns: 1fr; } }
.meter-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
#risk { color: #FFB01F; }
.meter { position: relative; height: 30px; border-radius: 10px; overflow: hidden; display: flex; }
.zone.g { background: #2F7D4A; } .zone.y { background: #B7861A; } .zone.r { background: #B3283A; }
.needle { position: absolute; top: 0; bottom: 0; width: 6px; left: 0; background: #fff; border-radius: 3px; box-shadow: 0 0 10px #fff; }
.hold { min-height: 64px; font-family: Bungee, sans-serif; font-size: 24px; background: var(--panel2); border-color: var(--orange); color: var(--orange); touch-action: none; user-select: none; -webkit-user-select: none; }
.hold.down { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; box-shadow: 0 0 30px rgba(255,80,50,.5); }
table.score { width: 100%; border-collapse: collapse; font-size: 13px; }
table.score th { text-align: left; font-size: 10px; letter-spacing: .08em; color: var(--muted); padding: 4px 6px; }
table.score td { padding: 6px; border-top: 1px solid var(--line); }
table.score td.t, table.score th.t { text-align: right; font-weight: 700; }
table.score tr.mine td { background: rgba(255,106,43,.12); }
.crash { color: var(--red); font-weight: 700; }
.saved { color: #FFB01F; font-weight: 700; }

/* ---------- Shop & levels ---------- */
.shop-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; position: sticky; top: 8px; z-index: 5; }
.shop-sec { margin-bottom: 18px; }
.shop-sec h2 { font-size: 20px; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.shop-sec h2 small { font-family: Rubik, sans-serif; font-size: 13px; color: var(--soft); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.shop-card { background: linear-gradient(180deg, #1C2030, #161925); border: 1px solid rgba(255,255,255,.06); border-top: 3px solid var(--rc, var(--line)); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.shop-card.locked img { filter: brightness(.4) saturate(.5); }
.shop-card .nm { font-weight: 700; font-size: 13px; }
.shop-card .desc { font-size: 11px; color: var(--soft); line-height: 1.35; min-height: 44px; }
.shop-card button { min-height: 34px; margin-top: 4px; font-size: 13px; }
.shop-card button.can { background: linear-gradient(135deg, var(--green), #2FB063); border: 0; color: #0C0E14; }
.shop-card .owned { color: var(--green); font-weight: 700; font-size: 12px; text-align: center; padding: 8px 0 2px; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lvl { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lvl .lt { font-family: Bungee, sans-serif; font-size: 18px; }
.lvl .lr { font-size: 12px; color: var(--soft); }
.lvl .lx { font-size: 11px; color: var(--muted); }
.lvl.done .lt { color: var(--green); }
.lvl.now { border-color: var(--orange); box-shadow: 0 0 20px rgba(255,106,43,.25); }
.lvl.now .lt { color: var(--orange); }

/* ---------- Results ---------- */
.final-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 10px; align-items: start; }
@media (max-width: 1000px) { .final-grid { grid-template-columns: 1fr; } }
.win { font-size: 38px; background: linear-gradient(90deg, var(--gold), #FFB01F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rewards { display: flex; flex-direction: column; gap: 4px; font-size: 15px; max-width: 420px; }
.rewards div { display: flex; justify-content: space-between; }
.rewards b { color: var(--gold); }

.pick-mode { display: flex; align-items: center; gap: 8px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 200px; overflow-y: auto; }
.pick { background: var(--panel2); border: 2px solid var(--line); border-top: 3px solid var(--rc, var(--line)); border-radius: 12px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; text-align: left; font-weight: 400; min-height: 0; }
.pick img { width: 100%; }
.pick .nm { font-size: 12px; font-weight: 700; }
.pick .rec { font-size: 10px; color: var(--muted); }
.pick.sel { border-color: var(--orange); background: rgba(255,106,43,.14); }
.pick.used { opacity: .35; }
.track-info { display: flex; flex-direction: column; gap: 6px; background: var(--panel2); border-radius: 12px; padding: 10px 12px; }
.track-info .tn { font-family: Bungee, sans-serif; font-size: 18px; }
.track-info .obs { display: flex; flex-wrap: wrap; gap: 6px; }
.track-info .ob { background: rgba(0,0,0,.25); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.track-info .ob b { color: var(--gold); }
.speedo { background: #232734; }
.speedo .spd { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #2F7D4A, var(--green)); transition: width .05s linear; }
.speedo .spd.over { background: linear-gradient(90deg, #B3283A, var(--red)); }
.speedo .safe { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.speedo .safe span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--gold); white-space: nowrap; margin-top: 4px; }
.meter.speedo { overflow: visible; margin-bottom: 14px; }
#speedTxt { font-family: Bungee, sans-serif; font-size: 18px; color: var(--text); letter-spacing: 0; }
#nextTxt { color: var(--gold); text-align: right; }
.rec { font-size: 10px; color: var(--muted); }
.rec .w { color: var(--green); font-weight: 700; } .rec .l { color: var(--red); font-weight: 700; }
.game-head { position: relative; }
.room-chip { margin-left: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--soft); }
.room-chip b { font-family: Bungee, sans-serif; font-size: 20px; color: var(--gold); letter-spacing: .08em; font-weight: 400; }
.back-room { flex-direction: row; align-items: center; justify-content: space-between; border-color: rgba(255,106,43,.5); }
.back-room b { font-family: Bungee, sans-serif; color: var(--gold); letter-spacing: .08em; }
.lobby-lb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.room-row.priv .rc { color: var(--muted); font-size: 15px; }
.howto-line { flex: 1; min-width: 0; text-align: center; font-size: 13px; color: var(--soft); background: var(--panel2); border-radius: 999px; padding: 6px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-head { padding: 10px 14px; gap: 12px; }
.lobby-head .room-code { font-size: 30px; }
.lobby-head .label { font-size: 10px; }
.lobby-head .row { gap: 6px; flex-wrap: nowrap; }
.lobby-head button.small { min-height: 34px; padding: 4px 10px; }
.lobby-head .primary { min-height: 40px; }
.pick-mode .lb-tabs button { min-height: 30px; padding: 2px 10px; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; margin-right: 6px; vertical-align: middle; }
.chatlog > div { display: flex; align-items: center; gap: 2px; }
.chatlog .cn { margin-right: 8px; }
.me .lvnext { font-size: 10px; color: var(--muted); white-space: nowrap; }
.lvl-progress { display: flex !important; flex-direction: column; gap: 4px; margin-top: 4px; }
.lvl-progress .lvbar { height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; display: block; }
.lvl-progress .lvbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #9BE58C); }
.room-bar { max-width: 1400px; margin: 8px auto 0; padding: 8px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(255,106,43,.22), rgba(255,61,90,.14)); border: 1px solid rgba(255,106,43,.5); border-radius: 14px; font-size: 14px; width: calc(100% - 40px); }
.room-bar b { font-family: Bungee, sans-serif; color: var(--gold); letter-spacing: .08em; font-weight: 400; }
.room-bar .grow { flex: 1; }
.room-bar button { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.prep-status { display: flex; flex-direction: column; gap: 6px; }
.prep-status .ps { display: flex; align-items: center; gap: 8px; background: var(--panel2); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.prep-status .ps .grow { flex: 1; color: var(--soft); }
.prep-status .ok { color: var(--green); font-weight: 700; }
.prep-status .wait { color: #FFB01F; font-weight: 700; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.used-grid { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.used-grid .lbl { font-size: 11px; color: var(--muted); width: 100%; }
.used-grid .u { display: flex; align-items: center; gap: 4px; background: var(--panel2); border-radius: 999px; padding: 2px 8px 2px 2px; font-size: 11px; color: var(--muted); opacity: .6; }
.used-grid .u img { width: 40px; }
.prep-status .nudge-btn { min-height: 28px; padding: 2px 10px; font-size: 12px; border-radius: 999px; border-color: #FFB01F; color: #FFB01F; }
.nudge { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 30; background: linear-gradient(135deg, #FFB01F, var(--orange)); color: #101218; border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: shake .5s ease-in-out 3; max-width: calc(100% - 32px); }
.nudge button { background: #101218; color: #fff; border: 0; }
@keyframes shake { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 8px)); } 75% { transform: translateX(calc(-50% + 8px)); } }
.chat-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; }
.chat-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 12px; align-items: stretch; padding: 6px 12px; background: rgba(12,14,20,.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); height: 124px; }
.bar-pills { flex-wrap: wrap !important; align-content: center; overflow-y: auto; }
.bar-pills button { flex: none; }
.bar-log { height: 100%; min-height: 0; padding: 4px 10px; font-size: 12px; gap: 1px; }
.bar-log > div { display: flex; align-items: center; gap: 2px; white-space: nowrap; overflow: hidden; }
.bar-log .tx { overflow: hidden; text-overflow: ellipsis; }
.bar-log .av { width: 18px; height: 18px; font-size: 11px; margin-right: 4px; }
.bar-log .new { animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) { .chat-bar { grid-template-columns: 1fr; height: auto; } .bar-log { height: 64px; } .bar-pills { flex-wrap: nowrap !important; overflow-x: auto; } }
body.chatbar main { padding-bottom: 132px; }
body.chatbar .lobby-grid { height: calc(100vh - 270px); }
body.chatbar .friends { display: flex; flex-direction: column; gap: 4px; max-height: 220px; }
.friend { display: flex; align-items: center; gap: 6px; background: var(--panel2); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.friend .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend .dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 2px solid #6B7180; flex: none; box-sizing: border-box; }
.friend .dot.on { background: var(--green); border-color: var(--green); box-shadow: 0 0 8px var(--green); animation: online 1.1s ease-in-out infinite; }
@keyframes online { 50% { opacity: .35; box-shadow: 0 0 2px var(--green); } }
.friend.off { opacity: .6; }
.friend .st { font-size: 11px; color: var(--muted); white-space: nowrap; }
.friend:not(.off) .st { color: var(--green); }
.friends-card { max-height: 34%; min-height: 0; }
.friend button { min-height: 26px; padding: 0 10px; font-size: 12px; }
.nudge.invite { top: 120px; background: linear-gradient(135deg, #4D9BFF, #7C5CFF); color: #fff; animation: none; }
.nudge.invite button.no { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.build-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.4fr); gap: 10px; height: calc(100vh - 80px); }
.build-grid > .card { min-height: 0; }
@media (max-width: 900px) { .build-grid { grid-template-columns: 1fr; height: auto; } }
.bp-stage { background: radial-gradient(ellipse at 50% 85%, rgba(34,211,238,.25), transparent 70%), var(--panel2); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 20px 10px; }
.bp-stage img { width: 100%; max-width: 420px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.opt { min-height: 0; padding: 4px; border-radius: 10px; background: var(--panel2); border: 2px solid var(--line); font-weight: 700; font-size: 12px; }
.opt.on { border-color: var(--orange); background: rgba(255,106,43,.14); }
.opt img { width: 78px; display: block; }
.opt.sw { width: 34px; height: 34px; border-radius: 50%; padding: 0; }
.opt.tier { padding: 6px 12px; display: flex; flex-direction: column; align-items: flex-start; }
.opt.tier small { color: var(--muted); font-weight: 400; }
.tune { display: flex; flex-direction: column; gap: 8px; }
.tune .tr { display: grid; grid-template-columns: 90px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.tune input[type=range] { width: 100%; accent-color: var(--orange); min-height: 0; padding: 0; border: 0; background: transparent; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,10,.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: 560px; max-width: 100%; background: linear-gradient(180deg, #1F2434, #171A26); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.test-banner { background: repeating-linear-gradient(45deg, rgba(255,176,31,.18) 0 10px, rgba(255,176,31,.08) 10px 20px); border: 1px dashed #FFB01F; color: #FFD27A; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } }
.pack { position: relative; background: var(--panel2); border: 2px solid var(--line); border-radius: 14px; padding: 14px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; min-height: 0; }
.pack:hover { border-color: var(--gold); }
.pack .pp { font-family: Bungee, sans-serif; font-size: 22px; color: var(--gold); }
.pack .pl { font-size: 12px; color: var(--soft); }
.pack .pr { margin-top: 6px; background: linear-gradient(135deg, var(--green), #2FB063); color: #0C0E14; font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.pack .tag { position: absolute; top: -9px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.ad-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel2); border-radius: 12px; padding: 10px 12px; }
.ad-row > div { display: flex; flex-direction: column; }
.ad-player { background: #000; border-radius: 12px; height: 120px; display: flex; align-items: center; justify-content: center; font-family: Bungee, sans-serif; font-size: 20px; color: var(--gold); }
.nudge.dm { top: 170px; flex-wrap: wrap; }
.nudge.dm .replies { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.nudge.dm .replies button { min-height: 30px; padding: 2px 10px; font-size: 12px; background: rgba(0,0,0,.35); border: 0; color: #fff; }
.friend .acts { display: flex; gap: 4px; }
.friend .acts button { min-height: 26px; padding: 0 8px; font-size: 12px; }
.dm-pop { position: absolute; z-index: 30; display: flex; flex-wrap: wrap; gap: 4px; max-width: 280px; padding: 8px; background: #1C2030; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.dm-pop button { min-height: 30px; padding: 2px 10px; font-size: 12px; border-radius: 999px; }
.team-racers { display: flex; flex-direction: column; gap: 6px; }
.team-racer { display: flex; align-items: center; gap: 8px; background: var(--panel2); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.team-racer .grow { flex: 1; }
.team-racer.current { box-shadow: inset 0 0 0 2px var(--orange); }
.plan-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, rgba(255,106,43,.18), rgba(192,123,255,.14)); border: 1px solid rgba(255,106,43,.45); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.lb-tabs.four button { padding: 4px 8px; font-size: 12px; }
.team-tag { font-size: 10px; color: var(--muted); margin-left: 4px; }
.trade-card { width: 820px; }
.trade-cols { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 10px; align-items: start; }
@media (max-width: 700px) { .trade-cols { grid-template-columns: 1fr; } }
.trade-side { background: var(--panel2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.trade-side.ready { box-shadow: inset 0 0 0 2px var(--green); }
.trade-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; }
.tcar { background: #1A1D27; border: 2px solid var(--line); border-top: 3px solid var(--rc, var(--line)); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 700; min-height: 0; }
.tcar img { width: 80px; }
.tcar.on { border-color: var(--orange); background: rgba(255,106,43,.14); }
.trade-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 40px; text-align: center; font-size: 12px; }
.trade-mid .fair { font-family: Bungee, sans-serif; font-size: 16px; }
.trade-hist-card { max-height: 150px; min-height: 0; }
.trade-hist { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.trade-hist .th { background: var(--panel2); border-radius: 8px; padding: 4px 8px; }
.hist-grid { grid-template-rows: auto auto minmax(0, 1fr); }
.my-ranks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 900px) { .my-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.my-ranks .mr { background: linear-gradient(180deg, #1C2030, #161925); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.my-ranks .mr.you { background: linear-gradient(135deg, rgba(255,106,43,.22), rgba(255,61,90,.12)); border-color: rgba(255,106,43,.5); }
.my-ranks .mr b { font-family: Bungee, sans-serif; font-weight: 400; font-size: 22px; color: var(--gold); }
.my-ranks .mr span { font-size: 11px; color: var(--muted); }
.board-card { height: calc(100vh - 170px); min-height: 0; }
.board-card .lb-wrap { flex: 1; }
.board-card table.lb { font-size: 14px; }
.toast { bottom: 136px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--red); color: #101218; font-weight: 700; padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.pick.sel:disabled { opacity: 1; box-shadow: 0 0 14px rgba(255,106,43,.35); }

.cpu { font-size: 9px; font-weight: 700; letter-spacing: .08em; background: #3A3F4E; color: var(--soft); border-radius: 6px; padding: 1px 5px; vertical-align: middle; }

/* Race controls stay on screen; compact so all lanes fit. */
#burstPanel { position: sticky; bottom: 8px; z-index: 6; }
body.chatbar #burstPanel { bottom: 132px; }
#burstPanel .card { background: linear-gradient(180deg, #1E2232, #181B27); box-shadow: 0 -8px 24px rgba(0,0,0,.45); }
.meter-card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 6px; align-items: center; }
.meter-card .meter-top { grid-column: 1; }
.meter-card .meter { grid-column: 1; margin-bottom: 14px; }
.meter-card .hold { grid-column: 2; grid-row: 1 / span 3; min-height: 84px; }
.meter-card #holdHint { grid-column: 1; font-size: 12px; }
@media (max-width: 700px) { .meter-card { grid-template-columns: 1fr; } .meter-card .hold { grid-column: 1; grid-row: auto; min-height: 64px; } }
#burstPanel table.score td { padding: 4px 6px; }
canvas#track { cursor: pointer; touch-action: none; }

.live-card { max-height: 34%; min-height: 0; }
.activity { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.act { display: flex; justify-content: space-between; gap: 8px; background: var(--panel2); border-radius: 8px; padding: 4px 8px; }
.act .hint { font-size: 11px; white-space: nowrap; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 4px; animation: pulse 1.2s ease-in-out infinite; vertical-align: middle; }

.room-row.recent { box-shadow: inset 0 0 0 1px rgba(255,228,92,.4); }
.room-row .tag { font-size: 10px; font-weight: 700; color: #101218; background: var(--gold); border-radius: 6px; padding: 1px 5px; }

.lb-scope { display: flex; gap: 6px; align-items: center; }
.lb-scope button { min-height: 28px; padding: 2px 10px; font-size: 12px; border-radius: 999px; border-width: 1px; }
.lb-scope button.on { border-color: var(--gold); color: var(--gold); }
.lb-scope select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font: inherit; font-size: 12px; }
/* Compact room panel */
.room-row { padding: 4px 8px; gap: 8px; border-radius: 8px; }
.room-row .rc { font-size: 15px; }
.room-row .rh { font-size: 12px; }
.room-row .rp { font-size: 11px; }
.room-row button { min-height: 26px; padding: 0 10px; font-size: 12px; }
.room-list { gap: 4px; }
.players li { padding: 6px 8px; gap: 2px; }
.players .rmbot { min-height: 24px; padding: 0 8px; font-size: 11px; }
/* Compact lobby */
.garage { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.carbtn { padding: 4px 8px 6px; gap: 1px; }
.carbtn .nm { font-size: 12px; }
.stat { grid-template-columns: 48px 1fr 20px; font-size: 9px; gap: 4px; }
.lobby-grid { gap: 8px; }
.lobby-grid > .card { padding: 8px 10px; gap: 6px; }
.lobby-head { padding: 6px 10px; margin-bottom: 8px; }
.lobby-head .room-code { font-size: 26px; }
/* Chat lines keep their height; the box scrolls instead of squashing them. */
.chatlog > * { flex-shrink: 0; }
.bar-log > div { min-height: 18px; line-height: 18px; }
/* Newest chat line flashes; dark scrollbars everywhere. */
.bar-log .new { animation: pop .25s ease-out, flash 1.6s ease-out; border-radius: 6px; }
@keyframes flash { 0% { background: rgba(255,228,92,.28); } 100% { background: transparent; } }
* { scrollbar-width: thin; scrollbar-color: #3A3F4E transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3A3F4E; border-radius: 8px; }

/* My races */
.hist-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 900px) { .hist-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hs { background: linear-gradient(180deg, #1C2030, #161925); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 0; }
.hs b { font-family: Bungee, sans-serif; font-weight: 400; font-size: 20px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-grid { height: calc(100vh - 150px); }
.hist-list { gap: 2px; }
.hrow { display: grid; grid-template-columns: 70px 64px minmax(0, 1.2fr) minmax(0, 1.4fr) 90px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 12px; }
.hrow:not(.hhead):hover { background: var(--panel2); }
.hrow.won { background: rgba(255,228,92,.06); }
.hhead { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; position: sticky; top: 0; background: #1A1E2C; z-index: 1; }
.hday { font-size: 11px; font-weight: 700; color: var(--soft); padding: 8px 8px 2px; border-bottom: 1px solid var(--line); }
.hrow .res { font-family: Bungee, sans-serif; font-size: 16px; }
.hrow .res small { font-family: Rubik, sans-serif; font-size: 10px; color: var(--muted); }
.hrow.won .res small { color: var(--gold); }
.hrow .opp { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.hrow .opp small, .hrow .cars2 small { color: var(--muted); font-size: 10px; }
.hrow .cars2 { display: flex; gap: 6px; }
.hrow .cars2 > span { display: flex; flex-direction: column; align-items: center; width: 56px; }
.hrow .cars2 img { width: 50px; }
.hrow .r { text-align: right; display: flex; flex-direction: column; }
.hrow .r b { font-family: Bungee, sans-serif; font-weight: 400; color: var(--gold); font-size: 14px; }
.hrow .r small { color: var(--muted); font-size: 10px; }
.game { display: none; }

.badge-chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; font-size: 14px; background: color-mix(in srgb, var(--bc) 25%, transparent); box-shadow: inset 0 0 0 1.5px var(--bc); vertical-align: middle; margin-right: 2px; }
.badge-chip.sm { width: 18px; height: 18px; font-size: 11px; border-radius: 6px; }
.lvl .lt { display: flex; align-items: center; gap: 6px; }

/* Head to head: compact chips in a grid, capped height */
.hist-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.hist-grid > .card:first-child { max-height: 170px; }
.h2h { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; align-content: start; }
.h2h .row2 { display: flex; align-items: center; gap: 6px; background: var(--panel2); border-radius: 10px; padding: 4px 8px; font-size: 12px; min-width: 0; }
.h2h .row2 .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h .row2 .rec { font-size: 11px; white-space: nowrap; }
.h2h .av { width: 20px; height: 20px; font-size: 12px; margin: 0; }
.h2h-more { grid-column: 1 / -1; justify-self: start; min-height: 28px; }

/* Header: rank badge pill, labeled points and record */
.rank-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: color-mix(in srgb, var(--bc) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--bc); }
.rank-pill .ri { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.35); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.rank-pill .rt { display: flex; flex-direction: column; line-height: 1.05; }
.rank-pill .rt b { font-family: Bungee, sans-serif; font-weight: 400; font-size: 12px; color: var(--bc); letter-spacing: .04em; }
.rank-pill .rt small { font-size: 10px; color: var(--soft); }
.me .lv { min-width: 160px; max-width: 260px; }
.me .lvnext { white-space: normal; line-height: 1.2; }
.hstat { font-size: 12px; color: var(--soft); white-space: nowrap; }
.hstat b { font-family: Bungee, sans-serif; font-weight: 400; color: var(--gold); font-size: 14px; }

.me .lvnext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { flex-wrap: nowrap; }
.me .lv { max-width: 200px; }

.me { gap: 10px; padding: 4px 10px; }
.me .lv { min-width: 130px; max-width: 170px; }
.top { flex-wrap: nowrap; }
@media (max-width: 1100px) { .top { flex-wrap: wrap; } }

.friend .dot.away { background: #FFB01F; border-color: #FFB01F; }
.friend .st.away { color: #FFB01F !important; }
/* Header on one tidy row */
.nav button, .me button, .rank-pill, .hstat { white-space: nowrap; }
.nav button { padding: 4px 10px; }
.me .who { white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.rank-pill .rt b { white-space: nowrap; }
.me .lv { min-width: 110px; max-width: 150px; }
.logo { font-size: 20px; }
.logo small { display: none; }
@media (min-width: 1400px) { .logo small { display: inline; } .me .lv { max-width: 220px; } }

.build-wallet { font-size: 13px; color: var(--soft); margin-left: auto; margin-right: 10px; }
.build-wallet b { font-family: Bungee, sans-serif; font-weight: 400; color: var(--gold); }
.nav button { font-size: 12px; padding: 4px 8px; }

/* Name menu: sound, racer key, log out */
.who-wrap { position: relative; }
.me .who { background: transparent; border: 0; min-height: 30px; padding: 2px 6px; font-weight: 700; font-size: 13px; border-radius: 8px; }
.me .who:hover { background: var(--panel2); }
.me-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; display: flex; flex-direction: column; gap: 4px; min-width: 260px; padding: 8px; background: #1C2030; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.me-menu button { text-align: left; min-height: 36px; font-size: 13px; border: 0; background: var(--panel2); }
.me-menu button:hover { background: #2B3040; }

.modal-card { max-height: calc(100vh - 32px); overflow-y: auto; }

.hstat.streak { color: #FF8A4C; font-weight: 700; }
.hstat.streak.cold { color: var(--muted); filter: grayscale(1); }

body.no-accounts #teamBtn { display: none; }
/* Yarkade platform chip (home, Sparks, streak) next to the logo */
.yk-slot { display: flex; align-items: center; }
body.no-trading [data-trade] { display: none; }
