:root {
  --ink: #080805;
  --ink-2: #11100b;
  --paper: #e8d29a;
  --paper-2: #c6a968;
  --gold: #e6bd52;
  --gold-2: #ffdd7a;
  --red: #b9332f;
  --red-2: #e95345;
  --cream: #f4ead1;
  --muted: #b8ab8b;
  --line: rgba(230, 189, 82, .28);
  --shell: min(1320px, calc(100% - 48px));
  --header: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 73% 7%, rgba(185, 51, 47, .13), transparent 30%),
    radial-gradient(circle at 12% 34%, rgba(230, 189, 82, .09), transparent 26%),
    linear-gradient(180deg, #090906 0%, #070705 48%, #0d0b07 100%);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: 130px 0; position: relative; }

#fogCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  box-shadow: inset 0 0 170px rgba(0,0,0,.72);
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background: #080805;
  transition: opacity .55s ease, visibility .55s ease;
}
.boot.is-hidden { opacity: 0; visibility: hidden; }
.boot-wheel { width: 84px; color: var(--gold); animation: spin 2.4s linear infinite; }
.boot-wheel svg { stroke-width: 2.3; }
.boot p { margin: 0; color: var(--paper-2); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  height: 70px;
  background: rgba(8, 8, 5, .88);
  backdrop-filter: blur(18px);
  border-color: rgba(230, 189, 82, .18);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-sigil { width: 40px; height: 40px; color: var(--gold); }
.brand-sigil svg { width: 100%; height: 100%; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-family: "Bebas Neue", sans-serif; font-size: 1.45rem; letter-spacing: .08em; }
.brand small { margin-top: 5px; color: var(--paper-2); font-size: .58rem; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(230,189,82,.16); background: rgba(255,255,255,.025); border-radius: 999px; }
.site-nav a { padding: 9px 13px; color: rgba(244,234,209,.7); font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; border-radius: 999px; transition: .2s ease; }
.site-nav a:hover { color: var(--ink); background: var(--gold); }
.header-cta { justify-self: end; padding: 12px 17px; border: 1px solid var(--gold); color: var(--gold-2); text-transform: uppercase; font-weight: 700; font-size: .72rem; letter-spacing: .1em; transition: .2s ease; }
.header-cta:hover { color: var(--ink); background: var(--gold); box-shadow: 0 0 36px rgba(230,189,82,.16); }
.nav-toggle { display: none; width: 46px; height: 46px; justify-self: end; border: 1px solid rgba(230,189,82,.3); background: rgba(255,255,255,.03); color: var(--cream); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  padding-top: calc(var(--header) + 70px);
  padding-bottom: 80px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 10% -30vw auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,189,82,.18), transparent);
}
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .17em;
  font-size: .69rem;
}
.eyebrow span { width: 24px; height: 1px; background: currentColor; position: relative; }
.eyebrow span::after { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--red-2); transform: translateY(-50%); box-shadow: 0 0 14px var(--red-2); }
.hero h1 { margin: 20px 0 0; font-family: "Bebas Neue", sans-serif; line-height: .9; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 span { display: block; }
.line-one { font-size: clamp(5.2rem, 10vw, 10.5rem); color: var(--cream); }
.line-two { font-size: clamp(6.7rem, 13vw, 13.4rem); color: var(--gold); text-shadow: 5px 5px 0 rgba(185,51,47,.75); }
.hero-tagline { margin: 30px 0 0; font-family: "Pirata One", serif; font-size: clamp(1.8rem, 3vw, 3rem); color: var(--cream); }
.hero-description { max-width: 650px; margin: 14px 0 0; color: rgba(244,234,209,.68); font-size: clamp(.9rem, 1vw, 1.03rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid rgba(244,234,209,.22); text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: .72rem; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 7px 7px 0 rgba(185,51,47,.75); }
.btn-gold:hover { background: var(--gold-2); transform: translate(-2px,-2px); box-shadow: 10px 10px 0 rgba(185,51,47,.75); }
.btn-ghost { background: rgba(255,255,255,.025); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.contract-panel { margin-top: 28px; max-width: 650px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 15px 16px 15px 18px; border: 1px solid rgba(230,189,82,.25); background: linear-gradient(90deg, rgba(230,189,82,.055), rgba(255,255,255,.015)); position: relative; }
.contract-panel::before { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(230,189,82,.12); pointer-events: none; }
.contract-panel > div { min-width: 0; display: grid; gap: 4px; }
.contract-panel span { color: var(--paper-2); text-transform: uppercase; font-size: .6rem; letter-spacing: .14em; }
.contract-panel strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--cream); }
.contract-panel button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(230,189,82,.35); background: transparent; color: var(--gold); cursor: pointer; text-transform: uppercase; font-size: .65rem; font-weight: 700; }
.contract-panel button svg { width: 16px; height: 16px; }

