/* =====================================================================================================================
   DIBIT ORBITAL - the cockpit of a ship not built yet.
   Brand (Doc/brand.md): the four QPSK phase states as colours. I-channel SIGNAL cyan, Q-channel QUAD violet, ION green
   (ok), PLASMA amber (warning), NOVA red (alert). Two themes: VOID (dark, default) and LUNAR (light).
   ===================================================================================================================== */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root, [data-theme="void"] {
  --void: #02040a;
  --hull: #060b16;
  --hull-2: #0a1222;
  --hull-3: #101b31;
  --glass: rgba(10, 20, 38, .62);
  --glass-hi: rgba(20, 38, 66, .55);
  --line: rgba(110, 200, 255, .14);
  --line-2: rgba(110, 210, 255, .28);
  --line-3: rgba(120, 230, 255, .55);
  --ink: #e8f4ff;
  --ink-2: #a9bed6;
  --ink-3: #6a83a2;
  --ink-4: #3d516c;
  --signal: #38e8ff;
  --quad: #a07cff;
  --ion: #3dffa8;
  --plasma: #ffb547;
  --nova: #ff4d6d;
  --signal-rgb: 56, 232, 255;
  --quad-rgb: 160, 124, 255;
  --glow-s: 0 0 18px rgba(var(--signal-rgb), .45), 0 0 2px rgba(var(--signal-rgb), .9);
  --star: 220, 240, 255;
  --scan: rgba(120, 220, 255, .035);
  --nebula-a: rgba(80, 40, 200, .22);
  --nebula-b: rgba(0, 170, 220, .16);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

[data-theme="lunar"] {
  --void: #dfe6ef;
  --hull: #eef2f7;
  --hull-2: #f7f9fc;
  --hull-3: #ffffff;
  --glass: rgba(255, 255, 255, .7);
  --glass-hi: rgba(255, 255, 255, .9);
  --line: rgba(20, 70, 130, .13);
  --line-2: rgba(20, 80, 150, .25);
  --line-3: rgba(0, 110, 170, .5);
  --ink: #071322;
  --ink-2: #33475f;
  --ink-3: #5c718b;
  --ink-4: #95a6ba;
  --signal: #0085a8;
  --quad: #5a3cd8;
  --ion: #00875a;
  --plasma: #b56500;
  --nova: #d01d48;
  --signal-rgb: 0, 133, 168;
  --quad-rgb: 90, 60, 216;
  --glow-s: 0 0 14px rgba(var(--signal-rgb), .25);
  --star: 30, 60, 110;
  --scan: rgba(10, 60, 120, .025);
  --nebula-a: rgba(120, 90, 255, .14);
  --nebula-b: rgba(0, 160, 210, .12);
  --shadow: 0 30px 60px -30px rgba(20, 40, 80, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--void);
  color: var(--ink);
  font: 400 15px/1.55 "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: background .6s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "zero" 1; }
.dim { color: var(--ink-3); }
.small { font-size: .82em; }
.center { text-align: center; }
.signal { color: var(--signal); } .quad { color: var(--quad); } .ion { color: var(--ion); } .plasma { color: var(--plasma); } .nova { color: var(--nova); }
.ion-bg { background: var(--ion) !important; } .nova-bg { background: var(--nova) !important; } .plasma-bg { background: var(--plasma) !important; }
.flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* a flag before a name: always a gap (Razor drops the space between a tag and @(...) in a code block) */
span.flag:not(:empty) { margin-right: .45em; }
::selection { background: rgba(var(--signal-rgb), .35); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
/* The page title gets focus on every navigation (screen readers) - that is not a control, so no ring. */
h1:focus, h1:focus-visible { outline: none; }

/* ---------------------------------------------------------------------------------------------- the cockpit frame */
.cockpit {
  position: fixed; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}
.deep-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; }
.nebula {
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 22%, var(--nebula-a), transparent 70%),
    radial-gradient(35% 40% at 85% 70%, var(--nebula-b), transparent 70%),
    radial-gradient(60% 50% at 50% 120%, rgba(var(--signal-rgb), .10), transparent 70%);
  animation: nebula-drift 60s ease-in-out infinite alternate;
}
@keyframes nebula-drift { to { transform: translate3d(3%, -2%, 0) rotate(4deg) scale(1.05); } }

/* HUD across the top */
.hud-top {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--hull) 0%, color-mix(in srgb, var(--hull) 70%, transparent) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.hud-top::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), var(--quad), transparent);
  opacity: .7;
}
.hud-center { display: flex; justify-content: center; gap: 34px; }
.hud-readout { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.hud-k { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.hud-v { font-size: 14px; color: var(--ink); letter-spacing: .04em; }
.hud-tools { display: flex; align-items: center; gap: 12px; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wm-text { display: grid; grid-template-columns: auto auto; column-gap: 6px; line-height: 1; }
.wm-name { font-weight: 700; font-size: 20px; letter-spacing: .32em; }
.wm-ab { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--signal); align-self: start; margin-top: 2px; }
.wm-sub { grid-column: 1 / -1; font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: .55em; color: var(--ink-3); margin-top: 5px; }

.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); }
.seg-b { padding: 4px 11px; border-radius: 999px; font: 600 11px/1.4 "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--ink-3); transition: .25s; }
.seg-b:hover { color: var(--ink); }
.seg-b.on { background: rgba(var(--signal-rgb), .16); color: var(--signal); box-shadow: inset 0 0 0 1px rgba(var(--signal-rgb), .45); }
.seg.big .seg-b { padding: 7px 16px; font-size: 12px; }

.theme-orb {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; overflow: hidden; transition: .3s;
}
.theme-orb:hover { color: var(--signal); border-color: var(--line-3); box-shadow: var(--glow-s); }
.theme-orb span { position: absolute; display: grid; place-items: center; transition: transform .6s cubic-bezier(.6, -0.3, .3, 1.4), opacity .4s; }
[data-theme="void"] .to-lunar, :root:not([data-theme]) .to-lunar { transform: translateY(130%) rotate(90deg); opacity: 0; }
[data-theme="lunar"] .to-void { transform: translateY(-130%) rotate(-90deg); opacity: 0; }

.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ion); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(61, 255, 168, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 255, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 168, 0); } }

