/* Balance Point — design system.
   Monochrome: deep black, charcoal, greys, white. Glass is used for surfaces that float over the 3D view; solid
   charcoal for dense content. Display type and every number: Bahnschrift (DIN-style, built into Windows).
   Text: Segoe UI Variable. One radius scale, one border language, one shadow scale. */
:root {
  --black: #08080a; --char: #111214; --char-2: #17181b; --char-3: #1e1f23; --grey-1: #2a2b30; --grey-2: #44464c; --grey-3: #8b8d93; --grey-4: #c8c9cc; --white: #f5f5f3;
  --ink: var(--white); --mute: rgba(245, 245, 243, 0.62); --faint: rgba(245, 245, 243, 0.36);
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.18); --line-3: rgba(255, 255, 255, 0.32);
  --glass: rgba(20, 21, 24, 0.62); --glass-hi: rgba(255, 255, 255, 0.06); --fill: rgba(255, 255, 255, 0.05); --fill-2: rgba(255, 255, 255, 0.09); --fill-3: rgba(255, 255, 255, 0.14);
  --blur: blur(24px) saturate(120%);
  --r-xs: 0.375rem; --r-sm: 0.625rem; --r-md: 0.875rem; --r-lg: 1.125rem; --r-xl: 1.5rem;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-2: 0 0.75rem 2rem rgba(0, 0, 0, 0.38); --sh-3: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --fast: 0.16s; --mid: 0.28s;
  --f-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-text: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(1rem, 2.2vw, 1.75rem); --rail: 5.25rem;
}
* { box-sizing: border-box; margin: 0; }
html { font-size: 16px; height: 100%; }
body { height: 100%; overflow: hidden; background: var(--black); color: var(--ink); font: 400 0.9375rem/1.45 var(--f-text); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#shade { position: fixed; inset: 0; pointer-events: none; transition: opacity 0.5s, background 0.5s;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.25) 42%, transparent 60%), radial-gradient(140% 100% at 60% 40%, transparent 50%, rgba(0, 0, 0, 0.6) 100%); }
body[data-screen="shop"] #shade, body[data-screen="friends"] #shade, body[data-screen="profile"] #shade, body[data-screen="leaders"] #shade, body[data-screen="settings"] #shade { background: rgba(8, 8, 10, 0.82); }
body[data-screen="garage"] #shade, body[data-screen="character"] #shade { background: linear-gradient(270deg, rgba(8, 8, 10, 0.7) 0%, transparent 45%), radial-gradient(140% 100% at 40% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
body.riding #shade { opacity: 0.3; background: radial-gradient(140% 100% at 50% 45%, transparent 60%, rgba(0, 0, 0, 0.6) 100%); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg.ic { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; padding: 0.05rem 0.35rem; border-radius: 0.3rem; background: var(--fill-2); }

/* ── type ── */
.eyebrow { display: block; font: 600 0.6875rem/1.2 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.display { font: 600 clamp(2.6rem, 5.2vw, 4.4rem)/0.95 var(--f-display); letter-spacing: -0.02em; }
.display.sm { font-size: clamp(2rem, 3.6vw, 3rem); }
h1 { font: 600 1.375rem/1.1 var(--f-display); letter-spacing: -0.005em; }
h2 { font: 600 1.6rem/1.1 var(--f-display); }
h3 { font: 600 1.05rem/1.2 var(--f-text); letter-spacing: -0.005em; }
.lede { color: var(--mute); font-size: 1.02rem; max-width: 26rem; }
.muted { color: var(--mute); } .sm { font-size: 0.8125rem; } .pad { padding: 0.7rem 0.2rem; }
.lbl { display: grid; gap: 0.4rem; font: 600 0.6875rem/1.2 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.big-n { display: flex; align-items: center; gap: 0.5rem; font: 600 2.2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.big-n .ic { width: 1.6rem; height: 1.6rem; }

/* ── surfaces ── */
.glass { background: linear-gradient(180deg, var(--glass-hi), transparent 40%), var(--glass); border: 1px solid var(--line); border-radius: var(--r-xl); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--sh-3), var(--edge); }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--char-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--sh-2), var(--edge); text-align: left; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.dot { display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--grey-2); flex: none; }
.dot.on { background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14); }
.note { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.7rem 0.85rem; border-radius: var(--r-sm); background: var(--fill); border: 1px solid var(--line); color: var(--mute); font-size: 0.8125rem; margin-bottom: 1rem; }
.note .ic { width: 1rem; height: 1rem; margin-top: 0.1rem; }
.err { display: flex; gap: 0.5rem; align-items: center; color: #ffd0cb; font-size: 0.8125rem; padding: 0.55rem 0.75rem; border-radius: var(--r-sm); background: rgba(220, 70, 60, 0.12); border: 1px solid rgba(255, 120, 110, 0.28); }
.err .ic { width: 1rem; height: 1rem; }
.empty { display: grid; justify-items: start; gap: 0.5rem; padding: 0.5rem 0 0.25rem; }
.empty > .ic { width: 1.75rem; height: 1.75rem; color: var(--grey-3); margin-bottom: 0.25rem; }
.empty > span { color: var(--mute); font-size: 0.875rem; max-width: 30rem; }
.empty .row { margin-top: 0.5rem; }
.banner { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; margin-bottom: 1rem; border-radius: var(--r-lg); background: var(--fill-2); border: 1px solid var(--line-2); }
.banner > div b { display: block; }
.tagx { display: inline-flex; align-items: center; gap: 0.4rem; height: 1.75rem; padding: 0 0.65rem; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); font-size: 0.75rem; color: var(--mute); white-space: nowrap; }
.tagx .ic { width: 0.95rem; height: 0.95rem; }
.tagx.ok { color: var(--ink); border-color: var(--line-2); }
.bar2 { display: block; height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--white); border-radius: 4px; transition: width 0.6s var(--ease); }

