/* Glacier Rush 3D website. Fonts and palette match the in-game UI (game/src/ui/styles.css). */
@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0a1b36;
  --navy-deep: #071630;
  --navy2: #12305e;
  --navy-line: #0a2b5e;
  --ice: #3fb6ff;
  --ice2: #8ff0ff;
  --gold: #ffd23f;
  --orange: #ff8a1f;
  --mint: #3dffc8;
  --text: #eef6ff;
  --muted: #b3c6e2;
  --card: rgba(18, 48, 94, 0.55);
  --card-solid: #102a54;
  --stroke: rgba(255, 255, 255, 0.16);
  --kit: #ef4b3f;
  --bjorn: #2f86f0;
  --nova: #9a63f5;
  --pepper: #f5b72e;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', system-ui, sans-serif;
  --body: 'Fredoka', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gutter: 28px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 500 17px/1.6 var(--body); color: var(--text);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ice2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0.3px; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons (same look as the in-game buttons) ---------- */
.btn {
  --face: linear-gradient(180deg, #ffe560 0%, #ffbd2e 45%, #ff9418 100%);
  --edge: #c45a00; --ink: #a04800;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 11px 24px 13px; border: 0; border-radius: 18px; cursor: pointer;
  font-family: var(--display); font-size: 21px; line-height: 1.1; color: #fff; text-decoration: none; white-space: nowrap;
  background: var(--face);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 6px 0 var(--edge), 0 12px 22px rgba(0, 0, 0, 0.35);
  text-shadow: 0 2px 0 var(--ink), 0 -1px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 2px 0 var(--edge), 0 6px 12px rgba(0, 0, 0, 0.3); }
.btn svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 2px 0 var(--ink)); }
.btn.blue { --face: linear-gradient(180deg, #8ee8ff 0%, #3fb6ff 45%, #1d78e6 100%); --edge: #0b4aa6; --ink: #0b4aa6; }
.btn.ghost {
  background: rgba(9, 24, 54, 0.55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 8px 18px rgba(0, 0, 0, 0.25);
  text-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn.ghost:active { transform: translateY(2px); }
.btn.small { min-height: 42px; padding: 8px 16px 9px; font-size: 17px; border-radius: 14px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 var(--edge), 0 8px 14px rgba(0, 0, 0, 0.3); }
.btn.small:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 var(--edge); }
.btn.big { min-height: 62px; padding: 14px 32px 16px; font-size: 25px; border-radius: 22px; }
.btn[aria-disabled='true'] { cursor: default; }
.btn[aria-disabled='true']:active { transform: none; }
.btn .sub { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; text-shadow: none; opacity: 0.92; color: #5a2a00; }
.btn.blue .sub { color: #06306e; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, -webkit-backdrop-filter 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.solid, .site-header.open {
  background: rgba(7, 22, 48, 0.86); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 21px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.35); }
.brand b { font-weight: 400; color: var(--gold); }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, 0.1); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(9, 24, 54, 0.55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); cursor: pointer; place-items: center; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .close { display: none; }
.site-header.open .menu-btn .open { display: none; }
.site-header.open .menu-btn .close { display: block; }
@media (max-width: 899px) {
  .js .menu-btn { display: grid; }
  .js .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 22px; background: rgba(7, 22, 48, 0.97); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .js .site-header.open .nav { visibility: visible; opacity: 1; transform: none; }
  .js .nav a { padding: 13px 12px; font-size: 18px; }
  .js .nav .btn { margin: 10px 0 0; }
  .nav { display: none; }
  .js .nav { display: flex; }
}

/* ---------- logo (same construction as the in-game logo) ---------- */
.logo { margin: 0; display: block; }
.logo-art { position: relative; display: inline-block; text-align: center; transform: rotate(-4deg); filter: drop-shadow(0 10px 18px rgba(0, 20, 60, 0.45)); padding: 0 6px; }
.logo-art .l1, .logo-art .l2 {
  display: block; font-family: var(--display); line-height: 0.88; font-size: var(--l1, 92px);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%) -200% 0 / 250% 100% no-repeat,
              linear-gradient(180deg, #ffffff 0%, #e8f9ff 40%, #8fdcff 62%, #3b9df0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px var(--navy-line); paint-order: stroke fill;
  animation: logo-shine 4.2s ease-in-out infinite;
}
.logo-art .l2 { font-size: var(--l2, 112px); letter-spacing: 2px; }
.logo-art .shadow { position: absolute; inset: 0; z-index: -1; padding: 0 6px; transform: translateY(7px); }
.logo-art .shadow .l1, .logo-art .shadow .l2 { background: none; color: var(--navy-line); -webkit-text-stroke: 12px var(--navy-line); animation: none; }
.logo-art .badge3d {
  position: absolute; right: -16px; bottom: -6px; transform: rotate(10deg);
  font-family: var(--display); font-size: var(--b3d, 38px); line-height: 1.2;
  padding: 0 14px 4px; border-radius: 16px; color: #fff; background: linear-gradient(180deg, #ffd25a, #ff8a1f);
  box-shadow: 0 5px 0 #b34f00, 0 10px 18px rgba(0, 0, 0, 0.35);
  text-shadow: 0 2px 0 #a04800, 2px 0 0 #a04800, -2px 0 0 #a04800, 0 -2px 0 #a04800;
}
@keyframes logo-shine { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 300% 0, 0 0; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #2d7fe0 0%, #1a56b0 40%, var(--navy-deep) 100%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero .snow { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.pill {
  display: flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 14px 7px; border-radius: 999px;
  background: rgba(7, 22, 48, 0.6); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-weight: 700; font-size: 14px; letter-spacing: 0.4px; color: #fff;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero .logo { margin: 22px 0 18px; }
.lede { max-width: 31ch; font-size: 20px; line-height: 1.5; font-weight: 600; color: #fff; text-shadow: 0 2px 14px rgba(4, 16, 40, 0.55); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 28px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.facts li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 7px; border-radius: 12px;
  background: rgba(7, 22, 48, 0.55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 600; font-size: 15px;
}
.facts svg { width: 17px; height: 17px; color: var(--mint); flex: none; }

@media (min-width: 900px) {
  .hero { min-height: clamp(620px, 50vw, 92vh); display: flex; align-items: center; }
  .hero-art { position: absolute; inset: 0; z-index: 0; }
  .hero-art img { object-position: 50% 42%; }
  .hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 18, 44, 0.62) 0%, rgba(5, 18, 44, 0.34) 28%, rgba(5, 18, 44, 0) 50%),
                linear-gradient(180deg, rgba(5, 18, 44, 0.45) 0%, rgba(5, 18, 44, 0) 18%),
                linear-gradient(0deg, var(--navy-deep) 0%, rgba(7, 22, 48, 0) 20%);
  }
  .hero-inner { padding-top: calc(var(--header-h) + 28px); padding-bottom: 72px; }
  .hero .logo { margin: 18px 0 14px; }
  .hero .logo-art { --l1: clamp(64px, 6.3vw, 96px); --l2: clamp(76px, 7.6vw, 116px); --b3d: clamp(28px, 2.7vw, 40px); }
}
@media (max-width: 899px) {
  .hero-art { position: relative; display: block; aspect-ratio: 1000 / 720; }
  .hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 48, 0.45) 0%, rgba(7, 22, 48, 0) 22%, rgba(7, 22, 48, 0) 62%, var(--navy-deep) 100%); }
  .hero { background: var(--navy-deep); }
  .hero .snow { bottom: auto; height: 100%; }
  .hero-inner { margin-top: -86px; padding-bottom: 56px; text-align: center; }
  .hero .logo { margin: 0 0 18px; }
  .hero .logo-art { --l1: clamp(50px, 14vw, 84px); --l2: clamp(60px, 17vw, 100px); --b3d: clamp(24px, 7vw, 36px); }
  .pill { margin-top: 26px; }
  .hero .pill { display: none; }
  .lede { margin: 0 auto; font-size: 18px; text-shadow: none; }
  .cta-row, .facts { justify-content: center; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 88px 0; }
