/* ATLAS v2: a dark instrument. The terrain fills the screen; colour belongs to data only:
   amber = SOL flowing in / new, ice blue = SOL flowing out, white = height. */
@font-face { font-family: "Madefor Display"; font-weight: 600; font-display: swap; src: url(/fonts/display-600.woff2) format("woff2"); }
@font-face { font-family: "Madefor Display"; font-weight: 700; font-display: swap; src: url(/fonts/display-700.woff2) format("woff2"); }
@font-face { font-family: "Madefor Display"; font-weight: 800; font-display: swap; src: url(/fonts/display-800.woff2) format("woff2"); }
@font-face { font-family: "Madefor Text"; font-weight: 400; font-display: swap; src: url(/fonts/text-400.woff2) format("woff2"); }
@font-face { font-family: "Madefor Text"; font-weight: 500; font-display: swap; src: url(/fonts/text-500.woff2) format("woff2"); }
@font-face { font-family: "Madefor Text"; font-weight: 600; font-display: swap; src: url(/fonts/text-600.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu Sans Mono"; font-weight: 400; font-display: swap; src: url(/fonts/mono-400.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu Sans Mono"; font-weight: 500; font-display: swap; src: url(/fonts/mono-500.woff2) format("woff2"); }

:root {
  --bg: #06080d; --panel: rgba(11, 14, 21, .93); --panel2: #121722; --line: rgba(255, 255, 255, .075); --line2: rgba(255, 255, 255, .14);
  --text: #e9edf4; --dim: #8b95a7; --faint: #556073;
  --up: #ff8d3f; --upglow: rgba(255, 141, 63, .35); --down: #58c4ff; --white: #f4f7fc;
  --disp: "Madefor Display", system-ui, sans-serif; --ui: "Madefor Text", system-ui, sans-serif; --mono: "Ubuntu Sans Mono", ui-monospace, monospace;
  --r: 14px; --g: 18px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 13.5px/1.45 var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------------- the terrain */
#stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#stage.held { cursor: grabbing; } #stage.over { cursor: pointer; }
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#marks, #labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* a soft edge to the world, painted once */
#veil { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 55%, transparent 55%, rgba(4, 5, 9, .72) 100%), linear-gradient(to bottom, rgba(6, 8, 13, .85), transparent 16%, transparent 78%, rgba(6, 8, 13, .9)); }

/* the survey's sweep: a faint band of light crossing the terrain, moved by transform only */
#scan { position: absolute; left: 0; right: 0; top: 0; height: 26vh; transform: translateY(-30vh); will-change: transform;
  background: linear-gradient(to bottom, transparent, rgba(150, 180, 230, .035) 70%, rgba(190, 215, 255, .07) 97%, transparent); animation: scan 11s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { 0% { transform: translateY(-30vh); } 70%, 100% { transform: translateY(105vh); } }

.pin { position: absolute; left: 0; top: 0; pointer-events: auto; text-decoration: none; will-change: transform; transition: opacity .3s; }
.pin .chip { position: absolute; left: 0; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 4px 9px 4px; border-radius: 8px;
  background: rgba(8, 11, 17, .82); border: 1px solid var(--line2); white-space: nowrap; transition: border-color .2s, background .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.pin .chip b { font: 700 11.5px/1.15 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.pin .chip small { font: 500 10px/1.2 var(--mono); color: var(--dim); }
.pin .stem { position: absolute; left: -.5px; bottom: 2px; width: 1px; height: 28px; background: linear-gradient(to top, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08)); }
.pin .stem::after { content: ""; position: absolute; left: -2.5px; bottom: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.pin.big .chip { padding: 6px 12px 5px; } .pin.big .chip b { font-size: 15px; letter-spacing: .05em; }
.pin:not(.meta) .chip { background: rgba(8, 11, 17, .6); border-color: var(--line); } .pin:not(.meta) .chip b { color: #c9d2e0; font-size: 10.5px; }
.pin.up .chip { border-color: rgba(255, 141, 63, .6); } .pin.up .chip small { color: var(--up); } .pin.up .stem::after { background: var(--up); box-shadow: 0 0 0 3px var(--upglow); }
.pin.down .chip small { color: var(--down); } .pin.down .stem::after { background: var(--down); }
.pin:hover .chip, .pin.hot .chip { background: rgba(20, 26, 38, .95); border-color: rgba(255, 255, 255, .5); transform: translateX(-50%) translateY(-3px); }

.ping { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ping::before, .ping::after { content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border: 1.5px solid var(--up); border-radius: 50%; animation: ping 2.4s cubic-bezier(.2, .7, .3, 1) both; }
.ping::after { animation-delay: .45s; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }
.beam { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.beam::before { content: ""; position: absolute; left: -1.5px; bottom: 0; width: 3px; height: 240px; transform-origin: 50% 100%; border-radius: 3px;
  background: linear-gradient(to top, rgba(255, 141, 63, .95), rgba(255, 141, 63, .25) 60%, transparent); animation: beam 6s cubic-bezier(.2, .8, .2, 1) both; }
.beam::after { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--up); animation: ping 2.6s cubic-bezier(.2, .7, .3, 1) 2 both; }
@keyframes beam { 0% { transform: scaleY(0); opacity: 1; } 18% { transform: scaleY(1); } 70% { opacity: .9; } 100% { transform: scaleY(1); opacity: 0; } }
.house { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.house b { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: var(--white); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.house::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--up); animation: halo 3.2s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.35); opacity: .35; } }

/* -------------------------------------------------------------------------------------- panels */
.panel, #board, #births, #dock, #command form, #nav, #inset { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -20px rgba(0, 0, 0, .7); }
h2 { margin: 0; font: 700 12px/1 var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }

#brand { position: fixed; z-index: 3; left: var(--g); top: var(--g); display: flex; align-items: center; gap: 14px; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
#brand .mark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
#brand svg .r { fill: none; stroke: #8f9bb0; stroke-width: 1.6; stroke-linejoin: round; } #brand svg .r2 { stroke: var(--white); stroke-width: 2; }
#brand svg .pk { fill: var(--up); }
#brand b { display: block; font: 800 22px/1 var(--disp); letter-spacing: .14em; }
#brand i { display: block; margin-top: 3px; font: 500 10.5px/1 var(--ui); font-style: normal; color: var(--dim); letter-spacing: .02em; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 99px; border: 1px solid var(--line); background: rgba(11, 14, 21, .7); font: 500 10.5px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live.on i { background: #48e08b; } .live.on i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #48e08b; animation: halo 2.4s ease-in-out infinite; }
.live.dev em { color: var(--up); }

#command { position: fixed; z-index: 4; left: 50%; top: var(--g); transform: translateX(-50%); display: flex; gap: 8px; animation: rise .7s .06s cubic-bezier(.2, .8, .2, 1) both; }
#command form { display: flex; align-items: center; gap: 9px; width: min(430px, 36vw); height: 42px; padding: 0 10px 0 14px; transition: border-color .2s, box-shadow .2s; }
#command form:focus-within { border-color: rgba(255, 141, 63, .55); box-shadow: 0 0 0 4px rgba(255, 141, 63, .1), 0 24px 60px -20px rgba(0, 0, 0, .7); }
#command svg { flex: none; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; }
#command input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text); font: 500 14px/1 var(--ui); }
#command input::placeholder { color: var(--faint); }
kbd { padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line2); font: 500 11px/1.3 var(--mono); color: var(--dim); }
#nav { display: flex; align-items: center; padding: 4px; height: 42px; }
#nav a { display: flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 9px; text-decoration: none; font: 600 12.5px/1 var(--ui); color: var(--dim); transition: color .15s, background .15s; }
#nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
#nav a.here { color: var(--text); background: rgba(255, 255, 255, .09); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; }
#nav a.tk { color: var(--up); font-family: var(--mono); font-weight: 500; }

/* the board of metas */
#board { position: fixed; z-index: 3; left: var(--g); top: 86px; width: 370px; max-height: calc(100vh - 86px - 150px); display: flex; flex-direction: column; overflow: hidden; animation: rise .7s .12s cubic-bezier(.2, .8, .2, 1) both; }
#board > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 16px; }
#board h2 span { margin-left: 6px; font: 500 11px/1 var(--mono); color: var(--faint); letter-spacing: 0; }
.seg { display: flex; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 4px 8px; border-radius: 6px; font: 500 10.5px/1 var(--mono); color: var(--dim); cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, .1); color: var(--text); }
.cols, #rows li a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 54px 50px 48px; gap: 8px; align-items: center; }
.cols { padding: 0 14px 6px 16px; border-bottom: 1px solid var(--line); font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.cols span:nth-child(n+3) { text-align: right; }
#rows { position: relative; list-style: none; margin: 0; padding: 4px 6px 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3242 transparent; }
#rows li { will-change: transform; }
#rows li a { padding: 8px 8px 8px 10px; border-radius: 9px; text-decoration: none; transition: background .15s; }
#rows li a:hover, #rows li.hot a { background: rgba(255, 255, 255, .055); }
#rows .rk { font: 500 11px/1 var(--mono); color: var(--faint); }
#rows .nm { min-width: 0; }
#rows .nm b { display: block; font: 700 13px/1.15 var(--disp); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rows .nm small { display: block; margin-top: 2px; font: 500 10.5px/1 var(--mono); color: var(--faint); }
#rows svg { width: 58px; height: 22px; overflow: visible; }
#rows svg path.a { fill: rgba(255, 255, 255, .06); } #rows svg path.l { fill: none; stroke: #9aa6ba; stroke-width: 1.3; stroke-linejoin: round; }
#rows li.up svg path.l { stroke: var(--up); } #rows li.up svg path.a { fill: rgba(255, 141, 63, .12); }
#rows li.down svg path.l { stroke: var(--down); } #rows li.down svg path.a { fill: rgba(88, 196, 255, .1); }
#rows .v { text-align: right; font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
#rows .t { text-align: right; font: 500 11.5px/1 var(--mono); color: var(--faint); }
#rows li.up .t { color: var(--up); } #rows li.down .t { color: var(--down); }
#rows li.fresh a { animation: flash 2.4s ease-out both; }
@keyframes flash { 0%, 30% { background: rgba(255, 141, 63, .16); } 100% { background: transparent; } }
.empty { margin: 0; padding: 14px 16px 18px; color: var(--dim); font-size: 12.5px; }

/* births */
#births { position: fixed; z-index: 3; right: var(--g); top: 86px; width: 264px; padding: 13px 0 6px; animation: rise .7s .18s cubic-bezier(.2, .8, .2, 1) both; }
#births h2 { display: flex; align-items: center; gap: 9px; padding: 0 15px 9px; border-bottom: 1px solid var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--upglow); }
#birthList { list-style: none; margin: 0; padding: 4px 6px; max-height: 288px; overflow: hidden; }
#birthList a { display: block; padding: 7px 9px; border-radius: 9px; text-decoration: none; transition: background .15s; }
#birthList a:hover { background: rgba(255, 255, 255, .05); }
#birthList b { display: block; font: 700 12.5px/1.2 var(--disp); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#birthList span { display: block; font: 500 10.5px/1.5 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#birthList li.fresh { animation: slip .8s cubic-bezier(.2, .8, .2, 1) both; } #birthList li.fresh b { color: var(--up); }
#birthList .none { padding: 8px 9px 10px; color: var(--dim); font-size: 12px; }
@keyframes slip { from { transform: translateY(-10px); opacity: 0; } }

/* the dock: the day's launches as a histogram, the clock, the view */
#dock { position: fixed; z-index: 3; left: 50%; bottom: var(--g); transform: translateX(-50%); width: min(1080px, calc(100vw - 2 * var(--g))); display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 10px 12px 10px 18px; animation: up .8s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 16px); } }
.kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 0 18px; }
.kpis div { display: flex; flex-direction: column; gap: 3px; }
.kpis span { font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.kpis b { font: 700 19px/1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpis b.up { color: var(--up); } .kpis b.down { color: var(--down); }
.time { display: flex; align-items: center; gap: 12px; min-width: 0; }
.play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background .15s, border-color .15s; }
.play svg { fill: var(--text); } .play:hover { border-color: rgba(255, 255, 255, .4); }
.play.on { background: var(--up); border-color: var(--up); } .play.on svg { fill: #1a0d03; }
.hist { position: relative; flex: 1; min-width: 0; height: 44px; }
.hist svg { position: absolute; left: 0; top: 0; width: 100%; height: 32px; }
.hist rect.a { fill: #3a4458; } .hist rect.b { fill: #c9d3e3; } .hist rect.c { fill: var(--up); }
.hist rect.past { opacity: .28; }
#cursor { position: absolute; top: -3px; height: 38px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); left: 100%; pointer-events: none; will-change: left; }
.hist input { position: absolute; left: 0; top: -6px; width: 100%; height: 44px; margin: 0; opacity: 0; cursor: ew-resize; }
.scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 500 9px/1 var(--mono); color: var(--faint); pointer-events: none; }
.asof { flex: none; min-width: 64px; padding: 6px 9px; border-radius: 7px; text-align: center; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: #48e08b; background: rgba(72, 224, 139, .08); border: 1px solid rgba(72, 224, 139, .2); }
.asof.past { color: var(--up); background: rgba(255, 141, 63, .08); border-color: rgba(255, 141, 63, .3); }
.view { display: flex; gap: 4px; }
.view button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; font: 500 12px/1 var(--mono); color: var(--dim); transition: color .15s, border-color .15s; }
.view button:hover { color: var(--text); border-color: var(--line2); }
.view svg { fill: none; stroke: currentColor; stroke-width: 1.6; }

body.reading #births { opacity: 0; pointer-events: none; }
#births { transition: opacity .25s; }
#foot { position: fixed; z-index: 3; right: var(--g); bottom: calc(var(--g) + 78px); display: flex; gap: 14px; font: 500 10.5px/1 var(--mono); }
#foot a { color: var(--faint); text-decoration: none; } #foot a:hover { color: var(--text); }

@keyframes rise { from { opacity: 0; transform: translateY(-10px); } }
#command { animation-name: drop; } @keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ------------------------------------------------------------------------------------ the inset */
#inset { position: fixed; z-index: 6; right: var(--g); top: 86px; bottom: 104px; width: min(460px, calc(100vw - 2 * var(--g))); display: flex; flex-direction: column; overflow: hidden; animation: slide .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { transform: translateX(28px); opacity: 0; } }
#inset > header { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 11px 10px 10px 18px; border-bottom: 1px solid var(--line); }
#insetKicker { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
#insetClose { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; cursor: pointer; }
#insetClose svg { stroke: var(--dim); stroke-width: 1.6; } #insetClose:hover svg { stroke: var(--text); }
#insetBody { flex: 1; overflow: auto; padding: 18px 18px 26px; scrollbar-width: thin; scrollbar-color: #2a3242 transparent; }
#insetBody > * { animation: fade .5s cubic-bezier(.2, .8, .2, 1) both; }
#insetBody > *:nth-child(2) { animation-delay: .04s; } #insetBody > *:nth-child(3) { animation-delay: .08s; } #insetBody > *:nth-child(4) { animation-delay: .12s; } #insetBody > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes fade { from { transform: translateY(8px); opacity: 0; } }
#inset h1 { margin: 0; font: 800 30px/1.02 var(--disp); letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
#inset h1 small { display: block; margin-top: 8px; font: 500 13.5px/1.35 var(--ui); text-transform: none; letter-spacing: 0; color: var(--dim); }
#inset h2 { margin: 24px 0 10px; font-size: 11px; color: var(--dim); }
#inset p { margin: 9px 0; color: #c8d0dc; }
#inset p.lead { font: 500 15px/1.45 var(--ui); color: var(--text); }
#inset p.note { font-size: 12px; color: var(--faint); }
#inset .words { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; color: #c8d0dc; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.facts div { padding: 10px 11px 9px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-width: 0; }
.facts dt { font: 500 9.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.facts dd { margin: 5px 0 0; font: 700 17px/1.1 var(--disp); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd.up { color: var(--up); } .facts dd.down { color: var(--down); }
.facts dd small { font: 500 10.5px/1 var(--mono); color: var(--faint); }
.acts { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line2); background: linear-gradient(to bottom, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset; cursor: pointer; text-decoration: none; font: 600 12.5px/1 var(--ui); color: var(--text); transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: rgba(255, 255, 255, .32); transform: translateY(-1px); }
.btn.hot { border-color: rgba(255, 141, 63, .9); background: linear-gradient(to bottom, #ff9d55, #f2711f); color: #1b0c02; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 24px -8px rgba(255, 120, 40, .6); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.ca { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 9px 11px; border-radius: 10px; border: 1px dashed var(--line2); font: 500 11.5px/1.2 var(--mono); cursor: pointer; overflow: hidden; color: #c8d0dc; }
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ca b { flex: none; font: 700 10px/1 var(--disp); letter-spacing: .12em; color: var(--up); }
.ca:hover { border-color: rgba(255, 255, 255, .35); }
.spark { display: block; width: 100%; height: 96px; margin-top: 4px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.rows th { padding: 0 6px 7px; text-align: left; font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line); }
.rows th.sort { cursor: pointer; } .rows th.sort:hover, .rows th.on { color: var(--up); }
.rows td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows td.n, .rows th.n { text-align: right; font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; width: 64px; max-width: none; }
.rows td.nm2 { width: 46%; } .rows td.nm2 b { font: 700 13px/1 var(--disp); letter-spacing: .03em; text-transform: uppercase; }
.rows td i { font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--faint); margin-left: 6px; }
.rows tr[data-go] { cursor: pointer; } .rows tr[data-go]:hover td { background: rgba(255, 255, 255, .035); }
.rows td.up { color: var(--up); } .rows td.down { color: var(--down); }
.rows .first td.nm2 b::after { content: "FIRST"; margin-left: 7px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 141, 63, .15); font: 500 9px/1.4 var(--mono); color: var(--up); letter-spacing: .04em; vertical-align: 1px; }
.sim { display: inline-block; width: 50px; height: 5px; border-radius: 3px; vertical-align: middle; background: linear-gradient(90deg, var(--white) var(--v, 0%), rgba(255, 255, 255, .1) 0); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line2); font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.tag.mag { border-color: rgba(255, 141, 63, .5); color: var(--up); background: rgba(255, 141, 63, .08); }
.field { display: block; margin: 12px 0 0; } .field span { display: block; margin-bottom: 5px; font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.field input, .field textarea { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font: 500 14px/1.35 var(--ui); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { border-color: rgba(255, 141, 63, .6); box-shadow: 0 0 0 4px rgba(255, 141, 63, .1); }
.field textarea { min-height: 90px; resize: vertical; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.verdict { margin: 14px 0 4px; padding: 13px 14px; border-radius: 11px; background: linear-gradient(135deg, rgba(255, 141, 63, .12), rgba(255, 141, 63, .02)); border: 1px solid rgba(255, 141, 63, .3); font: 500 14px/1.45 var(--ui); }
.verdict.open { background: rgba(88, 196, 255, .06); border-color: rgba(88, 196, 255, .25); }
.verdict b { font: 800 14px/1 var(--disp); letter-spacing: .04em; text-transform: uppercase; color: var(--up); }
.verdict.open b { color: var(--down); }
.steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; margin: 0 0 11px; padding-left: 36px; counter-increment: s; color: #c8d0dc; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 500 11px/1.6 var(--mono); color: var(--up); }
pre.sec { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 11.5px/1.55 var(--mono); color: #aeb8c8; }

/* the office's wallet button: a key in a ring */
.orb { display: flex; align-items: center; gap: 15px; width: 100%; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.orb:hover { border-color: rgba(255, 141, 63, .55); background: rgba(255, 141, 63, .05); }
.orb i { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #2a3140, #0c1017 70%); border: 1px solid var(--line2); }
.orb i::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(255, 141, 63, .7); animation: spin 9s linear infinite; }
.orb i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--up); box-shadow: 0 0 14px var(--up); }
.orb.in i::after { background: #48e08b; box-shadow: 0 0 14px #48e08b; } .orb.in i::before { border-color: rgba(72, 224, 139, .6); }
.orb b { display: block; font: 700 14px/1.2 var(--disp); letter-spacing: .02em; }
.orb span span { display: block; margin-top: 3px; font: 500 11px/1.3 var(--mono); color: var(--faint); }
@keyframes spin { to { transform: rotate(360deg); } }

#tip { position: fixed; left: 0; top: 0; z-index: 8; pointer-events: none; max-width: 270px; padding: 9px 11px 8px; border-radius: 10px; background: rgba(13, 17, 25, .97); border: 1px solid var(--line2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
#tip b { display: block; font: 700 13.5px/1.15 var(--disp); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tip span { display: block; margin-top: 3px; font: 500 10.5px/1.45 var(--mono); color: var(--dim); }
#tip em { font-style: normal; color: var(--up); }
#toast { position: fixed; left: 50%; top: 76px; z-index: 9; transform: translateX(-50%); max-width: min(520px, 90vw); display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 11px;
  background: rgba(16, 20, 30, .97); border: 1px solid rgba(255, 141, 63, .45); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8); font: 600 13px/1.3 var(--ui); animation: drop .35s both; }
#toast::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--upglow); }
.nojs { position: fixed; inset: 40% 10% auto; padding: 16px; border-radius: 12px; background: var(--panel2); text-align: center; z-index: 10; }

/* --------------------------------------------------------------------------------------- phones */
@media (max-width: 1180px) { #births { display: none; } #foot { bottom: calc(var(--g) + 78px); } }
@media (max-width: 1000px) { .kpis div:nth-child(n+3) { display: none; } }
@media (max-width: 820px) {
  :root { --g: 10px; }
  #brand i { display: none; } #brand b { font-size: 19px; } .live em { display: none; } .live { padding: 5px; }
  /* no transform on the bar here: it would make the fixed menu inside it stick to the bar */
  #command { left: var(--g); right: var(--g); top: 58px; transform: none; flex-direction: column; animation: none; }
  #command form { width: 100%; height: 40px; }
  #nav { position: fixed; left: var(--g); right: var(--g); bottom: var(--g); height: 46px; justify-content: space-between; z-index: 5; }
  #nav a { flex: 1; justify-content: center; padding: 0 6px; }
  /* on a phone the terrain keeps the screen; the board is one tap away (Metas) */
  #board { display: none; }
  #dock { bottom: 64px; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 8px 8px 12px; }
  .kpis { display: none; } .scale span:nth-child(2n) { display: none; }
  #foot { display: none; }
  #inset { left: var(--g); right: var(--g); top: 108px; bottom: 132px; width: auto; animation-name: sheet; }
  @keyframes sheet { from { transform: translateY(30px); opacity: 0; } }
  #inset h1 { font-size: 24px; } .facts { grid-template-columns: repeat(2, 1fr); }
  .pin .chip b { font-size: 10px; } .pin.big .chip b { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; } .ping, .beam { display: none; } }