/* ── buttons & controls ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; height: 2.75rem; padding: 0 1.15rem; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); font: 600 0.875rem/1 var(--f-text); letter-spacing: 0.005em; white-space: nowrap; box-shadow: var(--edge);
  transition: background var(--fast), border-color var(--fast), transform var(--fast) var(--ease), box-shadow var(--fast), opacity var(--fast), color var(--fast); }
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)); border-color: var(--line-3); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn.primary { background: linear-gradient(180deg, #ffffff, #e6e6e3); color: var(--black); border-color: #fff; box-shadow: 0 0.5rem 1.4rem rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.btn.primary:hover { background: #fff; box-shadow: 0 0.6rem 1.8rem rgba(255, 255, 255, 0.14); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--mute); }
.btn.ghost:hover { color: var(--ink); background: var(--fill); border-color: var(--line); }
.btn.sm { height: 2.1rem; padding: 0 0.8rem; font-size: 0.8125rem; border-radius: var(--r-sm); gap: 0.4rem; }
.btn.sm .ic { width: 1rem; height: 1rem; }
.btn.big { height: 3.4rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn.wide { width: 100%; }
.btn.icon { width: 2.75rem; padding: 0; } .btn.icon.sm { width: 2.1rem; }
.btn[disabled] { opacity: 0.38; pointer-events: none; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.spin { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: inline-flex; padding: 0.22rem; gap: 0.15rem; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.seg button { height: 2.25rem; padding: 0 0.95rem; border-radius: 0.6rem; color: var(--mute); font-weight: 600; font-size: 0.8125rem; display: flex; align-items: center; gap: 0.4rem; transition: background var(--fast), color var(--fast); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--white); color: var(--black); box-shadow: var(--sh-1); }
.seg.sm button { height: 1.95rem; padding: 0 0.7rem; font-size: 0.78rem; }
.input { height: 2.75rem; padding: 0 0.9rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); outline: none; transition: border-color var(--fast), background var(--fast); user-select: text; -webkit-user-select: text; min-width: 0; width: 100%; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--ink); }
.input:focus { border-color: var(--white); background: rgba(0, 0, 0, 0.5); }
.input.code { text-transform: uppercase; letter-spacing: 0.3em; font: 600 1rem var(--f-display); width: 9rem; text-align: center; }
.switch { position: relative; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: var(--fill-2); border: 1px solid var(--line-2); transition: background var(--mid), border-color var(--mid); flex: none; }
.switch i { position: absolute; top: 0.17rem; left: 0.18rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--grey-3); transition: transform var(--mid) var(--ease), background var(--mid); }
.switch.on { background: var(--white); border-color: #fff; } .switch.on i { transform: translateX(1.15rem); background: var(--black); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 11rem; height: 1.6rem; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--white) var(--p, 50%), rgba(255, 255, 255, 0.14) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--white) var(--p, 50%), rgba(255, 255, 255, 0.14) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; margin-top: -0.43rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.5); transition: box-shadow var(--fast); }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.5); }
input[type="range"]::-moz-range-thumb { width: 1.1rem; height: 1.1rem; border: 0; border-radius: 50%; background: #fff; }
kbd { font: 600 0.72rem/1 var(--f-display); color: var(--ink); min-width: 1.65rem; height: 1.65rem; padding: 0 0.42rem; display: inline-grid; place-items: center; border-radius: 0.4rem; border: 1px solid var(--line-2); background: var(--fill-2); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); }

/* ── shell ── */
#ui { position: fixed; inset: 0; pointer-events: none; }
body.riding #ui { display: none; }
.rail { position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 1.1rem 0 1rem; pointer-events: auto; z-index: 3;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.85), rgba(8, 8, 10, 0.55)); border-right: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.rail .brand .mark { width: 2.4rem; height: 2.4rem; color: var(--white); }
.rail-items { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.6rem; flex: 1; }
.ri { position: relative; width: 4.1rem; padding: 0.6rem 0 0.5rem; border-radius: var(--r-md); display: grid; justify-items: center; gap: 0.3rem; color: var(--grey-3); transition: color var(--fast), background var(--fast); }
.ri span { font: 600 0.62rem/1 var(--f-display); letter-spacing: 0.06em; }
.ri:hover { color: var(--ink); background: var(--fill); }
.ri.on { color: var(--ink); background: var(--fill-2); }
.ri.on::before { content: ""; position: absolute; left: -0.6rem; top: 0.7rem; bottom: 0.7rem; width: 3px; border-radius: 3px; background: var(--white); }
.badge { position: absolute; top: 0.3rem; right: 0.75rem; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem; border-radius: 999px; background: var(--grey-1); color: var(--ink); font: 700 0.6rem/1.05rem var(--f-display); font-style: normal; }
.badge.hot { background: var(--white); color: var(--black); }
.rail-foot { display: grid; justify-items: center; gap: 0.35rem; font: 600 0.6rem/1.1 var(--f-display); letter-spacing: 0.06em; color: var(--faint); text-align: center; }
.bar { position: absolute; top: 0; left: var(--rail); right: 0; height: 4.75rem; padding: 0 var(--pad); display: flex; align-items: center; gap: 0.6rem; pointer-events: none; z-index: 2; }
.bar > * { pointer-events: auto; }
.bar-title { pointer-events: none; }
.bar-title .eyebrow { margin-bottom: 0.25rem; }
.chip-btn { display: inline-flex; align-items: center; gap: 0.45rem; height: 2.5rem; padding: 0 0.85rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: border-color var(--fast), background var(--fast); }
.chip-btn:hover { border-color: var(--line-3); }
.chip-btn b { font: 600 0.95rem var(--f-display); font-variant-numeric: tabular-nums; }
.chip-btn span { color: var(--mute); font-size: 0.75rem; }
.chip-btn .ic { width: 1.05rem; height: 1.05rem; color: var(--grey-4); }
.me { display: flex; align-items: center; gap: 0.7rem; padding: 0.3rem 1rem 0.3rem 0.3rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: border-color var(--fast); text-align: left; }
.me:hover { border-color: var(--line-3); }
.av { position: relative; width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; }
.av .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .r0 { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2.5; } .ring .r1 { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; }
.av > i { width: 74%; height: 74%; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #3a3b40, #1b1c20); font: 600 1rem var(--f-display); font-style: normal; }
.av.big { width: 3.5rem; height: 3.5rem; } .av.big > i { font-size: 1.3rem; }
.av.huge { width: 7rem; height: 7rem; } .av.huge > i { font-size: 2.6rem; }
i.av { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #3a3b40, #1b1c20); font: 600 0.85rem var(--f-display); font-style: normal; flex: none; border: 1px solid var(--line); }
i.av.on { border-color: var(--white); }
.me-t { display: grid; gap: 0.12rem; }
.me-t b { font-weight: 650; line-height: 1.1; }
.me-t > span:not(.xpb) { font-size: 0.72rem; color: var(--mute); }
.xpb { display: block; width: 7rem; height: 3px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.xpb i { display: block; height: 100%; background: var(--white); }
.pop { position: absolute; top: 4.6rem; right: var(--pad); width: 20rem; padding: 1.1rem; z-index: 6; display: grid; gap: 0.9rem; animation: pop var(--mid) var(--ease); pointer-events: auto; }
.pop-h { display: flex; gap: 0.8rem; align-items: center; } .pop-h b { display: block; font-size: 1.05rem; } .pop-h span { font-size: 0.78rem; color: var(--mute); }
.pop-acts { display: grid; gap: 0.5rem; } .pop .field { margin: 0; } .pop .row { flex-wrap: nowrap; }
@keyframes pop { from { opacity: 0; transform: translateY(-0.4rem) scale(0.98); } }

/* screens */
.screen { position: absolute; inset: 0 0 0 var(--rail); padding: 5.25rem var(--pad) var(--pad); display: flex; opacity: 0; visibility: hidden; transform: translateY(0.5rem); transition: opacity var(--mid), transform 0.4s var(--ease), visibility 0s var(--mid); }
.screen.active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.32s 0.04s, transform 0.42s var(--ease) 0.04s; }
.screen > * { pointer-events: auto; }
.page { width: min(70rem, 100%); margin: 0 auto; overflow-y: auto; min-height: 0; padding: 0.25rem 0.25rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ── home ── */
.home { width: 100%; display: grid; grid-template-columns: minmax(20rem, 30rem) 1fr minmax(17rem, 21rem); grid-template-areas: "hero . side"; gap: 1.5rem; align-items: end; }
.home-hero { grid-area: hero; display: grid; gap: 1.1rem; align-self: center; }
.home-hero .display { margin-top: 0.2rem; }
.playcard { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.play { display: flex; align-items: center; gap: 1rem; height: 5rem; padding: 0 1.4rem 0 0.75rem; border-radius: var(--r-xl); background: linear-gradient(180deg, #fff, #e4e4e1); color: var(--black); text-align: left;
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.45), 0 0 0 1px #fff inset; transition: transform var(--mid) var(--ease), box-shadow var(--mid); }
.play:hover { transform: translateY(-2px); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.5), 0 0 0 1px #fff inset; }
.play:active { transform: translateY(0) scale(0.99); }
.play[disabled] { opacity: 0.55; pointer-events: none; }
.play .pi { width: 3.6rem; height: 3.6rem; border-radius: var(--r-lg); background: var(--black); color: #fff; display: grid; place-items: center; }
.play .pi .ic { width: 1.4rem; height: 1.4rem; }
.play .pt { flex: 1; display: grid; gap: 0.15rem; }
.play .pt b { font: 700 1.5rem/1 var(--f-display); letter-spacing: 0.01em; text-transform: uppercase; }
.play .pt span { font-size: 0.8rem; color: #4a4b50; }
.play .pk { width: 1.4rem; height: 1.4rem; transition: transform var(--mid) var(--ease); }
.play:hover .pk { transform: translateX(4px); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; padding: 0.3rem; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.mseg { height: 2.6rem; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 0.45rem; color: var(--mute); font-weight: 600; font-size: 0.85rem; transition: background var(--fast), color var(--fast); }
.mseg .ic { width: 1.05rem; height: 1.05rem; } .mseg:hover { color: var(--ink); } .mseg.on { background: var(--fill-3); color: var(--ink); box-shadow: var(--edge); }
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 0.4rem; }
.hs { display: grid; gap: 0.25rem; padding-right: 0.8rem; } .hs + .hs { padding-left: 1rem; border-left: 1px solid var(--line); }
.hs span { font: 600 0.65rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hs b { font: 600 1.5rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.home-side { grid-area: side; display: grid; gap: 0.9rem; align-self: end; }
.daily { padding: 1.1rem 1.1rem 0.6rem; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.daily .card-h { margin-bottom: 0.7rem; }
.dc { display: flex; gap: 0.75rem; align-items: center; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.dc-i { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--fill); border: 1px solid var(--line); color: var(--grey-3); flex: none; }
.dc-i .ic { width: 1rem; height: 1rem; }
.dc.done .dc-i { background: var(--white); color: var(--black); border-color: #fff; }
.dc-t { flex: 1; display: grid; gap: 0.3rem; min-width: 0; } .dc-t b { font-size: 0.85rem; font-weight: 600; }
.dc-r { font: 600 0.9rem var(--f-display); text-align: right; } .dc-r em { font-style: normal; font-size: 0.65rem; color: var(--mute); margin-left: 0.15rem; }
.bikecard { display: grid; gap: 0.2rem; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: border-color var(--fast), transform var(--mid) var(--ease); }
.bikecard:hover { border-color: var(--line-3); transform: translateY(-2px); }
.bk-h { display: flex; justify-content: space-between; align-items: center; } .bk-h .sw { width: 1.6rem; height: 0.5rem; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.bk-n { font: 600 1.6rem/1.05 var(--f-display); }
.bk-spec { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0.8rem 0 0.4rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.bk-spec div { display: grid; gap: 0.15rem; } .bk-spec b { font: 600 1.25rem/1 var(--f-display); } .bk-spec span { font-size: 0.68rem; color: var(--faint); }
.bk-go { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--mute); } .bk-go .ic { width: 0.9rem; height: 0.9rem; }
.sessions { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.sess-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; border-top: 1px solid var(--line); } .sess-row b { flex: 1; }

/* ── garage & character ── */
.stage-title { position: absolute; left: var(--pad); bottom: var(--pad); width: min(30rem, 40vw); pointer-events: none; display: grid; gap: 0.6rem; }
.stage-title p { max-width: 24rem; }
.views { display: flex; gap: 0.35rem; align-items: center; pointer-events: auto; margin-top: 0.4rem; }
.vbtn { height: 2rem; padding: 0 0.75rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--mute); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: color var(--fast), border-color var(--fast); }
.vbtn:hover { color: var(--ink); border-color: var(--line-3); }
.views .muted { margin-left: 0.4rem; }
.panel-right { margin-left: auto; width: min(26.5rem, 100%); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel-body { overflow-y: auto; padding: 1.1rem 1.2rem 1.2rem; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.panel-foot { padding: 0.9rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }
.bike-list { display: grid; grid-auto-flow: column; grid-auto-columns: 8.4rem; gap: 0.5rem; overflow-x: auto; padding: 0.1rem 0.1rem 0.7rem; margin: 0 -0.1rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.bike-card { position: relative; text-align: left; display: grid; gap: 0.15rem; padding: 0.75rem 0.8rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--fill); transition: background var(--fast), border-color var(--fast), transform var(--mid) var(--ease); overflow: hidden; }
.bike-card:hover { background: var(--fill-2); transform: translateY(-2px); }
.bike-card.on { border-color: var(--white); background: var(--fill-3); }
.bike-card .mk { font: 600 0.58rem/1 var(--f-display); letter-spacing: 0.16em; color: var(--mute); }
.bike-card b { font: 600 1.05rem/1.1 var(--f-display); } .bike-card .tg { font-size: 0.68rem; color: var(--faint); line-height: 1.25; }
.bike-card .sw { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.stats { display: grid; gap: 0.45rem; margin: 0.9rem 0 0.2rem; }
.stat { display: grid; grid-template-columns: 6.4rem 1fr 1.2rem; align-items: center; gap: 0.7rem; font-size: 0.78rem; color: var(--mute); }
.stat b { font: 600 0.85rem var(--f-display); color: var(--ink); text-align: right; }
.segbar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; } .segbar i { height: 6px; border-radius: 2px; background: var(--fill-2); } .segbar i.on { background: var(--white); }
.tabs { display: flex; gap: 1.1rem; border-bottom: 1px solid var(--line); margin: 1.2rem 0 1.1rem; overflow-x: auto; scrollbar-width: none; }
.panel-body > .tabs:first-child { margin-top: 0; }
.tabs button { padding: 0.6rem 0; color: var(--mute); font-weight: 600; font-size: 0.85rem; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--fast), border-color var(--fast); white-space: nowrap; }
.tabs button:hover { color: var(--ink); } .tabs button.on { color: var(--ink); border-color: var(--white); }
.field { margin-bottom: 1.15rem; } .field > .lbl { margin-bottom: 0.6rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sw-btn { position: relative; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 -6px 10px rgba(0, 0, 0, 0.25); transition: transform var(--fast) var(--ease); }
.sw-btn:hover { transform: scale(1.08); }
.sw-btn.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--white); }
.sw-btn.none { box-shadow: inset 0 0 0 1px var(--line-2); } .sw-btn.none::before { content: ""; position: absolute; left: 50%; top: 18%; height: 64%; width: 1.5px; background: var(--mute); transform: rotate(45deg); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); gap: 0.4rem; }
.opt { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.4rem 0.6rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--fill); font-size: 0.8125rem; font-weight: 600; color: var(--mute); transition: background var(--fast), border-color var(--fast), color var(--fast); }
.opt:hover { background: var(--fill-2); color: var(--ink); }
.opt.on { border-color: var(--white); color: var(--black); background: var(--white); }
.opt.locked { color: var(--faint); border-style: dashed; } .opt.locked .ic { width: 0.85rem; height: 0.85rem; }
.stepper { display: flex; align-items: center; gap: 0.6rem; } .stepper b { font: 600 1.5rem var(--f-display); min-width: 2.6rem; text-align: center; }

/* ── shop ── */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.wallet { display: grid; gap: 0.35rem; } .wallet .muted { max-width: 26rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem; }
.item { display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--char-2); overflow: hidden; box-shadow: var(--sh-2), var(--edge); transition: transform var(--mid) var(--ease), border-color var(--fast); }
.item:hover { transform: translateY(-3px); border-color: var(--line-2); }
.item.owned { border-color: var(--line-2); } .item.locked .pv { filter: grayscale(1) brightness(0.6); }
.pv { height: 7.5rem; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #2c2d32, #141518); border-bottom: 1px solid var(--line); }
.pv.fin-chrome { background: linear-gradient(135deg, #5e6167 0%, #f4f5f7 30%, #6d7076 52%, #e3e5e8 72%, #4a4c51 100%); }
.pv.fin-pearl { background: linear-gradient(135deg, #e9e7f1, #cfd8e8 30%, #f2e6ea 55%, #dfe9e4 80%, #ece9f2); }
.pv.fin-carbon { background: repeating-linear-gradient(45deg, #1b1c1f 0 6px, #2c2d31 6px 12px), #1b1c1f; background-blend-mode: normal; }
.pv.dots { display: flex; gap: 0.5rem; } .pv.dots i { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.12); }
.pv.glyph .ic { width: 3rem; height: 3rem; stroke-width: 1.2; color: var(--grey-4); }
.it-t { padding: 0.9rem 1rem 0.2rem; display: grid; gap: 0.3rem; align-content: start; } .it-t b { font: 600 1.1rem/1.1 var(--f-display); }
.it-f { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem 1rem; }
.price { display: inline-flex; align-items: center; gap: 0.35rem; font: 600 1.1rem var(--f-display); } .price .ic { width: 1.05rem; height: 1.05rem; color: var(--grey-4); }

/* ── friends ── */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.members { display: grid; gap: 0.35rem; margin: 0.9rem 0 1rem; }
.member { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.6rem; border-radius: var(--r-md); background: var(--fill); border: 1px solid transparent; }
.member:hover { border-color: var(--line); }
.member .grow b { display: block; font-weight: 600; } .member .grow .sm { display: block; }
.member.req { border-color: var(--line-2); }
.code-row { display: flex; align-items: center; gap: 0.5rem; }
.code-d { display: flex; gap: 0.3rem; margin-right: 0.4rem; } .code-d i { width: 2.4rem; height: 3rem; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-2); font: 600 1.6rem var(--f-display); font-style: normal; user-select: text; }
.row.join { margin-top: 0.5rem; } .row.join .input { width: 9rem; }
.search { position: relative; } .search .si { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--grey-3); } .search .si .ic { width: 1.05rem; height: 1.05rem; } .search .input { padding-left: 2.5rem; }
.results { display: grid; gap: 0.3rem; margin-top: 0.6rem; padding: 0.4rem; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.sub-h { display: flex; justify-content: space-between; margin: 1.1rem 0 0.5rem; font: 600 0.6875rem/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.card > .member + .member { margin-top: 0.35rem; }

/* ── profile ── */
.profile { display: grid; gap: 1rem; }
.hero-card { display: flex; gap: 1.6rem; align-items: center; padding: 1.6rem; background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 50%), var(--char-2); }
.pc-t { display: grid; gap: 0.6rem; flex: 1; }
.lvl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; align-items: center; max-width: 32rem; }
.lvl b { font: 600 1.05rem var(--f-display); } .lvl .bar2 { height: 6px; } .lvl .sm { grid-column: 2; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.tile { display: grid; gap: 0.3rem; padding: 0.9rem; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--line); }
.tile .ic { width: 1.1rem; height: 1.1rem; color: var(--grey-3); } .tile span { font-size: 0.72rem; color: var(--mute); } .tile b { font: 600 1.35rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.achs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.ach { display: flex; gap: 0.75rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--line); opacity: 0.55; }
.ach.got { opacity: 1; border-color: var(--line-2); }
.ai { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); flex: none; } .ai .ic { width: 1.1rem; height: 1.1rem; }
.ach.got .ai { background: var(--white); color: var(--black); }
.ach > div { flex: 1; display: grid; } .ach b { font-weight: 600; font-size: 0.875rem; } .ar { font: 600 0.8rem var(--f-display); color: var(--mute); white-space: nowrap; }
.auth { max-width: 34rem; } .form { display: grid; gap: 0.8rem; margin-top: 0.9rem; } .form .btn { justify-self: start; }
.reccode { font: 600 1.9rem var(--f-display); letter-spacing: 0.12em; padding: 1rem; margin: 1rem 0; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.4); border: 1px dashed var(--line-3); text-align: center; user-select: text; -webkit-user-select: text; }

/* ── leaderboards ── */
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .lb-head .note { margin: 0; }
.lb { display: grid; gap: 0.25rem; }
.lb-r { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0.75rem; border-radius: var(--r-md); transition: background var(--fast); }
.lb-r:hover { background: var(--fill); } .lb-r.me { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.rk { width: 2rem; font: 600 1.05rem var(--f-display); color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; }
.lb-r.top .rk { color: var(--ink); } .lb-r:nth-child(1) .rk { font-size: 1.35rem; }
.lb-r .grow b { display: block; } .lb-v { text-align: right; display: grid; } .lb-v b { font: 600 1.1rem var(--f-display); }
.skel { display: grid; gap: 0.5rem; } .skel i { height: 3rem; border-radius: var(--r-md); background: linear-gradient(90deg, var(--fill), var(--fill-2), var(--fill)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── settings ── */
.settings { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; min-height: 0; align-items: start; }
.set-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.4rem; border-radius: var(--r-lg); background: var(--char-2); border: 1px solid var(--line); }
.set-nav > button { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.8rem; border-radius: var(--r-md); color: var(--mute); font-weight: 600; font-size: 0.875rem; text-align: left; transition: background var(--fast), color var(--fast); }
.set-nav > button:hover { color: var(--ink); background: var(--fill); } .set-nav > button.on { background: var(--fill-3); color: var(--ink); }
.set-nav-foot { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.4rem; }
.set-body { padding: 0.4rem 1.4rem 0.6rem; border-radius: var(--r-lg); background: var(--char-2); border: 1px solid var(--line); min-height: 0; }
.set-h { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); } .set-h > div { flex: 1; } .set-h h3 { font: 600 1.25rem var(--f-display); }
.saved { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--mute); opacity: 0; transition: opacity 0.3s; } .saved .ic { width: 0.95rem; height: 0.95rem; } .saved.on { opacity: 1; }
.set-h + .note { margin-top: 1rem; }
.set-row { display: flex; align-items: center; gap: 1.4rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .lab { flex: 1; min-width: 0; } .set-row .lab b { font-weight: 600; display: block; } .set-row .lab span { color: var(--mute); font-size: 0.8125rem; display: block; margin-top: 0.1rem; }
.set-row .ctl { flex: none; display: flex; align-items: center; gap: 0.75rem; }
.set-row .val { width: 3.2rem; text-align: right; font: 600 0.875rem var(--f-display); font-variant-numeric: tabular-nums; color: var(--grey-4); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.45rem 1.6rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.keys div { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; color: var(--mute); font-size: 0.8125rem; } .keys kbd + kbd { margin-left: 0.25rem; }

/* ── pause ── */
#pause { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(6, 6, 8, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: var(--pad); z-index: 5; animation: fade var(--mid); }
@keyframes fade { from { opacity: 0; } }
#pause[hidden], #hud[hidden], #touch[hidden] { display: none; }
.pause-card { width: min(24rem, 100%); padding: 1.5rem; display: grid; gap: 0.7rem; animation: pop var(--mid) var(--ease); max-height: 100%; overflow-y: auto; }
.pause-card h2 { font-size: 2rem; } .pause-card > .muted { margin-bottom: 0.4rem; }
.pause-card.wide { width: min(60rem, 100%); max-height: 90vh; } .pause-card.wide .settings { grid-template-columns: 12rem 1fr; }
.pc-h { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.4rem; }
.pause-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pbtn { display: grid; gap: 0.5rem; justify-items: start; padding: 0.85rem 0.9rem; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; text-align: left; transition: background var(--fast), border-color var(--fast); }
.pbtn:hover { background: var(--fill-2); border-color: var(--line-2); } .pbtn .ic { color: var(--grey-4); }

/* ── notifications ── */
#toasts { position: fixed; top: 5.2rem; right: var(--pad); display: grid; gap: 0.5rem; justify-items: end; pointer-events: none; z-index: 8; width: min(22rem, calc(100% - 2rem)); }
body.riding #toasts { top: 4.8rem; }
.toast { position: relative; display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem 0.85rem 0.8rem 0.7rem; border-radius: var(--r-lg); background: rgba(16, 17, 20, 0.84); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--sh-2), var(--edge); font-size: 0.85rem; pointer-events: auto; overflow: hidden; animation: tin 0.42s var(--ease); }
.toast .ti { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--fill-2); flex: none; } .toast .ti .ic { width: 1.05rem; height: 1.05rem; }
.toast .tt { flex: 1; display: grid; gap: 0.1rem; } .toast .tt b { font-weight: 650; } .toast .tt span { color: var(--mute); font-size: 0.78rem; }
.toast.k-level .ti, .toast.k-ach .ti, .toast.k-daily .ti, .toast.k-buy .ti { background: var(--white); color: var(--black); }
.toast.k-error { border-color: rgba(255, 120, 110, 0.35); } .toast.k-error .ti { color: #ffb4ab; }
.tlife { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255, 255, 255, 0.35); transform-origin: left; animation: life linear forwards; }
@keyframes life { to { transform: scaleX(0); } }
@keyframes tin { from { opacity: 0; transform: translateX(1rem); } }
.toast.out { opacity: 0; transform: translateX(0.8rem); transition: 0.4s var(--ease); }

/* ── loading ── */
#loading { position: fixed; inset: 0; background: var(--black); display: grid; place-items: center; z-index: 20; transition: opacity 0.45s, visibility 0s 0.45s; }
#loading.done { opacity: 0; visibility: hidden; }
#loading.veil { background: rgba(8, 8, 10, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.load-card { display: grid; justify-items: center; gap: 1rem; }
.load-card .mark { width: 4.6rem; height: 4.6rem; color: var(--white); }
.load-name { font: 600 0.95rem var(--f-display); letter-spacing: 0.42em; padding-left: 0.42em; }
.load-msg { color: var(--mute); font-size: 0.85rem; min-height: 1.3em; }
.load-bar { width: 12rem; height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.load-bar i { display: block; width: 40%; height: 100%; background: #fff; border-radius: 2px; animation: slide 1.1s infinite var(--ease); }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* ── HUD ──
   Widget sizes are in em so the HUD scale setting resizes everything together. */
#hud { position: fixed; inset: 0; pointer-events: none; font-size: calc(16px * var(--hs, 1)); --g: rgba(14, 15, 18, 0.62); }
#hud > * { position: absolute; }
#hud [hidden] { display: none !important; }
#hud .ic { width: 1.1em; height: 1.1em; }
.w-session { top: 1.4em; left: 1.4em; display: flex; align-items: center; gap: 0.7em; padding: 0.45em 1em 0.45em 0.45em; border-radius: 999px; background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.w-session .ico { width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); }
.w-session b { display: block; font: 600 0.85em/1.1 var(--f-display); letter-spacing: 0.04em; } .w-session em { font-style: normal; font-size: 0.72em; color: var(--mute); }
.w-riders { top: 5em; left: 1.4em; width: 15em; padding: 0.7em; border-radius: var(--r-lg); background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: grid; gap: 0.25em; }
.wr-h { display: flex; justify-content: space-between; font: 600 0.62em/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding: 0.2em 0.3em 0.5em; } .wr-h em { font-style: normal; letter-spacing: 0.04em; }
.wr { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 0.6em; align-items: center; padding: 0.35em 0.35em; border-radius: var(--r-sm); }
.wr .av { grid-row: span 2; width: 1.9em; height: 1.9em; font-size: 0.85em; } .wr.pt .av { border-color: var(--white); }
.wr .nm { font-size: 0.8em; font-weight: 600; display: flex; align-items: center; gap: 0.3em; } .wr .nm .ic { width: 0.9em; height: 0.9em; }
.wr .st { grid-column: 2; font-size: 0.68em; color: var(--mute); } .wr .dd { grid-row: span 2; grid-column: 3; grid-row-start: 1; font: 600 0.75em var(--f-display); color: var(--grey-4); }
#hud:not(.tab) .w-riders { opacity: 0.92; }
.w-ctl { top: 1.4em; right: 1.4em; display: flex; gap: 0.4em; pointer-events: auto; }
.hbtn { position: relative; width: 2.75em; height: 2.75em; border-radius: var(--r-md); display: grid; place-items: center; background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background var(--fast), border-color var(--fast); }
.hbtn:hover { border-color: var(--line-3); background: rgba(40, 41, 46, 0.7); }
.hbtn kbd { position: absolute; bottom: -0.55em; left: 50%; transform: translateX(-50%); min-width: 0; height: 1.25em; padding: 0 0.3em; font-size: 0.55em; opacity: 0; transition: opacity var(--fast); }
.hbtn:hover kbd { opacity: 1; }
/* minimap */
.w-map { --mm: 12.5em; width: var(--mm); height: calc(var(--mm) + 1.8em); }
.w-map.s { --mm: 10em; } .w-map.l { --mm: 16em; }
.w-map canvas { width: var(--mm); height: var(--mm); border-radius: 50%; display: block; box-shadow: 0 0.8em 2em rgba(0, 0, 0, 0.45); }
.mm-ring { position: absolute; left: 0; top: 0; width: var(--mm); height: var(--mm); border-radius: 50%; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 0.35em rgba(10, 10, 12, 0.55), inset 0 0 0 calc(0.35em + 1px) var(--line); pointer-events: none; }
.mm-ring .n { position: absolute; inset: 0; display: block; font: 700 0.62em var(--f-display); color: var(--white); text-align: center; }
.mm-ring .n::before { content: "N"; position: absolute; left: 50%; top: -0.15em; transform: translateX(-50%); padding: 0.15em 0.4em; border-radius: 0.4em; background: var(--black); border: 1px solid var(--line-2); }
.mm-ring .n { font-size: 0; } .mm-ring .n::before { font-size: 0.62rem; }
.mm-foot { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; } .mm-foot span { display: inline-block; padding: 0.25em 0.8em; border-radius: 999px; background: var(--g); border: 1px solid var(--line); font: 600 0.68em var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-4); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
/* speedometer */
.w-speed { width: 15em; height: 12.5em; }
.w-speed::before { content: ""; position: absolute; left: 1.6em; right: 1.6em; top: 1.4em; bottom: 1.2em; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 8, 10, 0.55), rgba(8, 8, 10, 0.28) 75%, transparent); }
.gauge { position: absolute; inset: 0; width: 100%; height: auto; overflow: visible; }
.gauge .track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 7; stroke-linecap: round; }
.gauge .fill { fill: none; stroke: var(--white); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }
.gauge .fill.hot { stroke: #ffd7cf; }
.gauge .ticks line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; } .gauge .ticks line.mj { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.8; } .gauge .ticks line.red { stroke: #ff8f80; }
.gauge .ticks text { fill: rgba(255, 255, 255, 0.5); font: 600 8.5px var(--f-display); text-anchor: middle; }
.gauge .dot { fill: #fff; filter: drop-shadow(0 0 4px #fff); }
.sp-core { position: absolute; left: 0; right: 0; top: 3.55em; display: grid; justify-items: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.sp-n { font: 600 3.6em/0.9 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sp-u { font: 600 0.62em var(--f-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); margin-top: 0.25em; }
.sp-sub { position: absolute; left: 0; right: 0; top: 12.4em;   /* own em: font-size is 0.66em */ text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; gap: 0.5em; font: 600 0.66em var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-4); }
.sp-sub i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.sp-bars { position: absolute; left: 3em; right: 3em; bottom: 0.9em; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.6em; align-items: center; }
.sp-bars > span:not(.lbl) { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; display: flex; }
.sp-bars .br { justify-content: flex-end; } .sp-bars i { display: block; height: 100%; background: var(--white); transition: width 0.08s; }
.sp-bars .br i { background: #ffb3a8; }
.sp-bars .lbl { font: 600 0.58em var(--f-display); letter-spacing: 0.14em; color: var(--faint); }
/* wheelie gauge */
.w-wheelie { width: 12.5em; padding: 0.7em 0.9em 0.75em; border-radius: var(--r-lg); background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); opacity: 0; transform: translateY(0.5em); transition: opacity 0.25s, transform 0.3s var(--ease); }
.w-wheelie.on { opacity: 1; transform: none; }
.wg { width: 100%; height: auto; display: block; }
.wg .tk { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 5; stroke-linecap: round; }
.wg .zone { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 5; stroke-linecap: round; }
.wg .nd { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; transition: stroke 0.2s; } .wg .hub { fill: #fff; }
.w-wheelie.over .wg .nd { stroke: #ff8f80; } .w-wheelie.over .wg .zone { stroke: rgba(255, 143, 128, 0.6); }
.wh-angle { position: absolute; top: 2.5em; left: 0; right: 0; text-align: center; font: 600 1.3em var(--f-display); font-variant-numeric: tabular-nums; } .wh-angle span { font-size: 0.6em; color: var(--mute); }
.wh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3em; margin-top: 0.5em; padding-top: 0.55em; border-top: 1px solid var(--line); }
.wh-stats div { display: grid; } .wh-stats span { font: 600 0.52em var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.wh-stats b { font: 600 1em var(--f-display); font-variant-numeric: tabular-nums; } .wh-stats em { font-style: normal; font-size: 0.6em; color: var(--mute); margin-left: 0.1em; }
/* tricks */
.w-tricks { padding: 0.6em 0.75em 0.65em; border-radius: var(--r-lg); background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); text-align: center; min-width: 19em; opacity: 0; transform: translateY(0.5em); transition: opacity 0.25s, transform 0.3s var(--ease); }
.w-tricks.on { opacity: 1; transform: none; }
.w-tricks.pulse .tk-name b { animation: tkp 0.3s var(--ease); } @keyframes tkp { from { opacity: 0.3; transform: translateY(0.2em); } }
.tk-row { display: flex; gap: 0.3em; justify-content: center; }
.tk-row i { position: relative; width: 2.3em; height: 2.3em; border-radius: 0.6em; display: grid; place-items: center; border: 1px solid transparent; color: var(--mute); transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.tk-row i svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tk-row i em { position: absolute; right: 0.18em; bottom: 0.05em; font: 600 0.52em var(--f-display); font-style: normal; color: var(--faint); }
.tk-row i.sel { background: var(--fill-3); border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.w-tricks.live .tk-row i.sel { background: var(--white); color: var(--black); border-color: #fff; } .w-tricks.live .tk-row i.sel em { color: var(--black); }
.tk-name { display: flex; justify-content: center; align-items: baseline; gap: 0.6em; margin: 0.45em 0 0.35em; }
.tk-name b { font: 600 1em var(--f-display); letter-spacing: 0.02em; } .tk-name span { font: 600 0.62em var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.tk-bar { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 0 0.3em 0.45em; } .tk-bar i { display: block; height: 100%; width: 0; background: #fff; }
.tk-keys { display: flex; gap: 0.9em; justify-content: center; font-size: 0.68em; color: var(--mute); } .tk-keys span { display: inline-flex; gap: 0.35em; align-items: center; } .tk-keys kbd { height: 1.6em; font-size: 0.85em; }
.lockhint { left: 50%; top: 40%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.5em; padding: 0.6em 1.1em; border-radius: 999px; font-size: 0.82em; background: rgba(14, 14, 16, 0.65); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); opacity: 0; transition: opacity 0.3s; }
.lockhint.on { opacity: 1; }
.w-hints { display: grid; gap: 0.35em; padding: 0.75em 0.9em; border-radius: var(--r-md); background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 0.75em; color: var(--mute); transition: opacity 0.6s; }
.w-hints div { display: flex; justify-content: space-between; gap: 1.4em; align-items: center; } .w-hints .k { display: flex; gap: 0.2em; } .w-hints.gone { opacity: 0; }
/* layouts — the middle of the screen belongs to the rider; widgets live at the edges, tricks up in the sky */
.w-tricks { left: 50%; top: 1.2em; transform: translate(-50%, -0.5em); } .w-tricks.on { transform: translate(-50%, 0); }
.lay-centered .w-speed { left: 50%; bottom: 0.2em; transform: translateX(-50%) scale(0.86); transform-origin: 50% 100%; }
.lay-centered .w-speed::before { opacity: 0.6; }
.lay-centered .w-wheelie { right: 1.4em; bottom: 1.4em; }
.lay-centered .w-map { left: 1.4em; bottom: 1.2em; }
.lay-centered .w-hints { right: 1.4em; top: 5em; }
.lay-classic .w-speed { right: 1.2em; bottom: 0.7em; } .lay-classic .w-map { left: 1.4em; bottom: 1.2em; }
.lay-classic .w-wheelie { right: 16em; bottom: 1.4em; }
.lay-classic .w-hints { right: 1.4em; top: 5em; }
.lay-compact { font-size: calc(13px * var(--hs, 1)); }
.lay-compact .w-speed { right: 0.4em; bottom: 0.2em; } .lay-compact .w-map { left: 1.2em; bottom: 1em; } .lay-compact .w-wheelie { right: 15.5em; bottom: 1.2em; } .lay-compact .w-hints { display: none; }
/* full map */
.mapscreen { inset: 0; display: grid; place-items: center; padding: 1.5em; background: rgba(6, 6, 8, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: auto; font-size: 16px; animation: fade var(--mid); }
.mapscreen[hidden] { display: none; }
.ms-panel { width: min(80rem, 100%); height: min(52rem, 100%); display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-xl); background: var(--char); border: 1px solid var(--line-2); box-shadow: var(--sh-3); overflow: hidden; animation: pop var(--mid) var(--ease); }
.ms-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); } .ms-head > div:first-child { flex: 1; }
.ms-keys { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--mute); } .ms-keys span { display: inline-flex; gap: 0.35rem; align-items: center; }
.ms-body { display: grid; grid-template-columns: 1fr 17rem; min-height: 0; }
.ms-view { position: relative; overflow: hidden; cursor: grab; } .ms-view:active { cursor: grabbing; }
.ms-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-labels { position: absolute; inset: 0; pointer-events: none; }
.ms-dl { position: absolute; transform: translate(-50%, -50%); font: 600 0.78rem var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 3px #000, 0 0 12px rgba(0, 0, 0, 0.8); white-space: nowrap; }
.ms-pl { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.35rem; }
.ms-pl svg { width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; background: var(--white); stroke: var(--black); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.ms-pl em { font: 600 0.7rem var(--f-text); font-style: normal; padding: 0.15rem 0.4rem; border-radius: 0.3rem; background: rgba(0, 0, 0, 0.7); white-space: nowrap; }
.ms-side { border-left: 1px solid var(--line); padding: 1rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ms-d { padding: 0.55rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.15rem; } .ms-d b { font: 600 0.9rem var(--f-display); } .ms-d span { font-size: 0.75rem; color: var(--mute); }
.ms-side .eyebrow { margin-bottom: 0.4rem; }
.ms-p { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.45rem 0.5rem; border-radius: var(--r-sm); font-size: 0.82rem; text-align: left; color: var(--grey-4); transition: background var(--fast), color var(--fast); }
.ms-p:hover { background: var(--fill-2); color: var(--ink); } .ms-p svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* touch controls */
#touch { position: fixed; inset: 0; pointer-events: none; }
#touch button { position: absolute; pointer-events: auto; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: rgba(20, 20, 22, 0.5); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; font: 600 0.66rem var(--f-display); letter-spacing: 0.08em; touch-action: none; }
#touch button.down { background: rgba(255, 255, 255, 0.3); }
#touch .tl { left: 1.2rem; bottom: 6.6rem; } #touch .tr { left: 6.4rem; bottom: 6.6rem; }
#touch .tg { right: 1.2rem; bottom: 6.6rem; } #touch .tb { right: 6.4rem; bottom: 6.6rem; }
#touch .tw { right: 1.2rem; bottom: 11.8rem; } #touch .th { right: 6.4rem; bottom: 11.8rem; }

/* accessibility modes */
body.contrast { --glass: rgba(8, 8, 10, 0.9); --line: rgba(255, 255, 255, 0.3); --line-2: rgba(255, 255, 255, 0.55); --mute: rgba(255, 255, 255, 0.85); --faint: rgba(255, 255, 255, 0.65); --char-2: #0e0f11; }
body.reduce *, body.reduce *::before, body.reduce *::after { transition-duration: 0.01s !important; animation-duration: 0.01s !important; }

/* ── responsive ── */
@media (max-width: 70rem) {
  .home { grid-template-columns: minmax(18rem, 26rem) 1fr; grid-template-areas: "hero side"; } .home-side { align-self: end; }
  .cols2 { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } .achs { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; overflow-x: auto; } .set-nav > button { white-space: nowrap; } .set-nav-foot { display: none; }
  .ms-body { grid-template-columns: 1fr; } .ms-side { display: none; }
}
@media (max-width: 56rem) {
  :root { --rail: 0px; }
  .rail { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 4.2rem; flex-direction: row; padding: 0 0.4rem; border-right: 0; border-top: 1px solid var(--line); }
  .rail .brand, .rail-foot { display: none; } .rail-items { flex-direction: row; margin: 0; justify-content: space-around; width: 100%; } .ri { width: auto; flex: 1; } .ri span { display: none; } .ri.on::before { left: 30%; right: 30%; top: auto; bottom: -0.4rem; width: auto; height: 3px; }
  .screen { padding-bottom: 5rem; } .bar .chip-btn span, .me-t .xpb { display: none; } .bar-title .eyebrow { display: none; }
  .home { grid-template-columns: 1fr; grid-template-areas: "hero" "side"; align-content: end; overflow-y: auto; } .home-side { display: none; } .display { font-size: 2.4rem; } .lede { display: none; }
  .panel-right { margin-top: auto; width: 100%; max-height: 52vh; } .stage-title { bottom: auto; top: 5rem; width: auto; right: var(--pad); } .stage-title p, .views .muted { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; } .hero-card { flex-direction: column; align-items: flex-start; }
  .w-hints { display: none; }
}
@media (max-width: 36rem) { .set-row { flex-wrap: wrap; gap: 0.6rem; } input[type="range"] { width: 9rem; } .bar .chip-btn { display: none; } }
@media (pointer: coarse) { .lay-centered .w-speed { left: auto; right: 0.5em; transform: none; bottom: auto; top: 4em; font-size: 12px; } .lay-centered .w-map { bottom: auto; top: 4.6em; left: auto; right: 13em; } }

/* ── open-world HUD: battery, navigation, charging, phone button ── */
.w-bat { display: flex; align-items: center; gap: 0.55em; padding: 0.4em 0.75em 0.4em 0.6em; border-radius: 999px; background: var(--g); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-variant-numeric: tabular-nums; }
.bt-ico { position: relative; width: 1.9em; height: 0.95em; border-radius: 0.22em; border: 1.5px solid rgba(255, 255, 255, 0.75); padding: 1.5px; display: flex; }
.bt-ico::after { content: ""; position: absolute; right: -0.28em; top: 0.25em; width: 0.16em; height: 0.35em; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.75); }
.bt-ico i { display: block; height: 100%; border-radius: 1px; background: #fff; transition: width 0.4s; }
.w-bat b { font: 600 0.92em var(--f-display); } .w-bat > span:last-child { font: 600 0.62em var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.w-bat.low .bt-ico i { background: #ffc66b; } .w-bat.low b { color: #ffd593; }
.w-bat.crit { border-color: rgba(255, 120, 100, 0.6); animation: btc 1.1s infinite; } .w-bat.crit .bt-ico i { background: #ff8270; } .w-bat.crit b { color: #ffab9e; }
@keyframes btc { 50% { box-shadow: 0 0 0 0.25em rgba(255, 110, 90, 0.18); } }
.w-bat.chg .bt-ico i { background: #6fe0a6; } .w-bat.chg > span:last-child { color: #8fe9bb; }
.w-nav { left: 50%; top: 1.2em; transform: translate(-50%, -0.6em); display: flex; align-items: center; gap: 0.8em; min-width: 17em; max-width: 30em; padding: 0.55em 1.1em 0.55em 0.55em; border-radius: var(--r-lg); background: var(--g); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); opacity: 0; transition: opacity 0.25s, transform 0.3s var(--ease); }
.w-nav.on { opacity: 1; transform: translate(-50%, 0); }
.nv-ico { flex: none; width: 2.7em; height: 2.7em; border-radius: var(--r-md); background: #fff; color: #000; display: grid; place-items: center; }
.nv-ico svg { width: 1.7em; height: 1.7em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nv-t { display: grid; gap: 0.1em; min-width: 0; } .nv-t b { font: 600 0.98em var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-t span { font-size: 0.72em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud:has(.w-nav.on) .w-tricks { top: 5.6em; }
.w-charge { left: 50%; bottom: 24%; transform: translate(-50%, 0.6em); display: flex; align-items: center; gap: 0.8em; padding: 0.6em 1.2em 0.6em 0.6em; border-radius: 999px; background: var(--g); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); opacity: 0; transition: opacity 0.25s, transform 0.3s var(--ease); }
.w-charge.on { opacity: 1; transform: translate(-50%, 0); }
.cg-ring { width: 2.9em; height: 2.9em; } .cg-ring circle { fill: none; stroke-width: 3.5; } .cg-ring .t { stroke: rgba(255, 255, 255, 0.12); } .cg-ring .f { stroke: #fff; stroke-linecap: round; transition: stroke-dasharray 0.3s; }
.w-charge.live .cg-ring .f { stroke: #6fe0a6; filter: drop-shadow(0 0 4px rgba(111, 224, 166, 0.6)); }
.cg-ico { position: absolute; left: 0.6em; top: 0.6em; width: 2.9em; height: 2.9em; display: grid; place-items: center; } .w-charge.live .cg-ico { color: #8fe9bb; animation: cgp 1.6s infinite; }
@keyframes cgp { 50% { opacity: 0.45; } }
.cg-t { display: grid; gap: 0.1em; } .cg-t b { font: 600 0.92em var(--f-display); font-variant-numeric: tabular-nums; } .cg-t span { font-size: 0.72em; color: var(--mute); }
.hb-badge { position: absolute; top: -0.35em; right: -0.35em; min-width: 1.35em; height: 1.35em; padding: 0 0.3em; border-radius: 999px; background: #fff; color: #000; font: 700 0.62em/1.35em var(--f-display); font-style: normal; text-align: center; }
.lay-classic .w-bat { right: 1.6em; bottom: 13.6em; }
.lay-centered .w-bat { left: 50%; bottom: 11.2em; transform: translateX(-50%); }
.lay-compact .w-bat { right: 1em; bottom: 13em; }
body.phone-open #hud .w-ctl, body.phone-open #hud .w-hints { opacity: 0.25; }

/* ── phone ── */
#phone { position: fixed; right: max(2rem, 4vw); top: 50%; transform: translateY(-50%); z-index: 9; animation: phin 0.35s var(--ease); }
#phone[hidden] { display: none; }
@keyframes phin { from { opacity: 0; transform: translateY(-46%) scale(0.97); } }
.ph-frame { width: 22rem; height: min(44rem, calc(100vh - 3rem)); padding: 0.55rem; border-radius: 3rem; background: linear-gradient(145deg, #3a3b40, #121316 40%, #26272b); box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px #000; }
.ph-screen { position: relative; height: 100%; border-radius: 2.5rem; overflow: hidden; background: radial-gradient(120% 70% at 20% 0%, #2a2c33, #0d0e11 60%); display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); font-size: 0.9rem; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem 0.4rem; font: 600 0.78rem var(--f-display); font-variant-numeric: tabular-nums; }
.ph-isl { width: 5.6rem; height: 1.55rem; border-radius: 999px; background: #000; }
.ph-st-r { display: flex; align-items: center; gap: 0.35rem; } .ph-st-r .ic { width: 0.85rem; height: 0.85rem; } .ph-st-r span { font-size: 0.66rem; color: var(--mute); }
.ph-bat { width: 1.5rem; height: 0.72rem; border-radius: 0.2rem; border: 1px solid rgba(255, 255, 255, 0.6); padding: 1px; display: flex; } .ph-bat i { display: block; height: 100%; border-radius: 1px; background: #fff; } .ph-bat.low i { background: #ff8270; }
.ph-body { min-height: 0; overflow-y: auto; padding: 0.4rem 0.9rem 0.8rem; scrollbar-width: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ph-bar { display: grid; place-items: center; padding: 0.35rem 0 0.6rem; } .ph-bar button { padding: 0.4rem 2rem; } .ph-bar i { display: block; width: 7.5rem; height: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.75); }
.ph-home { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 0.8rem; }
.ph-widget { display: grid; gap: 0.15rem; padding: 1rem 1.1rem; border-radius: 1.4rem; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.ph-widget b { font: 600 2rem/1.1 var(--f-display); } .ph-widget span:last-child { font-size: 0.78rem; color: var(--mute); }
.ph-widget.nav { background: #fff; color: #000; } .ph-widget.nav .eyebrow, .ph-widget.nav span:last-child { color: rgba(0, 0, 0, 0.6); } .ph-widget.nav b { font-size: 1.15rem; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 0.5rem; padding: 0.6rem 0.2rem; }
.ph-grid button { display: grid; justify-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--grey-4); }
.ph-ico { position: relative; width: 3.6rem; height: 3.6rem; border-radius: 1.05rem; display: grid; place-items: center; background: linear-gradient(160deg, #f6f6f4, #c9cacd); color: #111; box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.35); transition: transform var(--fast) var(--ease); }
.ph-grid button:hover .ph-ico { transform: translateY(-2px) scale(1.04); } .ph-ico .ic { width: 1.6rem; height: 1.6rem; }
.ph-badge { position: absolute; top: -0.3rem; right: -0.3rem; min-width: 1.2rem; height: 1.2rem; border-radius: 999px; background: #ff5a4a; color: #fff; font: 700 0.62rem/1.2rem var(--f-display); font-style: normal; }
.ph-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0 0.1rem; } .ph-head h3 { flex: 1; font: 600 1.25rem var(--f-display); margin: 0; }
.ph-head button { min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem; border-radius: 999px; display: grid; place-items: center; background: var(--fill-2); font-size: 0.75rem; } .ph-head .ic { width: 1.05rem; height: 1.05rem; }
.ph-map { position: relative; flex: none; height: 15rem; border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--line); cursor: grab; touch-action: none; } .ph-map:active { cursor: grabbing; }
.ph-map canvas { width: 100%; height: 100%; display: block; }
.ph-zoom { position: absolute; right: 0.5rem; bottom: 0.5rem; display: grid; gap: 0.3rem; } .ph-zoom button { width: 2rem; height: 2rem; border-radius: 0.6rem; background: rgba(10, 10, 12, 0.75); border: 1px solid var(--line-2); font: 600 1rem var(--f-display); }
.ph-card { display: grid; gap: 0.6rem; padding: 0.8rem 0.9rem; border-radius: 1.1rem; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); }
.ph-card > div:first-child { display: grid; gap: 0.1rem; } .ph-card b { font: 600 0.98rem var(--f-display); } .ph-card span { font-size: 0.75rem; color: var(--mute); }
.ph-row { display: flex; gap: 0.4rem; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; height: 2.1rem; padding: 0 0.85rem; border-radius: 999px; background: var(--fill-2); border: 1px solid var(--line); font: 600 0.75rem var(--f-display); white-space: nowrap; transition: background var(--fast); }
.ph-btn:hover { background: var(--fill-3); } .ph-btn.pri { background: #fff; color: #000; border-color: #fff; } .ph-btn.pri:hover { background: #e6e6e4; } .ph-btn.ghost { background: transparent; } .ph-btn .ic { width: 0.95rem; height: 0.95rem; }
.ph-row .ph-btn.pri { flex: 1; }
.ph-hint { font-size: 0.75rem; color: var(--mute); text-align: center; padding: 0.2rem; }
.ph-list { display: grid; gap: 0.1rem; }
.ph-list button { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.55rem; border-radius: 0.8rem; text-align: left; font-size: 0.8rem; transition: background var(--fast); }
.ph-list button:hover { background: var(--fill-2); } .ph-list span { flex: 1; } .ph-list em { font-style: normal; font-size: 0.7rem; color: var(--mute); }
.ph-list svg, .ph-poi svg, .ph-poi .ic { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-poi { flex: none; width: 2rem; height: 2rem; border-radius: 0.65rem; display: grid; place-items: center; background: var(--fill-2); }
.ph-sec { display: grid; gap: 0.3rem; } .ph-sec .eyebrow { padding: 0.3rem 0.2rem 0.1rem; }
.ph-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.6rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.045); }
.ph-item > span:not(.ph-poi) { flex: 1; display: grid; gap: 0.05rem; min-width: 0; } .ph-item b { font-size: 0.82rem; font-weight: 600; } .ph-item em { font-style: normal; font-size: 0.7rem; color: var(--mute); }
.ph-item.col { flex-direction: column; align-items: stretch; gap: 0.45rem; } .ph-item.dim { opacity: 0.45; } .ph-item.me { background: rgba(255, 255, 255, 0.14); }
.ph-item .rk { width: 1.4rem; text-align: center; font: 600 0.85rem var(--f-display); color: var(--mute); } .ph-item .v { font: 600 0.82rem var(--f-display); font-variant-numeric: tabular-nums; }
.ph-item .av { width: 2rem; height: 2rem; flex: none; }
.ph-p { margin: 0; font-size: 0.78rem; color: var(--mute); line-height: 1.45; padding: 0.2rem; }
.ph-seg { display: flex; gap: 0.2rem; padding: 0.2rem; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); }
.ph-seg button { flex: 1; height: 1.9rem; border-radius: 999px; font: 600 0.7rem var(--f-display); color: var(--mute); transition: background var(--fast), color var(--fast); } .ph-seg button.on { background: #fff; color: #000; }
.ph-chips { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; flex: none; } .ph-chips button { flex: none; height: 1.8rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line-2); font: 600 0.7rem var(--f-display); color: var(--grey-4); } .ph-chips button.on { background: var(--fill-3); color: var(--ink); border-color: var(--line-3); }
.ph-lb { display: grid; gap: 0.25rem; }
.ph-prof { display: grid; justify-items: center; gap: 0.25rem; padding: 0.4rem 0 0.2rem; } .ph-prof .av.big { width: 4rem; height: 4rem; font-size: 1.5rem; } .ph-prof b { font: 600 1.1rem var(--f-display); } .ph-prof > span { font-size: 0.75rem; color: var(--mute); }
.ph-prof .bar2 { width: 60%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-top: 0.3rem; } .ph-prof .bar2 i { display: block; height: 100%; background: #fff; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; } .ph-tile { display: grid; gap: 0.1rem; padding: 0.6rem 0.7rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.05); } .ph-tile span { font-size: 0.66rem; color: var(--mute); } .ph-tile b { font: 600 0.92rem var(--f-display); }
@media (max-width: 56rem) { #phone { right: 50%; transform: translate(50%, -50%); } .ph-frame { width: min(22rem, calc(100vw - 2rem)); } }
.ph-item .av, .ph-prof .av { border-radius: 50%; background: var(--fill-3); border: 1px solid var(--line-2); font: 600 0.85rem var(--f-display); } .ph-item .av.on { border-color: #fff; }
@media (max-width: 62rem) { .w-nav { top: 4.6em; } #hud:has(.w-nav.on) .w-tricks { top: 9em; } }

/* ════════ colour: accents, metals ════════ */
:root {
  --gold: #ffd45c; --gold-2: #e0a526; --gold-3: #8f5a12; --silver: #dfe5ee; --silver-2: #a9b3c1; --bronze: #e7a06c; --bronze-2: #b86a37;
  --blue: #4c8dff; --blue-2: #2f8cff; --green: #2fd08a; --orange: #ff8a3d; --violet: #a77bff; --pink: #ff5d8f; --teal: #26b5a0; --amber: #f2b93b;
  --g-gold: linear-gradient(135deg, #fff4c2 0%, #ffd45c 35%, #e0a526 75%, #8f5a12 100%);
  --g-silver: linear-gradient(135deg, #ffffff 0%, #dfe5ee 35%, #a9b3c1 75%, #5f6876 100%);
  --g-bronze: linear-gradient(135deg, #ffd9bd 0%, #e7a06c 35%, #b86a37 75%, #6e3a18 100%);
}
.chip-btn[data-to="shop"] .ic { color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 212, 92, 0.45)); }
.trophy, .medal, .emblem { display: block; flex: none; }
.trophy { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }
.trophy.gold { filter: drop-shadow(0 0 10px rgba(255, 212, 92, 0.35)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }

/* ════════ session pill ════════ */
.w-session { padding: 0.35em 0.4em 0.35em 0.35em; gap: 0.75em; background: linear-gradient(100deg, rgba(255, 255, 255, 0.07), transparent 60%), var(--g); border-color: var(--line-2); box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.35); --kc: var(--blue); }
.w-session.k-party { --kc: var(--violet); } .w-session.k-open { --kc: var(--green); }
.w-session .ico { width: 2.5em; height: 2.5em; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--kc) 75%, #fff), var(--kc) 55%, color-mix(in srgb, var(--kc) 55%, #000)); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0.3em 0.9em color-mix(in srgb, var(--kc) 45%, transparent); }
.w-session .ico .ic { width: 1.2em; height: 1.2em; }
.ss-t { display: grid; gap: 0.15em; min-width: 0; }
.ss-t b { display: flex; align-items: center; gap: 0.45em; font: 600 0.95em/1.1 var(--f-display); letter-spacing: 0.02em; }
.ss-t .live { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--kc); box-shadow: 0 0 0 0 var(--kc); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kc) 70%, transparent); } 70% { box-shadow: 0 0 0 0.45em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ss-t em { display: flex; gap: 0.45em; font-style: normal; font-size: 0.74em; color: var(--mute); white-space: nowrap; }
.ss-d:not(:empty)::before { content: "·"; margin-right: 0.45em; color: var(--faint); } .ss-d { color: var(--grey-4); }
.ss-n { display: flex; align-items: center; gap: 0.3em; padding: 0.3em 0.6em; border-radius: 999px; background: var(--fill-2); font: 600 0.78em var(--f-display); } .ss-n .ic { width: 1em; height: 1em; }
.ss-lv { position: relative; width: 2.35em; height: 2.6em; display: grid; place-items: center; margin-left: 0.2em; }
.ss-lv .emblem { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0.15em 0.4em rgba(0, 0, 0, 0.5)); }
.ss-lv b { position: relative; font: 700 0.82em var(--f-display); color: #1a1208; margin-top: -0.15em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.ss-lv .emblem path:last-child { display: none; }

/* ════════ world map ════════ */
.mapscreen { padding: 0; place-items: stretch; background: #0d0f12; }
.wm { position: absolute; inset: 0; overflow: hidden; font-size: 16px; animation: fade var(--mid); }
.wm-view { position: absolute; inset: 0; cursor: grab; touch-action: none; } .wm-view.drag { cursor: grabbing; }
.wm-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm > :not(.wm-view) { position: absolute; }
.wm-top, .wm-side, .wm-tools, .wm-card, .wm-foot > div, .wm-compass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 50%), rgba(14, 15, 18, 0.78); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45); }
.wm-top { top: 1rem; left: 1rem; right: 1rem; display: flex; align-items: center; gap: 1.4rem; padding: 0.7rem 0.75rem 0.7rem 1.2rem; border-radius: var(--r-xl); }
.wm-title h2 { font-size: 1.45rem; letter-spacing: 0.01em; }
.wm-where { flex: 1; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.78rem; color: var(--mute); }
.wm-where > span { padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wm-where .lv { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--grey-4); background: rgba(47, 140, 255, 0.14); border-color: rgba(77, 163, 255, 0.35); }
.wm-where .lv i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 8px var(--blue-2); } .wm-where b { color: var(--ink); }
.wm-keys { display: flex; gap: 0.8rem; font-size: 0.75rem; color: var(--mute); } .wm-keys span { display: inline-flex; gap: 0.3rem; align-items: center; }
.wm-side { top: 6.1rem; left: 1rem; bottom: 1rem; width: 19rem; border-radius: var(--r-xl); display: flex; flex-direction: column; overflow: hidden; }
.wm-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.9rem; border-bottom: 1px solid var(--line); }
.wm-chip { display: inline-flex; align-items: center; gap: 0.4rem; height: 1.85rem; padding: 0 0.7rem 0 0.55rem; border-radius: 999px; border: 1px solid var(--line-2); font: 600 0.72rem var(--f-display); color: var(--faint); transition: all var(--fast); }
.wm-chip i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--grey-2); transition: background var(--fast); }
.wm-chip.on { color: var(--ink); border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: color-mix(in srgb, var(--pc) 14%, transparent); } .wm-chip.on i { background: var(--pc); box-shadow: 0 0 8px var(--pc); }
.wm-list { flex: 1; overflow-y: auto; padding: 0.4rem 0.6rem 1rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.wm-grp { display: grid; gap: 0.15rem; margin-top: 0.6rem; } .wm-grp .eyebrow { padding: 0.2rem 0.4rem 0.3rem; }
.wm-place { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.45rem; border-radius: var(--r-md); text-align: left; transition: background var(--fast); }
.wm-place:hover { background: var(--fill-2); }
.wm-place .pin, .wm-card .pin { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 0.7rem; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 85%, #fff), var(--pc)); color: #0b0c0e; box-shadow: 0 0.25rem 0.8rem color-mix(in srgb, var(--pc) 35%, transparent); }
.wm-place svg, .wm-card .pin svg, .wm-card .pin .ic { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wm-place .nm { flex: 1; display: grid; min-width: 0; } .wm-place b { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wm-place em { font-style: normal; font-size: 0.7rem; color: var(--mute); }
.wm-place .dd { font: 600 0.75rem var(--f-display); color: var(--grey-4); font-variant-numeric: tabular-nums; }
.wm-area { padding: 0.5rem 0.5rem; border-radius: var(--r-sm); display: grid; gap: 0.1rem; } .wm-area b { font: 600 0.82rem var(--f-display); } .wm-area span { font-size: 0.72rem; color: var(--mute); line-height: 1.35; }
.wm-tools { top: 6.1rem; right: 1rem; display: grid; gap: 0.25rem; padding: 0.35rem; border-radius: var(--r-lg); }
.wm-tools button { width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--grey-4); transition: background var(--fast), color var(--fast); }
.wm-tools button:hover { background: var(--fill-2); color: var(--ink); } .wm-tools .ic { width: 1.15rem; height: 1.15rem; }
.wm-tools .tg { color: var(--faint); } .wm-tools .tg.on { color: #0b0c0e; background: var(--white); }
.wm-tools .sep { height: 1px; margin: 0.15rem 0.35rem; background: var(--line-2); }
.wm-compass { right: 4.6rem; top: 6.1rem; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; }
.wm-compass b { font: 700 0.8rem var(--f-display); margin-top: -0.9rem; color: #ff6b5e; } .wm-compass i { position: absolute; left: 50%; top: 50%; width: 0.4rem; height: 1.6rem; transform: translate(-50%, -50%); background: linear-gradient(#ff6b5e 50%, #e8e8e6 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.wm-compass b { position: relative; z-index: 1; }
.wm-card { left: 50%; bottom: 5.4rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.9rem; min-width: 26rem; max-width: calc(100% - 44rem); padding: 0.75rem 0.75rem 0.75rem 0.85rem; border-radius: var(--r-xl); border-color: color-mix(in srgb, var(--pc) 45%, var(--line-2)); animation: wmc var(--mid) var(--ease); }
@keyframes wmc { from { opacity: 0; transform: translate(-50%, 0.6rem); } }
.wm-card[hidden] { display: none; }
.wm-card .pin { width: 2.8rem; height: 2.8rem; border-radius: 0.95rem; } .wm-card .pin svg, .wm-card .pin .ic { width: 1.4rem; height: 1.4rem; }
.wm-card .ct { flex: 1; display: grid; gap: 0.1rem; min-width: 0; } .wm-card .ct b { font: 600 1.1rem var(--f-display); } .wm-card .ct > span:last-child { font-size: 0.78rem; color: var(--mute); }
.wm-card .eyebrow { color: color-mix(in srgb, var(--pc) 70%, #fff); }
.wm-card .ca { display: flex; gap: 0.4rem; } .wm-card .btn.primary { background: var(--pc); border-color: var(--pc); color: #0b0c0e; }
.btn.icon.sm { width: 2.1rem; padding: 0; }
.wm-foot { left: 21rem; right: 1rem; bottom: 1rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; pointer-events: none; }
.wm-foot > div { pointer-events: auto; border-radius: 999px; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.55rem 1.1rem; font-size: 0.72rem; color: var(--grey-4); }
.wm-legend span { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.lg { display: inline-block; width: 1.4rem; height: 0.42rem; border-radius: 0.3rem; }
.lg.hw { background: #f2b93b; box-shadow: 0 0 0 1.5px #6b4a0c; } .lg.rd { background: #f3f2ee; box-shadow: 0 0 0 1.5px #55575d; }
.lg.tr { height: 0.2rem; background: repeating-linear-gradient(90deg, #d39257 0 5px, transparent 5px 8px); } .lg.pt { height: 0.15rem; background: repeating-linear-gradient(90deg, #efe6d2 0 2px, transparent 2px 5px); }
.lg.wa { background: linear-gradient(90deg, #4f8db0, #2f5a78); height: 0.7rem; } .lg.fo { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4d7e3c, #2f5a2c); }
.lg.me { width: 0; height: 0; border-radius: 0; border-left: 0.4rem solid transparent; border-right: 0.4rem solid transparent; border-bottom: 0.75rem solid var(--blue-2); }
.lg.rt { background: var(--blue-2); box-shadow: 0 0 0 1.5px #fff; }
.wm-scale { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; font: 600 0.72rem var(--f-display); color: var(--grey-4); }
.wm-scale i { display: block; height: 0.45rem; border: 2px solid #fff; border-top: 0; min-width: 2rem; }
.ms-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ms-dl { position: absolute; transform: translate(-50%, -50%); font: 700 0.72rem var(--f-display); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.9); white-space: nowrap; }
.ms-dl.big { font-size: 0.95rem; letter-spacing: 0.45em; color: rgba(255, 255, 255, 0.55); }
.ms-rl { position: absolute; font: 700 0.62rem var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; padding: 0.12rem 0.45rem; border-radius: 0.3rem; background: rgba(250, 250, 248, 0.92); color: #2b2d31; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.ms-rl.highway { background: #f2b93b; color: #3b2804; }
.ms-pl { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.35rem; pointer-events: none; }
.ms-pl svg { width: 1.75rem; height: 1.75rem; padding: 0.32rem; border-radius: 50%; background: var(--pc); stroke: #0b0c0e; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, 0.55); }
.ms-pl em { font: 600 0.72rem var(--f-text); font-style: normal; padding: 0.18rem 0.5rem; border-radius: 0.4rem; background: rgba(10, 11, 13, 0.82); border: 1px solid rgba(255, 255, 255, 0.12); white-space: nowrap; }
.ms-pl.sel svg { transform: scale(1.25); box-shadow: 0 0 0 3px #fff, 0 0 18px var(--pc); }
@media (max-width: 70rem) { .wm-side { display: none; } .wm-foot { left: 1rem; } .wm-card { max-width: calc(100% - 2rem); min-width: 0; } .wm-keys { display: none; } }
@media (max-width: 56rem) { .wm-legend { display: none; } .wm-where > span:not(.lv) { display: none; } }

/* ════════ profile ════════ */
.profile2 { display: grid; gap: 1rem; }
.pf-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 1.8rem; align-items: center; padding: 2rem 2rem; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--ta) 35%, var(--line-2));
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ta) 30%, transparent), transparent 55%), radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--tb) 40%, transparent), transparent 60%), linear-gradient(160deg, #1c1d22, #111215); box-shadow: var(--sh-3), var(--edge); }
.pf-art { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.025) 22px 23px); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.pf-hero > :not(.pf-art) { position: relative; }
.pf-av { position: relative; width: 8.25rem; height: 8.25rem; display: grid; place-items: center; }
.pf-av .ring { position: absolute; inset: 0; width: 100%; height: 100%; } .pf-av .ring .r0 { stroke: rgba(255, 255, 255, 0.1); stroke-width: 5; fill: none; } .pf-av .ring .r1 { stroke: var(--ta); stroke-width: 5; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ta) 60%, transparent)); }
.pf-av > i { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; font: 600 3rem var(--f-display); font-style: normal; background: radial-gradient(circle at 30% 25%, #4a4c55, #1b1c21 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0.6rem 1.6rem rgba(0, 0, 0, 0.5); }
.pf-lv { position: absolute; bottom: -0.2rem; left: 50%; transform: translateX(-50%); min-width: 2.4rem; height: 1.8rem; padding: 0 0.55rem; border-radius: 999px; display: grid; place-items: center; font: 700 0.95rem var(--f-display); color: #17110a; background: linear-gradient(135deg, color-mix(in srgb, var(--ta) 60%, #fff), var(--ta) 50%, var(--tb)); box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.45), 0 0 0 3px #15161a; }
.pf-main { display: grid; gap: 0.65rem; min-width: 0; }
.pf-name { font: 700 clamp(2.4rem, 4.4vw, 3.6rem)/0.95 var(--f-display); letter-spacing: -0.02em; }
.pf-rank { display: flex; align-items: center; gap: 0.7rem; } .pf-rank .emblem { width: 2.3rem; height: 2.7rem; filter: drop-shadow(0 0.2rem 0.5rem rgba(0, 0, 0, 0.5)); }
.pf-rank span { display: grid; } .pf-rank b { font: 600 1.05rem var(--f-display); background: linear-gradient(90deg, color-mix(in srgb, var(--ta) 50%, #fff), var(--ta)); -webkit-background-clip: text; background-clip: text; color: transparent; } .pf-rank em { font-style: normal; font-size: 0.78rem; color: var(--mute); }
.pf-xp { display: grid; gap: 0.4rem; max-width: 34rem; } .pf-xp > span { font-size: 0.8rem; color: var(--mute); } .pf-xp b { color: var(--ink); }
.pf-xpb { height: 0.6rem; border-radius: 999px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pf-xpb i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--tb), var(--ta) 70%, color-mix(in srgb, var(--ta) 50%, #fff)); box-shadow: 0 0 12px color-mix(in srgb, var(--ta) 60%, transparent); transition: width 0.8s var(--ease); }
.pf-side { display: grid; gap: 0.5rem; min-width: 11rem; }
.pf-kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.75rem; align-items: center; padding: 0.65rem 0.9rem; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.pf-kpi > span { grid-row: span 2; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; } .pf-kpi > span .ic { width: 1.4rem; height: 1.4rem; color: var(--grey-4); } .pf-kpi .trophy { width: 2rem; height: 2rem; }
.pf-kpi b { font: 600 1.25rem/1 var(--f-display); font-variant-numeric: tabular-nums; } .pf-kpi small { font-size: 0.7em; color: var(--mute); } .pf-kpi em { font-style: normal; font-size: 0.7rem; color: var(--mute); }
.pf-kpi.gold { background: linear-gradient(135deg, rgba(255, 212, 92, 0.16), rgba(0, 0, 0, 0.3)); border-color: rgba(255, 212, 92, 0.35); } .pf-kpi.gold .ic { color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 212, 92, 0.6)); } .pf-kpi.gold b { color: #ffe9a6; }
.pbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.pb { position: relative; overflow: hidden; display: grid; gap: 0.3rem; padding: 1rem 1.05rem 1.05rem; border-radius: var(--r-lg); background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--fill); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.pb-i { width: 2.3rem; height: 2.3rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--c); color: #0b0c0e; box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--c) 40%, transparent); margin-bottom: 0.3rem; } .pb-i .ic { width: 1.2rem; height: 1.2rem; }
.pb-k { font: 600 0.66rem var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); } .pb b { font: 600 1.85rem/1 var(--f-display); font-variant-numeric: tabular-nums; } .pb em { font-style: normal; font-size: 0.74rem; color: var(--mute); }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.st2 { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.75rem; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--line); }
.st-i { flex: none; width: 2rem; height: 2rem; border-radius: 0.6rem; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); } .st-i .ic { width: 1.05rem; height: 1.05rem; }
.st2 > span:last-child { display: grid; min-width: 0; } .st2 em { font-style: normal; font-size: 0.7rem; color: var(--mute); } .st2 b { font: 600 1.05rem var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabinet { background: radial-gradient(80% 60% at 50% 0%, rgba(255, 212, 92, 0.07), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--char-2); }
.mcount { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem 0.25rem 0.35rem; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); font-size: 0.75rem; color: var(--mute); }
.mcount .trophy { width: 1.4rem; height: 1.4rem; } .mcount b { font: 600 0.9rem var(--f-display); color: var(--ink); }
.trophies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.tro { display: flex; gap: 0.85rem; align-items: center; padding: 0.85rem 0.9rem; border-radius: var(--r-lg); background: var(--fill); border: 1px solid var(--line); transition: transform var(--fast) var(--ease), border-color var(--fast); }
.tro:hover { transform: translateY(-2px); }
.tro .trophy { width: 3.4rem; height: 3.4rem; } .tro:not(.got) .trophy { opacity: 0.75; filter: none; }
.tro-t { flex: 1; display: grid; gap: 0.15rem; min-width: 0; } .tro-t b { font: 600 0.95rem var(--f-display); } .tro-t > span { font-size: 0.74rem; color: var(--mute); }
.tro-m { font: 700 0.58rem var(--f-display) !important; letter-spacing: 0.18em; text-transform: uppercase; }
.tro.gold .tro-m { color: var(--gold) !important; } .tro.silver .tro-m { color: var(--silver) !important; } .tro.bronze .tro-m { color: var(--bronze) !important; }
.tro.got.gold { border-color: rgba(255, 212, 92, 0.45); background: linear-gradient(135deg, rgba(255, 212, 92, 0.13), rgba(255, 255, 255, 0.02)); }
.tro.got.silver { border-color: rgba(223, 229, 238, 0.35); background: linear-gradient(135deg, rgba(223, 229, 238, 0.1), rgba(255, 255, 255, 0.02)); }
.tro.got.bronze { border-color: rgba(231, 160, 108, 0.4); background: linear-gradient(135deg, rgba(231, 160, 108, 0.12), rgba(255, 255, 255, 0.02)); }
.tro-bar { display: block; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); overflow: hidden; margin-top: 0.3rem; } .tro-bar i { display: block; height: 100%; border-radius: 4px; }
.tro.gold .tro-bar i { background: var(--g-gold); } .tro.silver .tro-bar i { background: var(--g-silver); } .tro.bronze .tro-bar i { background: var(--g-bronze); }
.tro-p { font-size: 0.68rem !important; color: var(--faint) !important; }
.tro-done { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem !important; color: #8fe9bb !important; margin-top: 0.2rem; } .tro-done .ic { width: 0.85rem; height: 0.85rem; }
@media (max-width: 70rem) { .pf-hero { grid-template-columns: auto 1fr; } .pf-side { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); } .pbs { grid-template-columns: repeat(2, 1fr); } .pf-cols { grid-template-columns: 1fr; } .trophies { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 56rem) { .pf-hero { grid-template-columns: 1fr; padding: 1.4rem; } .trophies { grid-template-columns: 1fr; } }

/* ════════ leaderboards ════════ */
.lb-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; margin-bottom: 0.8rem; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line-2)); background: radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 60%), linear-gradient(160deg, #1c1d22, #121316); box-shadow: var(--sh-2), var(--edge); }
.lb-ht { display: flex; align-items: center; gap: 1rem; } .lb-hi .trophy { width: 3.6rem; height: 3.6rem; } .lb-ht h2 { font-size: 1.9rem; } .lb-ht .eyebrow { color: color-mix(in srgb, var(--c) 60%, #fff); }
.lb-tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.lbt { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.6rem; padding: 0 1rem 0 0.4rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--fill); font: 600 0.82rem var(--f-display); color: var(--grey-4); transition: all var(--fast); }
.lbt span { width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); } .lbt .ic { width: 1rem; height: 1rem; }
.lbt:hover { color: var(--ink); border-color: color-mix(in srgb, var(--c) 45%, var(--line-2)); }
.lbt.on { color: #0b0c0e; background: var(--c); border-color: var(--c); box-shadow: 0 0.4rem 1.2rem color-mix(in srgb, var(--c) 35%, transparent); } .lbt.on span { background: rgba(0, 0, 0, 0.18); color: #0b0c0e; }
.lb-mine { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; margin-bottom: 0.8rem; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--char-2); }
.lb-mine .rk { font: 700 1.6rem var(--f-display); color: var(--c); min-width: 3.2rem; } .lb-mine .grow b { display: block; } .lb-mine .medal { width: 2rem; height: 2.5rem; } .lb-mine > .ic { width: 1.6rem; height: 1.6rem; color: var(--c); }
.lb-card { padding: 1.4rem; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0.9rem; align-items: end; margin-bottom: 1rem; }
.pod { display: grid; gap: 0.6rem; } .pod.empty { visibility: hidden; }
.pod-top { display: grid; justify-items: center; gap: 0.3rem; text-align: center; }
.pod .medal { width: 2.3rem; height: 2.9rem; margin-bottom: -0.9rem; position: relative; z-index: 1; filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.5)); }
.pod.p1 .medal { width: 2.8rem; height: 3.5rem; }
.pod-n { font: 600 1.1rem var(--f-display); margin-top: 0.3rem; } .pod-l { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: var(--mute); } .pod-l .emblem { width: 0.95rem; height: 1.1rem; }
.pod-v { font: 700 1.5rem var(--f-display); font-variant-numeric: tabular-nums; } .pod.p1 .pod-v { font-size: 1.9rem; }
.pod.gold .pod-v { color: #ffe08a; } .pod.silver .pod-v { color: #eef2f8; } .pod.bronze .pod-v { color: #f3c09a; }
.pod-block { position: relative; display: grid; place-items: center; border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-sm); overflow: hidden; }
.pod-block::before { content: ""; position: absolute; inset: 0; opacity: 0.9; } .pod-block > * { position: relative; }
.pod.gold .pod-block { height: 9rem; } .pod.gold .pod-block::before { background: linear-gradient(180deg, rgba(255, 212, 92, 0.55), rgba(143, 90, 18, 0.25) 70%, transparent), repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, 0.05) 14px 15px); }
.pod.silver .pod-block { height: 6.6rem; } .pod.silver .pod-block::before { background: linear-gradient(180deg, rgba(223, 229, 238, 0.45), rgba(95, 104, 118, 0.22) 70%, transparent); }
.pod.bronze .pod-block { height: 5.2rem; } .pod.bronze .pod-block::before { background: linear-gradient(180deg, rgba(231, 160, 108, 0.5), rgba(110, 58, 24, 0.22) 70%, transparent); }
.pod-block .trophy { width: 3rem; height: 3rem; margin-top: -0.4rem; } .pod.p1 .pod-block .trophy { width: 3.8rem; height: 3.8rem; }
.pod-block span { font: 800 1.1rem var(--f-display); color: rgba(255, 255, 255, 0.55); margin-top: -0.6rem; }
.pod.me .pod-n::after { content: "You"; margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.6rem; vertical-align: middle; }
.lav { position: relative; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--ta), var(--tb)); display: grid; }
.lav i { border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #44464e, #18191d 70%); font: 600 0.9rem var(--f-display); font-style: normal; }
.lav.big { width: 4.6rem; height: 4.6rem; padding: 3px; box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.5); } .lav.big i { font-size: 1.7rem; }
.pod.gold .lav.big { box-shadow: 0 0 0 3px rgba(255, 212, 92, 0.5), 0 0 24px rgba(255, 212, 92, 0.35); }
.lb-r { padding: 0.65rem 0.85rem; border: 1px solid transparent; } .lb-r .rk { width: 2rem; text-align: center; font: 600 1rem var(--f-display); color: var(--mute); }
.lb-r.me { background: linear-gradient(90deg, rgba(76, 141, 255, 0.16), transparent 70%); border-color: rgba(76, 141, 255, 0.4); box-shadow: none; }
.you { font-style: normal; margin-left: 0.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--blue); color: #fff; font: 600 0.6rem var(--f-display); vertical-align: middle; }
.lvl-s { display: inline-flex; align-items: center; gap: 0.3rem; } .lvl-s .emblem { width: 0.9rem; height: 1.05rem; }
.empty .trophy { width: 4rem; height: 4rem; margin: 0 auto 0.4rem; opacity: 0.8; }
@media (max-width: 56rem) { .podium { gap: 0.4rem; } .lav.big { width: 3.4rem; height: 3.4rem; } .pod-v { font-size: 1.1rem; } .pod.p1 .pod-v { font-size: 1.3rem; } }

/* phone rankings: medals for the top three */
.ph-item .rk.m1 { color: var(--gold); } .ph-item .rk.m2 { color: var(--silver); } .ph-item .rk.m3 { color: var(--bronze); }
.ph-item .medal { width: 1.4rem; height: 1.75rem; }
.tro:not(.got) .trophy { opacity: 1; filter: grayscale(0.85) brightness(0.55) contrast(1.1); }
.pf-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.perks { display: grid; gap: 0.7rem; align-content: start; background: radial-gradient(100% 80% at 100% 0%, rgba(76, 141, 255, 0.12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--char-2); }
.perks h3 { margin-bottom: 0.2rem; }
.perk { display: flex; gap: 0.8rem; align-items: flex-start; }
.perk > span { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; display: grid; place-items: center; background: var(--c); color: #0b0c0e; box-shadow: 0 0.3rem 0.9rem color-mix(in srgb, var(--c) 35%, transparent); } .perk .ic { width: 1.1rem; height: 1.1rem; }
.perk div { display: grid; gap: 0.1rem; } .perk b { font-weight: 600; font-size: 0.9rem; } .perk em { font-style: normal; font-size: 0.78rem; color: var(--mute); line-height: 1.4; }
@media (max-width: 70rem) { .pf-auth { grid-template-columns: 1fr; } }

/* ════════ shop ════════
   Monochrome like the rest of the game: charcoal cards, white for the one action that matters, greys for everything
   else. Rarity and tier colours appear only as a small dot. Coins are a flat glyph in the text colour; real money is
   always written as a plain price on a button. */
.coin-ic { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }
.cn { display: inline-flex; align-items: center; gap: 0.32rem; font: 600 0.95rem var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cn .coin-ic { color: var(--grey-3); } .cn.big { font-size: 1.15rem; }
.btn .coin-ic { width: 1rem; height: 1rem; }
.chip-btn[data-to="shop"] .ic { color: inherit; filter: none; }
.shop2 { display: grid; gap: 1.1rem; align-content: start; overflow-x: hidden; }
.bk, .it2, .pack, .crate { min-width: 0; }

.sh-head { display: flex; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; padding-bottom: 0.2rem; }
.sh-bal { display: grid; gap: 0.3rem; }
.sh-bal b { display: flex; align-items: center; gap: 0.55rem; font: 600 2.4rem/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sh-bal .coin-ic { width: 1.7rem; height: 1.7rem; color: var(--grey-3); }
.sh-flags { flex: 1; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.sh-flag { display: inline-flex; align-items: center; gap: 0.45rem; height: 2.1rem; padding: 0 0.8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--fill); font-size: 0.78rem; white-space: nowrap; }
.sh-flag .ic { width: 0.95rem; height: 0.95rem; color: var(--grey-4); }
.sh-flag b { font-weight: 600; } .sh-flag em { font-style: normal; color: var(--mute); }
.sh-flag.test { border-style: dashed; }

.sh-tabs { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tabs button { flex: none; height: 2.6rem; font: 600 0.86rem var(--f-display); letter-spacing: 0.01em; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--fast), border-color var(--fast); }
.sh-tabs button:hover { color: var(--ink); }
.sh-tabs button.on { color: var(--ink); border-color: var(--white); }
.shop2 > .note { margin: 0; }

.sh-h { display: flex; align-items: center; gap: 0.55rem; font: 600 1.05rem var(--f-display); margin: 1.6rem 0 0.7rem; } .sh-h:first-child { margin-top: 0.2rem; }
.sh-h .ic { width: 1rem; height: 1rem; color: var(--grey-3); }
.sh-p { margin: 0 0 0.9rem; font-size: 0.85rem; max-width: 46rem; }
.tdot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.rar { display: inline-flex; align-items: center; gap: 0.4rem; font: 600 0.62rem var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.rar::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--rc); }
.shop2 .tagx { height: 2.1rem; border-radius: var(--r-sm); }

/* shared card surface */
.hero-c, .bk, .it2, .crate, .pack, .ug, .upg-l, .bp-head, .pc, .hx { background: var(--char-2); border: 1px solid var(--line); box-shadow: var(--edge); }

/* featured */
.feat { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.9rem; }
.hero-c { position: relative; overflow: hidden; display: grid; gap: 0.4rem; align-content: start; justify-items: start; padding: 1.4rem 1.5rem; border-radius: var(--r-xl); cursor: pointer; transition: border-color var(--fast), transform var(--mid) var(--ease); }
.hero-c:hover { border-color: var(--line-3); transform: translateY(-2px); }
.hero-c.pass { background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 55%), var(--char-2); border-color: var(--line-2); }
.hero-c h3 { font: 600 1.45rem/1.1 var(--f-display); letter-spacing: -0.01em; }
.hero-c p { font-size: 0.84rem; color: var(--mute); margin: 0 0 0.6rem; max-width: 28rem; }
.hc-art { position: absolute; right: -1.2rem; bottom: -1.6rem; color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.hc-art .ic, .hc-art .coin-ic { width: 9rem; height: 9rem; stroke-width: 1.2; }
.rec { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.rec-b { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem 0.6rem 0.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--char-2); transition: border-color var(--fast); }
.rec-b:hover { border-color: var(--line-3); }
.rec-b > span { width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; display: grid; place-items: center; background: var(--fill-2); color: var(--grey-4); }
.rec-b > span .ic { width: 1.05rem; height: 1.05rem; }
.rec-b b { font: 600 0.88rem var(--f-display); }
.coins-art { display: inline-grid; place-items: center; color: var(--grey-4); } .coins-art i { display: none; } .coins-art i:first-child { display: block; } .coins-art .coin-ic { width: 3.6rem; height: 3.6rem; }

/* bike cards */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.8rem; }
.bk { position: relative; display: grid; gap: 0.7rem; padding: 1rem 1.1rem 1.05rem; border-radius: var(--r-xl); transition: border-color var(--fast), transform var(--mid) var(--ease); }
.bk:hover { border-color: var(--line-3); transform: translateY(-2px); }
.bk-h { display: flex; justify-content: space-between; align-items: center; min-height: 1.1rem; }
.own-t { display: inline-flex; gap: 0.3rem; align-items: center; font-size: 0.72rem; color: var(--grey-4); } .own-t .ic { width: 0.9rem; height: 0.9rem; }
.bk-art { height: 5.4rem; display: grid; place-items: center; border-radius: var(--r-md); background: radial-gradient(70% 90% at 50% 100%, rgba(255, 255, 255, 0.06), transparent 70%); }
.bk-art svg { height: 92%; }
.bk-art .w { fill: none; stroke: #4a4c52; stroke-width: 5; } .bk-art .f { fill: none; stroke: var(--grey-4); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } .bk-art .p { fill: var(--paint); stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.bk-t { display: grid; gap: 0.12rem; } .bk-t b { font: 600 1.25rem/1.1 var(--f-display); }
.bk-n { display: grid; gap: 0.32rem; }
.bn { display: grid; grid-template-columns: 5.2rem 1fr 4.8rem; gap: 0.55rem; align-items: center; font-size: 0.7rem; color: var(--mute); }
.bn i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; } .bn i b { display: block; height: 100%; border-radius: 4px; background: var(--grey-4); }
.bn em { font-style: normal; text-align: right; color: var(--grey-4); font-variant-numeric: tabular-nums; }
.bk-f { display: flex; align-items: center; gap: 0.45rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.bk-need { font-size: 0.72rem; color: var(--mute); margin-top: -0.3rem; }

/* item cards */
.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 0.7rem; }
.it2 { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 0.7rem; padding: 0.9rem; border-radius: var(--r-lg); transition: border-color var(--fast), transform var(--mid) var(--ease); }
.it2:hover { border-color: var(--line-3); transform: translateY(-2px); } .it2.own { opacity: 0.8; }
.offer { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1; padding: 0.18rem 0.55rem; border-radius: 999px; background: var(--white); color: var(--black); font: 600 0.62rem var(--f-display); letter-spacing: 0.04em; }
.pv2 { height: 4.4rem; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.pv2.dots, .pv2.outfit { display: flex; gap: 0.35rem; justify-content: center; align-items: center; }
.pv2.dots i, .pv2.outfit i { width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.pv2.outfit i { width: 2.1rem; height: 2.1rem; border-radius: 0.55rem; }
.pv2.glyph .ic { width: 1.7rem; height: 1.7rem; color: var(--grey-4); }
.pv2.fin-chrome { background: linear-gradient(135deg, #f4f6f8, #8b929c 45%, #fff 55%, #6d737c); } .pv2.fin-pearl { background: linear-gradient(135deg, #f3f1f6, #dfe3ea 50%, #f1ecef); }
.pv2.fin-carbon { background: repeating-linear-gradient(45deg, #1b1c1f 0 6px, #2c2d31 6px 12px); } .pv2.fin-candy { background: linear-gradient(135deg, #4a4c52, #c8c9cc 50%, #2a2b30); }
.it2-t { display: grid; gap: 0.25rem; align-content: start; } .it2-t b { font: 600 1rem var(--f-display); }
.it2-f { display: flex; align-items: center; gap: 0.45rem; } .was { font-size: 0.75rem; color: var(--faint); text-decoration: line-through; }

/* upgrades */
.upg { display: grid; grid-template-columns: 17rem 1fr; gap: 1rem; align-items: start; }
.upg-l { display: grid; gap: 0.35rem; padding: 1rem; border-radius: var(--r-xl); }
.ub { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.6rem; text-align: left; padding: 0.55rem 0.7rem; border-radius: var(--r-md); border: 1px solid transparent; transition: background var(--fast); }
.ub i { grid-row: span 2; width: 0.42rem; height: 0.42rem; margin-top: 0.45rem; border-radius: 50%; background: var(--tc); } .ub b { font: 600 0.9rem var(--f-display); } .ub span { font-size: 0.7rem; color: var(--mute); }
.ub:hover { background: var(--fill); } .ub.on { background: var(--fill-2); border-color: var(--line-2); }
.ud-box { display: grid; gap: 0.32rem; margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.ud { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; font-size: 0.78rem; color: var(--mute); } .ud b { color: var(--ink); font-variant-numeric: tabular-nums; } .ud em { font-style: normal; color: var(--ink); font-weight: 600; }
.upg-r { display: grid; gap: 0.5rem; }
.ug { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: var(--r-lg); }
.ug-i { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--fill-2); color: var(--grey-4); flex: none; }
.ug-t { flex: 1; display: grid; gap: 0.15rem; } .ug-t b { font: 600 1rem var(--f-display); }
.pips { display: flex; gap: 0.25rem; margin-top: 0.3rem; } .pips i { width: 1.5rem; height: 0.3rem; border-radius: 0.2rem; background: rgba(255, 255, 255, 0.1); } .pips i.on { background: var(--white); } .pips i.gate:not(.on) { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.ug-a { display: flex; align-items: center; gap: 0.6rem; }

/* crates */
.crates { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; }
.crate { display: grid; gap: 0.55rem; align-content: start; padding: 1.1rem; border-radius: var(--r-xl); }
.crate-art { color: var(--grey-4); } .crate-art svg { width: 4.6rem; height: 4rem; display: block; margin: 0.2rem auto 0.4rem; }
.crate b { font: 600 1.1rem var(--f-display); }
.odds { width: 100%; border-collapse: collapse; font-size: 0.74rem; } .odds td { padding: 0.28rem 0; border-bottom: 1px solid var(--line); color: var(--grey-4); } .odds td:last-child { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.crate-f { display: flex; gap: 0.4rem; justify-content: flex-end; margin-top: 0.3rem; }

/* coin store */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.8rem; }
.pack { position: relative; display: grid; gap: 0.55rem; align-content: start; padding: 1.15rem 1.15rem 1.1rem; border-radius: var(--r-xl); transition: border-color var(--fast), transform var(--mid) var(--ease); }
.pack:hover { border-color: var(--line-3); transform: translateY(-2px); }
.pack.hl { border-color: var(--line-3); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%), var(--char-2); }
.pk-badge { position: absolute; top: 1rem; right: 1rem; padding: 0.16rem 0.55rem; border-radius: 999px; background: var(--white); color: var(--black); font: 600 0.62rem var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; }
.pk-amt { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.3rem; }
.pk-amt b { font: 600 2rem/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pk-amt span { font-size: 0.8rem; color: var(--mute); }
.pk-meter { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; } .pk-meter b { display: block; height: 100%; background: var(--grey-4); border-radius: 3px; }
.pk-b { font-size: 0.76rem; color: var(--mute); min-height: 1.2rem; margin-bottom: 0.35rem; }
.pk-b em { font-style: normal; margin-left: 0.3rem; padding: 0.05rem 0.4rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 0.7rem; }

/* battle pass */
.bp-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: var(--r-xl); }
.bp-head.own { border-color: var(--line-3); }
.bp-art { width: 4.2rem; height: 4.2rem; border-radius: 1.1rem; display: grid; place-items: center; background: var(--fill-2); color: var(--grey-4); } .bp-art .ic { width: 2.1rem; height: 2.1rem; }
.bp-t { display: grid; gap: 0.35rem; } .bp-t h2 { font: 600 1.7rem/1.1 var(--f-display); }
.bp-bar { height: 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; } .bp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--white); }
.bp-buy { display: grid; gap: 0.45rem; justify-items: end; text-align: right; max-width: 18rem; }
.bp-track { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; margin-top: 0.9rem; }
.bp-lab { display: grid; grid-template-rows: 1.6rem 7.6rem 7.6rem; gap: 0.4rem; align-items: center; font: 600 0.64rem var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); } .bp-lab span:first-child { grid-row: 2; } .bp-lab span:last-child { grid-row: 3; color: var(--ink); }
.bp-scroll { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.bp-col { flex: none; width: 8rem; display: grid; grid-template-rows: 1.6rem 7.6rem 7.6rem; gap: 0.4rem; }
.bp-n { display: grid; place-items: center; font: 600 0.82rem var(--f-display); color: var(--faint); border-radius: 999px; }
.bp-col.reach .bp-n { color: var(--black); background: var(--grey-4); } .bp-col.next .bp-n { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.pc { position: relative; display: grid; justify-items: center; align-content: center; gap: 0.35rem; padding: 0.5rem; border-radius: var(--r-md); text-align: center; }
.pc.empty { background: transparent; box-shadow: none; border-style: dashed; opacity: 0.35; }
.pc.prem { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent), var(--char-2); border-color: var(--line-2); }
.pc.bike { border-color: var(--white); }
.pc:not(.reach) { opacity: 0.55; } .pc.got { opacity: 0.5; }
.pc-i { height: 2rem; display: grid; place-items: center; color: var(--grey-4); } .pc-i .coin-ic, .pc-i .ic { width: 1.6rem; height: 1.6rem; } .pc-i svg:not(.coin-ic):not(.ic) { width: 2.1rem; height: 1.9rem; }
.pc-l { font-size: 0.68rem; line-height: 1.25; color: var(--grey-4); }
.pc-s { position: absolute; top: 0.3rem; right: 0.3rem; } .pc-s .ic { width: 0.9rem; height: 0.9rem; color: var(--mute); } .pc.got .pc-s .ic { color: var(--ink); }
.pc .btn.sm { height: 1.7rem; font-size: 0.72rem; padding: 0 0.6rem; }

/* history */
.hist { display: grid; gap: 0.3rem; }
.hx { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-rows: auto auto; column-gap: 0.8rem; align-items: center; padding: 0.65rem 0.85rem; border-radius: var(--r-md); }
.hx > span:first-child { grid-row: span 2; color: var(--grey-3); } .hx > .muted { grid-column: 2 / -1; } .hx em { font-style: normal; color: var(--grey-4); font-variant-numeric: tabular-nums; }
.st { padding: 0.1rem 0.5rem; border-radius: 999px; font: 600 0.62rem var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--line-2); color: var(--mute); }
.st-paid { background: var(--white); border-color: var(--white); color: var(--black); } .st-failed, .st-review, .st-refunded { border-style: dashed; }

/* modal, reveal, confetti */
#modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 1rem; background: rgba(5, 5, 7, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade var(--mid); }
#modal[hidden] { display: none; }
.mdl { width: min(30rem, 100%); padding: 1.5rem; border-radius: var(--r-xl); background: var(--char-2); border: 1px solid var(--line-2); box-shadow: var(--sh-3), var(--edge); animation: pop var(--mid) var(--ease); }
.cf { display: grid; gap: 0.7rem; } .cf h3 { font: 600 1.35rem var(--f-display); } .cf p { margin: 0; }
.cf-sum { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0.85rem; border-radius: var(--r-md); background: var(--fill); font-size: 0.85rem; } .cf-sum span { color: var(--mute); }
.row.end { justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.devtag { display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px dashed var(--line-3); color: var(--grey-4); font: 600 0.7rem var(--f-display); } .devtag .ic { width: 0.9rem; height: 0.9rem; }
.reveal { position: relative; display: grid; justify-items: center; gap: 0.6rem; text-align: center; padding: 1rem 0 0.2rem; overflow: hidden; }
.rv-crate { color: var(--grey-4); } .rv-crate svg { width: 7rem; height: 6rem; }
.shake { animation: shake 0.25s infinite; } @keyframes shake { 25% { transform: rotate(-4deg) scale(1.03); } 75% { transform: rotate(4deg) scale(1.03); } }
.rv-burst { position: absolute; top: 2.5rem; left: 50%; width: 16rem; height: 16rem; transform: translate(-50%, -30%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), transparent); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.55; } }
.rv-prize { position: relative; height: 6rem; display: grid; place-items: center; color: var(--ink); animation: popin 0.6s var(--ease); } .rv-prize > .ic, .rv-prize > .coin-ic { width: 4rem; height: 4rem; }
@keyframes popin { from { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.12); } }
.reveal h3 { position: relative; font: 600 1.5rem var(--f-display); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; color: var(--grey-4); }
.confetti i { position: absolute; top: 45%; animation: fly var(--d) cubic-bezier(.2, .7, .3, 1) forwards; } .confetti .coin-ic { width: 1.3rem; height: 1.3rem; }
@keyframes fly { from { transform: translate(0, 0) scale(0.4); opacity: 1; } to { transform: translate(calc(var(--x) * 40vw), -45vh) rotate(360deg) scale(1); opacity: 0; } }

@media (max-width: 56rem) {
  .feat, .upg { grid-template-columns: 1fr; }
  .bp-head { grid-template-columns: 1fr; } .bp-buy { justify-items: start; text-align: left; } .bp-art { display: none; }
  .sh-flags { justify-content: flex-start; order: 3; flex-basis: 100%; }
  .sh-bal b { font-size: 2rem; }
}
/* garage + wardrobe */
.bike-card.locked { opacity: 0.8; } .bike-card .lk { position: absolute; top: 0.6rem; right: 0.6rem; } .bike-card .lk .ic { width: 0.95rem; height: 0.95rem; color: var(--mute); } .bike-card { position: relative; } .bike-card em { font-style: normal; }
.bike-card .tg .coin-ic { width: 0.9rem; height: 0.9rem; }
.panel-foot { display: flex; gap: 0.5rem; } .panel-foot .wide { flex: 1; }
.wardrobe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.wd { display: grid; gap: 0.3rem; justify-items: start; padding: 0.7rem; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--line)); background: var(--fill); text-align: left; } .wd:hover { background: var(--fill-2); }
.wd .dots { display: flex; gap: 0.25rem; } .wd .dots i { width: 1rem; height: 1rem; border-radius: 50%; } .wd b { font-size: 0.82rem; } .wd em { font-style: normal; font-size: 0.7rem; color: var(--mute); }
@media (max-width: 70rem) { .upg { grid-template-columns: 1fr; } .bp-head { grid-template-columns: auto 1fr; } .bp-buy { grid-column: 1 / -1; justify-items: start; text-align: left; max-width: none; } }
.shop2 { display: flex; flex-direction: column; gap: 1rem; } .shop2 > * { flex: none; } .sh-tabs { min-height: 2.75rem; }
@media (min-width: 60rem) { .packs { grid-template-columns: repeat(3, 1fr); } }

/* legal links and purchase consent */
.legal-note { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--mute); max-width: 30rem; }
.legal-note a, .legal-links a, .cf-consent a, .sh-p a.link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-links { display: flex; gap: 0.9rem; margin-top: 0.8rem; padding: 0 0.6rem; font-size: 0.75rem; }
.legal-links a { color: var(--mute); text-decoration: none; } .legal-links a:hover { color: var(--ink); text-decoration: underline; }
.cf-consent { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem 0.85rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--fill); font-size: 0.8rem; line-height: 1.45; color: var(--grey-4); cursor: pointer; transition: border-color var(--fast); }
.cf-consent input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0.1rem 0 0; accent-color: #f5f5f3; cursor: pointer; }
.cf-consent.need:not(:has(input:checked)) { border-color: var(--white); box-shadow: 0 0 0 1px var(--white); }
