
:root {
  color-scheme: dark;
  --bg: #0A0B0D; --card: rgba(10, 11, 13, .92);
  --line: #23262B; --line-2: #343941;
  --line-3: #5C6169;   
  --ink: #E6E9EE; --ink-2: #A3A9B3; --ink-3: #7A818C; --focus: #E6E9EE;   
  --frame: rgba(230, 233, 238, .45);
  
  --masers: #FF2E93; --cepheids: #88A0F1; --ob: #FDC8FB; --pulsars: #38F3CF; --hii: #67B6E4; --rg: #9C69F7; --rrl: #EAF3FA; --model: #A3A9B3;   
  --ui: 'Recursive', system-ui, sans-serif;
  --v-voice: "CASL" .65, "MONO" 0, "slnt" -3; --v-words: "CASL" 0, "MONO" 0, "slnt" 0; --v-figs: "CASL" 0, "MONO" 1, "slnt" 0;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 32px;
  --m: 28px;   
  --gutter: 48px; --indent: 48px;   
  --top: 100px; --bottom: 84px; --col: clamp(390px, 34vw, 520px);   
  --r-card: 10px; --r-btn: 6px;   
  --ease: cubic-bezier(.2, 0, 0, 1); --t-move: 1100ms; --t-fade: 450ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 400 15px/22px var(--ui); font-variation-settings: var(--v-words); overflow: hidden; }
body { -webkit-font-smoothing: antialiased; }
button { font: inherit; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; border-radius: 0; }
@media (hover: hover) { button:hover { color: var(--ink); } }   
:focus { outline: none; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-masers { --c: var(--masers); } .c-cepheids { --c: var(--cepheids); } .c-ob { --c: var(--ob); } .c-pulsars { --c: var(--pulsars); } .c-hii { --c: var(--hii); } .c-rg { --c: var(--rg); } .c-rrl { --c: var(--rrl); } .c-model { --c: var(--model); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; transition: transform 900ms var(--ease); }
body.still #stage, body.still #pic { transition: none !important; }   

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) { body.aside #stage, body.map #stage { transform: translate(16vw, 24px); } }      
#pic { position: absolute; display: block; mix-blend-mode: lighten; transform-origin: 50% 50%; will-change: transform; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%);   
  transition: transform var(--t-move) var(--ease), opacity var(--t-move) var(--ease); }

body.map #pic { transition: transform var(--t-move) var(--ease); }
#stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity var(--t-fade) var(--ease); }
body.hero #stage canvas, body.moving #stage canvas { opacity: 0 !important; transition-delay: 0ms; }   
#shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(10, 11, 13, .6), transparent) center / 76vw 42vh no-repeat; transition: opacity var(--t-fade) var(--ease); }
body:not(.hero) #shade { opacity: 0; }

#bar { position: fixed; z-index: 3; left: var(--gutter); top: 44px; margin: 0; font: 700 20px/26px var(--ui); font-variation-settings: var(--v-words); pointer-events: none;
  text-shadow: 0 0 24px var(--bg), 0 0 8px var(--bg), 0 0 2px var(--bg); }
#nav, #mapnav { position: fixed; z-index: 7; top: 42px; right: var(--gutter); display: flex; gap: var(--s2); align-items: center; transition: opacity var(--t-fade) var(--ease); }
#nav .prog { font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-3); margin-right: var(--s2); font-variant-numeric: tabular-nums; text-shadow: 0 0 8px var(--bg); }

#nav button, #mapnav button, .about-head button, .seg button { font: 500 13px/18px var(--ui); padding: 5px var(--s3); border: 1px solid var(--frame); border-radius: var(--r-btn); color: var(--ink); background: var(--bg); text-decoration: none; }
#about-btn[aria-expanded="true"] { border-color: var(--ink); }
@media (hover: hover) { #nav button:hover, #mapnav button:hover, .about-head button:hover, .seg button:hover { border-color: var(--ink); } }

#nav button { font-size: 15px; line-height: 20px; padding: 8px var(--s4); }
#nav { top: 38px; }   

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) { #nav { top: calc(50% + 104px); left: calc(var(--gutter) + var(--indent)); right: auto; } }

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) { #nav .prog { position: fixed; top: 48px; right: var(--gutter);   
  margin: 0; font-size: 13px; line-height: 18px; color: var(--ink); text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg); } }   

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) { #nav #i-skip { position: fixed; top: 43px; right: calc(var(--gutter) + 68px); margin: 0; } }   

#nav #i-skip { font-size: 14px; line-height: 18px; padding: 5px 0; background: none; border-color: transparent; color: var(--ink); text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg); text-decoration: underline; text-decoration-color: rgba(230, 233, 238, .4); text-underline-offset: 4px; }   
@media (hover: hover) { #nav #i-skip:hover { border-color: transparent; background: none; text-decoration-color: var(--ink); } }
#nav button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) { #nav button.primary:hover { background: #fff; } }
#nav [hidden] { display: block; visibility: hidden; }   

#nav #i-back, #mapnav #to-intro { opacity: 1; border-color: var(--ink);   
  transition: opacity .2s; background: rgba(10, 11, 13, .2); text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg); }   
