:root {
  color-scheme: dark;
  --paper: #fff2d1;
  --orange: #ff9c32;
  --acid: #b6ff57;
  --dim: #bbaf98;
  --edge: #40382b;
  --base: #110e0a;
  --mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --cut: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--paper); font: 16px/1.55 "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:where(button,a,input,summary):focus-visible, .file-picker:focus-within { outline: 2px dashed var(--acid); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .43; }
h1,h2,h3,p { margin: 0; }
h2 { font-family: "Arial Black", "Segoe UI", sans-serif; font-weight: 900; font-size: clamp(44px, 6vw, 92px); line-height: .98; letter-spacing: -.085em; }
.wrap { width: min(1330px, 92%); margin-inline: auto; }
.masthead { height: 66px; padding: 0 max(4vw, 15px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; border-bottom: 1px solid #78634a; background: #18120a; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 900 24px/1 var(--mono); letter-spacing: -.065em; width: fit-content; }
.emblem { width: 16px; height: 16px; display: inline-block; flex: 0 0 16px; background: linear-gradient(90deg,var(--orange) 50%,var(--acid) 50%); clip-path: polygon(25% 0,75% 0,75% 25%,100% 25%,100% 75%,75% 75%,75% 100%,25% 100%,25% 75%,0 75%,0 25%,25% 25%); }
.masthead nav { display: flex; align-items: center; gap: 28px; font: 600 13px var(--mono); }
.masthead nav a:hover,.quiet:hover { text-decoration: underline; text-underline-offset: 5px; }
.film-button { justify-self: end; border: 1px solid #785c37; background: #342518; color: var(--paper); padding: 9px 14px; font: 650 12px var(--mono); white-space: nowrap; }
.film-button span { color: var(--orange); margin-right: 3px; }
.hero { background: #21150c; min-height: 635px; min-height: clamp(590px, 79svh, 800px); position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: end; border-bottom: 1px solid #826338; }
.hero-art,.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero-art { background: linear-gradient(90deg,#150f09c0,transparent 65%),linear-gradient(0deg,#130e08 1%,#140e0a8a 28%,transparent 68%), url(hero.webp) center 49% / cover no-repeat, linear-gradient(100deg,#4b220d 0 49.9%,#253f15 50%); }
.hero-axis { position: absolute; inset: 20px 4vw auto; display: flex; justify-content: space-between; font: 700 10px var(--mono); letter-spacing: .15em; color: #ffd3a1; }
.hero-axis span:last-child { color: #d2ff91; }
.hero-inner { padding: 82px 4vw 60px; }
.eyebrow { font: 800 12px/1.35 var(--mono); letter-spacing: .17em; }
.hero .eyebrow { color: #ffd197; }
.hero h1 { font-family: "Arial Black", "Segoe UI", sans-serif; font-size: clamp(90px, 14vw, 220px); line-height: .8; font-weight: 950; letter-spacing: -.108em; margin: 22px 0 19px -.045em; color: #fff1d2; text-shadow: 0 4px #27150b; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-inner > p:not(.eyebrow) { max-width: 420px; color: #fff0d2; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 46px; padding: 10px 15px; border: 1px solid #73553a; background: #2f2115; color: var(--paper); font: 800 13px/1.2 var(--mono); text-align: left; }
.button:hover:not(:disabled) { border-color: var(--paper); }
.button.orange,.button.green { border: 0; color: #16110b; clip-path: var(--cut); min-height: 53px; }
.button.orange { background: var(--orange); }
.button.green { background: var(--acid); }
.button.orange:focus-visible,.button.green:focus-visible { outline-offset: -5px; outline-color: #16110b; }
.button.orange:hover { background: #ffc879; }
.button.green:hover:not(:disabled) { background: #d7ff9f; }
.outline { background: transparent; border-color: #63533d; }
.quiet { font: 750 13px var(--mono); }
.hero-block { color: var(--paper); position: absolute; right: 4vw; bottom: 61px; display: flex; align-items:center; gap: 12px; padding: 12px 14px; background: #17190fee; border: 1px solid #9ca96a; box-shadow: 5px 5px #080a06; }
.hero-block small,.hero-block strong { display: block; }
.hero-block small { color: var(--acid); font: 700 10px var(--mono); letter-spacing: .12em; }
.hero-block strong { font: 850 18px var(--mono); }
.pulse { width: 8px; height: 8px; background: var(--acid); box-shadow: 0 0 15px #a1ffa5; }
.yard { padding: 82px 0 98px; }
.orange-ink { color: var(--orange); }
.green-ink { color: var(--acid); }
.section-top { display:flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.section-top h2,.manual h2 { margin-top: 8px; }
.feed-status,.block-time { color: var(--dim); font: 12px/1.45 var(--mono); }
.yard-tools { display: grid; grid-template-columns: auto minmax(180px, 500px) auto; justify-content: start; gap: 10px; align-items: center; margin: 24px 0; }
.yard-tools label { color: var(--paper); font: 750 13px var(--mono); }
.yard-tools input { min-width: 0; width: 100%; color: var(--paper); background: #211910; border: 1px solid #685940; min-height: 46px; padding: 0 12px; }
.yard-tools input::placeholder { color: #b6a890; }
.yard-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 23px; }
.yard-control,.segmented { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.yard-control { margin-bottom: 11px; color:var(--dim); font: 13px var(--mono); }
.segmented { gap: 0; border: 1px solid #524633; }
.segmented button { background: transparent; border: 0; color: var(--paper); min-height: 36px; padding: 6px 9px; font: 650 11px var(--mono); }
.segmented [aria-pressed=true] { background: #59361e; color: #fff1d7; }
.block-grid { display:grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.block-tile { min-width:0; min-height:92px; position: relative; background: linear-gradient(0deg,#985017 var(--fill),#342219 var(--fill)); border:1px solid #675037; color:#fff4dc; padding: 10px 8px; display: flex; flex-direction: column; align-items:start; justify-content: end; font: 800 clamp(11px, 1.16vw, 16px) var(--mono); text-align: left; }
.block-tile small { font-size: 9px; color:#ffe4b8; }
.block-tile[aria-pressed=true] { border-color: var(--orange); background: linear-gradient(0deg,#a85f20 var(--fill),#623c1d var(--fill)); box-shadow: inset 0 0 0 1px var(--orange); }
.block-tile:hover { border-color: #ffd293; }
.inspector { background: #211810; border-left: 3px solid var(--orange); padding: 17px 19px; overflow-wrap: anywhere; }
.inspector h3 { font: 900 clamp(33px,5vw,60px)/1.15 var(--mono); letter-spacing: -.08em; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 13px var(--mono); }
.stats div { min-width: 55px; }
.stats dt { color: var(--dim); font-size: 10px; }
.stats dd { margin: 3px 0 0; font-size: 15px; font-weight: 800; }
.hash { font: 12px/1.45 var(--mono); color: #ffcf95; margin-top: 6px; }
.inspector-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: #ffdcad; font: 700 12px var(--mono); }
.inspector-actions a { text-decoration: underline; text-underline-offset: 3px; }
.press { background: #171e10; border-block: 1px solid #596846; background-image: radial-gradient(circle at 3px 3px,#78905425 1px,transparent 1px); background-size: 15px 15px; }
.press-inner { padding: 65px 0; }
.anchor { color: #ddeec9; font: 700 12px var(--mono); padding: 9px 10px; border: 1px solid #647646; }
.press-floor { display: grid; grid-template-columns: minmax(290px,.8fr) 1.25fr; gap: 25px; margin-top: 25px; }
.press-settings,.relay-deck { background: #10150e; border: 1px solid #526347; padding: 18px; min-width:0; }
fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width:0; }
legend,.copies { margin-bottom: 8px; font: 750 13px var(--mono); }
.stencils { display:grid; grid-template-columns:repeat(3,1fr); gap: 6px; }
.stencils label { position: relative; min-width: 0; }
.stencils input,.file-picker input { position: absolute; inset: 0; opacity:0; margin:0; cursor: pointer; width:100%; height:100%; }
.stencils span { display: grid; gap:3px; padding: 9px 7px; border: 1px solid #58664e; font: 800 12px var(--mono); background: #21301a; }
.stencils b { font-size: 20px; }
.stencils small { font-size: 9px; font-weight:500; }
.stencils input:checked + span { color:#131c0a; background: var(--acid); border-color: var(--acid); }
.stencils input:focus-visible + span { outline: 2px solid #fff5cd; outline-offset: -4px; }
.copies { display:flex; justify-content:space-between; }
#copies { width:100%; accent-color:var(--acid); margin:0; }
.budget { margin: 14px 0; font: 13px var(--mono); }
.budget > div { display:flex; justify-content:space-between; gap:10px; }
meter { width:100%; height:14px; accent-color:var(--acid); }
meter::-webkit-meter-bar { background: #273923; border:0; border-radius:0; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value { background: var(--acid); }
.budget[data-over=true] strong { color:#ffc986; }
.budget[data-over=true] meter::-webkit-meter-suboptimum-value { background:#f69c47; }
.run { width: 100%; }
.run-state { min-height: 2.6em; margin-top: 8px; color:#e5eecf; font-size: 13px; }
.deck-title { display:flex; justify-content: space-between; align-items:center; min-height:27px; font:700 12px var(--mono); color:var(--acid); }
.button.tiny { padding: 5px 8px; min-height:30px; font-size:10px; }
.signal-window { position: relative; aspect-ratio: 16 / 8; margin-top: 10px; background:#0b0e08; border:1px solid #536345; overflow:hidden; }
.signal-window canvas { width:100%; height:100%; image-rendering: pixelated; display:block; }
.signal-window p { position:absolute; inset:auto 10px 8px; font:800 10px var(--mono); color:#cdfa9c; pointer-events:none; }
.timeline { display:grid; grid-template-columns: repeat(3,1fr); list-style:none; gap: 9px; padding:0; margin:12px 0 0; }
.timeline li { border-top:2px solid #4b5b40; color:#bbc8ad; padding-top:8px; font:650 12px var(--mono); }
.timeline li span { margin-right:4px; font-size: 10px; }
.timeline li[data-current=true] { color:var(--acid); border-color:var(--acid); }
.receipt { border-top:1px solid #657452; padding-top:18px; margin-top:24px; display:flex; justify-content:space-between; gap: 15px; align-items:center; }
.receipt h3 { font:800 20px var(--mono); }
.receipt p,.receipt-check { color:#d0dcc6; font-size:13px; }
.receipt-hash { font:11px var(--mono); overflow-wrap:anywhere; }
.receipt-actions { display:flex; flex-wrap:wrap; gap:8px; }
.file-picker { position:relative; }
.receipt-check { margin-top: 8px; min-height:1.5em; }
.manual { display:grid; grid-template-columns:1fr 1.65fr; gap:31px; padding:70px 0 100px; }
.questions details { border-top:1px solid #514331; padding:14px 3px; }
.questions summary { cursor:pointer; font:750 15px/1.45 var(--mono); }
.questions p { color:var(--dim); margin:8px 0 0 18px; max-width:65ch; }
.footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; font-size:13px; border-top:1px solid var(--edge); padding:24px 0; color:var(--dim); }
.footer a:last-child { text-decoration: underline; text-underline-offset:3px; }
dialog { color:var(--paper); background:#20180e; border:1px solid #895d31; width:min(86vw,900px); max-width:none; padding:15px; }
dialog::backdrop { background:#090806eb; }
.film-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.film-head h2 { font:800 15px var(--mono); letter-spacing:0; }
dialog video { width:100%; background:#080906; aspect-ratio:16 / 9; }
#filmState { font:13px var(--mono); }
@media (max-width: 750px) {
  .masthead { height:58px; grid-template-columns:1fr auto; gap:8px; }
  .masthead nav { display:none; }
  .hero { min-height:620px; min-height:clamp(590px,76svh,690px); }
  .hero-art { background-position:center,center,48% 32%,center; background-size:auto,auto,auto 94%,auto; }
  .hero-inner { padding-bottom:105px; }
  .hero h1 { font-size:clamp(74px,17vw,125px); margin-top:16px; }
  .hero-block { right:auto; left:4vw; bottom:24px; }
  .yard,.manual,.press-inner { padding:52px 0; }
  .yard-layout,.press-floor,.manual { grid-template-columns:1fr; }
  .block-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .block-tile { min-height:70px; padding:6px 4px; }
  .block-tile small { font-size:8px; }
  .receipt { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 430px) {
  .hero-actions { gap:10px 16px; }
  .hero .quiet { font-size:11px; }
  .hero-inner > p:not(.eyebrow) { font-size:16px; }
  .hero-axis { font-size:8px; }
  .section-top { flex-wrap:wrap; }
  .yard-tools { grid-template-columns:minmax(100px,1fr) auto; }
  .yard-tools label { grid-column:1 / -1; }
  .press-settings,.relay-deck { padding:12px; }
  .block-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .block-tile { min-height:58px; padding:6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
}

.hero h1 { font-size: clamp(90px, 12vw, 190px); }
.hero h1 em { background: linear-gradient(90deg, var(--orange) 0 92%, #d2ff80 92%); background-clip:text; color:transparent; text-shadow:none; }
.hero-canvas { image-rendering: pixelated; }
.hero-axis span { background: #171309ba; box-shadow: 3px 3px #0004; border: 1px solid #c48d5250; padding: 5px 7px; }
.hero-axis span:last-child { border-color: #b9ff6d50; }
.hero .pulse { animation: pixels 2s steps(4,end) infinite; }
@keyframes pixels { 50% { opacity:.52; box-shadow: 0 0 17px #b4ff68; } }
.relay-deck { background: linear-gradient(120deg,#192413 0 12%,#10150e 12%); border-top:3px solid #7e9e53; }
.signal-window { box-shadow: inset 0 0 42px #030802; }
.timeline li { transition: border-color .18s, color .18s; }
@media (max-width:750px) {
  .hero { min-height:620px; }
  .hero-art {
    background-image: linear-gradient(0deg,#130e08 3%,#130e08 34%,#160f0a6e 54%,transparent 78%), url(hero.webp), linear-gradient(90deg,#4b220d 0 49.9%,#253f15 50%);
    background-size: auto, 150% auto, auto;
    background-position: center, 50% 11%, center;
    background-repeat:no-repeat;
  }
  .hero h1 { font-size:clamp(76px,16.5vw,125px); }
  .hero-inner { padding-top:235px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero .pulse { animation:none; }
  .timeline li { transition:none; }
}

.mast-actions { justify-self:end; display:flex; gap:8px; }
.motion-toggle { color:#f3dcb5; background:#21170e; }
body[data-motion-paused=true] .hero .pulse { animation:none; }
.receipt-verification { min-height:2.4em; display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; margin-top:8px; }
.receipt-verification .receipt-check { margin-top:0; }
.receipt-verification button { min-height:36px; }
@media (max-width:430px) {
  .masthead { padding-inline:10px; }
  .mast-actions { gap:4px; }
  .film-button { font-size:10px; padding:8px 7px; }
  .wordmark { font-size:21px; }
  .press-floor { gap:14px; }
  .block-tile { min-height:64px; }
  .stencils span { padding-inline:5px; }
  .stencils small { font-size:9px; white-space:nowrap; }
  .receipt-actions .button { padding-inline:9px; font-size:11px; }
}

/* The art occupies both halves above a shared arcade control rail. */
.hero { text-align:center; justify-items:center; }
.hero-art {
  background-image:linear-gradient(0deg,#100e0a 0%,#110f0be8 18%,#10100b68 44%,transparent 70%),url(hero.webp),linear-gradient(90deg,#4b220d 50%,#253f15 50%);
  background-size:auto,cover,auto;
  background-position:center,center 43%,center;
  background-repeat:no-repeat;
}
.hero-inner {
  width:min(100%,1120px);
  position:relative;
  padding:0 19px 108px;
}
.hero h1 {
  margin:9px 0 14px;
  font-size:clamp(80px,10vw,155px);
  line-height:.9;
  letter-spacing:-.09em;
}
.hero h1 span { color:#ffac52; }
.hero h1 em { color:#c4ff69; background:none; }
.hero .eyebrow { color:#f6dfab; display:inline-block; padding:4px 8px; background:#15120cbd; }
.hero-inner > p:not(.eyebrow) { margin-inline:auto; max-width:560px; }
.hero-actions { justify-content:center; margin-top:17px; }
.hero .quiet { color:#d3fb99; }
.hero-block {
  bottom:24px;
  right:auto;
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  text-align:left;
  padding:7px 10px;
}
.hero-block strong { font-size:14px; }
@media (max-width:750px) {
  .hero { min-height:600px; }
  .hero-art {
    background-image:linear-gradient(0deg,#100e0a 0%,#100e0a 40%,#18120840 67%,transparent 79%),url(hero.webp),linear-gradient(90deg,#4b220d 50%,#253f15 50%);
    background-size:auto,150% auto,auto;
    background-position:center,center 9%,center;
  }
  .hero h1 { font-size:clamp(53px,12.5vw,90px); }
  .hero-inner { padding:220px 15px 107px; }
}
@media (max-width:380px) {
  .hero h1 { font-size:clamp(45px,12.3vw,53px); }
  .hero-actions { gap:11px; }
  .hero .button.orange { padding-inline:10px; font-size:12px; min-height:46px; }
}
