/* ============ Memenomicon — cursed grimoire theme ============ */
:root {
  --ink: #050906;
  --page: #0a120b;
  --panel: #0e1a10;
  --edge: #1d3320;
  --glow: #a6ff3d;
  --glow-dim: #57d915;
  --rune: #c4ff70;
  --amber: #ffb347;
  --red: #e05238;
  --bone: #e9e5d6;
  --bone-dim: #b7b4a4;
  --font-display: 'Pirata One', 'Georgia', serif;
  --font-body: 'Alegreya', 'Georgia', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--glow); }
.nowrap { white-space: nowrap; }

::selection { background: var(--glow); color: #06210a; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
main section[id], section[id] { scroll-margin-top: 84px; }

/* themed scrollbar */
html { scrollbar-color: var(--glow-dim) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--glow-dim), #1d3320);
  border-radius: 6px; border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--glow); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-book { font-size: 3rem; animation: bookPulse 1.2s ease-in-out infinite; }
@keyframes bookPulse { 0%,100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }
.preloader-label {
  margin-top: 1rem; font-size: .8rem; letter-spacing: .35em; color: var(--glow);
  animation: flicker 2s linear infinite;
}
.preloader-bar {
  margin: 1.2rem auto 0; width: 240px; height: 6px;
  background: var(--edge); border-radius: 3px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--glow-dim), var(--glow));
  box-shadow: 0 0 12px var(--glow);
  transition: width .3s ease;
}
@keyframes flicker { 0%,92%,96%,100% { opacity: 1; } 94%, 98% { opacity: .4; } }

