/* HUD over the game canvas (docs/redesign-plan.md §4.2–4.3, §5.3). */
:root {
  --bg: rgba(8, 10, 22, .78);
  --bg-solid: #0a0c18;
  --line: rgba(140, 150, 255, .22);
  --text: #e6e8ff;
  --dim: #8d93c4;
  --accent: #7c8cff;
  --mine: #4fc3f7;
  --enemy: #ff5b5b;
  --neutral: #c9c9c9;
  --ok: #7ee787;
  --bad: #ff6b6b;
  --r: 12px;
  --gap: 8px;
  --inset-t: env(safe-area-inset-top, 0px);
  --inset-b: env(safe-area-inset-bottom, 0px);
  --inset-l: env(safe-area-inset-left, 0px);
  --inset-r: env(safe-area-inset-right, 0px);
  --safe-t: var(--inset-t);
  --safe-b: var(--inset-b);
  --safe-l: var(--inset-l);
  --safe-r: var(--inset-r);
  --ui-zoom: 1;
  /* The smallest tap target: 44 pt at any interface scale (below 100 % the zoom would shrink it). */
  --tap: calc(44px / min(1, var(--ui-zoom)));
}
/* Interface scale (uiscale.js); lengths inside a zoomed box are multiplied by the zoom, so the
   safe-area insets are divided back: a notch stays a notch at 80 %. */
#top, #bottom, #hud > .sheet, #pause, #toasts, #menu { zoom: var(--ui-zoom);
  --safe-t: calc(var(--inset-t) / var(--ui-zoom)); --safe-b: calc(var(--inset-b) / var(--ui-zoom));
  --safe-l: calc(var(--inset-l) / var(--ui-zoom)); --safe-r: calc(var(--inset-r) / var(--ui-zoom)); }

html, body { margin: 0; height: 100%; background: #000; color: var(--text); overflow: hidden;
  font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
#stage { position: fixed; inset: 0; }
#game { display: block; outline: none; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; }
#error { display: none; position: fixed; inset: 0; align-items: center; justify-content: center;
  padding: 16px; text-align: center; color: var(--bad); background: #000; }

[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex: none; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

#hud { position: fixed; inset: 0; pointer-events: none; display: flex; flex-direction: column;
  justify-content: space-between; user-select: none; -webkit-user-select: none; }
#hud[hidden] { display: none; }
#hud > * { pointer-events: auto; }
#toasts { pointer-events: none; }
#alerts { position: fixed; inset: 0; pointer-events: none; }
.edge { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; pointer-events: auto; background: var(--bg); border: 2px solid var(--c);
  color: var(--c); --c: var(--bad); animation: edge-pulse 1.1s ease-in-out infinite; }
.edge svg { width: 22px; height: 22px; }
.edge i { position: absolute; inset: -2px; transform: rotate(var(--ang, 0rad)); pointer-events: none; }
.edge i::after { content: ''; position: absolute; right: -11px; top: 50%; margin-top: -8px; border: 8px solid transparent;
  border-left: 10px solid var(--c); border-right: 0; }
.edge.capture { --c: #ffb347; }
.edge.base { --c: var(--enemy); }
.spot { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--c); --c: var(--bad); animation: spot-pulse 1.1s ease-out infinite; }
.spot.capture { --c: #ffb347; }
.spot.base { --c: var(--enemy); }
.spot[hidden], .edge[hidden] { display: none; }
@keyframes edge-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); } }
@keyframes spot-pulse { from { scale: .5; opacity: 1; } to { scale: 1.4; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .edge, .spot { animation: none; } }

/* ---- Top bar ---- */
#top { padding: calc(var(--safe-t) + 6px) calc(var(--safe-r) + 8px) 6px calc(var(--safe-l) + 8px);
  background: linear-gradient(var(--bg), rgba(8, 10, 22, .55)); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: var(--gap); min-width: 0; }
.grow { flex: 1; }
.icon { width: var(--tap); height: var(--tap); display: grid; place-items: center; padding: 0; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.icon:active { background: rgba(124, 140, 255, .25); }
#clock { display: flex; align-items: center; gap: 8px; }
#clock .ring { width: 32px; height: 32px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 94.25; transition: stroke-dashoffset .3s; }
#clock b { display: block; font-size: 15px; font-weight: 600; }
#clock span { display: block; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
#clock i { font-style: normal; }
#top.compact #clock i { display: none; }
/* Still no room: the resources take a line of their own. */
#top.wrap { flex-wrap: wrap; }
#top.wrap #chips { flex: 1 0 100%; max-width: none; margin-left: 0; }

#chips { display: grid; grid-template-columns: 1.4fr repeat(6, 1fr); gap: 4px; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: var(--tap); min-width: var(--tap); padding: 2px 0; border-radius: 10px; background: rgba(255, 255, 255, .05);
  border: 1px solid transparent; transition: border-color .2s, background .2s; }