.hero-art { min-width: 0; min-height: 650px; display: grid; place-items: center; position: relative; isolation: isolate; }
.moon { position: absolute; width: min(37vw, 530px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6e5b1, #c8a861 62%, #7d6128 100%); box-shadow: 0 0 80px rgba(230,189,82,.16); opacity: .82; z-index: -3; }
.map-lines { position: absolute; width: 95%; aspect-ratio: 1; border: 1px solid rgba(230,189,82,.15); border-radius: 50%; z-index: -2; }
.map-lines::before, .map-lines::after { content: ""; position: absolute; inset: 11%; border: 1px dashed rgba(230,189,82,.16); border-radius: 50%; }
.map-lines::after { inset: 25%; }
.compass { position: absolute; color: rgba(230,189,82,.32); }
.compass svg { width: 100%; height: 100%; }
.compass-a { width: 170px; right: -3%; top: 5%; animation: spin 28s linear infinite; }
.wanted-card { width: min(90%, 520px); padding: 17px; background: #d7bd7d; color: #15120b; border: 3px solid #17130b; box-shadow: 22px 26px 0 rgba(0,0,0,.32), 0 0 0 8px rgba(230,189,82,.08); transform: rotate(2.2deg); position: relative; }
.wanted-card::before, .wanted-card::after { content: ""; position: absolute; width: 80px; height: 24px; background: rgba(185,51,47,.8); top: -13px; transform: rotate(-8deg); }
.wanted-card::before { left: 18px; }
.wanted-card::after { right: 18px; transform: rotate(9deg); }
.wanted-top, .wanted-bottom { text-align: center; }
.wanted-top span { display: block; font-family: "Bebas Neue", sans-serif; font-size: 3.25rem; line-height: .9; letter-spacing: .12em; }
.wanted-top small, .wanted-bottom span { letter-spacing: .16em; font-size: .57rem; font-weight: 700; }
.wanted-image { margin: 14px 0; border: 3px solid #15120b; background: #000; padding: 8px; overflow: hidden; }
.wanted-image img { width: 100%; height: auto; display: block; filter: saturate(.88) contrast(1.08); }
.wanted-bottom { display: grid; gap: 2px; }
.wanted-bottom strong { font-family: "Bebas Neue", sans-serif; font-size: 2rem; letter-spacing: .09em; }
.floating-tag { position: absolute; z-index: 2; padding: 10px 14px; border: 1px solid var(--gold); background: rgba(8,8,5,.93); color: var(--gold); font-size: .62rem; letter-spacing: .15em; font-weight: 700; box-shadow: 8px 8px 0 rgba(185,51,47,.45); }
.tag-one { left: 0; top: 23%; transform: rotate(-6deg); }
.tag-two { right: -1%; bottom: 22%; transform: rotate(5deg); }
.floating-coin { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 3px double var(--ink); background: var(--gold); color: var(--ink); font-family: "Pirata One", serif; font-size: 1.8rem; box-shadow: 0 0 0 4px rgba(230,189,82,.13); animation: float 4.8s ease-in-out infinite; }
.coin-one { left: 6%; bottom: 10%; }
.coin-two { right: 5%; top: 29%; animation-delay: -2.2s; }

.marquee { overflow: hidden; border-block: 1px solid rgba(230,189,82,.28); background: var(--gold); color: var(--ink); transform: rotate(-.45deg) scale(1.01); position: relative; z-index: 4; }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: marquee 25s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; gap: 22px; padding: 13px 22px; }
.marquee span { font-family: "Bebas Neue", sans-serif; font-size: 1.12rem; letter-spacing: .12em; white-space: nowrap; }
.marquee i { width: 7px; height: 7px; flex: 0 0 auto; background: var(--red); transform: rotate(45deg); }

.section-intro { max-width: 860px; }
.section-intro h2, .code-copy h2, .community-card h2 { margin: 18px 0 0; font-family: "Bebas Neue", sans-serif; font-size: clamp(3.4rem, 7vw, 7.2rem); line-height: .86; letter-spacing: -.03em; text-transform: uppercase; }
.section-intro h2 em, .code-copy h2 em { color: var(--gold); font-style: normal; }
.section-intro > p:last-child { max-width: 720px; margin: 24px 0 0; color: rgba(244,234,209,.64); line-height: 1.8; }
.section-intro.center { text-align: center; margin-inline: auto; }

.lore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 58px; }
.lore-card { min-height: 390px; padding: 28px; border: 1px solid rgba(230,189,82,.19); background: linear-gradient(145deg, rgba(230,189,82,.065), rgba(255,255,255,.018)); position: relative; overflow: hidden; }
.lore-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -75px; bottom: -75px; border-radius: 50%; border: 1px solid rgba(230,189,82,.2); box-shadow: 0 0 0 20px rgba(230,189,82,.02), 0 0 0 42px rgba(230,189,82,.015); }
.card-number { color: var(--red-2); font-size: .66rem; letter-spacing: .15em; }
.icon-frame { width: 86px; height: 86px; margin: 50px 0 28px; display: grid; place-items: center; border: 1px solid rgba(230,189,82,.35); color: var(--gold); transform: rotate(45deg); }
.icon-frame svg { width: 50px; height: 50px; transform: rotate(-45deg); }
.lore-card h3, .buy-card h3, .voyage-step h3 { margin: 0; font-family: "Pirata One", serif; font-size: 2rem; font-weight: 400; }
.lore-card p, .buy-card p, .voyage-step p { color: rgba(244,234,209,.61); font-size: .82rem; line-height: 1.75; }

.code { background: linear-gradient(180deg, rgba(230,189,82,.055), rgba(185,51,47,.04)); border-block: 1px solid rgba(230,189,82,.12); }
.code-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(54px, 8vw, 120px); align-items: center; }
.code-visual { min-width: 0; }
.chart-map { aspect-ratio: 1.35; position: relative; overflow: hidden; border: 1px solid rgba(230,189,82,.25); background:
  radial-gradient(circle at 26% 30%, rgba(230,189,82,.13), transparent 23%),
  repeating-linear-gradient(0deg, transparent 0 36px, rgba(230,189,82,.035) 37px),
  repeating-linear-gradient(90deg, transparent 0 36px, rgba(230,189,82,.035) 37px),
  #0b0a06;
  box-shadow: inset 0 0 80px rgba(0,0,0,.8);
}
.chart-map::before { content: "CAPTAIN'S NAVIGATION / RH-001"; position: absolute; left: 18px; top: 15px; color: var(--paper-2); font-size: .6rem; letter-spacing: .14em; }
.chart-map svg { width: 100%; height: 100%; color: var(--gold); }
.chart-map .route { stroke: var(--red-2); stroke-width: 3; stroke-dasharray: 10 10; animation: dash 18s linear infinite; }
.chart-map .island { fill: rgba(230,189,82,.14); stroke: rgba(230,189,82,.5); }
.chart-map circle { fill: var(--gold); stroke: var(--ink); stroke-width: 4; }
.chart-map .cross { stroke: var(--red-2); stroke-width: 6; }
.map-label { position: absolute; z-index: 2; padding: 6px 8px; color: var(--paper); background: rgba(8,8,5,.86); border: 1px solid rgba(230,189,82,.24); font-size: .55rem; letter-spacing: .11em; }
.label-a { left: 5%; bottom: 11%; }
.label-b { left: 48%; top: 43%; }
.label-c { right: 6%; top: 13%; }
.ship-marker { position: absolute; left: 36%; top: 38%; width: 54px; color: var(--gold-2); filter: drop-shadow(0 0 12px rgba(230,189,82,.5)); animation: sail 8s ease-in-out infinite; }
.ship-marker svg { width: 100%; height: 100%; }
.code-copy h2 { font-size: clamp(3.5rem, 6vw, 6.3rem); }
.code-list { margin-top: 32px; border-top: 1px solid rgba(230,189,82,.16); }
.code-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(230,189,82,.13); }
.code-list span { color: var(--red-2); font-size: .65rem; }
.code-list p { margin: 0; color: rgba(244,234,209,.64); font-size: .78rem; line-height: 1.65; }
.code-list strong { color: var(--cream); }
.token-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 26px; background: rgba(230,189,82,.18); border: 1px solid rgba(230,189,82,.18); }
.token-ledger > div { padding: 16px; display: grid; gap: 5px; background: var(--ink-2); }
.token-ledger span { color: var(--paper-2); font-size: .56rem; text-transform: uppercase; letter-spacing: .14em; }
.token-ledger strong { color: var(--gold-2); font-size: .9rem; }

