html, body { margin: 0; height: 100%; background: #05070a; overflow: hidden; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: #f4f1ea; }
#globe { position: absolute; inset: 0; }
.cesium-viewer-bottom, .cesium-widget-credits { display: none !important; }
#vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 55%, rgba(0,0,0,.42) 100%),
              linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.35) 100%); }
/* Sizes in vmin-ish units so 1080p and 4K look identical. */
#title { position: absolute; left: 3.2vw; top: 3.4vh; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
#title .kicker { font-size: 1.15vw; letter-spacing: .32em; text-transform: uppercase; color: #e9c27a; font-weight: 600; }
#title .name { font-size: 3.1vw; font-weight: 300; line-height: 1.1; margin-top: .4vh; }
#title .place { font-size: 1.25vw; color: rgba(244,241,234,.78); margin-top: .5vh; letter-spacing: .04em; }
#badge { position: absolute; right: 3.2vw; top: 3.8vh; display: flex; align-items: center; gap: .6vw;
  padding: .7vh 1.1vw; border-radius: 999px; background: rgba(10,14,20,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); font-size: .95vw; letter-spacing: .12em; text-transform: uppercase; }
#badge .dot { width: .6vw; height: .6vw; border-radius: 50%; background: #7fb2ff; box-shadow: 0 0 .8vw #7fb2ff; }
#note { position: absolute; left: 3.2vw; bottom: 3vh; font-size: .85vw; color: rgba(244,241,234,.62); max-width: 52vw; }
#credits { position: absolute; right: 1.2vw; bottom: 1.2vh; font-size: .62vw; color: rgba(255,255,255,.55); }
#credits a { color: inherit; }
#controls { position: absolute; right: 3.2vw; bottom: 3.4vh; display: flex; align-items: center; gap: .8vw; }
#mode-toggle { font: inherit; font-size: max(13px, .9vw); letter-spacing: .1em; text-transform: uppercase; color: #f4f1ea; cursor: pointer;
  padding: .7vh 1.2vw; border-radius: 999px; background: rgba(10,14,20,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); }
#mode-toggle:hover { background: rgba(30,40,55,.7); }
#mode-hint { font-size: max(11px, .72vw); color: rgba(244,241,234,.6); }
#credits { bottom: .6vh; }

/* clock under the badge */
#clock { position: absolute; right: 3.2vw; top: 9vh; font-size: 2.2vw; font-weight: 300; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
/* control row */
#controls button { font: inherit; font-size: max(13px, .9vw); letter-spacing: .1em; text-transform: uppercase; color: #f4f1ea; cursor: pointer;
  padding: .7vh 1.2vw; border-radius: 999px; background: rgba(10,14,20,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); }
#controls button:hover { background: rgba(30,40,55,.7); }
#controls button.active { background: rgba(233,194,122,.85); color: #10141a; border-color: rgba(233,194,122,1); }
/* fade between dusk and dawn */
#fade { position: absolute; inset: 0; background: #05070a; opacity: 0; pointer-events: none; }
/* corridor captions */
#caption { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); max-width: 70vw; text-align: center; font-size: max(16px, 1.5vw);
  font-weight: 500; padding: 1.2vh 2vw; border-radius: 10px; background: rgba(8,11,16,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); opacity: 0; transition: opacity .8s; pointer-events: none; }
#caption.on { opacity: 1; }
/* traffic cards */
#cards { display: none; }
.tcard { position: absolute; left: 0; top: 0; display: none; transform-origin: 50% 100%; min-width: 11.5em; padding: .55em .8em .6em;
  font-size: max(11px, .78vw); border-radius: 9px; background: rgba(8,11,16,.78); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.tcard::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 1px; height: 14px; background: rgba(255,255,255,.55); }
