/* ==========================================================================
   product.css: the two product pages, their build pages, the installer, the beta
   page and the device map. Everything here reads night.css's tokens; the parts it
   uses (.key, .stamp, .pane, .screen, .specs, .steps, .points, .ticks, .callout,
   details) are night.css's own.
   ========================================================================== */

/* night.css sets no rule for [hidden], so a part's own display: beats the
   browser's. The installer's outcome boxes and the stage's live canvas rely on it. */
[hidden]:not([hidden="until-found"]) { display: none !important; }

/* --------------------------------------------------------------------------
   The opening of a page: the heading, the sentence, the one lit action, and the
   facts line under it. On the product pages a lit screen stands beside it.
   -------------------------------------------------------------------------- */
.phero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.phero-in { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.phero-copy { max-width: 40rem; }
.phero-copy .lede { margin-top: 1.5rem; }
.phero-copy .btn-row { margin-top: 2.25rem; }
.phero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-top: 2rem; max-width: 30rem; color: var(--quiet); font-size: var(--size-sm); }
.phero-line .num { color: var(--text); font-weight: 500; }
.phero-sep { width: 1px; height: 0.9em; background: var(--hair-strong); }
.phero-item { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.phero-item:first-child .phero-sep { display: none; }
.phero-line .phero-item .phero-sep { margin-right: 0.15rem; }
.phero-screen { max-width: 30rem; width: 100%; justify-self: end; }
.phero-screen .screen-glass img { aspect-ratio: 4 / 3; }
.phero-cap { margin-top: 0.7rem; color: var(--quiet); font-size: var(--size-xs); }
.phero-narrow .phero-copy { max-width: 46rem; }
@media (max-width: 64rem) {
  .phero-in { grid-template-columns: minmax(0, 1fr); }
  .phero-screen { justify-self: start; max-width: 26rem; }
}

/* A key whose label is long enough to wrap on a phone. */
.key-wrap { white-space: normal; text-align: center; }
/* An arrow link standing in a row of keys is a target of its own: key height. */
.btn-row .arrow-link, .trio .arrow-link, .part-buy .arrow-link { min-height: 2.75rem; }
.part-buy .key, .stage-tools .chip { min-height: 2.75rem; }
/* Spacing between a section's head, its callout and its list. */
.callout-narrow { max-width: 72ch; }
.gap-top { margin-top: 2.5rem; }
.gap-top-2 { margin-top: 2rem; }
.gap-top-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.warn-line { font-size: var(--size-lg); color: var(--text); }
.build-steps-from-3 { counter-reset: bs 2; }
.screens-one { grid-template-columns: minmax(0, 1fr); }
.screens-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The screen captures, in a row. Each is a .screen the lightbox opens. */
.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.screens figcaption { margin-top: 0.6rem; color: var(--quiet); font-size: var(--size-xs); }
.screens .screen-glass img { aspect-ratio: 4 / 3; }
.screens-plus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screens-plus .screen-glass img { aspect-ratio: 3 / 2; }
.screen[data-zoom] { cursor: zoom-in; }
@media (max-width: 52rem) { .screens, .screens-plus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Photographs keep their own proportions; only the frame is shared. */
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.photo { margin: 0; }
.photo button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--hair); }
.photo-wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { margin-top: 0.7rem; color: var(--quiet); font-size: var(--size-sm); }
@media (max-width: 40rem) { .photos { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   The parts: one row per part on a hairline, the price in the right column.
   -------------------------------------------------------------------------- */
.parts { list-style: none; margin: 0; padding: 0; }
.parts > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 2rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--hair); }
.parts > li:last-child { border-bottom: 1px solid var(--hair); }
.part-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font: 400 var(--size-lg) / 1.3 var(--font-display); color: var(--text); }
.part-note { grid-column: 1; color: var(--mute); font-size: var(--size-sm); max-width: 62ch; }
.part-buy { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 0.6rem; justify-items: end; text-align: right; }
.part-price { font-size: 1.25rem; color: var(--text); }
.parts-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1rem 0 0; color: var(--quiet); font-size: var(--size-sm); }
.parts-total b { color: var(--text); font-weight: 500; }
.parts-foot { margin-top: 1.5rem; color: var(--quiet); font-size: var(--size-sm); max-width: 70ch; }
@media (max-width: 40rem) {
  .parts > li { grid-template-columns: minmax(0, 1fr); }
  .part-buy { grid-column: 1; grid-row: auto; justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: center; gap: 1rem; }
}