.voyage-line { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid rgba(230,189,82,.25); }
.voyage-step { position: relative; padding: 34px 26px 0 0; }
.voyage-step::before { content: ""; position: absolute; width: 13px; height: 13px; top: -7px; left: 0; background: var(--gold); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--gold); transform: rotate(45deg); }
.voyage-step span { color: var(--red-2); font-size: .63rem; letter-spacing: .14em; }
.voyage-step h3 { margin-top: 18px; }

.buy { background: var(--paper); color: var(--ink); }
.buy .kicker { color: var(--red); }
.buy .section-intro h2 { color: var(--ink); }
.buy .section-intro h2 em { color: var(--red); }
.buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 58px; }
.buy-card { min-height: 330px; padding: 26px; border: 2px solid var(--ink); background: rgba(255,255,255,.14); box-shadow: 8px 8px 0 rgba(185,51,47,.78); position: relative; overflow: hidden; }
.buy-card::before { content: ""; position: absolute; width: 140px; height: 140px; border: 2px solid rgba(8,8,5,.1); border-radius: 50%; right: -60px; bottom: -60px; }
.buy-card > span { font-family: "Bebas Neue", sans-serif; font-size: 3.4rem; color: var(--red); }
.buy-card h3 { margin-top: 60px; }
.buy-card p { color: rgba(8,8,5,.65); }