.tcard .t { font-weight: 700; letter-spacing: .02em; } .tcard .t em { font-style: normal; font-weight: 400; opacity: .65; margin-left: .5em; font-size: .9em; }
.tcard .big { font-size: 1.7em; font-weight: 300; line-height: 1.15; margin-top: .1em; } .tcard .big small { font-size: .5em; opacity: .7; }
.tcard .split { display: flex; gap: 1.1em; margin-top: .25em; } .tcard .split b { font-size: 1.15em; font-weight: 600; display: block; } .tcard .split span { opacity: .7; font-size: .85em; }
.tcard .sub { opacity: .72; font-size: .86em; margin-top: .2em; }
.tcard.interstate { border-top: 3px solid #3b7dd8; } .tcard.bridge { border-top: 3px solid #e9c27a; } .tcard.business { border-top: 3px solid #a0703f; } .tcard.state { border-top: 3px solid #d8d4c8; }
/* legal line */
#legal { position: absolute; left: 0; right: 0; bottom: .3vh; text-align: center; font-size: max(9px, .58vw); color: rgba(244,241,234,.55); pointer-events: none; }
#note { bottom: 4.6vh; } #controls { bottom: 4.4vh; } #credits { bottom: 2.2vh; }
@media (max-width: 800px) { #title .name { font-size: 7vw; } #title .kicker, #title .place { font-size: 3vw; } #badge { font-size: 2.6vw; } #clock { font-size: 5vw; top: 8vh; }
  #controls button { font-size: 11px; padding: 6px 10px; } #note { display: none; } .tcard { font-size: 10px; } #legal { font-size: 8px; } }

/* build simulation schedule */
#build-panel { position: absolute; left: 3.2vw; width: 36vw; bottom: 9vh; display: none; padding: 1.2vh 1.2vw 1vh; border-radius: 12px;
  background: rgba(6,9,13,.84); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); font-size: max(10px, .62vw); user-select: none; }
