:root {
  --sky: #52c9f5;
  --sky-dark: #168ec1;
  --grass: #55c947;
  --grass-dark: #2c8d32;
  --brick: #e95e3d;
  --brick-dark: #a62f25;
  --yolk: #ffd43b;
  --ink: #172235;
  --ink-soft: #35435a;
  --cream: #fff7df;
  --paper: #fffdf5;
  --ice: #c9f7ff;
  --line: rgba(23, 34, 53, .18);
  --shadow: 0 18px 0 rgba(23, 34, 53, .1);
  --display: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.62; }
body::selection { color: var(--ink); background: var(--yolk); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .12em; text-underline-offset: .18em; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid #076a9a; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
em { color: var(--yolk); font-style: normal; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding-block: clamp(72px, 9vw, 120px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 18px; top: 14px; transform: translateY(-150%); padding: 10px 16px; color: var(--ink); background: var(--yolk); border: 3px solid var(--ink); font-weight: 900; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255, 247, 223, .96); border-bottom: 3px solid var(--ink); backdrop-filter: blur(14px); }
.nav-shell { width: min(1240px, calc(100% - 28px)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand img { width: 48px; filter: drop-shadow(2px 3px 0 rgba(23, 34, 53, .17)); }
.brand span { display: grid; line-height: .9; }
.brand strong { font: 900 1.02rem/1 var(--display); letter-spacing: .035em; }
.brand small { font: 900 .68rem/1 var(--body); letter-spacing: .17em; margin-top: 6px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.6vw, 25px); margin-left: auto; }
.site-nav a { position: relative; padding-block: 25px 21px; color: var(--ink); font-size: .87rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 4px; background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-play { flex: 0 0 auto; }
.play-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; color: white; background: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--brick); font-weight: 900; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.play-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--brick); }
.menu-button { display: none; width: 48px; height: 48px; margin-left: auto; padding: 10px; background: var(--yolk); border: 3px solid var(--ink); }
.menu-button > span:not(.sr-only) { display: block; height: 3px; margin: 4px 0; background: var(--ink); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 20px; border: 3px solid var(--ink); font-weight: 900; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { color: var(--ink); background: var(--yolk); }
.button.secondary { color: var(--ink); background: var(--cream); }
.button.ghost-light { color: white; background: rgba(23, 34, 53, .62); border-color: white; box-shadow: 5px 5px 0 white; }
.button.ghost-light:hover { box-shadow: 2px 2px 0 white; }
.eyebrow { margin-bottom: 12px; color: var(--brick-dark); font-size: .76rem; font-weight: 950; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.light { color: var(--yolk); }
.text-link { font-weight: 900; }

.home-hero { position: relative; min-height: min(710px, calc(100svh - 76px)); display: grid; align-items: end; overflow: hidden; color: white; background: var(--sky-dark); border-bottom: 8px solid var(--ink); }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: 54% center; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(14, 25, 45, .94) 0%, rgba(14, 25, 45, .76) 42%, rgba(14, 25, 45, .15) 75%, rgba(14, 25, 45, .28) 100%), linear-gradient(0deg, rgba(14, 25, 45, .72), transparent 52%); }
.hero-copy { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 74px; }
.hero-copy h1 { max-width: 850px; margin: 22px 0 20px; text-wrap: balance; text-shadow: 0 5px 0 rgba(23, 34, 53, .25); }
.hero-lead { max-width: 690px; font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 650; }
.event-chip { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 8px 13px; color: var(--ink); background: rgba(255, 247, 223, .94); border: 2px solid var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.event-chip > span { width: 10px; height: 10px; background: var(--grass); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 4px rgba(85, 201, 71, .28); }
.event-chip.is-ended > span { background: var(--brick); box-shadow: none; }
.event-chip.is-upcoming > span { background: var(--yolk); }
.event-chip.dark { color: white; background: var(--ink); border-color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.identity-line { margin: 30px 0 0; color: rgba(255,255,255,.78); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.art-credit { position: absolute; z-index: 3; right: 16px; bottom: 10px; margin: 0; color: rgba(255,255,255,.74); font-size: .67rem; }

.section-heading { margin-bottom: 34px; }
.section-heading h2 { max-width: 800px; margin-bottom: 0; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 50px; align-items: end; }
.split-heading > p { margin: 0 0 3px; color: var(--ink-soft); }
.decision-yard { position: relative; }
.decision-yard::before { content: "+1"; position: absolute; z-index: -1; top: 32px; right: 5%; color: rgba(82, 201, 245, .12); font: 900 clamp(8rem, 20vw, 17rem)/1 var(--display); letter-spacing: -.12em; }
.state-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.state-button { min-height: 90px; display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--ink); background: white; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); cursor: pointer; font-weight: 900; text-align: left; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.state-button span { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; color: white; background: var(--brick); border: 2px solid var(--ink); border-radius: 50%; font-size: .76rem; }
.state-button:hover, .state-button.is-active { transform: translate(3px, 3px); background: var(--yolk); box-shadow: 3px 3px 0 var(--ink); }
.action-result { min-height: 190px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 22px; padding: 28px 34px; background: var(--ice); border: 3px solid var(--ink); box-shadow: var(--shadow); }
.action-result.is-updated { animation: result-in .32s ease both; }
.result-egg { width: 108px; height: 130px; display: grid; place-items: center; color: var(--ink); background: var(--yolk); border: 5px solid var(--ink); border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; font: 900 2.7rem/1 var(--display); transform: rotate(-5deg); box-shadow: inset 15px 0 0 rgba(255,255,255,.34); }
.result-label { margin-bottom: 7px; color: var(--brick-dark); font-size: .72rem; font-weight: 950; letter-spacing: .18em; }
.action-result h3 { margin-bottom: 8px; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.action-result p:last-child { margin-bottom: 0; }
.action-result a { font-weight: 900; }
.micro-note { margin: 26px 0 0; color: var(--ink-soft); font-size: .9rem; }
.no-js-routes { margin-top: 18px; padding: 16px 18px; background: var(--cream); border: 3px solid var(--ink); }
.no-js-routes p { margin: 6px 0; }

.loop-band { background: var(--ink); color: white; overflow: hidden; }
.loop-band .eyebrow { color: var(--sky); }
.progress-rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 18px 0 8px; margin: 0; list-style: none; }
.progress-rail::before { content: ""; position: absolute; top: 42px; left: 6%; right: 6%; height: 6px; background: repeating-linear-gradient(90deg, var(--brick) 0 34px, var(--brick-dark) 34px 38px); }
.progress-rail li { position: relative; display: grid; justify-items: center; text-align: center; }
.progress-rail span { z-index: 1; display: grid; width: 52px; height: 52px; place-items: center; color: var(--ink); background: var(--yolk); border: 4px solid white; border-radius: 50%; font-weight: 950; transition: transform .18s ease; }
.progress-rail li:hover span, .progress-rail li:focus-within span { transform: translateY(-5px) rotate(-4deg); }
.progress-rail strong { margin-top: 16px; font-family: var(--display); font-size: 1.05rem; }
.progress-rail small { color: rgba(255,255,255,.7); }
.loop-answer { max-width: 870px; margin: 42px auto 0; padding: 20px 24px; color: var(--ink); background: var(--cream); border-left: 8px solid var(--grass); }
.loop-answer a { font-weight: 900; }

.event-stripe { padding: 70px 0; color: white; background: radial-gradient(circle at 82% 26%, rgba(82, 201, 245, .28), transparent 18%), linear-gradient(135deg, #6b2c7d 0%, #22224f 58%, #172235 100%); border-block: 8px solid var(--yolk); overflow: hidden; }
.event-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 48px; align-items: center; }
.event-kicker { padding-right: 28px; border-right: 3px solid rgba(255,255,255,.3); }
.event-kicker span { color: var(--yolk); font-size: .7rem; font-weight: 950; letter-spacing: .17em; }
.event-kicker strong { display: block; margin-top: 9px; font: 900 clamp(2.5rem, 5vw, 4rem)/.86 var(--display); }
.event-copy h2 { margin-bottom: 18px; }
.event-time { color: var(--ice); }
.cosmic-orbit { position: relative; width: 210px; height: 210px; border: 2px solid rgba(201, 247, 255, .45); border-radius: 50%; }
.cosmic-orbit::before, .cosmic-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.cosmic-orbit::before { inset: 24px; background: radial-gradient(circle at 35% 30%, white, var(--sky) 8%, #7b35a4 43%, #18153f 68%); box-shadow: 0 0 34px var(--sky); }
.cosmic-orbit::after { width: 26px; height: 26px; top: 5px; left: 24px; background: var(--yolk); box-shadow: 0 0 18px var(--yolk); }
.cosmic-orbit span { position: absolute; inset: 50% -16px auto; height: 3px; background: rgba(255,255,255,.42); transform: rotate(-18deg); }
.cosmic-orbit b { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; font: 900 3.5rem/1 var(--display); }

.route-ledger { border-top: 4px solid var(--ink); }
.route-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) 42px; gap: 20px; align-items: center; min-height: 130px; padding: 20px 12px; border-bottom: 2px solid var(--line); text-decoration: none; transition: padding .18s ease, background .18s ease; }
.route-row:hover { padding-inline: 24px; background: var(--cream); }
.route-index { display: grid; width: 48px; height: 48px; place-items: center; color: white; background: var(--brick); border: 3px solid var(--ink); font-weight: 950; box-shadow: 3px 3px 0 var(--ink); }
.route-row small { display: block; color: var(--brick-dark); font-weight: 950; letter-spacing: .13em; }
.route-row strong { display: block; font: 900 clamp(1.3rem, 2.5vw, 2.1rem)/1.15 var(--display); }
.route-row em { display: block; margin-top: 6px; color: var(--ink-soft); font-style: normal; }
.route-row > b { font-size: 2rem; }
.route-wide { background: linear-gradient(90deg, var(--ice), transparent 70%); }
.final-cta { padding: 70px 0; color: white; background: var(--brick); border-block: 6px solid var(--ink); }
.final-cta .shell { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p:last-child { margin-bottom: 0; }
.boundary-wrap { padding-block: 42px; }
.boundary-note { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding: 16px 20px; background: #eefaff; border: 2px solid var(--ink); font-size: .86rem; }
.boundary-note strong { color: var(--brick-dark); text-transform: uppercase; letter-spacing: .08em; }
.boundary-note span { flex: 1; }
.boundary-note a { font-weight: 850; }

.breadcrumbs { width: min(1160px, calc(100% - 40px)); margin: 22px auto; display: flex; gap: 10px; align-items: center; color: var(--ink-soft); font-size: .84rem; }
.breadcrumbs a { font-weight: 800; }
.inner-hero { position: relative; overflow: hidden; margin-top: -62px; padding: 118px 0 68px; border-bottom: 7px solid var(--ink); }
.inner-hero > .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr); gap: 55px; align-items: center; }
.inner-hero h1 { max-width: 840px; margin-bottom: 20px; }
.inner-hero p:not(.eyebrow) { max-width: 700px; font-size: 1.1rem; }
.brick-hero { background-color: var(--sky); background-image: linear-gradient(rgba(255,255,255,.38), rgba(255,255,255,.08)), repeating-linear-gradient(0deg, transparent 0 44px, rgba(233,94,61,.17) 44px 48px), repeating-linear-gradient(90deg, transparent 0 92px, rgba(233,94,61,.13) 92px 96px); }
.brick-hero h1 em, .data-hero h1 em { color: var(--brick-dark); }
.tilted-art { margin: 0; padding: 9px; background: var(--cream); border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--brick); transform: rotate(2deg); }
.tilted-art img { display: block; width: 100%; }
.tilted-art figcaption { padding: 8px 3px 1px; color: var(--ink-soft); font-size: .72rem; }
.data-hero { color: white; background: linear-gradient(120deg, #172235, #28476a); }
.giant-stat { display: grid; justify-items: center; padding: 25px; color: var(--ink); background: var(--yolk); border: 5px solid white; box-shadow: 13px 13px 0 var(--brick); transform: rotate(-2deg); }
.giant-stat span { font: 900 clamp(6rem, 12vw, 10rem)/.8 var(--display); letter-spacing: -.1em; }
.giant-stat small { margin-top: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.mutation-hero { color: white; background: radial-gradient(circle at 80% 40%, rgba(255,255,255,.15), transparent 24%), linear-gradient(130deg, #1c2740, #5c2779 58%, #1b6b89); }
.mutation-orbs { position: relative; height: 290px; }
.mutation-orbs span { position: absolute; display: grid; place-items: center; border: 5px solid var(--ink); border-radius: 50%; font: 900 2rem/1 var(--display); box-shadow: 9px 9px 0 rgba(23,34,53,.5); }
.mutation-orbs span:nth-child(1) { width: 130px; height: 130px; left: 0; top: 85px; background: #ffd43b; transform: rotate(-9deg); }
.mutation-orbs span:nth-child(2) { width: 155px; height: 155px; right: 34px; top: 10px; background: #c9f7ff; transform: rotate(8deg); }
.mutation-orbs span:nth-child(3) { width: 175px; height: 175px; right: 0; bottom: 0; color: white; background: conic-gradient(#e95e3d, #ffd43b, #55c947, #52c9f5, #713eaa, #e95e3d); transform: rotate(-5deg); }
.egypt-hero { color: var(--ink); background: linear-gradient(165deg, var(--sky) 0 42%, #f2bd54 42% 78%, #d78a36 78%); }
.egypt-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: repeating-linear-gradient(90deg, var(--brick) 0 70px, var(--brick-dark) 70px 74px); border-top: 4px solid var(--ink); }
.sun-disc { position: relative; width: 280px; height: 280px; display: grid; place-items: center; background: var(--yolk); border: 7px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,212,59,.28); }
.sun-disc::before { content: ""; position: absolute; bottom: -62px; width: 250px; height: 120px; background: linear-gradient(135deg, transparent 50%, #bd6a2b 50%) 0 0/50% 100%, linear-gradient(45deg, #bd6a2b 50%, transparent 50%) 100% 0/50% 100%; background-repeat: no-repeat; }
.sun-disc span { font: 900 1.2rem/1 var(--display); letter-spacing: .12em; transform: translateY(-28px); }
.sun-disc b { position: absolute; font: 900 6rem/1 var(--display); }
.codes-hero { color: white; background: repeating-linear-gradient(-45deg, #172235 0 28px, #1e2b43 28px 56px); }
.status-stamp { display: grid; place-items: center; justify-self: center; width: 250px; height: 250px; color: var(--brick); background: var(--cream); border: 8px double var(--brick); border-radius: 50%; transform: rotate(-8deg); text-align: center; box-shadow: 0 0 0 9px var(--cream), 0 0 0 14px var(--brick); }
.status-stamp span { font-weight: 950; letter-spacing: .13em; }
.status-stamp strong { font: 900 2.25rem/1 var(--display); }

.article-shell { width: min(1000px, calc(100% - 40px)); }
.answer-section { max-width: 860px; margin-bottom: 60px; }
.answer-section > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.12rem; }
.big-steps { position: relative; padding: 0; margin: 38px 0 70px; list-style: none; }
.big-steps::before { content: ""; position: absolute; left: 36px; top: 34px; bottom: 34px; width: 5px; background: repeating-linear-gradient(0deg, var(--brick) 0 22px, var(--brick-dark) 22px 26px); }
.big-steps li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 25px; padding: 22px 0; }
.big-steps li > span { z-index: 1; display: grid; width: 76px; height: 76px; place-items: center; color: var(--ink); background: var(--yolk); border: 4px solid var(--ink); border-radius: 50%; font-weight: 950; }
.big-steps h3 { margin: 4px 0 8px; font-size: 1.45rem; }
.big-steps p { margin: 0; color: var(--ink-soft); }
.diagnosis-board { margin-block: 70px; border-top: 5px solid var(--ink); }
.diagnosis-board .section-heading { padding-top: 32px; }
.diagnosis-row { display: grid; grid-template-columns: 1.15fr .7fr 1.5fr auto; gap: 20px; align-items: center; padding: 22px 10px; border-top: 2px solid var(--line); }
.diagnosis-row > span { font-weight: 900; }
.diagnosis-row > strong { color: var(--brick-dark); font-family: var(--display); }
.diagnosis-row p { margin: 0; color: var(--ink-soft); }
.diagnosis-row a { font-weight: 850; }
.rebirth-slab { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; padding: 45px; margin-block: 70px; color: white; background: var(--brick); border: 5px solid var(--ink); box-shadow: 13px 13px 0 var(--ink); }
.rebirth-slab h2 { margin: 0; }
.check-list { display: grid; gap: 8px; padding: 0; margin: 22px 0 0; list-style: none; }
.check-list li::before { content: "✓"; display: inline-grid; width: 25px; height: 25px; place-items: center; margin-right: 10px; color: var(--ink); background: var(--yolk); border: 2px solid var(--ink); font-weight: 950; }
.source-notes { margin-block: 70px 35px; padding-top: 35px; border-top: 4px solid var(--ink); }
.source-notes h2 { font-size: 2rem; }
.source-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.source-pills a { padding: 8px 13px; background: var(--ice); border: 2px solid var(--ink); font-size: .83rem; font-weight: 850; text-decoration: none; }
.next-answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-block: 60px; }
.next-answers a { min-height: 112px; padding: 24px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.next-answers a:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.next-answers small { display: block; color: var(--brick-dark); font-weight: 950; letter-spacing: .12em; }
.next-answers strong { display: block; margin-top: 8px; font: 900 1.25rem/1.2 var(--display); }

.budget-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; padding: 38px; color: var(--ink); background: var(--yolk); border: 5px solid var(--ink); box-shadow: 13px 13px 0 var(--brick); }
.budget-copy h2 { margin-bottom: 15px; }
.budget-copy p { margin-bottom: 0; }
.text-example { padding: 0; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--ink); cursor: pointer; font-weight: 900; }
.budget-form { align-self: center; }
.budget-form > label { display: block; margin-bottom: 7px; font-weight: 900; }
.input-combo { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; }
.input-combo > span { display: grid; place-items: center; background: var(--cream); border: 3px solid var(--ink); border-right: 0; font-weight: 950; }
.input-combo input { min-width: 0; min-height: 54px; padding: 10px 13px; background: white; border: 3px solid var(--ink); font-weight: 800; }
.input-combo button { min-height: 54px; padding: 9px 15px; color: white; background: var(--ink); border: 3px solid var(--ink); cursor: pointer; font-weight: 900; }
.budget-form small { display: block; margin-top: 8px; }
.budget-result { position: relative; grid-column: 1 / -1; min-height: 175px; padding: 28px 32px 25px 78px; background: var(--paper); border: 3px solid var(--ink); overflow: hidden; }
.budget-result::before { content: ""; position: absolute; left: -165px; bottom: -130px; width: 190px; height: 230px; background: var(--sky); border: 5px solid var(--ink); border-radius: 50%; transform: rotate(16deg); }
.result-rivet { position: absolute; z-index: 1; left: 25px; top: 28px; width: 24px; height: 24px; background: var(--brick); border: 4px solid var(--ink); border-radius: 50%; }
.budget-result > *:not(.result-rivet) { position: relative; z-index: 2; }
.budget-result h3 { margin-bottom: 8px; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.budget-result p:last-child { margin-bottom: 0; }
.budget-result.is-error { background: #fff0e8; }
.budget-result.is-updated { animation: result-in .32s ease both; }
.warning-slab { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 22px; align-items: center; margin-block: 70px; padding: 26px; background: #fff0e8; border: 3px solid var(--brick); }
.warning-slab > span { display: grid; width: 62px; height: 62px; place-items: center; color: white; background: var(--brick); border: 4px solid var(--ink); border-radius: 50%; font: 900 2.3rem/1 var(--display); }
.warning-slab h2 { margin-bottom: 9px; font-size: 1.7rem; }
.warning-slab p { margin: 0; }
.table-controls { display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 16px; align-items: end; margin-bottom: 20px; padding: 20px; background: var(--cream); border: 2px solid var(--ink); }
.table-controls label { display: grid; gap: 7px; font-size: .82rem; font-weight: 900; }
.table-controls input, .table-controls select { min-height: 48px; padding: 9px 11px; color: var(--ink); background: white; border: 2px solid var(--ink); }
.table-controls p { margin: 0 0 12px; white-space: nowrap; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 3px solid var(--ink); }
.data-table { width: 100%; min-width: 700px; border-collapse: collapse; background: white; font-variant-numeric: tabular-nums; }
.data-table caption { padding: 12px 15px; color: white; background: var(--ink); font-weight: 850; text-align: left; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th { position: sticky; top: 0; color: white; background: var(--brick-dark); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.data-table tbody tr:nth-child(even) { background: #fffaf0; }
.data-table tbody tr:hover { background: var(--ice); }
.data-table .row-number { color: var(--ink-soft); font-size: .78rem; }
.number-cell { white-space: nowrap; font-weight: 800; }
.rarity, .mutation-type { display: inline-block; min-width: 82px; padding: 4px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: .73rem; font-weight: 900; text-align: center; }
.rarity-common { color: #38465c; background: #edf0f4; }
.rarity-rare { color: #146728; background: #e2f8df; }
.rarity-epic { color: #6d2a88; background: #f4e2fc; }
.rarity-legendary { color: #985308; background: #fff0c8; }
.rarity-mythic { color: #9e2730; background: #ffe1df; }
.rarity-secret { color: #165774; background: #dff7ff; }
.rarity-god { color: #725409; background: #fff8c2; }
.rarity-og { color: #6c2a26; background: #ffe3d7; }
.rarity-divine { color: #5336a1; background: #ece5ff; }
.rarity-transcendent { color: #7c2567; background: #ffe5f8; }
.rarity-ancient { color: #37451d; background: #edf2d8; }
.rarity-celestial { color: #145f80; background: linear-gradient(90deg, #ddf8ff, #f5e5ff); }
.order-warning-row { box-shadow: inset 6px 0 0 var(--brick); }
.empty-state { margin: 0; padding: 24px; font-weight: 850; }
.method-strip { margin-block: 70px; padding: 35px; color: white; background: var(--ink); border-left: 10px solid var(--sky); }
.method-strip h2 { font-size: 2rem; }
.method-strip ol { display: grid; gap: 10px; padding-left: 23px; }
.method-strip p { color: rgba(255,255,255,.75); }

.mutation-table .natural { color: #6d2a88; background: #f4e2fc; }
.mutation-table .weather { color: #165774; background: #dff7ff; }
.mutation-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.mutation-filter button { min-height: 44px; padding: 8px 16px; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); cursor: pointer; font-weight: 900; }
.mutation-filter button[aria-pressed="true"] { background: var(--yolk); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.mutation-filter > span { margin-left: auto; color: var(--ink-soft); font-size: .86rem; }
.two-lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-block: 60px; }
.lane { min-height: 260px; padding: 36px; border: 4px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); }
.natural-lane { background: var(--yolk); transform: rotate(-1deg); }
.weather-lane { background: var(--ice); transform: rotate(1deg); }
.one-rule { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 30px; align-items: center; margin-block: 70px; }
.one-rule > span { display: grid; width: 120px; height: 145px; place-items: center; color: white; background: var(--brick); border: 5px solid var(--ink); border-radius: 50%; font: 900 2rem/1 var(--display); box-shadow: inset 15px 0 rgba(255,255,255,.15); }
.one-rule h2 { margin-bottom: 10px; }
.one-rule p { margin: 0; }
.cosmic-unknown { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 42px; color: white; background: radial-gradient(circle at 20% 50%, rgba(82,201,245,.3), transparent 20%), #322053; border: 5px solid var(--ink); }
.cosmic-unknown h2 { margin-bottom: 12px; }
.cosmic-unknown p:last-child { margin: 0; }

.event-clock { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px 45px; padding: 36px; color: var(--ink); background: var(--yolk); border: 5px solid var(--ink); box-shadow: 12px 12px 0 var(--brick); }
.event-clock h2 { margin: 0; font-size: 2.25rem; }
.event-clock dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 0; }
.event-clock dl > div { padding: 18px; background: var(--cream); border: 3px solid var(--ink); }
.event-clock dt { font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.event-clock dd { margin: 8px 0 0; font: 900 1.1rem/1.25 var(--display); }
.event-clock > p { grid-column: 1 / -1; margin: 0; }
.confirmed-vs-unknown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-block: 80px; border: 4px solid var(--ink); }
.confirmed-vs-unknown > div { padding: 38px; }
.confirmed-list { background: #e6f9df; }
.unknown-list { color: white; background: var(--ink); }
.unknown-list .eyebrow { color: var(--yolk); }
.confirmed-vs-unknown li { margin-block: 10px; }
.event-reading { padding: 35px; background: var(--cream); border-left: 10px solid var(--brick); }

.no-code-answer { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 30px; align-items: center; padding: 34px; background: var(--ice); border: 4px solid var(--ink); }
.no-code-answer > span { display: grid; width: 110px; height: 110px; place-items: center; color: white; background: var(--brick); border: 5px solid var(--ink); border-radius: 50%; font: 900 4rem/1 var(--display); }
.no-code-answer h2 { margin-bottom: 12px; }
.checked-surfaces { margin-block: 70px; }
.checked-surfaces ol { padding: 0; list-style: none; counter-reset: surfaces; border-top: 4px solid var(--ink); }
.checked-surfaces li { counter-increment: surfaces; display: grid; grid-template-columns: 56px .8fr 1.4fr; gap: 20px; align-items: center; padding: 22px 8px; border-bottom: 2px solid var(--line); }
.checked-surfaces li::before { content: "0" counter(surfaces); color: var(--brick-dark); font-weight: 950; }
.checked-surfaces li span { color: var(--ink-soft); }
.scam-note { padding: 30px; color: white; background: var(--brick); border: 4px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); }
.scam-note h2 { margin-bottom: 10px; font-size: 1.8rem; }
.scam-note p { margin: 0; }
.useful-exits { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: stretch; margin-block: 75px; }
.useful-exits > a { display: grid; align-content: center; padding: 24px; background: var(--cream); border: 3px solid var(--ink); text-decoration: none; }
.useful-exits a strong { font-family: var(--display); }
.useful-exits a span { margin-top: 7px; color: var(--ink-soft); font-size: .83rem; }

.plain-hero { padding: 82px 0; background: linear-gradient(140deg, var(--sky), var(--ice)); border-bottom: 7px solid var(--ink); }
.plain-hero .shell { max-width: 1000px; }
.plain-hero h1 { max-width: 880px; margin-bottom: 18px; }
.plain-hero p:last-child { max-width: 730px; margin: 0; font-size: 1.12rem; }
.source-hero { background: linear-gradient(135deg, var(--yolk), #fff2a3); }
.prose-shell { width: min(900px, calc(100% - 40px)); }
.prose-shell h2 { margin: 52px 0 14px; font-size: 2rem; }
.prose-shell p, .prose-shell li { color: var(--ink-soft); }
.identity-panel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: center; padding: 30px; background: var(--cream); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--brick); }
.identity-panel img { border: 3px solid var(--ink); }
.identity-panel h2 { margin: 0 0 18px; font-size: 2.4rem; }
.identity-panel dl > div { display: grid; grid-template-columns: 110px 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
.identity-panel dt { font-weight: 900; }
.identity-panel dd { margin: 0; font-variant-numeric: tabular-nums; }
.art-note { margin: 16px 0 0; font-size: .76rem; }
.evidence-lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.evidence-lanes section { padding: 26px; background: var(--cream); border: 3px solid var(--ink); }
.evidence-lanes section:nth-child(2) { background: var(--ice); }
.evidence-lanes section:nth-child(3) { background: #e6f9df; }
.evidence-lanes section:nth-child(4) { color: white; background: var(--ink); }
.evidence-lanes span { color: var(--brick-dark); font-weight: 950; }
.evidence-lanes h2 { margin: 8px 0 10px; font-size: 1.35rem; }
.evidence-lanes p { margin: 0; color: inherit; }
.source-list { padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.source-list li { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.source-list a { color: var(--ink); font-weight: 900; }
.contact-status { display: flex; justify-content: space-between; gap: 25px; padding: 22px; color: white; background: var(--ink); border-left: 8px solid var(--yolk); }

.not-found { min-height: 66vh; display: grid; place-items: center; padding: 80px 0; text-align: center; background: linear-gradient(180deg, var(--sky), var(--ice)); }
.not-found .shell { display: grid; justify-items: center; }
.not-found img { filter: drop-shadow(8px 8px 0 rgba(23,34,53,.2)); }
.not-found h1 { margin: 16px 0; }
.not-found p:not(.eyebrow) { font-size: 1.12rem; }

.site-footer { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 40px; padding: 60px max(24px, calc((100vw - 1160px) / 2)); color: white; background: var(--ink); border-top: 8px solid var(--grass); }
.footer-mark { display: flex; gap: 16px; align-items: center; }
.footer-mark img { flex: 0 0 auto; }
.footer-mark strong { font-family: var(--display); font-size: 1.25rem; }
.footer-mark p { max-width: 420px; margin: 7px 0 0; color: rgba(255,255,255,.65); font-size: .84rem; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.84); font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: var(--yolk); text-decoration: underline; }
.legal-line { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; color: rgba(255,255,255,.53); border-top: 1px solid rgba(255,255,255,.14); font-size: .73rem; }

@keyframes result-in { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .nav-play { display: none; }
  .event-layout { grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 30px; }
  .cosmic-orbit { width: 165px; height: 165px; }
  .diagnosis-row { grid-template-columns: 1fr .7fr 1.2fr; }
  .diagnosis-row a { grid-column: 3; }
}

@media (max-width: 860px) {
  .nav-shell { min-height: 68px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: calc(100% + 3px); left: 14px; right: 14px; display: grid; gap: 0; padding: 8px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 13px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--yolk); }
  .home-hero { min-height: 650px; }
  .hero-shade { background: linear-gradient(90deg, rgba(14,25,45,.92), rgba(14,25,45,.54)), linear-gradient(0deg, rgba(14,25,45,.82), transparent); }
  .hero-copy { padding-block: 56px; }
  .split-heading { grid-template-columns: 1fr; gap: 14px; }
  .state-switcher { grid-template-columns: 1fr; }
  .state-button { min-height: 70px; }
  .progress-rail { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .progress-rail::before { display: none; }
  .event-layout { grid-template-columns: 130px 1fr; }
  .cosmic-orbit { display: none; }
  .inner-hero { margin-top: -62px; padding-top: 108px; }
  .inner-hero > .shell { grid-template-columns: 1fr; }
  .tilted-art { max-width: 560px; }
  .mutation-orbs { display: none; }
  .sun-disc, .status-stamp, .giant-stat { justify-self: start; }
  .budget-tool { grid-template-columns: 1fr; }
  .budget-result { grid-column: auto; }
  .table-controls { grid-template-columns: 1fr 1fr; }
  .table-controls p { grid-column: 1 / -1; }
  .diagnosis-row { grid-template-columns: 1fr 1fr; }
  .diagnosis-row p, .diagnosis-row a { grid-column: 1 / -1; }
  .rebirth-slab, .event-clock { grid-template-columns: 1fr; }
  .confirmed-vs-unknown { grid-template-columns: 1fr; }
  .cosmic-unknown { grid-template-columns: 1fr; }
  .useful-exits { grid-template-columns: 1fr 1fr; }
  .useful-exits > div { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell, .breadcrumbs, .article-shell, .prose-shell { width: min(100% - 26px, 1160px); }
  .section-pad { padding-block: 62px; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  h2 { font-size: clamp(1.85rem, 9vw, 2.75rem); }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .58rem; }
  .home-hero { min-height: 650px; align-items: end; }
  .hero-art { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,25,45,.97) 0%, rgba(14,25,45,.83) 55%, rgba(14,25,45,.22) 100%); }
  .hero-copy { padding-top: 170px; padding-bottom: 52px; }
  .hero-copy h1 { margin-top: 16px; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .identity-line { font-size: .64rem; }
  .art-credit { right: 8px; bottom: 5px; font-size: .56rem; }
  .action-result { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px 18px; }
  .result-egg { width: 68px; height: 84px; border-width: 3px; font-size: 1.8rem; }
  .progress-rail { grid-template-columns: repeat(2, 1fr); }
  .event-layout { grid-template-columns: 1fr; }
  .event-kicker { padding: 0 0 22px; border: 0; border-bottom: 3px solid rgba(255,255,255,.3); }
  .route-row { grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 12px; padding-inline: 0; }
  .route-index { width: 44px; height: 44px; }
  .route-row em { font-size: .8rem; }
  .final-cta .shell { grid-template-columns: 1fr; }
  .boundary-note { align-items: flex-start; flex-wrap: wrap; }
  .boundary-note span { flex-basis: calc(100% - 120px); }
  .boundary-note a { width: 100%; }
  .inner-hero { margin-top: -58px; padding-top: 100px; }
  .tilted-art { margin-inline: 5px; box-shadow: 7px 7px 0 var(--brick); }
  .sun-disc { width: 190px; height: 190px; }
  .sun-disc::before { width: 170px; }
  .status-stamp { width: 180px; height: 180px; }
  .giant-stat span { font-size: 6rem; }
  .big-steps::before { left: 25px; }
  .big-steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .big-steps li > span { width: 52px; height: 52px; font-size: .78rem; }
  .diagnosis-row { grid-template-columns: 1fr; gap: 6px; }
  .diagnosis-row p, .diagnosis-row a { grid-column: auto; }
  .rebirth-slab { padding: 28px 23px; box-shadow: 8px 8px 0 var(--ink); }
  .next-answers { grid-template-columns: 1fr; }
  .budget-tool { padding: 25px 18px; box-shadow: 8px 8px 0 var(--brick); }
  .input-combo { grid-template-columns: 38px minmax(0, 1fr); }
  .input-combo button { grid-column: 1 / -1; }
  .budget-result { padding: 24px 18px 24px 60px; }
  .result-rivet { left: 17px; }
  .warning-slab { grid-template-columns: 45px minmax(0, 1fr); padding: 20px 15px; }
  .warning-slab > span { width: 42px; height: 42px; font-size: 1.5rem; border-width: 3px; }
  .table-controls { grid-template-columns: 1fr; }
  .table-controls p { grid-column: auto; }
  .two-lanes { grid-template-columns: 1fr; }
  .one-rule { grid-template-columns: 76px minmax(0, 1fr); gap: 20px; }
  .one-rule > span { width: 72px; height: 88px; font-size: 1.2rem; }
  .cosmic-unknown { padding: 28px 22px; }
  .event-clock { padding: 25px 18px; box-shadow: 8px 8px 0 var(--brick); }
  .event-clock dl { grid-template-columns: 1fr; }
  .confirmed-vs-unknown > div { padding: 28px 21px; }
  .no-code-answer { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px 15px; }
  .no-code-answer > span { width: 68px; height: 68px; font-size: 2.4rem; border-width: 3px; }
  .checked-surfaces li { grid-template-columns: 44px 1fr; }
  .checked-surfaces li span { grid-column: 2; }
  .useful-exits { grid-template-columns: 1fr; }
  .useful-exits > div { grid-column: auto; }
  .identity-panel { grid-template-columns: 1fr; padding: 20px; box-shadow: 7px 7px 0 var(--brick); }
  .identity-panel img { max-width: 190px; }
  .evidence-lanes { grid-template-columns: 1fr; }
  .source-list li { grid-template-columns: 1fr; gap: 5px; }
  .contact-status { display: grid; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 35px 22px; padding-inline: 20px; }
  .footer-mark { grid-column: 1 / -1; }
}

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