
@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;--gold:#ffdd40;--blue:#7fa8ff}
  *{box-sizing:border-box;margin:0;padding:0}
  body{background:#090d16;color:var(--ink);font-family:'Geist',system-ui,sans-serif;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px;overflow:hidden}
  #frame-wrap{position:relative;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:24px 36px 40px;background:linear-gradient(180deg,rgba(2,3,8,.84) 0%,rgba(2,3,8,.36) 65%,rgba(2,3,8,0) 100%);pointer-events:none}
  .brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
  .brand{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.2em;color:rgba(249,241,220,.72);font-weight:700}
  .act-tag{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.14em;color:var(--gold);background:rgba(4,21,53,.78);border:1px solid rgba(255,221,64,.35);padding:3px 10px;border-radius:4px;font-weight:700}
  h1#headline{font-size:34px;font-weight:900;line-height:1.06;letter-spacing:-.025em;color:#fff;text-shadow:0 3px 18px rgba(0,0,0,.75);max-width:640px}
  p#subline{margin-top:5px;font-family:'Geist Mono',monospace;font-size:13px;line-height:1.45;color:rgba(249,241,220,.88);max-width:620px;text-shadow:0 2px 10px rgba(0,0,0,.85)}
  /* Optional right-side data card for key measurements */
  #statCard{position:absolute;top:76px;right:36px;width:255px;background:rgba(4,16,38,.78);border:1px solid rgba(249,241,220,.22);border-radius:8px;padding:12px 14px;backdrop-filter:blur(8px);pointer-events:none;opacity:0;transition:opacity .35s ease}
  #statCard .k{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.14em;color:var(--gold);text-transform:uppercase;margin-bottom:4px;font-weight:700}
  #statCard .v{font-size:22px;font-weight:900;color:#fff;letter-spacing:-.02em;line-height:1.1}
  #statCard .d{margin-top:5px;font-family:'Geist Mono',monospace;font-size:11px;line-height:1.45;color:rgba(249,241,220,.82)}
  /* 3D projected Night Sheet architectural shelf labels (borderless, zero plates/boxes) */
  #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:15px;font-weight:800;letter-spacing:.04em;color:#f9f1dc;line-height:1.1}
  .plab .ps{display:block;min-width:96px;height:1px;background:rgba(249,241,220,.48);margin:4px 0 3px}
  .plab .pk{font-size:10px;font-weight:700;letter-spacing:.16em;color:rgba(249,241,220,.82)}
  .plab::after{content:'';display:block;width:1px;height:16px;margin-top:4px;background:linear-gradient(180deg,rgba(249,241,220,.58),rgba(249,241,220,.15))}
  .plab.hi .pv{color:#ffae95}
  .plab.hi .ps{background:rgba(252,114,76,.72)}
  .plab.hi::after{background:linear-gradient(180deg,rgba(252,114,76,.8),rgba(252,114,76,.15))}
  .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,.15))}
  .plab.stem{transform:translate(-50%,0)}
  .plab.stem::after{display:none}
  .plab.stem::before{content:'';display:block;width:1px;height:28px;margin-bottom:5px;background:linear-gradient(180deg,rgba(252,114,76,.12),rgba(252,114,76,.85))}
  /* Widescreen draft captions */
  #caps{position:absolute;left:12%;right:12%;bottom:38px;text-align:center;pointer-events:none;min-height:46px;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,.58);padding:6px 14px;border-radius:8px;backdrop-filter:blur(4px)}
  #caps .w{font-size:18px;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:36px;right:36px;bottom:12px;display:flex;justify-content:space-between;font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.12em;color:rgba(249,241,220,.48);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.6;color:rgba(249,241,220,.88);max-width:560px}
  #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 bar */
  #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:240px;accent-color:var(--coral)}
  body.cap{padding:0;gap:0;background:#020308}
  body.cap #ui{display:none}
  body.cap #frame-wrap{border-radius:0;box-shadow:none}
  body.cap #foot .prev-tag{display:none}
  body.cap #foot{justify-content:center}
  body.raw .top-hud,body.raw #statCard,body.raw #caps,body.raw #foot,body.raw #labels,body.raw #colophon{display:none!important}

body{display:block;padding:68px 14px 38px;overflow-x:hidden}
main{width:min(100%,1280px);margin:auto;display:grid;justify-items:center;gap:12px}
#frame-wrap{width:min(100%,1280px,max(680px,calc((100svh - 150px)*16/9)))}
#ui{max-width:100%;justify-content:center}
#ui button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#caps .w.dim{opacity:.42}
.notes{width:min(100%,880px);padding:22px;margin:14px auto 0;background:#101827;border:1px solid #f9f1dc33;border-radius:10px;line-height:1.65;scroll-margin-top:68px}
.notes h2{font-size:20px;margin-bottom:6px}
.notes p+p{margin-top:10px}
.notes a{color:#bcd1ff;text-decoration:underline}
@media(max-width:820px){
  body{padding:62px 10px 28px}
  .top-hud{padding:8px 10px 24px}
  .brand,.scale-tag,#subline{display:none}
  .brand-row{margin-bottom:2px}
  #headline{font-size:clamp(14px,4vw,24px)}
  #foot{display:none}
  #statCard{top:auto;left:8px;right:auto;bottom:45px;width:min(170px,55%);max-width:none;padding:5px 7px}
  #statCard .k,#statCard .d{font-size:9px}
  #statCard .v{font-size:14px}
  #caps{left:3%;right:3%;bottom:7px;min-height:0}
  #caps .line{padding:2px 5px;gap:1px 3px}
  #caps .w{font-size:clamp(10px,2.8vw,16px);padding:1px 2px}
  #ui{width:100%;padding:8px;gap:6px}
  #ui button{min-height:34px}
  #ui input[type=range]{width:100%;order:-1}
  #colophon{padding:12px;gap:4px}
  #colophon .logo{width:64px;margin:0}
  #colophon h2{font-size:16px}
  #colophon .tag,#colophon .recap{font-size:10px}
}
