:root {
  --paper: #f5f0dc;
  --paper-2: #e8e0c6;
  --ink: #0a0a0a;
  --muted: #57534a;
  --yellow: #f3ba2f;
  --yellow-2: #ffd760;
  --green: #53ff8a;
  --blue: #76b7ff;
  --red: #ff6b6b;
  --white: #fffdf4;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shell: min(1500px, calc(100vw - 48px));
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(243,186,47,.14), transparent 28%),
    linear-gradient(rgba(10,10,10,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 8px 8px, 8px 8px, auto;
  font-family: "Courier New", Courier, monospace;
  text-rendering: geometricPrecision;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.shell { width: var(--shell); margin-inline: auto; }

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .2;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0, rgba(0,0,0,.08) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: multiply;
}

#pixelField {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .38;
}

.boot-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  place-items: center;
  background: var(--paper);
  transition: opacity .5s steps(6, end), visibility .5s;
}
.js .boot-screen { display: grid; }
.boot-screen.is-hidden { opacity: 0; visibility: hidden; }
.boot-card { width: min(440px, calc(100vw - 40px)); text-align: center; }
.boot-icon {
  width: 92px;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.boot-icon img { width: 68px; image-rendering: pixelated; }
.boot-title { font-weight: 900; letter-spacing: .08em; }
.boot-progress { height: 22px; border: var(--border); background: var(--white); padding: 3px; }
.boot-progress span { display: block; height: 100%; width: 0; background: var(--ink); animation: bootLoad 1.8s steps(12, end) forwards; }
.boot-status { color: var(--muted); font-size: .75rem; margin-top: 12px; }

.desktop-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: max(24px, calc((100vw - 1500px) / 2));
  border-bottom: var(--border);
  background: rgba(245,240,220,.94);
  backdrop-filter: blur(12px);
}
.system-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 950; letter-spacing: .08em; }
.mini-dogcow { width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--white); display: grid; place-items: center; }
.mini-dogcow img { width: 26px; image-rendering: pixelated; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 9px 12px; border: 2px solid transparent; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.desktop-nav a:hover { border-color: var(--ink); background: var(--yellow); }
.bar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.chain-pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); padding: 8px 12px; background: var(--yellow); font-size: .72rem; font-weight: 900; }
.chain-pill img { width: 20px; height: 20px; object-fit: contain; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--white); padding: 9px; cursor: pointer; }
.menu-toggle span { display: block; height: 3px; background: var(--ink); margin: 4px 0; }
.mobile-menu { position: fixed; inset: var(--header-h) 0 auto; z-index: 999; display: none; max-height: calc(100svh - var(--header-h)); overflow-y: auto; padding: 18px 20px 28px; border-bottom: var(--border); background: var(--paper); transform: translateY(-110%); transition: transform .25s steps(5, end); }
.mobile-menu a { display: block; padding: 16px 4px; border-bottom: 2px dashed var(--ink); font-size: 1.1rem; font-weight: 900; text-transform: uppercase; }
body.menu-open .mobile-menu { transform: translateY(0); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: clamp(48px, 6vw, 110px);
  align-items: center;
  padding-block: clamp(70px, 9vw, 150px);
}
.hero::before {
  content: "1983";
  position: absolute;
  left: -4vw;
  bottom: 2vh;
  z-index: -1;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(9rem, 25vw, 28rem);
  line-height: .7;
  color: rgba(10,10,10,.045);
  letter-spacing: -.08em;
}
.system-label { display: inline-block; max-width: 100%; margin-bottom: 18px; overflow: hidden; padding: 7px 10px; border: 2px solid var(--ink); background: var(--white); font-size: .74rem; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.system-label span { background: var(--ink); color: var(--white); padding: 2px 5px; }
.hero h1 { display: grid; gap: clamp(14px, 1.25vw, 26px); margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(5.6rem, 10vw, 12.5rem); line-height: .8; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .accent { margin-top: clamp(4px, .4vw, 8px); color: var(--yellow); -webkit-text-stroke: 3px var(--ink); text-shadow: 6px 6px 0 var(--ink); }
.hero-intro { max-width: 700px; margin: 30px 0 0; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.pixel-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: var(--border); background: var(--white); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); font-size: .82rem; font-weight: 950; cursor: pointer; text-transform: uppercase; transition: transform .12s steps(2, end), box-shadow .12s steps(2, end), background .12s; }
.pixel-button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.pixel-button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.pixel-button svg { width: 21px; height: 21px; }
.pixel-button.primary { background: var(--yellow); }
.pixel-button.secondary { background: var(--ink); color: var(--white); }
.pixel-button.light { background: var(--white); }
.pixel-button.wide { width: 100%; }

.ca-window { width: min(620px, 100%); margin-top: 30px; border: 2px solid var(--ink); background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.ca-window-title { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px); }
.ca-window-title > * { background: var(--white); padding-inline: 6px; font-size: .72rem; font-weight: 900; }
.window-controls { letter-spacing: .2em; }
.ca-window-body { display: flex; align-items: center; gap: 12px; padding: 12px; }
.ca-window-body code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: .82rem; }
.copy-ca { border: 2px solid var(--ink); background: var(--yellow); min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; font-weight: 900; cursor: pointer; }
.copy-ca svg { width: 16px; }