@media (hover: hover) { #nav #i-back:not(:disabled):hover, #mapnav #to-intro:hover { background: rgba(10, 11, 13, .6); } }

#mapnav #to-intro { padding: 5px 0; border-color: transparent; background: none; color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(230, 233, 238, .3); text-underline-offset: 4px; }
@media (hover: hover) { #mapnav #to-intro:hover { background: none; color: var(--ink); text-decoration-color: var(--ink); } }
#nav #i-back:disabled { opacity: .2; background: none; cursor: default; border-color: var(--frame); }
#nav #i-skip { margin-left: var(--s3); }      
#mapnav { opacity: 0; pointer-events: none; }
body.map #mapnav { opacity: 1; pointer-events: auto; } body.map #nav { opacity: 0; pointer-events: none; }

#line { position: fixed; z-index: 5; inset: 0 var(--gutter); display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity var(--t-fade) var(--ease); }
#line p { position: relative; margin: 0; max-width: 900px; text-align: center; font: 700 46px/52px var(--ui);    white-space: pre-line;    font-variation-settings: var(--v-voice); letter-spacing: -.01em; text-wrap: balance;
  text-shadow: 0 0 40px var(--bg), 0 0 14px var(--bg), 0 0 3px var(--bg); will-change: transform; }
body:not(.hero) #line { opacity: 0; }

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) {
  #line { justify-content: flex-start; padding-left: var(--indent); }   
  #line p { text-align: left; max-width: min(640px, 44vw); font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -.005em; }   
  #shade { background-position: calc(var(--gutter) + var(--indent) + 280px - 38vw) center; }
}
#strip { position: fixed; z-index: 4; left: var(--gutter); top: calc(var(--top) + 8px); width: min(470px, 34vw); pointer-events: none; transition: opacity var(--t-fade) var(--ease); }
body.hero #strip, body.map #strip { opacity: 0; }

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) { body.aside #strip { top: 50%; transform: translateY(-50%); left: calc(var(--gutter) + var(--indent)); } body.aside:not(.table) #strip { width: min(520px, 35vw); } }   
#cap { display: flex; flex-direction: column; gap: var(--s3); text-shadow: 0 0 24px var(--bg), 0 0 8px var(--bg), 0 0 2px var(--bg); }
#cap p { margin: 0; font: 600 40px/46px var(--ui); font-variation-settings: var(--v-voice); letter-spacing: -.005em; text-wrap: balance; }
#cap p.sub { font: 400 16px/24px var(--ui); font-variation-settings: var(--v-words); color: var(--ink-2); max-width: 400px; text-wrap: pretty; }

nav.lenses { position: fixed; z-index: 4; top: var(--top); left: var(--gutter); right: var(--gutter);
  display: flex; align-items: stretch; opacity: 0; pointer-events: none; transition: opacity var(--t-fade) var(--ease); }
body.map nav.lenses { opacity: 1; pointer-events: auto; }
nav.lenses button { flex: 1 1 0; min-width: 0; font: 500 15px/20px var(--ui);    border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-2); position: relative; text-shadow: 0 0 8px var(--bg);
  transition: background-color var(--t-fade) var(--ease), color var(--t-fade) var(--ease); }
nav.lenses button:last-child { border-right: 0; }
nav.lenses button { white-space: normal; text-align: center; line-height: 1.1; }   

body nav.lenses { background: rgba(10, 11, 13, .15); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);   
  border: 1px solid var(--line-2); height: 42px; border-radius: var(--r-card); }   
