/* Fortnite - Chest Tracker website: same look as the app (night-blue sky, glassy navy panels, lime, Anton). */
/* Anton, Latin subset in WOFF2 (the app keeps the full TTF) */
@font-face { font-family: Anton; src: url("fonts/anton-latin.woff2") format("woff2"); font-display: swap; }

:root {
  --panel: rgba(8, 22, 74, .72);
  --panel-solid: #0b1d5c;
  --line: rgba(150, 190, 255, .16);
  --line-2: rgba(150, 190, 255, .3);
  --text: #f6f3ff;
  --text-2: #bcd0f5;
  --text-3: #8aa3d6;
  --lime: #c6ff3d;
  --lime-ink: #0b1a4a;
  --aqua: #3ee6ff;
  --amber: #ffb83a;
  --coral: #ff5f7e;
  --violet: #a77bff;
  --green: #5ff08a;
  --navy: #071036;
  --shadow: 0 18px 40px rgba(4, 8, 34, .45);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font: 16px/1.6 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #071447 0%, #0b1f6b 30%, #0d2a86 60%, #071447 100%);
  cursor: url("cursors/pointer.png") 10 6, auto;
}
a, button, label, summary, input[type=range] { cursor: url("cursors/hand.png") 8 2, pointer; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
svg { display: block; }
/* Line icons (same stroke as the rest of the site) */
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.05; margin: 0; text-transform: uppercase; text-wrap: balance; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(860px, 100% - 48px); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; text-decoration: none; }
::selection { background: var(--lime); color: var(--lime-ink); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06); color: var(--text); font: 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, filter .2s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn svg { width: 22px; height: 22px; }
.btn .i { stroke-width: 2.2; }
.btn img { width: 28px; height: 28px; margin: -6px 0; }
.btn-lime { background: var(--lime); border-color: transparent; color: var(--lime-ink); box-shadow: 0 10px 28px rgba(198, 255, 61, .3); }
.btn-lime:hover { background: var(--lime); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(198, 255, 61, .42); }
.btn-ghost { background: rgba(8, 22, 74, .55); backdrop-filter: blur(10px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 16px; border-radius: 11px; gap: 8px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-xl { height: 58px; padding: 0 28px; font-size: 22px; border-radius: 16px; }
/* Phones: the app is for Windows, so "Send to my PC" replaces the download button */
.send-pc, .phone-note { display: none; }

/* ---- Nav ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 16, 58, .82); backdrop-filter: blur(16px); border-color: var(--line); box-shadow: 0 8px 30px rgba(2, 6, 30, .35); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(62, 230, 255, .35)); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand small { font: 600 10px/1 var(--font); letter-spacing: .32em; color: var(--text-2); margin-bottom: 4px; }
.brand b { font: 24px/1 var(--display); font-weight: 400; letter-spacing: .01em; }
.brand em { font-style: normal; color: var(--lime); }
.links { display: flex; gap: 6px; margin-left: 12px; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font: 16px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; transition: color .2s, background .2s; }
.links a:hover, .links a.on { color: var(--text); background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 11px; background: rgba(4, 14, 52, .5); border: 1px solid var(--line); }
.lang button, .seg button { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 700 12.5px/1 var(--font); transition: background .2s, color .2s; }
.lang button:hover, .seg button:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.lang button.on, .seg button.on { background: var(--lime); color: var(--lime-ink); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 22, 74, .6); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); }

/* ---- Hero ---- */
.hero { position: relative; min-height: max(680px, 100vh); overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(1200px 520px at 50% 108%, rgba(80, 220, 255, .55), transparent 70%),
    linear-gradient(180deg, #071447 0%, #0d2a86 34%, #1752cf 68%, #2d8ff0 100%); }
#scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
#scene.on { opacity: 1; }
#scene canvas { display: block; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; display: flex; justify-content: center; text-align: center; padding-top: calc(var(--nav-h) + 34px); pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.hero-copy { position: relative; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
/* A soft shade behind the text, above the island's speech bubbles (they pass under it) */
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -24px -70px -10px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 20, 71, .42), rgba(7, 20, 71, 0)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(198, 255, 61, .12); border: 1px solid rgba(198, 255, 61, .35); color: var(--lime); font: 700 13px/1.2 var(--font); letter-spacing: .02em; }
.eyebrow .i { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.6; }
.hero h1 { margin: 16px 0 14px; font-size: clamp(40px, 5.2vw, 74px); text-shadow: 0 6px 28px rgba(2, 6, 30, .45); }
.hero h1 em { font-style: normal; color: var(--lime); }
.nw { white-space: nowrap; }
.lead { margin: 0; max-width: 640px; font-size: 18.5px; color: var(--text-2); text-shadow: 0 2px 12px rgba(2, 6, 30, .5); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.cta-row.center { justify-content: center; }
/* Download facts (latest release), under the main button: one icon per fact */
.dl-info { display: grid; gap: 6px; justify-items: center; margin-top: 18px; padding: 10px 18px; border-radius: 16px; background: rgba(6, 16, 58, .58); border: 1px solid var(--line);
  backdrop-filter: blur(8px); color: #dce6ff; font-size: 13.5px; line-height: 1.4; text-wrap: balance; }
.dl-info p { margin: 0; }
.dl-facts { flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; }
.dl-facts:not([hidden]) { display: flex; }
.fact { display: inline-flex; align-items: center; gap: 6px; }
.fact .i { width: 15px; height: 15px; color: var(--lime); }
.dl-facts > .fact:has(> :last-child:empty), .dl-facts > [hidden] { display: none; }
.dl-facts a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.ver { font-weight: 700; color: var(--text); }
.sha { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.sha code { padding: 1px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font: 600 12px/1.5 ui-monospace, Consolas, monospace; color: var(--text); }
.sha:hover code { border-color: var(--lime); }
.proof { flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; }
.proof:not([hidden]) { display: flex; }
.proof [hidden] { display: none; }
.proof span { padding: 4px 12px; border-radius: 999px; background: rgba(6, 16, 58, .58); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 700; }
.phone-note { margin: 12px 0 0; color: #dce6ff; font-size: 14px; }
.phone-note a { color: var(--lime); text-decoration: underline; }
.stage { position: relative; z-index: 1; flex: 1; min-height: 360px; margin: 0 24px 40px; }
/* Still picture of the island: what phones and Save-Data get, and what shows until the live scene has started */
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("img/island-wide.webp") center / auto 100% no-repeat; transition: opacity .8s; }
.hero.live3d .stage::before { opacity: 0; }
@media (max-width: 1080px), (max-aspect-ratio: 4/3) { .stage::before { background-image: url("img/island.webp"); background-size: contain; } }
/* The demo HUD sits in the top bar, left of the logo, and stays there while scrolling (wide screens only:
   it needs the free space left of the content) */
.hero-hud { position: fixed !important; z-index: 60; left: 10px; top: 0; pointer-events: none; transform: scale(.72); transform-origin: top left; }

/* Speech bubbles and "+1" labels of the island (same as the app) */
.scene-bubble { position: fixed; z-index: 1; pointer-events: none; transform: translate(-50%, -100%); padding: 7px 12px; border-radius: 12px;
  background: #fff; color: var(--lime-ink); font: 700 13px var(--font); white-space: nowrap; box-shadow: var(--shadow); animation: bubble .25s ease-out; }
.scene-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.scene-bubble.tag-you { background: var(--lime); font: 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 7px 14px; }
.scene-bubble.tag-you::after { border-top-color: var(--lime); }
.scene-bubble.tag-others { background: #c9d3ea; color: #3a4466; font: 16px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 7px 14px; }
.scene-bubble.tag-others::after { border-top-color: #c9d3ea; }
@keyframes bubble { from { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
.scene-pop { position: fixed; left: 50%; top: 40%; z-index: 1; pointer-events: none; transform: translate(-50%, 0); padding: 6px 18px; border-radius: 12px;
  background: var(--lime); color: var(--lime-ink); font: 32px/1.1 var(--display); text-transform: uppercase; box-shadow: var(--shadow); animation: pop 2.6s ease-out forwards; white-space: nowrap; }
.scene-pop.gold { background: #ffd93d; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.7) rotate(-4deg); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08) rotate(-4deg); } 75% { opacity: 1; transform: translate(-50%, -12px) rotate(-4deg); } 100% { opacity: 0; transform: translate(-50%, -40px) rotate(-4deg); } }

/* ---- Promises: a slow ticker of chips (main.js clones the group and adds .run; a still row otherwise) ---- */
.trust { position: relative; z-index: 3; margin-top: -1px; background: rgba(6, 16, 58, .92); border-block: 1px solid var(--line); overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--lime) 30%, var(--aqua) 70%, transparent); opacity: .55; }
.marquee { padding: 22px 0; }
.mq-track { display: flex; }
.mq-group { list-style: none; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.marquee.run { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee.run .mq-track { width: max-content; animation: mq var(--dur, 40s) linear infinite; }
.marquee.run .mq-group { flex-wrap: nowrap; margin: 0; padding: 0 14px 0 0; } /* the right padding equals the gap: an even loop */
.marquee.run:hover .mq-track, .marquee.run:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(var(--shift, -50%)); } }
.chip { flex: none; display: flex; align-items: center; gap: 12px; padding: 9px 22px 9px 9px; border-radius: 999px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  white-space: nowrap; transition: background .2s, border-color .2s; }
.chip:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }
.chip .ico { width: 42px; height: 42px; border-radius: 50%; }
.chip .ico svg { width: 21px; height: 21px; }
.chip b { display: block; font: 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.chip b + span { display: block; margin-top: 2px; color: var(--text-3); font-size: 13.5px; line-height: 1.3; }
.marquee:not(.run) .chip { white-space: normal; border-radius: 22px; }

/* ---- Icons ---- */
.ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-lime { color: var(--lime); background: rgba(198, 255, 61, .1); }
.t-aqua { color: var(--aqua); background: rgba(62, 230, 255, .1); }
.t-coral { color: var(--coral); background: rgba(255, 95, 126, .1); }
.t-violet { color: var(--violet); background: rgba(167, 123, 255, .12); }
.t-amber { color: var(--amber); background: rgba(255, 184, 58, .1); }
.t-green { color: var(--green); background: rgba(95, 240, 138, .1); }

/* ---- Sections ---- */
.section { position: relative; padding: 110px 0 20px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 16px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--lime); margin-bottom: 16px; }
.kicker i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); transform: skewX(-10deg); box-shadow: 0 6px 18px rgba(198, 255, 61, .25); }
.kicker svg { width: 17px; height: 17px; transform: skewX(10deg); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sec-head h2, .split-copy h2 { font-size: clamp(36px, 4.6vw, 58px); }
.sec-head p { margin: 16px auto 0; color: var(--text-2); font-size: 18px; max-width: 620px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }

/* ---- Features: loot cards, one rarity colour each; they lean towards the mouse (main.js) ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.loot { --r: #ffa53d; --r2: #b9521a; }
.r-uncommon { --r: #74e05a; --r2: #2d8a2c; }
.r-rare { --r: #45b8ff; --r2: #1d5cc6; }
.r-epic { --r: #c26dff; --r2: #6a2bc2; }
.r-legendary { --r: #ffa53d; --r2: #b9521a; }
.r-mythic { --r: #ffd93d; --r2: #b9860f; }
.loot-in { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--panel);
  border: 2px solid color-mix(in srgb, var(--r) 50%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(14px);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.loot-in:hover { border-color: var(--r); box-shadow: var(--shadow), 0 0 36px color-mix(in srgb, var(--r) 40%, transparent);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
/* A soft shine that follows the mouse */
.loot-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 60%); }
.loot-in:hover::after { opacity: 1; }
.loot-art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 -4px 0 var(--r);
  background: radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--r) 85%, #fff) 0%, var(--r2) 58%, color-mix(in srgb, var(--r2) 55%, #071036) 100%); }
/* Light rays behind the item; they turn slowly while hovered */
.loot-art::before { content: ""; position: absolute; inset: -60%; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0deg 5deg, transparent 5deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 85%); mask-image: radial-gradient(closest-side, #000 20%, transparent 85%); }
.loot-in:hover .loot-art::before { animation: rays 24s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.loot-art svg { position: relative; width: 72px; height: 72px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 6px 12px rgba(4, 10, 40, .45)); transition: transform .4s var(--ease); }
.loot-in:hover .loot-art svg { transform: translateY(-4px) scale(1.08) rotate(-5deg); }
.loot-body { flex: 1; padding: 20px 24px 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--r2) 20%, transparent), transparent 55%); }
.loot-body h3 { margin: 12px 0 8px; font-size: 25px; }
.loot-body p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ---- How it works: a quest track (nodes light up one after the other once on screen) ---- */
.quest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .8fr); gap: 22px; }
.q-step { position: relative; display: flex; flex-direction: column; gap: 20px; }
/* The path to the next node: a track and its lime fill */
.q-step:not(:last-child)::before, .q-step:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: 84px; right: -10px; height: 8px; border-radius: 99px; }
.q-step:not(:last-child)::before { background: rgba(255, 255, 255, .1); }
.q-step:not(:last-child)::after { background: linear-gradient(90deg, var(--lime), var(--aqua)); transform-origin: left; transition: transform .7s var(--ease); }
/* Numbers and the chest centred above their card; the path runs from one centre to the next (the reward column is .8 wide) */
.q-node { align-self: center; }
.q-step:not(:last-child)::before, .q-step:not(:last-child)::after { left: calc(50% + 46px); right: calc(-50% + 24px); }
.q-step:nth-child(3)::before, .q-step:nth-child(3)::after { right: calc(-40% + 24px); }
.q-node { position: relative; z-index: 1; flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; transform: skewX(-8deg);
  background: var(--lime); border: 3px solid var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(198, 255, 61, .3);
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.q-node span { font: 46px/1 var(--display); transform: skewX(8deg); }
.q-goal .q-node { background: radial-gradient(circle, rgba(255, 217, 61, .45), rgba(11, 29, 92, .9) 70%); border-color: #ffd93d; box-shadow: 0 10px 34px rgba(255, 217, 61, .35); }
.q-node img { width: 60px; height: 60px; object-fit: contain; transform: skewX(8deg); filter: drop-shadow(0 4px 10px rgba(4, 10, 40, .5)); }
.quest.in .q-goal .q-node img { animation: float 4s ease-in-out 2.4s infinite; }
.q-card { flex: 1; padding: 22px 24px 24px; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.q-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.q-tag { font: 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.q-card h3 { font-size: 26px; margin-bottom: 8px; }
.q-card p { margin: 0; color: var(--text-2); }
.q-goal .q-card { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, rgba(255, 217, 61, .16), var(--panel) 65%); border-color: rgba(255, 217, 61, .45); }
.q-goal .q-tag { display: inline-flex; align-items: center; gap: 8px; color: #ffd93d; }
.q-goal .q-tag .i { width: 18px; height: 18px; }
.q-goal h3 { margin: 12px 0 0; font-size: 30px; }
/* Before it is on screen (only when scripts run): nodes dim, paths empty, cards lowered */
.js .quest:not(.in) .q-node { background: #0b1d5c; border-color: var(--line-2); color: var(--text-3); box-shadow: var(--shadow); }
.js .quest:not(.in) .q-step::after { transform: scaleX(0); }
.js .quest:not(.in) .q-card { opacity: 0; transform: translateY(18px); }
.q-step:nth-child(1) .q-node { transition-delay: .15s; }
.q-step:nth-child(1)::after { transition-delay: .45s; }
.q-step:nth-child(2) .q-node, .q-step:nth-child(2) .q-card { transition-delay: .8s; }
.q-step:nth-child(2)::after { transition-delay: 1.1s; }
.q-step:nth-child(3) .q-node, .q-step:nth-child(3) .q-card { transition-delay: 1.45s; }
.q-step:nth-child(3)::after { transition-delay: 1.75s; }
.q-step:nth-child(4) .q-node, .q-step:nth-child(4) .q-card { transition-delay: 2.1s; }
.note { display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin: 32px auto 0; padding: 14px 18px; border-radius: 14px; background: rgba(255, 184, 58, .08); border: 1px solid rgba(255, 184, 58, .25); color: var(--text-2); font-size: 14.5px; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }

/* ---- HUD demo ---- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split-copy p { color: var(--text-2); font-size: 17.5px; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a4a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat; }
.demo-ctrl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(4, 14, 52, .5); border: 1px solid var(--line); }
.seg button { height: 38px; padding: 0 14px; font: 16px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.split-copy .obs { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; color: var(--text-2); font-size: 14.5px; }
.obs .i { width: 20px; height: 20px; margin-top: 1px; color: var(--aqua); }
/* The game view: the same little landscape as the overlay preview of the app (.ov-stage in app.css) */
.game-view { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(2, 6, 30, .55); }
/* Same blurred island picture as the overlay settings of the app */
.game-bg { position: absolute; inset: 0; background: #4aa3e8 url("img/overlay-bg.webp") center / cover no-repeat; }
.game-view .hud { z-index: 1; }

/* The HUD, drawn like the real one: outlined Anton numbers on a soft halo, no frame */
.hud { --o: #071036; --ring: 3px 0 0 var(--o), -3px 0 0 var(--o), 0 3px 0 var(--o), 0 -3px 0 var(--o), 2px 2px 0 var(--o), -2px 2px 0 var(--o), 2px -2px 0 var(--o), -2px -2px 0 var(--o), 0 6px 8px rgba(4, 10, 40, .55);
  --ring-s: 2px 0 0 var(--o), -2px 0 0 var(--o), 0 2px 0 var(--o), 0 -2px 0 var(--o), 1px 1px 0 var(--o), -1px 1px 0 var(--o), 1px -1px 0 var(--o), -1px -1px 0 var(--o), 0 3px 5px rgba(4, 10, 40, .55);
  position: relative; width: 340px; padding: 20px 22px; font-family: var(--display); color: #fff; user-select: none; }
.hud::before { content: ""; position: absolute; inset: 12px 8px; z-index: -1; border-radius: 28px; background: linear-gradient(90deg, rgba(7, 16, 54, .72) 40%, rgba(7, 16, 54, .18)); filter: blur(12px); }
.h-hero { position: relative; display: flex; align-items: center; gap: 10px; }
.h-chest { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(62, 230, 255, .35)); transition: filter .3s; }
.hud.live .h-chest { filter: drop-shadow(0 0 16px rgba(198, 255, 61, .45)); }
.h-num { font-size: 66px; line-height: .9; font-weight: 400; color: #eef3ff; text-shadow: var(--ring); font-variant-numeric: tabular-nums; }
.hud.live .h-num { color: var(--lime); }
.h-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-left: 4px; }
.h-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 4px; font-size: 13px; line-height: 1; letter-spacing: .03em; color: #fff; background: #2a4aa8; transform: skewX(-12deg); box-shadow: 0 3px 8px rgba(4, 10, 40, .5); }
.h-tag > * { transform: skewX(12deg); }
.h-tag.live { background: var(--coral); }
.h-tag.wait { background: var(--amber); color: #0b1a4a; }
.h-num.unknown { color: #bcd0f5; }
.h-tag i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.h-word { font-size: 26px; line-height: .9; text-shadow: var(--ring); }
.h-goal { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.h-goal img, .h-pctline img { width: 30px; height: 30px; object-fit: contain; }
.h-name { font-size: 18px; text-shadow: var(--ring-s); }
.h-pct { margin-left: auto; font-size: 26px; color: var(--lime); text-shadow: var(--ring); }
.h-bar { display: flex; gap: 4px; margin-top: 10px; }
.h-bar i { position: relative; flex: 1; height: 13px; background: #0b1a4a; transform: skewX(-20deg); box-shadow: 0 2px 4px rgba(4, 10, 40, .7); overflow: hidden; }
.h-bar i s { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #e9ffad, #7fc21a); transition: width .6s var(--ease); }
.h-cap { display: flex; justify-content: space-between; margin-top: 8px; font: 700 11.5px/1 var(--font); color: var(--text-2); text-shadow: var(--ring-s); }
.h-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.h-stats div { display: flex; flex-direction: column; gap: 6px; }
.h-stats div:nth-child(2) { align-items: center; border-inline: 2px solid rgba(198, 255, 61, .45); }
.h-stats div:nth-child(3) { align-items: flex-end; }
.h-stats b { font-size: 23px; line-height: .9; font-weight: 400; text-shadow: var(--ring); }
.h-stats div:nth-child(3) b { color: #cdb6ff; }
.h-stats small { font: 700 10.5px/1 var(--font); color: var(--text-2); text-shadow: var(--ring-s); }
.h-plus { position: absolute; left: 96px; top: -26px; font-size: 26px; color: var(--lime); text-shadow: var(--ring); opacity: 0; pointer-events: none; }
.hud.pop .h-plus { animation: plus .9s var(--ease); }
.hud.pop .h-chest { animation: bounce .6s var(--ease); }
.hud.pop .h-num { animation: glow .8s var(--ease); }
@keyframes plus { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes bounce { 40% { transform: translateY(-8px) scale(1.06); } }
@keyframes glow { 30% { filter: drop-shadow(0 0 14px rgba(198, 255, 61, .9)); transform: scale(1.06); } }
/* Compact: one line + thin bar */
.hud.compact { width: auto; padding: 14px 18px; }
.hud.compact .h-chest { width: 54px; height: 54px; }
.hud.compact .h-num { font-size: 48px; }
.hud.compact .h-tag { font-size: 11px; }
.hud.compact .h-pctline { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; color: var(--lime); text-shadow: var(--ring-s); }
.hud.compact .h-pctline img { width: 22px; height: 22px; }
.hud.compact .h-bar { gap: 3px; margin-top: 9px; }
.hud.compact .h-bar i { height: 7px; }
.hud.compact .h-plus { left: 70px; top: -22px; font-size: 22px; }

/* ---- Odds calculator ---- */
.calc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); overflow: hidden; }
.calc-in { padding: 34px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; gap: 18px; }
.calc-field { display: grid; gap: 8px; font-weight: 600; color: var(--text-2); }
.calc-field input { height: 64px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(4, 14, 52, .6); color: var(--text); font: 34px/1 var(--display); letter-spacing: .02em; outline: none; transition: border-color .2s; }
.calc-field input:focus { border-color: var(--lime); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--lime) var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--lime); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--lime); }
input[type=range]:focus-visible { outline: 2px solid var(--lime); outline-offset: 8px; border-radius: 99px; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(198, 255, 61, .35), 0 2px 8px rgba(0, 0, 0, .4); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(198, 255, 61, .35); }
.check { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.check input { position: absolute; opacity: 0; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); background: rgba(4, 14, 52, .6); transition: background .2s, border-color .2s; }
.check input:checked + .box { background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a4a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat; border-color: var(--amber); }
.check input:focus-visible + .box { outline: 2px solid var(--lime); outline-offset: 2px; }
.calc-big { display: flex; align-items: center; gap: 16px; margin-top: auto; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(198, 255, 61, .14), rgba(62, 230, 255, .06)); border: 1px solid rgba(198, 255, 61, .3); }
.calc-big img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(255, 191, 58, .45)); }
.calc-big b { display: block; font: 54px/1 var(--display); font-weight: 400; color: var(--lime); }
.calc-big span { color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.calc-half { margin: 0; color: var(--text-3); font-size: 14px; }
.calc-out { padding: 26px 34px 30px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calc-row.head { padding-top: 0; font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.calc-row .name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.calc-row .name img { width: 24px; height: 24px; }
.calc-row .boost { padding: 2px 7px; border-radius: 6px; background: var(--amber); color: var(--lime-ink); font: 700 11px/1.3 var(--font); }
.calc-row .rate { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; font-size: 14.5px; }
.calc-row .ch { display: flex; align-items: center; gap: 12px; }
.calc-row .ch b { min-width: 64px; font: 22px/1 var(--display); font-weight: 400; text-align: right; }
.calc-row .ch i { position: relative; flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.calc-row .ch s { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--aqua), var(--lime)); transition: width .5s var(--ease); }
.calc-row.hl { background: linear-gradient(90deg, rgba(198, 255, 61, .08), transparent); margin: 0 -14px; padding-inline: 14px; border-radius: 10px; }
.calc-row.hl .ch b { color: var(--lime); }
.calc-out > p { margin: 16px 0 0; }

/* ---- Gallery ---- */
.gal-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.gal-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 22, 74, .6); color: var(--text-2);
  font: 17px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s, transform .2s var(--ease); }
.gal-tabs .i { width: 17px; height: 17px; }
.gal-tabs button:hover { color: var(--text); transform: translateY(-2px); }
.gal-tabs button.on { background: var(--lime); color: var(--lime-ink); border-color: transparent; transform: skewX(-8deg); }
.window { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #071447; box-shadow: 0 34px 80px rgba(2, 6, 30, .6); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: rgba(4, 12, 44, .95); border-bottom: 1px solid var(--line); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 14px; padding: 4px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-3); font-size: 12.5px; }
.window-body { position: relative; aspect-ratio: 16 / 9; }
.window-body img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.window-body img.fade { opacity: 0; }
.gal-arrow { position: absolute; top: 50%; z-index: 1; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(6, 16, 58, .75); backdrop-filter: blur(8px); color: var(--text); opacity: 0; transition: opacity .2s, transform .2s var(--ease); }
.gal-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.window:hover .gal-arrow, .gal-arrow:focus-visible { opacity: 1; }
.gal-arrow:hover { transform: scale(1.08); }
.gal-arrow.prev { left: 16px; }
.gal-arrow.next { right: 16px; }
.window figcaption { padding: 16px 22px; color: var(--text-2); font-size: 15.5px; border-top: 1px solid var(--line); background: rgba(4, 12, 44, .9); }

/* ---- FAQ: two columns of question cards; the short answer is in the summary, the details open as a reply bubble ---- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1080px; margin: 0 auto; }
.qa { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); transition: border-color .2s, background .2s; }
.qa:hover { border-color: var(--line-2); }
.qa[open] { border-color: rgba(198, 255, 61, .4); background: rgba(10, 28, 90, .85); }
.qa summary { list-style: none; display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-radius: 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; margin-top: 8px; border-radius: 9px; background: rgba(255, 255, 255, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6ff3d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: background-color .2s; }
.qa summary:hover::after { background-color: rgba(198, 255, 61, .14); }
.qa[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6ff3d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); background-color: rgba(198, 255, 61, .14); }
.qa-q { flex: 1; min-width: 0; display: grid; gap: 4px; padding-top: 2px; }
.qa-q b { font: 700 17.5px/1.35 var(--font); color: var(--text); }
.qa-s { color: var(--lime); font-weight: 600; font-size: 15px; line-height: 1.4; }
.qa p { position: relative; margin: 0 22px 22px 84px; padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.qa[open] p { animation: reply .35s var(--ease); }
@keyframes reply { from { opacity: 0; transform: translateY(-6px); } }
.qa-more { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-style: dashed; border-color: rgba(198, 255, 61, .35); background: rgba(198, 255, 61, .05); color: var(--text); text-decoration: none !important; }
.qa-more:hover { border-color: var(--lime); background: rgba(198, 255, 61, .09); }
.qa-more .qa-s { color: var(--text-2); font-weight: 500; }
.qa-go { width: 24px; height: 24px; color: var(--lime); transition: transform .2s var(--ease); }
.qa-more:hover .qa-go { transform: translateX(4px); }

/* ---- Final call + footer ---- */
.final { position: relative; margin-top: 110px; padding: 90px 0; overflow: hidden; text-align: center;
  background: radial-gradient(900px 340px at 50% 125%, rgba(80, 220, 255, .22), transparent 70%), linear-gradient(180deg, #0b2373, #12399c 70%, #1544aa); border-top: 1px solid var(--line); }
.final-in img { filter: drop-shadow(0 10px 30px rgba(62, 230, 255, .45)); animation: float 5s ease-in-out infinite; }
.final h2 { margin-top: 18px; font-size: clamp(38px, 5vw, 64px); }
.final p { color: #dce6ff; font-size: 18px; margin: 12px 0 0; }
.final .final-ver { display: flex; justify-content: center; margin-top: 18px; font-size: 13.5px; }
.final-ver:has(.ver:empty) { display: none !important; }
.final-ver .fact { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.foot { background: #050d33; border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--text-3); font-size: 13.5px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.foot-brand p { margin: 12px 0 0; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-links b { font: 15px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 4px; }
.foot-links a { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.foot-links .i { width: 16px; height: 16px; color: var(--text-3); transition: color .2s; }
.foot-links a:hover .i { color: var(--lime); }
/* Credits and legal notice: a small window opened from the footer */
.foot-legal-btn { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; }
.foot-legal-btn:hover { color: var(--text); }
.foot-legal-btn:hover .i { color: var(--lime); }
.legal { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, #0f2475, #081650);
  color: var(--text-2); box-shadow: 0 30px 80px rgba(2, 6, 30, .6); }
.legal::backdrop { background: rgba(3, 8, 30, .6); backdrop-filter: blur(4px); }
.legal[open] { animation: legalIn .25s var(--ease); }
@keyframes legalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.legal-in { padding: 22px 24px 18px; }
.legal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.legal-h h2 { font-size: 22px; color: var(--text); }
.legal-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); }
.legal-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.legal-x:hover { background: rgba(255, 255, 255, .12); }
.legal p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; }
.legal a { color: var(--aqua); text-decoration: underline; }

/* ---- Reveal on scroll ---- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.features [data-reveal]:nth-child(3n+2), .faq [data-reveal]:nth-child(even) { transition-delay: .08s; }
.features [data-reveal]:nth-child(3n+3) { transition-delay: .16s; }

/* ---- Small screens ---- */
@media (max-width: 1640px) { .hero-hud { display: none !important; } }
@media (max-width: 1080px) {
  .hero-hud { display: none !important; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split, .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  /* The quest track turns vertical: nodes on the left, the path runs down */
  .quest { grid-template-columns: 1fr; gap: 18px; max-width: 720px; margin: 0 auto; }
  .q-step { flex-direction: row; gap: 18px; }
  .q-node { align-self: flex-start; }
  .q-step:not(:last-child)::before, .q-step:not(:last-child)::after { top: 82px; bottom: -8px; left: 32px; right: auto; width: 8px; height: auto; }
  .q-step:not(:last-child)::after { transform-origin: top; background: linear-gradient(180deg, var(--lime), var(--aqua)); }
  .js .quest:not(.in) .q-step::after { transform: scaleY(0); }
}
@media (max-width: 860px) {
  .links { position: fixed; top: var(--nav-h); left: 12px; right: 12px; flex-direction: column; margin: 0; padding: 10px; border-radius: 18px; background: rgba(6, 16, 58, .96); border: 1px solid var(--line);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s; }
  .links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .links a { padding: 14px; font-size: 20px; }
  .menu-btn { display: flex; }
  .nav-right .dl { display: none; }
  .faq { grid-template-columns: 1fr; }
  .faq [data-reveal]:nth-child(even) { transition-delay: 0s; }
}
@media (hover: none) and (max-width: 860px) {
  .cta-row .dl-main { display: none; }
  .send-pc { display: inline-flex; }
  .phone-note { display: block; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .features [data-reveal] { transition-delay: 0s !important; }
  .wrap { width: calc(100% - 32px); }
  .lang button { padding: 0 8px; }
  .brand b { font-size: 20px; }
  .calc-in, .calc-out { padding: 22px; }
  .calc-row { grid-template-columns: 1fr 1fr; }
  .calc-row .rate { display: none; }
  .hud { transform: scale(.82); }
  .cta-row { align-self: stretch; }
  .cta-row .btn-xl { flex: 1 1 100%; height: auto; min-height: 54px; padding: 12px 18px; font-size: 19px; white-space: normal; text-align: center; line-height: 1.1; }
  .dl-info { padding: 10px 14px; }
  .marquee { padding: 16px 0; }
  .marquee:not(.run) .mq-group { padding: 0 16px; }
  .marquee:not(.run) .chip { flex: 1 1 100%; }
  .chip b { font-size: 16px; }
  .chip b + span { font-size: 12.5px; }
  /* Loot cards: compact, the item on the left */
  .features { gap: 14px; }
  .loot-in { flex-direction: row; border-radius: 18px; }
  .loot-art { flex: none; width: 96px; height: auto; box-shadow: inset -4px 0 0 var(--r); }
  .loot-art svg { width: 44px; height: 44px; }
  .loot-body { padding: 14px 16px 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--r2) 20%, transparent), transparent 55%); }
  .loot-body h3 { margin: 8px 0 6px; font-size: 21px; }
  .loot-body p { font-size: 14.5px; line-height: 1.5; }
  /* Gallery tabs: one row that scrolls sideways */
  .gal-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 6px; scroll-padding-inline: 16px; }
  .gal-tabs::-webkit-scrollbar { display: none; }
  .gal-tabs button { flex: none; }
  .q-step { gap: 14px; }
  .q-node { width: 56px; height: 56px; border-radius: 14px; }
  .q-node span { font-size: 36px; }
  .q-node img { width: 46px; height: 46px; }
  .q-step:not(:last-child)::before, .q-step:not(:last-child)::after { top: 64px; left: 24px; }
  .q-card { padding: 18px 18px 20px; }
  .q-card h3 { font-size: 23px; }
  .q-goal h3 { font-size: 25px; }
  .qa summary { gap: 12px; padding: 16px; }
  .qa summary .ico { width: 40px; height: 40px; border-radius: 12px; }
  .qa summary .ico svg { width: 21px; height: 21px; }
  .qa summary::after { margin-top: 5px; }
  .qa-q b { font-size: 16.5px; }
  .qa p { margin: 0 16px 16px; }
  .qa-more { padding: 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .loot-in, .loot-in:hover { transform: none; }
  .js .quest:not(.in) .q-node { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
  .js .quest:not(.in) .q-goal .q-node { background: radial-gradient(circle, rgba(255, 217, 61, .45), rgba(11, 29, 92, .9) 70%); border-color: #ffd93d; }
  .js .quest:not(.in) .q-step::after { transform: none; }
  .js .quest:not(.in) .q-card { opacity: 1; transform: none; }
  .mq-clone { display: none; }
}

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--lime); color: var(--lime-ink);
  font-weight: 700; box-shadow: var(--shadow); overflow-wrap: anywhere; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---- 404 ---- */
.nf { min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1000px 420px at 50% 110%, rgba(80, 220, 255, .3), transparent 70%), linear-gradient(180deg, #071447 0%, #0d2a86 50%, #12399c 100%); }
.nf-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 20px; text-align: center; }
.nf .brand { margin-bottom: 18px; }
.nf-chest { width: 140px; height: auto; filter: drop-shadow(0 10px 30px rgba(198, 255, 61, .3)); animation: float 5s ease-in-out infinite; }
.nf-code { margin: 0; font: 110px/.9 var(--display); color: var(--lime); text-shadow: 0 8px 30px rgba(2, 6, 30, .5); }
.nf h1 { font-size: clamp(32px, 6vw, 54px); }
.nf-sub { margin: 0 0 12px; max-width: 520px; color: #dce6ff; font-size: 17px; }