@media (max-width: 699px) { .section { padding: 64px 0; } }
.eyebrow { display: inline-block; margin-bottom: 10px; font-weight: 700; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ice2); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2, .h2 {
  font-size: clamp(38px, 5.6vw, 60px); color: #fff;
  text-shadow: 0 3px 0 var(--navy-line), 0 -2px 0 var(--navy-line), 3px 0 0 var(--navy-line), -3px 0 0 var(--navy-line), 0 7px 0 rgba(4, 14, 36, 0.5);
}
.section-head h2 em, .h2 em { font-style: normal; color: var(--gold); }
.section-head p { margin-top: 14px; font-size: 19px; color: var(--muted); }
.bg-ice { background: radial-gradient(90% 60% at 50% 0%, rgba(63, 182, 255, 0.16), transparent 70%), linear-gradient(180deg, var(--navy-deep), #0b2350 100%); }
.bg-deep { background: linear-gradient(180deg, #0b2350 0%, var(--navy-deep) 100%); }
.wave { display: block; width: 100%; height: 48px; margin-bottom: -1px; }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
/* if site.js never runs, show everything anyway */
.js:not(.ready) .reveal { animation: reveal-fallback 0.6s ease 2.5s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- features ---------- */
.features-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .features-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone {
  position: relative; width: 232px; aspect-ratio: 908 / 2030; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2b3f63, #0d1a33 60%, #1d2f52); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; z-index: 1; width: 25%; height: 3.2%; transform: translateX(-50%); border-radius: 12px; background: #050b16; }
.phones .phone:nth-child(1) { z-index: 2; width: 250px; }
.phones .phone:nth-child(2) { position: absolute; z-index: 1; left: calc(50% - 250px); bottom: 34px; width: 200px; transform: rotate(-8deg); opacity: 0.95; }
.phones .phone:nth-child(3) { position: absolute; z-index: 1; right: calc(50% - 250px); bottom: 34px; width: 200px; transform: rotate(8deg); opacity: 0.95; }
@media (max-width: 560px) {
  .phones { min-height: 400px; }
  .phones .phone:nth-child(1) { width: 184px; }
  .phones .phone:nth-child(2) { width: 146px; left: max(14px, calc(50% - 170px)); }
  .phones .phone:nth-child(3) { width: 146px; right: max(14px, calc(50% - 170px)); }
}
section { overflow-x: hidden; overflow-x: clip; }
.cards { display: grid; gap: 16px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative; padding: 22px 22px 24px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 64, 122, 0.7), rgba(13, 35, 74, 0.8));
  box-shadow: inset 0 0 0 1.5px var(--stroke), 0 16px 34px rgba(0, 0, 0, 0.28);
}
.card h3 { margin: 14px 0 8px; font-size: 25px; color: #fff; }
.card p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.icon-chip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--chip, linear-gradient(180deg, #8ee8ff, #1d78e6)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 0 rgba(0, 0, 0, 0.25); }
.icon-chip svg { width: 28px; height: 28px; color: #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); }

/* ---------- tricks ---------- */
.tricks { overflow: hidden; }
.tricks-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .tricks-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }
.tricks-head h2 { margin-bottom: 14px; }
.tricks-head p { color: var(--muted); font-size: 19px; max-width: 42ch; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 30px; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 22px; background: rgba(18, 48, 94, 0.5); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.step .gesture { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(180deg, #ffe560, #ff9418); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 5px 0 #c45a00; }
.step .gesture svg { width: 36px; height: 36px; color: #fff; filter: drop-shadow(0 2px 0 #a04800); }
.step:nth-child(2) .gesture { background: linear-gradient(180deg, #8ee8ff, #1d78e6); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 5px 0 #0b4aa6; }
.step:nth-child(2) .gesture svg { filter: drop-shadow(0 2px 0 #0b4aa6); }
.step:nth-child(3) .gesture { background: linear-gradient(180deg, #a6ff8a, #18b04a); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 5px 0 #0c7a30; }
.step:nth-child(3) .gesture svg { filter: drop-shadow(0 2px 0 #0c7a30); }
.step h3 { font-size: 23px; color: #fff; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.trick-art { position: relative; display: grid; place-items: center; }
.trick-art::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(143, 240, 255, 0.35), rgba(63, 182, 255, 0.12) 45%, transparent 70%); }
.trick-art img { position: relative; width: min(100%, 520px); animation: float 5s ease-in-out infinite; }
.trick-art .tag {
  position: absolute; font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); color: #fff; white-space: nowrap;
  -webkit-text-stroke: 2px var(--navy-line); paint-order: stroke fill; text-shadow: 0 4px 0 var(--navy-line);
}
.trick-art .tag.t1 { top: 6%; left: 2%; color: var(--gold); transform: rotate(-8deg); }
.trick-art .tag.t2 { bottom: 10%; right: 0; color: var(--ice2); transform: rotate(6deg); }
.hazards { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; color: var(--muted); font-size: 15.5px; }
.hazards span { padding: 4px 11px 5px; border-radius: 10px; background: rgba(239, 75, 63, 0.16); box-shadow: inset 0 0 0 1.5px rgba(239, 75, 63, 0.45); color: #ffd0cb; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }

/* ---------- worlds ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 11px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(18, 48, 94, 0.6); box-shadow: inset 0 0 0 1.5px var(--stroke); font-family: var(--display); font-size: 19px; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tab i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tab:hover { color: #fff; }
.tab[aria-selected='true'] { color: #fff; background: linear-gradient(180deg, #8ee8ff 0%, #3fb6ff 45%, #1d78e6 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 4px 0 #0b4aa6; text-shadow: 0 2px 0 #0b4aa6; }
.tab[aria-selected='true'] i { background: #fff; box-shadow: none; }
.world { position: relative; overflow: hidden; border-radius: 30px; background: var(--card-solid); box-shadow: 0 0 0 1.5px var(--stroke), 0 30px 60px rgba(0, 0, 0, 0.4); }
.world + .world { margin-top: 22px; }
.js .world + .world { margin-top: 0; }
.world img { width: 100%; aspect-ratio: 2688 / 1520; object-fit: cover; }
.world .caption { padding: 22px 22px 26px; }
.world .chip { display: inline-block; margin-bottom: 10px; padding: 4px 12px 5px; border-radius: 10px; font-weight: 700; font-size: 13.5px; letter-spacing: 0.6px; text-transform: uppercase; color: #fff; background: var(--c); }
.world h3 { font-size: clamp(32px, 4vw, 46px); color: #fff; }
.world p { margin-top: 8px; color: var(--muted); font-size: 17.5px; max-width: 52ch; }
@media (min-width: 820px) {
  .world .caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 34px 30px;
    background: linear-gradient(0deg, rgba(5, 16, 40, 0.92) 0%, rgba(5, 16, 40, 0.6) 55%, transparent 100%);
  }
  .world p { color: #dbe8fb; }
}
.js .world[hidden] { display: none; }
.js .world.enter { animation: world-in 0.5s ease both; }
@keyframes world-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.worlds-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- riders ---------- */
.riders { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 559px) { .riders { grid-template-columns: 1fr 1fr; gap: 12px; } }
.rider {
  position: relative; overflow: hidden; border-radius: 26px; padding: 0 0 20px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 36%, #10285a) 0%, #0f2550 58%, #0c1f45 100%);
  box-shadow: inset 0 0 0 1.5px var(--stroke), 0 18px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.rider:hover { transform: translateY(-6px); }
.rider .pic { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.rider .pic::before { content: ''; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, #fff) 0%, color-mix(in srgb, var(--c) 40%, transparent) 40%, transparent 70%); opacity: 0.75; }
.rider .pic img { position: relative; width: 92%; transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1); }
.rider:hover .pic img { transform: scale(1.05) rotate(-2deg); }
.rider h3 { font-size: 34px; color: #fff; text-shadow: 0 3px 0 var(--navy-line); }
.rider .species { margin-top: 2px; color: var(--muted); font-weight: 600; font-size: 15.5px; }
.stats { display: grid; gap: 7px; margin: 16px 20px 16px; text-align: left; }
.stat { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: #d8e6fb; }
.pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pips i { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.pips i.on { background: linear-gradient(90deg, var(--ice2), var(--ice)); box-shadow: 0 0 8px rgba(143, 240, 255, 0.55); }
.cost { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 7px; border-radius: 12px; background: rgba(7, 22, 48, 0.55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); font-family: var(--display); font-size: 17px; color: var(--gold); }
.cost.free { color: var(--mint); }
.coin { width: 18px; height: 18px; flex: none; }
@media (max-width: 559px) {
  .rider h3 { font-size: 26px; }
  .rider .species { font-size: 13.5px; }
  .stats { margin: 12px 12px; }
  .stat { grid-template-columns: 40px 1fr; font-size: 12.5px; gap: 6px; }
  .pips i { height: 8px; }
  .cost { font-size: 15px; padding: 5px 10px 6px; }
}

/* ---------- tubes ---------- */
.tubes-wrap { margin-top: 64px; padding: 34px 22px 30px; border-radius: 30px; background: rgba(18, 48, 94, 0.45); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.tubes-wrap h3 { text-align: center; font-size: clamp(30px, 4vw, 40px); color: #fff; text-shadow: 0 3px 0 var(--navy-line); }
.tubes-wrap > p { margin: 8px auto 26px; max-width: 48ch; text-align: center; color: var(--muted); }
.tubes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 18px 12px; }
.tube-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tube {
  position: relative; width: 96px; aspect-ratio: 1; border-radius: 50%; margin-bottom: 8px;
  -webkit-mask: radial-gradient(circle, transparent 27%, #000 28%); mask: radial-gradient(circle, transparent 27%, #000 28%);
  background: var(--skin);
  transition: transform 0.4s cubic-bezier(.2, 1.4, .4, 1);
}
.tube::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0) 24%), radial-gradient(circle, rgba(0, 0, 0, 0.35) 27%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.28) 50%); }
.tube-item:hover .tube { transform: rotate(40deg) scale(1.06); }
.tube-item b { font-family: var(--display); font-weight: 400; font-size: 19px; color: #fff; }
.tube-item small { font-weight: 600; font-size: 14px; color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.tube-item small.premium { color: var(--ice2); }
.tube-item small .coin { width: 15px; height: 15px; }
.tube.signature { --skin: conic-gradient(var(--kit) 0 25%, var(--bjorn) 0 50%, var(--nova) 0 75%, var(--pepper) 0); }
.tube.frost { --skin: repeating-conic-gradient(#7fd6ff 0 34deg, #ffffff 34deg 45deg); }
.tube.midnight { --skin: radial-gradient(circle, #ffd23f 0 3.5px, transparent 4.5px) 0 0 / 17px 17px, radial-gradient(circle, #3553b0 0%, #1a2d6e 45%, #13235a 70%); }
.tube.magma { --skin: conic-gradient(from 20deg, #ff3d1f, #ffb31a, #ff3d1f, #ffb31a, #ff3d1f); }
.tube.neon { --skin: repeating-conic-gradient(#3dffc8 0 15deg, #ff3dbb 15deg 30deg); }
.tube.aurora { --skin: conic-gradient(from 90deg, #29e08f, #2fd3ff, #8f5cff, #29e08f, #8f5cff, #29e08f); }
.tube.gold { --skin: conic-gradient(from 30deg, #ffc93a, #fff2b0, #e7a412, #ffc93a, #fff2b0, #e7a412, #ffc93a); }

/* ---------- screenshots ---------- */
.shots-viewport { position: relative; }
.shots {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 66vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 10px var(--gutter) 26px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 26px; box-shadow: 0 0 0 1.5px var(--stroke), 0 18px 36px rgba(0, 0, 0, 0.4); }
@media (min-width: 1400px) { .shots { justify-content: safe center; } }
.shots-nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.shots-nav button { width: 48px; height: 48px; border: 0; border-radius: 16px; cursor: pointer; display: grid; place-items: center; background: rgba(18, 48, 94, 0.7); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.shots-nav button:hover { background: rgba(38, 78, 140, 0.8); }
.shots-nav button:disabled { opacity: 0.35; cursor: default; }
.shots-nav svg { width: 22px; height: 22px; }
.no-js .shots-nav, .shots-nav[hidden] { display: none; }

/* ---------- free to play ---------- */
.fair { display: grid; gap: 18px; }
@media (min-width: 900px) { .fair { grid-template-columns: 1fr 1fr 1fr; } }
.fair .card { text-align: center; padding: 28px 22px; }
.fair .card .icon-chip { margin: 0 auto; width: 64px; height: 64px; border-radius: 20px; }
.fair .card .icon-chip svg { width: 34px; height: 34px; }
.extras { margin-top: 26px; padding: 26px 24px; border-radius: 26px; background: rgba(7, 22, 48, 0.5); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, 0.35); }
.extras h3 { font-size: 26px; color: var(--gold); text-align: center; }
.extras > p { margin: 6px auto 20px; text-align: center; color: var(--muted); max-width: 54ch; }
.extras ul { list-style: none; display: grid; gap: 12px; }
@media (min-width: 760px) { .extras ul { grid-template-columns: repeat(3, 1fr); } }
.extras li { padding: 16px 18px; border-radius: 18px; background: rgba(18, 48, 94, 0.55); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.extras li b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; color: #fff; }
.extras li span { color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: rgba(18, 48, 94, 0.5); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.faq details[open] { background: rgba(24, 60, 114, 0.6); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 18px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); font-family: var(--display); font-size: 22px; line-height: 1; color: var(--ice2); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: #d4e2f6; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- download CTA ---------- */
.download { position: relative; overflow: hidden; isolation: isolate; padding: 120px 0; text-align: center; }
.download picture, .download picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.download::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 55%, rgba(5, 18, 44, 0.78), rgba(5, 18, 44, 0.35) 70%), linear-gradient(180deg, var(--navy-deep) 0%, rgba(7, 22, 48, 0) 18%, rgba(7, 22, 48, 0) 82%, var(--navy-deep) 100%); }
.download .panel {
  max-width: 600px; margin: 0 auto; padding: 0 26px 34px; border-radius: 32px;
  background: rgba(7, 22, 48, 0.66); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.download .icon { width: 112px; height: 112px; margin: -56px auto 20px; border-radius: 26px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 18px 40px rgba(0, 0, 0, 0.5); }
.download p { margin: 14px auto 28px; max-width: 40ch; font-size: 19px; font-weight: 600; color: #fff; }
.download .fine { margin: 20px auto 0; font-size: 15px; font-weight: 600; color: #c9d9f1; }

/* ---------- footer ---------- */
.site-footer { padding: 44px 0 52px; background: #050f22; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer .brand { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: #d8e6fb; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer small { display: block; margin-top: 8px; font-size: 14px; }

/* ---------- document pages (privacy, support, 404) ---------- */
.doc-hero { padding: calc(var(--header-h) + 54px) 0 34px; background: radial-gradient(100% 120% at 50% 0%, #2a76d2 0%, #10306a 50%, var(--navy-deep) 100%); }
.doc-hero h1 { font-size: clamp(42px, 7vw, 64px); color: #fff; text-shadow: 0 3px 0 var(--navy-line), 0 -2px 0 var(--navy-line), 3px 0 0 var(--navy-line), -3px 0 0 var(--navy-line), 0 7px 0 rgba(4, 14, 36, 0.5); }
.doc-hero p { margin-top: 12px; color: #d4e2f6; font-weight: 600; }
.doc, .doc-hero .wrap { max-width: 800px; }
.doc { padding-bottom: 80px; }
.doc h2 { margin: 36px 0 8px; font-size: 26px; color: var(--ice2); }
.doc p { margin: 0 0 12px; }
.doc p, .doc li { color: #d9e6f8; }
.doc .card { margin-top: 28px; }
.doc .card ul { padding-left: 20px; }
.doc .card li + li { margin-top: 6px; }
.doc .card strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