nav.lenses button:first-child { border-radius: calc(var(--r-card) - 1px) 0 0 calc(var(--r-card) - 1px); } nav.lenses button:last-child { border-radius: 0 calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0; }
nav.lenses button:focus-visible { outline-offset: -3px; }

nav.lenses button { box-shadow: none; }
nav.lenses button:not([aria-pressed="true"]) { background: rgba(10, 11, 13, .35); }   
@media (hover: hover) { nav.lenses button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); } }
nav.lenses button[aria-pressed="true"] { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); }   

#legend { position: fixed; z-index: 7; left: var(--gutter); bottom: calc(var(--m) + 10px); margin: 0; display: flex; flex-direction: column; gap: 2px; font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-2); pointer-events: none; transition: opacity var(--t-fade) var(--ease); max-width: calc(100vw - 2 * var(--gutter) - 440px); text-shadow: 0 0 10px var(--bg), 0 0 4px var(--bg), 0 0 2px var(--bg); }
body.hero #legend, body.moving #legend, body.intro #legend { opacity: 0; }   

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) {
  body.map { --top: 88px; --bottom: 32px; }      
  
  body.map #legend { position: static; text-shadow: none; }
  
  body.map #psrbar { position: fixed; left: 66vw; transform: translateX(-50%); width: max-content;
    max-width: calc(2 * min(34vw - var(--gutter), 66vw - var(--gutter) - var(--col) - 2 * var(--s3))); }
  body.map #psrbar { top: calc(var(--top) + 42px + var(--s3)); }
}

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) {
  body.map { --ctop: 96px; }   
  body.map nav.lenses { top: var(--ctop); height: 32px; left: calc(var(--gutter) + var(--col) + var(--s3)); right: var(--gutter); }   

  body.map #map-foot { position: fixed; z-index: 4; left: calc(var(--gutter) + var(--col) + var(--s3)); right: var(--gutter); bottom: var(--bottom);
    display: flex; justify-content: flex-end; align-items: flex-end; gap: var(--s4); pointer-events: none; }   
  body.map #map-foot > * { pointer-events: auto; }
  
  body.map #about-btn { position: fixed; top: calc(var(--ctop) + 13px); left: calc(var(--gutter) + var(--col) - 11px); transform: translateX(-100%); }
  body.map.about #about-btn { visibility: hidden; }
  body.map #counter, body.map #about { top: var(--ctop); }
  body.map nav.lenses button { font-size: 13px; }   
  body.map #psrbar { top: calc(var(--ctop) + 32px + var(--s3)); }
  
  body.map #map-foot #p-model { position: fixed; top: calc(var(--ctop) + 32px + var(--s3)); right: var(--gutter); height: 36px; display: flex; align-items: center; }
  body.map #map-foot #p-model .chk { font-size: 12px; }
}
@media (width > 860px) and (width <= 1240px), (orientation: landscape) and (height <= 500px) and (width >= 640px) and (width <= 1240px) {   
  body.map nav.lenses button { font-size: 11.5px; padding: 0 2px; }   
}

#psrbar { display: none; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); pointer-events: auto;
  font: 400 13px/18px var(--ui); color: var(--ink-2); text-align: center; }

#psrbar { background: color-mix(in srgb, var(--c) 2%, rgba(10, 11, 13, .72)); border-color: color-mix(in srgb, var(--c) 18%, transparent);   
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#psrbar .seg button:not(.chk) { border-color: color-mix(in srgb, var(--c) 10%, var(--frame)); background: color-mix(in srgb, var(--c) 2%, transparent); }      
#psrbar .seg button[aria-pressed="true"]:not(.chk) { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 11%, transparent); }   
#psrbar .seg.direct { border-left-color: color-mix(in srgb, var(--c) 15%, transparent) !important; }   
#psrbar .chk::before { border-color: color-mix(in srgb, var(--c) 42%, transparent); }   
#psrbar .chk[aria-pressed="true"]::before { background: var(--c); border-color: var(--c); }
body.map.psr #psrbar { display: flex; }
#psrbar .row { display: flex; align-items: center; gap: 6px var(--s4); flex-wrap: wrap; justify-content: center; }   
#psrbar .seg { margin: 0; flex-wrap: nowrap; gap: var(--s1); }
#psrbar .seg button:not(.chk) { padding: 2px 9px; font-size: 11px; line-height: 16px; }   
#psrbar .seg.direct .chk { font-size: 12px; }      
#psrbar .seg .sk { width: auto; margin-right: var(--s2); font-size: 12px; color: var(--ink-2); }
#psrbar .seg.direct { padding-left: var(--s4); border-left: 1px solid var(--line-2); }   
#psrbar .seg.direct .chk { margin: 0; padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 400; }   
#psrbar .seg.direct .chk[aria-pressed="true"] { color: var(--ink); background: none; }
#credit { position: fixed; z-index: 7; right: var(--gutter); bottom: calc(var(--m) + 10px); margin: 0; font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-2); pointer-events: none; transition: opacity var(--t-fade) var(--ease); text-shadow: 0 0 10px var(--bg), 0 0 4px var(--bg), 0 0 2px var(--bg); }   
body.nopic #credit { opacity: 0; }   

