/*
 * Magic16 — Win98 chrome + controls (Geo97 recipe, magenta→cyan neon accents).
 * Titlebar · menu bar · taskbar/Start/clock · buttons (grey + chunky neon) ·
 * panels · scrollbars · page-content. Every object is dimensional, never flat.
 */

/* ============================ WINDOW TITLEBAR ============================ */
.win__title {
  display: flex; align-items: center; gap: 6px;
  flex: 0 0 auto;   /* PERSISTENT chrome: the titlebar never grows/shrinks with content */
  height: var(--title-h); padding: 2px 3px 2px 6px;
  background: var(--title-active);
  color: var(--title-text);
}
/* STICKY CHROME: the title bar + navbar stack stays at the top of the viewport as the page scrolls
   underneath it; the footer stays at the end of the page. Pure browser layout — no scroll handler.
   Above the page (and its lighting overlay, z 3 / the 3D layer, z 4), below the page-transition
   curtain (z 40). It carries its own lighting overlay, so it is lit identically pinned or not. */
.win__chrome { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; flex: 0 0 auto; }
.win__title-ico { width: var(--title-ico); height: var(--title-ico); image-rendering: pixelated; }
.win__title-text { flex: 1 1 auto; font-weight: 700; font-size: var(--fs-ui);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 0 rgba(0,0,0,0.4); }
.cap-btns { display: flex; gap: 2px; }
.cap-btn {
  width: var(--capbtn-w); height: var(--capbtn-h); display: grid; place-items: center;
  font-size: var(--fs-micro); font-weight: 700; color: var(--ink); cursor: pointer;
  background: var(--face);
  border: 1px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light);
}
.cap-btn:active { border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow); box-shadow: inset 1px 1px 0 var(--shadow); }

/* ============================== STATUS BAR ============================= */
.win__status {
  display: flex; align-items: center; gap: 6px; padding: 3px; margin-top: 3px;
  flex: 0 0 auto;   /* PERSISTENT chrome */
  font-size: var(--fs-sm); color: var(--ink-soft); background: var(--face);
}
.win__status .status__msg { flex: 1 1 auto; }
.win__status .status__msg, .win__status .status__cell {
  padding: 2px 8px; border: 1px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow);
}

/* ============================== MENU BAR =============================== */
.win__menu {
  display: flex; align-items: stretch; gap: 0;
  flex: 0 0 auto;   /* PERSISTENT navbar: stays at the top of the window, never routed/transformed */
  min-height: var(--menubar-h); padding: 0 2px; flex-wrap: wrap;
  background: var(--face);
  border-bottom: 1px solid var(--shadow);
  box-shadow: inset 0 1px 0 var(--hilite);
}
.menu-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; cursor: pointer; color: #000; font-size: var(--fs-ui);
  border: 1px solid transparent; background: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;  /* sign power-transfer */
}
.menu-item .ic { width: var(--nav-ico); height: var(--nav-ico); }
.menu-item:hover { background: var(--face-lt); border-color: var(--hilite) var(--shadow) var(--shadow) var(--hilite); }
.menu-item[aria-current="page"] {
  background: var(--blue-sel); color: #fff;
  border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow);
}
.menu-item__key { text-decoration: underline; }

/* =============================== TASKBAR =============================== */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--taskbar-h); display: flex; align-items: center; gap: 4px; padding: 3px 4px;
  background: var(--face);
  border-top: 2px solid; border-top-color: var(--hilite);
  box-shadow: inset 0 1px 0 var(--light);
}
.start-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--startbtn-h); padding: 0 10px 0 7px; cursor: pointer; font-weight: 700; color: var(--ink);
  background: linear-gradient(var(--face-lt), var(--face));
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow);
}
.start-btn__sigma { display: grid; place-items: center;
  width: calc(18px * var(--m16-scale)); height: calc(18px * var(--m16-scale));
  color: #fff; font-weight: 700; background: linear-gradient(var(--mag-lt), var(--mag-dk));
  border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4); }
.start-btn[aria-expanded="true"], .start-btn:active {
  border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow);
  box-shadow: inset 1px 1px 0 var(--shadow);
}
.task-sep { width: 2px; align-self: stretch; margin: 2px 2px;
  background: linear-gradient(var(--shadow), var(--hilite)); }