/* The two-column body a section often has: the words, then the list beside them. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-col { display: grid; gap: 1.25rem; align-content: start; }
.split-col > h2, .split-col > h3 { margin-bottom: 0.25rem; }
.split-col .lede { max-width: none; }
.split-col .points, .split-col .ticks { gap: 0.9rem; }
.points li b { display: block; margin-bottom: 0.15rem; }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Three short statements in a row. */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.trio > div, .trio > a { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--hair); text-decoration: none; color: var(--text); }
.trio p { color: var(--mute); font-size: var(--size-sm); }
.trio .arrow-link { margin-top: 0.25rem; }
@media (max-width: 52rem) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* A numbered list in running text: the number in a thin lit ring. */
.numlist { margin: 0; padding: 0; list-style: none; counter-reset: nl; display: grid; gap: 0.9rem; }
.numlist li { counter-increment: nl; position: relative; padding-left: 2.6rem; color: var(--mute); }
.numlist li::before { content: counter(nl); position: absolute; left: 0; top: 0.05em; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1px solid var(--lum-soft); border-radius: 50%; color: var(--lum); font: 500 0.8rem / 1 var(--font-mono); }
.numlist b { color: var(--text); font-weight: 600; }

/* The assembly: five steps, each with its photograph. The photographs are
   portrait and keep that shape. */
.build-steps { list-style: none; margin: 0; padding: 0; counter-reset: bs; }
.build-steps > li { counter-increment: bs; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 15rem); gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem); align-items: start; padding: 1.75rem 0; border-top: 1px solid var(--hair); }
.build-steps > li:last-child { border-bottom: 1px solid var(--hair); }
.build-steps > li::before { content: counter(bs); font: 200 2.2rem / 1 var(--font-display); color: var(--lum); text-shadow: var(--lum-text-shadow); font-variant-numeric: tabular-nums; }
.build-steps p { color: var(--mute); max-width: 56ch; }
.build-steps b { color: var(--text); font-weight: 600; }
.build-steps .photo img { border-radius: var(--radius); }
.build-steps .photo figcaption { font-size: var(--size-xs); }
.build-gap { margin-block: 2rem; }
.build-shot { max-width: 30rem; margin: 1.5rem 0 2.5rem; }
@media (max-width: 52rem) {
  .build-steps > li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .build-steps > li::before { font-size: 1.7rem; }
  .build-steps .photo { grid-column: 2; max-width: 18rem; }
}

/* The build page's spec table and its closing line. */
.table-scroll .spec-table { min-width: 0; }
.spec-table td:first-child { color: var(--quiet); white-space: nowrap; }
.source-line { margin-top: 1.5rem; }
.prose code { white-space: nowrap; }

/* --------------------------------------------------------------------------
   The stage: the CYGM+ as a turnable model with a working screen. Carried from
   the live sheet so case-viewer.js keeps working; the flat device frame shows
   until the mesh lands and wherever WebGL is missing.
   -------------------------------------------------------------------------- */
