:root {
  --bg: #050708;
  --bg-2: #080c0a;
  --panel: #090e0b;
  --panel-2: #0d1410;
  --ink: #f0f1e9;
  --muted: #a2aaa3;
  --green: #84f451;
  --green-2: #b5ff76;
  --green-dark: #21481f;
  --line: #313b36;
  --line-green: #4c8b35;
  --gold: #dca83b;
  --blue: #64a9ff;
  --purple: #b765e8;
  --orange: #e78b29;
  --red: #de4d5c;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 10%, rgba(74, 142, 49, .12), transparent 30%),
    linear-gradient(180deg, #050708 0%, #070b09 55%, #040606 100%);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.top-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(65, 117, 45, .06), transparent 78%);
}

.page-width { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 74px;
  border-bottom: 1px solid #252c28;
  background: rgba(4, 6, 6, .92);
  backdrop-filter: blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.header-brand img { width: 34px; height: 54px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(132, 244, 81, .62)); animation: brandLeafGlow 2.6s steps(4, end) infinite; }
@keyframes brandLeafGlow { 50% { filter: drop-shadow(0 0 16px rgba(132, 244, 81, .8)); transform: translateY(-1px); } }
.header-brand > span { font-family: var(--pixel); font-size: 13px; letter-spacing: -1px; }
.header-brand b { color: var(--green); font-weight: inherit; }
.header-brand small { margin-left: 7px; color: var(--green); font-family: var(--mono); font-size: 9px; vertical-align: top; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 40px); }
.desktop-nav a { position: relative; color: #d7d9d2; font-family: var(--pixel); font-size: 8px; text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--green); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.x-link { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #303733; text-decoration: none; font-size: 20px; transition: border-color .2s, color .2s, transform .2s; }
.x-link:hover { color: var(--green); border-color: var(--green); transform: translateY(-2px); }

.pixel-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #a2ff73;
  border-radius: 0;
  padding: 16px 22px;
  color: #081006;
  background: linear-gradient(180deg, #a6ff73, #69d83e);
  box-shadow: 4px 4px 0 #173619, inset 0 0 0 2px rgba(255,255,255,.12);
  font: 400 9px/1.25 var(--pixel);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.pixel-button:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #173619; filter: brightness(1.08); }
.pixel-button:focus-visible, .secondary-button:focus-visible, .icon-button:focus-visible, .modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pixel-button:disabled { color: #778078; border-color: #3b433d; background: #222725; box-shadow: 3px 3px 0 #0b0e0c; cursor: not-allowed; }
.pixel-button.small { min-height: 38px; padding: 10px 13px; font-size: 7px; box-shadow: 3px 3px 0 #173619; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .84fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  min-height: 660px;
  padding-block: 64px 72px;
}
.hero-copy { min-width: 0; position: relative; z-index: 2; }
.micro-label, .section-label { margin: 0 0 17px; color: var(--green); font-family: var(--pixel); font-size: 8px; letter-spacing: .05em; line-height: 1.6; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s steps(2, end) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-title { margin: 0; font: 400 clamp(45px, 5.9vw, 79px)/1.02 var(--pixel); letter-spacing: -4px; text-shadow: 7px 7px 0 #101612; }
.hero-title > span { color: var(--green); text-shadow: 5px 5px 0 #18371b, 0 0 24px rgba(132, 244, 81, .12); }
.hero-title sup { margin-left: 9px; color: var(--green); font: 400 12px var(--pixel); letter-spacing: 0; vertical-align: top; }
.hero-rule { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: 350px; margin: 17px 0 14px; color: var(--green); }
.hero-rule i { height: 1px; background: linear-gradient(90deg, transparent, var(--green)); }
.hero-rule i:last-child { background: linear-gradient(90deg, var(--green), transparent); }
.hero-rule b { font-size: 8px; }
.hero-kicker { margin: 0 0 25px; color: #e9eae4; font-family: var(--pixel); font-size: clamp(10px, 1.1vw, 13px); line-height: 1.7; text-align: center; max-width: 360px; }
.hero-kicker strong { color: var(--green); font-weight: inherit; }
.hero-description { max-width: 485px; margin: 0 0 26px; color: #bcc2bc; font-size: 14px; line-height: 1.75; }
.hero-facts { display: grid; gap: 13px; margin-bottom: 27px; }
.hero-fact { display: flex; align-items: center; gap: 14px; }
.fact-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid var(--green); color: var(--green); background: rgba(48, 93, 35, .1); font-size: 21px; box-shadow: inset 0 0 14px rgba(132, 244, 81, .06); }
.hero-fact p { margin: 0; }
.hero-fact b, .hero-fact small { display: block; }
.hero-fact b { margin-bottom: 4px; font-size: 14px; }
.hero-fact small { color: #c0c6c0; font-size: 10px; letter-spacing: .04em; }
.hero-cta-row { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.hero-cta { min-width: 215px; }
.text-link { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--green-2); text-decoration: underline; text-underline-offset: 5px; }
.text-link.disabled { opacity: .38; pointer-events: none; }

.hero-art { position: relative; min-width: 0; transform-style: preserve-3d; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 8% 10% 5%; z-index: -2; background: radial-gradient(circle at 51% 38%, rgba(126, 255, 81, .24), transparent 34%), #050706; filter: blur(26px); opacity: .65; }
.hero-art::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border: 1px solid rgba(90, 109, 98, .42); box-shadow: inset 0 0 45px rgba(0,0,0,.55), 0 18px 45px rgba(0,0,0,.28); }
.hero-art img { display: block; width: 100%; height: auto; min-height: 390px; object-fit: contain; image-rendering: pixelated; transform: translateZ(0); transition: transform .2s ease-out; }
.hero-art canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-art-glow { position: absolute; left: 42%; top: 18%; width: 22%; aspect-ratio: 1; z-index: 2; border-radius: 50%; background: rgba(103, 255, 73, .17); filter: blur(22px); animation: portalGlow 2.4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes portalGlow { to { transform: scale(1.22); opacity: .7; } }
.hero-art-badge { position: absolute; right: 13px; top: 13px; z-index: 6; display: grid; gap: 4px; padding: 9px 11px; border: 1px solid #4b5b50; background: rgba(4, 8, 6, .86); text-align: right; }
.hero-art-badge span { color: #88928a; font-size: 8px; }
.hero-art-badge b { color: var(--green); font-family: var(--pixel); font-size: 7px; }

.pixel-panel { position: relative; border: 1px solid var(--line-green); background: linear-gradient(135deg, rgba(22, 43, 25, .72), rgba(5, 8, 7, .97) 46%, rgba(8, 13, 10, .98)); box-shadow: inset 0 0 0 1px rgba(130, 244, 81, .05), 0 20px 55px rgba(0,0,0,.24); }
.corner { position: absolute; width: 13px; height: 13px; border-color: var(--green); z-index: 2; pointer-events: none; }
.corner-tl { left: -1px; top: -1px; border-left: 3px solid; border-top: 3px solid; }
.corner-tr { right: -1px; top: -1px; border-right: 3px solid; border-top: 3px solid; }
.corner-bl { left: -1px; bottom: -1px; border-left: 3px solid; border-bottom: 3px solid; }
.corner-br { right: -1px; bottom: -1px; border-right: 3px solid; border-bottom: 3px solid; }

.mint-section { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr); gap: clamp(32px, 5vw, 68px); padding: clamp(27px, 4vw, 48px); }
.mint-copy { min-width: 0; }
.mint-copy h2, .section-block h2, .adventure-copy h2, .faq-heading h2, .contract-panel h2 { margin: 0; font: 400 clamp(25px, 3.2vw, 43px)/1.25 var(--pixel); letter-spacing: -2px; }
.mint-copy h2 span, .adventure-copy h2 span, .system-heading h2 span, .faq-heading h2 span, .contract-panel h2 span { color: var(--green); }
.mint-subtitle { margin: 13px 0 20px; color: #d8ddd7; font-size: 12px; letter-spacing: .05em; }
.launch-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.launch-term { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 74px; padding: 11px 12px; overflow: hidden; border: 1px solid #35463a; background: linear-gradient(135deg, rgba(38, 79, 35, .2), rgba(5, 9, 7, .92)); }
.launch-term::after { content: ""; position: absolute; inset: auto -15% -55% 28%; height: 70%; background: radial-gradient(circle, rgba(132,244,81,.12), transparent 65%); pointer-events: none; }
.launch-term img { position: relative; z-index: 1; flex: 0 0 27px; width: 27px; height: 43px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 9px rgba(132,244,81,.55)); }
.term-rune { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--green); border-radius: 50%; color: #081006; background: var(--green); box-shadow: 0 0 16px rgba(132,244,81,.18); font: 400 11px/1 var(--pixel); }
.launch-term p { position: relative; z-index: 1; min-width: 0; margin: 0; }
.launch-term span, .launch-term b, .launch-term small { display: block; }
.launch-term p > span { margin-bottom: 4px; color: #8f9a91; font-size: 7px; letter-spacing: .07em; }
.launch-term b { overflow: hidden; color: #edf1e8; font-family: var(--pixel); font-size: 7px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.launch-term small { margin-top: 5px; color: var(--green); font-size: 8px; line-height: 1.35; }
.reveal-term.unlocked { border-color: var(--green); box-shadow: inset 0 0 22px rgba(132,244,81,.06); }
.reveal-term.revealed small { color: #e7ffda; }
.mint-readout { border-top: 1px solid #2f3933; }
.mint-readout > div { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 12px 0; border-bottom: 1px solid #2f3933; font-size: 12px; }
.mint-readout span { color: #a5ada6; }
.mint-readout b { font-weight: 600; }
.progress-copy { display: flex; justify-content: space-between; gap: 15px; margin: 20px 0 8px; color: #afb7b0; font-size: 10px; }
.progress-copy span:first-child { color: var(--green); }
.progress-track { height: 13px; padding: 2px; border: 1px solid #39463e; background: #030504; }
.progress-track > div { width: 0; height: 100%; background: repeating-linear-gradient(90deg, #7ee34e 0 18px, #9cff6a 18px 21px); box-shadow: 0 0 14px rgba(132, 244, 81, .26); transition: width .5s ease; }
.mint-status-line { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; margin: 20px 0 18px; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 5px 8px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--pixel); font-size: 7px; white-space: nowrap; }
.status-pill.open { border-color: var(--green); color: var(--green); box-shadow: 0 0 12px rgba(132,244,81,.14); }
.status-pill.sold { border-color: var(--red); color: #ff7280; }
.mint-status-line p { margin: 0; color: #aab2ab; font-size: 11px; line-height: 1.55; }
.mint-button { width: 100%; min-height: 58px; }
.tx-link { display: block; margin-top: 14px; color: var(--green); font-size: 10px; text-align: center; text-decoration: none; }

.summon-card { align-self: stretch; min-width: 0; padding: 12px; border: 1px solid #38523d; background: rgba(4, 8, 6, .86); box-shadow: 9px 9px 0 rgba(0,0,0,.33); }
.summon-topline { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 4px 9px; color: var(--green); font-family: var(--pixel); font-size: 7px; }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #3c4d42; color: var(--green); background: #080d0a; font-size: 20px; cursor: pointer; transition: transform .2s, border-color .2s; }
.icon-button:hover { transform: rotate(90deg); border-color: var(--green); }
.preview-frame { position: relative; overflow: hidden; aspect-ratio: 1; background: #070a08; }
.preview-frame img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: opacity .22s ease, transform .35s ease; }
.preview-frame.changing img { opacity: 0; transform: scale(.97); }
.preview-aura { position: absolute; inset: 16%; z-index: 2; border: 1px solid rgba(132,244,81,.18); box-shadow: 0 0 40px rgba(132,244,81,.11), inset 0 0 38px rgba(132,244,81,.08); pointer-events: none; animation: previewPulse 2.1s steps(5, end) infinite; }
@keyframes previewPulse { 50% { transform: scale(1.04); opacity: .45; } }
.scanlines { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.10) 5px 6px); }
.preview-info { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 14px 5px 6px; }
.preview-info div { min-width: 0; }
.preview-info span, .preview-info b { display: block; }
.preview-info span { margin-bottom: 6px; color: var(--green); font-family: var(--pixel); font-size: 7px; }
.preview-info b { font-size: 12px; }
.preview-info p { margin: 0; max-width: 48%; color: #9ba49d; font-size: 9px; text-align: right; }
.preview-note { margin: 7px 5px 4px; color: #737d75; font-size: 9px; line-height: 1.55; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border: 1px solid #303934; background: #070a08; }
.stat-strip > div { display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 16px 22px; border-right: 1px solid #303934; }
.stat-strip > div:last-child { border-right: 0; }
.stat-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; color: #10170c; background: var(--green); font-family: var(--pixel); font-size: 12px; }
.stat-strip p { margin: 0; min-width: 0; }
.stat-strip b, .stat-strip small { display: block; }
.stat-strip b { overflow: hidden; color: #e4e7df; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.stat-strip small { margin-top: 3px; color: #929b94; font-size: 8px; }

.ticker { overflow: hidden; margin-top: 48px; border-block: 1px solid #446533; color: #071006; background: var(--green); font: 400 8px/1 var(--pixel); white-space: nowrap; }
.ticker div { width: max-content; padding: 12px 0; animation: ticker 25s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-block { padding-block: 105px; }
.section-title-row { display: grid; grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr); gap: 20px; align-items: center; margin-bottom: 21px; }
.section-title-row h2 { font-size: clamp(17px, 2.15vw, 27px); letter-spacing: -1px; text-align: center; }
.title-wing { display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; align-items: center; color: var(--green); }
.title-wing i { height: 1px; background: linear-gradient(90deg, transparent, var(--green)); }
.title-wing i:last-child { background: linear-gradient(90deg, var(--green), transparent); }
.title-wing b { font-size: 7px; }
.section-intro { max-width: 740px; margin: 0 auto 34px; color: #a6aea7; font-size: 13px; line-height: 1.7; text-align: center; }
.rarity-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rarity-card { min-width: 0; border: 1px solid var(--rarity-color); background: #080b09; transition: transform .18s, box-shadow .18s; }
.rarity-card:hover { transform: translateY(-7px); box-shadow: 0 13px 30px rgba(0,0,0,.32), 0 0 17px color-mix(in srgb, var(--rarity-color), transparent 70%); }
.rarity-image { position: relative; display: grid; place-items: end center; overflow: hidden; aspect-ratio: .88; padding: 11px 7px 0; background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--rarity-color), transparent 78%), transparent 50%), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px), #070a08; }
.rarity-image::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6px; height: 1px; background: var(--rarity-color); box-shadow: 0 0 16px var(--rarity-color); opacity: .65; }
.rarity-image img { position: relative; z-index: 1; display: block; width: auto; max-width: 100%; height: 91%; object-fit: contain; object-position: center bottom; image-rendering: pixelated; filter: drop-shadow(0 8px 5px rgba(0,0,0,.7)); transform: none; }
.rarity-card > div:last-child { display: grid; gap: 5px; padding: 11px 8px 12px; border-top: 1px solid var(--rarity-color); background: color-mix(in srgb, var(--rarity-color), #090b0a 83%); text-align: center; }
.rarity-card b { color: var(--rarity-color); font-family: var(--pixel); font-size: 7px; }
.rarity-card span { color: #b8beb8; font-size: 8px; }
.rarity-card.common { --rarity-color: #9aa09b; }
.rarity-card.uncommon { --rarity-color: #7ada4d; }
.rarity-card.rare { --rarity-color: #58a1ff; }
.rarity-card.epic { --rarity-color: #b766e2; }
.rarity-card.legendary { --rarity-color: #e28b2c; }
.rarity-card.mythic { --rarity-color: #e45364; }

.adventure-panel { display: grid; grid-template-columns: 150px minmax(320px, .8fr) minmax(330px, 1fr); gap: 28px; align-items: center; overflow: hidden; min-height: 190px; padding: 26px 30px; }
.adventure-feather img { display: block; width: 132px; image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(132,244,81,.25)); animation: featherFloat 3.5s ease-in-out infinite; }
@keyframes featherFloat { 50% { transform: translateY(-7px); } }
.adventure-copy h2 { font-size: clamp(19px, 2.4vw, 30px); }
.adventure-copy p:not(.section-label) { max-width: 540px; margin: 14px 0; color: #b2bab3; font-size: 12px; line-height: 1.65; }
.adventure-art { align-self: stretch; min-width: 0; }
.adventure-art img { display: block; width: 100%; height: 100%; min-height: 145px; object-fit: cover; object-position: center; image-rendering: pixelated; mask-image: linear-gradient(90deg, transparent, #000 15%); }

.system-heading, .faq-heading { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(300px, .7fr); gap: 70px; align-items: end; margin-bottom: 48px; }
.system-heading h2 { font-size: clamp(28px, 4.3vw, 55px); }
.system-heading > p, .faq-heading > p { margin: 0; color: #aab2ab; font-size: 13px; line-height: 1.8; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #303a34; border-left: 1px solid #303a34; }
.system-grid article { min-height: 175px; padding: 23px; border-right: 1px solid #303a34; border-bottom: 1px solid #303a34; background: rgba(8, 12, 10, .55); }
.system-grid article > span { color: var(--green); font-family: var(--pixel); font-size: 8px; }
.system-grid article > b { display: block; margin-top: 39px; font-family: var(--pixel); font-size: 9px; }
.system-grid article > p { margin: 10px 0 0; color: #8f9991; font-size: 11px; }
.system-grid .system-accent { color: #071006; background: var(--green); }
.system-grid .system-accent > span, .system-grid .system-accent > p { color: #0d1d0c; }

.section-title-row.compact { margin-bottom: 37px; }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #303a34; }
.flow-grid article { min-height: 215px; padding: 26px; border-right: 1px solid #303a34; background: linear-gradient(180deg, rgba(17, 28, 20, .45), rgba(6, 9, 7, .4)); }
.flow-grid article:last-child { border-right: 0; }
.flow-grid span { color: var(--green); font-family: var(--pixel); font-size: 9px; }
.flow-grid b { display: block; margin-top: 48px; font-family: var(--pixel); font-size: 10px; }
.flow-grid p { margin: 15px 0 0; color: #929c94; font-size: 11px; line-height: 1.65; }

.faq-section { padding-top: 80px; }
.faq-heading h2 { font-size: clamp(29px, 4.3vw, 54px); }
.faq-list { border-top: 1px solid #303a34; }
.faq-list details { border-bottom: 1px solid #303a34; background: rgba(8, 12, 10, .38); }
.faq-list summary { position: relative; padding: 25px 54px 25px 4px; color: #ebeee7; font-family: var(--pixel); font-size: 9px; line-height: 1.55; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 18px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #405047; color: var(--green); font: 400 18px/1 var(--mono); }
.faq-list details[open] summary::after { content: "−"; border-color: var(--green); }
.faq-list details p { max-width: 850px; margin: 0; padding: 0 55px 26px 4px; color: #9ea8a0; font-size: 12px; line-height: 1.75; }
.faq-list details p a { color: var(--green); }

.contract-panel { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1fr); gap: 70px; margin-bottom: 100px; padding: clamp(30px, 5vw, 56px); }
.contract-panel h2 { font-size: clamp(26px, 3.6vw, 45px); }
.contract-details > p { margin-top: 0; color: #aab3ab; font-size: 12px; line-height: 1.75; }
.contract-details code { font-family: var(--mono); }
.contract-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 22px; padding: 14px 0; border-bottom: 1px solid #303a34; font-size: 11px; }
.contract-row span { color: #869087; }
.contract-row code { overflow: hidden; color: var(--green); text-overflow: ellipsis; white-space: nowrap; }
.contract-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.secondary-button { min-height: 39px; padding: 9px 13px; border: 1px solid #3b4a41; color: #b5beb6; background: transparent; font: 600 9px var(--mono); cursor: pointer; }
.secondary-button:not(:disabled):hover { color: var(--green); border-color: var(--green); }
.secondary-button:disabled { opacity: .35; cursor: not-allowed; }

.site-footer { border-top: 1px solid #29312d; background: #040606; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 112px; }
.footer-inner > div { display: grid; gap: 6px; }
.footer-inner b { font-family: var(--pixel); font-size: 8px; }
.footer-inner span { color: #788179; font-size: 8px; }
.footer-inner img { image-rendering: pixelated; opacity: .75; }
.footer-inner > a { justify-self: end; color: #b6bdb7; font-size: 10px; text-decoration: none; }
.footer-inner > a:hover { color: var(--green); }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 2; width: min(500px, 100%); padding: 34px; text-align: center; }
.modal-close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 34px; height: 34px; padding: 0; border: 1px solid #3d4b42; color: #c2c8c2; background: #080c09; font: 24px/1 var(--mono); cursor: pointer; }
.modal-close:hover { color: var(--green); border-color: var(--green); }
.portal-loader { position: relative; width: 190px; aspect-ratio: 1; margin: 0 auto 20px; }
.portal-loader i { position: absolute; inset: 13%; border: 1px solid rgba(132,244,81,.45); border-radius: 50%; animation: ring 3s linear infinite; }
.portal-loader i:nth-child(2) { inset: 5%; border-style: dashed; animation-direction: reverse; animation-duration: 5s; }
.portal-loader i:nth-child(3) { inset: 22%; border-color: rgba(181,255,118,.75); animation-duration: 2.2s; }
@keyframes ring { to { transform: rotate(360deg); } }
.portal-loader img { position: absolute; inset: 25%; width: 50%; height: 50%; object-fit: cover; image-rendering: pixelated; box-shadow: 0 0 25px rgba(132,244,81,.3); }
.modal-card h2 { margin: 0; font: 400 25px/1.35 var(--pixel); }
.modal-card h2 span { color: var(--green); }
.modal-card > p:not(.section-label) { margin: 18px auto 10px; max-width: 390px; color: #aeb6af; font-size: 12px; line-height: 1.7; }
.modal-action { width: 100%; margin-top: 22px; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: minmax(320px, .75fr) minmax(0, 1fr); gap: 25px; }
  .hero-title { font-size: clamp(42px, 6.4vw, 68px); }
  .rarity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rarity-image { aspect-ratio: 1; }
  .adventure-panel { grid-template-columns: 110px minmax(300px, 1fr); }
  .adventure-art { grid-column: 1 / -1; height: 150px; }
  .adventure-art img { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
}

@media (max-width: 820px) {
  .page-width { width: min(100% - 24px, 1220px); }
  .site-header { height: 66px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 45px 55px; }
  .hero-copy { max-width: 650px; }
  .hero-kicker { text-align: left; }
  .hero-art { width: 100%; max-width: 720px; margin-inline: auto; }
  .hero-art img { min-height: 0; }
  .mint-section { grid-template-columns: 1fr; }
  .launch-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summon-card { width: min(100%, 520px); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid #303934; }
  .system-heading, .faq-heading { grid-template-columns: 1fr; gap: 30px; }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid article:nth-child(2) { border-right: 0; }
  .flow-grid article:nth-child(-n+2) { border-bottom: 1px solid #303a34; }
  .contract-panel { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .header-brand > span { font-size: 10px; }
  .header-brand small { display: none; }
  .x-link { width: 31px; height: 31px; }
  .pixel-button.small { padding-inline: 10px; }
  .hero { padding-top: 35px; }
  .hero-title { font-size: 42px; letter-spacing: -3px; }
  .hero-description { font-size: 13px; }
  .hero-cta-row { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-cta { width: 100%; }
  .text-link { text-align: center; }
  .hero-art-badge { right: 7px; top: 7px; }
  .mint-section { padding: 22px 17px; }
  .launch-terms { grid-template-columns: 1fr; }
  .launch-term { min-height: 68px; }
  .mint-copy h2, .adventure-copy h2, .section-block h2, .contract-panel h2 { letter-spacing: -1px; }
  .mint-status-line { grid-template-columns: 1fr; }
  .preview-info { align-items: flex-start; flex-direction: column; }
  .preview-info p { max-width: none; text-align: left; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div { min-height: 72px; border-right: 0; border-bottom: 1px solid #303934; }
  .stat-strip > div:last-child { border-bottom: 0; }
  .ticker { margin-top: 32px; }
  .section-block { padding-block: 75px; }
  .section-title-row { grid-template-columns: 1fr; }
  .title-wing { display: none; }
  .rarity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rarity-card b { font-size: 6px; }
  .adventure-panel { grid-template-columns: 1fr; padding: 22px; }
  .adventure-feather { display: none; }
  .adventure-art { grid-column: auto; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid article { min-height: 145px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid article { min-height: 170px; border-right: 0; border-bottom: 1px solid #303a34; }
  .flow-grid article:last-child { border-bottom: 0; }
  .flow-grid b { margin-top: 35px; }
  .faq-list summary { font-size: 8px; }
  .contract-panel { margin-bottom: 70px; padding: 27px 20px; }
  .contract-row { grid-template-columns: 1fr; gap: 5px; }
  .contract-actions { align-items: stretch; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr auto; padding-block: 25px; }
  .footer-inner > a { grid-column: 1 / -1; justify-self: start; }
  .modal-card { padding: 30px 20px 24px; }
  .portal-loader { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