#build-panel.on { display: block; }
body.building #note { display: none; }
.bhead { display: flex; align-items: flex-end; gap: 2vw; margin-bottom: .8vh; }
.bk { font-size: 1.1em; letter-spacing: .3em; text-transform: uppercase; color: #e9c27a; font-weight: 600; }
.bm { font-size: 2.2em; font-weight: 300; }
.bstat b { font-size: 2.2em; font-weight: 300; margin-right: .4em; } .bstat span { opacity: .7; }
.brows { cursor: pointer; }
.brow, .baxis { display: flex; align-items: center; height: 1.85em; }
.bl { flex: 0 0 21em; display: flex; justify-content: space-between; padding-right: 1.2em; opacity: .75; white-space: nowrap; overflow: hidden; }
.bl span { opacity: .75; font-variant-numeric: tabular-nums; margin-left: .8em; }
.brow.active .bl { opacity: 1; color: #fff; }
.bt { position: relative; flex: 1; height: 100%; border-left: 1px solid rgba(255,255,255,.12); }
.bbar { position: absolute; top: 25%; height: 50%; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.bfill { height: 100%; width: 0; background: linear-gradient(90deg, #c98a2e, #e9c27a); }
.brow.active .bbar { box-shadow: 0 0 0 1px rgba(233,194,122,.7); }
.baxis .bt span { position: absolute; transform: translateX(-50%); opacity: .6; top: .25em; }
#b-play { position: absolute; bottom: 0; width: 2px; background: #fff; height: calc(12 * 1.85em + 1.85em); box-shadow: 0 0 8px rgba(255,255,255,.7); pointer-events: none; }
.bsrc { margin-top: .6vh; opacity: .55; font-size: .9em; }
@media (max-width: 800px) { #build-panel { left: 2vw; width: auto; right: 2vw; bottom: 8vh; font-size: 9px; } .bl { flex-basis: 15em; } }

/* ---------- narrated briefing (ported from mine_vista) ---------- */
#narr-row { position: absolute; left: 3.2vw; top: calc(3.4vh + 3.1vw + 4.2vw); display: flex; align-items: center; gap: .6em; }
#narr { display: inline-flex; align-items: center; gap: .7em; cursor: pointer; padding: .55em 1.1em; border-radius: 999px; font: inherit;
  font-size: max(12px, .82vw); letter-spacing: .1em; text-transform: uppercase; color: #f4f1ea; background: rgba(10,14,20,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }
#narr .sw { width: 2.4em; height: 1.35em; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; transition: background .25s; flex: none; }
#narr .sw::after { content: ""; position: absolute; top: .15em; left: .15em; width: 1.05em; height: 1.05em; border-radius: 50%; background: #f4f1ea; transition: transform .25s; }
#narr.on { border-color: #e9c27a; box-shadow: 0 0 1.2em rgba(233,194,122,.35); } #narr.on .sw { background: #e9c27a; } #narr.on .sw::after { transform: translateX(1.05em); }
#narr.waiting { animation: narrpulse 1.4s ease-in-out infinite; } @keyframes narrpulse { 50% { box-shadow: 0 0 1.6em rgba(233,194,122,.7); } }
#narr .st { opacity: .7; text-transform: none; letter-spacing: .02em; } #narr[hidden], #narr-dl[hidden] { display: none; }
#narr-dl { padding: .55em 1em; border-radius: 999px; cursor: pointer; font-size: max(11px, .72vw); color: #f4f1ea; text-decoration: none;
  background: rgba(10,14,20,.5); border: 1px solid rgba(255,255,255,.18); } #narr-dl:hover { border-color: #e9c27a; color: #e9c27a; }
#guide-card { position: absolute; left: 3.2vw; top: calc(3.4vh + 3.1vw + 4.2vw + 3.6em); min-width: 15em; max-width: 26em; padding: .9em 1.2em 1em; pointer-events: none;
  border-radius: 12px; background: rgba(6,9,13,.82); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid #e9c27a;
  opacity: 0; transform: translateY(-8px); transition: opacity .6s, transform .6s; }
#guide-card.on { opacity: 1; transform: none; }
#guide-card .k { font-size: max(10px, .7vw); letter-spacing: .26em; text-transform: uppercase; color: #e9c27a; font-weight: 600; }
#guide-card .v { font-size: max(24px, 2.1vw); font-weight: 300; line-height: 1.15; margin-top: .15em; }
#guide-card .s { font-size: max(11px, .8vw); opacity: .75; margin-top: .3em; }
#subs { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(4.4vh + 7.5em); max-width: min(56vw, 900px); text-align: center; pointer-events: none;
  font-size: max(15px, 1.15vw); line-height: 1.4; padding: .5em 1em; border-radius: 10px; background: rgba(6,9,13,.72); opacity: 0; transition: opacity .4s; }
#subs.on { opacity: 1; }
#subs .ts { font-variant-numeric: tabular-nums; font-size: .72em; opacity: .65; margin-right: .7em; padding: .1em .45em; border-radius: 4px; background: rgba(255,255,255,.12); vertical-align: middle; }
#scrub { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(4.4vh + 3.6em); width: min(50vw, 820px); display: flex; align-items: center; gap: .8em;
  font-size: max(11px, .75vw); padding: .4em .8em; border-radius: 999px; background: rgba(6,9,13,.7); border: 1px solid rgba(255,255,255,.14); }
#scrub[hidden] { display: none; }
#sc-play { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; border: 1px solid rgba(233,194,122,.7); background: rgba(233,194,122,.15); color: #e9c27a; cursor: pointer; font-size: .9em; }
#sc-track { position: relative; flex: 1; height: 1.6em; display: flex; align-items: center; }
#sc-range { width: 100%; margin: 0; accent-color: #e9c27a; cursor: pointer; }
#sc-ticks { position: absolute; left: 0; right: 0; top: -.35em; height: .7em; }
#sc-ticks i { position: absolute; width: 3px; height: .8em; margin-left: -1px; border-radius: 2px; background: rgba(233,194,122,.85); cursor: pointer; }
#sc-ticks i:hover { background: #fff; transform: scaleY(1.4); }
#sc-cur, #sc-dur { flex: none; opacity: .8; min-width: 3.2em; text-align: center; }
body.narrating #caption, body.narrating #note { display: none; }
/* locator mini-map: desktop only */
#minimap { display: none; }
@media (min-width: 901px) and (pointer: fine) {
  body.has-minimap #minimap { display: block; position: absolute; left: 3.2vw; bottom: 4.4vh; width: 320px; height: 210px; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.22); box-shadow: 0 8px 30px rgba(0,0,0,.45); background: #0e131b; }
  #mm { width: 100%; height: 100%; }
  body.has-minimap #note { left: calc(3.2vw + 340px); max-width: calc(100vw - 3.2vw - 340px - 52vw); }
  body.building #minimap { display: none !important; }
}
.leaflet-container { font: 12px "Segoe UI", system-ui, sans-serif; }
.mm-tip { background: rgba(12,16,22,.9); color: #f4f1ea; border: 0; font-weight: 600; box-shadow: none; } .mm-tip::before { display: none; }
.mm-town { background: rgba(255,255,255,.85); color: #222; border: 0; box-shadow: none; padding: 1px 5px; font-size: 11px; } .mm-town::before { display: none; }
.mm-home { width: 30px; height: 30px; border-radius: 4px; border: 2px solid rgba(0,0,0,.25); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) { #narr-row { top: calc(3.4vh + 18vw); left: 2vw; } #guide-card { top: auto; bottom: 30vh; left: 2vw; max-width: 70vw; font-size: 12px; }
  #subs { max-width: 92vw; bottom: 22vh; font-size: 14px; } #scrub { width: 92vw; } }
/* while the build simulation panel is up (left), captions and the scrub bar move right */
body.building #subs, body.building #scrub { left: calc(3.2vw + 36vw + (100vw - 3.2vw - 36vw) / 2); max-width: min(48vw, 820px); }
body.building #scrub { width: min(46vw, 760px); }

/* Gallery Haus: Black Salmon brand (black / white, accent #1863DC) */
#brand { display: block; height: max(16px, 1.25vw); margin-bottom: 1.4vh; opacity: .95; }
#title .kicker { color: #8fb6ff; }
#badge .dot { background: #1863DC; box-shadow: 0 0 .8vw #1863DC; }
#controls button.active { background: rgba(24,99,220,.92); color: #fff; border-color: #1863DC; }
#narr-row { top: calc(3.4vh + 3.1vw + 4.2vw + max(16px, 1.25vw) + 1.4vh); }
#guide-card { top: calc(3.4vh + 3.1vw + 4.2vw + max(16px, 1.25vw) + 1.4vh + 3.6em); }

body.clean #title, body.clean #badge, body.clean #clock, body.clean #controls, body.clean #note, body.clean #legal, body.clean #minimap, body.clean #narr-row, body.clean #caption { display: none !important; }
/* narration player in Black Salmon blue */
#narr.on { border-color: #1863DC; box-shadow: 0 0 1.2em rgba(24,99,220,.45); } #narr.on .sw { background: #1863DC; }
#guide-card .k { color: #8fb6ff; } #guide-card { border-left: 3px solid #1863DC; }
#sc-play { border-color: rgba(24,99,220,.8); background: rgba(24,99,220,.18); color: #8fb6ff; } #sc-range { accent-color: #1863DC; }
#sc-ticks i { background: rgba(143,182,255,.9); }

/* ---------- Explore ---------- */
#explore-toggle { background: rgba(24,99,220,.85) !important; border-color: #1863DC !important; }
#explore-toggle.active { background: #fff !important; color: #10141a !important; }
#explore-menu { position: absolute; right: 3.2vw; bottom: calc(4.4vh + 3.4em); display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px;
  background: rgba(10,14,20,.86); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); z-index: 5; }
#explore-menu[hidden] { display: none; }
#explore-menu button { font: inherit; font-size: max(13px, .85vw); text-align: left; color: #f4f1ea; background: none; border: 0; padding: .55em 1em; border-radius: 8px; cursor: pointer; }
#explore-menu button:hover { background: rgba(24,99,220,.6); }
#explore-panel { position: absolute; right: 3.2vw; top: 14vh; width: min(400px, 34vw); max-height: 66vh; overflow: auto; padding: 1.1em 1.2em 1em; border-radius: 14px;
  background: rgba(10,14,20,.84); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); border-left: 3px solid #1863DC; font-size: max(12px, .78vw); z-index: 4; }
#explore-panel[hidden] { display: none; }
.xp-close { position: absolute; right: .5em; top: .3em; background: none; border: 0; color: #f4f1ea; font-size: 1.6em; cursor: pointer; opacity: .7; }
.xp-k { letter-spacing: .24em; text-transform: uppercase; color: #8fb6ff; font-weight: 600; font-size: .85em; }
.xp-v { font-size: 1.9em; font-weight: 300; line-height: 1.15; margin-top: .1em; }
.xp-s { opacity: .8; margin-top: .35em; }
.xp-big { font-size: 1.6em; font-weight: 300; margin: .5em 0 .1em; font-variant-numeric: tabular-nums; }
.xp-note { opacity: .55; font-size: .85em; margin-top: .9em; line-height: 1.35; }
.xp-row { display: flex; gap: .5em; align-items: center; margin-top: .7em; flex-wrap: wrap; }
.xp-chip { font: inherit; color: #f4f1ea; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .35em .9em; cursor: pointer; }
.xp-chip.on, .xp-chip:hover { background: #1863DC; border-color: #1863DC; }
.xp-range { flex: 1; width: 100%; accent-color: #1863DC; margin-top: .7em; }
.xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em 1em; margin-top: .9em; }
.xp-grid b { display: block; font-size: 1.5em; font-weight: 300; } .xp-grid span { opacity: .7; }
.xp-sect span { padding: .2em .6em; border-radius: 6px; background: rgba(233,194,122,.18); }
.xp-bars { width: 100%; margin-top: .8em; } .xp-bars text { fill: rgba(244,241,234,.6); font-size: 7px; text-anchor: middle; }
.xp-bars .b { fill: rgba(255,255,255,.18); } .xp-bars g.on .b { fill: #1863DC; } .xp-bars .subj { fill: #fff; }
.xp-dl { margin: .9em 0 0; } .xp-dl dt { color: #8fb6ff; font-size: .82em; letter-spacing: .08em; text-transform: uppercase; margin-top: .7em; }
.xp-dl dd { margin: .15em 0 0; } .xp-dl small { display: block; opacity: .5; font-size: .8em; }
.xp-gauge { position: relative; height: 210px; margin: 1em 0 .4em 1.2em; border-left: 2px solid rgba(255,255,255,.3); }
.xp-gauge .gl { position: absolute; left: 0; transform: translateY(50%); white-space: nowrap; } .xp-gauge .gl i { display: inline-block; width: 14px; height: 2px; background: #8fb6ff; vertical-align: middle; margin-right: .5em; }
.xp-gauge .gw { position: absolute; left: 0; bottom: 0; width: 100%; background: linear-gradient(rgba(64,160,220,.55), rgba(20,90,160,.55)); border-top: 1px solid #7fc4ff; }
.xp-tl { width: 100%; margin-top: .8em; } .xp-tl line { stroke: rgba(255,255,255,.4); } .xp-tl .tk { stroke: rgba(255,255,255,.18); stroke-dasharray: 2 2; }
.xp-tl circle { fill: #2bb673; } .xp-tl .hold { fill: rgba(43,182,115,.45); } .xp-tl text { fill: rgba(244,241,234,.7); font-size: 8px; } .xp-tl .ev { fill: #f4f1ea; font-size: 9px; }
@media (max-width: 800px) { #explore-panel { left: 2vw; right: 2vw; width: auto; top: auto; bottom: 12vh; max-height: 46vh; } }