.hero-machine { position: relative; min-width: 0; }
.classic-window { border: var(--border); background: var(--white); box-shadow: 10px 10px 0 var(--ink); }
.window-titlebar { min-height: 38px; display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 8px; padding: 5px 7px; border-bottom: var(--border); background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 5px); text-align: center; font-size: .78rem; font-weight: 950; }
.window-titlebar > span:nth-child(2) { width: max-content; max-width: 100%; margin: auto; padding-inline: 8px; background: var(--white); }
.close-box, .zoom-box { width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--white); }
.zoom-box::after { content: ""; display: block; width: 8px; height: 8px; margin: 3px; border: 2px solid var(--ink); }
.hero-window { transform: rotate(1.2deg); }
.dogcow-stage { position: relative; min-height: clamp(430px, 46vw, 720px); overflow: hidden; background: var(--paper-2); }
.stage-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: 16px 16px; }
.stage-grid::after { content: ""; position: absolute; inset: 12%; border: 2px dashed var(--ink); }
.dogcow-orbit { position: absolute; left: 50%; top: 50%; width: 73%; transform: translate(-50%, -48%); transform-origin: center; transition: transform .35s steps(6, end), filter .2s; }
.dogcow-main { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(12px 12px 0 rgba(10,10,10,.18)); animation: dogcowFloat 3.2s steps(6, end) infinite; }
.speech-bubble { position: absolute; right: 6%; top: 9%; z-index: 3; min-width: 120px; padding: 17px 18px; border: var(--border); background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 950; text-align: center; transform: rotate(3deg); }
.speech-bubble::after { content: ""; position: absolute; left: 18px; bottom: -20px; width: 18px; height: 18px; border-left: var(--border); border-bottom: var(--border); background: var(--yellow); transform: skew(-24deg) rotate(-22deg); }
.coordinate-readout { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; background: var(--ink); color: var(--white); font-size: .65rem; }
.window-statusbar { min-height: 33px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 10px; border-top: var(--border); font-size: .68rem; font-weight: 800; }
.floating-note { position: absolute; z-index: 4; max-width: min(240px, 38%); padding: 9px 12px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: .68rem; font-weight: 950; line-height: 1.2; overflow-wrap: anywhere; text-align: center; }
.note-a { left: clamp(4px, 1vw, 12px); top: 12%; transform: rotate(-6deg); }
.note-b { right: clamp(4px, 1vw, 12px); bottom: 22%; transform: rotate(5deg); background: var(--blue); }
.note-c { left: clamp(4px, 1vw, 12px); bottom: clamp(4px, 1vw, 12px); transform: rotate(2deg); background: var(--green); }

.marquee { overflow: hidden; border-block: var(--border); background: var(--ink); color: var(--white); }
.marquee-track { --marquee-shift: 50%; --marquee-duration: 28s; display: flex; width: max-content; animation: marqueeMove var(--marquee-duration) linear infinite; will-change: transform; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; gap: clamp(18px, 2.2vw, 32px); padding: 15px clamp(13px, 2vw, 28px); font-weight: 950; letter-spacing: .08em; white-space: nowrap; }
.marquee-logo { flex: 0 0 auto; width: clamp(24px, 2.4vw, 34px); height: clamp(24px, 2.4vw, 34px); object-fit: contain; image-rendering: pixelated; }
.marquee-group i { width: 12px; height: 12px; background: var(--yellow); transform: rotate(45deg); }