/* Body: consoles left and right, the viewport (canopy) in the middle */
.cockpit-body {
  min-height: 0;
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 0;
}
.console {
  position: relative; z-index: 5; padding: 26px 18px 120px; overflow: hidden;
  display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(90deg, var(--hull) 0%, color-mix(in srgb, var(--hull) 55%, transparent) 100%);
}
.console-left { grid-column: 1; grid-row: 1; }
.console-right { grid-column: 3; grid-row: 1; background: linear-gradient(270deg, var(--hull) 0%, color-mix(in srgb, var(--hull) 55%, transparent) 100%); }
.console::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; right: 0;
  background: linear-gradient(180deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.console-right::before { right: auto; left: 0; }

.gauge { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--line); stroke-width: 6; }
.g-fill { fill: none; stroke: var(--ion); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: calc(301.6 - 301.6 * max(var(--p), .04)); transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(61, 255, 168, .6)); }
.g-ticks line { stroke: var(--ink-4); stroke-width: 1; }
.gauge-v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-v b { font-size: 34px; line-height: 1; color: var(--ink); }
.gauge-v span { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

.instr { display: grid; gap: 6px; }
.instr-k { font: 500 10px/1.2 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.instr-v { font-size: 12px; color: var(--ink-2); }
.instr-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.instr-bar i { display: block; height: 100%; min-width: 4%; background: linear-gradient(90deg, var(--signal), var(--quad)); border-radius: inherit; transition: width 1s; }
.instr-bar.nova i { background: linear-gradient(90deg, var(--plasma), var(--nova)); }
.blink { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.eq { display: flex; align-items: end; gap: 4px; height: 46px; }
.eq i { flex: 1; background: linear-gradient(0deg, rgba(var(--signal-rgb), .9), rgba(var(--quad-rgb), .5)); border-radius: 2px; animation: eq 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -137ms); height: 30%; opacity: .75; }
@keyframes eq { 0% { height: 12%; } 40% { height: 70%; } 100% { height: 35%; } }
.sys-lines { display: grid; gap: 4px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .08em; white-space: pre; }
.sys-lines b { font-weight: 600; }

.cr-block { display: grid; gap: 4px; }
.cr-row { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; transition: .25s; font-size: 12.5px; line-height: 1.3; }
.cr-row b { font-size: 10.5px; letter-spacing: .06em; font-weight: 600; }
.cr-row span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-row:hover { border-color: var(--line-2); background: var(--glass-hi); }
.cr-empty { font-size: 11px; color: var(--ink-4); padding: 8px 10px; }
.radar-mini { position: relative; margin-top: auto; aspect-ratio: 1; width: 100%; border-radius: 50%; border: 1px solid var(--line-2);
  background: repeating-radial-gradient(circle, transparent 0 18%, var(--line) 18% calc(18% + 1px)), radial-gradient(circle, rgba(var(--signal-rgb), .06), transparent 70%); overflow: hidden; }

/* The viewport: the page, seen through the canopy */
/* Each part in its own column - hiding the consoles must never let the viewport slide into a 0-wide one. */
.viewport { position: relative; min-width: 0; min-height: 0; z-index: 2; grid-column: 2; grid-row: 1; }
.canopy { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.canopy-strut { fill: var(--hull); opacity: .92; }
.canopy-edge { fill: none; stroke: var(--line-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(var(--signal-rgb), .5)); }
.viewport-scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; z-index: 2;
  padding: 34px clamp(46px, 6vw, 86px) 190px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 150px), transparent 100%);
}
.viewport-inner { max-width: 1320px; margin: 0 auto; animation: materialize .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes materialize {
  0% { opacity: 0; transform: perspective(1400px) translateZ(-160px) rotateX(6deg); filter: blur(10px) saturate(2); }
  60% { filter: blur(0) saturate(1.3); }
  100% { opacity: 1; transform: none; filter: none; }
}
.scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }

/* The dash with the navigation core */
.dash { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: 30; pointer-events: none; }
.dash-plate { position: absolute; bottom: 0; height: 64px; width: calc(50% - 90px); pointer-events: none;
  background: linear-gradient(0deg, var(--hull) 30%, transparent); border-top: 1px solid var(--line); }
.dash-plate.left { left: 0; clip-path: polygon(0 40%, 92% 40%, 100% 100%, 0 100%); }
.dash-plate.right { right: 0; clip-path: polygon(8% 40%, 100% 40%, 100% 100%, 0 100%); }

.warp { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 100%, rgba(var(--signal-rgb), .35), transparent 55%); }
.warp.go { animation: warp .7s ease-out; }
@keyframes warp { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ----------------------------------------------------------------------------------------- orbital navigation core */
.orbital-nav { --R: 260px; --r: 96px; position: absolute; left: 50%; bottom: 14px; width: 0; height: 0; pointer-events: auto; }
.on-core {
  position: absolute; left: -46px; bottom: 0; width: 92px; height: 92px; border-radius: 50%;
  border: 0; padding: 0; background: radial-gradient(circle at 50% 40%, var(--hull-3), var(--hull) 70%);
  box-shadow: 0 0 0 1px var(--line-2), 0 0 40px -6px rgba(var(--signal-rgb), .55), inset 0 0 22px rgba(var(--signal-rgb), .25);
  cursor: pointer; color: var(--signal); z-index: 3; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s;
}
.on-core svg { width: 100%; height: 100%; }
.core-ring { fill: none; stroke: currentColor; stroke-width: 1.2; transform-origin: 60px 60px; }
.core-ring.r1 { stroke-dasharray: 4 7; opacity: .6; animation: spin 18s linear infinite; }
.core-ring.r2 { stroke-dasharray: 60 20 10 20; opacity: .8; animation: spin 9s linear infinite reverse; stroke: var(--quad); }
.core-ring.r3 { opacity: .4; }
.core-spokes path { stroke: currentColor; stroke-width: 1.4; opacity: .35; }
.core-heart { fill: rgba(var(--signal-rgb), .18); stroke: currentColor; stroke-width: 1.5; transform-origin: 60px 60px; animation: heart 2.4s ease-in-out infinite; }
.core-q circle { fill: currentColor; }
.core-q circle:not(:first-child) { fill: none; stroke: currentColor; stroke-width: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heart { 50% { transform: scale(1.18); fill: rgba(var(--signal-rgb), .35); } }
.on-core-label { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); white-space: nowrap; font: 500 9px/1 "JetBrains Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); transition: opacity .3s; }
.orbital-nav:hover .on-core, .orbital-nav.open .on-core { transform: scale(1.08); box-shadow: 0 0 0 1px var(--line-3), 0 0 60px -4px rgba(var(--signal-rgb), .8), inset 0 0 30px rgba(var(--signal-rgb), .35); }
.orbital-nav:hover .on-core-label, .orbital-nav.open .on-core-label { opacity: 0; }

.on-ring, .on-petals { list-style: none; margin: 0; padding: 0; }
.on-ring { position: absolute; left: 0; bottom: 46px; width: 0; height: 0; }
/* the invisible hover bridge: keeps the ring open while the pointer travels out to a sector */
.orbital-nav::before { content: ""; position: absolute; left: calc(-1 * var(--R) - 90px); bottom: 0; width: calc(2 * var(--R) + 180px); height: calc(var(--R) + 190px); border-radius: 50% 50% 0 0; pointer-events: none; }
.orbital-nav:hover::before, .orbital-nav.open::before { pointer-events: auto; }

.on-sector { position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform: rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))); opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.3, 1.45, .45, 1), opacity .3s; transition-delay: calc((6 - var(--i)) * 18ms); z-index: 2; }
.orbital-nav:hover .on-sector, .orbital-nav.open .on-sector, .orbital-nav:focus-within .on-sector {
  transform: rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a))); opacity: 1; pointer-events: auto; transition-delay: calc(var(--i) * 40ms); }