.task-btns { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.task-btn {
  display: inline-flex; align-items: center; gap: 6px; max-width: 200px;
  height: 26px; padding: 0 10px; cursor: pointer; color: #000; font-size: var(--fs-ui);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--face);
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light);
}
.task-btn .ic { width: 15px; height: 15px; }
.task-btn[aria-current="page"] {
  border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow);
  box-shadow: inset 1px 1px 0 var(--shadow);
  background: repeating-linear-gradient(45deg, #c8c8c8 0 2px, #bcbcbc 2px 4px); font-weight: 700;
}
.tray {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px;
  border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow);
}
.clock { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--green);
  background: #0a0a0a; padding: 3px 7px; border: 1px solid #000; letter-spacing: 0.05em; }

/* ============================= START MENU ============================= */
.start-menu {
  position: fixed; left: 4px; bottom: calc(var(--taskbar-h) + 2px); z-index: 61;
  width: 240px; display: flex;
  background: var(--face);
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), var(--shadow-win);
}
.start-menu[hidden] { display: none; }
.start-menu__rail {
  width: 30px; flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: flex-end; padding: 8px 0;
  color: #fff; font-family: var(--font-pixel); font-size: 18px; letter-spacing: 0.1em;
  background: linear-gradient(180deg, var(--cyan-dk), var(--mag-dk));
}
.start-menu__list { flex: 1 1 auto; padding: 3px; display: flex; flex-direction: column; }
.start-menu__item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer;
  color: #000; font-size: var(--fs-ui); text-decoration: none; background: none; border: 0; text-align: left;
}
.start-menu__item .ic { width: 20px; height: 20px; }
.start-menu__item:hover { background: var(--blue-sel); color: #fff; }
.start-menu__sep { height: 2px; margin: 3px 6px; background: linear-gradient(var(--shadow), var(--hilite)); }

/* ============================== BUTTONS =============================== */
/* Base grey Win98 button (also the base for .lozenge, kept for page markup). */
.btn, .lozenge {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 6px 14px; cursor: pointer; color: #000; font-size: var(--fs-ui); font-weight: 700;
  text-decoration: none; border-radius: var(--radius);
  background: linear-gradient(var(--face-lt), var(--face));
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow);
  transition: filter var(--dur-fast) var(--ease);
}
.btn:hover, .lozenge:hover { background: linear-gradient(#e4e0d8, var(--face-lt)); }
.btn:active, .lozenge:active {
  border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow);
  box-shadow: inset 1px 1px 0 var(--shadow);
  transform: translate(1px, 1px);
}
/* Chunky coloured commit buttons — colour face, KEEP the bevel (never flat). */
.btn--cyan,   .lozenge--accent  { background: linear-gradient(var(--cyan-lt), var(--cyan-dk)); color: #002; }
.btn--mag,    .lozenge--accent2 { background: linear-gradient(var(--mag-lt), var(--mag-dk)); color: #fff; }

/* k10k pixel-art social buttons: flat vivid fill, hard black frame, square
   corners, a pixel bevel + a hard offset drop-shadow. Icons render crisp. */
.lozenge {
  /* `--radius-pill` so a rounder theme (DS / LBP / Y2K) actually rounds these — the
     hardcoded `0` is why switching to LBP used to round almost nothing (audit E002). */
  border-radius: var(--radius-pill); border: 2px solid #000; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.6), inset -2px -2px 0 rgba(0,0,0,0.28), 3px 3px 0 #000;
}
.lozenge--accent2 { background: var(--loz-2); color: var(--loz-2-ink); text-shadow: 1px 1px 0 rgba(0,0,0,0.4); }
.lozenge--accent2:hover { background: color-mix(in srgb, var(--loz-2) 82%, #fff); filter: none; }
.lozenge--accent  { background: var(--loz-1); color: var(--loz-1-ink); }
.lozenge--accent:hover  { background: color-mix(in srgb, var(--loz-1) 82%, #fff); filter: none; }
.lozenge:active {
  transform: translate(2px, 2px);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.3), 1px 1px 0 #000;
}
.btn--green   { background: linear-gradient(#7ee07e, var(--green-dk)); color: #063b06; }
.btn--amber   { background: linear-gradient(var(--amber-lt), #d69a00); color: #3a1c00; }
.btn--violet  { background: linear-gradient(var(--violet-lt), #5e2bb0); color: #fff; }
.lozenge__badge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-pill);
  border: 1px solid #000; color: #fff; font-size: var(--fs-micro); background: var(--green-dk);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.35); }
.plat-ic { flex: 0 0 auto; display: block; height: 22px; width: auto; image-rendering: pixelated; }

/* ---- ILLUMINATED / NEON WEB BUTTONS -------------------------------------------------------------
   A restrained backlit-sign treatment that sits ON TOP of the physical k10k button: the black
   extrusion, bevel, texture and CRISP text/icons are all kept — the glow is an OUTSIDE illumination
   (box-shadow only, never `filter`, so nothing blurs). `--m16-emit` is the brand accent (amber /
   red / violet / emerald / cool-white); it drives both the rim and the spill. This is the CSS
   layer: it is the full look WITHOUT WebGPU, and is DIALLED BACK under :root.m16-lit-gpu (where the
   lighting engine draws the real emissive rim + environmental colour spill) to avoid a double glow.
   Opt-in per button via .m16-btn-lit (restrained) / .m16-btn-neon (stronger) — never global. */
/* --m16-emit is the brand accent. When a button leaves it unset, the WebGPU engine derives the glow
   from the button's OWN face colour (brandFromBg), so solid buttons are brand-correct automatically;
   the CSS layer falls back to this cool-white so a face-less/gradient button still reads illuminated.
   A .m16-lit-btns ROW opts every lozenge inside it in (catches editor-inserted buttons too). */
.m16-btn-lit, .m16-btn-neon, .m16-lit-btns .lozenge { --m16-emit: #bfe6ff; position: relative; }
/* Illuminated lozenge: inner luminous rim + brighter top bevel + KEEP black extrusion + tight glow. */
.lozenge.m16-btn-lit, .lozenge.m16-btn-neon, .m16-lit-btns .lozenge {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 55%, transparent),   /* inner emissive rim */
    inset 1px 1px 0 rgba(255,255,255,0.72),                                 /* brighter lit top-left */
    inset -2px -2px 0 rgba(0,0,0,0.28),                                     /* keep dark bevel */
    3px 3px 0 #000,                                                         /* KEEP black extrusion */
    0 0 2px color-mix(in srgb, var(--m16-emit) 92%, transparent),          /* thin emissive outline */
    0 0 7px color-mix(in srgb, var(--m16-emit) 62%, transparent);          /* tight outer glow */
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.lozenge.m16-btn-neon, .m16-lit-btns .m16-btn-neon {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 72%, transparent),
    inset 1px 1px 0 rgba(255,255,255,0.8),
    inset -2px -2px 0 rgba(0,0,0,0.28),
    3px 3px 0 #000,
    0 0 2px color-mix(in srgb, var(--m16-emit) 100%, transparent),
    0 0 10px color-mix(in srgb, var(--m16-emit) 74%, transparent);
}
/* Under WebGPU the engine supplies the rim + environmental spill → keep only a whisper of CSS glow
   (mostly the inner rim) so the two don't stack into bloom. */
:root.m16-lit-gpu .lozenge.m16-btn-lit,
:root.m16-lit-gpu .m16-lit-btns .lozenge {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 42%, transparent),
    inset 1px 1px 0 rgba(255,255,255,0.72),
    inset -2px -2px 0 rgba(0,0,0,0.28),
    3px 3px 0 #000,
    0 0 3px color-mix(in srgb, var(--m16-emit) 34%, transparent);
}
:root.m16-lit-gpu .lozenge.m16-btn-neon,
:root.m16-lit-gpu .m16-lit-btns .m16-btn-neon {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 58%, transparent),
    inset 1px 1px 0 rgba(255,255,255,0.8),
    inset -2px -2px 0 rgba(0,0,0,0.28),
    3px 3px 0 #000,
    0 0 4px color-mix(in srgb, var(--m16-emit) 46%, transparent);
}
/* Hover POWERS UP: brighter rim + a touch more glow + a very small physical lift. Quick (~140ms). */
.lozenge.m16-btn-lit:hover, .lozenge.m16-btn-neon:hover, .m16-lit-btns .lozenge:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 78%, transparent),
    inset 1px 1px 0 rgba(255,255,255,0.85),
    inset -2px -2px 0 rgba(0,0,0,0.28),
    3px 4px 0 #000,
    0 0 3px color-mix(in srgb, var(--m16-emit) 100%, transparent),
    0 0 11px color-mix(in srgb, var(--m16-emit) 80%, transparent);
  filter: brightness(1.05);
}
/* Press PUSHES IN: extrusion collapses, glow contracts (matches the physical depress). */
.lozenge.m16-btn-lit:active, .lozenge.m16-btn-neon:active, .m16-lit-btns .lozenge:active {
  transform: translate(2px, 2px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 50%, transparent),
    inset 2px 2px 0 rgba(0,0,0,0.3),
    1px 1px 0 #000,
    0 0 4px color-mix(in srgb, var(--m16-emit) 45%, transparent);
  filter: none;
}
/* Keyboard focus: crisp pixel/dotted ring in the accent + a stronger emission — never colour-only. */
.lozenge.m16-btn-lit:focus-visible, .lozenge.m16-btn-neon:focus-visible, .m16-lit-btns .lozenge:focus-visible {
  outline: 2px dotted color-mix(in srgb, var(--m16-emit) 85%, #fff);
  outline-offset: 3px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--m16-emit) 85%, transparent),
    inset 1px 1px 0 rgba(255,255,255,0.85),
    inset -2px -2px 0 rgba(0,0,0,0.28),
    3px 3px 0 #000,
    0 0 3px color-mix(in srgb, var(--m16-emit) 100%, transparent),
    0 0 12px color-mix(in srgb, var(--m16-emit) 82%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .lozenge.m16-btn-lit, .lozenge.m16-btn-neon, .m16-lit-btns .lozenge { transition: none; }
  .lozenge.m16-btn-lit:hover, .lozenge.m16-btn-neon:hover, .m16-lit-btns .lozenge:hover { transform: none; }
}

/* Neon "mode pill" accent (Geo97 street-sign) */
.neon-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; color: #fff; font-weight: 700;
  border: 2px solid #000; border-radius: 3px;
  background: linear-gradient(var(--mag), var(--mag-dk));
  box-shadow: inset 0 2px 0 var(--mag-lt), 0 0 10px rgba(208,56,144,0.5), 1px 1px 0 rgba(0,0,0,0.5);
}
.neon-pill--cyan { background: linear-gradient(var(--cyan-lt), var(--cyan-dk));
  box-shadow: inset 0 2px 0 #bff, var(--glow-cyan), 1px 1px 0 rgba(0,0,0,0.5); color: #012; }

/* Kicker / caption label */
.kicker { display: inline-block; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mag-dk); }

/* ============================ PANELS / GROOVES ========================= */
.panel {
  background: var(--face);
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow);
}
.panel__title {
  display: flex; align-items: center; gap: 6px; padding: 3px 6px; font-weight: 700; color: #fff;
  background: var(--title-active);
}
.panel__body { padding: var(--pad-5); background: var(--well);
  border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); margin: 3px; }

/* FULL-BLEED COMPONENT BODY.
 * A component marked `data-m16-fullbleed` (e.g. Things I Love) IS the panel body: the cream
 * well around it — padding, the inset Win98 border, the 3px margin and the `--well`
 * background — is removed so the component's own surface reaches all four edges. Only the
 * panel that directly hosts such a component is affected; every ordinary content panel keeps
 * its well. A dark fallback background stands in for the module's environment so the cream
 * well can never flash through before the WebGPU canvas has painted or sized. */
.panel__body:has(> .m16-comp[data-m16-fullbleed]) {
  padding: 0; margin: 0; border: 0; background: #05030e; box-shadow: none;
}
.m16-comp[data-m16-fullbleed] { display: block; }
.m16-comp[data-m16-fullbleed] > .tl { margin: 0; }
/* Win98 etched groove separator (replaces old dividers) */
.groove, .stitch, .divider { height: 0; border: none; border-top: 1px solid var(--shadow);
  border-bottom: 1px solid var(--hilite); margin: var(--pad-6) 0; }

/* ============================== SCROLLBARS ============================= */
.content, .well, .vplayer__desc, .picker__list { scrollbar-width: auto; }
*::-webkit-scrollbar { width: 17px; height: 17px; }
*::-webkit-scrollbar-track { background: repeating-linear-gradient(45deg, #d8d8d8 0 2px, #c8c8c8 2px 4px); }
*::-webkit-scrollbar-thumb { background: linear-gradient(var(--face-lt), var(--face));
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light); }
*::-webkit-scrollbar-button { background: var(--face); border: 2px solid;
  border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite); height: 17px; }

/* =========================== VIDEO THEATRE (Win9x media player) ======== */
.vplayer { display: grid; gap: var(--pad-6); }
.vplayer__theatre { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: var(--pad-6); align-items: start; }
.vplayer__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.vplayer__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: #000; }
.vplayer__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplayer__play { position: relative; z-index: 1; width: 74px; height: 74px; display: grid; place-items: center;
  color: #fff; font-size: 26px; background: linear-gradient(var(--mag-lt), var(--mag-dk));
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light); }
.vplayer__poster:hover .vplayer__play { filter: brightness(1.1); }
.vplayer__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer__info { display: flex; flex-direction: column; gap: var(--pad-4); min-width: 0; }
.vplayer__title { margin: 0; font-weight: 700; font-size: var(--h2); line-height: 1.2; }
.vplayer__desc { margin: 0; font-size: var(--fs-ui); color: var(--ink-soft); line-height: 1.5;
  max-height: 220px; overflow: auto; white-space: pre-line; overflow-wrap: anywhere;
  background: var(--well); padding: 8px; border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.vplayer__reel { display: flex; gap: var(--pad-5); overflow-x: auto; padding: 4px 2px 10px; }
.vthumb { position: relative; flex: 0 0 auto; width: 190px; padding: 0; cursor: pointer; text-align: left;
  background: var(--face); overflow: hidden;
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light); }
.vthumb[aria-current="true"] { border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow);
  box-shadow: inset 1px 1px 0 var(--shadow), 0 0 0 2px var(--mag); }
.vthumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--shadow); }
.vthumb__ep { position: absolute; top: 6px; left: 6px; font-size: var(--fs-micro); color: #fff; background: rgba(0,0,0,0.6); padding: 2px 6px; }
.vthumb__title { display: block; padding: 6px 8px; font-weight: 700; font-size: var(--fs-sm);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .vplayer__theatre { grid-template-columns: 1fr; } }
/* Large screens: unwrap the theatre (display:contents keeps the DOM — and every
   path-based override — intact) so the poster, reel and info share ONE grid. The
   reel sits directly UNDER the poster on the left; the info (title/desc/buttons)
   gets its own right column and spans both rows, so its buttons can never push
   the reel down. Mobile keeps the stacked poster→info→reel layout above. */
@media (min-width: 861px) {
  .vplayer { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
    grid-template-areas: "stage info" "reel info"; align-items: start; }
  .vplayer__theatre { display: contents; }
  .vplayer__stage { grid-area: stage; }
  .vplayer__info  { grid-area: info; align-self: start; }
  .vplayer__reel  { grid-area: reel; align-self: start; }
}

/* ============================ PORTFOLIO / ABOUT ======================= */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--pad-5); }
.work { margin: 0; background: var(--face); overflow: hidden;
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite); box-shadow: inset 1px 1px 0 var(--light); }
.work:hover, .work:focus-visible { outline: none; box-shadow: inset 1px 1px 0 var(--light), 0 0 0 2px var(--cyan); }
.work__thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 30px; color: #fff;
  background: linear-gradient(135deg, var(--wc, var(--cyan)), var(--mag)); border-bottom: 1px solid var(--shadow); }
