/* Atmosphere scenes (js/stargo-motion-atmos.js): the homepage's night picture before the scenario cards and
   about.html's introduction band. Quiet line art behind text: hairlines, a few warm lights, nothing bright. */

/* ---------- hosts ---------- */
/* R1 → night. Mono opens the picture like two doors (each half slides out), so each half holds a whole-screen
   host clipped to itself: the left one from the left edge, the right one from the right edge. The left half is
   1px wider than 50% (css/stargo-fusion.css), so its host is twice its width less 2px. */
.photo-half._01, .photo-half._02 { overflow: hidden; background: #0d0b09; }
.photo-half > .sga-host { position: absolute; top: 0; bottom: 0; width: 200%; pointer-events: none; background: radial-gradient(70% 60% at 62% 70%, #24190f 0%, #120e0b 55%, #0b0908 100%); }
.photo-half._01 > .sga-host { left: 0; width: calc(200% - 2px); }
.photo-half._02 > .sga-host { right: 0; }
/* A01 → plant, under the introduction card; the band's two fades stay above it, as they were above the photograph */
.cn-about .cn-intro-background { position: relative; background-image: none; background-color: #0b0908; }
.cn-about .cn-intro-background > .sga-host { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 88% 30%, #20170f 0%, #110d0a 55%, #0a0807 100%); }
.cn-about .cn-intro-background > .cn-padding-global { position: relative; }
.cn-about .cn-intro-opacity { z-index: 1; }

/* ---------- shared ---------- */
.sga-svg { position: absolute; left: 0; top: 0; }
.sga-label { position: absolute; white-space: nowrap; line-height: 1.3; transition: color .6s; }
.sga-label b { display: block; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: rgba(246, 239, 230, .62); transition: color .6s; }
.sga-label span { display: block; margin-top: 3px; font-size: 13px; color: rgba(246, 239, 230, .4); transition: color .6s; }
.sga-label.is-hot b { color: #f6efe6; }
.sga-label.is-hot span { color: #c2befd; }
.sga-tag { color: rgba(244, 238, 232, .42); font-size: 12.5px; }
.sga-lamp { fill: #d0cef6; }

/* =================== NIGHT =================== */
/* The night stage is drawn for a 900px-high screen and scaled to the screen it is on (0.8 at 1280 × 720, 0.85 at
   1024 × 768 and 1366 × 768); the runner hands that scale in as --sg-fit, so no label or tag renders under 12px. */
.sga-night .sga-label b { font-size: max(15px, calc(12.6px / var(--sg-fit, 1))); }
.sga-night .sga-label span { font-size: max(13px, calc(12.2px / var(--sg-fit, 1))); }
.sga-night .sga-tag { font-size: max(12.5px, calc(12.2px / var(--sg-fit, 1))); color: rgba(244, 238, 232, .5); transition: opacity .2s; }
/* the tag rides the left door's inner edge; once that door's strip is too narrow to hold it, it is gone at once
   (no fade-out, so no frame of it meets the screen's edge) and fades back in when the strip is wide enough again */
.sga-night .sga-tag.is-out { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .sga-night .sga-tag { transition: none; } }
/* a dark halo keeps the labels clear of the buyer lines that pass behind them */
.sga-night .sga-label { text-shadow: 0 0 6px rgba(13, 11, 9, .95); }
.sga-stars { stroke: rgba(255, 236, 220, .32); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.sga-star { fill: #ffe9d2; }
.sga-hills { fill: rgba(255, 236, 220, .012); stroke: rgba(255, 236, 220, .06); stroke-width: 1; }
.sga-line.sga-bld { fill: #110d0a; }
.sga-moon { fill: rgba(255, 232, 205, .1); stroke: rgba(255, 232, 205, .22); stroke-width: 1; }
.sga-halo { fill: rgba(217, 216, 244, .025); }
.sga-ground { stroke: rgba(255, 236, 220, .16); stroke-width: 1; fill: none; }
.sga-water { stroke: rgba(225, 225, 242, .07); stroke-width: 1; stroke-linecap: round; fill: none; }
.sga-arc { fill: none; stroke: rgba(213, 211, 245, .12); stroke-width: 1; stroke-dasharray: 2 5; }
.sga-arc.is-hot { stroke: rgba(169, 160, 255, .7); stroke-width: 1.4; stroke-dasharray: none; opacity: 0; }
.sga-node-ring { fill: rgba(13, 11, 9, .9); stroke: rgba(225, 225, 242, .3); stroke-width: 1; }
.sga-node-core { fill: rgba(225, 225, 242, .55); transition: fill .5s; }
.sga-node-rip { fill: none; stroke: #a9a0ff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.sga-node.is-hot .sga-node-ring { stroke: #a9a0ff; }
.sga-node.is-hot .sga-node-core { fill: #a9a0ff; }
/* .sga-place.is-left: the port's label ends short of the doors' seam (js/stargo-motion-atmos.js) */
.sga-buyer.is-left, .sga-place.is-left { transform: translateX(-100%); text-align: right; }
.sga-line { fill: none; stroke: rgba(255, 236, 220, .26); stroke-width: 1.2; stroke-linejoin: round; }
.sga-glass { stroke: rgba(255, 236, 220, .1); stroke-width: 1; }
.sga-win-dim { fill: rgba(255, 236, 220, .035); stroke: rgba(255, 236, 220, .1); stroke-width: 1; }
.sga-win { fill: #c4c0ff; opacity: 0; }
.sga-door { fill: rgba(187, 182, 255, .4); opacity: 0; }
.sga-road { stroke: rgba(255, 236, 220, .18); stroke-width: 1; stroke-dasharray: 6 7; }
.sga-quay { stroke: rgba(255, 236, 220, .32); stroke-width: 2; }
.sga-box { fill: rgba(255, 236, 220, .04); stroke: rgba(255, 236, 220, .16); stroke-width: 1; }
.sga-box.is-warm { fill: rgba(147, 130, 255, .14); stroke: rgba(175, 168, 255, .3); }
.sga-beacon { fill: #9584ff; opacity: .7; }
.sga-trolley { fill: rgba(255, 236, 220, .35); }
.sga-cable { fill: rgba(255, 236, 220, .4); transform-box: fill-box; transform-origin: 50% 0; opacity: 0; }
.sga-hull { fill: rgba(255, 236, 220, .05); stroke: rgba(255, 236, 220, .3); stroke-width: 1.2; stroke-linejoin: round; }
.sga-shiplit { opacity: 0; }
.sga-reflect { fill: rgba(194, 190, 255, .16); }
.sga-moving { fill: #9382ff; stroke: #c2befd; stroke-width: 1; opacity: 0; }
.sga-pulse { opacity: 0; }
.sga-glow { fill: rgba(169, 160, 255, .22); }
.sga-head { fill: #fff1e4; }
.sga-night .sga-place { font-size: 14px; }

/* =================== PLANT =================== */
.sga-grid { stroke: rgba(255, 236, 220, .16); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.sga-wall { fill: none; stroke: rgba(255, 236, 220, .14); stroke-width: 1.2; }
.sga-wall.is-in { stroke: rgba(255, 236, 220, .06); }
.sga-east { stroke: rgba(201, 198, 253, .32); stroke-width: 3; stroke-linecap: round; }
.sga-dawn { position: absolute; top: 0; right: -200px; width: 900px; height: 100%; background: radial-gradient(60% 55% at 100% 35%, rgba(181, 175, 255, .2), rgba(170, 161, 255, .06) 55%, transparent 75%); opacity: 0; pointer-events: none; }
.sga-belt { fill: none; stroke: rgba(255, 236, 220, .07); stroke-width: 6; stroke-linejoin: round; }
.sga-belt.is-dash { stroke: rgba(255, 236, 220, .14); stroke-width: 1; stroke-dasharray: 3 9; }
.sga-mach { fill: #0f0c0a; stroke: rgba(255, 236, 220, .2); stroke-width: 1.2; }
.sga-mach.is-lit { fill: rgba(147, 130, 255, .1); stroke: rgba(175, 168, 255, .75); }
.sga-mach-ln { fill: none; stroke: rgba(255, 236, 220, .18); stroke-width: 1.2; stroke-linecap: round; }
.sga-st-lit { opacity: 0; }
.sga-pack { fill: #c2befd; opacity: 0; }
.sga-st-name { position: absolute; font-size: 13px; color: rgba(246, 239, 230, .34); white-space: nowrap; transition: color .8s; }
.sga-st-name.is-w { transform: translateY(-50%); }
.sga-st-name.is-n { transform: translateY(-100%); }
.sga-st-name.is-b { transform: translateX(-50%); }
.sga-st-name.is-on { color: rgba(201, 199, 250, .8); }
.sga-plan-title { position: absolute; line-height: 1.35; }
.sga-plan-title b { display: block; font-size: 14px; font-weight: 600; color: rgba(246, 239, 230, .5); letter-spacing: .02em; }
.sga-plan-title span { display: block; font-size: 12.5px; color: rgba(246, 239, 230, .32); }
.sga-feed { fill: none; stroke: rgba(255, 236, 220, .22); stroke-width: 1.2; stroke-linecap: round; }
/* the plant is drawn at scale 1 (its stage is the host's size), so these are the sizes on screen */
.sga-plant .sga-tag { font-size: 12.5px; color: rgba(244, 238, 232, .5); }
.sga-plant.is-band .sga-st-name { font-size: 12.5px; line-height: 17px; }
.sga-plan-title.is-row { white-space: nowrap; line-height: 17px; }
.sga-plan-title.is-row b, .sga-plan-title.is-row span { display: inline; font-size: 12.5px; }
.sga-plan-title.is-row span { margin-left: 10px; }
/* The band's bottom fade was 12rem, made to blend the photograph into the page; over the dark plan it would
   bury the strip under the card, where the stations, the title and the tag sit. It stays, shorter. */
.cn-about .cn-intro-opacity.cn-is-bottom { height: 4rem; }
@media screen and (max-width: 767px) { .cn-about .cn-intro-opacity.cn-is-bottom { height: 2.5rem; } }

/* =================== 首页蓝: the homepage's night in the homepage palette ===================
   (owner 2026-10-24: every code picture on the homepage in the blue of the approval card;
   tokens in css/stargo-blue.css). The night sky is the calm aurora, the plant and the port are
   ink silhouettes drawn in ice hairlines, the lights that wake are the ice-blue accent and the
   crane beacons the one warm-pink token. Colours only: the scene, its layout and its timing are
   the ones above, and about.html's plant keeps its own warm look (no data-stargo-home there). */
html[data-stargo-home] .photo-half._01, html[data-stargo-home] .photo-half._02 { background: var(--sgb-ink); }
html[data-stargo-home] .photo-half > .sga-host { background: var(--sgb-aurora-calm); }
html[data-stargo-home] .sga-night { --ice: var(--sgb-ice); }
html[data-stargo-home] .sga-night .sga-label { text-shadow: 0 0 6px var(--sgb-ink), 0 0 2px var(--sgb-ink); }
html[data-stargo-home] .sga-night .sga-label b { color: color-mix(in srgb, var(--sgb-text) 84%, transparent); }
html[data-stargo-home] .sga-night .sga-label span { color: var(--sgb-muted); }
html[data-stargo-home] .sga-night .sga-label.is-hot b { color: var(--sgb-text); }
html[data-stargo-home] .sga-night .sga-label.is-hot span { color: var(--sgb-accent); }
/* the honesty tag: a small glass pill (the tag's corner stays where the scene puts it) */
html[data-stargo-home] .sga-night .sga-tag { padding: 4px 10px 5px; border-radius: 99px; line-height: 1.1; color: var(--sgb-text); background: color-mix(in srgb, var(--sgb-ink) 62%, transparent); box-shadow: inset 0 0 0 1px var(--sgb-glass-edge); }
html[data-stargo-home] .sga-night .sga-stars { stroke: color-mix(in srgb, var(--ice) 44%, transparent); }
html[data-stargo-home] .sga-night .sga-star { fill: var(--sgb-ice); }
html[data-stargo-home] .sga-night .sga-hills { fill: color-mix(in srgb, var(--sgb-ink) 38%, transparent); stroke: color-mix(in srgb, var(--ice) 10%, transparent); }
html[data-stargo-home] .sga-night .sga-line.sga-bld { fill: var(--sgb-ink); }
html[data-stargo-home] .sga-night .sga-moon { fill: color-mix(in srgb, var(--ice) 14%, transparent); stroke: color-mix(in srgb, var(--ice) 34%, transparent); }
html[data-stargo-home] .sga-night .sga-halo { fill: color-mix(in srgb, var(--ice) 5%, transparent); }
html[data-stargo-home] .sga-night .sga-ground { stroke: color-mix(in srgb, var(--ice) 24%, transparent); }
html[data-stargo-home] .sga-night .sga-water { stroke: color-mix(in srgb, var(--ice) 12%, transparent); }
html[data-stargo-home] .sga-night .sga-arc { stroke: color-mix(in srgb, var(--ice) 24%, transparent); }
html[data-stargo-home] .sga-night .sga-arc.is-hot { stroke: var(--sgb-accent); }
html[data-stargo-home] .sga-night .sga-node-ring { fill: color-mix(in srgb, var(--sgb-ink) 90%, transparent); stroke: color-mix(in srgb, var(--ice) 40%, transparent); }
html[data-stargo-home] .sga-night .sga-node-core { fill: color-mix(in srgb, var(--ice) 66%, transparent); }
html[data-stargo-home] .sga-night .sga-node-rip { stroke: var(--sgb-accent); }
html[data-stargo-home] .sga-night .sga-node.is-hot .sga-node-ring { stroke: var(--sgb-accent); }
html[data-stargo-home] .sga-night .sga-node.is-hot .sga-node-core { fill: var(--sgb-accent); }
html[data-stargo-home] .sga-night .sga-line { stroke: color-mix(in srgb, var(--ice) 36%, transparent); }
html[data-stargo-home] .sga-night .sga-glass { stroke: color-mix(in srgb, var(--ice) 14%, transparent); }
html[data-stargo-home] .sga-night .sga-win-dim { fill: color-mix(in srgb, var(--ice) 5%, transparent); stroke: color-mix(in srgb, var(--ice) 16%, transparent); }
html[data-stargo-home] .sga-night .sga-win { fill: var(--sgb-accent); }
html[data-stargo-home] .sga-night .sga-door { fill: color-mix(in srgb, var(--sgb-accent) 45%, transparent); }
html[data-stargo-home] .sga-night .sga-road { stroke: color-mix(in srgb, var(--ice) 24%, transparent); }
html[data-stargo-home] .sga-night .sga-quay { stroke: color-mix(in srgb, var(--ice) 40%, transparent); }
html[data-stargo-home] .sga-night .sga-box { fill: color-mix(in srgb, var(--ice) 6%, transparent); stroke: color-mix(in srgb, var(--ice) 24%, transparent); }
html[data-stargo-home] .sga-night .sga-box.is-warm { fill: color-mix(in srgb, var(--sgb-violet) 34%, transparent); stroke: color-mix(in srgb, var(--sgb-lilac) 52%, transparent); }
html[data-stargo-home] .sga-night .sga-beacon { fill: var(--sgb-warn); }
html[data-stargo-home] .sga-night .sga-trolley { fill: color-mix(in srgb, var(--ice) 44%, transparent); }
html[data-stargo-home] .sga-night .sga-cable { fill: color-mix(in srgb, var(--ice) 50%, transparent); }
html[data-stargo-home] .sga-night .sga-hull { fill: color-mix(in srgb, var(--sgb-ink) 55%, transparent); stroke: color-mix(in srgb, var(--ice) 38%, transparent); }
html[data-stargo-home] .sga-night .sga-reflect { fill: color-mix(in srgb, var(--sgb-accent) 22%, transparent); }
html[data-stargo-home] .sga-night .sga-lamp { fill: var(--sgb-accent); }
html[data-stargo-home] .sga-night .sga-moving { fill: var(--sgb-accent); stroke: var(--sgb-ice); }
html[data-stargo-home] .sga-night .sga-glow { fill: color-mix(in srgb, var(--sgb-accent) 28%, transparent); }
html[data-stargo-home] .sga-night .sga-head { fill: var(--sgb-ice); }