.lore, .nowhere, .buy, .community { padding-block: clamp(90px, 10vw, 170px); }
.section-index { margin-bottom: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: .72rem; font-weight: 950; letter-spacing: .1em; }
.section-index.inverse { color: var(--white); border-color: rgba(255,255,255,.65); }
.section-heading { margin-bottom: clamp(50px, 6vw, 90px); }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(40px, 7vw, 110px); align-items: end; }
.eyebrow { margin: 0 0 14px; font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.inverse { color: var(--yellow); }
.section-heading h2, .nowhere-copy h2, .community-copy h2, .token-head h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(3.2rem, 6.5vw, 7.8rem); line-height: .88; letter-spacing: -.045em; text-transform: uppercase; }
.section-heading > p, .split-heading > p, .lab-heading > p { margin: 0; font-size: clamp(.96rem, 1.2vw, 1.16rem); line-height: 1.7; font-weight: 700; }

.timeline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--border); box-shadow: var(--shadow); }
.timeline-card { min-height: 410px; padding: 28px; border-right: var(--border); background: var(--white); display: flex; flex-direction: column; }
.timeline-card:last-child { border-right: 0; }
.timeline-year { width: max-content; padding: 5px 8px; border: 2px solid var(--ink); background: var(--paper); font-weight: 950; }
.timeline-icon { width: 92px; height: 92px; margin: auto 0 28px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; }
.timeline-icon img { width: 64px; image-rendering: pixelated; }
.timeline-card h3 { margin: 0; font-family: Impact, sans-serif; font-size: 2.1rem; letter-spacing: -.025em; text-transform: uppercase; }
.timeline-card p { margin: 12px 0 0; line-height: 1.55; font-size: .9rem; font-weight: 700; }
.yellow-card { background: var(--yellow); }
.dark-card { background: var(--ink); color: var(--white); }
.dark-card .timeline-year, .dark-card .timeline-icon { border-color: var(--white); background: var(--ink); }

.lab-section, .token-section, .roadmap { padding-block: clamp(90px, 10vw, 170px); background: var(--ink); color: var(--white); }
.lab-heading, .token-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: end; gap: clamp(40px, 7vw, 110px); margin-bottom: clamp(50px, 6vw, 90px); }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: 38px; align-items: start; }
.setup-window { color: var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.setup-body { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 560px; }
.setup-preview { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); border-right: var(--border); background: var(--paper-2); }
.preview-page { width: min(100%, 430px); aspect-ratio: .8; border: 2px solid var(--ink); background: var(--white); box-shadow: 6px 6px 0 rgba(0,0,0,.25); display: grid; place-items: center; overflow: hidden; }
.preview-page img { width: 74%; image-rendering: pixelated; transform-origin: center; transition: transform .25s steps(5, end), filter .2s; }
.setup-controls { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 22px; }
.setup-controls fieldset { margin: 0; padding: 14px 16px 16px; border: 2px solid var(--ink); }
.setup-controls legend { padding-inline: 8px; font-weight: 950; }
.setup-controls label { display: flex; align-items: center; gap: 9px; margin: 10px 0; font-size: .84rem; font-weight: 800; }
.setup-controls input[type="checkbox"], .setup-controls input[type="radio"] { appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid var(--ink); background: var(--white); }
.setup-controls input[type="checkbox"]:checked { background: linear-gradient(135deg, transparent 38%, var(--ink) 39% 53%, transparent 54%), linear-gradient(45deg, transparent 43%, var(--ink) 44% 58%, transparent 59%); }
.setup-controls input[type="radio"] { border-radius: 50%; }
.setup-controls input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--white); background: var(--ink); }
.scale-row { display: grid; grid-template-columns: 1fr 54px; gap: 12px; align-items: center; }
.scale-row input { accent-color: var(--ink); width: 100%; }
.scale-row output { border: 2px solid var(--ink); padding: 5px; text-align: center; font-size: .78rem; font-weight: 900; }
.dialog-buttons { margin-top: auto; display: flex; justify-content: flex-end; gap: 12px; }
.dialog-buttons button { min-width: 92px; min-height: 38px; border: 2px solid var(--ink); background: var(--white); font-weight: 900; cursor: pointer; }
.dialog-buttons .default-button { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--white), 0 0 0 7px var(--ink); margin: 7px; }
.lab-copy-stack { display: grid; gap: 28px; }
.terminal-card { border: 2px solid var(--yellow); background: #080b08; color: var(--green); box-shadow: 7px 7px 0 var(--yellow); }
.terminal-title { padding: 9px 12px; border-bottom: 2px solid var(--yellow); color: var(--yellow); font-weight: 950; }
.terminal-lines { min-height: 330px; padding: 22px; font-size: .86rem; line-height: 1.75; }
.terminal-lines p { margin: 0 0 5px; }
.terminal-cursor span { animation: cursorBlink .8s steps(1, end) infinite; }
.quote-card { padding: 28px; border: 2px solid var(--white); background: var(--yellow); color: var(--ink); box-shadow: 7px 7px 0 var(--white); transform: rotate(-1.3deg); }
.quote-card > span { font-size: .68rem; font-weight: 950; letter-spacing: .12em; }
.quote-card blockquote { margin: 18px 0 0; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.2vw, 2.5rem); line-height: 1.15; font-weight: 800; }

