/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--hud-h));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(20px, 4vh, 48px);
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--npc-bg);
}
/* grain sits on top of the crowd image too, so the two greys match */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--grain); }
.hero-crowd {
  position: absolute; right: 0; bottom: 0; z-index: -1;
  height: 92%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14%, #000 50%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 14%, #000 50%);
  opacity: .92;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: .06em; font-size: clamp(46px, min(7.4vw, 11vh), 108px); line-height: .92; }
.hero-ticker {
  font-size: .42em; line-height: 1; padding: .16em .32em .1em; margin-bottom: .16em;
  background: var(--xp); border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.hero-line { color: var(--ink); text-shadow: .045em .045em 0 var(--npc-light); }
.hero-lede { margin-top: clamp(16px, 2.6vh, 26px); font-size: clamp(15px, 1.2vw, 17px); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(18px, 3vh, 30px); }
.hero-note { margin-top: clamp(14px, 2.4vh, 22px); }
.stat-eq { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 400 12px/1.4 var(--pixel); text-transform: uppercase; letter-spacing: .04em; }
.stat-eq b { font-weight: 700; padding: 3px 6px; background: var(--ink); color: var(--text); }
.stat-eq b:last-child { background: var(--xp); color: var(--ink); }

.hero-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 16px); }
.hero-stage::before {
  content: ''; position: absolute; left: 50%; top: 46%; z-index: -1;
  width: 118%; aspect-ratio: 1.3; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(233,228,221,.95), rgba(233,228,221,.55) 55%, transparent);
}
.stage-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--panel); color: var(--text); border: 2px solid var(--ink);
  font: 700 12px/1 var(--mono);
}
.stage-tag-sep { width: 2px; height: 12px; background: var(--line-2); }
.blink { font: 400 11px/1 var(--pixel); text-transform: uppercase; color: var(--name); animation: blink 1.4s steps(2) infinite; }
.stage-crate { width: clamp(240px, min(36vw, 52vh), 480px); margin-top: -9%; padding: 0; border: 0; background: none; cursor: pointer; }
.talk-hero { max-width: 540px; }

/* ================================================================
   GENERIC SECTIONS
   ================================================================ */