/* ---------- Scroll progress / grain ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--glow-dim), var(--glow));
  box-shadow: 0 0 10px var(--glow);
}
.grain {
  position: fixed; inset: -50%; z-index: 55; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grainShift 900ms steps(4) infinite;
}
@keyframes grainShift { 0% { transform: translate(0,0);} 25% { transform: translate(-2%,1%);} 50% { transform: translate(1%,-2%);} 75% { transform: translate(-1%,2%);} 100% { transform: translate(0,0);} }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 1.2rem;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-logo { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 12px rgba(166,255,61,.5); }
.nav-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--glow); letter-spacing: .05em; }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; }
.nav-links a {
  color: var(--bone-dim); text-decoration: none; font-size: .95rem; position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--glow); transition: width .25s; box-shadow: 0 0 8px var(--glow);
}
.nav-links a:hover { color: var(--glow); }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--glow); margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.4rem; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s;
}
.btn:active { transform: scale(.96); }
.btn-ico { width: 20px; height: 20px; }
.btn-buy {
  background: var(--glow); color: #06210a;
  box-shadow: 0 0 18px rgba(166,255,61,.45);
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(166,255,61,.8); }
.btn-buy .btn-ico { filter: brightness(.2); }
.btn-ghost {
  background: transparent; color: var(--glow); border-color: var(--edge);
}
.btn-ghost:hover { border-color: var(--glow); box-shadow: 0 0 16px rgba(166,255,61,.35); transform: translateY(-2px); }
.btn-ghost .btn-ico { filter: invert(88%) sepia(35%) saturate(1900%) hue-rotate(35deg) brightness(105%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: grid; place-items: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(87,217,21,.12), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(20,45,18,.6), transparent),
    var(--ink);
  overflow: clip;
  text-align: center;
}
.ember-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-runes { position: absolute; inset: 0; pointer-events: none; }
.rune {
  position: absolute; color: var(--rune); opacity: 0;
  font-size: 1.6rem; text-shadow: 0 0 12px var(--glow);
  animation: runeFloat 9s linear infinite;
}
.rune:nth-child(1) { left: 6%;  animation-delay: 0s; }
.rune:nth-child(2) { left: 14%; animation-delay: 2.2s; font-size: 1.1rem; }
.rune:nth-child(3) { left: 22%; animation-delay: 4.7s; }
.rune:nth-child(4) { left: 31%; animation-delay: 1.4s; font-size: 2rem; }
.rune:nth-child(5) { left: 43%; animation-delay: 6s; }
.rune:nth-child(6) { left: 55%; animation-delay: 3.1s; font-size: 1.2rem; }
.rune:nth-child(7) { left: 63%; animation-delay: 7.5s; }
.rune:nth-child(8) { left: 71%; animation-delay: .8s; font-size: 1.9rem; }
.rune:nth-child(9) { left: 79%; animation-delay: 5.2s; }
.rune:nth-child(10){ left: 86%; animation-delay: 2.9s; font-size: 1.3rem; }
.rune:nth-child(11){ left: 92%; animation-delay: 6.8s; }
.rune:nth-child(12){ left: 50%; animation-delay: 8.3s; font-size: 1.5rem; }
@keyframes runeFloat {
  0%   { transform: translateY(105vh) rotate(0deg); opacity: 0; }
  10%  { opacity: .8; }
  85%  { opacity: .5; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-block; font-size: .78rem; letter-spacing: .3em;
  color: var(--amber); border: 1px solid rgba(255,179,71,.4);
  padding: .45rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem;
  animation: flicker 4s linear infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: .95; letter-spacing: .02em; color: var(--bone);
}
.hero-title-line { display: inline-block; }
.hero-title-glow {
  color: var(--glow);
  text-shadow: 0 0 24px rgba(166,255,61,.65), 0 0 80px rgba(166,255,61,.3);
  animation: titlePulse 3.2s ease-in-out infinite;
}
@keyframes titlePulse {
  0%,100% { text-shadow: 0 0 24px rgba(166,255,61,.65), 0 0 80px rgba(166,255,61,.3); }
  50%     { text-shadow: 0 0 40px rgba(166,255,61,.95), 0 0 120px rgba(166,255,61,.5); }
}
.hero-tag { margin: 1.2rem 0 1.8rem; font-size: 1.15rem; color: var(--bone-dim); }

.ca-pill {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--panel); border: 1px solid var(--edge);
  padding: .65rem 1.2rem; border-radius: 999px; cursor: pointer;
  font-size: .95rem; margin-bottom: 1.8rem; user-select: none;
  transition: border-color .25s, box-shadow .25s;
}
.ca-pill:hover { border-color: var(--glow); box-shadow: 0 0 16px rgba(166,255,61,.3); }
.ca-label {
  font-weight: 700; font-size: .75rem; color: #06210a;
  background: var(--glow); border-radius: 6px; padding: .15rem .5rem;
}
.ca-value { color: var(--rune); word-break: break-all; }
.ca-copy { color: var(--bone-dim); }
.hero-ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.hero-mascot-wrap { position: relative; margin-top: 2.5rem; display: inline-block; }
.hero-mascot {
  width: clamp(200px, 32vw, 300px); border-radius: 50%;
  animation: mascotBob 5s ease-in-out infinite;
  cursor: pointer; position: relative; z-index: 1;
}
.hero-mascot.slam { animation: mascotSlam .55s cubic-bezier(.22,1.61,.36,1) 1; }
@keyframes mascotBob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes mascotSlam { 0% { transform: scale(1);} 35% { transform: scale(1.18) rotate(-6deg);} 70% { transform: scale(.94) rotate(3deg);} 100% { transform: scale(1);} }
.hero-mascot-halo {
  position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,255,61,.35), transparent 65%);
  animation: haloBreath 5s ease-in-out infinite;
}
@keyframes haloBreath { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
.hero-fog {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 140px; z-index: 3;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

@media (min-height: 1000px) {
  .hero { min-height: 950px; }
}

/* ---------- Marquees ---------- */
.marquee {
  overflow: clip; background: var(--panel);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: .7rem 0; position: relative; z-index: 4;
}
.marquee-a { transform: rotate(-1.2deg) scale(1.02); }
.marquee-b { transform: rotate(1.2deg) scale(1.02); }
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .08em;
  color: var(--glow); white-space: nowrap;
  animation: marqueeMove 28s linear infinite;
}
.marquee-b .marquee-track { animation-direction: reverse; color: var(--amber); }
.marquee-track span { display: inline-block; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 1.5rem; max-width: 1150px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(14,26,16,.55) 18%, rgba(14,26,16,.55) 82%, transparent);
}
.section-alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  text-align: center; color: var(--bone); margin-bottom: 1rem;
}
.title-rune { color: var(--glow); text-shadow: 0 0 14px var(--glow); font-size: .7em; vertical-align: middle; }
.section-sub { text-align: center; color: var(--bone-dim); margin-bottom: 3rem; }

/* reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.section-title.reveal { transform: translateY(34px) scale(.92); }
.section-title.reveal.in { transform: none; }

/* hero entrance sequence (staged after preloader; gated on html.js so no-JS still shows content) */
html.js .enter { opacity: 0; }
body.loaded .enter { animation: enterUp .8s cubic-bezier(.16,1,.3,1) forwards; }
body.loaded .enter-1 { animation-delay: .05s; }
body.loaded .enter-2 { animation-delay: .18s; animation-name: enterSlam; animation-duration: .9s; }
body.loaded .enter-3 { animation-delay: .5s; }
body.loaded .enter-4 { animation-delay: .65s; }
body.loaded .enter-5 { animation-delay: .8s; }
body.loaded .enter-6 { animation-delay: .95s; animation-duration: 1s; }
@keyframes enterUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes enterSlam {
  0%   { opacity: 0; transform: translateY(-46px) scale(1.12); }
  55%  { opacity: 1; transform: translateY(6px) scale(.985); }
  100% { opacity: 1; transform: none; }
}

/* ink-bleed hover: glowing pool follows the cursor inside cards */
.bleed { position: relative; overflow: hidden; }
.bleed::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(166,255,61,.13), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.bleed:hover::after { opacity: 1; }

/* ---------- Lore ---------- */
.lore-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; margin-top: 3rem; }
.lore-art { border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); box-shadow: 0 10px 50px rgba(0,0,0,.6), 0 0 30px rgba(166,255,61,.08); }
.lore-art img { transition: transform .6s ease; }
.lore-art:hover img { transform: scale(1.04); }
.lore-art figcaption { padding: .7rem 1rem; font-size: .85rem; color: var(--bone-dim); background: var(--panel); }
.lore-text p { margin-bottom: 1.1rem; font-size: 1.06rem; }
.lore-quote {
  margin-top: 1.6rem; padding: 1.1rem 1.4rem; border-left: 3px solid var(--glow);
  background: var(--panel); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--rune);
}