body.map #credit { opacity: 0; }

.card { position: fixed; z-index: 4; top: var(--top); bottom: var(--bottom); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-height: 0;
  transition: transform 650ms var(--ease), opacity var(--t-fade) var(--ease); }

#tcard { right: var(--gutter); width: min(600px, calc(100vw - 2 * var(--gutter))); transform: translateX(calc(100% + var(--gutter) + 8px)); }

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) {
  #tcard { right: max(var(--gutter), calc(34vw - min(300px, 50vw - var(--gutter)))); top: calc(var(--top) + 48px); bottom: calc(var(--top) - 4vh); transform: translateX(calc(100% + 34vw + 8px)); }   
}
body.table #tcard { transform: none; }
#tcard .k { padding: 14px 22px 0; font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-3); }
#tcard .tw { overflow-y: auto; padding: 10px 22px 22px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
#tcard table { width: 100%; border-collapse: collapse; font: 400 13px/22px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
#tcard th, #tcard thead td { text-align: left; font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-3); padding: 0 10px var(--s2) 0; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--bg); }
#tcard td { padding: 1px 10px 1px 0; white-space: nowrap; } #tcard td:first-child { color: var(--ink); }
#tcard td.dot { width: 14px; } #tcard td.dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--masers); }

#counter { top: calc(var(--top) + 42px + var(--s3)); left: var(--gutter); width: var(--col); transform: translateX(-16px); opacity: 0; pointer-events: none; }

.card > .scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

#counter > .scroll, #about > .scroll { scrollbar-width: none; }
#counter > .scroll::-webkit-scrollbar, #about > .scroll::-webkit-scrollbar { display: none; }

.card > .thumb { position: absolute; right: 3px; width: 6px; border-radius: 3px; background: var(--line-2); z-index: 2; touch-action: none; }
.card > .thumb:active { background: var(--ink-3); } @media (hover: hover) { .card > .thumb:hover { background: var(--ink-3); } }
.card > .thumb[hidden] { display: none; }
.card > .track { position: absolute; right: 0; width: 12px; z-index: 1; }   
.card > .track[hidden] { display: none; }

.card > .scroll:focus-visible, #tcard .tw:focus-visible { outline-offset: -2px; }
#bar:focus { outline: none; }   
#about > .scroll { overscroll-behavior: contain; }   
.card > .scroll.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
#counter > .scroll { padding: 0 20px; }   
body.map #counter { transform: none; opacity: 1; pointer-events: auto; }

#counter, #about { background: rgba(10, 11, 13, .05);   
    
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }   

#p-title { margin: 0; font: 700 22px/28px var(--ui); }   
#p-orient { margin: var(--s1) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-3); }   
#p-empty { margin: auto; max-width: 240px; text-align: center; text-wrap: balance; font-size: 14px; line-height: 20px; color: var(--ink-3); }   
#p-empty[hidden] { display: none; }

#p-lenses { display: flex; flex-direction: column; gap: 32px; padding: 18px 0 28px; }

#p-lenses > .lb + .lb { border-top: 1px solid var(--line); margin-inline: -20px; padding: 32px 20px 0; }   

.lb { display: flex; flex-direction: column; gap: 2px; }

.p-top { flex: none; padding: 18px 20px 10px; border-bottom: 1px solid var(--line); }

.lb .lh { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-bottom: 12px; }

.lb .lhd { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }   
.lb .lhn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); }