.chip .v { display: flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums; }
.chip .v svg { width: 15px; height: 15px; opacity: .9; }
.chip .inc { font-size: 12px; color: var(--ok); font-variant-numeric: tabular-nums; }
.chip .inc.zero { color: var(--dim); }
.chip.general .v { font-size: 19px; }
.chip.general .v svg { width: 17px; height: 17px; color: #ffd76a; }
.chip.pulse { border-color: var(--ok); background: rgba(126, 231, 135, .14); }
.chip.spent { border-color: var(--bad); }
.chip.short { border-color: var(--bad); background: rgba(255, 107, 107, .18); }

/* ---- Toasts ---- */
#toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-t) + 118px); display: flex;
  flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; }
.toast { max-width: 100%; padding: 8px 14px; border-radius: 14px; text-align: center; background: var(--bg);
  border: 1px solid var(--line); font-size: 15px; animation: toast-in .2s ease-out; transition: opacity .3s; }
.toast.bad { border-color: var(--bad); }
.toast.good { border-color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---- Start / end banner (the 3D GO / YOU WIN / GAME OVER of the original) ---- */
#banner { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: clamp(44px, 13vw, 120px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .6), 0 0 2px #000; will-change: transform, opacity; }
#banner.win { color: #8fe3ff; }
#banner.lose { color: #ff9a5c; }

/* ---- Bottom: minimap + robot tray ---- */
#bottom { padding: 6px calc(var(--safe-r) + 8px) calc(var(--safe-b) + 8px) calc(var(--safe-l) + 8px);
  background: linear-gradient(rgba(8, 10, 22, .55), var(--bg)); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; }
#mapbar { display: flex; align-items: center; gap: 8px; align-self: center; }
#minimap { display: block; border-radius: 6px; touch-action: none;
  border: 1px solid var(--line); }