/* ---------- Book easter egg ---------- */
.book-stage { display: grid; place-items: center; gap: 1.6rem; }
.book { position: relative; cursor: pointer; outline-offset: 6px; }
.book-cover {
  width: 220px; height: 300px; border-radius: 10px 16px 16px 10px;
  background:
    radial-gradient(circle at 50% 34%, rgba(166,255,61,.22), transparent 55%),
    linear-gradient(135deg, #142415, #0a130b 60%, #0d180e);
  border: 2px solid var(--edge); border-left-width: 10px;
  display: grid; place-items: center; gap: .4rem; align-content: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.7);
  transition: transform .3s ease;
  position: relative; z-index: 1;
}
.book:hover .book-cover { transform: translateY(-6px) rotate(-1.5deg); }
.book.opening .book-cover { animation: bookShake .5s ease-in-out 1; }
@keyframes bookShake {
  0%,100% { transform: rotate(0); } 20% { transform: rotate(-4deg) scale(1.03); }
  40% { transform: rotate(4deg) scale(1.05); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); }
}
.book-emblem { font-size: 3.2rem; filter: drop-shadow(0 0 12px rgba(166,255,61,.7)); }
.book-title-txt { font-family: var(--font-display); letter-spacing: .12em; color: var(--rune); }
.book-clasp {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 44px; border-radius: 4px;
  background: linear-gradient(180deg, var(--amber), #8a5a1d);
  box-shadow: 0 0 10px rgba(255,179,71,.5);
}
.book-glow {
  position: absolute; inset: -18%;
  background: radial-gradient(circle, rgba(166,255,61,.4), transparent 60%);
  opacity: 0; transition: opacity .4s; border-radius: 50%;
}
.book:hover .book-glow, .book.opening .book-glow { opacity: 1; }
.book-result { text-align: center; min-height: 4.4rem; max-width: 520px; }
.book-result-rarity { font-size: .8rem; letter-spacing: .3em; font-weight: 700; min-height: 1.2em; }
.book-result-rarity.r-common    { color: var(--bone-dim); }
.book-result-rarity.r-rare      { color: var(--glow); text-shadow: 0 0 10px var(--glow); }
.book-result-rarity.r-cursed    { color: var(--amber); text-shadow: 0 0 10px var(--amber); }
.book-result-rarity.r-forbidden { color: var(--red);  text-shadow: 0 0 12px var(--red); }
.book-result-text { margin-top: .4rem; font-size: 1.1rem; color: var(--bone); }
.book-result.flip .book-result-text { animation: pageFlip .6s ease; }
@keyframes pageFlip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: rotateX(0); opacity: 1; } }
.book-counter { font-size: .9rem; color: var(--bone-dim); }
.book-count { color: var(--glow); font-weight: 700; }
.book-log {
  list-style: none; width: min(520px, 100%); margin-top: .4rem;
  display: grid; gap: .45rem;
}
.book-log:empty { display: none; }
.book-log li {
  display: flex; align-items: baseline; gap: .6rem;
  font-size: .88rem; color: var(--bone-dim);
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: 10px; padding: .5rem .9rem;
  animation: logIn .45s cubic-bezier(.16,1,.3,1);
}
@keyframes logIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.book-log .log-tier { font-size: .68rem; letter-spacing: .22em; font-weight: 700; flex-shrink: 0; }
.book-log .log-tier.r-common { color: var(--bone-dim); }
.book-log .log-tier.r-rare { color: var(--glow); }
.book-log .log-tier.r-cursed { color: var(--amber); }
.book-log .log-tier.r-forbidden { color: var(--red); }

/* rune confetti burst */
.burst-rune {
  position: fixed; z-index: 70; pointer-events: none;
  color: var(--rune); text-shadow: 0 0 10px var(--glow); font-size: 1.4rem;
  animation: burstFly .9s cubic-bezier(.17,.67,.4,1) forwards;
}
@keyframes burstFly {
  from { transform: translate(0,0) rotate(0) scale(1); opacity: 1; }
  to   { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.stat-card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 16px;
  padding: 1.8rem 1.4rem; text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .2s;
  will-change: transform;
}
.stat-card:hover { border-color: var(--glow); box-shadow: 0 0 24px rgba(166,255,61,.2); }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--glow); text-shadow: 0 0 16px rgba(166,255,61,.5); }
.stat-label { margin-top: .5rem; font-weight: 700; }
.stat-note { margin-top: .35rem; font-size: .85rem; color: var(--bone-dim); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; counter-reset: step; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--edge);
  border-radius: 16px; padding: 2.2rem 1.4rem 1.6rem; transition: border-color .3s, transform .3s;
}
.step:hover { border-color: var(--glow); transform: translateY(-6px); }
.step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--glow); color: #06210a; font-family: var(--font-display);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 0 14px rgba(166,255,61,.6);
}
.step-ico { width: 42px; height: 42px; margin: 0 auto .9rem; filter: invert(88%) sepia(35%) saturate(1900%) hue-rotate(35deg) brightness(105%); }
.step h3 { text-align: center; margin-bottom: .5rem; color: var(--bone); }
.step p { font-size: .92rem; color: var(--bone-dim); text-align: center; }

