/* ============================================================================
   NOVAMINO, marketing site
   Recreates the in-game synthwave / neon-cyan identity (Palette.gd,
   Background.gd, client-3ds Synthwave.h). Pure CSS, no external assets,
   no remote fonts, fully self-contained / offline-capable.
   ========================================================================== */

:root {
  /* --- Palette (from client/scripts/ui/Palette.gd, evolved) --- */
  --bg:          #0a0d17;
  --bg-2:        #070912;
  --panel:       #141a29;
  --panel-2:     #0f1422;
  --panel-hi:    #1b2336;
  --grid:        rgba(41, 51, 77, 0.45);
  --line:        rgba(120, 160, 220, 0.14);
  --line-hi:     rgba(120, 200, 255, 0.32);

  --text:        #d9ebff;
  --text-dim:    #8c9bb8;
  --text-faint:  #5b6982;

  --accent:      #33f2ff;   /* cyan UI accent */
  --accent-deep: #0bb6cf;
  --accent-ink:  #04222a;
  --magenta:     #ff4db3;
  --warning:     #ff7319;
  --danger:      #ff2e4d;
  --ok:          #3dff8a;

  /* synthwave backdrop */
  --sky-1: #1b1140;  --sky-2: #2a1250;  --sky-3: #3a1550;
  --sun-1: #ffd23f;  --sun-2: #ff7b54;  --sun-3: #ff2e8a;
  --neon-violet: #b14dff;

  /* per-piece neon colours (Palette.gd CELLS) */
  --p-i: #19f2ff;  --p-o: #ffea33;  --p-t: #b34dff;  --p-s: #40ff73;
  --p-z: #ff4db3;  --p-j: #4d8cff;  --p-l: #ffa626;

  /* type / spacing / shape, Eurostile-flavoured system stack (no web fonts) */
  --font: "Rajdhani", "Eurostile", "Bahnschrift", "DIN Alternate", "Segoe UI", "Roboto Condensed", system-ui, sans-serif;
  --mono: "Share Tech Mono", "JetBrains Mono", "Consolas", "SF Mono", ui-monospace, monospace;

  --r-1: 8px;  --r-2: 12px; --r-3: 18px;  --r-pill: 999px;
  --maxw: 1080px;

  --glow-accent: 0 0 8px rgba(51,242,255,.55), 0 0 22px rgba(51,242,255,.25);
  --glow-soft:   0 8px 30px rgba(0,0,0,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: .3px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

/* ============================================================================
   Animated synthwave backdrop (fixed, behind everything)
   ========================================================================== */
.backdrop {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--bg-2);
  contain: paint;
}

.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 520px at 50% 8%, rgba(51,242,255,.08), transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 56%, var(--bg-2) 72%);
}
/* faint perspective star-grid in the sky */
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 12%, #000 30%, transparent 72%);
  mask-image: radial-gradient(120% 70% at 50% 12%, #000 30%, transparent 72%);
}

/* horizon sits a little above the vertical middle (orig shader ~0.60) */
:root { --horizon: 60%; }

/* the sliced sun, sitting ON the horizon */
.sun {
  position: absolute; left: 50%; top: var(--horizon);
  transform: translate(-50%, -50%);
  width: 360px; height: 360px; border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-1) 0%, var(--sun-2) 46%, var(--sun-3) 100%);
  -webkit-mask:
    linear-gradient(180deg, #000 50%, transparent 50%),
    repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 19px);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(180deg, #000 50%, transparent 50%),
    repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 19px);
  mask-composite: intersect;
  filter: drop-shadow(0 0 50px rgba(255,90,140,.45));
  opacity: .95;
}

/* flanking wireframe mountains resting on the horizon (crisp zigzag ridgeline,
   like the 3DS reference): dark silhouette fill + a glowing violet rim. */
.mountains {
  position: absolute; left: 0; right: 0; top: var(--horizon);
  height: 92px; transform: translateY(-100%);
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(177,77,255,.45));
}
.mountains svg { width: 100%; height: 100%; display: block; }
.mountains .m-fill { fill: rgba(18,7,38,.62); }
.mountains .m-edge { fill: none; stroke: var(--neon-violet); stroke-width: 2; stroke-linejoin: round; }

