@font-face {
  font-family: "Silkscreen";
  src: url("/static/fonts/Silkscreen-Regular.50fe74f11000.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/static/fonts/Silkscreen-Bold.9492064671b6.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f3e8;
  --paper-2: #efe9db;
  --panel: #fffdf7;
  --ink: #161412;
  --muted: #6b645c;
  --line: #d9d2c3;
  --red: #e0452f;
  --red-dark: #b83322;
  --green: #2f7d4f;
  --blue: #2f8fd8;
  --gold: #f6c945;
  --shadow: 4px 4px 0 var(--ink);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1200px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; }
h1, h2 { font-family: var(--font-pixel); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }
.reading { max-width: 70ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 64px; padding-block: 0.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); font-family: var(--font-pixel); font-size: 18px;
}
.brand-name { font-family: var(--font-pixel); font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.94rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pixel-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 2px solid var(--ink); background: var(--panel);
  padding: 0.35rem 0.6rem; font-weight: 700; font-size: 0.82rem;
  box-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
}
.pixel-pill .dot { width: 10px; height: 10px; background: var(--red); border: 1px solid var(--ink); }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 1rem; border: 2px solid var(--ink);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn:hover { color: var(--ink); background: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { min-height: 36px; padding: 0.35rem 0.7rem; font-size: 0.86rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Panels and forms */
.panel {
  background: var(--panel); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.panel-flat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.stack > * + * { margin-top: 0.9rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 1.5rem; align-items: start; }

form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: 0.55rem 0.7rem;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); }
.helptext, .errorlist { font-size: 0.86rem; color: var(--muted); margin: 0.35rem 0 0; }
.errorlist { color: var(--red-dark); font-weight: 600; list-style: none; padding: 0; }
.form-errors { border: 2px solid var(--red); background: #fff2ef; padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.divider { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.85rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* Messages and badges */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { border: 2px solid var(--ink); background: var(--panel); padding: 0.7rem 1rem; border-radius: var(--radius-sm); box-shadow: 2px 2px 0 var(--ink); margin-bottom: 0.5rem; }
.messages .success { background: #eaf6ee; }
.messages .error { background: #fff2ef; }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--paper-2); }
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: #dff1e5; }
.badge-blue { background: #e2f0fb; }
.badge-gold { background: #fff1bf; }

/* Hero */
.hero { padding: 2rem 0 1.25rem; }
.eyebrow { font-family: var(--font-pixel); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 0.6rem; }
.hero h1 { max-width: 18ch; }
.hero-lede { font-size: 1.12rem; max-width: 62ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.stat-chip { border: 2px solid var(--ink); background: var(--panel); padding: 0.4rem 0.7rem; box-shadow: 2px 2px 0 var(--ink); font-size: 0.82rem; }
.stat-chip strong { font-family: var(--font-pixel); font-size: 1rem; }

/* Board */
.board-app { position: relative; }
.board-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  border: 2px solid var(--ink); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper-2); padding: 0.5rem;
}
.tool-group { display: flex; gap: 0.25rem; }
.tool-btn {
  min-width: 40px; min-height: 40px; padding: 0.35rem 0.6rem;
  border: 1px solid var(--ink); background: var(--panel); font: inherit; font-size: 0.8rem;
  font-weight: 700; cursor: pointer; border-radius: 6px;
}
.tool-btn.is-active { background: var(--ink); color: var(--paper); }
.swatches { display: flex; flex-wrap: wrap; gap: 3px; max-width: 420px; }
.swatch { width: 26px; height: 26px; border: 1px solid var(--ink); cursor: pointer; padding: 0; border-radius: 4px; }
.swatch.is-active { outline: 3px solid var(--ink); outline-offset: 1px; }
.zoom-controls { display: flex; gap: 0.25rem; margin-left: auto; }
.canvas-wrap {
  position: relative; border: 2px solid var(--ink);
  background: #ded6c4; overflow: hidden; touch-action: none;
  aspect-ratio: 3 / 2; width: 100%;
}
.canvas-wrap canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: crosshair; touch-action: none; }
.board-status {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--panel); padding: 0.45rem 0.7rem; font-size: 0.82rem;
}
.board-label { font-family: var(--font-pixel); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pixel-hint { color: var(--muted); }

/* Side panel */
.side-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.big-number { font-family: var(--font-pixel); font-size: 2.4rem; line-height: 1; }
.quota-bar { height: 12px; border: 2px solid var(--ink); background: #fff; margin: 0.5rem 0; }
.quota-bar span { display: block; height: 100%; background: var(--red); }
.streak-dots { display: flex; gap: 4px; margin-top: 0.5rem; }
.streak-dots i { width: 14px; height: 14px; border: 1px solid var(--ink); background: #fff; }
.streak-dots i.on { background: var(--gold); }
.powerup-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.5rem; }
.powerup-chip {
  flex: 0 0 auto; width: 92px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 0.35rem; text-align: center; cursor: pointer; font: inherit;
}
.powerup-chip img { width: 56px; height: 56px; image-rendering: pixelated; display: block; margin: 0 auto; }
.powerup-chip span { display: block; font-size: 0.68rem; font-weight: 700; margin-top: 0.2rem; }
.powerup-chip.is-active { outline: 3px solid var(--red); }

/* Leaderboard */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.rank { font-family: var(--font-pixel); font-size: 1.1rem; }
.avatar {
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--ink); font-size: 0.75rem; font-weight: 800;
}
.leader-name { display: flex; align-items: center; gap: 0.5rem; }

/* Marketing sections */
.section { padding: 2.5rem 0; }
.section-tight { padding: 1.5rem 0; }
.section-head { max-width: 65ch; margin-bottom: 1.25rem; }
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { border: 2px solid var(--ink); background: var(--panel); padding: 1rem; border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-pixel); color: var(--red); font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.banner {
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 1.25rem; border-radius: var(--radius); box-shadow: 5px 5px 0 var(--red);
}
.banner a { color: var(--gold); }
.banner h2 { color: var(--paper); }
.price-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--panel); padding: 1.25rem; display: flex; flex-direction: column; }
.price-card.recommended { box-shadow: var(--shadow); }
.price { font-family: var(--font-pixel); font-size: 2rem; }
.price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0.75rem 0 1.25rem; }
.feature-list li { padding-left: 1.4rem; position: relative; margin-bottom: 0.4rem; }
.feature-list li::before { content: "■"; position: absolute; left: 0; color: var(--red); font-size: 0.7rem; top: 0.4rem; }
.membership-card { border: 2px solid var(--ink); background: var(--panel); box-shadow: 6px 6px 0 var(--gold); border-radius: var(--radius); padding: 1.5rem; }
.land-map-wrap { aspect-ratio: 380 / 280; }
.quote-panel { font-size: 0.92rem; }
.quote-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.quote-row:last-child { border-bottom: 0; }
.quote-total { font-family: var(--font-pixel); font-size: 1.4rem; }
.deco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.4rem; max-height: 240px; overflow: auto; padding: 0.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.deco-btn { border: 1px solid var(--line); background: #fff; padding: 0.3rem; border-radius: 6px; cursor: pointer; font: inherit; }
.deco-btn img { width: 40px; height: 40px; image-rendering: pixelated; display: block; margin: 0 auto; }
.deco-btn.is-active { outline: 3px solid var(--red); }

/* Auth */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(100%, 420px); background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .brand { justify-content: center; margin-bottom: 1rem; }
.auth-alt { margin-top: 1rem; font-size: 0.9rem; }
details.auth-details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
details.auth-details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* Account */
.account-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.account-nav { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 0.5rem; }
.account-nav a { display: block; padding: 0.55rem 0.7rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.account-nav a:hover, .account-nav a[aria-current="page"] { background: var(--paper-2); }
.metric { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; background: var(--panel); }
.metric .value { font-family: var(--font-pixel); font-size: 1.6rem; display: block; }
.metric .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.code { font-family: ui-monospace, monospace; font-size: 0.95rem; border: 1px dashed var(--ink); padding: 0.5rem; background: #fff; letter-spacing: 0.04em; }
.passkey-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.passkey-row:last-child { border-bottom: 0; }

/* Ops */
.ops-body .site-header { border-bottom-color: var(--red); }
.ops-badge { background: var(--red); color: #fff; border: 2px solid var(--ink); padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.report-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem; background: var(--panel); }
.report-card img { width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; background: var(--paper-2); border: 1px solid var(--line); }
.check-row { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-dot { width: 12px; height: 12px; margin-top: 0.35rem; border: 1px solid var(--ink); flex: 0 0 auto; }
.check-dot.ok { background: var(--green); }
.check-dot.degraded, .check-dot.unknown { background: var(--gold); }
.check-dot.down, .check-dot.failing { background: var(--red); }
.check-dot.pending { background: #fff; }

/* Watchdog */
.state-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.75rem 0; }
.state-pill { border: 2px solid var(--ink); padding: 0.3rem 0.7rem; font-weight: 800; }
.state-healthy { background: #dff1e5; }
.state-degraded { background: #fff1bf; }
.state-down { background: #ffd9d1; }
.state-unknown { background: var(--paper-2); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; }
.week-day { border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem; min-height: 78px; background: var(--panel); }
.week-day strong { display: block; font-size: 0.72rem; text-transform: uppercase; color: var(--muted); }
.week-day .bar { height: 8px; border: 1px solid var(--ink); margin-top: 0.4rem; background: #fff; }
.week-day .bar span { display: block; height: 100%; }
.week-day.healthy .bar span { background: var(--green); }
.week-day.degraded .bar span { background: var(--gold); }
.week-day.down .bar span { background: var(--red); }
.week-day.empty .bar span { background: var(--line); }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 2px solid var(--ink); background: var(--paper-2); padding: 1.5rem 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; font-size: 0.86rem; }
.watchdog-link { font-size: 0.82rem; font-weight: 700; text-decoration: none; border-bottom: 1px dotted var(--ink); }
.footer-note { max-width: 42ch; font-size: 0.78rem; color: var(--muted); }

/* Modal and toast */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22, 20, 18, 0.55); z-index: 90;
  display: grid; place-items: center; padding: 1rem;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(100%, 520px); max-height: 90vh; overflow: auto; background: var(--panel);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); padding: 1.25rem;
}
.modal h2 { font-size: 1.5rem; }
.modal-close { float: right; border: 0; background: none; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: 8px;
  z-index: 100; max-width: 90vw; box-shadow: 3px 3px 0 var(--red); font-size: 0.9rem;
}
.toast[hidden] { display: none; }
.result-art { width: 96px; height: 96px; image-rendering: pixelated; display: block; margin: 0 auto 0.5rem; }
.claim-result { text-align: center; }
.claim-amount { font-family: var(--font-pixel); font-size: 3rem; color: var(--red); line-height: 1; }

/* Utility */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.wrap-gap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; flex-wrap: wrap; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .ops-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 0.75rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav.is-open a { width: 100%; padding: 0.6rem 0; }
  .menu-toggle { display: inline-flex; }
  .header-actions .pixel-pill { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .swatches { max-width: 100%; }
  .report-card { grid-template-columns: 1fr; }
  .report-card img { width: 100%; height: auto; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .ops-grid { grid-template-columns: 1fr; }
  .code-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* final shell fixes */
.inline-form { display: inline; }
.footer-brand { margin-bottom: 0.5rem; }
.footer-note-gap { margin-top: 0.5rem; }
.eyebrow-gold { color: var(--gold); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.land-preview { width: 100%; height: auto; image-rendering: pixelated; }