.stage-wrap { position: relative; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 56vh; display: grid; place-items: center; touch-action: pan-y; cursor: grab; outline-offset: 6px; isolation: isolate; }
.stage:active { cursor: grabbing; }
.stage-gl {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.7s var(--ease);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent), linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent), linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.stage.ready .stage-gl { opacity: 1; }
.stage.ready .device { opacity: 0; pointer-events: none; }
.stage-sample { position: absolute; right: 0; bottom: 0.1rem; z-index: 2; pointer-events: none; padding: 0.25em 0.6em; border: 1px solid var(--hair-strong); border-radius: var(--radius-xs); font: 500 var(--size-xs) / 1.35 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.stage-hint { position: absolute; left: 0; bottom: 0.1rem; white-space: nowrap; font: 500 var(--size-xs) / 1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.stage.ready .stage-hint { opacity: 1; }
.stage.touched .stage-hint { opacity: 0; }
.device { position: relative; width: min(84%, 34rem); border-radius: 10px; padding: clamp(7px, 1.2vw, 12px); background: #0b1119; border: 1px solid #1f2d3f; transition: opacity 0.7s var(--ease); }
.device-glass { border-radius: 5px; overflow: hidden; background: var(--ink-900); line-height: 0; }
.device-glass img, .device-glass canvas { width: 100%; height: auto; aspect-ratio: 3 / 2; display: block; }
.stage-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.75rem; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem; }
.swatches button { position: relative; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); }
.swatches button::before { content: ""; position: absolute; inset: 0.6rem; border-radius: 50%; background: var(--sw); border: 1px solid var(--hair-strong); }
.swatches button[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--ink-900), 0 0 0 3px var(--lum); }
.seg { display: inline-flex; border: 1px solid var(--hair-strong); border-radius: var(--radius-button); overflow: hidden; }
.seg button { min-height: 2.75rem; padding: 0.5rem 1rem; border: 0; background: none; color: var(--mute); font: 500 0.875rem / 1 var(--font-body); cursor: pointer; transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.seg button + button { border-left: 1px solid var(--hair-strong); }
.seg button:hover { color: var(--lum); background: var(--color-hover-veil); }
.case-stage .stage { aspect-ratio: 4 / 3; max-height: none; }
@media (max-width: 40rem) { .stage { aspect-ratio: 5 / 4; max-height: none; } }

/* The CYGM+ page: the stage stands under the opening, at full width. */
.plus-open { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.plus-open h1 { font-weight: 700; }
/* The plus burns white in the cyan headline; its own shadow replaces the inherited cyan one. */
.plus-open h1 .plus-mark { color: #fff; text-shadow: 0 0 4px #fff, 0 0 14px rgba(255, 255, 255, 0.85), 0 0 32px rgba(255, 255, 255, 0.45); }
.plus-open-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem clamp(2rem, 5vw, 4rem); align-items: end; }
.plus-open-top .lede { max-width: none; }
.plus-open-act { grid-column: 1 / -1; }
.plus-open .btn-row { margin-top: 1.25rem; }
.plus-open .phero-line { margin-top: 1.25rem; }
.plus-open .stage-wrap { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 52rem) { .plus-open-top { grid-template-columns: minmax(0, 1fr); } }

/* The case: the model beside its print settings and the two files. */
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.case-copy { display: grid; gap: 1.5rem; align-content: start; }
.case-copy .specs > div { grid-template-columns: 8rem minmax(0, 1fr); }
@media (max-width: 52rem) { .case { grid-template-columns: minmax(0, 1fr); } }

/* The line a page ends on: the full version string and where its files are listed. */
.ver-line { margin-top: 2.5rem; color: var(--quiet); font-size: var(--size-sm); }
.ver-line .num { color: var(--mute); }

/* --------------------------------------------------------------------------
   The installer. Three steps in the world's numbered path, with the console at
   the third. The state names are flash.js's.
   -------------------------------------------------------------------------- */
.flash-steps > li { padding: 2.5rem 0; }
.flash-steps > li > div { min-width: 0; }
.flash-steps h3 { margin-bottom: 1rem; }
.flash-steps p { max-width: none; }
.flash-steps fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.flash-steps legend { padding: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); }
.pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ink-700); border: 1px solid var(--hair); border-radius: var(--radius-card); cursor: pointer; overflow: hidden; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.pick:hover { border-color: var(--hair-strong); }
.pick input, .pick-auto input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-photo { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--hair); }
.pick-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.pick-body { display: grid; gap: 0.35rem; padding: 1rem 1.25rem 1.1rem; padding-right: 7.5rem; }
.pick-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font: 300 1.5rem / 1.1 var(--font-display); color: var(--text); }
.pick-note { color: var(--mute); font-size: var(--size-sm); }
.pick-ver { color: var(--quiet); font-size: var(--size-xs); }
.pick-state { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 var(--size-xs) / 1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); white-space: nowrap; }
.pick-state::before { content: ""; flex: none; width: 1rem; height: 1rem; border: 1px solid var(--quiet); border-radius: 50%; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.pick-state::after { content: "Select"; }
.pick .pick-state { position: absolute; right: 1.25rem; bottom: 1.2rem; }
.pick.is-on .pick-state, .pick-auto.is-on .pick-state, .pick:has(input:checked) .pick-state, .pick-auto:has(input:checked) .pick-state { color: var(--lum); }
.pick.is-on .pick-state::before, .pick-auto.is-on .pick-state::before, .pick:has(input:checked) .pick-state::before, .pick-auto:has(input:checked) .pick-state::before { border-color: var(--wake); background: var(--wake); box-shadow: inset 0 0 0 3px var(--ink-700), 0 0 10px var(--lum-soft); }
.pick.is-on .pick-state::after, .pick-auto.is-on .pick-state::after, .pick:has(input:checked) .pick-state::after, .pick-auto:has(input:checked) .pick-state::after { content: "Selected"; }
.pick.is-on, .pick:has(input:checked), .pick-auto.is-on, .pick-auto:has(input:checked) { border-color: var(--lum-soft); box-shadow: inset 0 0 0 1px rgba(102, 246, 255, 0.08), 0 0 40px -16px var(--lum-soft); }
.pick:has(input:focus-visible), .pick-auto:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.pick-auto { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 0.9rem 1.25rem; min-height: 3rem; border: 1px dashed var(--hair-strong); border-radius: var(--radius-card); color: var(--mute); font-size: var(--size-sm); cursor: pointer; transition: border-color var(--dur-fast) var(--ease); }
.pick-auto b { color: var(--text); font-weight: 600; }
.pick-auto:hover { border-color: var(--quiet); }
.pick-auto.is-on, .pick-auto:has(input:checked) { border-style: solid; }
.steps-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); max-width: 46rem; }
.steps-grid.both { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.steps-grid h4 { margin-bottom: 0.75rem; font: 400 var(--size-lg) / 1.3 var(--font-display); }
.steps-grid .hint { margin-top: 0.9rem; }
.hint { color: var(--quiet); font-size: var(--size-sm); }
.flash-console { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--ink-700); border: 1px solid var(--hair); border-radius: var(--radius-card); }
.flash-console > [data-flash-ready] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 1.5rem; align-items: center; }
.flash-console > [data-flash-ready] .hint { grid-column: 1 / -1; }
.flash-status { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; color: var(--text); }
.flash-lamp { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--quiet); transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
[data-phase="ready"] .flash-lamp { background: var(--wake); box-shadow: 0 0 10px 1px var(--lum-soft); }
[data-phase="busy"] .flash-lamp, [data-phase="writing"] .flash-lamp { background: var(--zone-high); box-shadow: 0 0 10px 1px rgba(245, 158, 11, 0.5); }
[data-phase="finished"] .flash-lamp { background: var(--zone-ok); box-shadow: 0 0 10px 1px rgba(34, 197, 94, 0.5); }
[data-phase="error"] .flash-lamp { background: var(--zone-low); box-shadow: 0 0 10px 1px rgba(250, 204, 21, 0.5); }
.flash-bar { height: 2px; background: var(--hair); overflow: hidden; border-radius: 1px; }
.flash-bar span { display: block; width: 0; height: 100%; background: var(--wake); box-shadow: 0 0 8px var(--lum-soft); transition: width 0.25s linear; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; cursor: pointer; padding: 0.9rem 1rem; border: 1px solid var(--hair); border-radius: var(--radius); font-size: var(--size-sm); color: var(--mute); font-weight: 400; }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; cursor: pointer; }
.flash-console esp-web-install-button { display: inline-block; }
.flash-outcome { display: grid; gap: 0.5rem; padding: 1rem 1.25rem; border: 1px solid var(--hair); border-radius: var(--radius); font-size: var(--size-sm); }
.flash-outcome b { font-weight: 600; color: var(--text); }
.flash-outcome p { color: var(--mute); }
.flash-ok { border-color: rgba(34, 197, 94, 0.45); }
.flash-bad { border-color: rgba(250, 204, 21, 0.4); }
.flash-outcome .btn-row { margin-top: 0.5rem; }
.files { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.35rem; font-size: var(--size-sm); }
.files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.files span { color: var(--quiet); font-family: var(--font-mono); font-size: var(--size-xs); }
.manual pre { font-size: var(--size-xs); color: var(--mute); }
@media (max-width: 40rem) {
  .pick-grid, .steps-grid.both { grid-template-columns: minmax(0, 1fr); }
  .pick-body { padding-right: 1.25rem; padding-bottom: 3.25rem; }
  .flash-console > [data-flash-ready] { grid-template-columns: minmax(0, 1fr); }
  .flash-console esp-web-install-button, .flash-console .flash-go { display: block; width: 100%; }
}

