/* Saltmere — site styles (landing, token, 404). Game styles live in /game. */
@font-face { font-family: 'Fredoka'; src: url(/fonts/fredoka.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --sea-900: #0d2a3a; --sea-700: #13506a; --sea-500: #1f8aa3; --sea-300: #5fd0d6;
  --foam: #e9fbf7; --sand: #f3dcaa; --cream: #fff6e4; --ink: #1d2433;
  --coral: #ff7a59; --coral-d: #e2583a; --gold: #ffc94a; --leaf: #5fb85a; --night: #151a33;
  --navy-a: rgba(21, 26, 51, .88);
  --bw: 3px; --r: 18px;
  --font: 'Fredoka', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.55; color: var(--cream); background: var(--sea-900); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { --bg: var(--cream); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1; color: var(--fg); background: var(--bg); border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .15s ease; white-space: nowrap; user-select: none; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn--coral { --bg: var(--coral); --fg: var(--cream); text-shadow: 0 2px 0 rgba(29, 36, 51, .35); background: linear-gradient(180deg, #ff9372 0%, var(--coral) 55%, var(--coral-d) 100%); }
.btn--cream { --bg: var(--cream); --fg: var(--ink); background: linear-gradient(180deg, #fffaf0, var(--cream) 60%, #f1e2c4); }
.btn--sm { padding: 9px 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.btn--sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 21px; border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
.btn--lg:hover { box-shadow: 0 7px 0 var(--ink); }
.btn--lg:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- header ---------- */
.hdr-wrap { position: fixed; inset: 30px 0 auto 0; z-index: 50; padding: 10px 16px 0; overflow: hidden; pointer-events: none; }
.hdr { pointer-events: auto; width: min(1180px, 100%); margin-inline: auto; display: flex; align-items: center; gap: 18px; padding: 8px 10px 8px 14px; background: linear-gradient(180deg, #fffdf6, var(--cream)); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 rgba(13, 42, 58, .55); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 25px; letter-spacing: .01em; color: var(--cream); }
.hdr .logo { color: var(--ink); }
.hdr .logo span { text-shadow: 0 2px 0 rgba(31, 138, 163, .35); }
.logo img { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--ink); }
.logo span { text-shadow: 0 2px 0 var(--ink); }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 16px; color: #4a5162; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(29, 36, 51, .07); color: var(--ink); }
.hdr__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--foam); transition: background .15s, color .15s; }
.ico:hover { background: rgba(95, 208, 214, .16); color: #fff; }
.hdr .ico { color: var(--ink); }
.hdr .ico:hover { background: rgba(29, 36, 51, .07); color: var(--ink); }
.ico svg { width: 19px; height: 19px; }
.hdr__menu { display: none; width: 42px; height: 42px; place-items: center; background: var(--cream); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.hdr__menu svg { width: 20px; height: 20px; }
.mnav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--night); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav a { font-size: 26px; font-weight: 600; padding: 8px 22px; border-radius: 12px; }
.mnav a:hover { background: rgba(95, 208, 214, .16); }
.mnav__x { position: absolute; top: 20px; right: 20px; background: var(--cream); color: var(--ink); border: var(--bw) solid var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 110px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 20%, #2aa6b6 0%, var(--sea-500) 30%, var(--sea-700) 62%, var(--sea-900) 100%); }
#hero-town { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; image-rendering: pixelated; image-rendering: crisp-edges; }
.hero__fallback { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__fallback i { position: absolute; left: -10%; right: -10%; height: 3px; border-radius: 3px; background: rgba(233, 251, 247, .22); animation: drift 9s ease-in-out infinite; }
.hero__fallback i:nth-child(1) { top: 70%; }
.hero__fallback i:nth-child(2) { top: 78%; animation-delay: -3s; opacity: .7; }
.hero__fallback i:nth-child(3) { top: 86%; animation-delay: -6s; opacity: .5; }
.hero.has-town .hero__fallback { display: none; }
@keyframes drift { 0%, 100% { transform: translateX(-3%) scaleX(.9); } 50% { transform: translateX(3%) scaleX(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 50%, rgba(13, 42, 58, .5) 0%, rgba(13, 42, 58, .18) 60%, rgba(13, 42, 58, 0) 100%), linear-gradient(180deg, rgba(13, 42, 58, .35) 0%, rgba(13, 42, 58, 0) 22%, rgba(13, 42, 58, 0) 70%, rgba(13, 42, 58, .55) 100%); }
.hero__copy { position: relative; width: min(980px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }

.logo-title { display: flex; justify-content: center; font-size: clamp(64px, 14.5vw, 212px); font-weight: 700; line-height: .95; letter-spacing: -.005em; color: var(--cream); padding-bottom: .12em; }
.logo-title span { display: inline-block; -webkit-text-stroke: clamp(7px, 1.15vw, 15px) var(--ink); paint-order: stroke fill;
  text-shadow: 0 clamp(5px, .8vw, 10px) 0 var(--sea-500), 0 clamp(9px, 1.45vw, 18px) 0 var(--ink), 0 clamp(14px, 2.2vw, 28px) 24px rgba(13, 42, 58, .45);
  animation: bob 3.6s ease-in-out infinite; }
.logo-title span:nth-child(2) { animation-delay: -.25s; } .logo-title span:nth-child(3) { animation-delay: -.5s; }
.logo-title span:nth-child(4) { animation-delay: -.75s; } .logo-title span:nth-child(5) { animation-delay: -1s; }
.logo-title span:nth-child(6) { animation-delay: -1.25s; } .logo-title span:nth-child(7) { animation-delay: -1.5s; }
.logo-title span:nth-child(8) { animation-delay: -1.75s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-.045em) rotate(.6deg); } }

.hero__tag { margin-top: 10px; display: inline-block; padding: 8px 18px; font-size: clamp(18px, 2.1vw, 26px); font-weight: 600; color: var(--cream); background: var(--navy-a); border: var(--bw) solid var(--ink); border-radius: 14px; text-shadow: 0 2px 0 var(--ink); max-width: 100%; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; font-size: 15px; font-weight: 600; color: var(--foam); background: rgba(13, 42, 58, .9); border: 2px solid var(--ink); border-radius: 999px; }
.chips li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* CA block (hero only) */
.ca { margin-top: 26px; display: flex; align-items: center; gap: 10px; width: min(640px, 100%); min-height: 58px; padding: 8px 8px 8px 10px; background: rgba(21, 26, 51, .94); border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); }
.ca__lbl { flex: none; padding: 5px 9px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 9px; }
.ca__addr { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-weight: 500; font-size: 15.5px; letter-spacing: .01em; color: #fff; text-align: left; overflow-wrap: anywhere; word-break: break-all; line-height: 1.35; }
.ca.is-soon .ca__addr { color: var(--sea-300); font-family: var(--font); font-weight: 600; font-size: 17px; letter-spacing: .02em; word-break: normal; }
.ca__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-weight: 600; font-size: 15px; color: var(--cream); background: var(--coral); border: 2px solid var(--ink); border-radius: 11px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s, background .15s; }
.ca__btn svg { width: 16px; height: 16px; }
.ca__btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.ca__btn:disabled { cursor: default; background: #3a4560; color: #9fb0c8; box-shadow: 0 3px 0 var(--ink); transform: none; }
.ca__btn.is-done { background: var(--leaf); }

.hero__scroll { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--cream); background: rgba(21, 26, 51, .8); border: 2px solid var(--ink); animation: nudge 2.4s ease-in-out infinite; z-index: 1; }
.hero__scroll svg { width: 22px; height: 22px; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

.wave { position: absolute; left: 0; width: 100%; height: 44px; fill: var(--sea-700); pointer-events: none; }
.wave--bottom { bottom: -1px; z-index: 1; }
.wave--top { top: -1px; fill: var(--sea-700); }
.wave--deep { fill: var(--night); }

/* ---------- sections ---------- */
.sec { position: relative; padding: 96px 0; }
.sec--sea { background: var(--sea-700); }
.sec--deep { background: var(--night); }
.sec--sea .wave--top { fill: var(--night); }
.sec--deep .wave--top { fill: var(--sea-700); }
.eyebrow { text-align: center; font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sec__title { margin-top: 8px; text-align: center; font-size: clamp(36px, 5.4vw, 64px); color: var(--cream); -webkit-text-stroke: clamp(4px, .5vw, 6px) var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--sea-500), 0 7px 0 var(--ink); }
.lead { margin: 18px auto 0; max-width: 720px; text-align: center; font-size: 19px; color: var(--foam); }

.card { position: relative; min-width: 0; padding: 26px 24px 24px; color: var(--ink); background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: #3a4458; font-size: 16.5px; }
.card__num { position: absolute; top: -18px; left: 20px; display: grid; place-items: center; width: 38px; height: 38px; font-weight: 700; font-size: 19px; color: var(--ink); background: var(--gold); border: var(--bw) solid var(--ink); border-radius: 11px; box-shadow: 0 3px 0 var(--ink); }
.grid3 { margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

.ages { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.ages li { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(13, 42, 58, .65); border: 2px solid var(--ink); border-radius: 14px; }
.ages b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; font-size: 15px; color: var(--ink); background: var(--sea-300); border: 2px solid var(--ink); border-radius: 10px; }
.ages li:nth-child(2) b { background: #8fdcb0; } .ages li:nth-child(3) b { background: var(--sand); }
.ages li:nth-child(4) b { background: #ffb38f; } .ages li:nth-child(5) b { background: var(--gold); }
.ages span { font-weight: 600; font-size: 15.5px; line-height: 1.2; color: var(--foam); }

.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.sprite-icon { flex: none; width: 88px; height: 88px; border-radius: 16px; border: var(--bw) solid var(--ink); image-rendering: pixelated; image-rendering: crisp-edges;
  background: radial-gradient(circle at 50% 62%, #bfeee9 0 38%, #7fd2d2 39% 100%); }
.steps + .center, .tok + .burned + .note + .center { margin-top: 40px; }
.sec .center:last-child { margin-top: 40px; }

/* ---------- token ---------- */
.tok { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.panel { min-width: 0; padding: 22px; background: var(--night); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); }
.panel__h { font-size: 24px; color: var(--cream); }
.panel__sub { margin-top: 2px; font-size: 15px; color: var(--sea-300); }
.tiers, .burns { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tier, .burn { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 12px; background: rgba(255, 246, 228, .06); border: 2px solid rgba(233, 251, 247, .12); border-radius: 14px; }
.tier__badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.tier__badge svg { width: 24px; height: 24px; }
.tier[data-id="deckhand"] .tier__badge { background: var(--sea-300); }
.tier[data-id="bosun"] .tier__badge { background: #7fb2ff; }
.tier[data-id="captain"] .tier__badge { background: var(--gold); }
.tier[data-id="admiral"] .tier__badge { background: var(--coral); }
.tier__txt, .burn__txt { min-width: 0; flex: 1; }
.tier__txt > b, .burn__txt > b { display: block; font-size: 17px; color: var(--cream); }
.tier__txt > span, .burn__txt > span { display: block; font-size: 14.5px; line-height: 1.4; color: #b9cfd8; }
.amt { flex: none; padding: 5px 10px; font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: var(--ink); background: var(--sand); border: 2px solid var(--ink); border-radius: 10px; white-space: nowrap; }
.burn__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); background: linear-gradient(180deg, var(--gold), var(--coral)); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.burn__ico svg { width: 22px; height: 22px; }
.tag { display: inline-block; white-space: nowrap; margin-left: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; color: var(--ink); background: var(--sea-300); border-radius: 6px; }
.tag--perm { background: #8fdcb0; }
.burned { margin: 28px auto 0; width: min(640px, 100%); display: flex; align-items: center; gap: 18px; padding: 18px 22px; color: var(--ink); background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); }
.burned__ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; color: var(--coral-d); background: #ffe3cf; border: var(--bw) solid var(--ink); border-radius: 16px; }
.burned__ico svg { width: 36px; height: 36px; }
.burned__num { display: block; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.burned__lbl { display: block; font-weight: 600; font-size: 16px; }
.burned__sub { display: block; font-size: 13.5px; color: #5b6476; overflow-wrap: anywhere; }
.note { margin: 18px auto 0; max-width: 640px; text-align: center; font-size: 15px; color: #cfe7ea; }

.cta { padding: 90px 0 100px; background: linear-gradient(180deg, var(--sea-700), var(--sea-500)); }
.cta .lead { margin-bottom: 26px; }

/* ---------- doc pages (token, 404) ---------- */
.doc { padding: 130px 0 90px; background: radial-gradient(120% 60% at 50% 0%, var(--sea-500) 0%, var(--sea-700) 45%, var(--sea-900) 100%); min-height: 70vh; }
.doc h1 { text-align: center; font-size: clamp(38px, 6vw, 72px); color: var(--cream); -webkit-text-stroke: clamp(4px, .55vw, 7px) var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--sea-500), 0 9px 0 var(--ink); }
.doc .lead a, .tlink { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.doc__grid .wide { grid-column: 1 / -1; }
.howbuy { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.howbuy li { counter-increment: s; display: flex; gap: 12px; }
.howbuy li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-weight: 700; color: var(--ink); background: var(--sea-300); border: 2px solid var(--ink); border-radius: 9px; }
.howbuy b { display: block; font-size: 17px; color: var(--ink); }
.howbuy li > div > span { display: block; font-size: 15.5px; color: #3a4458; }
.howbuy a { color: var(--sea-700); text-decoration: underline; text-underline-offset: 2px; }
.kv { margin: 14px 0 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 2px dashed rgba(29, 36, 51, .15); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: #5b6476; }
.kv dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv dd a { color: var(--sea-700); text-decoration: underline; text-underline-offset: 2px; }
.tok__btns { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.doc .panel { box-shadow: 0 6px 0 var(--ink); }
.faq { margin-top: 14px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; position: relative; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; font-weight: 700; color: var(--ink); background: var(--sand); border: 2px solid var(--ink); border-radius: 7px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 16px 15px; font-size: 16px; color: #3a4458; }
.links { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.links a:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.links a small { font-weight: 500; color: #5b6476; font-size: 13px; }
.lost { display: grid; place-items: center; margin: 0 auto 26px; width: 120px; height: 120px; color: var(--cream); background: var(--sea-700); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 0 6px 0 var(--ink); }
.lost svg { width: 74px; height: 74px; }

/* ---------- footer ---------- */
.ftr { padding: 46px 0 30px; background: var(--night); border-top: var(--bw) solid var(--ink); }
.ftr__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.ftr__brand p { margin-top: 8px; color: #b9cfd8; font-size: 15px; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.ftr__links a { padding: 7px 12px; border-radius: 10px; font-weight: 500; color: var(--foam); }
.ftr__links a:hover { background: rgba(95, 208, 214, .14); }
.ftr__fine { margin-top: 26px; padding-top: 18px; border-top: 2px solid rgba(233, 251, 247, .08); display: grid; gap: 6px; font-size: 14px; color: #93a9b6; }
.ftr__fine b { color: var(--cream); font-weight: 600; }

/* ---------- dialog + toast ---------- */
.dlg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(13, 20, 36, .72); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.dlg.is-open { opacity: 1; visibility: visible; }
.dlg__box { width: min(420px, 100%); padding: 26px 24px 22px; text-align: center; color: var(--ink); background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); transform: translateY(10px) scale(.97); transition: transform .2s; }
.dlg.is-open .dlg__box { transform: none; }
.dlg__box h3 { font-size: 28px; }
.dlg__box p { margin: 8px 0 20px; color: #3a4458; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); padding: 10px 18px; font-weight: 600; color: var(--ink); background: var(--gold); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 620px; margin-inline: auto; }
  .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ages li:last-child { grid-column: 1 / -1; }
  .steps, .tok, .doc__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav, .hdr .ico { display: none; }
  .hdr__menu { display: grid; }
  .hdr { gap: 10px; padding: 7px 8px 7px 10px; border-radius: 16px; }
  .logo { font-size: 22px; }
  .logo img { width: 30px; height: 30px; }
  .hdr-wrap { padding: 10px 10px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 96px 16px 104px; }
  .hero__tag { font-size: 17px; padding: 7px 12px; }
  .chips li { font-size: 13.5px; padding: 5px 11px 5px 9px; }
  .hero__btns { gap: 10px; width: 100%; }
  .hero__btns .btn--lg { flex: 1 1 140px; padding: 14px 16px; font-size: 19px; }
  .ca { padding: 7px 7px 7px 8px; gap: 8px; }
  .ca__addr { font-size: 12.6px; }
  .ca__btn { padding: 9px 10px; }
  .ca__btn span { display: none; }
  .sec { padding: 76px 0; }
  .card { padding: 24px 18px 20px; }
  .step { flex-direction: column; gap: 12px; }
  .sprite-icon { width: 76px; height: 76px; }
  .panel { padding: 18px 14px; }
  .tier, .burn { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; }
  .tier .amt, .burn .amt { grid-column: 2; justify-self: start; }
  .burned { padding: 16px; gap: 14px; }
  .burned__ico { width: 52px; height: 52px; }
  .links { grid-template-columns: minmax(0, 1fr); }
  .ages { grid-template-columns: minmax(0, 1fr); }
  .ages li:last-child { grid-column: auto; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- game-style hero extras ---------- */
.live { position: fixed; inset: 0 0 auto 0; z-index: 51; height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #2f6d40; color: #eafbe8; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid #1f4a2c; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #7dff8a; box-shadow: 0 0 0 3px rgba(125, 255, 138, .25); animation: livep 1.6s ease-in-out infinite; }
@keyframes livep { 50% { box-shadow: 0 0 0 6px rgba(125, 255, 138, 0); } }
.hero { padding-top: 140px; }
.hero__age { position: absolute; z-index: 2; left: max(16px, calc(50% - 600px)); top: 116px; display: grid; gap: 2px; padding: 10px 16px 12px; background: linear-gradient(180deg, #2b2147, #1d1733); color: var(--cream); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink), inset 0 0 0 2px rgba(255, 201, 74, .35); }
.hero__age small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero__age b { font-size: 21px; line-height: 1.1; text-shadow: 0 2px 0 var(--ink); }
.hero__age .pips { display: flex; gap: 4px; margin-top: 5px; }
.hero__age .pips i { width: 18px; height: 6px; border-radius: 9px; background: rgba(255, 246, 228, .2); }
.hero__age .pips i.on { background: var(--gold); }
.hero__plaque { position: absolute; z-index: 2; right: max(16px, calc(50% - 600px)); top: 108px; display: grid; justify-items: center; gap: 2px; min-width: 230px; padding: 0 18px 12px; background: linear-gradient(180deg, #3a2a63, #22183f); color: var(--cream); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 3px #e3a52c; text-align: center; transition: transform .15s; }
.hero__plaque:hover { transform: translateY(-2px); }
.hero__plaque-tag { margin-top: -12px; padding: 3px 14px; background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero__plaque b { margin-top: 6px; font-size: 38px; line-height: 1; color: #ffd76a; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.hero__plaque small { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #e7dcff; text-transform: uppercase; max-width: 220px; }
.hero__info { margin: 18px 0 0; padding: 8px 16px; max-width: 640px; font-size: 15.5px; font-weight: 600; color: var(--cream); background: rgba(21, 26, 51, .82); border: 2px solid var(--ink); border-radius: 12px; text-shadow: 0 1px 0 var(--ink); }
@media (max-width: 1100px) { .hero__age, .hero__plaque { display: none; } }
@media (max-width: 600px) { .live { font-size: 11px; letter-spacing: .05em; height: 26px; } .hdr-wrap { top: 26px; } .hero { padding-top: 120px; } .hero__info { font-size: 14px; } }