.sec { position: relative; padding: clamp(64px, 9vw, 116px) 0; border-top: 3px solid var(--ink); }
.sec-paper { background: var(--paper) var(--grain); }
.sec-grey { background: var(--npc-bg) var(--grain); }
.sec-hud {
  background-color: var(--hud); color: var(--text);
  background-image: linear-gradient(rgba(58,65,72,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(58,65,72,.35) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.02; }
.sec-lede { margin-top: 16px; font-size: 16px; max-width: 60ch; }
.sec-head-dark .sec-lede { color: #c9ccd0; }
.sec-head-dark .kicker { color: var(--xp); }

/* ================================================================
   YOUR CRATE (inventory)
   ================================================================ */
.yc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.yc .sec-head { margin-bottom: 0; }
.inv-head, .inv-foot { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.inv-head { border-bottom: 2px solid var(--line-2); }
.inv-state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--pixel); text-transform: uppercase; color: var(--name); }
.inv-state .dot { background: var(--name); animation: blink 1.4s steps(2) infinite; }
.inv-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; padding: 20px 18px; align-items: center; }
.inv-stage {
  padding: 14px; border: 2px solid var(--line); cursor: pointer;
  background-color: var(--panel-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.inv-stage:hover { border-color: var(--name); }
.inv-slots { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { background: var(--panel-2); border: 2px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.slot-wide { grid-column: 1 / -1; }
.slot dt { font: 400 10px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.slot dd { margin: 0; font: 700 15px/1.2 var(--mono); overflow-wrap: anywhere; }
.inv:not(.is-revealed) .slot dd[data-slot] {
  color: transparent; user-select: none; position: relative; width: max-content; min-width: 90px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 8px);
}
.inv:not(.is-revealed) .slot dd[data-slot]::after { content: '???'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 700 12px/1 var(--pixel); }
.inv:not(.is-revealed) .xp-text[data-slot] { color: var(--text); background: none; width: auto; min-width: 0; }
.inv:not(.is-revealed) .xp-text[data-slot]::after { content: none; }
.inv:not(.is-revealed) .slot-prize dd[data-slot] { min-width: 160px; height: 26px; }
.slot-prize { border-color: #8a6a14; background: #1f1c12; }
.slot-prize dt { color: var(--name); }
.slot-prize dd { color: var(--name); font-size: 22px; }
.inv-foot { border-top: 2px solid var(--line-2); justify-content: space-between; flex-wrap: wrap; }
.inv-foot p { font-size: 13px; max-width: 38ch; }
.inv.is-revealed .xp { background-image: none; animation: none; }

/* ================================================================
   HOW IT FILLS
   ================================================================ */
.stats2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.stat-card { background: var(--paper-2); border: 3px solid var(--ink); box-shadow: var(--shadow-lg); padding: 22px; }
.stat-card p:last-child { font-size: 14px; }
.stat-card-out { background: var(--xp); }
.stat-op { align-self: center; font: 700 44px/1 var(--pixel); }
.stat-key { font: 400 11px/1 var(--pixel); text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 8px; }
.stat-name { font-size: 22px; margin-bottom: 10px; }
.stat-art { height: 112px; display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.bagstack {
  width: 44px; background-repeat: repeat-y; background-size: 44px 40px; background-position: bottom;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 56'%3E%3Cpath d='M12 20 Q2 40 8 50 Q30 58 52 50 Q58 40 48 20 Q30 14 12 20Z' fill='%23e7dfd3' stroke='%231b1c1e' stroke-width='5'/%3E%3Crect x='19' y='6' width='22' height='12' rx='4' fill='%236b7384' stroke='%231b1c1e' stroke-width='5'/%3E%3Ccircle cx='23' cy='34' r='3.4' fill='%231b1c1e'/%3E%3Ccircle cx='38' cy='34' r='3.4' fill='%231b1c1e'/%3E%3Cpath d='M23 45H38' stroke='%231b1c1e' stroke-width='3.2'/%3E%3C/svg%3E");
}
.bagstack.s1 { height: 40px; }
.bagstack.s2 { height: 80px; }
.bagstack.s3 { height: 112px; }
.stat-art-time { flex-wrap: wrap; align-content: flex-end; gap: 6px; }
.day { width: 26px; height: 26px; border: 3px solid var(--ink); background: var(--paper); animation: day-fill 4.2s steps(1) infinite; }
.day:nth-child(1) { animation-delay: 0s; } .day:nth-child(2) { animation-delay: .4s; } .day:nth-child(3) { animation-delay: .8s; }
.day:nth-child(4) { animation-delay: 1.2s; } .day:nth-child(5) { animation-delay: 1.6s; } .day:nth-child(6) { animation-delay: 2s; } .day:nth-child(7) { animation-delay: 2.4s; }
@keyframes day-fill { 0% { background: var(--paper); } 10%, 85% { background: var(--xp); } 100% { background: var(--paper); } }
.stat-art-crate span {
  position: relative; width: 104px; height: 88px; border: 4px solid var(--ink); border-radius: 8px;
  background: var(--npc); overflow: hidden; box-shadow: inset 0 14px 0 var(--npc-light);
}
.stat-art-crate span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 20%;
  background: var(--paper-2) repeating-linear-gradient(0deg, transparent 0 10px, rgba(0,0,0,.2) 10px 12px);
  border-top: 3px solid var(--ink); animation: crate-fill 4.2s steps(6) infinite;
}
@keyframes crate-fill { 0% { height: 12%; } 85%, 100% { height: 82%; } }

.warn {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  margin: clamp(32px, 5vw, 48px) 0 clamp(48px, 7vw, 72px); padding: 18px 22px;
  background: var(--ink); color: var(--text); border-left: 10px solid var(--down);
}
.warn-quote { font: 700 18px/1.2 var(--pixel); color: var(--down); }
.warn p:last-child { flex: 1; min-width: 240px; font-size: 15px; }

/* simulator */
.sim-head .chip { white-space: nowrap; }
.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--line-2); }
.sim-title { font-size: 16px; }
.sim-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.sim-stage {
  position: relative; overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end; justify-content: center; padding: 150px 20px 18px;
  background: var(--npc-bg) var(--grain); border-right: 3px solid var(--ink);
}
/* the crowd hangs off the Crate itself, so its shoulders always tuck behind the lid */
.sim-crate-wrap { position: relative; width: min(400px, 88%); }
.sim-crowd { position: absolute; left: -10%; right: -10%; bottom: 88%; z-index: 0; display: flex; justify-content: center; align-items: flex-end; }
/* first NPC to show up stands in the middle, the rest fill in around him */
.sim-crowd img:nth-child(1) { order: 3; } .sim-crowd img:nth-child(2) { order: 2; } .sim-crowd img:nth-child(3) { order: 4; }
.sim-crowd img:nth-child(4) { order: 1; } .sim-crowd img:nth-child(5) { order: 5; }
.sim-crowd img { display: none; width: 25%; margin: 0 -2.5%; }
.sim-crowd img:nth-child(odd) { margin-bottom: 4%; }
.sim-crowd img.is-in { display: block; animation: npc-arrive .32s steps(4) both; }
@keyframes npc-arrive { from { transform: translateY(40%); opacity: 0; } }
.sim-crate { position: relative; z-index: 1; }
.sim-controls { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font: 400 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field output { font: 700 13px/1 var(--pixel); text-transform: uppercase; color: var(--name); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; cursor: pointer;
  background: var(--hud) repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), var(--line-2) calc(25% - 2px) 25%);
  border: 2px solid var(--line-2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px;
  background: var(--xp); border: 3px solid var(--ink); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 0; background: var(--xp); border: 3px solid var(--ink); }
input[type="range"]:focus-visible { outline: 3px solid var(--name); outline-offset: 2px; }
.sim-readout { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sim-readout > div { display: flex; flex-direction: column; gap: 8px; }
.sim-tier { font: 700 26px/1 var(--pixel); text-transform: uppercase; }
.sim[data-tier="copper"] { --tier-c: var(--copper); }
.sim[data-tier="bronze"] { --tier-c: var(--bronze); }
.sim[data-tier="silver"] { --tier-c: var(--silver); }
.sim[data-tier="gold"] { --tier-c: var(--gold); }
.sim[data-tier="platinum"] { --tier-c: var(--platinum); }
.sim-tier { color: var(--tier-c, var(--text)); }
.sim .xp-fill { background-color: var(--tier-c, var(--xp)); }
.talk-sim { box-shadow: 0 0 0 3px #0a0c0e; padding-right: 14px; }
.talk-sim .talk-face { width: 48px; height: 48px; }
.talk-sim .talk-text { font-size: 14px; min-height: 2.9em; }
.sim [data-sim-sell] { align-self: flex-start; }
.sim-note { font-size: 12px; color: var(--muted); }

/* ================================================================
   TIERS
   ================================================================ */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: end; }
.tier { --tier-c: var(--copper); display: flex; flex-direction: column; margin-bottom: calc(var(--step) * clamp(18px, 3vw, 40px)); }
.tier[data-tier="bronze"] { --tier-c: var(--bronze); }
.tier[data-tier="silver"] { --tier-c: var(--silver); }
.tier[data-tier="gold"] { --tier-c: var(--gold); }
.tier[data-tier="platinum"] { --tier-c: var(--platinum); }
.tier-stage { position: relative; padding-top: 22%; }
.tier-npc { position: absolute; top: 0; left: 50%; width: 60%; transform: translateX(-50%); transition: transform .2s steps(3); }
.tier-crate { position: relative; z-index: 1; }
.tier:hover .tier-npc { transform: translate(-50%, -12px); }
.tier:hover .tier-crate .crate-svg { animation: crate-bob .7s steps(2) infinite; }
.tier-plate { margin-top: 6px; padding: 14px; background: var(--panel); border: 2px solid var(--line-2); border-top: 5px solid var(--tier-c); flex: 1; }
.tier-lv { font: 400 11px/1 var(--pixel); color: var(--muted); letter-spacing: .06em; }
.tier-name { margin: 8px 0 10px; font-size: clamp(16px, 1.7vw, 22px); color: var(--tier-c); }
.tier-plate .tier-pips i.on { background: var(--tier-c); border-color: var(--tier-c); }
.tier-blurb { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #c9ccd0; }
.tier[data-tier="platinum"] .tier-plate { box-shadow: 0 0 0 2px rgba(230,244,247,.25), 0 0 24px rgba(230,244,247,.15); }
.tiers-axis { display: flex; align-items: center; gap: 14px; margin-top: 28px; font: 400 11px/1 var(--pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tiers-arrow { flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 12px); position: relative; }
.tiers-arrow::after { content: ''; position: absolute; right: -2px; top: -6px; border: 8px solid transparent; border-left-color: var(--line-2); border-right: 0; }

/* ================================================================
   WHY
   ================================================================ */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.why-card { padding: clamp(20px, 3vw, 30px); }
.why-humans { background: var(--paper-2); border: 3px solid var(--ink); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.why-h { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.2; margin-bottom: 8px; }
.why-h img { border: 2px solid var(--line-2); }
.how { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 15px; color: #c9ccd0; }
.how li::before { content: counter(s); font: 700 14px/1.5 var(--pixel); color: var(--name); }
.how b { color: var(--text); }
.link-ext { display: inline-block; margin-top: 22px; font: 400 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--link); text-decoration: none; }
.link-ext:hover { text-decoration: underline; }
.live { margin-top: auto; padding-top: 18px; border-top: 3px dashed rgba(27,28,30,.3); display: flex; flex-direction: column; gap: 12px; }
.live .k { display: inline-flex; gap: 8px; align-items: center; color: var(--slate-dark); }
.live-row { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.live-row div { display: flex; flex-direction: column; gap: 4px; }
.live-row b { font: 700 30px/1 var(--pixel); }
.live-row span { font-size: 12px; }

.ticker { margin-top: clamp(36px, 5vw, 56px); overflow: hidden; background: var(--ink); color: var(--xp); border: 3px solid var(--ink); box-shadow: var(--shadow-lg); }
.ticker-track { display: flex; width: max-content; padding: 14px 0; animation: marquee 48s linear infinite; }
.ticker-track span { padding-right: 56px; font: 400 14px/1 var(--pixel); text-transform: uppercase; white-space: nowrap; }
.ticker-track span::before { content: '▶ '; color: var(--name); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   QUEST
   ================================================================ */
.quest-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.quest-side { display: flex; flex-direction: column; }
/* the top-hat NPC stands on the section's bottom edge */
.quest-npc { position: absolute; bottom: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); width: clamp(150px, 15vw, 210px); }
#quest { padding-bottom: clamp(120px, 14vw, 200px); }
.quest { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.quest-step { counter-increment: q; display: flex; gap: 16px; align-items: flex-start; padding: 16px 22px; border-bottom: 2px solid var(--line); }
.quest-step .box {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 3px solid var(--line-2); font: 700 13px/1 var(--pixel); color: var(--muted);
  transition: background-color .2s steps(2), color .2s steps(2), border-color .2s steps(2);
}
.quest-step .box::before { content: counter(q); }
.quest-step.is-lit .box { background: var(--name); border-color: #8a6a14; color: var(--ink); }
.quest-step div { display: flex; flex-direction: column; gap: 4px; }
.quest-step b { font: 700 14px/1.3 var(--pixel); text-transform: uppercase; letter-spacing: .03em; }
.quest-step span { font-size: 14px; color: #b9bec5; }
.quest-reward { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px; background: #1f1c12; }
.quest-reward b { font: 700 22px/1 var(--pixel); color: var(--name); animation: blink 1.6s steps(2) infinite; }
.quest-reward .btn { margin-left: auto; }

/* ================================================================
   FAMILY
   ================================================================ */
.sec-family { background: var(--slate) var(--grain); color: var(--text); }
.family-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.family-banner { width: 100%; border: 3px solid var(--ink); box-shadow: var(--shadow-lg); }
.family-head .kicker { color: var(--name); }
.family-head .sec-lede { color: #e1e4e8; }
.family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.talk-family { margin-top: 28px; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-wrap { max-width: 920px; }
.faq details { margin-bottom: 16px; background: #0a0c0e; color: var(--text); border: 3px solid var(--text); box-shadow: 0 0 0 3px #0a0c0e, var(--shadow-lg); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font: 700 14px/1.3 var(--pixel); text-transform: uppercase; letter-spacing: .03em; color: var(--name); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '▼'; position: absolute; right: 18px; top: 18px; color: var(--text); font-size: 12px; animation: bob 1s steps(2) infinite; }
.faq details[open] summary::after { content: '▲'; animation: none; }
.faq summary:hover::after { color: var(--name); }
.faq details p { padding: 0 20px 20px; font-size: 15px; }
.faq a { color: var(--link); }

/* ================================================================
   FINAL CTA
   ================================================================ */
.final { position: relative; overflow: hidden; border-top: 3px solid var(--ink); background: var(--npc-bg) var(--grain); padding-top: clamp(64px, 9vw, 110px); }
.final-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.final-copy { padding-bottom: clamp(64px, 9vw, 110px); }
.final-title { font-size: clamp(40px, 5.6vw, 80px); line-height: .95; text-shadow: .045em .045em 0 var(--npc-light); }
.final-copy .sec-lede { margin-bottom: 28px; }
.final-stage { --cw: clamp(260px, 32vw, 420px); --nw: clamp(84px, 9.4vw, 140px); position: relative; display: flex; flex-direction: column; align-items: center; }
.final-crowd { position: relative; display: flex; justify-content: center; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 96%); mask-image: linear-gradient(180deg, #000 68%, transparent 96%); }
.final-crowd img { width: var(--nw); margin: 0 -14px; animation: peek 2.8s steps(2) infinite; }
.final-crowd img:nth-child(even) { margin-top: 26px; animation-delay: -1.4s; }
@keyframes peek { 50% { transform: translateY(-5px); } }
/* pull the Crate up so the family's shoulders disappear behind the lid */
.final-crate { position: relative; z-index: 1; width: var(--cw); margin-top: calc(-0.26 * var(--nw) - 26px - var(--cw) * .33); margin-bottom: -18px; }

/* ================================================================
   FOOTER
   ================================================================ */
.foot { background: var(--panel); color: var(--text); border-top: 3px solid var(--ink); }
.foot-disclaimer { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter); font-size: 12px; color: var(--muted); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px var(--gutter); border-top: 2px solid var(--line-2); }
.bar-l, .bar-r { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bar-item { display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--pixel); text-transform: uppercase; letter-spacing: .04em; }
.bar-link { font: 400 11px/1 var(--pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-decoration: none; padding: 6px 0; }
.bar-link:hover { color: var(--text); }
.bar-copy { font-size: 11px; color: var(--muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1280px) {
  .hud-status { display: none; }
}
@media (max-width: 1100px) {
  .hud-nav { display: none; }
  .tiers { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
  .tier { scroll-snap-align: start; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 32px; gap: 28px; }
  .hero-crowd { height: auto; width: 150%; right: -25%; opacity: .55; -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 55%); mask-image: linear-gradient(180deg, transparent 10%, #000 55%); }
  .stage-crate { width: min(340px, 78vw); }
  .yc, .why-grid, .quest-wrap, .family-head, .final-inner { grid-template-columns: 1fr; }
  .stats2 { grid-template-columns: 1fr; }
  .stat-op { justify-self: center; font-size: 34px; }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-stage { border-right: 0; border-bottom: 3px solid var(--ink); min-height: 0; padding-top: 120px; }
  .quest-npc { display: none; }
  #quest { padding-bottom: clamp(64px, 9vw, 116px); }
  .family { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .final-copy { padding-bottom: 0; }
}
@media (max-width: 600px) {
  :root { --hud-h: 58px; }
  .hud { gap: 10px; }
  .brand-sub { display: none; }
  .hud .btn { height: 36px; padding: 0 12px; font-size: 11px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .btn-xl { height: 56px; font-size: 14px; }
  .inv-body { grid-template-columns: 1fr; }
  .inv-stage { max-width: 240px; justify-self: center; width: 100%; }
  .inv-foot .btn { width: 100%; }
  .talk-face { width: 48px; height: 48px; }
  .talk-text { font-size: 14px; }
  .family { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tile { padding: 4px; }
  .tile-no { font-size: 10px; }
  .tile-role { display: none; }
  .tiers { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; }
  .tier { margin-bottom: 0; }
  .quest-step { padding: 14px 16px; }
  .quest-reward .btn { margin-left: 0; width: 100%; }
  .final-stage { --nw: 68px; --cw: min(300px, 80vw); }
  .final-crowd img { margin: 0 -10px; }
  .bar { justify-content: center; }
}
.inv.is-revealed .inv-foot .btn { display: none; }