.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 20px; margin-top: 58px; align-items: start; }
.gallery-feature, .gallery-banner { margin: 0; overflow: hidden; border: 1px solid rgba(230,189,82,.22); background: rgba(255,255,255,.025); position: relative; width: 100%; }
.gallery-feature { aspect-ratio: 1 / 1; }
.gallery-banner { aspect-ratio: 3 / 1; }
.gallery-feature img, .gallery-banner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.08); transition: transform .7s ease; }
.gallery-feature:hover img, .gallery-banner:hover img { transform: scale(1.04); }
.gallery-feature figcaption, .gallery-banner figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 10px; background: rgba(8,8,5,.88); border: 1px solid rgba(230,189,82,.28); color: var(--gold); text-transform: uppercase; font-size: .6rem; letter-spacing: .12em; z-index: 10; }

.community-card { min-height: 420px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: clamp(44px, 7vw, 90px); padding: clamp(36px, 6vw, 82px); border: 1px solid rgba(230,189,82,.28); background:
  radial-gradient(circle at 15% 50%, rgba(230,189,82,.16), transparent 25%),
  linear-gradient(120deg, rgba(185,51,47,.12), rgba(255,255,255,.015));
  position: relative;
  overflow: hidden;
}
.community-card::after { content: "PIRATE GASTER"; position: absolute; right: -20px; bottom: -38px; font-family: "Bebas Neue", sans-serif; font-size: clamp(5rem, 12vw, 11rem); color: rgba(230,189,82,.035); white-space: nowrap; }
.community-icon { width: 240px; color: var(--gold); animation: spin 36s linear infinite; }
.community-icon svg { width: 100%; height: 100%; }
.community-card h2 { font-size: clamp(4rem, 8vw, 8.5rem); }
.community-card > div:last-child > p:not(.kicker) { max-width: 680px; color: rgba(244,234,209,.66); }
.community-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; position: relative; z-index: 1; }