.orbital-nav.closing .on-sector { transform: rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))) !important; opacity: 0 !important; pointer-events: none !important; }

.on-node {
  position: absolute; left: -31px; top: -31px; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; color: var(--acc);
  background: radial-gradient(circle at 50% 35%, var(--hull-3), var(--hull) 75%);
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb, var(--signal-rgb)), .4), 0 0 24px -6px var(--acc);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}
.on-sector { --acc: var(--signal); }
.on-node .glyph { color: var(--acc); }
.on-label { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); text-shadow: 0 1px 8px var(--void); }
.on-sector:hover .on-node, .on-node:focus-visible { transform: scale(1.18); box-shadow: 0 0 0 1.5px var(--acc), 0 0 36px -2px var(--acc); }
.on-sector.is-active .on-node { background: radial-gradient(circle, rgba(var(--acc-rgb, var(--signal-rgb)), .3), var(--hull) 75%); }
.on-sector.is-active .on-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--acc); animation: spin 8s linear infinite; }

.on-petals { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.on-petals li { position: absolute; left: 0; top: 0;
  transform: rotate(var(--b)) translateX(30px) rotate(calc(-1 * var(--b))); opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .25s; }
.on-sector:hover .on-petals li, .on-sector:focus-within .on-petals li, .on-sector.petals-open .on-petals li {
  transform: rotate(var(--b)) translateX(var(--r)) rotate(calc(-1 * var(--b))); opacity: 1; pointer-events: auto; transition-delay: calc(var(--j) * 45ms + 60ms); }
.on-petal {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px;
  font: 600 11px/1 "Space Grotesk", sans-serif; letter-spacing: .04em; color: var(--ink);
  background: color-mix(in srgb, var(--hull-2) 88%, transparent); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb, var(--signal-rgb)), .45), 0 10px 30px -10px rgba(0, 0, 0, .8);
  transition: .25s;
}
.on-petal .glyph { color: var(--acc); }
.on-petal:hover { background: rgba(var(--acc-rgb, var(--signal-rgb)), .2); box-shadow: 0 0 0 1.5px var(--acc), 0 0 24px -4px var(--acc); transform: translate(-50%, -50%) scale(1.07); }
/* the hover bridge inside a sector: the pointer can travel from the node to its petals */
.on-sector::before { content: ""; position: absolute; left: calc(-1 * var(--r) - 70px); top: calc(-1 * var(--r) - 30px); width: calc(2 * var(--r) + 140px); height: calc(2 * var(--r) + 60px); border-radius: 50%; pointer-events: none; }
.on-sector:hover::before { pointer-events: auto; }

.glyph { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.glyph .fill { fill: currentColor; }

/* ------------------------------------------------------------------------------------------------- page building */
.page-head { margin: 6px 0 30px; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .28em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--signal); box-shadow: 0 0 12px var(--signal); transform: rotate(45deg); }
.page-title { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px;
  background: linear-gradient(100deg, var(--ink) 30%, var(--signal) 70%, var(--quad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-lead { max-width: 760px; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-2); line-height: 1.6; }
.section-title { font-size: 22px; letter-spacing: .02em; }
.back-link { display: inline-flex; gap: 6px; margin-top: 16px; font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .1em; color: var(--ink-3); transition: .2s; }
.back-link:hover { color: var(--signal); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.deck-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-12 { grid-column: 1 / -1; }

/* HoloPanel */
.holo {
  --acc: var(--signal); --acc-rgb: var(--signal-rgb);
  position: relative; min-width: 0; padding: 18px 20px 20px; border-radius: 16px;
  background: linear-gradient(160deg, var(--glass-hi), var(--glass) 40%);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: holo-in .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 75ms + 80ms);
  overflow: hidden; transition: border-color .35s, transform .35s, box-shadow .35s;
}
.holo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(var(--acc-rgb), .16) 50%, transparent 60%) no-repeat; background-size: 250% 100%;
  animation: sweep 1.6s ease-out both; animation-delay: calc(var(--i, 0) * 75ms + 300ms); }
.holo::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .55; }
.holo:hover { border-color: rgba(var(--acc-rgb), .35); box-shadow: var(--shadow), 0 0 0 1px rgba(var(--acc-rgb), .1), 0 0 50px -24px var(--acc); }
@keyframes holo-in { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.holo-c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--acc); opacity: .75; pointer-events: none; }
.holo-c.tl { top: 7px; left: 7px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 6px; }
.holo-c.tr { top: 7px; right: 7px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 6px; }
.holo-c.bl { bottom: 7px; left: 7px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 6px; }
.holo-c.br { bottom: 7px; right: 7px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 6px; }
.holo-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.holo-code { font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .22em; color: var(--acc); text-transform: uppercase; padding: 4px 7px; border: 1px solid rgba(var(--acc-rgb), .35); border-radius: 5px; }
.holo-t { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); flex: 1; }
.holo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--acc, var(--signal)); }
.holo-link:hover { text-shadow: 0 0 12px var(--acc, var(--signal)); }

/* ---------------------------------------------------------------------------------------------------- the bridge */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin: 10px 0 38px; animation: rise 1s both; }
.hero-mark { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.hero-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.hero-orbit.o1 { inset: -10px; border-style: dashed; animation: spin 40s linear infinite; }
.hero-orbit.o2 { inset: 18px; border-color: rgba(var(--quad-rgb), .35); border-top-color: var(--quad); animation: spin 7s linear infinite; }
.hero-orbit.o3 { inset: -34px; border-color: transparent; border-left-color: rgba(var(--signal-rgb), .5); animation: spin 13s linear infinite reverse; }
.hero-title { font-size: clamp(36px, 5.4vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.035em; margin-bottom: 18px; }
.grad { background: linear-gradient(100deg, var(--signal), var(--quad) 60%, var(--nova)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: grad 8s ease-in-out infinite alternate; }
@keyframes grad { to { background-position: 100% 0; } }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: .0; }
.glitch::before { color: var(--signal); animation: glitch 7s infinite steps(1); }
.glitch::after { color: var(--nova); animation: glitch 7s infinite steps(1) reverse; }
@keyframes glitch { 0%, 92%, 100% { opacity: 0; transform: none; clip-path: none; } 93% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); } 95% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); } 97% { opacity: .5; transform: translate(-1px, 0); clip-path: inset(30% 0 40% 0); } }
.bitstream { margin-top: 20px; font-size: 13px; letter-spacing: .18em; color: var(--ink-3); white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 70%, transparent); min-height: 1.5em; }
.bitstream b { color: var(--signal); font-weight: 600; }
.bitstream em { font-style: normal; color: var(--quad); }