.nowhere-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(50px, 7vw, 110px); align-items: center; }
.map-window { transform: rotate(-1deg); }
.map-canvas { position: relative; min-height: 600px; overflow: hidden; background: var(--blue); }
.map-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(var(--ink) 2px, transparent 2px), linear-gradient(90deg, var(--ink) 2px, transparent 2px); background-size: 44px 44px; transform: perspective(600px) rotateX(55deg) scale(1.4); transform-origin: center bottom; }
.map-canvas::before, .map-canvas::after { content: ""; position: absolute; border: 3px solid var(--ink); border-radius: 45% 55% 52% 48%; background: var(--paper); }
.map-canvas::before { width: 45%; height: 56%; left: 4%; top: 14%; transform: rotate(-17deg); }
.map-canvas::after { width: 36%; height: 48%; right: 6%; bottom: 8%; transform: rotate(18deg); }
.map-label { position: absolute; z-index: 3; padding: 5px 8px; border: 2px solid var(--ink); background: var(--white); font-size: .68rem; font-weight: 950; }
.label-north { left: 10%; top: 8%; }
.label-nowhere { right: 7%; top: 48%; background: var(--yellow); transform: rotate(-4deg); }
.map-pin { position: absolute; z-index: 4; left: 69%; top: 57%; width: 42px; height: 42px; border: var(--border); background: var(--yellow); transform: rotate(45deg); box-shadow: 5px 5px 0 var(--ink); }
.map-pin span { position: absolute; inset: 11px; background: var(--ink); }
.map-dogcow { position: absolute; z-index: 5; left: 56%; top: 28%; width: 90px; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; animation: mapHop 2.4s steps(5, end) infinite; }
.map-radar { position: absolute; z-index: 2; left: 64%; top: 48%; width: 180px; height: 180px; border: 2px solid var(--ink); border-radius: 50%; animation: radarPulse 2.2s steps(8, end) infinite; }
.map-search { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-top: var(--border); }
.map-search input { min-width: 0; height: 36px; border: 2px solid var(--ink); padding-inline: 9px; background: var(--white); color: var(--ink); }
.map-search button { height: 36px; border: 2px solid var(--ink); background: var(--yellow); font-weight: 900; cursor: pointer; }
.nowhere-copy h2 { margin-bottom: 26px; }
.nowhere-copy > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.7; font-weight: 700; }
.nowhere-stats { margin-top: 35px; display: grid; grid-template-columns: repeat(3, 1fr); border: var(--border); box-shadow: var(--shadow); }
.nowhere-stats div { padding: 20px 14px; border-right: var(--border); background: var(--white); }
.nowhere-stats div:last-child { border-right: 0; }
.nowhere-stats strong { display: block; font-family: Impact, sans-serif; font-size: 2.5rem; }
.nowhere-stats span { display: block; margin-top: 4px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }

