:root {
  --bg: #0a0c0b;
  --bg-2: #111513;
  --bg-3: #171d1a;
  --line: rgba(52, 217, 123, 0.24);
  --line-soft: rgba(243, 246, 241, 0.12);
  --emerald: #34d97b;
  --emerald-2: #5ee89a;
  --emerald-deep: #0f6b3c;
  --gold: #f2c14e;
  --gold-2: #ffd978;
  --white: #f3f6f1;
  --muted: #b6c3ba;
  --warn: #ffa585;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-locked { overflow: hidden; }

/* No text selection / copy callouts anywhere while a kick is being charged */
html.is-charging, html.is-charging * { -webkit-user-select: none !important; -moz-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background:
    radial-gradient(circle at 12% -8%, rgba(52, 217, 123, 0.14), rgba(10, 12, 11, 0) 45%),
    radial-gradient(circle at 92% 6%, rgba(242, 193, 78, 0.08), rgba(10, 12, 11, 0) 40%),
    var(--bg);
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.15; font-weight: 750; letter-spacing: -0.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p, li, dd, dt, label, td, th, address { overflow-wrap: anywhere; }
p { margin: 0 0 16px; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
svg, canvas { max-width: 100%; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -120px; z-index: 3000; padding: 8px 16px; border-radius: 8px; background: var(--gold); color: #0a0c0b; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gold { color: var(--gold); }
.eyebrow { margin: 0 0 16px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Header */
.site-header { position: relative; z-index: 1000; background: rgba(8, 10, 9, 0.94); color: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { height: 60px; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 800; min-width: 0; }
.brand:hover { color: var(--gold-2); }
.brand-mark-svg { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-name { font-size: 1.05rem; letter-spacing: 0.02em; min-width: 0; overflow-wrap: anywhere; }
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { min-width: 0; }
.nav-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); background: transparent; text-decoration: none; font-size: 0.86rem; font-weight: 650; overflow-wrap: anywhere; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--white); background: rgba(52, 217, 123, 0.14); }
.header-cta { flex: 0 0 auto; min-height: 36px; padding: 6px 16px; font-size: 0.85rem; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 24px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.btn-primary { background: var(--emerald); color: #04130a; border-color: var(--emerald); box-shadow: 0 0 24px rgba(52, 217, 123, 0.3); }
.btn-primary:hover { background: var(--emerald-2); color: #04130a; border-color: var(--emerald-2); }
.btn-ghost { background: rgba(243, 246, 241, 0.04); color: var(--white); border-color: rgba(243, 246, 241, 0.3); }
.btn-ghost:hover { background: rgba(242, 193, 78, 0.12); color: var(--gold-2); border-color: var(--gold); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Glass */
.glass { background: linear-gradient(160deg, rgba(30, 40, 34, 0.8), rgba(13, 17, 15, 0.86)); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(243, 246, 241, 0.06); }
.hud-panel { padding: 24px; min-width: 0; }
.panel-title { margin: 0 0 24px; font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.panel-action { margin-top: 24px; }

/* Readouts */
.readout { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: 12px; background: rgba(8, 11, 10, 0.62); color: var(--white); border: 1px solid var(--line-soft); }
.readout-value { font-family: var(--mono); font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--emerald); overflow-wrap: anywhere; margin: 0; }
.readout-small { font-size: 0.95rem; }
.readout-label { font-size: 0.74rem; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.readout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.readout-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.readout-grid > *, .card-telemetry > *, .metric-strip > * { min-width: 0; }

/* Sections */
.section { padding: 64px 0 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.hero-stat { display: flex; flex-direction: column-reverse; gap: 12px; min-width: 0; padding: 16px; border-radius: 12px; background: rgba(8, 11, 10, 0.6); color: var(--white); border: 1px solid var(--line); }
.hero-stat dd { margin: 0; }
.hero-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 70% 25%, rgba(52, 217, 123, 0.22), rgba(10, 12, 11, 0) 55%), radial-gradient(circle at 20% 90%, rgba(242, 193, 78, 0.12), rgba(10, 12, 11, 0) 50%), linear-gradient(180deg, #0d1511, #07100b); color: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(52, 217, 123, 0.12); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-chip { position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; border-radius: 12px; background: rgba(8, 11, 10, 0.78); color: var(--white); border: 1px solid var(--line); font-family: var(--mono); }
.hero-chip-top { top: 16px; left: 16px; }
.hero-chip-bottom { right: 16px; bottom: 16px; }
.chip-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip-value { font-size: 1rem; font-weight: 700; color: var(--gold); }

/* Arena */
.arena-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.arena-grid > *, .arena-lower > * { min-width: 0; }
.arena-side { display: grid; gap: 24px; }
.game-panel { padding: 24px; -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.game-panel * { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.game-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-width: 0; }
.game-status { margin: 0; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); min-width: 0; }
.live-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); color: var(--white); box-shadow: 0 0 12px var(--emerald); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.game-viewport { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b120e; color: var(--white); -webkit-touch-callout: none; }
.game-canvas { display: block; width: 100%; aspect-ratio: 16 / 10; touch-action: none; cursor: crosshair; -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; }
.power-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 24px; }
.power-row > * { min-width: 0; }
.power-meter { --power: 0; --sweet-start: 0.47; --sweet-size: 0.12; min-width: 0; }
.power-track { position: relative; height: 20px; border-radius: 999px; overflow: hidden; background: rgba(243, 246, 241, 0.08); color: var(--white); border: 1px solid var(--line-soft); transition: box-shadow 0.2s ease; }
.power-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald) 60%, var(--gold)); color: var(--white); transform: scaleX(var(--power)); transform-origin: left center; }
.power-sweet { position: absolute; top: 0; bottom: 0; left: calc(var(--sweet-start) * 100%); width: calc(var(--sweet-size) * 100%); background: rgba(242, 193, 78, 0.28); color: var(--white); border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.power-meter.is-charging .power-track { box-shadow: 0 0 18px rgba(52, 217, 123, 0.5); }
.power-meter.is-sweet .power-track { box-shadow: 0 0 24px rgba(242, 193, 78, 0.7); }
.power-hint { margin: 12px 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.readout-compact { padding: 16px; text-align: right; }
.game-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.game-actions .btn { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
.game-help { margin: 24px 0 0; font-size: 0.85rem; color: var(--muted); }
.arena-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; margin-top: 24px; align-items: start; }
.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.config-grid > * { min-width: 0; }
.control-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.control-field label { font-weight: 650; font-size: 0.9rem; }
.control-output { font-family: var(--mono); font-size: 0.85rem; color: var(--emerald); }
.control-checks { gap: 16px; }
.control-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.check-row input { margin-top: 4px; accent-color: var(--emerald); width: 18px; height: 18px; flex: 0 0 auto; }
input[type="range"] { width: 100%; accent-color: var(--emerald); min-height: 28px; }
select, input[type="text"], input[type="email"], textarea { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(243, 246, 241, 0.22); background: var(--bg-3); color: var(--white); font: inherit; }
select:hover, input[type="text"]:hover, input[type="email"]:hover, textarea:hover { border-color: var(--emerald); background: var(--bg-3); color: var(--white); }
.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.result-head .panel-title { margin: 0; }
.result-badge { display: inline-flex; padding: 8px 16px; border-radius: 999px; font-family: var(--mono); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(243, 246, 241, 0.08); color: var(--white); border: 1px solid var(--line-soft); }
.result-badge.is-goal { background: rgba(52, 217, 123, 0.18); color: var(--emerald-2); border-color: var(--emerald); box-shadow: 0 0 20px rgba(52, 217, 123, 0.35); }
.result-badge.is-saved { background: rgba(242, 193, 78, 0.16); color: var(--gold-2); border-color: var(--gold); }
.result-badge.is-woodwork { background: rgba(242, 193, 78, 0.1); color: var(--gold-2); border-color: var(--gold-2); }
.result-badge.is-missed { background: rgba(255, 165, 133, 0.12); color: var(--warn); border-color: var(--warn); }
.result-badge.is-blocked { background: rgba(243, 246, 241, 0.1); color: var(--white); border-color: rgba(243, 246, 241, 0.5); }
.result-detail { color: var(--muted); margin-bottom: 24px; }
.keeper-line { margin: 24px 0; font-size: 0.92rem; }
.log-title { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.shot-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shot-log-item, .shot-log-empty { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px; border-radius: 10px; background: rgba(8, 11, 10, 0.6); color: var(--muted); border: 1px solid var(--line-soft); font-family: var(--mono); font-size: 0.82rem; }
.log-outcome { font-weight: 800; color: var(--white); }
.log-outcome.is-goal { color: var(--emerald-2); }
.log-outcome.is-saved, .log-outcome.is-woodwork { color: var(--gold-2); }
.log-outcome.is-missed { color: var(--warn); }
.log-outcome.is-blocked { color: var(--white); }

/* Modules */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.module-grid > * { min-width: 0; }
.module-card { display: flex; flex-direction: column; gap: 24px; padding: 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.module-card:hover { border-color: var(--emerald); box-shadow: 0 0 40px rgba(52, 217, 123, 0.18), 0 20px 50px rgba(0, 0, 0, 0.45); }
.module-card h3, .module-card p { margin: 0; }
.module-card p { color: var(--muted); }
.module-index { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold) !important; }
.card-telemetry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-telemetry .readout-value { font-size: 1.1rem; }
.card-link { margin-top: auto; font-weight: 700; color: var(--emerald); }
.card-link::after { content: " →"; }

/* Engine */
.engine-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.engine-grid > * { min-width: 0; }
.step-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; }
.step-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.step-item h3 { margin: 0 0 8px; }
.step-item p { margin: 0; color: var(--muted); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(52, 217, 123, 0.12); color: var(--emerald); border: 1px solid var(--line); font-family: var(--mono); font-weight: 800; }
.equation { margin: 0 0 24px; padding: 16px 24px; border-radius: 12px; background: rgba(6, 9, 8, 0.85); color: var(--gold-2); border: 1px solid var(--line); border-left: 3px solid var(--emerald); font-family: var(--mono); font-size: 0.9rem; line-height: 1.7; white-space: pre; overflow-x: auto; }

/* CTA */
.cta-band { padding-bottom: 0; }
.cta-inner { padding: 40px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(52, 217, 123, 0.22), rgba(13, 17, 15, 0) 60%), linear-gradient(160deg, rgba(30, 40, 34, 0.85), rgba(13, 17, 15, 0.9)); color: var(--white); }
.cta-inner p { color: var(--muted); max-width: 60ch; margin: 0 auto; }
.cta-inner .hero-actions { justify-content: center; }

/* Sub pages */
.page-hero { padding: 64px 0 40px; background: radial-gradient(circle at 80% 0%, rgba(52, 217, 123, 0.16), rgba(10, 12, 11, 0) 55%); color: var(--white); border-bottom: 1px solid var(--line-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--emerald); }
.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; margin-top: 40px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 40px; padding-top: 64px; align-items: start; }
.article-layout > * { min-width: 0; }
.article { max-width: 76ch; }
.article h2 { margin-top: 40px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: #d6ded8; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 24px; }
.article li { margin-bottom: 8px; }
.article-aside { display: grid; gap: 24px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-list a { font-weight: 650; }
.callout { margin: 0 0 24px; padding: 24px; border-radius: 14px; background: rgba(242, 193, 78, 0.08); color: var(--white); border: 1px solid rgba(242, 193, 78, 0.35); border-left: 4px solid var(--gold); }
.callout p:last-child { margin-bottom: 0; }
.diagram { margin: 0 0 24px; padding: 16px; border-radius: 14px; background: rgba(6, 9, 8, 0.7); color: var(--white); border: 1px solid var(--line); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: rgba(52, 217, 123, 0.1); color: var(--white); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
td { color: #d6ded8; }
tr:last-child td { border-bottom: 0; }

/* Legal */
.legal { max-width: 80ch; padding-top: 64px; }
.legal h2 { margin-top: 40px; font-size: 1.4rem; }
.legal p, .legal li { color: #d6ded8; }
.legal ul { padding-left: 24px; margin: 0 0 16px; }
.legal-meta { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding-top: 64px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-form { display: grid; gap: 24px; padding: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label { font-weight: 650; }
textarea { min-height: 160px; resize: vertical; }
.is-invalid { border-color: var(--warn) !important; box-shadow: 0 0 0 2px rgba(255, 165, 133, 0.25); }
.field-error { margin: 0; font-size: 0.85rem; color: var(--warn); }
.form-success { margin: 0; padding: 16px; border-radius: 12px; background: rgba(52, 217, 123, 0.14); color: var(--white); border: 1px solid var(--emerald); }
.contact-info { display: grid; gap: 24px; }
.info-block h3 { margin-bottom: 12px; }
.info-block p { margin: 0; color: var(--muted); }
.map-block { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(rgba(52, 217, 123, 0.06) 1px, rgba(0, 0, 0, 0) 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(52, 217, 123, 0.06) 1px, rgba(0, 0, 0, 0) 1px) 0 0 / 32px 32px, #0d1310; color: var(--white); }
.map-block svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-label { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px; border-radius: 12px; background: rgba(8, 11, 10, 0.88); color: var(--white); border: 1px solid var(--line); font-size: 0.88rem; }
.map-label p { margin: 0 0 8px; }
.map-label p:last-child { margin: 0; }

/* Footer */
.site-footer { margin-top: 64px; padding: 64px 0 24px; background: #070908; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-tagline { margin-top: 16px; font-size: 0.9rem; }
.footer-heading { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a, .site-footer a { color: var(--white); text-decoration: none; }
.footer-list a:hover, .site-footer a:hover { color: var(--emerald-2); text-decoration: underline; }
.footer-address { margin-bottom: 16px; font-size: 0.92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 0.82rem; }
.footer-bottom p { margin: 0; }

/* Cookie */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 960px; margin: 0 auto; padding: 24px; display: grid; gap: 16px; border-radius: 16px; background: rgba(12, 16, 14, 0.97); color: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(52, 217, 123, 0.12); }
.cookie-text { margin: 0; font-size: 0.92rem; color: #d6ded8; }
.cookie-prefs { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(243, 246, 241, 0.04); color: var(--white); border: 1px solid var(--line-soft); }
.cookie-prefs .btn { justify-self: start; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .arena-grid, .arena-lower, .article-layout, .engine-grid { grid-template-columns: minmax(0, 1fr); }
  .arena-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-list a { padding: 8px 8px; font-size: 0.8rem; }
}

@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .readout-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .header-inner { height: 50px; padding: 0 16px; gap: 8px; }
  .brand-mark-svg { width: 28px; height: 28px; }
  .brand-name { font-size: 0.95rem; }
  .header-cta { margin-left: auto; min-height: 34px; padding: 4px 12px; }
  .nav-toggle { position: relative; z-index: 1001; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 40px; flex: 0 0 auto; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(243, 246, 241, 0.04); color: var(--white); cursor: pointer; }
  .nav-toggle-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white); color: var(--white); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: fixed; inset: 0; z-index: 1000; flex-direction: column; justify-content: flex-start; padding: 80px 24px 40px; overflow-y: auto; background: rgba(6, 8, 7, 0.98); color: var(--white); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .nav-list a { padding: 16px; font-size: 1.2rem; color: var(--white); border: 1px solid var(--line-soft); }
  .arena-side { grid-template-columns: minmax(0, 1fr); }
  .config-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .game-canvas { aspect-ratio: 4 / 3; }
  .game-panel, .hud-panel, .contact-form { padding: 16px; }
  .readout { padding: 16px; }
  .power-row { grid-template-columns: minmax(0, 1fr); }
  .readout-compact { text-align: left; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { padding: 24px; }
}

@media (max-width: 399.98px) {
  body { font-size: 0.95rem; }
  h1 { font-size: 1.8rem; }
  .brand-name { font-size: 0.85rem; }
  .brand { gap: 4px; }
  .brand-mark-svg { width: 24px; height: 24px; }
  .header-cta { padding: 4px 10px; font-size: 0.78rem; }
  .readout-grid, .readout-grid-3, .card-telemetry { grid-template-columns: minmax(0, 1fr); }
  .readout-value { font-size: 1.2rem; }
  .btn { width: 100%; }
  .header-cta, .nav-toggle { width: auto; }
  .hero-chip { padding: 4px 8px; }
  .chip-value { font-size: 0.85rem; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .step-num { width: 40px; height: 40px; }
}

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