/* The logo */
.dibit-mark { overflow: visible; }
.dm-halo { fill: rgba(var(--signal-rgb), .06); }
.dm-ring { fill: none; stroke: var(--signal); stroke-opacity: .5; stroke-width: 1.4; }
.dm-sweep { transform-origin: 32px 32px; }
.dm-sweep path { fill: none; stroke: var(--quad); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(var(--quad-rgb), .8)); }
.dm-axis { stroke: var(--signal); stroke-opacity: .2; stroke-width: .8; }
.dm-pt { fill: transparent; stroke: var(--signal); stroke-width: 1.4; transition: .2s; }
.dm-p0 { fill: var(--signal); filter: drop-shadow(0 0 4px var(--signal)); }
.dibit-mark.is-live .dm-sweep { animation: spin 4s linear infinite; }
.dibit-mark.is-live .dm-pt { animation: dm-hop 4s steps(1) infinite; fill: transparent; filter: none; }
.dibit-mark.is-live .dm-p1 { animation-delay: -3s; } .dibit-mark.is-live .dm-p2 { animation-delay: -2s; } .dibit-mark.is-live .dm-p3 { animation-delay: -1s; }
@keyframes dm-hop { 0% { fill: var(--signal); filter: drop-shadow(0 0 4px var(--signal)); } 25%, 100% { fill: transparent; filter: none; } }

/* Readouts */
.readout-big { font-size: clamp(22px, 2.4vw, 30px); color: var(--acc, var(--signal)); letter-spacing: .02em; margin-bottom: 12px; word-break: break-all; text-shadow: 0 0 22px rgba(var(--acc-rgb, var(--signal-rgb)), .45); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; font-size: 13.5px; }
.kv dt { font: 500 10px/1.9 "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.kv-wide { grid-template-columns: 180px 1fr; }
.odo { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-weight: 600; letter-spacing: .04em; margin: 4px 0 18px; color: var(--ink); text-shadow: 0 0 28px rgba(var(--acc-rgb), .5); }
.odo .d { display: inline-block; animation: tick .5s cubic-bezier(.2, 1.4, .4, 1); color: var(--acc); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; }
.stat-row > div { display: grid; }
.stat-row b { font-size: 20px; font-weight: 600; }
.stat-row span { font: 500 9.5px/1.6 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* Radar */
.radar-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
.radar, .radar-mini { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 15%, var(--line) 15% calc(15% + 1px)), conic-gradient(from 0deg, transparent, transparent);
  border: 1px solid rgba(var(--acc-rgb, var(--signal-rgb)), .35); }
.radar::before, .radar-mini::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.radar::after, .radar-mini::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--acc-rgb, var(--signal-rgb)), .55), transparent 22%); animation: spin 3.2s linear infinite; }
.radar-mini .sweep { background: conic-gradient(from 0deg, rgba(var(--signal-rgb), .4), transparent 22%); }
.blip { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--nova); box-shadow: 0 0 10px var(--nova); animation: blip 3.2s ease-out infinite; animation-delay: calc(var(--x) * -0.03s); }
@keyframes blip { 0%, 100% { opacity: .2; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.4); } }
.radar-num b { font-size: 46px; line-height: 1; display: block; text-shadow: 0 0 24px rgba(255, 77, 109, .5); }
.radar-num span { color: var(--ink-2); font-size: 13px; }

/* Atmosphere */
.atmo-head { display: flex; align-items: center; gap: 28px; margin-bottom: 14px; flex-wrap: wrap; }
.atmo-temp { font-size: 54px; line-height: 1; font-weight: 600; color: var(--ink); }
.atmo-temp small { font-size: .4em; color: var(--acc); margin-left: 4px; }
.atmo-meta { display: grid; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.wind-arrow { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; transform: rotate(var(--d)); background: var(--acc, var(--signal)); clip-path: polygon(50% 0, 90% 100%, 50% 75%, 10% 100%); }
.atmo-matrix { width: 100%; height: 150px; display: block; }
.atmo-matrix.big { height: 300px; }
.atmo-instruments { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ai { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); display: grid; gap: 6px; }
.ai b { font-size: 19px; font-weight: 600; }

/* Arcade teaser */
.arcade-teaser { position: relative; display: grid; gap: 4px; min-height: 180px; padding: 12px; border-radius: 12px; overflow: hidden; background: #01030a; border: 1px solid rgba(var(--quad-rgb), .35); }
.arcade-teaser canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.arcade-teaser > span { position: relative; }
.at-title { font: 700 20px/1 "JetBrains Mono", monospace; letter-spacing: .12em; color: #38e8ff; text-shadow: 0 0 12px #38e8ff; margin-top: auto; }
.at-lead { color: #a9bed6; font-size: 13px; max-width: 26ch; }
.at-insert { color: #ffb547; font-size: 12px; letter-spacing: .25em; }
.blink-text { animation: blink 1.2s steps(2) infinite; }

/* News */
.news-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.news-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .4s; animation: holo-in .8s both; animation-delay: calc(var(--i, 0) * 50ms); }
.news-card:hover { transform: translateY(-4px); border-color: rgba(255, 181, 71, .45); box-shadow: 0 24px 60px -30px rgba(255, 181, 71, .5); }
.news-card.lead { grid-column: span 2; grid-row: span 2; }
.news-card.lead .nc-img { aspect-ratio: 16 / 8; }
.news-card.lead b { font-size: 24px; }
.nc-img { position: relative; aspect-ratio: 16 / 9; background: var(--hull-2); overflow: hidden; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s; filter: saturate(.9) contrast(1.05); }
.news-card:hover .nc-img img { transform: scale(1.06); filter: saturate(1.15); }
.nc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2, 4, 10, .55)); pointer-events: none; }
.nc-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); background: repeating-linear-gradient(45deg, transparent 0 10px, var(--line) 10px 11px); }
.nc-lang { position: absolute; z-index: 1; top: 10px; right: 10px; font-size: 10px; letter-spacing: .15em; padding: 3px 7px; border-radius: 6px; background: rgba(2, 4, 10, .7); color: #ffb547; border: 1px solid rgba(255, 181, 71, .4); }
.nc-body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.nc-src { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--plasma); }
.nc-body b { font-size: 16px; line-height: 1.3; font-weight: 600; }
.nc-body p { color: var(--ink-2); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-read { font: 600 10.5px/1 "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--plasma); margin-top: 4px; }
.news-card.mini b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.reader { max-width: 820px; margin: 0 auto; animation: rise .8s both; }
.reader-title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 22px; }
.reader-hero { margin: 0 0 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.reader-hero img { width: 100%; display: block; }
.reader-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink-2); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose h1, .prose h2, .prose h3 { margin: 1.4em 0 .5em; line-height: 1.2; }
.prose h1 { font-size: 1.5em; } .prose h2 { font-size: 1.3em; } .prose h3 { font-size: 1.1em; }
.prose a { color: var(--signal); border-bottom: 1px solid rgba(var(--signal-rgb), .35); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 1.2em auto; }
.prose figure { margin: 1.4em 0; } .prose figcaption { font-size: .8em; color: var(--ink-3); margin-top: .5em; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--quad); color: var(--ink-2); background: var(--glass); border-radius: 0 10px 10px 0; }
.prose pre { background: var(--hull-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font-size: .85em; }
.prose code { font-family: "JetBrains Mono", monospace; font-size: .9em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; } .prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.holo .prose { font-size: 15px; }
.scanning { animation: blink 1s steps(2) infinite; }

/* Hangar */
.craft { position: relative; display: grid; gap: 8px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--glass-hi), var(--glass)); backdrop-filter: blur(14px); overflow: hidden;
  animation: holo-in .9s both; animation-delay: calc(var(--i) * 80ms); transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .45s; --acc: var(--signal); }