.token-section { background: var(--yellow); color: var(--ink); }
.token-section .section-index.inverse { color: var(--ink); border-color: var(--ink); }
.token-section .eyebrow.inverse { color: var(--ink); }
.token-head { margin-bottom: 55px; }
.token-badge { justify-self: end; width: min(100%, 330px); padding: 18px; border: var(--border); background: var(--ink); color: var(--white); box-shadow: 7px 7px 0 var(--white); display: flex; align-items: center; gap: 16px; font-weight: 950; }
.token-badge img { width: 56px; height: 56px; object-fit: contain; }
.token-dashboard { display: grid; grid-template-columns: 1fr .75fr .8fr; border: var(--border); box-shadow: 10px 10px 0 var(--ink); background: var(--white); }
.token-console { border-right: var(--border); }
.console-row { min-height: 66px; display: grid; grid-template-columns: 140px 1fr; align-items: center; border-bottom: 2px solid var(--ink); }
.console-row:last-child { border-bottom: 0; }
.console-row span { height: 100%; display: flex; align-items: center; padding-inline: 18px; border-right: 2px solid var(--ink); background: var(--paper); font-size: .7rem; font-weight: 950; }
.console-row strong { padding-inline: 20px; font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.disk-card { padding: 30px; border-right: var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; text-align: center; }
.floppy { position: relative; width: min(100%, 250px); aspect-ratio: 1; border: var(--border); background: var(--ink); box-shadow: 7px 7px 0 var(--yellow); padding: 20px; }
.floppy-label { height: 58%; border: 3px solid var(--white); background: var(--yellow); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.floppy-label span { font-family: Impact, sans-serif; font-size: 2.1rem; }
.floppy-label small { font-size: .55rem; font-weight: 900; }
.floppy-label img { width: 54px; margin-top: 8px; }
.floppy-slot { position: absolute; left: 25%; right: 25%; bottom: 18px; height: 42px; border: 3px solid var(--white); background: #666; }
.disk-card p { margin: 0; font-size: .92rem; line-height: 1.55; font-weight: 900; }
.token-actions-panel { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: var(--paper); }
.mini-contract { border: 2px solid var(--ink); background: var(--white); padding: 12px; display: grid; gap: 9px; }
.mini-contract span { font-size: .64rem; font-weight: 950; }
.mini-contract code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-contract button { width: 100%; }

.dividend-monitor {
  margin-top: clamp(44px, 6vw, 82px);
  scroll-margin-top: calc(var(--header-h) + 18px);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.dividend-titlebar { background-color: var(--white); }
.dividend-monitor-body {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  min-height: 390px;
}
.dividend-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border-right: var(--border);
  background: var(--paper);
}
.dividend-intro::after {
  content: "AAPLx";
  position: absolute;
  right: -12px;
  bottom: -22px;
  color: rgba(10,10,10,.055);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: .8;
  pointer-events: none;
}
.dividend-intro > * { position: relative; z-index: 1; }
.dividend-intro h3 {
  max-width: 700px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.8rem, 4.7vw, 5.9rem);
  line-height: .88;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.dividend-intro > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.65;
}
.dividend-status {
  width: max-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .68rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.dividend-status i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
}
.dividend-status.is-syncing i { background: var(--blue); animation: dividendBlink .8s steps(2, end) infinite; }
.dividend-status.is-live { background: var(--green); }
.dividend-status.is-live i { background: var(--ink); }
.dividend-status.is-error { background: var(--red); }
.dividend-ledger {
  min-width: 0;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dividend-primary {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  border-bottom: 2px solid var(--yellow);
  background:
    linear-gradient(rgba(243,186,47,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,186,47,.08) 1px, transparent 1px),
    var(--ink);
  background-size: 12px 12px;
}
.dividend-primary > span, .dividend-secondary > span {
  display: block;
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .1em;
}
.dividend-primary > div {
  min-width: 0;
  margin-top: 18px;
  display: flex;
  align-items: end;
  gap: 14px;
}
.dividend-primary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.1rem, 7vw, 8.2rem);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.035em;
}
.dividend-primary em {
  margin-bottom: .18em;
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 2.5rem);
  font-style: normal;
}
.dividend-secondary {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
}
.dividend-secondary + .dividend-secondary { border-left: 2px solid var(--yellow); }
.dividend-secondary strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  line-height: .9;
  letter-spacing: -.025em;
}
.dividend-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--border);
  background: var(--white);
}
.dividend-meta > div {
  min-width: 0;
  padding: 15px 18px;
  border-right: 2px solid var(--ink);
  display: grid;
  gap: 7px;
}
.dividend-meta > div:last-child { border-right: 0; }
.dividend-meta span { font-size: .6rem; font-weight: 950; }
.dividend-meta a, .dividend-meta strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dividend-meta a:not([aria-disabled="true"]) { text-decoration: underline; text-underline-offset: 3px; }
.dividend-meta a[aria-disabled="true"] { pointer-events: none; }

.buy-heading { align-items: start; }
.install-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--border); box-shadow: var(--shadow); }
.install-card { position: relative; min-height: 390px; padding: 28px; border-right: var(--border); background: var(--white); display: flex; flex-direction: column; }
.install-card:last-child { border-right: 0; }
.step-number { position: absolute; right: 18px; top: 16px; font-family: Impact, sans-serif; font-size: 3.5rem; color: rgba(10,10,10,.14); }
.install-icon { width: 90px; height: 90px; margin: 28px 0 auto; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; }
.install-icon img { width: 62px; image-rendering: pixelated; }
.install-card h3 { margin: 28px 0 0; font-family: Impact, sans-serif; font-size: 2rem; text-transform: uppercase; }
.install-card p { margin: 10px 0 22px; font-size: .86rem; line-height: 1.55; font-weight: 700; }
.progress-dots { display: flex; gap: 7px; margin-top: auto; }
.progress-dots i { width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--white); }
.progress-dots i.active { background: var(--ink); }
.featured-install { background: var(--yellow); }

