/* HEXORB 3D promo site. Colors are the game's UiKit palette; headings use its 5x7 font.
   The game is dark only, and so is the site. */

@font-face {
  font-family: 'HEXORB Pixel';
  src: url('fonts/hexorb-pixel.woff2') format('woff2'), url('fonts/hexorb-pixel.woff') format('woff');
  font-display: block;
}

/* Lets the orb accent ease between colors when a section's rule fires. */
@property --orb { syntax: '<color>'; inherits: true; initial-value: #487eec; }

:root {
  color-scheme: dark;
  --void: #05030d;
  --ink: #080414;
  --panel: rgba(8, 4, 20, 0.82);
  --cyan: #2ef2ff;
  --magenta: #ff3df0;
  --yellow: #ffe04d;
  --green: #4dff8c;
  --red: #ff4d59;
  --white: #f2f5ff;
  --dim: #808ccc;
  --text: #d7dcf5;
  --muted: #9aa3d6;
  --line: rgba(46, 242, 255, 0.28);
  --orb: #487eec;
  --goal: #00b99c;
  --pixel: 'HEXORB Pixel', ui-monospace, monospace;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1160px;
  transition: --orb 900ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 16px/1.65 var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
b.y { color: var(--yellow); font-weight: 600; }
code, kbd { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); padding: 8px 16px; }
.skip:focus { left: 8px; }

/* Pixel type. Sizes are multiples of 8px so one font pixel lands on whole screen pixels. */
.pixel, h1, h2, h3, .btn, .hud, .rule-badge, .dl, dt, .tagline, .platforms, .made, .socket-status,
.hero-flash, .hero-board-id, .hero-hint, .mode-sub, .gems, summary, .route-intro .pixel {
  font-family: var(--pixel);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
  font-smooth: never;
}
h2 { font-size: 32px; line-height: 1.1; color: var(--white); margin: 0;
  text-shadow: -1px 0 rgba(255, 40, 90, 0.45), 1px 0 rgba(40, 220, 255, 0.45), 0 0 18px color-mix(in srgb, var(--orb) 60%, transparent); }
h3 { font-size: 16px; line-height: 1.25; color: var(--yellow); margin: 0 0 8px; }

/* Fixed backdrop for the whole page: violet void, stars and the drifting magenta floor grid. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 100%, #1a0329 0%, #0a0418 45%, var(--void) 80%); }
.stars { position: absolute; inset: -50%; opacity: 0.8;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 150px 90px, #cfd6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 200px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 40px, #9fe8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 260px, #ffd6f6 50%, transparent 51%);
  background-size: 360px 300px; animation: twinkle 6s ease-in-out infinite alternate; }
.floor { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 70vh;
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(217, 26, 191, 0.55) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(217, 26, 191, 0.55) 1.5px, transparent 1.5px);
  background-size: 64px 64px; animation: drift 6s linear infinite;
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 85%); }
@keyframes drift { to { background-position: 0 64px; } }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 0.9; } }

/* A light CRT pass over everything: scanlines plus a soft vignette. Kept faint so body text
   stays easy to read; the hero gets a stronger dose of its own. */
body::after { content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: 0.55; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1200px; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto; isolation: isolate; background: var(--void); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: none; cursor: grab; outline: none; }
.hero-canvas:active { cursor: grabbing; }
.hero-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--yellow); }
.hero-still { position: absolute; inset: 0; z-index: 0; display: none; }
.hero-still img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.6; }
.hero-still::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5, 3, 13, 0.85), rgba(5, 3, 13, 0.25) 45%, rgba(5, 3, 13, 0.85)); }
@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  .hero-still::after { background: linear-gradient(to right, rgba(5, 3, 13, 0.95) 25%, rgba(5, 3, 13, 0.2) 60%, rgba(5, 3, 13, 0.4)); }
}
.hero.is-still .hero-still { display: block; }
.hero.is-still .hero-canvas, .hero.is-still .hero-hud, .hero.is-still .hero-board-id { display: none; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 52%, transparent 55%, rgba(0, 0, 0, 0.75) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 10px #000, inset 0 0 60px 20px rgba(0, 0, 0, 0.8); border-radius: 28px; }
.hero > :not(canvas):not(.hero-still):not(.hero-vignette) { position: relative; z-index: 2; }

.hero-top { text-align: center; padding: clamp(24px, 5vh, 56px) var(--gutter) 0; pointer-events: none; }
.logo { margin: 0; font-size: clamp(48px, 11vw, 128px); line-height: 0.9; display: inline-flex; align-items: flex-end; gap: 0.04em; }
.logo span { color: var(--c); text-shadow: 0.04em 0.04em 0 color-mix(in srgb, var(--c) 35%, #000), 0 0 0.35em color-mix(in srgb, var(--c) 55%, transparent);
  animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.25s); }
.logo span:nth-child(1) { --i: 0; } .logo span:nth-child(2) { --i: 1; } .logo span:nth-child(3) { --i: 2; }
.logo span:nth-child(4) { --i: 3; } .logo span:nth-child(5) { --i: 4; } .logo span:nth-child(6) { --i: 5; }
.logo .logo-3d { --c: var(--white); font-size: 0.42em; margin-left: 0.12em; margin-bottom: 0.06em; animation: none; }
@keyframes bob { 50% { transform: translateY(-0.04em); } }
.tagline { margin: 16px 0 0; color: var(--cyan); font-size: clamp(16px, 2vw, 24px); text-shadow: 0 0 12px rgba(46, 242, 255, 0.5); }
.tagline span { white-space: nowrap; }

.hud { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 16px; }
.hero-hud { justify-self: center; margin-top: 16px; padding: 8px 16px; background: rgba(5, 3, 13, 0.55); border: 1px solid var(--line); border-radius: 4px; }
.hud-swatch { width: 40px; height: 40px; border: 2px solid var(--white); background: var(--swatch, #487eec); position: relative; flex: none;
  box-shadow: 0 0 14px color-mix(in srgb, var(--swatch, #487eec) 60%, transparent); transition: background 300ms; }
.hud-swatch span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: 8px; color: var(--dim); }
.hud-mid { display: grid; gap: 6px; min-width: 0; }
.hud-label { font-size: 16px; text-align: center; color: var(--green); white-space: nowrap; }
.hud-label b { font-weight: 400; }
.hud-label .sep { color: var(--dim); }
.meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; width: clamp(160px, 28vw, 320px); height: 16px; position: relative; }
.meter i { background: rgba(242, 245, 255, 0.12); }
.meter i.on { background: var(--seg); box-shadow: 0 0 6px var(--seg); }
.meter::after { content: ''; position: absolute; left: 90%; top: -3px; bottom: -3px; width: 3px; background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.hud.is-pass .hud-label { color: var(--yellow); }

.hero-flash { place-self: center; text-align: center; padding: 0 16px; margin: 0; font-size: clamp(32px, 6vw, 64px); color: var(--white); pointer-events: none;
  text-shadow: 0 0 20px var(--flash, var(--cyan)); opacity: 0; transform: scale(0.9); transition: opacity 250ms, transform 250ms; }
.hero-flash.show { opacity: 1; transform: none; }
.hero-board-id { font-size: 8px; color: var(--cyan); writing-mode: vertical-rl; transform: rotate(180deg); }

.hero-bottom { text-align: center; padding: 0 var(--gutter) clamp(24px, 5vh, 48px); display: grid; justify-items: center; gap: 16px; }
.hero-hint { margin: 0; font-size: 16px; color: var(--dim); max-width: 60ch; pointer-events: none; line-height: 1.5; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.platforms { margin: 0; font-size: 8px; color: var(--dim); letter-spacing: 0.1em; }

/* Buttons follow the game's menu: transparent until hot, then a magenta box. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  font-size: 16px; line-height: 1; color: var(--white); text-decoration: none; background: rgba(5, 3, 13, 0.6);
  border: 2px solid var(--dim); border-radius: 2px; cursor: pointer; transition: background 150ms, border-color 150ms, color 150ms, box-shadow 150ms; }
.btn:hover, .btn:focus-visible { color: var(--white); border-color: var(--magenta); background: rgba(255, 61, 240, 0.22); box-shadow: 0 0 18px rgba(255, 61, 240, 0.45); }
.btn-hot { border-color: var(--magenta); background: rgba(255, 61, 240, 0.22); box-shadow: 0 0 18px rgba(255, 61, 240, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--cyan); }
.btn-small { min-height: 36px; padding: 8px 12px; font-size: 8px; line-height: 1.4; }
.btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }

/* ---------- Route HUD ---------- */
.route-hud { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 8px var(--gutter);
  transform: translateY(-110%); transition: transform 300ms ease; pointer-events: none; }
.route-hud.show { transform: none; }
.route-hud[inert] .route-hud-inner { visibility: hidden; transition: visibility 0s 300ms; }
.route-hud-inner { pointer-events: auto; padding: 8px 12px 16px; background: var(--panel); border: 1px solid var(--line);
  border-top: 0; border-radius: 0 0 6px 6px; backdrop-filter: blur(8px); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); }
.route-hud .hud-swatch { width: 28px; height: 28px; }
.route-hud .meter { width: clamp(120px, 24vw, 240px); height: 12px; }
.route-hud .hud-label { font-size: 8px; }
.route-hud .hud-label [data-rule-now] { color: var(--white); }

/* ---------- Route sections ---------- */
main { position: relative; }
main > * { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.route-intro { margin-top: 64px; margin-bottom: 0; max-width: 68ch; text-align: center; color: var(--muted); }
.route-intro .pixel { display: block; font-size: 16px; color: var(--cyan); margin-bottom: 8px; }
.tile-section { padding: clamp(64px, 12vh, 128px) 0; position: relative; }
.tile-section::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--orb) 70%, transparent), transparent); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 32px; }
.lede { max-width: 66ch; margin: -8px 0 32px; color: var(--muted); }
.aside { max-width: 70ch; margin: 32px 0 0; color: var(--muted); font-size: 14px; border-left: 2px solid color-mix(in srgb, var(--orb) 70%, transparent); padding-left: 16px; }

.rule-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; font-size: 8px; color: var(--white);
  border: 1px solid var(--line); background: rgba(5, 3, 13, 0.7); border-radius: 30px; }