.craft:hover { transform: translateY(-6px) rotateX(3deg); border-color: rgba(var(--acc-rgb), .5); box-shadow: 0 30px 80px -40px var(--acc); }
.craft h2 { font-size: 24px; }
.craft p { color: var(--ink-2); margin: 0; }
.craft-meta { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; margin-top: 6px; }
.craft-hull { position: relative; height: 110px; margin: -6px -6px 6px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, rgba(var(--acc-rgb), .35), transparent 60%), repeating-linear-gradient(90deg, transparent 0 22px, var(--line) 22px 23px); }
.craft-ship { position: absolute; left: 50%; top: 40%; width: 64px; height: 24px; margin-left: -32px; background: var(--acc); clip-path: polygon(0 60%, 30% 20%, 50% 0, 70% 20%, 100% 60%, 70% 100%, 30% 100%); filter: drop-shadow(0 0 12px var(--acc)); animation: hover-ship 4s ease-in-out infinite; }
.craft-beam { position: absolute; left: 50%; top: 62%; width: 70px; height: 60px; margin-left: -35px; background: linear-gradient(180deg, rgba(var(--acc-rgb), .45), transparent); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); opacity: 0; transition: .4s; }
.craft:hover .craft-beam { opacity: 1; }
@keyframes hover-ship { 50% { transform: translateY(-8px); } }
.hangar-mini, .kev-mini { display: grid; gap: 6px; }
.hm-row, .kev-row, .list-row { --acc: var(--signal); display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: .25s; font-size: 14px; }
.hm-row span:last-child, .kev-row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kev-row { grid-template-columns: 150px 1fr auto; }
.hm-row:hover, .kev-row:hover, .list-row:hover, .list-row.on { border-color: var(--line-2); background: var(--glass-hi); }
.hm-dot { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.payload { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); margin-bottom: 12px; }
.pl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pl-sha { font-size: 10.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.beam-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 11px 20px; border-radius: 999px; overflow: hidden;
  font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ion);
  border: 1px solid rgba(61, 255, 168, .5); background: rgba(61, 255, 168, .06); transition: .3s; }
.beam-fill { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(61, 255, 168, .35), transparent); transform: translateX(-100%); }
.beam-btn:hover { box-shadow: 0 0 30px -6px var(--ion); color: var(--ink); }
.beam-btn:hover .beam-fill { animation: beam 1s ease-in-out infinite; }
.beam-btn > *:not(.beam-fill) { position: relative; }
.beam-count { color: var(--ink-3); font-size: 10px; }
@keyframes beam { to { transform: translateX(100%); } }

