/* Body Map 2 on a white page. Everything outside the Crystal stage reads dark-on-white; the stage keeps each
   scene's own dark colors, restored below so nothing inside it changes. Loaded last. */
body { background: #fff !important; }
.sbm, .sbm[data-look] {
  color-scheme: light; background-color: #fff; background-image: none;
  --abyss: #fff; --panel: #fff; --card: #f4f7f9; --chipbg: #eef2f5; --field: #fff; --btnbg: #fff; --tipbg: #fff; --track: #dfe6ea;
  --line: #cdd8de; --line-strong: #9fb0b8; --ink: #14242b; --mist: #55666e; --on-glow: #fff; --sun: #c2820c;
  --heavy: #c8551b; --covered: #12876a; --light: #3d63c9; --gap: #7b8794; --caution: #8f5d00; --stop: #c0392b;
  --tile-blue: #e6eefc; --tile-blue-fg: #1c3566; --tile-orange: #fdebdf; --tile-orange-fg: #6b2c0e; --tile-violet: #ece7fb; --tile-violet-fg: #35256e;
  --tile-green: #e2f3e8; --tile-green-fg: #17452f; --tile-amber: #fbf0cf; --tile-amber-fg: #5a4206; --tile-pink: #fbe3ec; --tile-pink-fg: #6a1b3c;
  --tile-teal: #dff3f2; --tile-teal-fg: #134a48; --tile-navy: #e4ebf8; --tile-navy-fg: #22335c;
  --glow: #0b8a80; --glow-rgb: 11,138,128;
  color: var(--ink);
}
.sbm[data-look="lake"] { --glow: #1b6fc8; --glow-rgb: 27,111,200; }
.sbm[data-look="space"] { --glow: #6a4fd0; --glow-rgb: 106,79,208; }
.sbm[data-look="forest"] { --glow: #3f8a3a; --glow-rgb: 63,138,58; }
.sbm, .sbm .stage { --tint: color-mix(in srgb, var(--ink) 9%, transparent); --tint-edge: color-mix(in srgb, var(--ink) 30%, transparent);
  --tint-on: color-mix(in srgb, var(--glow) 28%, transparent); --tint-sun: color-mix(in srgb, var(--sun) 24%, transparent); }

/* The Crystal stage keeps its scene colors */
.sbm .stage, .sbm[data-look] .stage { color-scheme: dark; color: var(--ink); --heavy: #ff9a5c; --covered: #4fe0b6; --light: #8fb0ff; --gap: #6a7894; --caution: #ffcf7a; --stop: #ff7f7f;
  --abyss: #071419; --line: #1d5560; --line-strong: #2f8a8f; --ink: #eaf5f2; --mist: #8db1ae; --glow: #8eeedd; --glow-rgb: 142,238,221; --sun: #ffd27a;
  --panel: #0e2129; --card: #12303a; --chipbg: #133640; --field: #0a1b21; --btnbg: #12303a; --tipbg: #0a1b21; --track: #1b4651; --on-glow: #04161d; }
.sbm[data-look="lake"] .stage { --abyss: #0a1428; --line: #21497f; --line-strong: #2f69b3; --ink: #eaf4ff; --mist: #a3bcdc; --glow: #6fd8ff; --glow-rgb: 111,216,255; --sun: #ffc861;
  --panel: #10203f; --card: #152a52; --chipbg: #18305c; --field: #0c1a33; --btnbg: #152a52; --tipbg: #0c1a33; --track: #23406f; --on-glow: #052042; }
.sbm[data-look="space"] .stage { --abyss: #09081a; --line: #3a3170; --line-strong: #6a5ad8; --ink: #ecebff; --mist: #a29fc9; --glow: #b9a6ff; --glow-rgb: 185,166,255; --sun: #ffc97a;
  --panel: #13112c; --card: #1b1840; --chipbg: #221d4d; --field: #0e0c22; --btnbg: #1b1840; --tipbg: #0e0c22; --track: #2e2866; --on-glow: #0b0a24; }
.sbm[data-look="forest"] .stage { --abyss: #08120b; --line: #2e4a2c; --line-strong: #5f8a46; --ink: #f1efe2; --mist: #aab79c; --glow: #b6d77a; --glow-rgb: 182,215,122; --sun: #f0b45a;
  --panel: #102018; --card: #162c20; --chipbg: #1b3426; --field: #0b1810; --btnbg: #162c20; --tipbg: #0b1810; --track: #284a33; --on-glow: #10200f; }

/* Pieces that assumed a dark page */
.sbm .ln-crowd h3, .sbm .tabpanel > details.more > summary, .sbm #seWhy > details.more > summary { color: inherit; }
.sbm .ln-crowd { color: var(--tile-amber-fg); }
.sbm .caution b { color: inherit; }
.sbm .act { color: var(--ink); }
.sbm .ln-stop::before { background: #fff; border: 3px solid var(--ink); }
.sbm .ln-stop.busy::before { background: #f2b632; border-color: var(--ink); }
.sbm .ln-strip::before, .sbm .ln-b { filter: saturate(1.15); }
.sbm .ln-b { background: color-mix(in srgb, var(--ln) 42%, #fff); border-color: color-mix(in srgb, var(--ln) 70%, #14242b); }
.sbm .looks.flat button { background: color-mix(in srgb, var(--sw) 16%, #fff); border-color: color-mix(in srgb, var(--sw) 60%, #14242b); }
.sbm .looks.flat button[aria-checked="true"] { background: color-mix(in srgb, var(--sw) 45%, #fff); border-color: color-mix(in srgb, var(--sw) 55%, #14242b); }
.sbm .btn { border-color: var(--sun); }
.sbm .stage .ln-b { background: color-mix(in srgb, var(--ln) 30%, transparent); border-color: var(--ln); }

/* Brighter scenes behind Crystal: most of the dimming veil lifted, with a soft shadow so stage text stays readable */
.sbm .stage, .sbm[data-look] .stage { --dim: rgba(4,22,29,.14); }
.sbm[data-look="lake"] .stage { --dim: rgba(10,30,60,.1); }
.sbm[data-look="space"] .stage { --dim: rgba(5,4,15,.12); }
.sbm[data-look="forest"] .stage { --dim: rgba(8,19,12,.12); }
.sbm #sceneBg { filter: brightness(1.18) saturate(1.06); }
.sbm .stage .hud .mode-label, .sbm .stage .hud .mode-title, .sbm .stage .legend { text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 0 10px rgba(0,0,0,.45); }
.sbm .stage .mode-label, .sbm .stage .legend { color: var(--ink); }
.sbm .stage .icon-btn, .sbm .stage .stage-hint { background: rgba(4,16,22,.42); border-color: rgba(255,255,255,.55); color: #fff; }

