
  @font-face{font-family:'Geist';src:url('./fonts/geist-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
  @font-face{font-family:'Geist Mono';src:url('./fonts/geist-mono-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
  :root{--ink:#f9f1dc;--coral:#fc724c;--violet:#d46cff;--violet-hi:#ecc4ff;--gold:#ffdd40;--blue:#7fa8ff;--ice:#7ce8ff;--navy:#041535}
  *{box-sizing:border-box;margin:0;padding:0}
  body{background:#060a14;color:var(--ink);font-family:'Geist',system-ui,sans-serif;min-height:100vh;margin:0;padding:68px 14px 48px;overflow-x:hidden}
  .web-main{width:100%;max-width:1280px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:12px}#frame-wrap{position:relative;width:100%;min-width:0;max-width:100%;aspect-ratio:16/9;background:#020308;border-radius:10px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.78),0 0 0 1px rgba(249,241,220,.14)}
  #cv{display:block;width:100%;height:100%}
  .top-hud{position:absolute;top:0;left:0;right:0;padding:22px 34px 36px;background:linear-gradient(180deg,rgba(2,3,8,.84) 0%,rgba(2,3,8,.34) 68%,rgba(2,3,8,0) 100%);pointer-events:none}
  .brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:12px}
  .brand{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.2em;color:rgba(249,241,220,.72);font-weight:700}
  .chips{display:flex;align-items:center;gap:8px}
  .act-tag{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.14em;color:var(--gold);background:rgba(4,21,53,.8);border:1px solid rgba(255,221,64,.35);padding:3px 10px;border-radius:4px;font-weight:700}
  .scale-tag{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.12em;color:var(--blue);background:rgba(4,21,53,.82);border:1px solid rgba(127,168,255,.38);padding:3px 10px;border-radius:4px;font-weight:700}
  h1#headline{font-size:32px;font-weight:900;line-height:1.06;letter-spacing:-.025em;color:#fff;text-shadow:0 3px 18px rgba(0,0,0,.8);max-width:650px}
  p#subline{margin-top:5px;font-family:'Geist Mono',monospace;font-size:12.5px;line-height:1.45;color:rgba(249,241,220,.88);max-width:630px;text-shadow:0 2px 10px rgba(0,0,0,.85)}

  /* Right-side Night Sheet live discovery telemetry & year counter */
  #telemetry{position:absolute;top:68px;right:34px;width:274px;background:rgba(4,16,38,.80);border:1px solid rgba(249,241,220,.22);border-radius:8px;padding:12px 14px;backdrop-filter:blur(8px);pointer-events:none;font-variant-numeric:tabular-nums}
  .tel-top{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid rgba(249,241,220,.14);padding-bottom:8px;margin-bottom:8px}
  .tel-yr-k{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.14em;color:rgba(249,241,220,.68);font-weight:700}
  .tel-yr-v{font-family:'Geist Mono',monospace;font-size:28px;font-weight:900;color:var(--gold);line-height:1;letter-spacing:-.02em}
  .tel-main-k{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.14em;color:rgba(249,241,220,.72);font-weight:700}
  .tel-main-v{font-size:30px;font-weight:900;color:#fff;line-height:1.08;letter-spacing:-.03em;margin-top:2px}
  .tel-sub{font-family:'Geist Mono',monospace;font-size:10px;color:rgba(249,241,220,.66);margin-top:2px;margin-bottom:9px}
  .tel-rows{display:flex;flex-direction:column;gap:5px}
  .tel-row{display:flex;align-items:center;justify-content:space-between;font-family:'Geist Mono',monospace;font-size:10.5px;gap:8px}
  .tel-lbl{display:flex;align-items:center;gap:6px;color:rgba(249,241,220,.86);white-space:nowrap}
  .dot{width:7px;height:7px;border-radius:50%;flex:none}
  .tel-num{font-weight:800;color:#fff;white-space:nowrap}
  .tel-note{margin-top:8px;padding-top:7px;border-top:1px solid rgba(249,241,220,.12);font-family:'Geist Mono',monospace;font-size:10px;line-height:1.4;color:rgba(249,241,220,.76)}

  /* Borderless 3D Night Sheet shelf labels */
  #labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
  .plab{position:absolute;transform:translate(-50%,-100%);display:none;flex-direction:column;align-items:center;text-align:center;font-family:'Geist Mono',monospace;white-space:nowrap;text-shadow:0 2px 10px rgba(2,4,12,.98),0 0 18px rgba(2,4,12,.92)}
  .plab .pv{font-size:13.5px;font-weight:800;letter-spacing:.04em;color:#f9f1dc;line-height:1.1}
  .plab .ps{display:block;min-width:86px;height:1px;background:rgba(249,241,220,.48);margin:3px 0 2px}
  .plab .pk{font-size:9.5px;font-weight:700;letter-spacing:.15em;color:rgba(249,241,220,.82)}
  .plab::after{content:'';display:block;width:1px;height:14px;margin-top:3px;background:linear-gradient(180deg,rgba(249,241,220,.6),rgba(249,241,220,.14))}
  .plab.hi .pv{color:#ffae95}
  .plab.hi .ps{background:rgba(252,114,76,.75)}
  .plab.hi::after{background:linear-gradient(180deg,rgba(252,114,76,.85),rgba(252,114,76,.14))}
  .plab.violet .pv{color:var(--violet-hi)}
  .plab.violet .ps{background:rgba(212,108,255,.82)}
  .plab.violet::after{background:linear-gradient(180deg,rgba(212,108,255,.90),rgba(212,108,255,.16))}
  .plab.gold .pv{color:#ffe680}
  .plab.gold .ps{background:rgba(255,221,64,.75)}
  .plab.gold::after{background:linear-gradient(180deg,rgba(255,221,64,.85),rgba(255,221,64,.14))}
  .plab.blue .pv{color:#b9d2ff}
  .plab.blue .ps{background:rgba(127,168,255,.72)}
  .plab.blue::after{background:linear-gradient(180deg,rgba(127,168,255,.8),rgba(127,168,255,.14))}
  .plab.ice .pv{color:#aef3ff}
  .plab.ice .ps{background:rgba(124,232,255,.72)}
  .plab.ice::after{background:linear-gradient(180deg,rgba(124,232,255,.8),rgba(124,232,255,.14))}

  /* Lower-left Night Sheet Telescope Evidence vs Render Card (Ch 6) */
  #obsCard{position:absolute;left:34px;bottom:92px;width:410px;background:rgba(4,16,38,.86);border:1px solid rgba(212,108,255,.40);border-radius:9px;padding:12px 14px;backdrop-filter:blur(9px);pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .25s ease,transform .25s ease;font-variant-numeric:tabular-nums;box-shadow:0 16px 40px rgba(0,0,0,.62)}
  #obsCard.on{opacity:1;transform:translateY(0)}
  .obs-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
  .obs-badge{font-family:'Geist Mono',monospace;font-size:9px;font-weight:700;letter-spacing:.13em;color:#ecc4ff;background:rgba(212,108,255,.18);border:1px solid rgba(212,108,255,.45);padding:2px 7px;border-radius:4px;white-space:nowrap}
  .obs-title{font-family:'Geist Mono',monospace;font-size:11px;font-weight:800;color:#fff;letter-spacing:.03em;text-align:right}
  .obs-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:9px}
  .obs-st{background:rgba(2,6,18,.68);border:1px solid rgba(249,241,220,.12);border-radius:5px;padding:5px 7px}
  .obs-st .k{font-family:'Geist Mono',monospace;font-size:8.5px;letter-spacing:.12em;color:rgba(249,241,220,.65);font-weight:700}
  .obs-st .v{font-family:'Geist Mono',monospace;font-size:12.5px;font-weight:900;color:#ecc4ff;margin-top:1px}
  .obs-imgs{display:grid;gap:8px}
  .obs-imgs.dual{grid-template-columns:1fr 1fr}
  .obs-imgs.single{grid-template-columns:1fr}
  .obs-pane{background:#020308;border:1px solid rgba(249,241,220,.16);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
  .obs-pane img{width:100%;height:142px;object-fit:cover;display:block;background:#020308}
  .obs-imgs.single .obs-pane img{height:166px;object-position:center 45%}
  .obs-cap{padding:5px 8px;font-family:'Geist Mono',monospace;font-size:9px;line-height:1.35;color:rgba(249,241,220,.84);background:rgba(4,14,34,.92)}
  .obs-cap strong{color:#fff;display:block;letter-spacing:.06em;margin-bottom:1px}
  #obsDiagram{width:100%;height:166px;background:#02040c;border:1px solid rgba(249,241,220,.14);border-radius:6px;display:block}
  .obs-foot{margin-top:7px;font-family:'Geist Mono',monospace;font-size:9.5px;line-height:1.35;color:rgba(249,241,220,.72)}

  /* Widescreen captions (zero em-dashes) */
  #caps{position:absolute;left:12%;right:12%;bottom:36px;text-align:center;pointer-events:none;min-height:44px;display:flex;align-items:flex-end;justify-content:center}
  #caps .line{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px 7px;background:rgba(2,5,12,.60);padding:6px 14px;border-radius:8px;backdrop-filter:blur(4px)}
  #caps .line:empty{display:none}
  #caps .w{font-size:17px;font-weight:800;line-height:1.25;letter-spacing:-.01em;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.95);padding:1px 4px;border-radius:4px}
  #caps .w.cur{background:var(--gold);color:#041535;text-shadow:none}
  #foot{position:absolute;left:34px;right:34px;bottom:11px;display:flex;justify-content:space-between;font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.11em;color:rgba(249,241,220,.50);pointer-events:none}

  /* Closing colophon */
  #colophon{position:absolute;inset:0;background:rgba(4,16,42,.88);backdrop-filter:blur(7px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;opacity:0;pointer-events:none;gap:12px}
  #colophon .logo{width:176px;height:auto;margin-bottom:4px;filter:drop-shadow(0 10px 28px rgba(0,0,0,.48))}
  #colophon h2{font-size:32px;font-weight:900;letter-spacing:.08em;color:var(--ink)}
  #colophon .tag{font-size:16px;color:rgba(249,241,220,.82)}
  #colophon .rule{width:280px;height:1px;background:rgba(249,241,220,.24);margin:4px 0}
  #colophon .recap{font-family:'Geist Mono',monospace;font-size:13px;line-height:1.65;color:rgba(249,241,220,.90);max-width:600px}
  #colophon .ban{margin-top:8px;background:#f9f1dc;color:#041535;font-family:'Geist Mono',monospace;font-weight:800;font-size:12px;letter-spacing:.14em;padding:10px 22px;border-radius:4px}

  /* Transport UI */
  #ui{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;background:#111827;border:1px solid rgba(249,241,220,.18);padding:8px 14px;border-radius:10px;font-family:'Geist Mono',monospace;font-size:12px}
  #ui button{background:rgba(249,241,220,.1);color:var(--ink);border:1px solid rgba(249,241,220,.25);border-radius:5px;padding:5px 9px;font:700 11px 'Geist Mono',monospace;cursor:pointer}
  #ui button.active,#ui button:hover{background:var(--gold);color:#041535;border-color:var(--gold)}
  #ui input[type=range]{width:220px;accent-color:var(--violet)}
  body.cap{padding:0;gap:0;background:#020308}
  body.cap #ui{display:none}
  body.cap .prev-tag{display:none}
  body.cap #frame-wrap{width:100vw;height:100vh;border-radius:0;box-shadow:none}
  body.cap #obsCard{transition:none}
  body.raw .top-hud,body.raw #telemetry,body.raw #obsCard,body.raw #caps,body.raw #foot,body.raw #labels,body.raw #colophon{display:none!important}
  body.clean #caps{display:none!important}

.dot.gold{background:var(--gold)}.dot.blue{background:var(--blue)}.dot.ice{background:var(--ice)}.dot.violet{background:var(--violet)}
#caps .w.dim{opacity:.42}
.stage-shell{position:relative;min-width:0;max-width:100%;width:min(1280px,100%,calc((100vh - 156px)*16/9));display:flex;flex-direction:column;align-items:center}
#cv{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;min-width:0}
#ui{max-width:100%;min-width:0}
#orbitBtn.active{background:var(--violet);color:#041535;border-color:var(--violet)}
.web-notes{max-width:960px;width:100%;margin:20px auto 0;padding:22px 24px;background:rgba(4,16,38,.78);border:1px solid rgba(249,241,220,.16);border-radius:10px;line-height:1.62;font-size:14px;color:rgba(249,241,220,.88);scroll-margin-top:68px}
.web-notes h1{font-size:clamp(22px,3vw,30px);line-height:1.15;color:#fff;margin-bottom:8px}
.web-notes h2{font-size:16px;color:var(--gold);margin:18px 0 6px;font-family:'Geist Mono',monospace;letter-spacing:.04em}
.web-notes a{color:#bcd1ff;text-decoration:underline}
.web-notes ul{padding-left:20px;display:flex;flex-direction:column;gap:5px}
.meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:12px 0}
.meta-box{background:rgba(2,6,18,.68);border:1px solid rgba(249,241,220,.14);border-radius:8px;padding:10px 12px}
.meta-box .mk{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.12em;color:var(--blue);font-weight:700}
.meta-box .mv{font-size:18px;font-weight:900;color:#fff;margin:2px 0}
.meta-box .md{font-family:'Geist Mono',monospace;font-size:11px;color:rgba(249,241,220,.74)}
@media (min-width: 821px) and (max-height: 820px), (min-width: 821px) and (max-width: 1180px){
  .top-hud{padding:14px 22px 24px}
  h1#headline{font-size:24px}
  p#subline{font-size:11px;max-width:520px}
  #telemetry{top:46px;right:20px;width:236px;padding:9px 11px}
  .tel-yr-v{font-size:22px}.tel-main-v{font-size:24px}.tel-row{font-size:9.5px}.tel-note{font-size:9px}
  #obsCard{left:20px;bottom:76px;width:336px;padding:9px 11px}
  .obs-imgs.single .obs-pane img,#obsDiagram{height:122px}
  .obs-pane img{height:110px}
  .obs-cap,.obs-foot{font-size:8.5px}
  #caps{bottom:28px;min-height:32px}
  #caps .w{font-size:14px}
  #foot{left:20px;right:20px;bottom:8px;font-size:9px}
}
@media (max-width: 820px){
  body{padding:60px 10px 36px}
  .stage-shell{width:100%}
  #frame-wrap{width:100%;aspect-ratio:16/9}
  .top-hud{padding:8px 12px 14px}
  .brand-row{margin-bottom:3px;gap:6px}
  .brand,.scale-tag{display:none}
  .act-tag{font-size:9.5px;padding:2px 7px}
  h1#headline{font-size:16px;line-height:1.1}
  p#subline{display:none}
  #telemetry{position:static;width:100%;margin-top:8px;backdrop-filter:none}
  #obsCard{position:static;width:100%;transform:none;opacity:1!important;display:none;margin-top:4px;backdrop-filter:none}
  #obsCard.on{display:block}
  #caps{bottom:18px;left:4%;right:4%;min-height:24px}
  #caps .w{font-size:11.5px;padding:1px 3px}
  #foot{left:10px;right:10px;bottom:4px;font-size:7.5px}
  #foot span:first-child{display:none}
  #colophon{padding:18px}
  #colophon .logo{width:92px}
  #colophon h2{font-size:19px}
  #colophon .recap{font-size:10px}
  #ui{width:100%;padding:8px;gap:6px}
  #ui input[type=range]{width:100%;order:-1}
  .web-notes{padding:16px}
}