.site-footer { min-height: 190px; padding: 42px 0 96px; display: grid; grid-template-columns: .6fr 1.4fr auto; gap: 38px; align-items: start; border-top: 1px solid rgba(230,189,82,.18); }
.footer-brand { display: grid; gap: 5px; }
.footer-brand strong { font-family: "Bebas Neue", sans-serif; color: var(--gold); font-size: 1.5rem; letter-spacing: .1em; }
.footer-brand span, .site-footer p, .site-footer > a { color: rgba(244,234,209,.44); font-size: .62rem; line-height: 1.65; }
.site-footer p { margin: 0; max-width: 760px; }
.site-footer > a { text-transform: uppercase; letter-spacing: .11em; color: var(--paper-2); }
.mobile-buybar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 18px); opacity: 0; visibility: hidden; padding: 11px 15px; background: var(--gold); color: var(--ink); border: 1px solid var(--ink); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: .25s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-16.666667%, 0, 0); }
}
@keyframes dash { to { stroke-dashoffset: -220; } }
@keyframes sail { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(24px,-18px) rotate(5deg); } }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 40px, 1050px); }
  .site-header { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .site-nav { position: fixed; inset: var(--header) 18px auto; display: grid; padding: 16px; border-radius: 0; background: rgba(8,8,5,.97); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s ease; }
  .site-nav a { padding: 14px; border-radius: 0; border-bottom: 1px solid rgba(230,189,82,.1); }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr 1fr; gap: 35px; }
  .line-one { font-size: clamp(4.7rem, 9vw, 7.4rem); }
  .line-two { font-size: clamp(6.2rem, 12vw, 10rem); }
  .hero-art { min-height: 560px; }
  .wanted-card { width: min(95%, 450px); }
  .lore-grid { gap: 12px; }
  .buy-grid { grid-template-columns: repeat(2, 1fr); }
  .voyage-line { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
}