.rule-badge canvas { width: 32px; height: 32px; }
.tile-section.is-active .rule-badge { border-color: var(--orb); box-shadow: 0 0 18px color-mix(in srgb, var(--orb) 55%, transparent); }
.tile-section.just-fired .rule-badge { animation: fire 700ms ease-out; }
@keyframes fire { 0% { transform: scale(1.18); background: color-mix(in srgb, var(--orb) 45%, var(--ink)); } 100% { transform: none; } }

/* Cards share one look: a dark glass panel with a cyan edge that warms to the orb color. */
.beat, .mode, .control, .honeycomb li, .terrain > div, .reqs {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 24px; position: relative; }
.beats, .modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.beat p, .mode p, .control p { margin: 0 0 12px; }
.beat p:last-child, .mode p:last-child, .control p:last-child { margin-bottom: 0; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; color: var(--ink); background: var(--orb); }

.honeycomb { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.honeycomb li { display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; padding: 16px; }
.honeycomb canvas { grid-row: 1 / 3; width: 88px; height: 88px; }
.honeycomb h3 { align-self: end; margin: 8px 0 4px; }
.honeycomb p { margin: 0; color: var(--muted); font-size: 14px; }

.terrain { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; }
.terrain > div { padding: 16px 20px; }
.terrain dt { font-size: 16px; color: var(--yellow); margin-bottom: 6px; }
.terrain dd { margin: 0; color: var(--muted); font-size: 14px; }

.mode h3 { font-size: 24px; color: var(--white); margin-bottom: 4px; }
.mode-sub { font-size: 8px; color: var(--cyan); margin: 0 0 16px !important; }
.gems { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 16px; color: var(--white); }
.gems small { font-family: var(--mono); text-transform: none; font-size: 13px; color: var(--muted); margin-left: 6px; }
.gem { color: var(--yellow); text-shadow: 0 0 8px var(--yellow); }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.shot { margin: 0; }
.shot-video { grid-column: 1 / -1; }
.crt { position: relative; border-radius: 18px; overflow: hidden; background: #000; padding: 10px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.5); }
.crt img, .crt video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.crt::after { content: ''; position: absolute; inset: 10px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.crt:hover img { filter: saturate(1.15) brightness(1.05); }

.controls { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.control-hot { border-color: var(--magenta); box-shadow: 0 0 22px rgba(255, 61, 240, 0.2); }
kbd { display: inline-block; min-width: 1.8em; padding: 0 6px; margin: 0 2px; text-align: center; color: var(--white);
  border: 1px solid var(--dim); border-bottom-width: 3px; border-radius: 3px; background: var(--ink); font-size: 13px; line-height: 1.6; }

/* ---------- Goal socket and downloads ---------- */
.socket-section { padding: clamp(80px, 14vh, 160px) 0 96px; text-align: center; display: grid; justify-items: center; }
.socket-section .lede { margin: 16px auto 32px; }
.socket { display: grid; justify-items: center; gap: 16px; margin-bottom: 32px; }
.socket-ring { --size: clamp(160px, 26vw, 240px); width: var(--size); height: calc(var(--size) * 1.1547); position: relative;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #121426; display: grid; place-items: center; }
.socket-ring::before { content: ''; position: absolute; inset: 4px; clip-path: inherit; background: #070915; }
.socket-core { position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--goal);
  box-shadow: 0 0 24px color-mix(in srgb, var(--goal) 60%, transparent), inset 0 0 24px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 40%, transparent 41%); opacity: 0.7; transition: all 600ms ease; }
.socket-beam { position: absolute; left: 50%; bottom: 50%; width: 30%; height: 0; transform: translateX(-50%);
  background: linear-gradient(to top, var(--goal), transparent); filter: blur(4px); opacity: 0; transition: height 900ms ease, opacity 600ms; }
.socket.open .socket-core { opacity: 1; background: radial-gradient(circle, var(--goal) 0 38%, color-mix(in srgb, var(--goal) 30%, #000) 40%);
  box-shadow: 0 0 60px var(--goal), 0 0 120px color-mix(in srgb, var(--goal) 50%, transparent); animation: throb 1.1s ease-in-out infinite; }
.socket.open .socket-beam { height: 50%; opacity: 0.9; }
.socket.flash .socket-ring { animation: socket-flash 900ms ease-out; }
@keyframes throb { 50% { transform: scale(1.06); } }
@keyframes socket-flash { 0% { filter: brightness(3); } 100% { filter: none; } }
.socket-status { margin: 0; font-size: 16px; color: var(--dim); min-height: 1.2em; }
.socket.open .socket-status { color: var(--yellow); text-shadow: 0 0 12px var(--yellow); }
.socket-section h2 { font-size: clamp(32px, 6vw, 64px); }

.downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); width: 100%; max-width: 920px; }
.dl { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; text-decoration: none; color: var(--white);
  background: var(--panel); border: 2px solid var(--line); border-radius: 4px; transition: border-color 150ms, background 150ms, box-shadow 150ms, transform 150ms; }
.dl:hover, .dl:focus-visible { border-color: var(--magenta); background: rgba(255, 61, 240, 0.16); box-shadow: 0 0 24px rgba(255, 61, 240, 0.35); transform: translateY(-2px); color: var(--white); }
.dl-icon { font-size: 32px; color: var(--cyan); line-height: 1; }
.dl-steam { border-color: var(--magenta); }
.dl-steam .dl-icon { color: var(--yellow); }
.dl-name { font-size: 16px; }
.dl-meta { font-size: 8px; color: var(--dim); }
.dl[aria-disabled='true'] { opacity: 0.8; border-style: dashed; cursor: default; pointer-events: none; }
.dl[aria-disabled='true'] .dl-meta { color: var(--yellow); }
.checksums { margin-top: 16px; max-width: 920px; width: 100%; text-align: left; font-size: 13px; color: var(--muted); }
.checksums summary { cursor: pointer; font-size: 8px; color: var(--dim); }
.checksums code { word-break: break-all; }
.reqs { margin-top: 48px; max-width: 760px; text-align: left; }
.reqs ul { margin: 0; padding-left: 20px; }
.reqs li { margin-bottom: 6px; }
.beta-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.beta-note span { font-family: var(--pixel); color: var(--yellow); font-size: 8px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 48px var(--gutter) 64px; border-top: 1px solid var(--line); background: rgba(5, 3, 13, 0.7); }
.made { font-size: clamp(16px, 3vw, 24px); color: var(--white); margin: 0 0 16px; }
.heart { color: var(--red); display: inline-block; text-shadow: 0 0 14px var(--red); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.3); } 40% { transform: scale(1.1); } }
.fine { margin: 4px 0; font-size: 13px; color: var(--muted); }

/* ---------- Wide screens: copy on the left, the board on the right ---------- */
@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  .hero { grid-template-columns: minmax(400px, 40%) 1fr; grid-template-rows: 1fr auto auto 1fr; }
  .hero-top { grid-column: 1; grid-row: 2; text-align: left; padding: 0 0 0 clamp(32px, 5vw, 96px); }
  .logo { font-size: clamp(64px, 6.4vw, 112px); }
  .tagline { font-size: 16px; display: grid; gap: 8px; }
  .hero-bottom { grid-column: 1; grid-row: 3; justify-items: start; text-align: left; padding: 32px 0 0 clamp(32px, 5vw, 96px); }
  .cta { justify-content: flex-start; }
  .hero-hint { max-width: 44ch; }
  .hero-hud { grid-column: 2; grid-row: 1; align-self: start; margin-top: clamp(24px, 5vh, 48px); }
  .hero-flash { grid-column: 2; grid-row: 1 / 5; }
}

/* ---------- Touch: the copy bands scroll the page, the board in between is for tilting ---------- */
@media (pointer: coarse) {
  .hero-top, .hero-bottom { pointer-events: auto; background: linear-gradient(rgba(5, 3, 13, 0.55), rgba(5, 3, 13, 0.55)); }
  .hero-top { background: linear-gradient(rgba(5, 3, 13, 0.7), transparent); }
  .hero-bottom { background: linear-gradient(transparent, rgba(5, 3, 13, 0.8) 30%); padding-top: 24px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  h2 { font-size: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .hero-vignette { border-radius: 0; box-shadow: inset 0 0 60px 10px rgba(0, 0, 0, 0.8); }
  .hero-hud { gap: 8px; padding: 6px 10px 14px; }
  .hero-hud .hud-swatch { width: 28px; height: 28px; }
  .hero-hint { font-size: 8px; }
  .hero-bottom { gap: 10px; padding-bottom: 20px; }
  .cta { gap: 10px; flex-wrap: nowrap; }
  .cta .btn { padding: 12px 14px; }
  .cta .long { display: none; }
  .route-hud-inner { gap: 8px; }
  .route-hud .meter { width: 96px; }
  .honeycomb li { grid-template-columns: 64px 1fr; }
  .honeycomb canvas { width: 64px; height: 64px; }
  .crt { border-radius: 12px; padding: 6px; }
  .crt::after { inset: 6px; }
}

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