* { box-sizing: border-box; }
:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(90deg, transparent 31px, #9ee85c 32px, transparent 33px), linear-gradient(transparent 31px, #9ee85c 32px, transparent 33px); background-size: 64px 64px; }
a { color: var(--accent); text-underline-offset: .25em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-alt); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: -5rem; left: 1rem; padding: .7rem 1rem; background: var(--accent); color: var(--background); }
.skip-link:focus { top: 1rem; }
.hero, main, footer { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.hero { padding: 1.1rem 0 4rem; border-bottom: 1px solid var(--accent); }
nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem 1.2rem; }
nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; min-height: 72vh; padding-top: 3rem; }
.eyebrow, .kicker { margin: 0 0 .8rem; color: var(--accent-alt); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: "Arial Narrow", Impact, sans-serif; font-stretch: condensed; text-transform: uppercase; }
h1 { max-width: 8ch; margin: 0 0 .22em; color: var(--text); font-size: clamp(4.4rem, 10vw, 8.8rem); line-height: .82; letter-spacing: -.035em; }
h2 { margin: .1em 0 .45em; font-size: clamp(2rem, 5vw, 4.6rem); line-height: .9; letter-spacing: -.02em; }
.lede { max-width: 52ch; color: var(--muted); font: clamp(1.05rem, 2vw, 1.35rem)/1.55 "Segoe UI", sans-serif; }
dl { display: grid; gap: .9rem; max-width: 42rem; margin-top: 2rem; }
dl div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-top: .7rem; border-top: 1px solid #3c6748; }
dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
dd { margin: 0; color: var(--text); font-weight: 800; }
.reserve-seal { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 24px #0e2318, 0 0 0 26px #3c6748, 0 0 70px rgb(158 232 92 / 24%); }
.reserve-seal::before, .reserve-seal::after, .reserve-seal i { content: ""; position: absolute; border: 1px solid #3c6748; border-radius: 50%; }
.reserve-seal::before { inset: 12%; }
.reserve-seal::after { inset: 25%; }
.reserve-seal i:nth-of-type(1) { inset: 36%; background: var(--surface); }
.reserve-seal i:nth-of-type(2) { width: 2px; height: 120%; border: 0; border-radius: 0; background: #3c6748; transform: rotate(45deg); }
.reserve-seal i:nth-of-type(3) { width: 2px; height: 120%; border: 0; border-radius: 0; background: #3c6748; transform: rotate(-45deg); }
.reserve-seal span { z-index: 2; color: var(--accent); font: 6rem/1 Georgia, serif; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-inline: 1px solid #3c6748; }
.metrics div { min-height: 10rem; padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #3c6748; border-bottom: 1px solid #3c6748; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.metrics div:last-child { border-right: 0; }
.metrics span, .metrics small { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.metrics strong { color: var(--accent); font: 2.3rem/1 "Arial Narrow", Impact, sans-serif; }
.reserve { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); padding: 8rem 0; align-items: center; }
.reserve-intro > p:last-child { max-width: 46ch; color: var(--muted); font-family: "Segoe UI", sans-serif; }
.reserve-console { position: relative; padding: clamp(1.2rem, 4vw, 2.8rem); border: 1px solid var(--accent); background: var(--surface); box-shadow: 12px 12px 0 #203e29; }
.console-label { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
#reserve-total { display: block; margin: .05em 0; color: var(--accent); font: clamp(5rem, 12vw, 9rem)/.95 "Arial Narrow", Impact, sans-serif; }
#omnath-size { margin: 0 0 1.4rem; color: var(--accent-alt); font-weight: 800; }
.reserve-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.reserve-actions button, .empty-reserve { min-height: 48px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; font-weight: 900; }
.reserve-actions button:hover, .empty-reserve:hover { background: var(--accent); color: var(--background); }
.empty-reserve { width: 100%; margin-top: .5rem; border-color: var(--accent-alt); color: var(--accent-alt); }
.console-note { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid #3c6748; color: var(--muted); font: .84rem/1.55 "Segoe UI", sans-serif; }
.section-heading { max-width: 730px; }
.guide { padding: 2rem 0 8rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.guide-card { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #3c6748; background: linear-gradient(135deg, var(--surface), #0a2014); }
.guide-card:nth-child(3n) { border-color: var(--accent-alt); }
.guide-card h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.guide-card > p:not(.kicker) { color: var(--muted); font-family: "Segoe UI", sans-serif; }
.section-cards { padding-top: 1rem; border-top: 1px solid #3c6748; font-size: .8rem; }
.section-cards strong { color: var(--text); }
.boundary { margin-bottom: 8rem; padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid var(--accent-alt); background: var(--accent-alt); color: var(--background); }
.boundary .eyebrow { color: #274011; }
.boundary h2 { max-width: 18ch; }
.boundary > p:last-child { max-width: 74ch; font-family: "Segoe UI", sans-serif; }
.catalog { padding: 2rem 0; }
.catalog-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin: 2rem 0; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
input, select { width: 100%; min-height: 48px; border: 1px solid #3c6748; border-radius: 0; padding: .65rem .8rem; background: var(--surface); color: var(--text); }
#catalog-status { min-width: 11rem; color: var(--muted); font-size: .77rem; }
.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: #3c6748; }
.deck-card { min-width: 0; padding: .95rem; background: var(--surface); }
.deck-card div { display: grid; gap: .25rem; }
.deck-card span, .deck-card p { margin: 0; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.deck-card[hidden] { display: none; }
footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 5rem; padding: 2rem 0 4rem; border-top: 1px solid #3c6748; color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) {
  .hero-layout, .reserve { grid-template-columns: 1fr; }
  .reserve-seal { width: min(72vw, 350px); margin-top: 2rem; }
  .metrics, .deck-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .catalog-controls { grid-template-columns: 1fr 1fr; }
  #catalog-status { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero, main, footer { width: min(100% - 1.1rem, 1140px); }
  .hero-layout { min-height: auto; }
  h1 { font-size: clamp(3.8rem, 20vw, 5.8rem); }
  dl div { grid-template-columns: 1fr; }
  .metrics, .guide-grid, .deck-grid, .catalog-controls { grid-template-columns: 1fr; }
  .metrics div, .metrics div:nth-child(2) { border-right: 0; }
  .reserve-actions { grid-template-columns: repeat(2, 1fr); }
  footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