@media (max-width: 860px) {
  :root { --shell: calc(100% - 30px); }
  .section-pad { padding: 92px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 56px; }
  .hero-copy { max-width: 680px; }
  .hero-art { min-height: 610px; }
  .moon { width: min(78vw, 500px); }
  .tag-one { left: 3%; }
  .tag-two { right: 2%; }
  .lore-grid { grid-template-columns: 1fr; }
  .lore-card { min-height: auto; }
  .icon-frame { margin-top: 38px; }
  .code-shell { grid-template-columns: 1fr; }
  .code-copy { order: -1; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-feature { aspect-ratio: 1 / 1; width: 100%; max-width: 480px; margin-inline: auto; }
  .gallery-banner { aspect-ratio: 3 / 1; width: 100%; }
  .community-card { grid-template-columns: 1fr; }
  .community-icon { width: 160px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; padding-bottom: 115px; }
  .mobile-buybar { display: flex; position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 14px; padding: 9px 9px 9px 14px; background: rgba(8,8,5,.95); backdrop-filter: blur(16px); border: 1px solid rgba(230,189,82,.35); box-shadow: 0 16px 50px rgba(0,0,0,.55); }
  .mobile-buybar > div { display: grid; line-height: 1.05; }
  .mobile-buybar span { color: var(--gold); font-family: "Bebas Neue", sans-serif; font-size: 1.1rem; letter-spacing: .08em; }
  .mobile-buybar small { color: rgba(244,234,209,.45); font-size: .52rem; }
  .mobile-buybar a { padding: 11px 17px; background: var(--gold); color: var(--ink); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
}

@media (max-width: 560px) {
  :root { --header: 68px; --shell: calc(100% - 22px); }
  .grain { opacity: .1; }
  .site-header { height: var(--header); padding-inline: 11px; }
  .brand-sigil { width: 36px; height: 36px; }
  .brand strong { font-size: 1.15rem; }
  .brand small { font-size: .5rem; }
  .nav-toggle { width: 42px; height: 42px; }
  .hero { min-height: auto; padding-top: 112px; padding-bottom: 62px; gap: 44px; }
  .eyebrow { font-size: .56rem; letter-spacing: .11em; }
  .hero h1 { line-height: .9; }
  .line-one { font-size: clamp(4.2rem, 23vw, 6.4rem); }
  .line-two { font-size: clamp(5.4rem, 29vw, 8.4rem); text-shadow: 3px 4px 0 rgba(185,51,47,.75); }
  .hero-tagline { margin-top: 22px; font-size: 1.75rem; }
  .hero-description { font-size: .78rem; line-height: 1.68; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; min-height: 49px; }
  .contract-panel { grid-template-columns: 1fr; gap: 12px; }
  .contract-panel button { justify-content: center; }
  .hero-art { min-height: 465px; }
  .wanted-card { width: 88%; padding: 11px; box-shadow: 13px 15px 0 rgba(0,0,0,.32); }
  .wanted-top span { font-size: 2.3rem; }
  .wanted-top small, .wanted-bottom span { font-size: .46rem; }
  .wanted-bottom strong { font-size: 1.5rem; }
  .floating-tag { font-size: .48rem; padding: 7px 9px; }
  .tag-one { left: -1%; top: 14%; }
  .tag-two { right: -1%; bottom: 14%; }
  .floating-coin { width: 43px; height: 43px; font-size: 1.3rem; }
  .coin-one { left: 2%; bottom: 5%; }
  .coin-two { right: 2%; top: 24%; }
  .compass-a { width: 105px; }
  .marquee-group { gap: 15px; padding: 11px 15px; }
  .marquee span { font-size: .9rem; }
  .section-intro h2, .code-copy h2, .community-card h2 { font-size: clamp(3rem, 16vw, 4.9rem); }
  .section-intro > p:last-child { font-size: .78rem; }
  .lore-grid { margin-top: 38px; }
  .lore-card { padding: 22px; }
  .lore-card h3, .buy-card h3, .voyage-step h3 { font-size: 1.72rem; }
  .lore-card p, .buy-card p, .voyage-step p { font-size: .74rem; }
  .chart-map { aspect-ratio: .95; }
  .map-label { font-size: .44rem; }
  .token-ledger { grid-template-columns: 1fr 1fr; }
  .voyage-line { grid-template-columns: 1fr; row-gap: 36px; margin-top: 52px; }
  .voyage-step { padding-right: 0; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-card { min-height: 260px; }
  .buy-card h3 { margin-top: 38px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .community-card { padding: 30px 22px; }
  .community-icon { width: 120px; }
  .community-actions { display: grid; }
}

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

/* Hard containment for transformed decorative layers */
html, body { max-width: 100%; overflow-x: clip; }
.marquee { overflow: clip; contain: paint; }
.hero-art { overflow: clip; }

@media (max-width: 560px) {
  .line-one { font-size: clamp(4rem, 21.5vw, 5.5rem); letter-spacing: -.045em; }
  .line-two { font-size: clamp(5rem, 25vw, 6.6rem); letter-spacing: -.055em; }
  .compass-a { right: 0; }
}