/* the neon perspective floor, horizontal lines advancing toward the viewer */
.floor {
  position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0;
  overflow: hidden; perspective: 240px; perspective-origin: 50% 0%;
  contain: paint;
}
/* the tilted ground plane: holds the horizon fade mask and stays put */
.floor-plane {
  position: absolute; left: -60%; right: -60%; top: 0; height: 340%;
  transform: rotateX(80deg); transform-origin: 50% 0%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
/* the scrolling grid texture. The gradient repeats every 60px, so translating it
   one full period per cycle scrolls seamlessly on the compositor (no per-frame
   repaint, unlike animating background-position). Extended 60px past the plane's
   top and bottom so the shift never reveals an edge inside the fixed mask. */
.floor-plane::before {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; bottom: -60px;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(190,110,255,.85) 58px 60px),
    repeating-linear-gradient(0deg,  transparent 0 58px, rgba(170,100,255,.8) 58px 60px);
  will-change: transform; backface-visibility: hidden;
  animation: floordrift 1.5s linear infinite;
}
@keyframes floordrift { to { transform: translateY(60px); } }
.floor::after { /* horizon glow line */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: rgba(190,120,255,.9);
  box-shadow: 0 0 12px 2px rgba(177,77,255,.6);
}

/* drifting neon tetromino "stars" (populated by main.js). The container is clipped
   to the sky above the horizon so pieces vanish at the horizon, behind the mountains. */
.stars {
  position: absolute; left: 0; right: 0; top: 0; height: var(--horizon);
  overflow: hidden; pointer-events: none; contain: paint;
}
.star {
  position: absolute; top: -8%;
  display: grid; gap: 2px;
  opacity: .0;
  filter: drop-shadow(0 0 6px currentColor);
  animation: drift linear infinite;
  will-change: transform, opacity;
}
.star i { width: var(--u, 9px); height: var(--u, 9px); border-radius: 2px;
  background: currentColor; opacity: .85; }
.star i.pad { background: transparent; }
@keyframes drift {
  0%   { transform: translateY(-12vh) rotate(0deg); opacity: 0; }
  12%  { opacity: .5; }
  78%  { opacity: .45; }
  100% { transform: translateY(64vh) rotate(var(--spin, 90deg)); opacity: 0; }
}

/* subtle CRT scanlines over the whole backdrop */
.scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.18) 2px 3px);
  mix-blend-mode: multiply;
}

