/* AFK Miners website (landing page, legal pages, 404).
   Visual language = the game's icon art: thick dark-brown outlines, hard offset shadows instead of blur, flat "cel" shading (a lighter top half and a darker lower half),
   saturated warm colours, rounded shapes. Everything is plain CSS, no inline styles needed. */
:root {
  --ink: #3a2314; --ink-2: #5b3a21; --ink-soft: #7a5233;
  --cream: #fff3d6; --cream-2: #ffe6b0; --sand: #f6cf8a;
  --orange: #ff9a2e; --orange-hi: #ffbd4a; --orange-lo: #e8741a;
  --gold: #ffcf3f; --gold-hi: #ffe27a; --gold-lo: #f0a91a;
  --green: #5fd068; --green-hi: #8ee884; --green-lo: #2fa04a;
  --red: #ff5b4a; --red-hi: #ff8a6a; --red-lo: #d63a2e;
  --sky: #7fd8ff; --purple: #a778ff;
  --bg-dark: #2b180c; --bg-dark-2: #3a2314;
  --r: 22px; --line: 5px;
  --font-display: "Lilita One", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg-dark); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .01em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; border-radius: 12px; }

/* ---------- buttons ---------- */
.btn { --b1: var(--gold-hi); --b2: var(--gold); --b3: var(--gold-lo); display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; text-decoration: none; color: var(--ink); cursor: pointer;
  padding: .7em 1.4em; border: var(--line) solid var(--ink); border-radius: 18px; background: linear-gradient(180deg, var(--b1) 0 14%, var(--b2) 14% 55%, var(--b3) 55%); box-shadow: 0 6px 0 var(--ink), inset 0 -5px 0 rgba(0,0,0,.12); transition: transform .08s, box-shadow .08s; text-shadow: 0 2px 0 rgba(255,255,255,.35); position: relative; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), inset 0 -5px 0 rgba(0,0,0,.12); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink), inset 0 -5px 0 rgba(0,0,0,.12); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.btn.green { --b1: var(--green-hi); --b2: var(--green); --b3: var(--green-lo); }