/* --------------------------------------------------------------------------
   The beta page.
   -------------------------------------------------------------------------- */
.beta-model { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.beta-specs > div { grid-template-columns: 8rem minmax(0, 1fr); }
.beta-specs dd { color: var(--mute); font-size: var(--size-base); }
.beta-specs dt { font-size: var(--size-base); }
.beta-note { margin-top: 1.5rem; color: var(--quiet); font-size: var(--size-sm); max-width: 70ch; }
@media (max-width: 34rem) { .beta-specs > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }

/* --------------------------------------------------------------------------
   The device map: a rail of cities beside the water.
   -------------------------------------------------------------------------- */
.map-page { display: grid; grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr); height: calc(100dvh - var(--bar-height) - 1px); min-height: 34rem; }
.map-side { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; background: var(--ink-800); border-right: 1px solid var(--hair); }
.map-side-head { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--hair); display: grid; gap: 0.5rem; }
.map-side-head h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.map-side-head p { color: var(--mute); font-size: var(--size-sm); }
.map-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.map-stats div { padding: 0.9rem 1.25rem; }
.map-stats div + div { border-left: 1px solid var(--hair); }
.map-stats b { display: block; font: 300 var(--size-2xl) / 1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--lum); text-shadow: var(--lum-text-shadow); }
.map-stats span { font: 500 var(--size-xs) / 1.6 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
.map-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; }
.map-list button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 1.25rem; min-height: 2.75rem; background: none; border: 0; border-bottom: 1px solid var(--hair); color: var(--mute); text-align: left; cursor: pointer; font-size: var(--size-sm); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.map-list button:hover, .map-list button[aria-pressed="true"] { background: var(--color-hover-veil); color: var(--text); }
.map-list b { font: 500 var(--size-xs) / 1 var(--font-mono); color: var(--lum); font-variant-numeric: tabular-nums; }
.map-side-foot { padding: 0.9rem 1.25rem; border-top: 1px solid var(--hair); color: var(--quiet); font-size: var(--size-xs); line-height: 1.5; }
.map-main { grid-column: 2; grid-row: 1; position: relative; min-width: 0; }
.map-canvas { width: 100%; height: 100%; min-height: 20rem; background: var(--ink-900); }
.map-main .map-canvas { position: absolute; inset: 0; }
.map-reset { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 500; background: var(--ink-900); }
@media (max-width: 56rem) {
  .map-page { grid-template-columns: minmax(0, 1fr); height: auto; }
  .map-side, .map-main { grid-column: 1; grid-row: auto; }
  .map-main { height: 58dvh; min-height: 22rem; }
  .map-side { border-right: 0; }
  .map-list { overflow: visible; }
}

/* The CYGM page's opening unit: the same photographed plate as the home, with its reflection. */
.phero-screen .unit-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.phero-screen .unit-shot img { position: relative; z-index: 1; width: 100%; height: auto; }
.phero-screen .unit-shot::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -4%; height: 16%; z-index: 0; background: radial-gradient(50% 50% at 50% 50%, var(--lum-faint), transparent 70%); filter: blur(10px); }
.phero-screen .unit-shot img.unit-reflect { position: absolute; left: 0; right: 0; top: 97%; width: 100%; height: auto; transform: scaleY(-1); opacity: 0.28; filter: blur(5px); z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 55%); mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 55%); }
.phero-screen .phero-cap { margin-top: 3rem; }