/* Fast-forward: game time ×5 while held (never latched, so it cannot be left on by mistake). */
.fast { flex: none; position: relative; width: max(52px, var(--tap)); height: max(52px, var(--tap)); padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: inherit; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fast svg { width: 24px; height: 24px; }
.fast b { position: absolute; bottom: -2px; right: -4px; padding: 0 4px; border-radius: 8px; font-size: 11px;
  background: var(--mine); color: #06121c; opacity: 0; transition: opacity .1s; }
.fast.on { border-color: var(--mine); background: rgba(79, 195, 247, .3); color: var(--mine); }
.fast.on b { opacity: 1; }
#tray { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
#tray::-webkit-scrollbar { display: none; }
.unit { flex: none; min-width: 56px; height: 56px; padding: 4px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; }
.unit:active { background: rgba(124, 140, 255, .25); }
.unit.on { border-color: var(--mine); background: rgba(79, 195, 247, .18); }
.unit .top { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; }
.unit .top svg { width: 18px; height: 18px; color: var(--mine); }
.unit .ord { font-size: 11px; color: var(--dim); white-space: nowrap; }
.bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.bar i.mid { background: #ffc857; }
.bar i.low { background: var(--bad); }
.unit.base .top svg { color: #ffd76a; }
.unit.hit { animation: hit .4s; }
@keyframes hit { 30% { border-color: var(--bad); background: rgba(255, 107, 107, .3); } }

/* ---- Sheets: robot, construction ---- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: calc(62vh / var(--ui-zoom)); overflow-y: auto;
  padding: 12px calc(var(--safe-r) + 12px) calc(var(--safe-b) + 12px) calc(var(--safe-l) + 12px);
  background: var(--bg-solid); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .5); animation: sheet-in .2s ease-out; }
.sheet[hidden] { display: none; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sheet h2 svg { width: 24px; height: 24px; color: var(--mine); }
.sheet .sub { color: var(--dim); font-size: 14px; margin: 2px 0 10px; }
.sheet h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--dim);
  text-transform: uppercase; letter-spacing: .04em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.btn { min-height: max(48px, var(--tap)); padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); display: flex; align-items: center; justify-content: center;
  gap: 6px; text-align: center; font-size: 15px; }
.btn:active { background: rgba(124, 140, 255, .3); }
.btn.cur { border-color: var(--accent); background: rgba(124, 140, 255, .2); }
.btn.dis { opacity: .45; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0a0c18; font-weight: 600; }
.btn.warn { border-color: var(--bad); color: #ffb3b3; }
.btn svg { width: 18px; height: 18px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .btn { width: max(48px, var(--tap)); flex: none; font-size: 20px; }
.stepper output { flex: 1; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.sheet-head { display: flex; align-items: flex-start; gap: 8px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head .bar { margin-top: 6px; height: 6px; }
.hold { position: relative; overflow: hidden; }
.hold::after { content: ""; position: absolute; inset: 0; background: rgba(255, 107, 107, .35);
  transform: scaleX(0); transform-origin: left; }
.hold.holding::after { transform: scaleX(1); transition: transform .8s linear; }

/* ---- Landscape / desktop: one top row, the tray as a left column ---- */
/* ---- Construction sheet ---- */
.sheet.build { max-height: calc(72vh / var(--ui-zoom)); }
.sheet-head .icon { flex: none; }
.sheet-head h2 { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin: 8px 0 4px;
  font-size: 13px; color: var(--dim); }
.stats > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.stats .wide { grid-column: 1 / -1; }
.stats .wide span:last-child { color: var(--text); }
.bars { display: flex; gap: 2px; }
.bars i { width: 7px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.bars i.on { background: var(--mine); }
.presets { display: flex; gap: 6px; margin-top: 8px; }
.presets .btn { flex: 1; }
.btn.small { min-height: var(--tap); font-size: 14px; }
.cards { display: grid; gap: 6px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { min-height: 64px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 4px; }
.card:active { background: rgba(124, 140, 255, .25); }
.card.on { border-color: var(--mine); background: rgba(79, 195, 247, .2); }
.card.short { opacity: .7; }
.card .name { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1.1; text-align: center; }
.card .name svg { width: 18px; height: 18px; color: var(--mine); }
.card .cost { display: flex; align-items: center; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.card .cost span { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 600; color: var(--text); }
.card .cost i { font-style: normal; color: var(--dim); }
.total span, .left span { display: inline-flex; align-items: center; gap: 1px; color: var(--dim); }
.card .cost svg, .total svg, .left svg { width: 12px; height: 12px; }
.card .cost .bad { color: var(--bad); font-weight: 600; }
.cards .hint { grid-column: span 2; align-self: center; font-size: 13px; color: var(--dim); }
.total, .left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px;
  font-variant-numeric: tabular-nums; }
.left { margin-top: 4px; font-size: 13px; color: var(--dim); }
.actions { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; padding: 8px 2px;
  /* Stuck over the sheet's bottom padding; the buttons stay above the home indicator. */
  margin: 12px -2px calc(-12px - var(--safe-b)); padding-bottom: calc(12px + var(--safe-b));
  position: sticky; bottom: calc(-12px - var(--safe-b)); background: var(--bg-solid); }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.primary.dis { opacity: .4; }
.why { margin-top: 6px; font-size: 13px; color: #ffb3b3; text-align: center; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---- Direct control stick ---- */
.grid.fire { grid-template-columns: repeat(2, 1fr); }
.stick { position: relative; width: 132px; height: 132px; margin: 12px auto 0; border-radius: 50%;
  border: 1px solid var(--line); background: radial-gradient(rgba(124, 140, 255, .18), rgba(255, 255, 255, .04));
  touch-action: none; }
.stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* ---- Pause ---- */
#pause { position: fixed; inset: 0; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 16px) calc(var(--safe-r) + 16px) calc(var(--safe-b) + 16px) calc(var(--safe-l) + 16px);
  background: rgba(0, 0, 0, .55); pointer-events: auto; }
#pause .panel { width: min(360px, 100%); max-height: calc(100vh / var(--ui-zoom) - 32px - var(--safe-t) - var(--safe-b)); overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; border-radius: 16px;
  background: var(--bg-solid); animation: sheet-in .2s ease-out; }
#pause h2 { margin: 0 0 4px; font-size: 20px; text-align: center; }
#pause .qrow { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; }
#pause .qrow > span { font-size: 13px; color: var(--dim); }
#pause .qrow small { font-size: 12px; color: var(--dim); text-align: center; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.seg .btn { min-height: var(--tap); padding: 4px 2px; font-size: 13px; }
.btn.slot { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; min-height: 56px; }
.btn.slot span { font-size: 13px; color: var(--dim); }

@media (orientation: landscape) {
  #top { flex-direction: row; align-items: center; }
  #top .row:first-child { flex: none; }
  #top .grow { display: none; }
  #chips { flex: 1; max-width: 640px; margin-left: auto; }
  #b-follow, #b-sound { order: 5; }
  #toasts { top: calc(var(--safe-t) + 70px); }
  #bottom { flex-direction: row; align-items: flex-end; background: none; border: 0; }
  #tray { flex-direction: column; overflow: auto; max-height: calc(100vh / var(--ui-zoom) - 150px); order: -1; }
  #mapbar { margin-left: auto; align-self: flex-end; align-items: flex-end; }
  #minimap { background: var(--bg); }
  /* Below the top bar, so the resources stay in sight. */
  .sheet, .sheet.build { left: auto; top: calc(var(--top-h, 62px) / var(--ui-zoom)); width: min(380px, calc(48vw / var(--ui-zoom))); max-height: none;
    border-radius: 16px 0 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .sheet.build { width: min(460px, calc(56vw / var(--ui-zoom))); }
}
/* ---- Tutorial (§4.11) ---- */
.tip { position: fixed; left: 0; top: 0; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px;
  border-radius: 12px; background: #fff4c2; color: #1b1a10; font-size: 16px; font-weight: 500; z-index: 5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 6px; }
.tip .skip { align-self: flex-end; background: none; border: 0; padding: 4px 0; min-height: 44px; min-width: 44px;
  font-size: 13px; color: #6a6440; text-decoration: underline; }
.tut { outline: 3px solid #ffd84d !important; outline-offset: 2px; animation: tut-pulse 1s ease-in-out infinite; }
@keyframes tut-pulse { 50% { outline-color: rgba(255, 216, 77, .35); outline-offset: 5px; } }

/* ---- Main menu (§4.12) over the live map ---- */
#menu { position: fixed; inset: 0; pointer-events: none; display: flex; flex-direction: column;
  justify-content: space-between; padding: calc(var(--safe-t) + 28px) calc(var(--safe-r) + 16px)
  calc(var(--safe-b) + 20px) calc(var(--safe-l) + 16px);
  background: linear-gradient(to bottom, rgba(4, 6, 16, .75), transparent 28%, transparent 55%, rgba(4, 6, 16, .85)); }
#menu > * { pointer-events: auto; }
.m-title { text-align: center; pointer-events: none !important; }
.m-title h1 { margin: 0; font-size: clamp(34px, calc(11vw / var(--ui-zoom)), 64px); font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1; color: #fff;
  text-shadow: 0 0 24px rgba(124, 140, 255, .8), 0 2px 0 #2a2f6a; }
.m-buttons { display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); margin: 0 auto; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#menu .btn.big { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 18px; font-weight: 600; background: var(--bg); backdrop-filter: blur(6px); }
#menu .btn.big.primary { background: var(--accent); font-size: 20px; min-height: 68px; }
#menu .btn.big small { font-size: 13px; font-weight: 400; opacity: .75; }
#m-sheet { max-height: calc(78vh / var(--ui-zoom)); }
.m-full { position: absolute; top: calc(var(--safe-t) + 10px); right: calc(var(--safe-r) + 10px); background: var(--bg); }
.m-full[hidden], .m-install[hidden] { display: none; }
.m-install { pointer-events: auto; margin: 14px auto 0; text-align: left;
  width: min(420px, 100%); box-sizing: border-box; display: flex; align-items: flex-start; gap: 6px;
  padding: 10px 6px 10px 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line);
  backdrop-filter: blur(6px); font-size: 15px; line-height: 1.35; }
.m-install p { margin: 0; flex: 1; }
#menu.open .m-install { display: none; }
.m-install .icon { width: 36px; height: 36px; flex: none; }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.map-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.map-card.cur { border-color: var(--accent); background: rgba(124, 140, 255, .16); }
.map-card canvas { border-radius: 4px; max-width: 100%; align-self: center; }
.map-meta { display: flex; flex-direction: column; gap: 2px; }
.map-meta b { font-size: 16px; }
.map-meta span { font-size: 13px; color: var(--dim); white-space: nowrap; }
@media (orientation: landscape) {
  #menu { flex-direction: row; align-items: center; justify-content: flex-start; gap: 24px;
    background: linear-gradient(to right, rgba(4, 6, 16, .85), transparent 55%); }
  .m-title { text-align: left; order: 0; position: absolute; left: calc(var(--safe-l) + 24px); top: calc(var(--safe-t) + 20px); }
  .m-title h1 { font-size: clamp(30px, calc(6vw / var(--ui-zoom)), 56px); }
  .m-buttons { width: min(360px, calc(44vw / var(--ui-zoom))); margin: 60px 0 0; }
  #m-sheet { top: 0; width: min(560px, calc(56vw / var(--ui-zoom))); max-height: none; border-radius: 16px 0 0 16px; }
  #m-sheet .maps { grid-template-columns: 1fr 1fr 1fr; }
  #menu.open .m-title { display: none; }
  .m-install { position: fixed; margin: 0; right: calc(var(--safe-r) + 16px); bottom: calc(var(--safe-b) + 16px);
    width: min(380px, calc(46vw / var(--ui-zoom))); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