/* Dibit page */
.logo-explain { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.logo-explain p { color: var(--ink-2); }
.constellation { width: 100%; height: 300px; display: block; }
.gray-code { display: flex; justify-content: space-around; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.gray-code b { color: var(--signal); margin-right: 6px; }
.states-title { animation: rise .8s both; animation-delay: .2s; margin-top: 10px; }
.state-card .holo-b { display: grid; gap: 12px; }
.state-card .glyph { color: var(--acc); }
.state-card p { color: var(--ink-2); margin: 0; font-size: 14px; }
.state-bits { font-size: 44px; font-weight: 700; color: var(--acc); line-height: 1; text-shadow: 0 0 24px rgba(var(--acc-rgb), .6); }
.lab { display: grid; gap: 16px; }
.lab-input { width: 100%; padding: 16px 18px; font-size: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--hull-2); color: var(--ink); outline: none; transition: .3s; }
.lab-input:focus { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(var(--signal-rgb), .12), 0 0 40px -10px var(--signal); }
.lab-out { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.lab-constellation { width: 100%; height: 300px; }
.lab-right { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.lab-bits { font-size: 13px; line-height: 1.8; color: var(--ink-3); word-break: break-all; max-height: 120px; overflow: hidden; }
.lab-bits .s0 { color: var(--signal); } .lab-bits .s1 { color: var(--quad); } .lab-bits .s2 { color: var(--nova); } .lab-bits .s3 { color: var(--ion); }
.lab-bits .cur { background: rgba(var(--signal-rgb), .2); border-radius: 3px; }
.lab-wave { width: 100%; height: 170px; }
.mission-text { font-size: clamp(18px, 2vw, 24px); line-height: 1.5; max-width: 900px; }
.mission-specs { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 12px; color: var(--ink-2); }
.mission-specs b { color: var(--ion); margin-right: 8px; letter-spacing: .15em; }

/* Threats */
.map-panel { padding-bottom: 14px; }
.threat-map-wrap { position: relative; }
.threat-map { width: 100%; height: min(58vh, 560px); display: block; }
.map-stats { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 18px; font-size: 12px; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--hull) 80%, transparent); border: 1px solid var(--line); }
.map-stats b { font-size: 16px; margin-right: 4px; }
.legend { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-3); }
.lg { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.lg.own { background: var(--nova); box-shadow: 0 0 8px var(--nova); } .lg.c2 { background: var(--quad); box-shadow: 0 0 8px var(--quad); }
.lg.wlogin { background: var(--plasma); box-shadow: 0 0 8px var(--plasma); opacity: .8; } .lg.wweb { background: var(--ion); box-shadow: 0 0 8px var(--ion); opacity: .8; }
.legend { flex-wrap: wrap; row-gap: 4px; }

/* The world panels: a big total, then rows of label · bar · number */
.world-total { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.world-total .readout-big { margin: 0; }
.holo-sub { font: 500 10px/1.2 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 12.5px; }
.bar-k { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.bar-k .lg { margin-left: 0; flex: none; }
.bar-k .port { color: var(--ink); min-width: 3.2em; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--acc-rgb), .55), var(--acc)); box-shadow: 0 0 10px rgba(var(--acc-rgb), .5); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.bar.login i { background: linear-gradient(90deg, rgba(255, 181, 71, .5), var(--plasma)); box-shadow: 0 0 10px rgba(255, 181, 71, .45); }
.bar-v { font-size: 12px; color: var(--ink); text-align: right; min-width: 4.5em; }
.feed-row.worst { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.feed-row .num { text-align: right; font-size: 11.5px; }
.feed-list { display: grid; gap: 4px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.feed-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.tag { font: 600 9.5px/1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; color: var(--plasma); border: 1px solid currentColor; white-space: nowrap; justify-self: end; }
.tag.probe, .tag.scan { color: var(--plasma); } .tag.signin, .tag.deck { color: var(--quad); } .tag.geo { color: var(--signal); } .tag.blocked, .tag.autoblock { color: var(--nova); } .tag.c2 { color: var(--quad); } .tag.ransom { color: var(--nova); }
.kev-card { display: grid; gap: 3px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; transition: .25s; }
.kev-card:hover { border-color: rgba(255, 181, 71, .45); background: var(--glass-hi); }

/* Telemetry */
.globe-wrap { display: grid; place-items: center; }
.globe { width: 100%; max-width: 280px; aspect-ratio: 1; }

/* Arcade */
.arcade-cab { animation: holo-in .9s both; animation-delay: .1s; }
.crt { position: relative; border-radius: 22px; padding: 14px; background: linear-gradient(160deg, #10182a, #050810); border: 1px solid rgba(var(--quad-rgb), .4); box-shadow: 0 40px 100px -40px rgba(var(--quad-rgb), .6), inset 0 0 0 6px #03050a; }
.game { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: #000; outline: none; image-rendering: pixelated; touch-action: none; }
.crt-glass { position: absolute; inset: 14px; border-radius: 12px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .55)); box-shadow: inset 0 0 60px rgba(56, 232, 255, .12); }
.touch-pad { display: none; gap: 10px; margin-top: 12px; }
/* Keyboard help only where there is a keyboard. */
@media (hover: none) and (pointer: coarse) { .arcade-keys { display: none; } }
.touch-pad button { flex: 1; padding: 18px 0; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); color: var(--signal); font: 700 18px/1 "JetBrains Mono", monospace; touch-action: manipulation; }
.scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.scores li { display: grid; grid-template-columns: 28px 1fr auto 40px; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 13px; counter-increment: s; }
.scores li::before { content: counter(s, decimal-leading-zero); color: var(--ink-4); }
.scores li:nth-child(1) { color: var(--plasma); background: rgba(255, 181, 71, .07); }
.scores li b { font-weight: 700; } .scores li i { font-style: normal; color: var(--ink-3); font-size: 11px; }
.phase-key { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; text-align: center; font-size: 12px; font-weight: 700; }
.phase-key span { padding: 8px 0; border-radius: 8px; border: 1px solid currentColor; }
.ph0 { color: #38e8ff; } .ph1 { color: #a07cff; } .ph2 { color: #ff4d6d; } .ph3 { color: #3dffa8; }

/* ---------------------------------------------------------------------------------------------- command deck */
.cmd-head { margin-bottom: 22px; animation: rise .7s both; }
.cmd-rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rail-b { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font: 600 12px/1 "Space Grotesk", sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.rail-b:hover { color: var(--ink); border-color: var(--line-2); }
.rail-b.on { color: var(--ion); border-color: rgba(61, 255, 168, .5); background: rgba(61, 255, 168, .08); box-shadow: 0 0 24px -10px var(--ion); }
.rail-out { margin: 0 0 0 auto; }
.bars { display: flex; align-items: end; gap: 4px; height: 180px; margin-top: 18px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; }
.bar i { position: absolute; bottom: 16px; left: 0; right: 0; border-radius: 4px 4px 1px 1px; max-height: calc(100% - 16px); }
.b-all { background: rgba(var(--signal-rgb), .2); } .b-hum { background: linear-gradient(0deg, var(--ion), var(--signal)); box-shadow: 0 0 10px -2px var(--ion); }
.bar span { font-size: 9px; color: var(--ink-4); position: absolute; bottom: 0; }
.country-row { display: grid; grid-template-columns: 26px 40px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.country-row b { text-align: right; }
.table-wrap { overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid-table th { text-align: left; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.grid-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid-table tr:hover td { background: var(--glass-hi); }
.grid-table tr.is-bot td { opacity: .5; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--hull-2); color: var(--ink); font: inherit; outline: none; transition: .25s; }
.field textarea { font-family: "JetBrains Mono", monospace; font-size: 13px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(var(--signal-rgb), .12); }
.field.grow { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 12px; }
.action-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); font: 600 12px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.act:hover { border-color: var(--line-3); box-shadow: 0 0 22px -8px var(--signal); }
.act.ion { color: var(--ion); border-color: rgba(61, 255, 168, .45); } .act.ion:hover { box-shadow: 0 0 22px -6px var(--ion); }
.act.nova { color: var(--nova); border-color: rgba(255, 77, 109, .45); } .act.nova:hover { box-shadow: 0 0 22px -6px var(--nova); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--hull-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: .25s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); transition: .3s cubic-bezier(.3, 1.6, .5, 1); }
.toggle input:checked { background: rgba(61, 255, 168, .2); border-color: var(--ion); }
.toggle input:checked::after { left: 19px; background: var(--ion); box-shadow: 0 0 10px var(--ion); }
.alert { padding: 10px 14px; border-radius: 10px; border: 1px solid currentColor; background: var(--glass); margin: 10px 0; font-size: 13.5px; }
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.drop { position: relative; display: grid; place-items: center; min-width: 220px; min-height: 64px; padding: 10px; border: 1.5px dashed var(--line-3); border-radius: 12px; color: var(--ink-2); font-size: 13px; cursor: pointer; transition: .25s; }
.drop:hover { background: rgba(var(--signal-rgb), .06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.has-file span { color: var(--ion); }
.upload-bar { flex-basis: 100%; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.upload-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ion), var(--signal)); transition: width .2s; }

/* Airlock (sign-in) */
.bare-main { display: grid; place-items: center; min-height: 100vh; overflow-y: auto; padding: 30px 16px; }
.airlock { position: relative; width: min(420px, 100%); display: grid; justify-items: center; gap: 12px; padding: 40px 34px; border-radius: 28px; text-align: center;
  background: linear-gradient(160deg, var(--glass-hi), var(--glass)); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: var(--shadow); animation: holo-in 1s both; }
.airlock-ring { position: absolute; inset: -28px; border-radius: 40px; border: 1px dashed var(--line-2); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { inset: -18px; opacity: .5; } }
.airlock-title { font-size: 26px; margin-bottom: 6px; }
.airlock-form { width: 100%; display: grid; gap: 14px; margin-top: 8px; text-align: left; }
.engage { position: relative; margin-top: 8px; padding: 15px; border-radius: 999px; border: 1px solid var(--signal); background: rgba(var(--signal-rgb), .1); color: var(--signal);
  font: 700 13px/1 "JetBrains Mono", monospace; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; overflow: hidden; transition: .3s; }
.engage:hover { box-shadow: 0 0 40px -6px var(--signal); color: var(--ink); background: rgba(var(--signal-rgb), .22); }
.engage-ring { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent, rgba(var(--signal-rgb), .35), transparent 30%); animation: spin 3s linear infinite; opacity: 0; transition: .3s; }
.engage:hover .engage-ring { opacity: 1; }
.engage span:last-child { position: relative; }

/* Footer */
.cockpit-foot { max-width: 1320px; margin: 60px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 11px; color: var(--ink-4); }
.cockpit-foot a { color: var(--ink-3); } .cockpit-foot a:hover { color: var(--signal); }

#blazor-error-ui { display: none; position: fixed; z-index: 100; left: 50%; bottom: 130px; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--hull-2); border: 1px solid var(--nova); color: var(--ink); gap: 12px; }
#blazor-error-ui .dismiss { cursor: pointer; } #blazor-error-ui .reload { color: var(--signal); }

/* Accent tokens: one class sets --acc for any component */
.acc-signal { --acc: var(--signal); --acc-rgb: var(--signal-rgb); }
.acc-quad { --acc: var(--quad); --acc-rgb: var(--quad-rgb); }
.acc-ion { --acc: var(--ion); --acc-rgb: 61, 255, 168; }
.acc-plasma { --acc: var(--plasma); --acc-rgb: 255, 181, 71; }
.acc-nova { --acc: var(--nova); --acc-rgb: 255, 77, 109; }
[data-theme="lunar"] .acc-ion { --acc-rgb: 0, 135, 90; }
[data-theme="lunar"] .acc-plasma { --acc-rgb: 181, 101, 0; }
[data-theme="lunar"] .acc-nova { --acc-rgb: 208, 29, 72; }


/* ------------------------------------------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .cockpit-body { grid-template-columns: minmax(0, 1fr); }
  .viewport { grid-column: 1; }
  .console { display: none; }
}
@media (max-width: 1000px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 6; }
  .news-card.lead { grid-column: span 1; grid-row: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hero > * { min-width: 0; max-width: 100%; }
  .hero-mark { width: 180px; height: 180px; }
  .hero-mark .dibit-mark { width: 150px; height: 150px; }
  .hud-center { gap: 18px; }
  .hide-sm { display: none !important; }
  .lab-out { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .deck-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .deck-grid > * { grid-column: 1 / -1 !important; }
  .hud-top { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; gap: 10px; }
  .hud-center { display: none; }
  .wm-sub { display: none; }
  .viewport-scroll { padding: 22px 16px 170px; }
  .canopy { display: none; }
  .orbital-nav { --R: 128px; --r: 70px; bottom: 10px; }
  /* Phones: no arc (11 sectors cannot fit one) - a sheet of big tiles above the core; one tap jumps. */
  .orbital-nav::before, .on-sector::before, .on-petals { display: none; }
  .orbital-nav .on-ring { position: fixed; left: 12px; right: 12px; bottom: 96px; width: auto; height: auto;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 18px;
    background: color-mix(in srgb, var(--hull) 94%, transparent); backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -12px rgba(0, 0, 0, .85);
    opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none; transition: opacity .2s, transform .25s; }
  .orbital-nav.open .on-ring { opacity: 1; transform: none; pointer-events: auto; }
  .orbital-nav .on-sector, .orbital-nav:hover .on-sector, .orbital-nav.open .on-sector, .orbital-nav:focus-within .on-sector {
    position: static; width: auto; height: auto; transform: none !important; opacity: 1; pointer-events: auto; transition: none; }
  .orbital-nav .on-node { position: relative; left: auto; top: auto; width: 100%; height: 72px; border-radius: 14px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 7px; transform: none !important; }
  .orbital-nav .on-label { position: static; transform: none; font-size: 9.5px; letter-spacing: .1em; }
  .on-sector.is-active .on-node::after { inset: -4px; border-radius: 17px; animation: none; }
  .on-node { left: -24px; top: -24px; width: 48px; height: 48px; }
  .on-label { top: 52px; font-size: 8.5px; letter-spacing: .12em; }
  .on-core { left: -38px; width: 76px; height: 76px; }
  .on-petal { padding: 6px 10px 6px 8px; font-size: 10.5px; }
  .kv-wide { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .radar-wrap { grid-template-columns: 110px 1fr; }
  .logo-explain { grid-template-columns: 1fr; justify-items: center; }
  .touch-pad { display: flex; }
  .kev-row { grid-template-columns: 1fr; gap: 2px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) auto; gap: 8px; }
  .feed-row.worst .targets { display: none; }
  .feed-row.worst { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Downloads on the command deck's overview */
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.dl-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.dl-countries { margin-top: 14px; }

/* Critical cyber news on /threats */
.crit-list { display: grid; margin-top: 8px; }
.crit-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: baseline; padding: 8px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.crit-row b { font-weight: 500; font-size: 14px; }
.crit-row:hover b { color: var(--nova); }
.crit-row .mono { font-size: 11px; }
.crit-more { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nova); }
@media (max-width: 720px) { .crit-row { grid-template-columns: 1fr; gap: 2px; } }

/* apt install box on a hangar project */
.apt-cmd { margin: 10px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .25);
  font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre; user-select: all; }
[data-theme="lunar"] .apt-cmd { background: rgba(0, 0, 0, .04); }
.apt-fpr { font-size: 11px; overflow-wrap: anywhere; }

/* Messages: the form on /hail and the list on the command deck */
.hail-form { display: grid; gap: 14px; }
.hail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hail-count { justify-self: end; font-size: 11px; margin-top: -8px; }
@media (max-width: 720px) { .hail-row { grid-template-columns: 1fr; } }
.msg-list { display: grid; gap: 12px; }
.msg { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.msg.unread { border-color: rgba(var(--signal-rgb), .55); box-shadow: inset 3px 0 0 var(--signal); }
.msg-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.msg-head .mono { font-size: 12px; }
.msg-body { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ISS live on the bridge */
.iss-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.iss-map { width: 100%; aspect-ratio: 2.5 / 1; display: block; }
.iss-side { display: grid; gap: 12px; min-width: 0; }
.iss-h { margin: 6px 0 0; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.iss-passes { display: grid; }
.iss-pass { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.iss-pass .dim { grid-column: 1; font-size: 11px; }
.iss-pass .iss-tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.iss-pass.seen > span:first-child { color: var(--signal); }
@media (max-width: 900px) { .iss-wrap { grid-template-columns: 1fr; } }

/* The honeypot on /threats */
.honey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.honey-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.honey-row code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.honey-note { margin-top: 14px; font-size: 12px; }
@media (max-width: 900px) { .honey-grid { grid-template-columns: 1fr; } }

/* Space: weather, aurora, launches */
.hud-launch { text-decoration: none; }
.hud-launch .hud-k { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swx-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.swx-kp { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; border: 2px solid var(--ion); box-shadow: 0 0 34px -10px var(--ion); }
.swx-kp b { font-size: 38px; font-weight: 600; line-height: 1; }
.swx-kp span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.swx-kp.active { border-color: var(--plasma); box-shadow: 0 0 34px -8px var(--plasma); }
.swx-kp.storm { border-color: var(--nova); box-shadow: 0 0 40px -6px var(--nova); }
.swx-scales { display: flex; gap: 12px; flex-wrap: wrap; }
.swx-scale { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 118px; font-size: 12px; }
.swx-scale b { font-size: 18px; }
.swx-scale.on { border-color: var(--nova); } .swx-scale.on b { color: var(--nova); }
.swx-kv { margin-top: 16px; }
.kp-bars { height: 120px; gap: 2px; }
.kp-bars .bar .b-all { background: var(--ion); opacity: .75; }
.kp-bars .bar.active .b-all { background: var(--plasma); }
.kp-bars .bar.storm .b-all { background: var(--nova); }
.kp-bars .bar.pred .b-all { opacity: .35; }
.aur-row { display: grid; grid-template-columns: 1fr auto 4.5em; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.aur-row b { text-align: right; font-weight: 600; color: var(--ink-3); }
.aur-row.yes b { color: var(--ion); } .aur-row.maybe b { color: var(--plasma); }
.aur-row.you { border-bottom-color: var(--line-2); }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.launch { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.launch-img { position: relative; aspect-ratio: 16 / 8; background: var(--hull-2); }
.launch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.launch-status { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .12em; background: rgba(0,0,0,.6); color: #fff; }
.launch-status.go { color: var(--ion); } .launch-status.tbc { color: var(--plasma); } .launch-status.hold { color: var(--nova); }
.launch-body { display: grid; gap: 3px; padding: 12px 14px; font-size: 13px; }
.launch-t { font-size: 18px; }
.small { font-size: 12px; }

/* Look up */
.lookup-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.lookup-bar input { font-family: "JetBrains Mono", monospace; }
.verdict { display: grid; gap: 6px; padding: 18px; border-radius: 12px; border: 1px solid var(--ion); }
.verdict b { font-size: 28px; font-weight: 600; color: var(--ion); letter-spacing: .04em; }
.verdict.suspicious { border-color: var(--plasma); } .verdict.suspicious b { color: var(--plasma); }
.verdict.hostile { border-color: var(--nova); box-shadow: 0 0 40px -14px var(--nova); } .verdict.hostile b { color: var(--nova); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.check { display: grid; grid-template-columns: 12px 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; align-items: center; }
.check .dim { grid-column: 2; font-size: 12px; }
.check-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ion); grid-row: 1 / span 2; }
.check.hit { border-color: rgba(255, 77, 109, .5); } .check.hit .check-dot { background: var(--nova); box-shadow: 0 0 10px var(--nova); }

/* The Christmas season (cockpit.js christmas(): 1 December - 13 January, or ?xmas=1) */
.xmas-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.hud-xmas, .xmas-lights { display: none !important; }
html.xmas .hud-xmas, html.xmas .xmas-lights { display: flex !important; }
.xmas-lights { position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; }
.xmas-lights i { width: 7px; height: 10px; border-radius: 50% 50% 45% 45%; background: #ff3b4e; box-shadow: 0 0 10px #ff3b4e;
  animation: xmas-twinkle 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
.xmas-lights i:nth-child(4n+2) { background: #3dff8f; box-shadow: 0 0 10px #3dff8f; }
.xmas-lights i:nth-child(4n+3) { background: #ffd24a; box-shadow: 0 0 10px #ffd24a; }
.xmas-lights i:nth-child(4n) { background: #5ab8ff; box-shadow: 0 0 10px #5ab8ff; }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
html.christmas .xg-ny, html.newyear .xg-jul { display: none; }
.hud-xmas .hud-v { color: #ff5a6a; font-weight: 600; text-shadow: 0 0 12px rgba(255, 90, 106, .6); }
@media (prefers-reduced-motion: reduce) { .xmas-lights i { animation: none; } }

/* Touch screens: no hover. A tap leaves :hover and :focus stuck on the core, which kept the sectors out (and the
   invisible hover bridges catching taps over the page) after the ring was closed. Only .open opens it here. */
@media (hover: none) {
  .orbital-nav:hover:not(.open) .on-sector, .orbital-nav:focus-within:not(.open) .on-sector {
    transform: rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))); opacity: 0; pointer-events: none; }
  .orbital-nav:hover:not(.open)::before, .on-sector:hover::before { pointer-events: none; }
  .on-sector:hover:not(.petals-open) .on-petals li, .on-sector:focus-within:not(.petals-open) .on-petals li {
    transform: rotate(var(--b)) translateX(30px) rotate(calc(-1 * var(--b))); opacity: 0; pointer-events: none; }
}
.iss-alert { margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--ion); color: var(--ion); font-size: 12px; letter-spacing: .06em; animation: pulse-border 1.6s ease-in-out infinite; }
.iss-alert[hidden] { display: none; }
@keyframes pulse-border { 50% { box-shadow: 0 0 22px -6px var(--ion); } }

/* Lightning over the Nordics (Telemetry) */
.lightning-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 26px; align-items: start; }
.lightning-map { width: 100%; aspect-ratio: 0.78; display: block; }
.lightning-wrap .stat-row { margin: 14px 0; }
.lightning-wrap .alert[hidden] { display: none; }
@media (max-width: 900px) { .lightning-wrap { grid-template-columns: 1fr; } }

/* Status */
.status-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.status-hero b { font-size: 24px; font-weight: 600; color: var(--ion); }
.status-hero.bad b { color: var(--nova); }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 16px var(--ion); animation: heart 2.4s ease-in-out infinite; }
.status-hero.bad .status-dot { background: var(--nova); box-shadow: 0 0 16px var(--nova); }
.status-bars { height: 90px; gap: 2px; }
.status-bars .bar .b-all { background: var(--ion); opacity: .7; }
.status-bars .bar.down .b-all { background: var(--nova); opacity: 1; }

/* Mission patch (Telemetry) */
.patch-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px; align-items: center; }
.patch { width: 320px; height: 320px; display: block; border-radius: 50%; }
.patch-wrap .act { margin-top: 14px; }
@media (max-width: 700px) { .patch-wrap { grid-template-columns: 1fr; justify-items: center; } .patch { width: min(300px, 80vw); height: auto; aspect-ratio: 1; } }

/* Constellation lab: transmit */
.lab-row { display: flex; gap: 10px; align-items: stretch; }
.lab-row .lab-input { flex: 1; min-width: 0; }
.lab-tx.on { color: var(--signal); border-color: var(--signal); box-shadow: 0 0 22px -6px var(--signal); }

/* The reply from space (constellation lab easter egg) */
.seti { display: block; margin-bottom: 8px; color: var(--ion); font-weight: 600; letter-spacing: .12em; text-shadow: 0 0 12px rgba(61, 255, 168, .5); }
.seti-cursor { font-style: normal; animation: blink-cursor 1s steps(1) infinite; }
@keyframes blink-cursor { 50% { opacity: 0; } }