/* ---------- Chapters / roadmap ---------- */
.chapters { position: relative; max-width: 720px; margin: 3rem auto 0; padding-left: 2.2rem; }
.chapter-line {
  position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px;
  background: var(--edge); border-radius: 2px; overflow: hidden;
}
.chapter-line span {
  display: block; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--glow-dim), var(--glow));
  box-shadow: 0 0 10px var(--glow); transition: height .25s linear;
}
.chapter { margin-bottom: 2.4rem; position: relative; }
.chapter::before {
  content: ''; position: absolute; left: -2.2rem; top: .4rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--glow);
  box-shadow: 0 0 10px rgba(166,255,61,.6);
  margin-left: 2px;
}
.chapter h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.chapter-mark { font-family: var(--font-display); color: var(--glow); margin-right: .5rem; letter-spacing: .06em; }
.chapter p { color: var(--bone-dim); }
.prophecy-note { text-align: center; margin-top: 2.5rem; font-style: italic; color: var(--amber); }

/* ---------- CTA / footer ---------- */
.section-cta { padding-bottom: 4rem; }
.cta-card {
  text-align: center; background: var(--panel); border: 1px solid var(--edge);
  border-radius: 24px; padding: 3.4rem 2rem;
  background-image: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(166,255,61,.1), transparent);
}
.cta-logo { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1.2rem; box-shadow: 0 0 24px rgba(166,255,61,.5); }
.cta-card h2 { font-family: var(--font-display); font-size: 2.4rem; margin-bottom: .6rem; }
.cta-card p { color: var(--bone-dim); margin-bottom: 1.6rem; }
.footer { border-top: 1px solid var(--edge); padding: 2.5rem 1.5rem 3rem; text-align: center; background: var(--page); }
.footer-links { display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 1.4rem; }
.footer-links img { width: 26px; height: 26px; opacity: .65; transition: opacity .25s, transform .25s; filter: invert(88%) sepia(35%) saturate(1900%) hue-rotate(35deg) brightness(105%); }
.footer-links a:hover img { opacity: 1; transform: translateY(-3px); }
.footer-disclaimer { max-width: 640px; margin: 0 auto .8rem; font-size: .8rem; color: var(--bone-dim); }
.footer-copy { font-size: .8rem; color: #5b6455; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translate(-50%, 150%);
  background: var(--glow); color: #06210a; font-weight: 700;
  padding: .8rem 1.4rem; border-radius: 12px; z-index: 90;
  box-shadow: 0 0 24px rgba(166,255,61,.6);
  transition: transform .4s cubic-bezier(.22,1.4,.36,1);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) .rune,
  html:not(.motion-force) .marquee-track,
  html:not(.motion-force) .hero-mascot,
  html:not(.motion-force) .hero-mascot-halo,
  html:not(.motion-force) .grain,
  html:not(.motion-force) .preloader-book,
  html:not(.motion-force) .hero-title-glow { animation: none !important; }
  html:not(.motion-force) .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html:not(.motion-force) .enter { opacity: 1 !important; animation: none !important; }
  html:not(.motion-force) .bleed::after { display: none; }
  html:not(.motion-force) { scroll-behavior: auto; }
}
html.shot-mode .enter { opacity: 1 !important; animation: none !important; }
html.motion-off .rune, html.motion-off .marquee-track, html.motion-off .grain { animation: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .lore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: .8rem; }
  .nav-links {
    position: fixed; top: 58px; right: 0; left: 0;
    background: var(--ink); border-bottom: 1px solid var(--edge);
    flex-direction: column; padding: 1.2rem 1.6rem; gap: 1rem;
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-buy { margin-left: auto; padding: .55rem .9rem; font-size: .85rem; }
  .burger { display: block; }
  .stats-grid, .steps { grid-template-columns: 1fr; }
  .step { padding-top: 2.4rem; }
  .hero { padding-top: 6rem; }
  .section { padding: 4rem 1.2rem; }
  .marquee-track { font-size: 1rem; }
}
