/* Bulls On Elysium — editorial theme */

:root {
  --background: #ffffff;
  --ink: #000000;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --surface: #f6f6f4;
  --blue: #77B5FE;
  --navy: #10244D;
  --mint: #2FBF71;
  --hay: #F5C451;
  --font-display: "Instrument Serif", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, monospace;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #000000; color: #ffffff; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background-color: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; }
a { color: inherit; }
b { font-weight: 600; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }

/* ---------- type ---------- */
.headline, .title, .subtitle, .logo { font-family: var(--font-display); font-weight: 400; }
.headline em, .title em, .subtitle em { font-style: italic; color: var(--muted); }
.headline {
  font-size: clamp(48px, 8vw, 104px); line-height: .95; letter-spacing: -2.46px;
  max-width: 1100px;
}
.headline.small { font-size: clamp(44px, 6vw, 80px); }
.title { font-size: clamp(42px, 5.6vw, 76px); line-height: .98; letter-spacing: -1.6px; }
.subtitle { font-size: 34px; line-height: 1; letter-spacing: -.5px; }
.intro { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 560px; margin-top: 20px; }
.micro { font-family: var(--font-pixel); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- header: floating glass pill ---------- */
.header { position: sticky; top: 0; z-index: 30; padding: 14px 20px 0; }
.nav {
  max-width: 1180px; margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 20px;
  padding: 0 8px 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled .nav { background: rgba(255, 255, 255, .88); box-shadow: 0 12px 32px -14px rgba(16, 36, 77, .28); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 25px; letter-spacing: -.3px; line-height: 1; white-space: nowrap; }
.logo { font-family: var(--font-display); font-size: 28px; letter-spacing: -.5px; text-decoration: none; white-space: nowrap; }
.logo sup { font-size: .45em; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto; }
.menu a {
  display: block; text-decoration: none; font-size: 14.5px; font-weight: 500; letter-spacing: -.1px; color: #3b3b3b;
  padding: 9px 15px; border-radius: 999px; transition: color .2s, background .2s;
}
.menu a:hover { color: #000000; background: rgba(0, 0, 0, .05); }
.menu a.is-active { color: #000000; background: rgba(0, 0, 0, .06); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #000000; text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .1); background: #ffffff; transition: transform .3s ease-out, border-color .2s;
}
.icon-btn:hover { transform: scale(1.06); border-color: #000000; }
.nav-cta { height: 46px; padding: 0 22px; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: #ffffff; background: #000000;
  border: 0; border-radius: 999px; padding: 14px 30px; transition: transform .3s ease-out, opacity .2s;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-lg { padding: 20px 56px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-light { background: #ffffff; color: #000000; }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.link-arrow { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; }
.link-arrow:hover { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; font-family: var(--font-pixel); font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff; color: var(--ink); white-space: nowrap;
}
.chip.is-dark, .chip-dark { background: #000000; border-color: #000000; color: #ffffff; }
.chip.is-legend { background: var(--hay); border-color: var(--hay); }

/* ---------- hero stage + looping film ---------- */
.hero-stage { position: relative; min-height: 100vh; overflow: hidden; margin-top: -76px; padding-top: 76px; }
.video-bg { position: absolute; inset: 0; z-index: 0; }
/* the film is a band anchored under the hero copy; the veil dissolves its top and bottom edges into the page */
.hero-stage { --film: 540px; }
.video-bg video { position: absolute; inset: auto 0 0 0; width: 100%; height: var(--film); object-fit: cover; object-position: center bottom; opacity: 0; will-change: opacity; image-rendering: pixelated; }
.veil { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--background) 0, var(--background) calc(100% - var(--film)), transparent calc(100% - var(--film) + 150px), transparent calc(100% - 70px), var(--background) 100%); }
.hero { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(8rem - 75px) 24px calc(var(--film) - 40px); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 36px;
}
.pill:hover { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(47, 191, 113, .2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } }
.hero-text { margin-top: 32px; max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-actions { margin-top: 48px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }

/* ---------- entrance choreography ---------- */
@keyframes fade-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-rise { animation: fade-rise .8s ease-out both; }
.animate-fade-rise-delay { animation: fade-rise .8s ease-out .2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise .8s ease-out .4s both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 0; position: relative; z-index: 2; background: var(--background); }
.stats div { padding: 26px 0 26px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -1px; }

/* ---------- sections ---------- */
.section { padding-top: 140px; padding-bottom: 20px; }
.section-head { margin-bottom: 56px; }
.dark-band { background: #000000; color: #ffffff; margin-top: 140px; padding-bottom: 140px; }
.dark-band .section { padding-top: 120px; }
.dark-band .title em, .dark-band .subtitle em { color: #8a8a8a; }
.dark-band .intro, .dark-band .micro { color: #9a9a9a; }
.surface { background: #ffffff; border: 1px solid var(--line); border-radius: 24px; }

/* ---------- quests ---------- */
.quest-layout { display: grid; grid-template-columns: .9fr 1.5fr; gap: 64px; align-items: start; }
.quest-aside { position: sticky; top: 110px; }
.ring-card { margin-top: 40px; display: flex; gap: 26px; align-items: center; padding: 26px; border-radius: 26px; background: var(--surface); }
.ring { position: relative; width: 128px; height: 128px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: #e3e3df; }
.ring-fill { stroke: #000000; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring.is-full .ring-fill { stroke: var(--mint); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: .9; }
.ring-label span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ring-copy p { font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin: 6px 0 12px; }
.perks { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.perks li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; background: var(--navy); }

.quest-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 244px; padding: 26px;
  border-radius: 26px; border: 1px solid var(--line); background: #ffffff;
  transition: transform .4s ease-out, box-shadow .4s ease-out, background .4s, border-color .4s, color .4s;
}
.q-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(16, 36, 77, .35); }
.q-card.is-locked { background: #fbfbfa; }
.q-card.is-locked .q-title, .q-card.is-locked .q-icon, .q-card.is-locked .q-desc { opacity: .45; }
.q-card.is-done { background: #000000; border-color: #000000; color: #ffffff; }
.q-card.is-done .q-desc, .q-card.is-done .micro { color: #9a9a9a; }
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.q-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: #000000; }
.q-card.is-done .q-icon { background: #ffffff; }
.q-title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.02; letter-spacing: -.5px; }
.q-desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.q-foot { margin-top: auto; padding-top: 14px; }
.q-foot .btn { width: 100%; height: 50px; padding: 0 20px; font-size: 14.5px; }
.q-foot .btn-verify { background: #ffffff; color: #000000; box-shadow: inset 0 0 0 1.5px #000000; }
.q-foot .btn-wait, .q-foot .btn-wait[disabled] { background: var(--surface); color: var(--muted); opacity: 1; }
.q-done { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14.5px; font-weight: 500; }
.q-done i { width: 20px; height: 20px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-style: normal; font-size: 11px; color: #000000; }

.claim { margin-top: 16px; border-radius: 26px; padding: 26px 28px; background: var(--surface); }
.claim-state { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; }
.claim-state .subtitle { margin: 4px 0 6px; font-size: 32px; }
.claim-state p { font-size: 15px; }
.claim-art { width: 96px; height: 96px; border-radius: 20px; overflow: hidden; }
.claim-art svg { width: 100%; height: 100%; }
.claim-locked .claim-art { filter: grayscale(1); opacity: .4; }
.lock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px dashed #b5b5b5; border-radius: 999px; padding: 10px 18px; }
.claim-done { background: transparent; }
.claim-form-head .subtitle { margin: 4px 0 18px; font-size: 32px; }
.claim-fields { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 14px; align-items: end; }
.claim-fields label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.claim-fields .btn { height: 50px; }
.field { display: flex; height: 50px; border: 1px solid #d4d4d4; border-radius: 14px; background: #ffffff; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: #000000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); }
.field span { display: flex; align-items: center; padding-left: 16px; color: var(--muted); }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 0 16px; }
.prefix input { padding-left: 4px; }
.form-error { font-size: 13px; color: #c0262d; min-height: 18px; margin-top: 12px; }

/* ---------- utility ---------- */
.utility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.u-card { border: 1px solid #262626; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; background: #0b0b0b; }
.u-card p { font-size: 15px; color: #a3a3a3; line-height: 1.65; }
.u-card p b { color: #ffffff; font-weight: 500; }
.u-feature { background: var(--navy); border-color: var(--navy); }
.u-feature p { color: #c3d4f0; }
.u-num { font-family: var(--font-pixel); font-size: 10px; text-transform: uppercase; color: #8a8a8a; }
.u-feature .u-num { color: #9cc3ff; }
.hay-table { margin-top: auto; border-top: 1px solid #262626; }
.hay-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #1d1d1d; font-size: 14px; color: #cfcfcf; }
.hay-row b { color: var(--hay); font-weight: 500; }
.u-merge { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; gap: 10px; align-items: center; }
.u-merge > div, .u-ascend > div { aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.u-merge > span, .u-ascend > span { font-family: var(--font-display); font-size: 26px; color: #9cc3ff; }
.u-ascend { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.u-ascend > span { color: #8a8a8a; }
.u-stats { list-style: none; margin-top: auto; border-top: 1px solid #262626; }
.u-stats li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1d1d1d; font-size: 14px; color: #a3a3a3; }
.u-stats b { color: #ffffff; font-weight: 500; }
.u-merge svg, .u-ascend svg, .forge-art svg, .tile svg, .legend svg { width: 100%; height: 100%; }

/* ---------- mint funds ---------- */
.mint-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.mint-layout .section-head { margin-bottom: 0; }
.mint-price { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid #000000; }
.mint-price div { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mint-price b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.funds { border-radius: 28px; background: #000000; color: #ffffff; padding: 34px; }
.funds .micro { color: #9a9a9a; }
.funds-head { display: flex; flex-direction: column; gap: 4px; }
.funds-head b { font-family: var(--font-display); font-weight: 400; font-size: 84px; line-height: .9; letter-spacing: -2px; margin-top: 10px; }
.funds-sub { font-family: var(--font-display); font-style: italic; font-size: 26px; color: #9a9a9a; }
.funds-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin: 30px 0 26px; gap: 3px; }
.funds-bar span { height: 100%; }
.funds-list { list-style: none; }
.funds-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid #222222; }
.funds-list i { width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; }
.funds-list h4 { font-size: 15px; font-weight: 500; }
.funds-list p { font-size: 13.5px; color: #9a9a9a; line-height: 1.5; margin-top: 2px; }
.funds-list b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }

/* ---------- forge ---------- *//* ---------- forge ---------- */
.forge { display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 22px; align-items: center; }
.forge-slot { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.forge-slot .chip { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
.forge-art { width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface); }
.forge-art.result { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(16, 36, 77, .55); }
.forge-art.is-forging { animation: shake .45s steps(6); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translate(-4px, 2px); } 50% { transform: translate(4px, -2px); } 75% { transform: translate(-2px, -3px); } }
.forge-art.is-revealed svg { animation: reveal .7s steps(7); }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.forge-op { font-family: var(--font-display); font-size: 48px; color: var(--muted); }
.forge-pick { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.forge-pick span { color: var(--muted); }
.forge-pick input { width: 64px; border: 0; outline: none; font-family: var(--font-body); font-size: 15px; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.forge-pick input::-webkit-outer-spin-button, .forge-pick input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dice { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #000000; color: #ffffff; cursor: pointer; font-size: 16px; transition: transform .3s ease-out; }
.dice:hover { transform: rotate(180deg); }
.forge-table-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 56px; align-items: start; }
.forge-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.forge-table th { text-align: left; font-family: var(--font-pixel); font-size: 10px; font-weight: 400; text-transform: uppercase; color: var(--muted); padding: 12px 12px 12px 0; border-bottom: 1px solid #000000; }
.forge-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.forge-table td:first-child { font-family: var(--font-pixel); font-size: 10px; text-transform: uppercase; color: var(--muted); }
.forge-table td.kept { font-weight: 500; }
.forge-table td.lost { color: #b5b5b5; text-decoration: line-through; }
.forge-table .t-dark { display: inline-block; width: 7px; height: 7px; background: var(--navy); margin-left: 7px; vertical-align: 1px; }
.forge-side { display: flex; flex-direction: column; gap: 12px; }
.side-stat { background: var(--surface); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.side-stat b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.asc-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 4px 0; }
.asc-bar div { height: 100%; width: 0; background: var(--navy); transition: width .6s; }
.fine { font-size: 13px; color: var(--muted); }

/* ---------- herd ---------- */
.herd .section-head { margin-bottom: 48px; }
.marquee { display: flex; flex-direction: column; gap: 16px; overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 16px; width: max-content; animation: marquee 90s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile { position: relative; width: 176px; height: 176px; flex: none; border-radius: 20px; overflow: hidden; }
.tile .chip { position: absolute; left: 10px; bottom: 10px; font-size: 9px; padding: 3px 8px; }
.tiers { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.tier { padding: 22px 0 0 20px; border-left: 1px solid var(--line); }
.tier:first-child { border-left: 0; padding-left: 0; }
.tier b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; margin-top: 6px; }
.tier small { font-size: 13px; color: var(--muted); }
.tier.is-dark .micro::before { content: "■ "; color: var(--navy); }

/* ---------- legends ---------- */
.legend-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.legend .art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; transition: transform .4s ease-out; }
.legend:hover .art { transform: translateY(-6px); }
.legend h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-top: 12px; line-height: 1.1; }
.legend small { font-size: 13px; color: #8a8a8a; }
.legend-cta { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 18px; border: 1px dashed #3a3a3a; text-decoration: none; font-family: var(--font-display); font-style: italic; font-size: 22px; color: #9a9a9a; transition: color .2s, border-color .2s; }
.legend-cta:hover { color: #ffffff; border-color: #ffffff; }

/* ---------- roadmap ---------- */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 44px; border-top: 1px solid #000000; }
.roadmap li { padding: 24px 22px 0 0; position: relative; }
.roadmap li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #ffffff; border: 1px solid #000000; }
.roadmap li.is-live::before { background: var(--mint); border-color: var(--mint); }
.roadmap li.is-live .micro { color: var(--mint); }
.roadmap h4 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 12px 0 8px; }
.roadmap p { font-size: 15px; color: var(--muted); }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid #000000; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--font-display); font-size: 32px; font-weight: 400; transition: transform .3s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 640px; }

/* ---------- closing + footer ---------- */
.closing { display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; padding-top: 160px; padding-bottom: 60px; }
.footer { padding-top: 80px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid #000000; }
.footer-top .muted { margin-top: 10px; font-size: 15px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 48px; max-width: 920px; line-height: 1.6; }
.copy { font-size: 13px; margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { gap: 22px; }
  .utility-grid { grid-template-columns: 1fr 1fr; }
  .legend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .tiers { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .tier:nth-child(4) { border-left: 0; padding-left: 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .forge-table-wrap, .quest-layout, .mint-layout { grid-template-columns: 1fr; gap: 40px; }
  .quest-aside { position: static; }
  .forge { grid-template-columns: 1fr auto 1fr; }
  .forge-op:nth-of-type(2) { display: none; }
  .forge-result { grid-column: 1 / -1; max-width: 340px; width: 100%; margin: 12px auto 0; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #000000; cursor: pointer; align-items: center; }
  .menu-toggle span { width: 16px; height: 1.5px; background: #ffffff; }
  .nav-actions { margin-left: auto; }
  .menu { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 2px; margin: 0; background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .25); }
  .menu.open { display: flex; }
  .menu a { padding: 14px 16px; font-size: 17px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .header { padding: 10px 12px 0; }
  .nav { height: 58px; }
  .brand-name { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .nav-cta { display: none; }
  .hero-stage { margin-top: -68px; padding-top: 68px; }
  .hero-stage { --film: 380px; }
  .hero-text { font-size: 16px; }
  .headline { letter-spacing: -1.2px; }
  .btn-lg { padding: 18px 44px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(4) { border-top: 1px solid var(--line); }
  .stats b { font-size: 38px; }
  .stats div { padding: 20px 0 20px 18px; }
  .section { padding-top: 100px; }
  .dark-band { margin-top: 100px; padding-bottom: 100px; }
  .dark-band .section { padding-top: 90px; }
  .section-head { margin-bottom: 40px; }
  .quest-grid { grid-template-columns: 1fr; }
  .q-card { min-height: 0; padding: 22px; }
  .ring-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .claim { padding: 22px; }
  .claim-state { grid-template-columns: 72px 1fr; }
  .claim-art { width: 72px; height: 72px; }
  .claim-state .lock, .claim-state .btn { grid-column: 1 / -1; justify-content: center; }
  .claim-fields { grid-template-columns: 1fr; }
  .funds { padding: 24px; }
  .funds-head b { font-size: 64px; }
  .mint-price b { font-size: 26px; }
  .utility-grid { grid-template-columns: 1fr; }
  .u-card { padding: 24px; }
  .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tier:nth-child(4) { border-left: 1px solid var(--line); padding-left: 20px; }
  .tile { width: 132px; height: 132px; }
  .forge-table { font-size: 14px; }
  .closing { padding-top: 110px; }
}
@media (max-width: 420px) {
  .roadmap { grid-template-columns: 1fr; }
  .forge-pick input { width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-fade-rise, .animate-fade-rise-delay, .animate-fade-rise-delay-2 { animation-duration: .01ms; animation-delay: 0ms; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-row, .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- docs page ---------- */
.docs { padding-top: 70px; }
.docs-hero { padding: 40px 0 56px; border-bottom: 1px solid #000000; }
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 72px; align-items: start; padding-top: 48px; }
.toc { position: sticky; top: 104px; }
.toc ol { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 500; border-left-color: #000000; }
.doc { max-width: 760px; }
.doc section { padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-num { font-family: var(--font-pixel); font-size: 11px; color: var(--muted); }
.doc h2 { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: -1px; margin: 8px 0 22px; }
.doc h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 36px 0 12px; }
.doc p { font-size: 16.5px; line-height: 1.75; color: #2b2b2b; margin-bottom: 16px; }
.doc p b, .doc li b { font-weight: 600; color: #000000; }
.doc a { color: #000000; text-underline-offset: 3px; }
.doc code { font-size: 14px; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.doc-note { font-size: 14px !important; color: var(--muted) !important; }
.doc-callout { margin-top: 24px; padding: 20px 24px; border-radius: 18px; background: var(--surface); font-family: var(--font-display); font-size: 24px; line-height: 1.25; }
.doc-callout b { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 500; }
.doc-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #000000; margin: 6px 0 28px; }
.doc-facts div { padding: 16px 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.doc-facts b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: 15px; }
.doc-table th { text-align: left; font-family: var(--font-pixel); font-weight: 400; font-size: 10px; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid #000000; }
.doc-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #2b2b2b; }
.doc-table td:first-child { font-weight: 500; color: #000000; white-space: nowrap; }
.doc-table b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: #000000; }
.doc-list { margin: 6px 0 18px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: #2b2b2b; }
.doc-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; background: var(--navy); }
.doc-steps { counter-reset: s; list-style: none; margin: 8px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.doc-steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 16px; line-height: 1.6; color: #2b2b2b; }
.doc-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-family: var(--font-pixel); font-size: 11px; color: var(--muted); }
.doc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 10px 0 24px; max-width: 520px; }
.doc-figure figcaption, .doc-legends figcaption, .doc-forge figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.doc-art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.doc-art svg { width: 100%; height: 100%; }
.doc-legends { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 12px 0 22px; }
.doc-legends .doc-art { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.doc-forge { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; gap: 12px; align-items: center; margin: 12px 0 8px; }
.doc-forge > span { font-family: var(--font-display); font-size: 36px; color: var(--muted); }
.doc-roadmap { list-style: none; border-left: 1px solid #000000; margin: 8px 0 0 4px; display: flex; flex-direction: column; gap: 28px; }
.doc-roadmap li { position: relative; padding-left: 28px; }
.doc-roadmap li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #ffffff; border: 1px solid #000000; }
.doc-roadmap li.is-live::before { background: var(--mint); border-color: var(--mint); }
.doc-roadmap li.is-live .micro { color: var(--mint); }
.doc-roadmap h4 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 6px 0 4px; }
.doc-roadmap p { margin: 0; }

@media (max-width: 980px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; border-left: 0; gap: 0 16px; }
  .toc a { padding-left: 0; border-left: 0; }
  .doc-legends { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .docs { padding-top: 40px; }
  .doc h2 { font-size: 40px; }
  .doc section { padding-bottom: 52px; margin-bottom: 52px; }
  .doc-facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .doc-facts b { font-size: 24px; }
  .doc-table { font-size: 14px; }
  .doc-table td:first-child { white-space: normal; }
  .doc-legends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-forge > span { font-size: 26px; }
}

/* utility loop line on the dark band */
.loop { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 14px; color: #cfcfcf; }
.loop span { border: 1px solid #2a2a2a; border-radius: 999px; padding: 8px 16px; background: #0b0b0b; }
.loop i { font-style: normal; color: var(--blue); }

/* quest verify states */
.q-foot .btn { gap: 10px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.q-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.q-note.is-warn { color: #9a6a00; background: #fff8e6; border: 1px solid #f3dfa6; border-radius: 12px; padding: 9px 12px; text-align: left; }
.q-reopen { display: block; margin-top: 8px; font-size: 13px; color: var(--ink); text-align: center; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-right-color: currentColor; opacity: .5; } }

/* merge simulator: result gender + wrong-gender hint */
.gender-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; padding: 4px; border-radius: 999px; background: var(--surface); }
.gender-toggle button { height: 36px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.gender-toggle button.active { background: #ffffff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.chip.chip-warn { background: #fff8e6; border-color: #f3dfa6; color: #9a6a00; }

/* wallet quest: proof link */
.proof-input {
  width: 100%; height: 46px; margin-bottom: 10px; padding: 0 16px; border: 1px solid #d4d4d4; border-radius: 14px;
  font: inherit; font-size: 14px; color: var(--ink); background: #ffffff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.proof-input:focus { border-color: #000000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); }

/* share card studio (after claiming) */
.claim-done-wrap { display: flex; flex-direction: column; gap: 22px; }
.share-studio { border-top: 1px solid #e3e3df; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.share-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.share-sub { font-size: 14px; color: var(--muted); }
#share-canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(16, 36, 77, .55); background: var(--blue); }
.share-controls { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; align-items: end; }
.share-name { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.share-name input { height: 44px; padding: 0 14px; border: 1px solid #d4d4d4; border-radius: 12px; font: inherit; font-size: 15px; background: #ffffff; outline: none; }
.share-name input:focus { border-color: #000000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); }
.share-gender { height: 44px; background: #ffffff; border: 1px solid #e3e3df; }
.share-gender button { height: 34px; }
.share-shuffle { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #d4d4d4; background: #ffffff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.share-shuffle:hover { border-color: #000000; }
.share-actions { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; }
.share-actions .btn { height: 50px; padding: 0 16px; font-size: 14.5px; }
.btn-outline { background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #000000; }
.share-hint { font-size: 13px; color: var(--muted); }
.share-hint b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .share-controls { grid-template-columns: 1fr 1fr; }
  .share-name { grid-column: 1 / -1; }
  .share-actions { grid-template-columns: 1fr 1fr; }
  .share-actions #share-post { grid-column: 1 / -1; }
}
