/* =========================================================
   CYCLE CENTRAL BRAND TOKENS
   Palette: Blue #3c78c6 · Cream #eeebe3 · Brown #92694b · Charcoal #1c2126
   Type: Inter Bold / Bold Italic (headings) · Open Sauce Sans (body), both self-hosted
   ========================================================= */
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: italic; font-display: swap; src: url("../assets/fonts/inter-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: italic; font-display: swap; src: url("../assets/fonts/inter-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-weight: 700; font-style: italic; font-display: swap; src: url("../assets/fonts/open-sauce-sans-latin-700-italic.woff2") format("woff2"); }

:root {
  --brand: #3c78c6;          /* Cycle Central blue: buttons, highlights */
  --brand-dark: #2f62a6;     /* hover state of blue */
  --brand-tint: #e3ecf8;     /* soft blue surface */
  --brand-ink: #ffffff;      /* text on blue */
  --earth: #92694b;          /* brown: secondary accent, rewards */
  --earth-tint: #f1e8e0;
  --cream: #eeebe3;
  --ink: #1c2126;            /* charcoal: text and dark surfaces */
  --ink-2: #4b5258;
  --muted: #7c8287;
  --bg: #f7f6f2;             /* page background (light cream) */
  --bg-2: #eeebe3;           /* brand cream: alternate sections */
  --surface: #ffffff;        /* cards */
  --line: #dedad0;
  --success: #2e8a57;
  --gold: #92694b;           /* reward colour, mapped to brand brown */

  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sauce Sans", "Inter", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(28,33,38,.12);
  --header-h: 72px;
  --max: 1360px;

  /* Triangle mosaic from the logo, used as a decorative pattern */
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cg fill='%233c78c6'%3E%3Cpath d='M15 1 L28 25 L2 25Z'/%3E%3Cpath d='M30 25 L43 1 L56 25Z' opacity='.55'/%3E%3Cpath d='M2 27 L28 27 L15 51Z' opacity='.35'/%3E%3Cpath d='M45 27 L58 51 L32 51Z' opacity='.75'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin: 0 0 .4em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost.light { color: #fff; border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; background: none; border: 0; width: 42px; height: 42px; border-radius: 50%;
  font-size: 19px; display: inline-grid; place-items: center;
}
.icon-btn:hover { background: var(--bg-2); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.5); } }

