/* FormulaDTH website — v2 "night garage"
   Layout: a deep, near-black paddock lit by two soft theme-coloured glows. Everything sits on
   frosted, rounded glass panels; the theme gradient is the single loud colour (buttons, marks,
   numbers). Display type is Archivo set wide; body is Manrope; figures are JetBrains Mono. */
:root {
  --g1: #ff2a5c; --g2: #ff8a2a; --on: #ffffff;
  --bg: #08070b; --bg2: #0e0d14;
  --panel: rgba(255, 255, 255, .045); --panel2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .085); --line2: rgba(255, 255, 255, .15);
  --ink: #f5f5f9; --mute: #a6a6bb; --dim: #6e6e84;
  --gold: #ffd166; --green: #34d399; --purple: #a78bfa; --blue: #60a5fa; --yellow: #fde047;
  --red: var(--g1); --red-ink: var(--on);
  --grad: linear-gradient(135deg, var(--g1), var(--g2));
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022));
  --shadow: 0 30px 70px -35px rgba(0, 0, 0, .85);
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r: 22px; --r2: 14px; --max: 1240px;
  color-scheme: dark;
}
/* five dark gradient themes */
:root[data-skin="pitwall"] { --g1: #ff2a5c; --g2: #ff8a2a; --on: #ffffff; --bg: #08070b; }
:root[data-skin="midnight"] { --g1: #6d7cff; --g2: #c05cff; --on: #ffffff; --bg: #06061a; }
:root[data-skin="papaya"] { --g1: #ff8a00; --g2: #ff3d7f; --on: #ffffff; --bg: #0c0806; }
:root[data-skin="silver"] { --g1: #00e5c7; --g2: #3a8dff; --on: #04121a; --bg: #050b0e; }
:root[data-skin="gold"] { --g1: #ffd166; --g2: #ff9e1b; --on: #1a1203; --bg: #0b0905; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 400 16.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(1100px 650px at 8% -8%, color-mix(in srgb, var(--g1) 24%, transparent), transparent 62%),
    radial-gradient(900px 600px at 96% 4%, color-mix(in srgb, var(--g2) 17%, transparent), transparent 62%),
    radial-gradient(1000px 700px at 50% 115%, color-mix(in srgb, var(--g1) 11%, transparent), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
#topbar, #demo, main, #footer { position: relative; z-index: 1; }
#topbar { z-index: 50; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 112%; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 70px); }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
h1 em, .gradtext { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--g1) 45%, transparent); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 880px; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.eyebrow { font: 600 12px/1.2 var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--g1); }
.loading { padding: 140px 16px; text-align: center; color: var(--mute); font-family: var(--mono); }
.err { padding: 60px 0; color: var(--g1); }

/* glass surfaces */
.card, .tiercard, .newscard, .bcard, .shotcard, .stats > div, .thread, .reply, .idea, .take, .mbox, .toc, .faq, .post, .report, .me, .login, .fwrap {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--shadow);
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font: 700 15px/1 var(--body); letter-spacing: .1px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, filter .18s; background: none; color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn.red { background: var(--grad); color: var(--on); box-shadow: 0 12px 34px -12px var(--g1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.red:hover { filter: brightness(1.07); box-shadow: 0 16px 40px -12px var(--g1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: var(--panel); border-color: var(--line2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: var(--panel2); border-color: rgba(255, 255, 255, .25); }
.btn.light { background: #ffffff; color: #0b0b10; }
.btn.outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.lg { padding: 16px 28px; font-size: 16px; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.disabled { opacity: .5; cursor: default; transform: none; }
.btn.discord { background: #5865f2; color: #fff; width: 100%; }
.btn.good { border-color: var(--green); background: color-mix(in srgb, var(--green) 18%, transparent); }
.btn.bad { border-color: #ff4d6d; background: color-mix(in srgb, #ff4d6d 18%, transparent); }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--mute); cursor: pointer; text-decoration: underline; }
.link.danger { color: #ff6b81; }

/* chips, tags, tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chips > * { border: 1px solid var(--line2); background: var(--panel); color: var(--mute); border-radius: 999px; padding: 8px 16px; font: 600 14px/1 var(--body); cursor: pointer; text-decoration: none; transition: .15s; }
.chips > *:hover { color: var(--ink); background: var(--panel2); }
.chips > .on { background: var(--grad); color: var(--on); border-color: transparent; box-shadow: 0 8px 24px -12px var(--g1); }
.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--panel2); color: var(--mute); margin-right: 6px; }
.tag.pin { color: var(--gold); }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--mute); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--grad); color: var(--on); }

/* tier badges: bronze / silver / gold */
.tier { display: inline-block; font: 700 11.5px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; vertical-align: middle; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.tier.sm { font-size: 10px; padding: 4px 8px; }
.tier-FREE { --c: #b4b4c8; }
.tier-M { --c: #e09a5b; }
.tier-S { --c: #c9d3e3; }
.tier-TP { --c: #ffd166; }

/* top bar: a floating glass capsule */
#topbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px);
  margin: 10px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  max-width: 1440px; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 10px 0 14px;
  border-radius: 20px; background: rgba(14, 13, 20, .62); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9);
}
@media (min-width: 1474px) { #topbar { margin-left: auto; margin-right: auto; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); font-stretch: 118%; letter-spacing: -.02em; flex: none; }
.brand .mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 14px rgba(92, 170, 230, .45)); }
.brand b { background: linear-gradient(135deg, #a8d6f7, #4a9be0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mainnav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.mainnav > a { padding: 9px 11px; border-radius: 999px; text-decoration: none; font: 600 14.5px/1 var(--body); color: var(--mute); white-space: nowrap; transition: .15s; }
.mainnav > a:hover { color: var(--ink); background: var(--panel); }
.mainnav > a.on { color: var(--ink); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); }
.topright { display: flex; align-items: center; gap: 8px; margin-left: auto; position: relative; }
.langsel { background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: 999px; padding: 9px 12px; font: 600 13px var(--body); cursor: pointer; width: auto; }
.langsel option { background: #15141c; }
.burger { display: none; width: 42px; height: 42px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
#demo { margin: 10px auto 0; max-width: var(--max); width: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px))); border-radius: 14px; background: color-mix(in srgb, var(--yellow) 12%, transparent); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); color: var(--ink); font: 500 13px/1.4 var(--mono); text-align: center; padding: 9px 14px; }

/* theme picker */
.skinbtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; display: grid; place-items: center; padding: 0; }
.skinbtn i, .skin i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--sw, var(--grad)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 4px 12px -4px var(--sw-glow, var(--g1)); }
.skinpop { position: absolute; top: calc(100% + 12px); right: 0; z-index: 70; padding: 8px; display: grid; gap: 2px; min-width: 210px; border-radius: 18px; background: rgba(20, 19, 28, .94); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.skins { display: flex; flex-wrap: wrap; gap: 6px; }
.skin { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; color: var(--ink); border-radius: 12px; padding: 9px 12px; font: 600 14px var(--body); cursor: pointer; text-align: left; }
.skin:hover { background: var(--panel2); }
.skin.on { border-color: var(--line2); background: var(--panel2); }
.skin[data-k="pitwall"] { --sw: linear-gradient(135deg, #ff2a5c, #ff8a2a); --sw-glow: #ff2a5c; }
.skin[data-k="midnight"] { --sw: linear-gradient(135deg, #6d7cff, #c05cff); --sw-glow: #6d7cff; }
.skin[data-k="papaya"] { --sw: linear-gradient(135deg, #ff8a00, #ff3d7f); --sw-glow: #ff8a00; }
.skin[data-k="silver"] { --sw: linear-gradient(135deg, #00e5c7, #3a8dff); --sw-glow: #00e5c7; }
.skin[data-k="gold"] { --sw: linear-gradient(135deg, #ffd166, #ff9e1b); --sw-glow: #ffd166; }
.navskins { display: none; }
.fskins { margin-top: 18px; }
.fskins .skin { border-color: var(--line); background: var(--panel); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.fskins .skin.on { border-color: var(--g1); }

/* page header */
.phead { padding-block: 72px 34px; margin-bottom: 8px; }
.phead h1 { font-size: clamp(32px, 5vw, 64px); hyphens: auto; overflow-wrap: break-word; }
.phead p { color: var(--mute); max-width: 60ch; margin-top: 14px; font-size: 18.5px; }
.sec { padding-block: 100px 0; }
.sectitle { margin-bottom: 10px; }
.secsub { color: var(--mute); font-size: 18px; margin-bottom: 30px; max-width: 60ch; }
.sechead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.sec > h2 + .bento { margin-top: 30px; }

/* hero */
.hero { padding-block: 64px 0; }
.herogrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.herotext { display: grid; gap: 24px; min-width: 0; justify-items: start; }
.herotext h1 { font-size: clamp(42px, 5.6vw, 78px); line-height: .98; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); font: 600 13px/1.2 var(--body); color: var(--mute); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--g1); }
.lead { font-size: 19px; color: var(--mute); max-width: 50ch; }
.heroshot { position: relative; perspective: 1600px; }
.frame { padding: 9px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid var(--line2); box-shadow: 0 50px 120px -40px color-mix(in srgb, var(--g1) 55%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .9); transform: rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.frame img { border-radius: 18px; }
.float { position: absolute; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: rgba(20, 19, 28, .72); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float b { font: 700 28px/1 var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.float span { font-size: 12.5px; color: var(--mute); }
.f1 { left: -26px; bottom: 12%; }
.f2 { right: -10px; top: -18px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.stats > div { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; }
.stats b { font: 700 34px/1.1 var(--mono); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.stats span { color: var(--mute); font-size: 14px; }

/* bento of features */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bcard { display: flex; flex-direction: column; gap: 20px; padding: 24px; text-decoration: none; overflow: hidden; transition: transform .25s, border-color .25s; min-width: 0; }
.bcard:hover { transform: translateY(-3px); border-color: var(--line2); }
.b0 { grid-column: span 4; } .b1 { grid-column: span 2; } .b2, .b3, .b4 { grid-column: span 2; }
.b5 { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bhead { display: flex; gap: 16px; align-items: flex-start; }
.bhead h3 { margin-bottom: 6px; }
.bhead p { color: var(--mute); font-size: 15px; }
.bicon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--on); box-shadow: 0 10px 24px -10px var(--g1); }
.ico { width: 22px; height: 22px; }
.bshot { margin-top: auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.bshot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; transition: transform .5s; }
.bcard:hover .bshot img { transform: scale(1.03); }
.b0 .bshot img { aspect-ratio: 16/8.5; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 8px 16px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; }

/* screenshot marquee */
.strip { margin-top: 100px; overflow: hidden; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.striptrack { display: flex; gap: 18px; width: max-content; animation: slide 80s linear infinite; }
.striptrack img { width: 380px; height: 238px; object-fit: cover; object-position: top left; border-radius: 16px; border: 1px solid var(--line2); }
.strip:hover .striptrack { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tiercard { position: relative; padding: 26px; display: grid; gap: 14px; align-content: start; }
.tiercard.pop { border: 1px solid transparent; background: linear-gradient(180deg, rgba(26, 24, 36, .95), rgba(16, 15, 23, .95)) padding-box, var(--grad) border-box; box-shadow: 0 40px 90px -45px var(--g1); }
.popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: var(--on); font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -8px var(--g1); }
.th { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font: 800 46px/1 var(--display); font-stretch: 110%; letter-spacing: -.03em; }
.price small { font: 500 14px var(--body); color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.tiercard ul { margin: 4px 0 10px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.tiercard li { padding-left: 28px; position: relative; }
.tiercard li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--g1) 22%, transparent); }
.tiercard li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 8px; border: solid var(--g1); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tbtns { display: grid; gap: 8px; margin-top: auto; }

/* news */
.newsgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.newscard { display: grid; text-decoration: none; overflow: hidden; transition: transform .25s, border-color .25s; }
.newscard:hover { transform: translateY(-3px); border-color: var(--line2); }
.newscard img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.newscard > div { padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.newscard p { color: var(--mute); font-size: 15px; }
time { font: 500 12.5px var(--mono); color: var(--dim); }
.article { padding-block: 50px 20px; display: grid; gap: 18px; }
.article h1 { font-size: clamp(34px, 4.6vw, 56px); }
.artimg { border-radius: var(--r); border: 1px solid var(--line); }
.prose { display: grid; gap: 14px; font-size: 17.5px; max-width: 68ch; min-width: 0; overflow-wrap: anywhere; }
.prose a { color: var(--g1); }
.back { color: var(--mute); text-decoration: none; font-weight: 700; }
.back:hover { color: var(--ink); }

/* call to action */
.cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--grad); color: var(--on); border-radius: 30px; padding: 52px; box-shadow: 0 50px 100px -50px var(--g1); }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .25), transparent 60%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 22px); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta p { max-width: 56ch; margin-top: 12px; opacity: .9; font-size: 17px; }
.cta .btn.light { color: #0b0b10; }
.cta .btn.outline { color: var(--on); border-color: color-mix(in srgb, var(--on) 55%, transparent); }

/* showcase */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shotcard { margin: 0; display: grid; gap: 16px; padding: 12px 12px 20px; transition: transform .25s, border-color .25s; }
.shotcard:hover { transform: translateY(-3px); border-color: var(--line2); }
.shotimg { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg2); }
.shotimg img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.shotimg:hover img { transform: scale(1.03); }
.shotcard figcaption { padding-inline: 8px; display: grid; gap: 6px; }
.shotttl { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.shotcard p { color: var(--mute); font-size: 15px; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 9, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb figure { margin: 0; display: grid; gap: 14px; justify-items: center; min-width: 0; }
.lb img { max-height: 82vh; border-radius: 16px; border: 1px solid var(--line2); box-shadow: 0 40px 120px -30px #000; }
.lb figcaption { color: #ddd; text-align: center; max-width: 80ch; }
.lb button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; justify-self: center; }
.lbx { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* guide */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 2px; padding: 16px; }
.toc .eyebrow { padding: 4px 10px 10px; }
.toc a { text-decoration: none; color: var(--mute); padding: 8px 10px; border-radius: 10px; font-size: 14.5px; }
.toc a:hover { color: var(--ink); background: var(--panel2); }
.gbody { display: grid; gap: 22px; min-width: 0; }
.gsec { display: grid; gap: 14px; scroll-margin-top: 100px; padding: 28px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.gsec h2 { display: flex; gap: 14px; align-items: center; font-size: 26px; }
.gsec h2 span { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: var(--on); font: 700 15px var(--mono); }
.gsec ul, .gsec ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: #dcdce6; }
.gsec p { color: #dcdce6; }
.faq { padding: 16px 20px; border-radius: 16px; margin-bottom: 10px; box-shadow: none; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--g1); font: 700 20px/1 var(--mono); }
.faq[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--mute); margin-top: 10px; }

.privacy { display: grid; gap: 18px; padding-bottom: 20px; }
.privacy .gsec a { color: var(--g1); }
.faqwrap { margin-top: 70px; display: grid; gap: 14px; }

/* cards & forms */
.card { padding: 26px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.form label i { color: var(--mute); font-weight: 400; }
.form .two, .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form.inline { display: flex; gap: 10px; }
.form.inline input { flex: 1; min-width: 0; }
input, select, textarea { width: 100%; background: rgba(0, 0, 0, .32); color: var(--ink); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; font: 500 16px var(--body); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--g1) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1) 18%, transparent); }
select option { background: #15141c; }
input[type=color] { padding: 4px; height: 46px; }
input[type=file] { padding: 9px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; display: flex; gap: 18px; flex-wrap: wrap; }
legend { font-size: 14px; font-weight: 700; padding: 0 6px; }
label.radio, .form label.radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
label.radio input { width: auto; accent-color: var(--g1); }
.thanks { font-size: 17px; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--g1); padding: 14px 18px; border-radius: 14px; font-size: 15px; margin-top: 26px; }

/* predictions */
.predgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.racename { display: flex; gap: 14px; align-items: center; font-size: clamp(30px, 3.6vw, 42px); }
.flag { font-size: .9em; }
.countdown { font: 700 18px var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.bar { display: grid; grid-template-columns: minmax(0, 150px) 1fr 48px; gap: 12px; align-items: center; font-size: 14px; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar div { height: 10px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.bar b { font: 700 13px var(--mono); text-align: right; }
.lb-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-table li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); font-variant-numeric: tabular-nums; }
.lb-table li:first-child .pos { color: var(--gold); }
.lb-table li.me { box-shadow: inset 0 0 0 1px var(--g1); }
.pos, .pts { font: 700 15px var(--mono); }
.resline { font-size: 15px; }

/* paddock */
.toolbar { display: flex; justify-content: space-between; align-items: start; gap: 14px; flex-wrap: wrap; }
.toolbar .chips { margin: 0; }
.toolbar + p { margin: 16px 0 22px; }
.threads { display: grid; gap: 10px; }
.thread { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; text-decoration: none; box-shadow: none; transition: border-color .2s, transform .2s; }
.thread:hover { border-color: var(--line2); transform: translateX(2px); }
.thread img { width: 60px; height: 60px; object-fit: cover; border-radius: 14px; }
.ticon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--panel2); border-radius: 14px; font-size: 26px; }
.thread h3 { margin: 6px 0 4px; font-size: 19px; }
.post { display: grid; gap: 14px; padding: 28px; margin: 24px 0; }
.post h1 { font-size: clamp(30px, 4vw, 46px); }
.replies { display: grid; gap: 12px; margin: 16px 0 20px; }
.reply { padding: 16px 20px; display: grid; gap: 6px; border-radius: 18px; box-shadow: none; }
.reply .prose { font-size: 16px; }
.admin-row { margin-top: 4px; }
#rf { margin-bottom: 40px; }

.thread.waiting { border-style: dashed; border-color: color-mix(in srgb, var(--yellow) 40%, transparent); }
.tag.wait { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, transparent); }
.modnote { margin: 0 0 18px; border-left-color: var(--yellow); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(4, 4, 8, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.mbox { position: relative; padding: 30px; width: min(660px, 100%); display: grid; gap: 18px; border-radius: 26px; background: linear-gradient(180deg, rgba(28, 26, 38, .96), rgba(18, 17, 26, .96)); }
.mx { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); color: var(--mute); font-size: 22px; line-height: 1; cursor: pointer; }

/* fun zone */
.fungrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.span2 { grid-column: 1 / -1; }
.pollq { font-size: 19px; font-weight: 700; }
.pollopts { display: grid; gap: 8px; }
.pollopts .btn { justify-content: flex-start; border-radius: 14px; }
.bigscore { font: 700 56px/1 var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.cardmaker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.cardmaker > div { display: grid; gap: 12px; min-width: 0; }
#cv { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.takef { display: flex; gap: 10px; }
.takef input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 18px; }
.takes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.take { padding: 18px; display: grid; gap: 10px; border-radius: 18px; box-shadow: none; }
.take > p:first-child { font: 700 18px/1.4 var(--body); }
.tkbar { height: 6px; background: color-mix(in srgb, var(--blue) 45%, transparent); border-radius: 99px; overflow: hidden; }
.tkbar i { display: block; height: 100%; background: var(--grad); }

/* support */
.status { font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .8px; padding: 5px 9px; border-radius: 999px; display: inline-block; }
.st-new { background: color-mix(in srgb, var(--mute) 22%, transparent); }
.st-seen { background: color-mix(in srgb, var(--blue) 28%, transparent); }
.st-planned { background: color-mix(in srgb, var(--purple) 30%, transparent); }
.st-fixed { background: color-mix(in srgb, var(--green) 28%, transparent); }
.st-wontfix { background: color-mix(in srgb, #ff4d6d 24%, transparent); }
.report { padding: 18px 20px; display: grid; gap: 6px; margin-bottom: 10px; border-radius: 18px; box-shadow: none; }
.ideas { display: grid; gap: 12px; margin-top: 4px; }
.idea { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 18px; box-shadow: none; }
.idea p { color: var(--mute); }
.vote { display: grid; justify-items: center; align-content: center; gap: 2px; border: 1px solid var(--line2); background: var(--panel); color: var(--mute); border-radius: 14px; cursor: pointer; font-size: 13px; height: 64px; transition: .15s; }
.vote b { font: 700 18px var(--mono); color: var(--ink); }
.vote.on { background: var(--grad); color: var(--on); border-color: transparent; }
.vote.on b { color: var(--on); }
#if { margin-bottom: 22px; }

/* account */
.acct { display: grid; gap: 20px; padding-block: 48px; }
.me { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; }
.me h1 { font-size: clamp(28px, 3.6vw, 42px); overflow-wrap: anywhere; }
.avatar { width: 66px; height: 66px; border-radius: 20px; background: var(--grad); color: var(--on); display: grid; place-items: center; font: 800 30px var(--display); box-shadow: 0 14px 30px -14px var(--g1); }
.acgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bigtier { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bigtier .tier { font-size: 15px; padding: 10px 14px; }
code { font: 500 13px var(--mono); background: var(--panel2); padding: 3px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.login { max-width: 470px; margin: 70px auto; padding: 34px; display: grid; gap: 16px; }
.login h1 { font-size: 34px; }
.or { text-align: center; color: var(--dim); }
.admh { margin-top: 34px; }
.admgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.admgrid .span2 { grid-column: 1 / -1; }
.admrep { border-top: 1px solid var(--line); padding-block: 12px; }
.admrep summary { cursor: pointer; }
.admrep .row input { flex: 1; min-width: 160px; }
.admrep .row select { width: auto; }
.admshot { max-width: 320px; border-radius: 10px; margin-block: 10px; }

/* footer, toast */
#footer { margin-top: 110px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-bottom: 30px; }
.fwrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; max-width: var(--max); margin: 0 auto; padding: 34px; border-radius: 28px; }
.fwrap p { margin-top: 12px; font-size: 15px; }
.flinks { display: grid; gap: 8px; align-content: start; }
.flinks a { color: var(--mute); text-decoration: none; font-size: 15px; }
.flinks a:hover { color: var(--ink); }
.legal { max-width: var(--max); margin: 18px auto 0; color: var(--dim); font-size: 13px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; z-index: 200; background: rgba(24, 23, 32, .92); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); padding: 13px 22px; border-radius: 999px; font-weight: 700; transition: .25s; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: linear-gradient(135deg, #ff3b5c, #c2185b); border-color: transparent; color: #fff; }


/* ============ v3: nav groups, F1 hub, drivers & teams, packs, careers, profiles, roadmap ============ */
/* dropdown groups in the top bar */
.dd { position: relative; flex: none; }
.ddbtn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 11px; border-radius: 999px; border: 0; background: none; cursor: pointer; font: 600 14.5px/1 var(--body); color: var(--mute); white-space: nowrap; transition: .15s; }
.ddbtn svg { width: 12px; height: 12px; transition: transform .2s; }
.ddbtn:hover, .dd.open .ddbtn { color: var(--ink); background: var(--panel); }
.dd.on .ddbtn { color: var(--ink); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); }
.dd.open .ddbtn svg { transform: rotate(180deg); }
.ddmenu { display: none; position: absolute; top: calc(100% + 12px); left: -8px; z-index: 80; min-width: 300px; padding: 8px; gap: 2px; border-radius: 20px; background: rgba(18, 17, 26, .96); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.ddmenu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dd.open .ddmenu { display: grid; }
@media (hover: hover) { body:not(.compactnav) .dd:hover .ddmenu { display: grid; } body:not(.compactnav) .dd:hover .ddbtn svg { transform: rotate(180deg); } }
.ddmenu a { display: grid; gap: 3px; padding: 11px 14px; border-radius: 13px; text-decoration: none; }
.ddmenu a b { font: 700 15px/1.2 var(--body); color: var(--ink); }
.ddmenu a small { font-size: 13px; color: var(--mute); line-height: 1.3; }
.ddmenu a:hover { background: var(--panel2); }
.ddmenu a.on { background: color-mix(in srgb, var(--g1) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g1) 40%, transparent); }
body.compactnav .mainnav { max-height: calc(100vh - 110px); overflow-y: auto; }
body.compactnav .dd { display: grid; gap: 2px; margin-top: 6px; }
body.compactnav .ddbtn { cursor: default; padding: 10px 14px 4px; font: 600 11.5px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); background: none !important; box-shadow: none !important; }
body.compactnav .ddbtn svg { display: none; }
body.compactnav .ddmenu { display: grid; position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.compactnav .ddmenu a { padding: 11px 14px; border-radius: 12px; }
body.compactnav .ddmenu a small { display: none; }
body.compactnav .ddmenu a b { font-size: 16px; font-weight: 600; }

a.who { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--dim); }
a.who:hover { color: var(--ink); border-bottom-color: var(--g1); }
.tag.sm { font-size: 9.5px; padding: 4px 7px; margin: 0 0 0 4px; vertical-align: 1px; }
.eyebrow.dim { color: var(--dim); }
.subh { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 18px; }
.src { margin-top: 26px; }
.emptybox { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 60px 20px; border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; }
.emptybox span { font-size: 40px; }

/* country code pill (flags are not drawn on Windows, codes always are) */
.iso { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 7px; border-radius: 7px; font: 700 11px/1 var(--mono); letter-spacing: .8px; color: var(--ink); background: var(--panel2); border: 1px solid var(--line2); vertical-align: middle; }
h2 .iso, h1 .iso { height: 30px; min-width: 54px; font-size: 13px; transform: translateY(-4px); }

/* next race + countdown */
.nextgp { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 28px; margin-bottom: 26px; position: relative; overflow: hidden; }
.nextgp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 0% 0%, color-mix(in srgb, var(--g1) 18%, transparent), transparent 70%); pointer-events: none; }
.nextgp > * { position: relative; }
.ngtext { display: grid; gap: 6px; min-width: 0; }
.ngtext h2 { font-size: clamp(30px, 3.4vw, 44px); }
.ngcd { display: grid; gap: 10px; justify-items: start; }
.cdbig { display: flex; gap: 8px; min-height: 68px; }
.cdbig span { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 66px; padding: 10px 8px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); }
.cdbig b { font: 700 28px/1 var(--mono); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cdbig i { font: 600 10.5px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--dim); font-style: normal; }
.cdbig .live { min-width: 0; grid-auto-flow: column; gap: 10px; padding: 12px 18px; font: 700 15px var(--mono); color: var(--ink); }
.live i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 12px #ff3b5c; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.sessions { display: grid; gap: 10px; }
.sessions div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.sessions span { color: var(--mute); font-size: 14px; }
.sessions b { font: 700 14px var(--mono); text-align: right; }
.nextgp.compact { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 22px 0; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f1grid .stack > .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.tile.flat { background: var(--panel); padding: 12px 14px; }
.tile span { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { font: 700 28px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.tile.flat b { font-size: 22px; }
.tile i { font: 600 11.5px var(--mono); color: var(--dim); font-style: normal; }

/* layout */
.f1grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.f1grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f1grid.even > :only-child { grid-column: 1 / -1; }
.card.tight { padding: 22px 16px 16px; }
.card.tight > h3 { padding-inline: 8px; }
.tscroll { overflow-x: auto; }

/* data tables */
.dt { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 15px; }
.dt th { text-align: left; font: 600 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--dim); padding: 4px 10px; }
.dt td { padding: 9px 10px; background: var(--panel); vertical-align: middle; white-space: nowrap; }
.dt td:first-child { border-radius: 12px 0 0 12px; width: 44px; }
.dt td:last-child { border-radius: 0 12px 12px 0; }
.dt .r { text-align: right; }
.dt tr.gold td { background: color-mix(in srgb, var(--gold) 9%, var(--panel)); }
.dt tr.gold td:first-child { color: var(--gold); }
.dt tbody tr { transition: transform .15s; }
.dt tbody tr:hover td { background: var(--panel2); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dnum { display: inline-grid; place-items: center; width: 30px; height: 24px; margin-right: 10px; border-radius: 7px; font: 700 12px/1 var(--mono); color: #fff; background: color-mix(in srgb, var(--tc) 72%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, #fff 10%); vertical-align: middle; }
.dlink { color: var(--ink); text-decoration: none; font-weight: 700; }
.dlink:hover { color: var(--g1); }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); text-decoration: none; font-size: 14px; }
.tlink i { width: 4px; height: 16px; border-radius: 4px; flex: none; }
.tlink:hover { color: var(--ink); }
.ptbar { display: inline-block; width: 64px; height: 6px; margin-right: 10px; border-radius: 99px; background: var(--panel2); overflow: hidden; vertical-align: middle; }
.ptbar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* chart */
.chart { position: relative; display: grid; gap: 10px; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--mute); }
.chart .legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart .legend i, .ctip i { width: 14px; height: 4px; border-radius: 4px; display: inline-block; }
.chart svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid text { fill: var(--dim); font: 500 11px var(--mono); }
.chart .lines path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dots circle { stroke: #121119; stroke-width: 2; }
.chart .dots text { fill: var(--ink); font: 700 12px var(--mono); }
.chart .hl { stroke: var(--line2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ctip { position: absolute; top: 34px; z-index: 5; display: grid; gap: 4px; min-width: 150px; padding: 10px 12px; border-radius: 12px; background: rgba(20, 19, 28, .95); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; pointer-events: none; }
.ctip[hidden] { display: none; }
.ctip b { font-size: 12.5px; margin-bottom: 2px; }
.ctip span { display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.ctip em { margin-left: auto; font-style: normal; font-weight: 700; }

/* calendar */
.cal { display: grid; gap: 8px; margin-bottom: 14px; }
.calrow { display: grid; grid-template-columns: 34px 58px minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.4fr); gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
a.calrow:hover { border-color: var(--line2); transform: translateX(2px); }
.calrow.next { border: 1px solid transparent; background: linear-gradient(180deg, rgba(26, 24, 36, .95), rgba(16, 15, 23, .95)) padding-box, var(--grad) border-box; box-shadow: 0 20px 50px -30px var(--g1); }
.calrow.done .rnd { color: var(--dim); }
.rnd { font: 700 18px var(--mono); color: var(--ink); text-align: center; }
.calname { display: grid; min-width: 0; }
.calname b { font-size: 16.5px; }
.calname span, .calres span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caldate { font: 600 13.5px var(--mono); color: var(--mute); }
.calres { display: grid; gap: 2px; justify-items: end; text-align: right; min-width: 0; font-size: 14.5px; }
.nexttag { background: var(--grad); color: var(--on); margin: 0; }

/* results */
.resnav { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.resnav select { width: auto; flex: 0 1 360px; min-width: 0; }
.resnav .btn { min-width: 44px; font-size: 18px; }
.reshead { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.reshead h2 { font-size: clamp(26px, 3vw, 38px); }

/* season packs */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.pack { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, border-color .25s; box-shadow: var(--shadow); }
.pack:hover { transform: translateY(-3px); border-color: var(--line2); }
.pack.waiting { border-style: dashed; border-color: color-mix(in srgb, var(--yellow) 40%, transparent); }
.pcover { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 35%, #0d0c12), color-mix(in srgb, var(--g2) 25%, #0d0c12)); }
.pph b { font: 900 clamp(34px, 4vw, 54px)/1 var(--display); font-stretch: 125%; color: rgba(255, 255, 255, .85); letter-spacing: -.03em; }
.pbody { display: grid; gap: 8px; padding: 18px 20px 20px; align-content: start; min-width: 0; }
.pbody h3 { overflow-wrap: anywhere; }
.pmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pmeta > span:first-child + span { margin-right: auto; }
.stars { position: relative; display: inline-block; width: 80px; height: 16px; vertical-align: middle; margin-right: 6px; background: linear-gradient(90deg, var(--line2) 0 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l2.1 4.5 4.9.6-3.6 3.4.9 4.9L8 12l-4.3 2.4.9-4.9L1 6.1l4.9-.6z'/%3E%3C/svg%3E") 0 0/16px 16px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l2.1 4.5 4.9.6-3.6 3.4.9 4.9L8 12l-4.3 2.4.9-4.9L1 6.1l4.9-.6z'/%3E%3C/svg%3E") 0 0/16px 16px repeat-x; }
.stars i { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.packpage { gap: 16px; }
.rate { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--panel); }
.rstars { display: flex; gap: 4px; }
.rstars button { background: none; border: 0; padding: 0 2px; font-size: 30px; line-height: 1; color: var(--line2); cursor: pointer; transition: transform .12s, color .12s; }
.rstars button.on { color: var(--gold); }
.rstars:hover button { color: var(--gold); }
.rstars button:hover ~ button { color: var(--line2); }
.rstars button:hover { transform: scale(1.15); }

/* career showcase */
.careers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.ccard { position: relative; overflow: hidden; display: grid; gap: 8px; align-content: start; padding: 24px; min-height: 250px; border-radius: var(--r); text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .12);
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px), linear-gradient(135deg, #0a0a0f 30%, color-mix(in srgb, var(--cc) 70%, #0a0a0f)); box-shadow: 0 30px 70px -40px var(--cc); transition: transform .25s; }
.ccard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--cc); }
a.ccard:hover { transform: translateY(-3px); }
.ccard.waiting { outline: 2px dashed color-mix(in srgb, var(--yellow) 50%, transparent); outline-offset: -2px; }
.cnum { position: absolute; right: 14px; top: -8px; font: 900 120px/1 var(--display); font-stretch: 125%; color: rgba(255, 255, 255, .08); pointer-events: none; }
.cteam { font: 700 12px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; opacity: .8; position: relative; }
.ccard h3 { font-size: 30px; position: relative; overflow-wrap: anywhere; }
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; position: relative; }
.cstats div { display: grid; gap: 2px; padding: 10px 8px; border-radius: 12px; background: rgba(255, 255, 255, .08); min-width: 0; }
.cstats b { font: 800 24px/1 var(--mono); }
.cstats .gold b { color: #f5c542; }
.cstats i { font: 700 9.5px var(--mono); letter-spacing: .8px; text-transform: uppercase; font-style: normal; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cby { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; font-size: 13px; opacity: .85; position: relative; }
.cby span:last-child { margin-left: auto; font-weight: 700; }
.ccard.big { min-height: 320px; padding: 34px; }
.ccard.big h3 { font-size: clamp(36px, 5vw, 58px); }
.ccard.big .cnum { font-size: 220px; }
.ccard.big .cstats b { font-size: 34px; }
.cpage { display: grid; gap: 18px; margin-top: 18px; }
.fame { margin: 0 0 22px; }
.fame .nm { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.packs.mini, .careers.mini { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; }
.careers.mini .ccard { min-height: 0; padding: 18px 20px; }
.careers.mini .ccard h3 { font-size: 22px; }
.careers.mini .cnum { font-size: 84px; }
.packs.mini .pack { grid-template-rows: none; grid-template-columns: 140px minmax(0, 1fr); }
.packs.mini .pcover { aspect-ratio: auto; height: 100%; }
.packs.mini .pbody { padding: 14px 16px; }

/* profiles & badges */
.prof { display: grid; gap: 0; padding-block: 48px; }
.prof .me { margin-bottom: 4px; }
.bio { margin-top: 10px; font-size: 16px; max-width: 64ch; }
.favs { margin-top: 12px; gap: 8px; }
.favchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); text-decoration: none; font-size: 13.5px; color: var(--mute); }
.favchip b { color: var(--ink); }
.favchip .dnum { margin: 0; width: 26px; height: 20px; font-size: 11px; }
.favchip > i { width: 10px; height: 20px; border-radius: 4px; background: var(--tc); margin-left: 4px; }
.favchip:hover { border-color: var(--tc); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.badge { display: grid; gap: 3px; justify-items: start; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); opacity: .4; filter: grayscale(1); }
.badge span { font-size: 26px; line-height: 1.1; }
.badge b { font-size: 14.5px; }
.badge i { font-style: normal; font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.badge.on { opacity: 1; filter: none; background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 16%, transparent), var(--panel)); border-color: color-mix(in srgb, var(--g1) 35%, transparent); }
.span2c { margin-top: 0; }

/* roadmap */
.rmcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rmcol { border-top: 3px solid var(--c, var(--line2)); }
.rmcol.st-planned { --c: var(--purple); background: var(--glass); }
.rmcol.st-seen { --c: var(--blue); }
.rmcol.st-fixed { --c: var(--green); }
.rmitem { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--panel); }
.rmitem b { font-size: 15px; }
.vote.sm { height: 46px; font-size: 11px; cursor: default; }
.vote.sm b { font-size: 14px; }
.wanted { margin-top: 20px; }
.wanted .sechead { margin: 0; }
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.clog { display: grid; gap: 16px; position: relative; padding-left: 26px; }
.clog::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--g1), var(--line)); border-radius: 2px; }
.clv { position: relative; padding: 22px 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); display: grid; gap: 12px; }
.clv::before { content: ""; position: absolute; left: -26px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line2); }
.clv.latest::before { border-color: var(--g1); box-shadow: 0 0 14px var(--g1); }
.clhead { display: flex; align-items: center; gap: 10px; }
.clhead b { font-size: 22px; }
.clv ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #dcdce6; }

/* home additions */
.homef1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.homef1 .card.tight a.small { padding-inline: 8px; color: var(--g1); text-decoration: none; font-weight: 700; }
.commgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.commgrid .sechead { margin-bottom: 14px; }
.invite { text-decoration: none; padding: 30px; border-style: dashed; transition: border-color .2s; }
.invite:hover { border-color: var(--g1); }
.invite b { font-size: 18px; }

@media (max-width: 1320px) {
  .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nextgp { grid-template-columns: minmax(0, 1fr) auto; }
  .nextgp .sessions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nextgp .sessions p { grid-column: 1 / -1; }
  .nextgp.compact .sessions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .f1grid, .f1grid.even, .homef1, .commgrid, .rmcols { grid-template-columns: minmax(0, 1fr); }
  .teamgrid, .packs, .careers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calrow { grid-template-columns: 30px 54px minmax(0, 1fr) auto; }
  .calres { grid-column: 3 / -1; justify-items: start; text-align: left; }
  .dhero { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .dpos { justify-items: start; }
}
@media (max-width: 620px) {
  .nextgp { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 18px; }
  .nextgp .sessions { grid-template-columns: minmax(0, 1fr); }
  .cdbig span { min-width: 0; flex: 1; padding: 10px 4px; }
  .cdbig b { font-size: 24px; }
  .tiles, .tiles.six, .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teamgrid, .packs, .careers, .wgrid { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .dt td { padding: 9px 7px; }
  .ptbar { display: none; }
  .calrow { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .calrow .iso { display: none; }
  .calres { grid-column: 2 / -1; }
  .caldate { font-size: 12px; text-align: right; }
  .dhero { padding: 24px; border-radius: 24px; }
  .dpos b { font-size: 46px; }
  .ccard h3 { font-size: 26px; }
  .cstats b { font-size: 20px; }
  .packs.mini .pack { grid-template-columns: 100px minmax(0, 1fr); }
  .tchead { grid-template-columns: auto 1fr; }
  .tchead b { grid-column: 2; }
}

/* responsive */
/* the menu folds into the ☰ button whenever the links don't fit (set by app.js, any language) */
body.compactnav .mainnav { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: rgba(16, 15, 23, .96); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
body.compactnav.navopen .mainnav { display: flex; }
body.compactnav .mainnav > a { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
body.compactnav .burger { display: flex; }
body.compactnav .skinbtn { display: none; }
body.compactnav .navskins { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding: 12px 6px 4px; }
body.compactnav .navskins p { font: 600 11.5px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); }
.topright { flex: none; }
.topright .btn.sm { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1320px) {
  .tiers, .acgrid, .admgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f1 { left: 10px; } .f2 { right: 10px; }
}
@media (max-width: 980px) {
  .herogrid, .predgrid, .guide, .cardmaker, .fwrap { grid-template-columns: minmax(0, 1fr); }
  .frame { transform: none; }
  .float { display: none; }
  .toc { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b0, .b5 { grid-column: span 2; } .b1, .b2, .b3, .b4 { grid-column: span 1; }
  .shots, .newsgrid, .fungrid, .takes { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-block: 72px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b0, .b1, .b2, .b3, .b4, .b5 { grid-column: span 1; }
  .tiers, .acgrid, .admgrid, .two, .form .two { grid-template-columns: minmax(0, 1fr); }
  .langsel { max-width: 122px; }
  .topright .btn.sm { max-width: 118px; overflow: hidden; }
  .brand span { display: none; }
  #topbar { gap: 10px; }
  .phead { padding-block: 44px 20px; }
  .cta { padding: 30px; border-radius: 24px; }
  .me { grid-template-columns: auto 1fr; }
  .me .btn { grid-column: 1 / -1; }
  .lb { grid-template-columns: 40px 1fr 40px; }
  .lb button { width: 38px; height: 38px; font-size: 20px; }
  .bar { grid-template-columns: minmax(0, 110px) 1fr 42px; }
  .striptrack img { width: 280px; height: 175px; }
  .gsec { padding: 20px; }
  .fwrap { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.wanted .sechead { flex-wrap: wrap; }
.wanted .sechead .btn { white-space: normal; text-align: center; }

/* ===== predictions v2 (2026-10-29) ===== */
.pp { display: grid; gap: 22px; padding-bottom: 60px; }
.pp-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pp-prizes > div { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, transparent), rgba(255, 255, 255, .02)); }
.pp-prizes > div > span { font-size: 30px; line-height: 1; }
.pp-tabs { margin: 0; justify-self: start; max-width: 100%; }
.pp-race { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pp-form { gap: 20px; }
.pp-racehead { display: flex; gap: 16px; align-items: center; }
.pp-racehead h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0; }
.pp-flag { font-size: 44px; line-height: 1; }
.pp-picks { display: grid; gap: 18px; }
.pp-podium-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.pp-step { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px 10px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.pp-step.s1 { padding-top: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, transparent), var(--panel)); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.pp-step b { font: 800 22px var(--display); }
.pp-step i { font: 600 11px var(--mono); color: var(--dim); font-style: normal; }
.pp-step select { padding: 10px; font-size: 14px; }
.pp-medal { font-size: 26px; line-height: 1; }
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp-pick { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.pp-pick > span { display: flex; justify-content: space-between; gap: 8px; }
.pp-pick i, .pp-sc i { font: 700 11.5px var(--mono); font-style: normal; color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); padding: 2px 8px; border-radius: 99px; }
.pp-sc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.pp-sc > span { flex: 1 1 100%; display: flex; justify-content: space-between; }
.pp-sc label { flex: 1; cursor: pointer; }
.pp-sc input { position: absolute; opacity: 0; pointer-events: none; }
.pp-sc label b { display: block; text-align: center; padding: 11px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); transition: .15s; }
.pp-sc input:checked + b { background: var(--grad); color: var(--on); border-color: transparent; }
.pp-sc input:focus-visible + b { outline: 2px solid var(--g1); outline-offset: 2px; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.pp-sbtn { grid-column: 1 / -1; display: grid; }
.pp-big { font: 800 52px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: flex; align-items: baseline; gap: 8px; }
.pp-big span { font: 600 14px var(--body); color: var(--mute); -webkit-text-fill-color: var(--mute); }
.pp-parts, .pp-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pp-parts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--panel); font-size: 14px; }
.pp-parts li em { font-style: normal; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-parts li b { font: 700 14px var(--mono); text-align: right; color: var(--dim); }
.pp-parts li.hit { box-shadow: inset 3px 0 0 var(--green); }
.pp-parts li.hit b { color: var(--green); }
.pp-parts li.near { box-shadow: inset 3px 0 0 var(--gold); }
.pp-parts li.near b { color: var(--gold); }
.pp-how li { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 10px; background: var(--panel); font-size: 14px; }
.pp-how b { font: 700 14px var(--mono); color: var(--gold); }
.bar[style*="--tc"] i { background: var(--tc); }
.pp-empty { justify-items: center; text-align: center; padding: 50px 26px; }
.pp-empty > span { font-size: 46px; }
/* tables */
.pp-board { display: grid; gap: 18px; }
.pp-boardbar { display: grid; gap: 12px; }
.pp-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); justify-self: start; max-width: 100%; overflow-x: auto; }
.pp-switch button { border: 0; background: none; color: var(--mute); font: 700 14px var(--body); padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pp-switch button.on { background: var(--grad); color: var(--on); }
.pp-chips { margin: 0; }
.pp-chips > * { padding: 7px 13px; font-size: 13px; }
.pp-stage { gap: 26px; padding-bottom: 0; overflow: hidden; background: radial-gradient(600px 260px at 50% 100%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 70%), var(--glass); }
.pp-stagehead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.pp-stagehead h2 { font-size: clamp(24px, 2.8vw, 36px); margin: 4px 0 6px; text-transform: capitalize; }
.pp-prizeline { padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); max-width: 420px; }
.pp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 720px; width: 100%; margin: 0 auto; }
.pp-pod { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.pp-pod .who { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-pod > b { font: 800 24px var(--mono); display: flex; align-items: baseline; gap: 5px; }
.pp-pod > b small { font: 600 12px var(--body); color: var(--mute); }
.pp-pod .pp-medal { margin-top: -18px; position: relative; z-index: 1; }
.pp-block { width: 100%; border-radius: 16px 16px 0 0; display: grid; place-items: start center; padding-top: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); border: 1px solid var(--line2); border-bottom: 0; }
.pp-block span { font: 800 34px var(--display); color: rgba(255, 255, 255, .35); }
.pp-pod.p1 .pp-block { height: 150px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 55%, transparent), color-mix(in srgb, var(--gold) 8%, transparent)); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.pp-pod.p1 .pp-block span { color: rgba(255, 255, 255, .85); }
.pp-pod.p2 .pp-block { height: 108px; background: linear-gradient(180deg, rgba(210, 218, 230, .45), rgba(210, 218, 230, .05)); }
.pp-pod.p3 .pp-block { height: 80px; background: linear-gradient(180deg, rgba(205, 127, 50, .5), rgba(205, 127, 50, .06)); }
.pp-pod.empty .pp-block { opacity: .4; }
.pp-ava { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--grad); color: var(--on); font: 800 16px var(--display); overflow: hidden; }
.pp-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-ava.lg { width: 72px; height: 72px; font-size: 30px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--g1) 60%, transparent); }
.pp-pod.p1 .pp-ava.lg { width: 88px; height: 88px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold), 0 14px 40px -10px var(--gold); }
.pp-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pp-table li { display: grid; grid-template-columns: 34px 38px minmax(0, 1.2fr) minmax(60px, 1fr) 56px; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--panel); }
.pp-table li.me { box-shadow: inset 0 0 0 1px var(--g1); }
.pp-table .pos { font: 700 15px var(--mono); text-align: center; color: var(--mute); }
.pp-table li.top:nth-child(1) .pos { color: var(--gold); }
.pp-table .nm { display: grid; min-width: 0; font-weight: 700; }
.pp-table .nm .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-table .nm small { font-weight: 500; color: var(--dim); font-size: 12px; }
.pp-barw { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.pp-barw i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.pp-table .pts { font: 800 18px var(--mono); text-align: right; }
@media (max-width: 980px) { .pp-race { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .pp-grid, .pp-grid.two { grid-template-columns: minmax(0, 1fr); }
  .pp-podium-picks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pp-step, .pp-step.s1 { grid-template-columns: 30px 34px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; padding: 10px 12px; gap: 4px 10px; }
  .pp-step.s1 { order: -1; }
  .pp-step i { grid-column: 1 / -1; order: 5; }
  .pp-step b { font-size: 18px; }
  .pp-step select { font-size: 15px; padding: 10px; }
  .pp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .pp-tabs a { white-space: normal; text-align: center; padding: 9px 6px; font-size: 12.5px; line-height: 1.25; display: grid; place-items: center; }
  .pp-table li { grid-template-columns: 26px 34px minmax(0, 1fr) 48px; padding-right: 10px; }
  .pp-table .pp-barw { display: none; }
  .pp-ava { width: 34px; height: 34px; }
  .pp-ava.lg { width: 56px; height: 56px; font-size: 24px; }
  .pp-pod.p1 .pp-ava.lg { width: 66px; height: 66px; }
  .pp-pod > b { font-size: 19px; }
  .pp-pod.p1 .pp-block { height: 110px; } .pp-pod.p2 .pp-block { height: 80px; } .pp-pod.p3 .pp-block { height: 60px; }
}

/* ===== accounts v2 (2026-10-29) ===== */
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.authtabs a { text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; color: var(--mute); font-weight: 700; font-size: 14px; }
.authtabs a.on { background: var(--grad); color: var(--on); }
.oauth { display: grid; gap: 10px; }
.btn.oauthbtn { width: 100%; padding: 13px 20px; }
.btn.oauthbtn svg { width: 20px; height: 20px; flex: none; }
.btn.google { background: #fff; color: #1f1f1f; }
.btn.google:hover { background: #f1f1f1; }
.btn.discordbtn { background: #5865f2; color: #fff; }
.btn.discordbtn:hover { background: #4752c4; }
.pwwrap { position: relative; display: block; }
.pwwrap input { padding-right: 48px; }
.pweye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 17px; padding: 6px 8px; opacity: .7; }
.pweye:hover { opacity: 1; }
.namehint { font-weight: 600; }
.namehint.good { color: var(--green); }
.namehint.bad { color: #fb7185; }
.row.between { justify-content: space-between; }
.login .link { justify-self: center; }
.conn { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--panel); }
.conn > div { display: grid; min-width: 0; }
.conn > div .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 18px var(--display); background: var(--panel2); }
.conn-ic svg { width: 22px; height: 22px; }
.conn-ic.discord { background: #5865f2; color: #fff; }
.conn-ic.google { background: #fff; color: #4285f4; }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag.dctag { background: color-mix(in srgb, #5865f2 25%, transparent); border-color: color-mix(in srgb, #5865f2 50%, transparent); }