.roadmap { background: #111; }
.boot-sequence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--yellow); }
.boot-sequence article { min-height: 330px; padding: 28px; border-right: 2px solid var(--yellow); display: flex; flex-direction: column; background: #070707; }
.boot-sequence article:last-child { border-right: 0; }
.boot-sequence article > span { color: var(--yellow); font-size: .7rem; font-weight: 950; }
.boot-sequence h3 { margin: auto 0 0; font-family: Impact, sans-serif; font-size: 2.1rem; text-transform: uppercase; }
.boot-sequence p { min-height: 88px; line-height: 1.5; font-size: .84rem; color: #d8d8d8; }
.boot-meter { height: 18px; border: 2px solid var(--yellow); padding: 2px; }
.boot-meter i { display: block; height: 100%; width: var(--progress); background: var(--yellow); animation: meterPulse 1.3s steps(3, end) infinite alternate; }

.community-window { transform: rotate(.4deg); }
.community-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.community-copy { padding: clamp(40px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.community-copy h2 { margin-bottom: 24px; }
.community-copy > p:not(.eyebrow) { max-width: 650px; line-height: 1.7; font-weight: 700; }
.community-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.community-visual { position: relative; overflow: hidden; border-left: var(--border); background: var(--yellow); display: grid; place-items: center; }
.community-visual img { position: relative; z-index: 3; width: 62%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; animation: dogcowFloat 3.2s steps(6, end) infinite; }
.network-ring { position: absolute; border: 3px solid var(--ink); border-radius: 50%; }
.ring-one { width: 28%; aspect-ratio: 1; }
.ring-two { width: 50%; aspect-ratio: 1; border-style: dashed; animation: spin 18s linear infinite; }
.ring-three { width: 78%; aspect-ratio: 1; animation: spinReverse 24s linear infinite; }
.network-node { position: absolute; z-index: 4; width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.node-a { left: 18%; top: 20%; }
.node-b { right: 14%; top: 30%; background: var(--blue); }
.node-c { left: 26%; bottom: 15%; background: var(--green); }
.node-d { right: 20%; bottom: 18%; background: var(--red); }

.site-footer { padding: 42px 0 calc(42px + env(safe-area-inset-bottom)); border-top: var(--border); background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 58px; filter: invert(1); }
.footer-brand div { display: grid; gap: 4px; }
.footer-brand strong { font-size: 1.3rem; }
.footer-brand span { color: var(--yellow); font-size: .65rem; font-weight: 900; }
.footer-disclaimer { max-width: 900px; margin: 0; color: #bebebe; font-size: .7rem; line-height: 1.55; }
.back-top { color: var(--yellow); font-size: .72rem; font-weight: 950; white-space: nowrap; }
.mobile-buy-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10001; transform: translate(-50%, 30px); opacity: 0; padding: 12px 16px; border: 2px solid var(--white); background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--yellow); font-size: .72rem; font-weight: 950; pointer-events: none; transition: .2s steps(4, end); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.lazy-section { opacity: 1; transform: none; }
.js .lazy-section { opacity: 0; transform: translateY(36px); }
.js .lazy-section.is-loaded { opacity: 1; transform: translateY(0); transition: opacity .65s steps(9, end), transform .65s steps(9, end); }

@keyframes bootLoad { to { width: 100%; } }
@keyframes dogcowFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes marqueeMove { to { transform: translate3d(calc(var(--marquee-shift) * -1), 0, 0); } }
@keyframes cursorBlink { 50% { opacity: 0; } }
@keyframes mapHop { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-13px) rotate(3deg); } }
@keyframes radarPulse { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes meterPulse { to { filter: brightness(1.7); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes dividendBlink { 50% { background: var(--white); } }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 36px, 1100px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 880px; }
  .hero-machine { width: min(900px, 100%); margin-inline: auto; }
  .dogcow-stage { min-height: 620px; }
  .timeline-grid, .install-grid, .boot-sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-card:nth-child(2), .install-card:nth-child(2), .boot-sequence article:nth-child(2) { border-right: 0; }
  .timeline-card:nth-child(-n+2), .install-card:nth-child(-n+2), .boot-sequence article:nth-child(-n+2) { border-bottom: var(--border); }
  .boot-sequence article:nth-child(-n+2) { border-bottom-color: var(--yellow); }
  .lab-layout, .nowhere-layout { grid-template-columns: 1fr; }
  .lab-copy-stack { grid-template-columns: 1fr 1fr; }
  .terminal-lines { min-height: 260px; }
  .token-dashboard { grid-template-columns: 1fr 1fr; }
  .token-console { grid-column: 1 / -1; border-right: 0; border-bottom: var(--border); }
  .disk-card { border-right: var(--border); }
  .dividend-monitor-body { grid-template-columns: 1fr; }
  .dividend-intro { border-right: 0; border-bottom: var(--border); }
  .community-body { grid-template-columns: 1.08fr .92fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .desktop-bar { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .desktop-nav, .chain-pill { display: none; }
  .menu-toggle, .mobile-menu { display: block; }
  .hero { padding-top: 62px; gap: 52px; }
  .hero h1 { font-size: clamp(5.2rem, 20vw, 9rem); }
  .split-heading, .lab-heading, .token-head { grid-template-columns: 1fr; align-items: start; }
  .section-heading h2, .nowhere-copy h2, .community-copy h2, .token-head h2 { font-size: clamp(3.4rem, 12vw, 6.5rem); }
  .setup-body { grid-template-columns: 1fr; }
  .setup-preview { border-right: 0; border-bottom: var(--border); }
  .preview-page { max-width: 380px; }
  .lab-copy-stack { grid-template-columns: 1fr; }
  .map-canvas { min-height: 500px; }
  .token-badge { justify-self: start; }
  .community-body { grid-template-columns: 1fr; }
  .community-visual { min-height: 500px; border-left: 0; border-top: var(--border); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .back-top { width: max-content; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 24px); --border: 2px solid var(--ink); --shadow: 5px 5px 0 var(--ink); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .crt-overlay { opacity: .11; }
  .system-brand { font-size: .9rem; }
  .mini-dogcow { width: 32px; height: 32px; }
  .hero { min-height: auto; padding-block: 44px 76px; gap: 38px; }
  .hero h1 { gap: clamp(10px, 3vw, 16px); font-size: clamp(4.4rem, 24vw, 7rem); line-height: .82; }
  .hero h1 .accent { -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
  .hero-intro { font-size: .95rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .pixel-button { width: 100%; min-height: 52px; }
  .ca-window-body { align-items: stretch; flex-direction: column; }
  .ca-window-body code { overflow-wrap: anywhere; white-space: normal; }
  .copy-ca { justify-content: center; }
  .hero-machine { width: calc(100% - 4px); }
  .dogcow-stage { min-height: clamp(340px, 96vw, 480px); }
  .dogcow-orbit { width: 84%; }
  .speech-bubble { right: 3%; top: 4%; min-width: 92px; padding: 12px 10px; font-size: 1rem; }
  .floating-note { max-width: 36%; font-size: .55rem; padding: 7px 8px; }
  .note-a { left: -2%; top: 15%; }
  .note-b { right: 4px; bottom: 19%; }
  .note-c { left: 4px; bottom: 4px; }
  .marquee-track { --marquee-duration: 22s; }
  .marquee-group { gap: 18px; padding: 12px 9px; font-size: .72rem; }
  .marquee-logo { width: 25px; height: 25px; }
  .marquee-group i { width: 9px; height: 9px; }
  .lore, .nowhere, .buy, .community, .lab-section, .token-section, .roadmap { padding-block: 78px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .nowhere-copy h2, .community-copy h2, .token-head h2 { font-size: clamp(3.1rem, 16vw, 5.2rem); }
  .timeline-grid, .install-grid, .boot-sequence { grid-template-columns: 1fr; }
  .timeline-card, .install-card, .boot-sequence article { min-height: 330px; border-right: 0 !important; border-bottom: var(--border); }
  .timeline-card:last-child, .install-card:last-child { border-bottom: 0; }
  .boot-sequence article { border-bottom-color: var(--yellow); }
  .boot-sequence article:last-child { border-bottom: 0; }
  .timeline-icon { margin-top: 54px; }
  .setup-body { min-height: auto; }
  .setup-preview { padding: 22px; }
  .preview-page { width: min(100%, 300px); }
  .setup-controls { padding: 20px 16px 28px; }
  .dialog-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .dialog-buttons button { width: 100%; }
  .terminal-lines { min-height: 255px; padding: 18px; font-size: .74rem; }
  .map-canvas { min-height: 410px; }
  .map-dogcow { width: 66px; }
  .map-radar { width: 130px; height: 130px; }
  .map-search { grid-template-columns: minmax(0, 1fr) auto; }
  .map-search span { display: none; }
  .nowhere-stats { grid-template-columns: 1fr; }
  .nowhere-stats div { border-right: 0; border-bottom: var(--border); }
  .nowhere-stats div:last-child { border-bottom: 0; }
  .token-dashboard { grid-template-columns: 1fr; }
  .token-console, .disk-card { grid-column: auto; border-right: 0; border-bottom: var(--border); }
  .console-row { grid-template-columns: 110px 1fr; min-height: 58px; }
  .console-row span { padding-inline: 12px; }
  .console-row strong { padding-inline: 14px; font-size: .88rem; word-break: break-word; }
  .disk-card, .token-actions-panel { padding: 24px 18px; }
  .dividend-monitor { box-shadow: 6px 6px 0 var(--ink); }
  .dividend-monitor-body { min-height: 0; }
  .dividend-intro { padding: 30px 20px 34px; }
  .dividend-intro h3 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .dividend-intro > p:not(.eyebrow) { overflow-wrap: anywhere; }
  .dividend-ledger { grid-template-columns: 1fr; }
  .dividend-primary { grid-column: auto; padding: 30px 18px; }
  .dividend-primary > div { align-items: start; flex-direction: column; gap: 7px; }
  .dividend-primary strong { font-size: clamp(3.2rem, 18vw, 5.8rem); }
  .dividend-primary em { margin: 0; font-size: 1.35rem; }
  .dividend-secondary + .dividend-secondary { border-left: 0; border-top: 2px solid var(--yellow); }
  .dividend-meta { grid-template-columns: 1fr; }
  .dividend-meta > div { border-right: 0; border-bottom: 2px solid var(--ink); }
  .dividend-meta > div:last-child { border-bottom: 0; }
  .community-copy { padding: 44px 22px; }
  .community-actions { display: grid; grid-template-columns: 1fr; }
  .community-visual { min-height: 390px; }
  .community-visual img { width: 72%; }
  .footer-grid { gap: 24px; }
  .mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: var(--border); background: var(--paper); }
  .mobile-buy-bar span, .mobile-buy-bar a { display: grid; place-items: center; font-weight: 950; }
  .mobile-buy-bar span { background: var(--ink); color: var(--white); }
  .mobile-buy-bar a { background: var(--yellow); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); width: calc(100% - 36px); text-align: center; }
}

@media (min-width: 1800px) {
  :root { --shell: min(1760px, calc(100vw - 96px)); }
  .desktop-bar { padding-inline: max(48px, calc((100vw - 1760px) / 2)); }
  .hero { grid-template-columns: .88fr 1.12fr; }
  .hero h1 { font-size: clamp(10rem, 9vw, 14rem); }
  .dogcow-stage { min-height: 760px; }
  .timeline-card { min-height: 470px; padding: 36px; }
  .setup-body { min-height: 650px; }
  .map-canvas { min-height: 680px; }
}

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

/* Intrinsic sizing guards for narrow screens and transformed retro windows */
html, body { max-width: 100%; overflow-x: clip; }
.hero, .marquee { max-width: 100vw; overflow-x: clip; }
.marquee { contain: paint; }
.hero-copy, .hero-machine,
.split-heading > *, .lab-heading > *, .token-head > *,
.lab-layout > *, .nowhere-layout > *, .community-body > *,
.token-dashboard > *, .setup-body > *, .dividend-monitor-body > *,
.dividend-ledger > *, .dividend-meta > * { min-width: 0; }
.section-heading h2, .nowhere-copy h2, .community-copy h2, .token-head h2 { max-width: 100%; }

@media (max-width: 900px) {
  .split-heading, .lab-heading, .token-head, .lab-layout, .nowhere-layout, .community-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .hero-window, .map-window, .community-window { transform: none; width: 100%; }
  .note-a { left: 4px; }
  .note-b { right: 4px; }
  .section-heading h2, .nowhere-copy h2, .community-copy h2, .token-head h2 {
    font-size: clamp(2.75rem, 13.2vw, 4.5rem);
  }
  .window-titlebar { grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 5px; padding-inline: 5px; font-size: .66rem; }
  .window-titlebar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .window-statusbar { font-size: .58rem; }
  .window-statusbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-intro, .section-heading > p, .split-heading > p, .lab-heading > p, .nowhere-copy > p:not(.eyebrow), .community-copy > p:not(.eyebrow) { overflow-wrap: anywhere; }
}