.btn.blurple { --b1: #8f9bff; --b2: #6b78f0; --b3: #4a55c9; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.btn.dark { --b1: #6b4a30; --b2: #4d3220; --b3: #3a2314; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.btn.big { font-size: clamp(1.5rem, 3.4vw, 2.2rem); padding: .6em 1.6em; border-radius: 24px; }
.btn.small { font-size: 1rem; padding: .45em 1em; border-width: 4px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 rgba(0,0,0,.12); }
.btn[aria-disabled="true"] { filter: grayscale(.6) brightness(.9); cursor: not-allowed; }
.btn.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: var(--line) solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.7rem; text-decoration: none; letter-spacing: .02em; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { color: var(--orange-lo); font-weight: 400; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { text-decoration: none; padding: .35em .8em; border-radius: 12px; font-weight: 800; }
.nav-links a:hover { background: var(--cream-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 4px solid var(--ink); border-radius: 14px; background: var(--cream-2); box-shadow: 0 4px 0 var(--ink); transition: transform .08s; }
.icon-btn svg { width: 24px; height: 24px; fill: var(--ink); }
.icon-btn:hover { transform: translateY(-2px); background: #fff; }
.icon-btn.discord:hover { background: #8f9bff; } .icon-btn.discord:hover svg { fill: #fff; }
.icon-btn.x:hover { background: var(--ink); } .icon-btn.x:hover svg { fill: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #ffd9a0 0%, #ffb867 38%, #ff9150 70%, #e86a3a 100%); border-bottom: var(--line) solid var(--ink); overflow: hidden; }
.hero-scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; z-index: -1; }
.hero .rays { position: absolute; z-index: -1; top: -180px; left: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75) 0 14%, rgba(255,240,170,.55) 14% 34%, rgba(255,220,120,.0) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: center; padding: 54px 0 74px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--gold-hi); font-family: var(--font-display); letter-spacing: .06em; font-size: .95rem; padding: .35em 1em; border-radius: 99px; border: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(95,208,104,.35); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin: 18px 0 12px; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 5px 0 var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink), 0 -3px 0 var(--ink), 4px 0 0 var(--ink), -4px 0 0 var(--ink); paint-order: stroke fill; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(1.1rem, 2.1vw, 1.4rem); max-width: 34ch; color: var(--ink); font-weight: 800; margin: 0 0 24px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; }
.hero-art img { position: absolute; filter: drop-shadow(0 10px 0 rgba(58,35,20,.35)); }
.hero-art .a-helmet { width: 62%; left: 19%; top: 14%; animation: bob 4.6s ease-in-out infinite; }
.hero-art .a-pick { width: 40%; left: -2%; top: 52%; transform: rotate(-12deg); animation: bob 5.2s -1s ease-in-out infinite; }
.hero-art .a-crate { width: 38%; right: -2%; top: 56%; transform: rotate(8deg); animation: bob 5.6s -2s ease-in-out infinite; }
.hero-art .a-coin { width: 26%; right: 6%; top: 2%; animation: spin 6s ease-in-out infinite; }
.hero-art .a-gold { width: 20%; left: 6%; top: 8%; animation: bob 4s -.5s ease-in-out infinite; }
.hero-art .a-ruby { width: 15%; left: 40%; bottom: 0; animation: bob 4.4s -1.5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes spin { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; scale: 1.06; } }

/* ---------- whitelist panel ---------- */
.spots { background: var(--cream); border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: 0 9px 0 var(--ink); padding: 22px 24px 24px; max-width: 640px; }
.spots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.spots-head h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.spots-count { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--orange-lo); line-height: 1; }
.spots-count small { font-size: .55em; color: var(--ink-soft); }
.bar { position: relative; height: 54px; border: var(--line) solid var(--ink); border-radius: 99px; background: #6e4a2e; overflow: hidden; box-shadow: inset 0 6px 0 rgba(0,0,0,.28); }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(180deg, var(--green-hi) 0 22%, var(--green) 22% 60%, var(--green-lo) 60%); transition: width 1.1s cubic-bezier(.2,.9,.2,1); border-right: 5px solid var(--ink); }
.bar-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.22) 0 12px, transparent 12px 26px); animation: slide 1.4s linear infinite; }
@keyframes slide { to { background-position: 52px 0; } }
.bar.warm .bar-fill { background: linear-gradient(180deg, var(--orange-hi) 0 22%, var(--orange) 22% 60%, var(--orange-lo) 60%); }
.bar.hot .bar-fill { background: linear-gradient(180deg, var(--red-hi) 0 22%, var(--red) 22% 60%, var(--red-lo) 60%); }
.bar.hot { animation: shake 2.4s infinite; }
@keyframes shake { 0%, 90%, 100% { translate: 0 0; } 93% { translate: -3px 0; } 96% { translate: 3px 0; } }
.bar-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 3px), rgba(58,35,20,.55) calc(10% - 3px) 10%); pointer-events: none; }
.bar-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: .05em; text-shadow: 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); }
.fomo { margin: 16px 0 18px; font-size: 1.12rem; font-weight: 800; }
.fomo strong { color: var(--red-lo); font-family: var(--font-display); font-weight: 400; font-size: 1.25em; }
.fomo .sub { display: block; font-weight: 700; font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.spots-note { margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }
.spots-note a { color: var(--orange-lo); font-weight: 900; }

/* ---------- live stats ---------- */
.stats { background: var(--bg-dark-2); background-image: radial-gradient(rgba(255,255,255,.05) 2px, transparent 2.5px); background-size: 26px 26px; padding: 44px 0 52px; border-bottom: var(--line) solid var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: 0 7px 0 #000a; padding: 16px 16px 14px; display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; min-width: 0; }
.stat img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(58,35,20,.3)); }
.stat small { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 900; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.1; overflow-wrap: anywhere; }
.stat em { display: block; font-style: normal; font-size: .85rem; color: var(--orange-lo); font-weight: 900; }
.stats-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; margin-top: 22px; color: var(--cream-2); font-size: .95rem; }
.stats-foot .live { display: inline-flex; align-items: center; gap: 8px; }
.timer { font-family: var(--font-display); color: var(--gold-hi); font-size: 1.15rem; }