.work__cap { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.work__title { font-weight: 700; }
.work__kind { font-size: var(--fs-micro); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.facts { display: grid; gap: 6px; }
.facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.facts dt { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 0; }
.retro-gif { image-rendering: pixelated; vertical-align: middle; }
.gfxshelf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px; margin-top: 8px;
  background: var(--well); border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.gfxshelf__credit { font-size: var(--fs-micro); color: var(--ink-soft); }

/* ============================ GEO97.EXE PAGE ========================= */
.g97-desktop { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--pad-6); }
.g97-win { background: var(--face);
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite); box-shadow: inset 1px 1px 0 var(--light), var(--shadow-drop); }
.g97-title { display: flex; align-items: center; justify-content: space-between; padding: 3px 6px; color: #fff; font-weight: 700; background: var(--title-active); }
.g97-body { padding: var(--pad-5); background: var(--well); border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); margin: 3px; }
.g97-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g97-gel { padding: 5px 14px; cursor: pointer; font-weight: 700; color: #000; background: linear-gradient(var(--face-lt), var(--face));
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite); box-shadow: inset 1px 1px 0 var(--light); }
/* Geo97.exe windows sit on a full watery '97 desktop (a wallpaper, not a patch) */
.g97-desktop { padding: 20px; background: #2aa3b8 var(--tex-water) repeat;
  border: 2px solid; border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow); box-shadow: inset 1px 1px 0 var(--shadow); }