.lb .ld { flex: none; width: 96px; height: 96px; overflow: visible; }      
.ld .dr { fill: none; stroke: var(--c); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; } .ld .dr-f { fill: var(--c); stroke: none; }   
.lb .ln { margin: 0; font: 700 18px/24px var(--ui); color: var(--c); }      
.lb .lc { font: 500 18px/24px var(--ui);    color: var(--ink-3); font-variant-numeric: tabular-nums; }   
.lb .lt { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--ink-2); }
.lb .lt.lead { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; margin-top: var(--s2); }
.seg .sk { font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-3); width: 100%; }
.seg button { color: var(--ink-2); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); background: color-mix(in srgb, var(--c) 20%, var(--bg)); }   
.lb .lt.pn { margin-top: var(--s2); padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }   
.chk { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink-2); margin-top: var(--s2); text-align: left; white-space: normal; }
.chk::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--line-3); border-radius: 3px; flex: none; }
.chk[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg); }
#p-model { flex: none; }   
#p-model .chk:first-child { margin-top: 0; }

body.none #p-lenses { display: none; }   
body.none nav.lenses { border-color: var(--frame); }
body.none nav.lenses button { color: var(--ink-2); }
@media (hover: hover) { body.none nav.lenses button:hover { color: var(--ink); } }

.lb .rr { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }

.lb .rh { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding-bottom: 4px; }
.lb .rk { font: 600 10.5px/14px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lb .rf { font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-3); }
.rb { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 12%, var(--line)); }
.rb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--c); }

#rings-key { display: none; align-items: center; }   
body.map #rings-key { display: flex; }
#rings-key .rk-ring { margin: 0; font-size: 11px; line-height: 15px; color: var(--ink-3); text-shadow: 0 0 10px var(--bg), 0 0 4px var(--bg), 0 0 2px var(--bg); }
#map-foot #p-model { display: none; } body.map #map-foot #p-model { display: flex; align-items: center; }
#map-foot #p-model .chk { margin: 0; text-shadow: 0 0 10px var(--bg), 0 0 4px var(--bg), 0 0 2px var(--bg); }