/* ---------- Scroll ride progress ---------- */
.ride-track { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.ride-fill { height: 100%; width: 0; background: var(--brand); }
.ride-bike { position: absolute; top: -2px; left: 0; font-size: 16px; transform: translateX(-50%) scaleX(-1); transition: opacity .2s; opacity: 0; }

/* ---------- Promo bar & header ---------- */
.promo-bar {
  background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.promo-bar .sep { opacity: .4; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(247,246,242,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { display: block; height: 46px; width: auto; }
.logo-icon { display: none !important; }
.main-nav { display: flex; gap: 26px; align-items: center; height: 100%; }
.nav-item { height: 100%; display: flex; align-items: center; font-weight: 600; font-size: 15px; }
.nav-item > a, .nav-item > .link-btn { text-decoration: none; position: relative; padding: 6px 0; }
.nav-item > a::after, .nav-item > .link-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.nav-item:hover > a::after, .nav-item > .link-btn:hover::after { transform: scaleX(1); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,.08); padding: 28px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.mega-tile { background: var(--bg-2); border-radius: var(--radius-lg); padding: 14px; transition: background .2s; }
.mega-tile:hover { background: var(--brand-tint); }
.mega-tile svg { width: 100%; height: 80px; }
.mega-tile strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 20px; margin-top: 6px; }
.mega-tile span { font-size: 12px; color: var(--muted); font-weight: 400; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; }

.xp-pill {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; margin-right: 6px;
}
.xp-pill:hover { border-color: var(--ink); }
.xp-level { text-transform: uppercase; letter-spacing: .05em; }
.xp-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.xp-bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.xp-num { color: var(--muted); }
.xp-pill.pulse { animation: pulse .7s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60,120,198,.5); } 100% { box-shadow: 0 0 0 12px rgba(60,120,198,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 760px); background: var(--ink); color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-art { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-art svg { width: min(78vw, 980px); height: auto; opacity: .95; transform: translateX(12%); }
.hero-slide.active .hero-art svg { animation: rollIn 1.2s cubic-bezier(.2,.8,.2,1); }
@keyframes rollIn { from { transform: translateX(40%); opacity: 0; } }
.hero-content { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 24px 72px; }
.hero-content .eyebrow { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius); margin-bottom: 18px; }
.hero .hero-title { font-size: clamp(52px, 9vw, 128px); font-weight: 800; max-width: 11ch; }
.hero p { font-size: 18px; max-width: 46ch; opacity: .85; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; right: 24px; bottom: 32px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.3); padding: 0; }
.hero-dots button.active { background: var(--brand); }
.hero-bg-1 { background: radial-gradient(ellipse at 70% 40%, #2b3a4d, #1c2126 70%); }
.hero-bg-2 { background: radial-gradient(ellipse at 70% 40%, #4a3a2e, #1c2126 70%); }
.hero-bg-3 { background: radial-gradient(ellipse at 70% 40%, #24456f, #1c2126 70%); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 56px); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  position: relative; background: var(--bg-2); border-radius: var(--radius-lg); padding: 20px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.section.alt .cat-card { background: var(--surface); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card h3 { font-size: 30px; margin: 0; }
.cat-card p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.cat-card svg { width: 100%; height: 110px; transition: transform .5s; }
.cat-card:hover svg { transform: translateX(8px) rotate(-2deg); }
.cat-card .arrow { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .2s; }
.cat-card:hover .arrow { background: var(--brand); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.rail > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; background: var(--bg-2); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.card-media svg, .card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.card:hover .card-media svg { transform: scale(1.05); }
.tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.tag.sale { background: var(--brand); color: var(--brand-ink); }
.tag.hot { background: var(--earth); color: #fff; }
.card-fav { position: absolute; top: 8px; right: 8px; background: var(--surface); }
.card-fav.on { color: var(--brand); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card-title { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; font-weight: 700; line-height: 1.05; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 17px; }
.price s { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.stars em { color: var(--muted); font-style: normal; margin-left: 4px; letter-spacing: 0; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.stock-low { font-size: 12px; color: var(--brand-dark); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; padding: 10px; font-size: 13px; }
.card-actions .cmp { flex: 0 0 auto; width: 42px; }
.cmp.on { background: var(--ink); color: #fff; }
.xp-hint { font-size: 11px; color: var(--success); font-weight: 600; }

/* ---------- Gamified banners ---------- */
.game-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.game-card h3 { font-size: 36px; }
.game-card p { opacity: .8; margin: 0 0 16px; }
.game-card .big-emoji { position: absolute; right: -10px; bottom: -20px; font-size: 130px; opacity: .18; transform: rotate(-12deg); transition: transform .5s; }
.game-card:hover .big-emoji { transform: rotate(8deg) scale(1.1); }
.game-card.brand { background: var(--brand); color: var(--brand-ink); }
.game-card.brand .btn { background: var(--ink); border-color: var(--ink); }

.mission-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mission { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.mission .ico { font-size: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex: 0 0 auto; }
.mission.done .ico { background: var(--success); }
.mission strong { display: block; font-size: 14px; }
.mission small { color: var(--muted); }
.mission .reward { margin-left: auto; font-weight: 700; font-size: 12px; color: var(--success); white-space: nowrap; }
.mission.done { opacity: .65; }
.mission.done strong { text-decoration: line-through; }

/* ---------- Shop page ---------- */
.page-head { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 28px 0 72px; }
.filters h4 { font-size: 18px; margin: 18px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.range { width: 100%; accent-color: var(--brand); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.toolbar select, .toolbar input[type=search] { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; font-size: 14px; background: var(--surface); }
.toolbar input[type=search] { min-width: 220px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 52px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 32px 0 72px; }
.pdp-media { background: var(--bg-2); border-radius: var(--radius-lg); display: grid; place-items: center; padding: 40px; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; aspect-ratio: 4/3; }
.pdp-media svg { width: 100%; height: 100%; }
.pdp h1 { font-size: clamp(40px, 5vw, 64px); }
.pdp .price { font-size: 26px; }
.pdp-block { border-top: 1px solid var(--line); padding: 18px 0; }
.pdp-block h4 { font-size: 16px; margin-bottom: 10px; }
.size-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { min-width: 52px; padding: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-weight: 600; }
.size-btn.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 34px; border: 0; background: none; font-size: 16px; }
.qty span { min-width: 30px; text-align: center; align-self: center; font-weight: 600; }
.pdp-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12px; text-align: center; color: var(--ink-2); }
.pdp-perks div { background: var(--bg-2); border-radius: var(--radius); padding: 12px 6px; }
.pdp-perks b { display: block; font-size: 20px; }
.size-helper { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.size-helper input { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }

/* ---------- Rewards page ---------- */
.rider-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.rider-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 46px; }
.rider-card h2 { font-size: 46px; margin: 0; }
.level-track { display: flex; gap: 6px; margin-top: 14px; }
.level-step { flex: 1; text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .5; }
.level-step i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); margin-bottom: 6px; }
.level-step.reached { opacity: 1; }
.level-step.reached i { background: var(--brand); }
.rider-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 24px; text-align: right; }
.rider-stats b { font-family: var(--font-display); font-size: 32px; display: block; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge-tile { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 12px; }
.badge-tile .medal { width: 70px; height: 70px; margin: 0 auto 10px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 34px; filter: grayscale(1); opacity: .45; }
.badge-tile.earned .medal { filter: none; opacity: 1; background: radial-gradient(circle at 30% 30%, #fff, var(--brand-tint) 45%, var(--brand)); box-shadow: 0 6px 16px rgba(60,120,198,.35); }
.badge-tile strong { display: block; font-size: 14px; }
.badge-tile small { color: var(--muted); font-size: 12px; }
.perk-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.perk-table th, .perk-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.perk-table th { font-family: var(--font-display); text-transform: uppercase; font-size: 16px; background: var(--ink); color: #fff; }
.perk-table tr.current td { background: var(--brand-tint); font-weight: 600; }

/* ---------- Overlay / drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 80; }
.overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 90; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 28px; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 10px; }
.ship-meter { padding: 14px 20px; background: var(--bg-2); font-size: 13px; }
.meter { height: 8px; border-radius: 4px; background: #ddd; overflow: hidden; margin-top: 8px; position: relative; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width .5s; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .thumb { background: var(--bg-2); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; padding: 6px; }
.cart-line .thumb svg { width: 100%; height: 100%; }
.cart-line strong { font-size: 14px; display: block; }
.cart-line small { color: var(--muted); }
.cart-line .remove { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; }
.sum-row.total { font-size: 18px; font-weight: 700; }
.sum-row.discount { color: var(--success); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; text-transform: uppercase; }
.upsell { background: var(--bg-2); border-radius: var(--radius-lg); padding: 12px; margin: 14px 0; }
.upsell h5 { margin: 0 0 8px; font-size: 13px; }
.upsell-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .25s; pointer-events: none; }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-card { background: var(--surface); border-radius: var(--radius-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 32px; position: relative; transform: translateY(20px) scale(.98); transition: transform .3s; }
.modal.open .modal-card { transform: none; }
.modal-card.wide { width: min(1000px, 100%); }
.modal-close { position: absolute; top: 12px; right: 12px; }

/* Quiz */
.quiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.quiz-progress i.on { background: var(--brand); }
.quiz-q { font-size: 38px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.quiz-opt { border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px 14px; text-align: left; transition: border-color .15s, transform .15s; }
.quiz-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.quiz-opt .e { font-size: 30px; display: block; margin-bottom: 6px; }
.quiz-opt strong { display: block; }
.quiz-opt small { color: var(--muted); }
.quiz-result { text-align: center; }
.quiz-result .match { display: inline-block; background: var(--success); color: #fff; font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: 13px; margin-bottom: 10px; }
.quiz-result svg { width: 100%; max-height: 220px; }

/* Spin wheel */
.spin-wrap { text-align: center; }
.wheel-box { position: relative; width: min(340px, 80vw); aspect-ratio: 1; margin: 18px auto; }
.wheel-box svg { width: 100%; height: 100%; transition: transform 4.5s cubic-bezier(.12,.75,.12,1); }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--ink); z-index: 2; }
.wheel-hub { position: absolute; inset: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; border: 4px solid #fff; }
.spin-result { min-height: 52px; font-weight: 600; }
.code-pill { display: inline-block; font-family: monospace; font-size: 18px; background: var(--bg-2); border: 2px dashed var(--brand); padding: 6px 14px; border-radius: var(--radius); margin-top: 6px; }

/* Compare */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table th { color: var(--muted); font-weight: 500; width: 140px; }
.cmp-table td svg { width: 100%; max-width: 220px; height: 120px; }
.cmp-table .best { color: var(--success); font-weight: 700; }

/* Toasts & confetti */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn .3s, toastOut .3s 2.6s forwards; display: flex; gap: 10px; align-items: center; }
.toast .xp { background: var(--brand); color: var(--brand-ink); padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.toast.levelup { background: linear-gradient(90deg, var(--brand), var(--earth)); color: #fff; font-weight: 700; font-size: 16px; padding: 16px 24px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 130; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 24px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 18px; }
.site-footer a, .site-footer .link-btn { display: block; color: #c9c6be; font-size: 14px; margin: 6px 0; text-decoration: none; text-align: left; }
.site-footer a:hover, .site-footer .link-btn:hover { color: #8fb6e8; }
.logo-footer { margin-bottom: 14px; }
.logo-footer img { height: 64px; }
.footer-legal { max-width: var(--max); margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid #2c333a; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .xp-bar, .xp-num { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--surface); flex-direction: column; align-items: stretch;
    gap: 0; height: auto; padding: 12px 24px; transform: translateX(-100%); transition: transform .3s; overflow: auto;
  }
  .main-nav.open { transform: none; }
  .nav-item { height: auto; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 20px; flex-direction: column; align-items: flex-start; }
  .mega { display: none; }
  .game-strip { grid-template-columns: 1fr; }
  .shop-layout, .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .filters { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .rider-card { grid-template-columns: 1fr; text-align: center; }
  .rider-avatar { margin: 0 auto; }
  .rider-stats { text-align: center; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap, .header-inner, .hero-content { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 8px; }
  .logo-full { display: none !important; }
  .logo-icon { display: block !important; height: 38px !important; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { min-height: 180px; padding: 14px; }
  .cat-card h3 { font-size: 22px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .modal-card { padding: 22px; }
  .hero-dots { left: 16px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Polish fixes ---------- */
.badge[hidden] { display: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.hero-art { place-items: center end; }
.hero-art svg { width: min(62vw, 860px); transform: translateX(6%); opacity: .9; }
.hero .hero-title { text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.toasts .toast:nth-last-child(n+4) { display: none; }
@media (max-width: 600px) {
  .promo-bar .sep { display: none; }
  .hero { align-items: stretch; min-height: 700px; }
  .hero-art { place-items: start center; padding-top: 28px; }
  .hero-art svg { width: 92vw; transform: none; }
  .hero .hero-title { font-size: 56px; }
}

/* ---------- Brand touches ---------- */
body { font-weight: 400; }
.btn, .chip, .nav-item, .xp-pill { font-family: var(--font-display); }
.btn { font-weight: 700; letter-spacing: -.005em; }
.card-title, .mega-tile strong { font-family: var(--font-display); font-weight: 800; font-style: italic; letter-spacing: -.02em; }
.card-title { font-size: 20px; }
.price { font-family: var(--font-display); }
.stars { color: var(--earth); }
.eyebrow, .hero-content .eyebrow { font-family: var(--font-display); }
.promo-bar { background: var(--brand); }
.promo-bar .link-btn { color: #fff; }
.hero-content .eyebrow { background: var(--brand); }
.hero::after, .game-card::after {
  content: ""; position: absolute; inset: auto 0 0 auto; width: 46%; height: 70%;
  background: var(--tri); background-size: 60px 52px; opacity: .14; pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 10%, transparent 70%); mask-image: linear-gradient(225deg, #000 10%, transparent 70%);
}
.hero::after { inset: 0 0 auto auto; z-index: 1; }
.game-card { background: var(--ink); }
.game-card.brand { background: var(--brand); }
.game-card.brand::after { filter: brightness(4); opacity: .18; }
.game-card.earth { background: var(--earth); }
.section-head h2::after { content: ""; display: block; width: 46px; height: 5px; margin-top: 12px; background: var(--brand); transform: skewX(-20deg); }
.xp-bar-fill, .meter span { background: linear-gradient(90deg, var(--brand), #6e9fde); }
.cat-card .arrow { transform: skewX(0); }
.mission.done .ico { background: var(--brand); color: #fff; }
.mission .reward, .xp-hint { color: var(--brand-dark); }
.sum-row.discount { color: var(--brand-dark); }
.quiz-result .match { background: var(--brand); }
.cmp-table .best { color: var(--brand-dark); }
.rider-avatar { background: var(--brand); }
.level-step.reached i { background: var(--brand); }
.stock-low { color: var(--earth); }
.code-pill { border-color: var(--brand); }
.tag.new { background: var(--ink); }
.site-footer { background: var(--ink); }
.game-card.earth .btn { background: var(--ink); border-color: var(--ink); }
.hero .hero-title { font-size: clamp(46px, 6.4vw, 96px); max-width: 9ch; }
@media (max-width: 600px) { .hero-art svg { width: 76vw; } .hero-art { padding-top: 18px; } }

/* ---------- SEO content blocks ---------- */
.card-title { margin: 0; }
.card-title a { color: inherit; }
.page-intro { max-width: 65ch; margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }
.pdp-desc { max-width: 60ch; color: var(--ink-2); margin: 12px 0 0; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-copy h2 { font-size: clamp(30px, 3.6vw, 44px); }
.about-copy p { max-width: 65ch; color: var(--ink-2); font-size: 16px; margin: 0; }
.about-links h3 { font-size: 20px; }
.about-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.about-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.about-links a:hover { color: var(--brand-dark); text-decoration-color: currentColor; }
.footer-soon { display: block; color: #8b8f93; font-size: 14px; margin: 6px 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }
