/* Snakes Go! — single page site. Colours come from scripts/looks.gd and scripts/worlds.gd. */

@font-face { font-family: "Lilita One"; src: url("assets/fonts/LilitaOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("assets/fonts/Baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #2b2140;
  --ink-soft: #4a3f63;
  --cream: #fff8ec;
  --paper: #fffdf7;
  --coral: #ff7a59;
  --sun: #ffc145;
  --mint: #4fd1a5;
  --blue: #4f9dff;
  --grape: #b17cff;
  --pink: #ff6fae;
  --lime: #9edb4c;
  --grass: #6cc04f;
  --grass-dark: #4fa83f;
  --sky-top: #6fbfff;
  --sky-mid: #bfe3f7;
  --sky-low: #ffe0a8;
  --radius: 22px;
  --display: "Lilita One", "Baloo 2", system-ui, sans-serif;
  --body: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* chunky ink outline + drop, like the in-game titles */
  --outline: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 7px 0 var(--ink), 3px 6px 0 var(--ink), -3px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------------ type */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--sun);
  border: 3px solid var(--ink); border-radius: 999px; padding: 2px 14px 0;
  box-shadow: 0 4px 0 var(--ink);
}
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: .01em;
  color: #fff; text-shadow: var(--outline);
  margin: 22px 0 18px;
}
.title .y { color: var(--sun); }
.title .g { color: #8be06a; }
.title .c { color: var(--coral); }
.title .b { color: #9bd8ff; }
.title .p { color: #ffb3d6; }
.lead { font-size: clamp(18px, 2vw, 22px); font-weight: 500; max-width: 34em; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--sun); --bg2: #ffa928;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 21px; letter-spacing: .02em; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  border: 4px solid var(--ink); border-radius: 18px; padding: 12px 24px 9px;
  box-shadow: 0 7px 0 var(--ink), inset 0 -5px 0 rgba(0, 0, 0, .12), inset 0 4px 0 rgba(255, 255, 255, .55);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink), inset 0 -5px 0 rgba(0, 0, 0, .12), inset 0 4px 0 rgba(255, 255, 255, .55); }
.btn:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--ink), inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 3px 0 rgba(255, 255, 255, .55); }
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.btn.green { --bg: #9be86f; --bg2: #4fbf47; }
.btn.white { --bg: #fff; --bg2: #e9f3ff; }
.btn.small { font-size: 17px; padding: 8px 16px 6px; border-radius: 14px; box-shadow: 0 5px 0 var(--ink), inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 3px 0 rgba(255, 255, 255, .55); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn .sub { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }

/* ------------------------------------------------------------------ nav + snake progress */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1180px) / 2));
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.solid { background: rgba(255, 253, 247, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 3px 0 rgba(43, 33, 64, .12); padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; color: #fff; text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 0 4px var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 12px; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 6px 12px; border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, .72); border: 2px solid transparent; transition: background .2s, border-color .2s; }
.nav-links a:hover { background: #fff; border-color: var(--ink); }
.nav.solid .nav-links a { background: transparent; }
.nav.solid .nav-links a:hover { background: #fff; }
@media (max-width: 900px) { .nav-links { display: none; } }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 12px; z-index: 60; pointer-events: none; }
.progress-body {
  position: absolute; left: -12px; top: 2px; height: 10px; width: 0;
  border-radius: 0 999px 999px 0; border: 2px solid var(--ink); border-left: 0;
  background: radial-gradient(circle at 50% 50%, var(--sun) 0 2px, transparent 2.5px) 0 0 / 14px 100% var(--coral);
}
.progress-head {
  position: absolute; top: -3px; width: 20px; height: 20px; margin-left: -6px;
  border-radius: 50%; background: var(--coral); border: 2px solid var(--ink);
}
.progress-head::before, .progress-head::after { content: ""; position: absolute; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: inset 1px 1px 0 2px var(--ink); }
.progress-head::before { right: 2px; }
.progress-head::after { right: 2px; top: 10px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-low) 74%, #ffd79a 100%);
  isolation: isolate;
}
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.layer svg.land { position: absolute; bottom: 0; left: 50%; width: max(100%, 1180px); height: auto; transform: translateX(-50%); }
.sun {
  position: absolute; top: 6%; right: 12%; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 230, .95) 0 16%, rgba(255, 240, 190, .45) 30%, rgba(255, 240, 190, 0) 66%);
}
.cloud { position: absolute; width: var(--w, 220px); opacity: var(--o, 1); animation: drift var(--t, 80s) linear infinite; animation-delay: var(--d, 0s); }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.bird { position: absolute; width: 26px; animation: fly 26s linear infinite; }
.bird path { animation: flap .5s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes fly { from { transform: translate(-10vw, 0); } 50% { transform: translate(50vw, -40px); } to { transform: translate(110vw, 10px); } }
@keyframes flap { to { transform: scaleY(-.4); } }

.mote { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff6c7; box-shadow: 0 0 8px 2px rgba(255, 240, 160, .8); opacity: 0; animation: mote var(--t, 12s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--x, 40px), -220px); } }

.hero-content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 16px 120px; text-align: center; will-change: transform, opacity;
}
.mascot-wrap { position: relative; height: min(31vh, 58vw); aspect-ratio: 786 / 960; }
.mascot { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 0 rgba(43, 33, 64, .18)); animation: bob 4.2s ease-in-out infinite; transform-origin: 50% 90%; cursor: pointer; }
.mascot.squish { animation: squish .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes squish { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1, 1); } }
.mascot-shadow { position: absolute; left: 18%; right: 18%; bottom: -4%; height: 8%; border-radius: 50%; background: rgba(43, 33, 64, .18); filter: blur(4px); animation: shadow 4.2s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scale(.82); opacity: .6; } }
.logo { height: auto; width: min(50vh, 84vw, 560px); margin-top: -3.5vh; filter: drop-shadow(0 10px 0 rgba(43, 33, 64, .22)); animation: pop .9s cubic-bezier(.3, 1.5, .5, 1) both .15s; }
@keyframes pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.tagline {
  margin: 14px 0 22px; font-weight: 700; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.35;
  background: rgba(255, 253, 247, .9); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 22px 6px;
  box-shadow: 0 5px 0 var(--ink); max-width: 36em;
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; z-index: 6; transform: translateX(-50%); font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; animation: hint 2s ease-in-out infinite; }
@keyframes hint { 50% { transform: translate(-50%, 6px); } }
@media (max-height: 760px) { .scroll-hint { display: none; } }

/* ------------------------------------------------------------------ cloud-scallop dividers */
.scallop { position: absolute; left: 0; right: 0; height: 90px; z-index: 8; pointer-events: none; }
.scallop svg { width: 100%; height: 100%; }
.scallop.top { top: -88px; }
.scallop.bottom { bottom: -88px; transform: scaleY(-1); }

/* ------------------------------------------------------------------ story */
.story {
  position: relative; z-index: 2; color: #fff; text-align: center;
  background: linear-gradient(180deg, #2b2140 0%, #3a2f63 45%, #5a4c8f 100%);
  padding: 140px 0 200px; overflow: visible; isolation: isolate;
}
.story .clip { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.rain { position: absolute; inset: -20% 0 0; opacity: .32; background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(200, 210, 255, .5) 22px 23px, transparent 23px 47px); background-size: 100% 220px; animation: rain .5s linear infinite; }
@keyframes rain { to { background-position: -60px 220px; } }
.flash { position: absolute; inset: 0; background: #e9e4ff; opacity: 0; animation: flash 9s infinite; mix-blend-mode: soft-light; }
@keyframes flash { 0%, 90%, 100% { opacity: 0; } 91% { opacity: .9; } 92% { opacity: .1; } 93.5% { opacity: .7; } 96% { opacity: 0; } }
.storm-cloud { position: absolute; width: var(--w, 520px); will-change: transform; }
.serpent { position: absolute; left: 50%; top: 14%; width: min(560px, 80vw); margin-left: max(-280px, -40vw); opacity: .13; filter: brightness(0) invert(1) blur(1px); will-change: transform; }
.story .title { margin-top: 26px; }
.story .lead { margin-inline: auto; color: #ece8ff; }
.story-lines { list-style: none; padding: 0; margin: 44px auto 0; display: grid; gap: 14px; max-width: 640px; }
.story-lines li {
  font-family: var(--display); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; color: #fff;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 14px 22px 10px;
}
.story-lines li:nth-child(2) { color: #ffd6a0; }
.story-lines li:nth-child(3) { color: #a6f0c8; }

/* ------------------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .3, 1.2); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ play */
.play { position: relative; z-index: 1; padding: 170px 0 140px; background: linear-gradient(180deg, #dff3ff 0%, #eefbe6 70%, #fff8e6 100%); overflow: hidden; }
.play-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .play-grid { grid-template-columns: 1fr; gap: 36px; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 6px 0 var(--ink); }
.step-num { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; border: 3px solid var(--ink); font-family: var(--display); font-size: 28px; color: #fff; text-shadow: 0 2px 0 var(--ink); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15), inset 0 4px 0 rgba(255, 255, 255, .4); }
.step h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.step p { margin: 2px 0 0; font-size: 16.5px; color: var(--ink-soft); }

.board-card { position: relative; }
.board-island { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; }
.board-island canvas { width: 100%; height: 100%; }
.board-note { text-align: center; font-size: 15px; color: var(--ink-soft); margin-top: 14px; font-weight: 600; }
.leaf { position: absolute; width: 40px; pointer-events: none; will-change: transform; }

/* ------------------------------------------------------------------ worlds (pinned horizontal scroll) */
.worlds { position: relative; z-index: 1; height: calc(var(--panels, 12) * 85vh); }
.worlds-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(180deg, var(--w-top, #7ccbff), var(--w-bot, #e6f6ff)); }
.worlds-far { position: absolute; left: 0; bottom: 0; height: 46%; width: 300%; will-change: transform; }
.worlds-far svg { width: 100%; height: 100%; }
.worlds canvas.weather { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.worlds-track { position: absolute; inset: 0; display: flex; will-change: transform; z-index: 2; }
.panel { position: relative; flex: none; width: 100vw; height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 90px max(24px, calc((100vw - 1180px) / 2)) 60px; }
.panel.intro { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: center; gap: 0; }
.panel.intro .lead { margin-inline: auto; font-weight: 600; }
.island { width: min(100%, 600px); justify-self: center; will-change: transform; }
.island svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 24px rgba(43, 33, 64, .18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px); } }
.world-text { will-change: transform; max-width: 520px; }
.world-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 3px 12px 1px; box-shadow: 0 3px 0 var(--ink); }
.chip.twist { background: var(--sun); }
.world-name { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 92px); line-height: .98; margin: 18px 0 14px; color: #fff; text-shadow: var(--outline); }
.world-intro { font-size: clamp(18px, 2vw, 22px); font-weight: 700; margin: 0; background: rgba(255, 253, 247, .9); border: 3px solid var(--ink); border-radius: 20px; padding: 14px 18px 12px; box-shadow: 0 5px 0 var(--ink); position: relative; }
.world-intro::before { content: "\201C"; position: absolute; left: -10px; top: -22px; font-family: var(--display); font-size: 64px; color: var(--coral); text-shadow: 0 3px 0 var(--ink); line-height: 1; }
.world-clue { margin-top: 16px; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.world-clue .clue-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.panel.dark .world-clue { color: #fff; text-shadow: 0 2px 0 var(--ink); }
.world-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.world-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px solid var(--ink); transition: transform .3s, background .3s; }
.world-dots i.on { background: var(--sun); transform: scale(1.35); }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 4px; padding-top: 80px; text-align: left; }
  .island { width: min(78vw, 46vh); }
  .world-name { margin: 10px 0 8px; }
  .world-intro { font-size: 16px; }
}

/* ------------------------------------------------------------------ sanctuary */
.sanctuary { position: relative; z-index: 2; background: linear-gradient(180deg, #ffe7c4 0%, #ffd6a8 30%, #a8dd85 30.1%, #79c85a 100%); padding: 0; overflow: hidden; }
.sanct-sky { position: relative; min-height: 360px; display: flex; flex-direction: column; background: linear-gradient(180deg, #ffb48a 0%, #ffd9a8 60%, #ffe9c6 100%); overflow: hidden; }
.sanct-sky .layer svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: max(100%, 1180px); }
.sanct-copy { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px 70px; z-index: 3; }
.sanct-copy .lead { font-weight: 700; background: rgba(255, 253, 247, .85); border: 3px solid var(--ink); border-radius: 20px; padding: 8px 18px 6px; box-shadow: 0 5px 0 var(--ink); }
.sanct-copy .title { margin: 14px 0 12px; }
.sanct-ground { position: relative; height: 460px; background: radial-gradient(ellipse at 50% 0%, #9edb72 0%, #7cc95a 60%, #63b54a 100%); }
.sanct-ground canvas { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ collect */
.collect { position: relative; z-index: 1; padding: 130px 0 120px; background: var(--paper); overflow: hidden; }
.collect::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(43, 33, 64, .07) 2px, transparent 2.5px); background-size: 26px 26px; pointer-events: none; }
.collect-head { text-align: center; position: relative; }
.collect-head .lead { margin-inline: auto; }
.cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 1040px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 0 20px 22px; box-shadow: 0 8px 0 var(--ink); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.card-art { height: 150px; margin: 0 -20px 16px; border-bottom: 4px solid var(--ink); border-radius: 22px 22px 0 0; display: grid; place-items: center; background: var(--tint, #ffe9a8); overflow: hidden; position: relative; }
.card-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .55), transparent 60%); }
.card-art svg { width: 110px; height: 110px; position: relative; z-index: 1; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover .card-art svg { transform: scale(1.12) rotate(-6deg); }
.card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.1; }
.card p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.float-egg { position: absolute; pointer-events: none; will-change: transform; z-index: 0; }

.book { margin-top: 90px; position: relative; }
.book-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.book-head h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); margin: 0; line-height: 1.05; }
.book-head p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.marquee { margin-top: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-row { list-style: none; margin: 0; display: flex; gap: 16px; width: max-content; padding: 6px 0 14px; animation: marquee 60s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.species { display: flex; align-items: center; gap: 12px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 16px 8px 10px; box-shadow: 0 5px 0 var(--ink); white-space: nowrap; }
.species svg { width: 54px; height: 34px; flex: none; }
.species b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.05; }
.species small { font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.species.rare { background: linear-gradient(180deg, #fff, #eaf4ff); }
.species.rare small { color: #2f7bff; }
.species.legendary { background: linear-gradient(180deg, #fff6d6, #ffe08a); }
.species.legendary small { color: #b86e00; }

/* ------------------------------------------------------------------ looks */
.looks { position: relative; z-index: 1; padding: 120px 0 140px; background: linear-gradient(180deg, #f3ecff 0%, #ffeef6 100%); overflow: hidden; }
.looks-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .looks-grid { grid-template-columns: 1fr; } }
.diorama { position: relative; aspect-ratio: 4 / 3; border: 4px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: 0 10px 0 var(--ink); background: #7ccbff; }
.diorama canvas { width: 100%; height: 100%; }
.controls { display: grid; gap: 22px; margin-top: 26px; }
.control h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .02em; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg button { font: inherit; font-weight: 800; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 6px 12px 4px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s, background .2s; }
.seg button:hover { transform: translateY(-1px); }
.seg button[aria-pressed="true"] { background: var(--sun); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.seg button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.swatches { display: flex; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -4px; }
.swatches i:first-child { margin-left: 0; }
.slider { display: flex; align-items: center; gap: 14px; }
.slider input { flex: 1; -webkit-appearance: none; appearance: none; height: 14px; border-radius: 999px; background: #fff; border: 3px solid var(--ink); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: grab; }
.slider input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: grab; }
.a11y { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.a11y span { font-weight: 700; font-size: 15px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px 0; }

/* ------------------------------------------------------------------ get */
.get { position: relative; z-index: 1; color: #fff; min-height: 100vh; padding: 140px 0 0; overflow: hidden; background: linear-gradient(180deg, #0b1433 0%, #1c2a5c 55%, #26387a 100%); }
.get canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon { position: absolute; top: 110px; left: 48%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fffbe8, #ffe9a8 60%, #f5d27a); box-shadow: 0 0 60px 20px rgba(255, 236, 170, .35), 0 0 160px 60px rgba(127, 233, 255, .12); will-change: transform; }
.get-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .get-grid { grid-template-columns: 1fr; text-align: center; } .get-grid .cta-row { justify-content: center; } .get-grid .lead { margin-inline: auto; } }
.get .lead { color: #dfe6ff; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px; margin: 28px 0; }
@media (max-width: 1100px) { .facts { grid-template-columns: repeat(2, auto); } }
@media (max-width: 900px) { .facts { justify-content: center; } .phone-wrap { margin-top: 30px; } }
.fact { background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .3); border-radius: 18px; padding: 10px 16px 8px; text-align: left; }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--sun); text-shadow: 0 3px 0 var(--ink); }
.fact span { font-size: 14px; font-weight: 700; color: #dfe6ff; }
.phone { position: relative; width: min(300px, 70vw); margin: 0 auto; aspect-ratio: 9 / 19.5; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 0 0 4px #5b4d86, 0 30px 60px rgba(0, 0, 0, .45), 0 0 80px rgba(127, 233, 255, .25); transform: rotate(6deg); will-change: transform; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 999px; background: var(--ink); z-index: 2; }
.app-icon { position: absolute; left: -40px; bottom: 40px; width: 110px; height: 110px; border-radius: 28px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); transform: rotate(-10deg); animation: bob 5s ease-in-out infinite; }
.night-hills { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.night-hills svg { width: max(100%, 1180px); position: relative; left: 50%; transform: translateX(-50%); }
.get-spacer { height: 260px; }

footer { position: relative; z-index: 3; background: #17143a; color: #c9c4ef; padding: 48px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
footer .brand { color: #fff; }
footer h5 { font-family: var(--display); font-weight: 400; font-size: 18px; color: #fff; margin: 0 0 10px; letter-spacing: .02em; }
footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
@media (max-width: 520px) { footer ul { columns: 1; } }
footer li { break-inside: avoid; margin-bottom: 4px; }
footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
footer a:hover { text-decoration-color: var(--sun); }
.fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

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

@media (max-width: 640px) { .hero .near-clouds { display: none; } .scroll-hint { display: none; } }
@media (max-height: 720px) { .mascot-wrap { height: 24vh; } .logo { width: min(44vh, 84vw); } .hero-content { padding-top: 70px; } }