/* ---------- sections ---------- */
.section { padding: 76px 0; position: relative; }
.section.light { background: var(--cream); border-bottom: var(--line) solid var(--ink); }
.section.sand { background: var(--sand); border-bottom: var(--line) solid var(--ink); }
.section.dark { background: var(--bg-dark); color: var(--cream); background-image: radial-gradient(rgba(255,255,255,.045) 2px, transparent 2.5px); background-size: 26px 26px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.sec-head h2 em { font-style: normal; color: var(--orange-lo); }
.dark .sec-head h2 em { color: var(--gold); }
.sec-head p { margin: 12px 0 0; font-size: 1.15rem; }
.eyebrow { display: inline-block; font-family: var(--font-display); letter-spacing: .12em; font-size: .95rem; color: var(--orange-lo); margin-bottom: 8px; }
.dark .eyebrow { color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { --tint: #fff; position: relative; background: var(--tint); border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 24px 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .12s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card .art { height: 112px; display: grid; place-items: center; margin-bottom: 4px; position: relative; }
.card .art img { max-height: 112px; width: auto; filter: drop-shadow(0 6px 0 rgba(58,35,20,.28)); }
.card .art .duo { display: flex; align-items: center; gap: 4px; }
.card .art .duo img { height: 82px; }
.card .art .duo span { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.card h3 { font-size: 1.55rem; }
.card p { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.card .tag { align-self: flex-start; margin-top: auto; background: var(--ink); color: var(--gold-hi); font-family: var(--font-display); font-size: .85rem; letter-spacing: .05em; padding: .2em .8em; border-radius: 99px; }
.t-orange { --tint: #ffd9a3; } .t-green { --tint: #cdf2b8; } .t-sky { --tint: #c4ecff; } .t-gold { --tint: #ffeaa0; } .t-purple { --tint: #e1d2ff; } .t-red { --tint: #ffcfc2; }

/* ---------- packs ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pack { position: relative; background: var(--cream); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 30px; box-shadow: 0 10px 0 #000a; padding: 34px 24px 26px; display: flex; flex-direction: column; text-align: center; }
.pack.hot { background: #ffe9a8; transform: translateY(-14px); }
.pack .badge { position: absolute; top: -20px; left: 50%; translate: -50% 0; white-space: nowrap; font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; padding: .3em 1.1em; border: 4px solid var(--ink); border-radius: 99px; background: linear-gradient(180deg, var(--red-hi) 0 30%, var(--red) 30%); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); box-shadow: 0 4px 0 var(--ink); }
.pack .badge.value { background: linear-gradient(180deg, var(--green-hi) 0 30%, var(--green) 30%); }
.pack img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 8px 0 rgba(58,35,20,.28)); }
.pack h3 { font-size: 2rem; }
.pack .head { margin: 2px 0 12px; color: var(--ink-soft); font-weight: 800; }
.pack .price { font-family: var(--font-display); font-size: 2.3rem; color: var(--orange-lo); line-height: 1; }
.pack .price small { display: block; font-size: .9rem; font-family: var(--font-body); font-weight: 800; color: var(--ink-soft); margin-top: 4px; }
.pack ul { list-style: none; padding: 0; margin: 18px 0 20px; text-align: left; display: grid; gap: 8px; }
.pack li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.pack li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--ink); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%233a2314' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pack .btn { margin-top: auto; }
.packs-note { max-width: 820px; margin: 46px auto 0; text-align: center; font-size: 1rem; color: var(--cream-2); }
.packs-note strong { color: var(--gold-hi); }
.unlocks { max-width: 820px; margin: 34px auto 0; background: rgba(0,0,0,.28); border: 4px dashed rgba(255,226,122,.55); border-radius: 24px; padding: 18px 22px; color: var(--cream); }
.unlocks h3 { font-size: 1.35rem; color: var(--gold-hi); margin-bottom: 8px; }
.unlocks ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { counter-increment: s; background: #fff; border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: 0 7px 0 var(--ink); padding: 56px 18px 20px; position: relative; text-align: center; }
.step::before { content: counter(s); position: absolute; top: -22px; left: 50%; translate: -50% 0; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; background: linear-gradient(180deg, var(--gold-hi) 0 25%, var(--gold) 25%); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.step h3 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .97rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--cream); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-family: var(--font-display); font-size: 1.28rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.7rem; line-height: 1; background: var(--gold); border: 3px solid var(--ink); border-radius: 50%; transition: rotate .2s; }
.faq details[open] summary::after { content: "–"; rotate: 180deg; background: var(--orange-hi); }
.faq details[open] summary { background: var(--cream-2); border-bottom: 4px solid var(--ink); }
.faq .ans { padding: 14px 20px 18px; font-weight: 700; }
.faq .ans p { margin: 0 0 .7em; } .faq .ans p:last-child { margin: 0; }

/* ---------- join band ---------- */
.join { background: linear-gradient(180deg, #7d62ff 0%, #5a47d8 100%); border-block: var(--line) solid var(--ink); color: #fff; text-align: center; padding: 70px 0; }
.join h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-shadow: 0 4px 0 var(--ink); }
.join p { max-width: 560px; margin: 12px auto 26px; font-size: 1.15rem; }
.join .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--bg-dark); color: var(--cream-2); padding: 46px 0 40px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer .brand { color: var(--cream); margin-bottom: 10px; }
.footer h4 { font-family: var(--font-display); font-weight: 400; color: var(--gold-hi); font-size: 1.15rem; margin: 0 0 10px; letter-spacing: .04em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; } .footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer { margin-top: 30px; padding-top: 22px; border-top: 3px solid rgba(255,255,255,.12); font-size: .85rem; color: #d8bd93; font-weight: 600; display: grid; gap: 8px; }

/* ---------- legal pages + 404 ---------- */
.page-head { background: linear-gradient(180deg, #ffd9a0, #ffb867); border-bottom: var(--line) solid var(--ink); padding: 54px 0 40px; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); color: #fff; text-shadow: 0 4px 0 var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink); }
.page-head p { margin: 10px 0 0; font-weight: 800; }
.legal { background: var(--cream); padding: 46px 0 70px; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.7rem; margin: 2em 0 .5em; color: var(--orange-lo); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-weight: 600; }
.legal ul { padding-left: 1.25em; display: grid; gap: .35em; }
.legal a { color: var(--orange-lo); font-weight: 800; }
.legal .box { background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: 0 5px 0 var(--ink); margin: 18px 0; }
.legal table { width: 100%; border-collapse: separate; border-spacing: 0; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 9px 12px; vertical-align: top; border-bottom: 3px solid var(--cream-2); }
.legal th { background: var(--cream-2); font-family: var(--font-display); font-weight: 400; }
.legal tr:last-child td { border-bottom: 0; }
.nf { background: var(--cream); min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.nf img { width: 190px; margin: 0 auto 10px; }
.nf h1 { font-size: clamp(3rem, 9vw, 6rem); color: var(--orange-lo); }
.nf p { font-size: 1.25rem; margin: 8px 0 26px; }

/* ---------- reveal on scroll (progressive: content is visible without JS) ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s, translate .6s; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* short / wide windows: keep the whole hero (art + play button) above the fold */
@media (min-width: 1001px) and (max-height: 900px) {
  .hero-grid { padding: 28px 0 40px; gap: 20px; }
  .hero h1 { font-size: clamp(2.6rem, 11vh, 4.6rem); margin: 12px 0 8px; }
  .lead { font-size: clamp(1rem, 2.4vh, 1.25rem); margin-bottom: 14px; }
  .hero-art { max-width: min(520px, calc(100vh - 230px)); min-width: 260px; }
  .spots { padding: 16px 20px 18px; }
  .bar { height: 44px; }
  .spots-head { margin-bottom: 8px; }
  .fomo { margin: 8px 0 12px; }
  .btn.big { font-size: 1.4rem; padding: .5em 1.2em; border-radius: 20px; }
  .cta-row { flex-wrap: nowrap; gap: 12px; }
  .cta-row .btn.dark { white-space: nowrap; }
  .spots-note { margin: 10px 0 0; }
}
@media (min-width: 1001px) and (max-height: 640px){
  .hero-grid { padding: 18px 0 28px; }
  .hero-art { max-width: min(520px, calc(100vh - 150px)); min-width: 220px; }
}

/* ---------- whitepaper / tokenomics ---------- */
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 34px; }
.doc .toc a { background: #fff; border: 3px solid var(--ink); border-radius: 99px; padding: .25em .9em; font-size: .9rem; text-decoration: none; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.doc .toc a:hover { background: var(--gold); }
.doc h2 { scroll-margin-top: 90px; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 6px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 14px; vertical-align: top; border-bottom: 2px solid rgba(58,35,20,.15); }
.doc th { background: var(--ink); color: var(--gold-hi); font-family: var(--font-display); font-weight: 400; letter-spacing: .04em; }
.doc tbody tr:last-child td { border-bottom: 0; }
.doc td:first-child { font-weight: 900; white-space: nowrap; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.stat-row > div { background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 12px 14px; }
.stat-row small { display: block; font-weight: 900; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.stat-row b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--orange-lo); line-height: 1.15; }
.stat-row em { font-style: normal; font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 760px){
  .stat-row { grid-template-columns: 1fr 1fr; }
  .doc td:first-child { white-space: normal; }
  .doc table { display: block; overflow-x: auto; }
}

/* top nav: keep every link on one line */
.brand, .nav-links a { white-space: nowrap; }
.nav-links { gap: clamp(2px, .6vw, 10px); margin-left: 26px; }
@media (max-width: 1420px){ .nav-links a[href="#how"] { display: none; } }   /* 'How it works' drops out first on narrower screens */

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-art { max-width: 340px; order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .packs { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 40px; }
  .pack.hot { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px){
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav .wrap { height: 62px; gap: 10px; }
  .brand { font-size: 1.35rem; } .brand img { width: 38px; height: 38px; }
  .nav-right .btn { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .hero-grid { padding: 26px 0 50px; }
  .spots { padding: 18px 16px 20px; border-radius: 24px; }
  .bar { height: 46px; } .bar-label { font-size: 1.2rem; }
  .stats-grid, .cards, .steps, .foot-grid { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 54px 1fr; } .stat img { width: 54px; height: 54px; }
  .section { padding: 56px 0; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