/* =========== Slamm1nSalm0n sub-brand (its own lime/green accent) ========= */
/* Editor background painting/clearing: hide decorative ::before/::after textures
   (inline styles can't reach a pseudo — e.g. the .slamm-banner circuit lives on
   ::before, which layers OVER the element's own background). Targets ONLY the
   pseudo, so a gradient/texture the user paints on the element still shows. */
[data-m16-bgclear]::before, [data-m16-bgclear]::after { background: transparent !important; }

.slamm-banner {
  display: grid; gap: 8px; justify-items: start; padding: 12px 14px; position: relative; overflow: clip;
  background: var(--face);
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow);
}
.slamm-banner::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.14;
  background: var(--tex-circuit) repeat; image-rendering: pixelated; pointer-events: none; }
.slamm-banner > * { position: relative; z-index: 1; }
.slamm-fam { padding: 2px 10px; color: #052; font-weight: 700; font-size: var(--fs-micro);
  background: linear-gradient(#9bffa0, #1f9c34); border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4); }
.slamm-title { margin: 0; font-family: var(--font-pixel); font-size: var(--h1); line-height: 1.05; color: var(--lime);
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000, 4px 5px 0 var(--green-dk); }
.slamm .lozenge--accent2 { background: linear-gradient(#9bffa0, var(--green-dk)); color: #052; }

/* Portfolio grid sits on a bookshelf board; About on white tiles */
.board--books { background: var(--tex-books) repeat; image-rendering: pixelated; }
.board--white { background: var(--tex-whitetile) repeat; image-rendering: pixelated; }

/* ---- Background tuning panel (bg-controls.js) ---------------------------- */
.bgpanel__toggle {
  position: fixed; right: 12px; bottom: 12px; z-index: 60;
  padding: 6px 12px; cursor: pointer; font-family: var(--font-ui); font-size: var(--fs-ui);
  font-weight: 700; color: #002; letter-spacing: 0.03em;
  background: linear-gradient(var(--cyan-lt), var(--cyan-dk));
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow), var(--shadow-drop);
}
.bgpanel__toggle:active { border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow); transform: translate(1px,1px); }

.bgpanel {
  position: fixed; right: 12px; bottom: 52px; z-index: 61;
  width: min(280px, calc(100vw - 24px)); max-height: min(78vh, 620px); overflow-y: auto;
  background: var(--face); padding: 3px;
  border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow), var(--shadow-win);
}
.bgpanel[hidden] { display: none; }
.bgpanel__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px; color: #fff; font-weight: 700; font-size: var(--fs-ui);
  background: var(--title-active);
}
.bgpanel__x {
  width: 20px; height: 18px; cursor: pointer; color: #000; font-size: 11px; line-height: 1;
  background: var(--face); border: 2px solid; border-color: var(--hilite) var(--dkshadow) var(--dkshadow) var(--hilite);
  box-shadow: inset 1px 1px 0 var(--light), inset -1px -1px 0 var(--shadow);
}
.bgpanel__x:active { border-color: var(--dkshadow) var(--hilite) var(--hilite) var(--dkshadow); }
.bgpanel__body { display: grid; gap: 9px; padding: 10px; }
.bgctl { display: grid; gap: 3px; }
.bgctl__lab { font-size: var(--fs-micro); font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.bgctl__row { display: flex; align-items: center; gap: 7px; }
.bgctl__range { flex: 1 1 auto; min-width: 0; accent-color: var(--mag); height: 18px; }
.bgctl__num {
  flex: 0 0 62px; width: 62px; padding: 3px 4px; font-family: var(--font-mono); font-size: var(--fs-micro);
  color: #000; background: #fff;
  border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow);
}
.bgpanel__actions { display: flex; gap: 8px; margin-top: 2px; }
.bgpanel__actions .btn { flex: 1 1 auto; padding: 5px 8px; font-size: var(--fs-micro); }