/* ============================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(7,9,18,.86), rgba(7,9,18,.35));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}
.brand {
  font-weight: 800; letter-spacing: 4px; font-size: 18px;
  color: var(--text); text-transform: uppercase;
}
.brand span { color: var(--accent); text-shadow: var(--glow-accent); }
.brand.small { font-size: 14px; letter-spacing: 3px; }
.topnav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.topnav a {
  color: var(--text-dim); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
  transition: color .2s var(--ease);
}
.topnav a:hover { color: var(--text); }

/* ============================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: calc(100vh - 57px);
  display: grid; place-items: center; text-align: center;
  padding: clamp(40px, 9vh, 120px) 20px 80px;
}
.hero-inner { max-width: 760px; }

/* pure-CSS crossed-X mark (magenta + cyan), echoing the in-game logo */
.logo {
  width: 120px; height: 120px; margin: 0 auto 18px; position: relative;
}
.logo::before, .logo::after,
.logo .logo-x::before, .logo .logo-x::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 96px; border-radius: 8px;
}
.logo::before { /* magenta back-slash */
  background: linear-gradient(180deg, var(--magenta), #b14dff);
  transform: translate(-50%, -50%) rotate(45deg) translateX(-10px);
  box-shadow: 0 0 18px rgba(255,77,179,.7);
}
.logo::after { /* cyan back-slash */
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform: translate(-50%, -50%) rotate(45deg) translateX(10px);
  box-shadow: 0 0 18px rgba(51,242,255,.7);
}
.logo .logo-x::before { /* magenta forward-slash */
  background: linear-gradient(180deg, var(--magenta), #b14dff);
  transform: translate(-50%, -50%) rotate(-45deg) translateX(-10px);
  box-shadow: 0 0 18px rgba(255,77,179,.7);
}
.logo .logo-x::after { /* cyan forward-slash */
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform: translate(-50%, -50%) rotate(-45deg) translateX(10px);
  box-shadow: 0 0 18px rgba(51,242,255,.7);
}

.title {
  font-size: clamp(48px, 11vw, 104px); font-weight: 800;
  letter-spacing: clamp(4px, 1.5vw, 14px); line-height: 1;
  text-transform: uppercase; margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(51,242,255,.18);
}
.title span { color: var(--accent); text-shadow: var(--glow-accent); }

/* Backing scrim so the hero copy stays readable over the bright sliced sun. */
.hero-copy {
  display: inline-block; margin-bottom: 30px;
  padding: 22px clamp(20px, 5vw, 44px) 26px;
  border-radius: var(--r-3);
  background: radial-gradient(120% 130% at 50% 30%, rgba(7,9,18,.82), rgba(7,9,18,.58));
  border: 1px solid var(--line);
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(0,0,0,.35) inset;
  backdrop-filter: blur(7px);
}

.tagline { font-size: clamp(18px, 3.2vw, 26px); color: var(--text); margin-bottom: 8px; }
.tagline strong { color: var(--accent); }
.subtagline { font-size: clamp(14px, 2.2vw, 17px); color: var(--text-dim); margin: 0; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-center { margin-top: 34px; }

.btn {
  font: inherit; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 14px; padding: 15px 30px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; display: inline-flex;
  align-items: center; gap: 10px; transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-play {
  position: relative; color: var(--accent-ink);
  background: linear-gradient(180deg, #5ff6ff, var(--accent-deep));
  box-shadow: var(--glow-accent); text-decoration: none;
}
.btn-play .btn-play-label { font-size: 15px; color: var(--accent-ink); }

.hero-facts {
  list-style: none; display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 40px;
}
.hero-facts li {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint);
  padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(15,20,34,.4);
}

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--text-faint); font-size: 26px; animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 12vh, 120px) 20px; }
.section-alt {
  background: linear-gradient(180deg, rgba(10,13,23,.0), rgba(10,13,23,.55) 14%, rgba(10,13,23,.55) 86%, rgba(10,13,23,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* Readable scrim for content that sits over the bright part of the backdrop. */
.pane {
  display: block;
  padding: 28px clamp(22px, 4vw, 40px) 30px;
  border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(7,9,18,.82), rgba(7,9,18,.66));
  border: 1px solid var(--line-hi);
  box-shadow: var(--glow-soft);
  backdrop-filter: blur(8px);
}
.pane .lede { margin-bottom: 0; }
/* tighter pane used to back just a section heading (eyebrow + title + note) */
.pane-tight { margin-bottom: 30px; }
.pane-tight .platforms-note { margin-bottom: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: 12px;
  color: var(--accent); margin-bottom: 12px; font-weight: 700;
  text-shadow: 0 0 8px rgba(51,242,255,.35);
}
.section-title {
  font-size: clamp(26px, 5vw, 44px); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: .5px;
}
.lede { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-dim); max-width: 760px; }
.lede strong { color: var(--text); }

/* how-it-works cards */
.cards {
  display: grid; gap: 20px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative; padding: 28px 24px; border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(27,35,54,.66), rgba(20,26,41,.66));
  border: 1px solid var(--line-hi); backdrop-filter: blur(10px);
  box-shadow: var(--glow-soft); transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .5px; }
.card p { font-size: 15px; color: var(--text-dim); }
.card em { color: var(--accent); font-style: normal; }

/* feature icon chip on each card (inline SVG, tinted per piece colour) */
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(7,9,18,.5); border: 1px solid var(--line);
  color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 7px currentColor); }
.card-icon[data-k="i"] { color: var(--p-i); }
.card-icon[data-k="o"] { color: var(--p-o); }
.card-icon[data-k="t"] { color: var(--p-t); }
.card-icon[data-k="s"] { color: var(--p-s); }
.card-icon[data-k="z"] { color: var(--p-z); }
.card-icon[data-k="j"] { color: var(--p-j); }
.card-icon[data-k="l"] { color: var(--p-l); }

/* ============================================================================
   Platforms gallery (clickable tabs + screenshot placeholders)
   ========================================================================== */
.platforms-note { color: var(--text-dim); font-size: 16px; max-width: 760px; }

.gallery { margin: 30px 0 8px; }

.ptabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ptab {
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 1px;
  padding: 10px 20px; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(15,20,34,.55); border: 1px solid var(--line-hi); color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.ptab:hover { color: var(--text); border-color: var(--accent); }
.ptab.active {
  color: var(--accent-ink); border-color: transparent;
  background: linear-gradient(180deg, #5ff6ff, var(--accent-deep));
  box-shadow: var(--glow-accent);
}

.pstage { position: relative; }

/* --- Slideshow (built by main.js per platform) --- */
.slideshow { display: block; }
/* Block layout with a definite full width so the frame's aspect-ratio reserves
   height up front. (A shrink-to-fit flex track would collapse to the image's
   intrinsic width, so unloaded lazy images had zero height and the page jumped
   on load.) Slides/frames self-center via margin:auto + text-align. */
.slide-stage { position: relative; width: 100%; }
.slide-track { position: relative; width: 100%; }

.slide { margin: 0; text-align: center; width: 100%; }
.slide:not(.active) { display: none; }
.slide.active { animation: slidefade .35s var(--ease); }
@keyframes slidefade { from { opacity: 0; } to { opacity: 1; } }

/* prev / next arrows flanking the stage */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font: 700 26px/1 var(--font);
  color: var(--text); background: rgba(7,9,18,.66);
  border: 1px solid var(--line-hi); backdrop-filter: blur(6px);
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), transform .15s var(--ease);
}
.nav-arrow:hover {
  color: var(--accent-ink); border-color: transparent;
  background: linear-gradient(180deg, #5ff6ff, var(--accent-deep));
  box-shadow: var(--glow-accent);
}
.nav-arrow.prev { left: 6px; }
.nav-arrow.next { right: 6px; }

/* dot indicators */
.dots { display: flex; gap: 9px; justify-content: center; margin-top: 16px; }
.dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(120,160,220,.2); border: 1px solid var(--line-hi);
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.dot:hover { transform: scale(1.2); }
.dot.active {
  background: var(--accent); border-color: transparent; box-shadow: var(--glow-accent);
}

.shot { margin: 0; }

.shot-frame {
  position: relative; width: 100%; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--r-3); overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(0,0,0,.5) inset;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-3) 70%, var(--bg-2));
}
.shot-frame.portrait { aspect-ratio: 10 / 16; max-width: 300px; }
/* dropped-in screenshots fill the frame */
.shot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Nintendo 3DS: both screens at once (top 400x240, bottom 320x240) --- */
.threeds-device {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; width: 100%; max-width: 460px; margin: 0 auto;
  padding: 14px 16px 18px; border-radius: 22px;
  background: linear-gradient(180deg, #10131f, #0b0e18);
  border: 1px solid var(--line-hi);
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(0,0,0,.5) inset;
}
.tds-screen {
  position: relative; overflow: hidden; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.7);
  box-shadow: 0 0 0 3px #05070e, inset 0 0 0 1px var(--line-hi);
  background: var(--bg-2);
}
.tds-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tds-top    { width: 100%;   aspect-ratio: 400 / 240; }
.tds-bottom { width: 80%;    aspect-ratio: 320 / 240; }
/* the console hinge between the two screens */
.tds-hinge {
  width: 62%; height: 12px; margin: 7px 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #05070e, #12172400);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6);
}

.shot-ph {
  position: absolute; inset: 0; display: grid; place-content: center;
  gap: 8px; text-align: center;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.shot-ph-os {
  font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: 2px;
  color: var(--text); text-shadow: 0 0 18px rgba(51,242,255,.3);
}
.shot-ph-msg {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  text-shadow: 0 0 8px rgba(51,242,255,.5);
}
.shot figcaption,
.slide figcaption {
  margin-top: 14px; text-align: center; color: var(--text); font-size: 14px;
  letter-spacing: .5px;
  display: inline-block; padding: 5px 14px; border-radius: var(--r-pill);
  background: rgba(7,9,18,.66); border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.shot { text-align: center; }

/* ============================================================================
   Footer
   ========================================================================== */
footer {
  position: relative;
  border-top: 1px solid var(--line-hi);
  background: rgba(5,7,14,.96); padding: 28px 20px;
  backdrop-filter: blur(8px);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-love {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13px; letter-spacing: 1px;
}

/* A little love-heart built from neon tetromino blocks (5 cols x 4 rows). */
/* A heart tiled from real tetromino pieces (2 S, 2 Z, 2 I, 2 T) on an 8x6 grid;
   colours match the in-game palette. Empty cells stay transparent. */
.heart {
  display: inline-grid; grid-template-columns: repeat(8, 6px);
  grid-auto-rows: 6px; gap: 1px; vertical-align: middle;
  filter: drop-shadow(0 0 5px rgba(255,77,179,.45));
}
.heart i { border-radius: 1px; }
.heart i.i { background: var(--p-i); }
.heart i.s { background: var(--p-s); }
.heart i.z { background: var(--p-z); }
.heart i.t { background: var(--p-t); }
/* a faint stacked-block bevel: bright top-left edge, dark bottom-right */
.heart i.i, .heart i.s, .heart i.z, .heart i.t {
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), inset -1px -1px 0 rgba(0,0,0,.35);
}

/* ============================================================================
   Reduced motion: kill backdrop + UI animation for users who ask for it.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floor-plane::before { animation: none; }
  .scroll-hint { animation: none; }
  .star { animation: none; display: none; }
  .btn:hover, .card:hover { transform: none; }
  .slide.active { animation: none; }
}

/* Freeze the backdrop animations while the tab is hidden (toggled from main.js).
   Only affects a backgrounded tab, so the visible look is unchanged. */
body.bg-hidden .floor-plane::before,
body.bg-hidden .star { animation-play-state: paused; }

@media (max-width: 620px) {
  .topnav { gap: 14px; }
  .footer-inner { justify-content: center; text-align: center; }
}