.lb .rd { position: relative; height: 78px; }
.lb .rd > .rb { position: absolute; left: 0; right: 0; top: 34px; height: 10px; border-radius: 5px; }
.lb .rd > .rb i { border-radius: 5px; }
.lb .rd .rb b { position: absolute; width: 2px; top: -5px; bottom: -5px; margin-left: -1px; background: var(--c); border-radius: 1px; }
.lb .rd .rb .ctr { position: absolute; width: 0; top: -7px; bottom: -7px; border-left: 2px dashed var(--ink-2); }
.co { position: absolute; top: 0; height: 78px; font: 500 11px/15px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.co i { position: absolute; width: 8px; border: 0 solid var(--ink-3); }
.co.dash i { border-style: dashed; border-top-style: solid; border-bottom-style: solid; }
.co span { position: absolute; }
.co.up-l i { left: -8px; top: 7px; height: 23px; border-top-width: 1px; border-right-width: 1px; }
.co.up-l span { right: 10px; top: 0; }
.co.up-r i { left: 0; top: 7px; height: 23px; border-top-width: 1px; border-left-width: 1px; }
.co.up-r span { left: 10px; top: 0; }
.co.dn-l i { left: -8px; top: 48px; height: 20px; border-bottom-width: 1px; border-right-width: 1px; }
.co.dn-l span { right: 10px; top: 61px; }
.co.dn-r i { left: 0; top: 48px; height: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.co.dn-r span { left: 10px; top: 61px; }
.co.d2-l i { left: -8px; top: 48px; height: 40px; border-bottom-width: 1px; border-right-width: 1px; }
.co.d2-l span { right: 10px; top: 81px; }
.co.d2-r i { left: 0; top: 48px; height: 40px; border-bottom-width: 1px; border-left-width: 1px; }
.co.d2-r span { left: 10px; top: 81px; }
.lb .rd.tall { height: 98px; }   
.co.dash.dn-l i, .co.dash.dn-r i { top: 52px; height: 16px; } .co.dash.d2-l i, .co.dash.d2-r i { top: 52px; height: 36px; }   

#flyers { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
#flyers i { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--masers); will-change: transform; }

#about { top: calc(var(--top) + 42px + var(--s3)); left: var(--gutter); width: var(--col); z-index: 6; animation: about-in 450ms var(--ease); }   
#about[hidden] { display: none; }

#mapnav #about-btn, .about-head button { width: 20px; height: 20px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--ui); font-variation-settings: var(--v-voice); color: var(--ink-2); background: var(--bg); border-color: var(--frame); }
.about-head button { font-size: 15px; font-weight: 400; font-variation-settings: var(--v-words); }
@media (hover: hover) { #mapnav #about-btn:hover, .about-head button:hover { color: var(--ink); border-color: var(--ink); } }
@keyframes about-in { from { opacity: 0; transform: translateX(-16px); } }
body.about #counter { opacity: 0; pointer-events: none; }
.about-head { position: relative; flex: none; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }   
.about-head h2 { margin: 0; font: 700 22px/28px var(--ui); }   
.about-head p { margin: var(--s1) 0 0; padding-right: 64px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.about-head button { position: absolute; top: 12px; right: 10px; }         
#about > .scroll { padding: 0 20px 20px; }

.about-body h3 { margin: 20px 0 8px; font: 700 15px/22px var(--ui); color: var(--ink); }
.about-body h3:not(:first-child) { margin: 22px -20px 8px; padding: 20px 20px 0; border-top: 1px solid var(--line); }
.about-body p { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.about-body p + p { margin-top: var(--s2); }
.about-body ul { margin: 0; padding: 0; list-style: none; }

.about-body ul.data { display: flex; flex-direction: column; gap: 10px; }
.about-body ul.data li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.about-body ul.data b { font: 700 13px/18px var(--ui); color: var(--c, var(--ink)); }
.about-body p.note { margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.about-body ul.keys { display: flex; flex-direction: column; gap: 6px; }
.about-body ul.keys li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.about-body .keys-t { margin-top: 12px; }   

.about-body a { color: inherit; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(230, 233, 238, .3); text-underline-offset: 3px; }
@media (hover: hover) { .about-body a:hover { color: var(--ink); text-decoration-color: var(--ink); } }
.about-body kbd { min-width: 34px; padding: 1px 6px; border: 1px solid var(--frame); border-radius: 4px; font: 500 11px/16px var(--ui); font-variation-settings: var(--v-figs); color: var(--ink); text-align: center; }

@media (width > 860px), (orientation: landscape) and (height <= 500px) and (width >= 640px) {
  #strip { width: min(820px, 56vw); }
  body.table #strip { width: min(820px, calc(100vw - max(var(--gutter), 34vw - min(300px, 50vw - var(--gutter))) - min(600px, 100vw - 2 * var(--gutter)) - var(--gutter) - var(--indent) - 24px)); }   
  #cap p:not(.sub) { font-size: 36px; line-height: 42px; }
  #cap p.sub { max-width: 620px; }
}
@media (width <= 860px) and (orientation: portrait), (width <= 860px) and (height > 500px), (width < 640px) {
  #counter, #about { background: rgba(10, 11, 13, .92); }   
  :root { --m: 10px; --gutter: 22px; --top: 60px; --bottom: 96px; }
  .card > .scroll { overflow: visible; }
  #bar { top: 62px; font-size: 18px; line-height: 24px; right: var(--gutter); }
  #nav, #mapnav { top: 20px; }
  #line p { font-size: 28px; line-height: 34px; }   
  #strip { top: 140px; right: var(--gutter); width: auto; }
  #cap p { font-size: 28px; line-height: 34px; } #cap p.sub { font-size: 15px; line-height: 22px; }
  body nav.lenses { top: 124px; left: var(--gutter); right: var(--gutter); height: 40px; padding: 0; overflow-x: auto; scrollbar-width: none; } nav.lenses button { flex: 0 0 auto; padding: 0 var(--s3); }
  #tcard { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 56vh; transform: translateY(110%); border-radius: var(--r-card) var(--r-card) 0 0; }
  #tcard .tw { padding: 8px 14px 20px; }
  body.map { overflow-y: auto; }   
  #counter { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: auto; overflow: visible; margin: 0 var(--gutter); transform: none; }
  #counter { margin-top: 58vh; }
  #map-foot { position: relative; z-index: 4; display: flex; flex-direction: column; gap: var(--s3); margin: var(--s3) var(--gutter) var(--s6); }   
  body:not(.map) #counter { display: none; }
  #legend { bottom: auto; top: 124px; max-width: none; right: var(--gutter); }
  body.map #legend { display: flex; top: 172px; left: var(--gutter); right: var(--gutter); align-items: center; }   
  #psrbar { max-width: 100%; } #psrbar .seg { flex-wrap: wrap; justify-content: center; } #psrbar .seg .sk { width: 100%; text-align: center; margin: 0 0 2px; } #psrbar .note { white-space: normal; text-align: center; }   
  #credit { left: var(--gutter); right: var(--gutter); text-align: left; bottom: auto; top: 94px; font-size: 10px; line-height: 14px; color: var(--ink-2); }   
  #about { position: fixed; inset: 0; width: auto; border: 0; border-radius: 0; background: var(--bg); z-index: 30; }
  .about-head { height: auto; padding-top: 22px; }
  .card#about > .scroll { overflow-y: auto; }   
  
  body.map #bar, body.map #mapnav, body.map nav.lenses, body.map #legend, body.map #credit { position: absolute; }
  body.map { position: relative; }   
  
  #nav #i-skip[hidden] { display: none; }
  #mapnav #about-btn { position: relative; }   
  nav.lenses button { flex: 1 0 auto; }   
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important;
    animation-duration: 1ms !important; animation-delay: 0ms !important; }   
}

@media (pointer: coarse) {
  #psrbar .seg button, .chk { position: relative; }   
  #mapnav #about-btn::after, .about-head button::after { content: ""; position: absolute; inset: -12px; }
  #mapnav #about-btn::after { inset: -12px -4px; }   
  #psrbar .seg button::after, .chk::after { content: ""; position: absolute; inset: -8px -2px; }
  .card > .thumb::after { content: ""; position: absolute; inset: -6px -10px; }
}

@media (hover: none) and (pointer: coarse) { #about-body .keys, #about-body .keys-h, #about-body .keys-t { display: none; } }

@media (width > 860px) and (width <= 1100px), (orientation: landscape) and (height <= 500px) and (width >= 640px) and (width <= 1100px) {
  :root { --indent: 0px; --col: 320px; }
  #cap p:not(.sub), #line p { font-size: 28px; line-height: 34px; }
  #tcard { width: min(600px, calc(100vw - 2 * var(--gutter) - 300px)); right: var(--gutter); }
  body.table #strip { width: calc(100vw - min(600px, calc(100vw - 2 * var(--gutter) - 300px)) - 2 * var(--gutter) - 24px); }
  body.aside #stage, body.map #stage { transform: translate(var(--shift, 16vw), 24px); }
  body.map #psrbar { left: calc(50vw + var(--shift, 16vw)); }
  body.map nav.lenses { overflow-x: auto; scrollbar-width: none; }
  body.map nav.lenses::-webkit-scrollbar { display: none; }
  body.map nav.lenses button { flex: 1 0 auto; padding: 0 10px; font-size: 12px; }
}

@media (orientation: landscape) and (height <= 500px) and (width >= 640px) {
  :root { --gutter: 24px; }
  #bar { top: 16px; } #mapnav { top: 14px; } #nav .prog { top: 20px; } #nav #i-skip { top: 15px; }
  body.map { --ctop: 52px; --bottom: 12px; }
  #cap p:not(.sub), #line p { font-size: 24px; line-height: 29px; }
  #nav { top: calc(50% + 70px); }
}

@media (width <= 360px) { #nav { gap: 6px; } #nav button { padding-inline: 12px; } }
@media (width < 360px) { #cap p { font-size: 24px; line-height: 29px; } #nav .prog { display: none; } }

@media (width < 640px) and (height <= 500px) {
  html, body { overflow-y: auto; }
  body:not(.map) { height: auto; min-height: 100%; }
  #strip { position: absolute; top: 120px; }
  #line { position: absolute; top: 130px; bottom: auto; inset-inline: var(--gutter); }   
  #line p, #cap p { font-size: 22px; line-height: 28px; }
  #tcard { position: relative; top: auto; bottom: auto; height: auto; transform: none; margin: 0 0 24px; }   
  body:not(.table) #tcard { display: none; }
  body.table #strip { position: relative; top: auto; margin: 120px var(--gutter) var(--s4); }
  body.map #counter { margin-top: 330px; }
}

