/* Design J, the chosen one (owner 2026-11-25): most of H in the colours of F. F's squadron ops terminal (phosphor green on
   black glass, HUD corner brackets, heading tape, terminal headings "> 01 …") with E's classification banners top and bottom,
   and inside it H's carrier deck (every parking spot a slot, a jet on it a pilot flying now), H's flight ops board, H's
   Hull 02 teaser. Light (prefers-color-scheme: light): F's tractor-feed "greenbar" printout, the deck as a printed plot.
   Phone first (360 px, 16 px gutters), wider layouts from min-width queries. Fonts from Google Fonts with system
   fallbacks; no images, no inline style (CSP). */
:root {
  color-scheme: dark light;
  --gutter: 16px;
  --bg: #030604; --grid: rgba(70, 224, 106, .09); --glass: #06100a; --glow: rgba(70, 224, 106, .07);
  --text: #c9f2d1; --muted: #7fa889; --sym: #46e06a; --sym-dim: rgba(70, 224, 106, .35); --rule: rgba(70, 224, 106, .22);
  --good: #46e06a; --bad: #ff6b5e; --warn: #ffb547;
  --cls-bg: #007a33; --cls-text: #ffffff;
  --shadow: 0 0 6px rgba(70, 224, 106, .45);
  --paper: none; --holes: transparent;
  /* the deck: dark green glass with phosphor markings */
  --deck: #0b1d10; --deck-dot: rgba(70, 224, 106, .06); --mark: rgba(70, 224, 106, .5); --spot: #46e06a; --jet: #d8ffe0;
  --island: #10291a; --island-line: rgba(70, 224, 106, .45); --island-text: #d8f7de; --island-muted: #8fbf99; --window: #46e06a;
  --wake: rgba(70, 224, 106, .14); --deck-shadow: rgba(0, 0, 0, .6);
  --blurple: #5865F2; --blurple-hover: #4752C4; --kofi: #FF5E5B; --kofi-hover: #ff7a77;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --sans: "Saira Semi Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #d9dccf; --grid: rgba(29, 106, 52, .13); --glass: #fbfcf6; --glow: transparent;
    --text: #18221a; --muted: #4a584d; --sym: #1d6a34; --sym-dim: rgba(29, 106, 52, .4); --rule: rgba(29, 106, 52, .3);
    --good: #1d6a34; --bad: #b3261e; --warn: #8a5300;
    --shadow: none;
    /* greenbar paper: pale green and white bands, sprocket holes down both edges */
    --paper: repeating-linear-gradient(180deg, #e2f0dc 0 48px, transparent 48px 96px);
    --holes: #d9dccf;
    /* the deck as a printed plot: pale green with dark green markings */
    --deck: #dbe9d4; --deck-dot: rgba(29, 106, 52, .08); --mark: rgba(29, 106, 52, .6); --spot: #1d6a34; --jet: #1d6a34;
    --island: #bcd3b5; --island-line: rgba(29, 106, 52, .55); --island-text: #10200f; --island-muted: #3a4d3c; --window: #1d6a34;
    --wake: rgba(29, 106, 52, .14); --deck-shadow: rgba(0, 0, 0, .18);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); background-color: var(--bg); font: 400 16px/1.5 var(--sans); overflow-wrap: break-word;
  /* the status page's squared grid (48 px, 1 px lines), in J's green; pure CSS, behind the HUD, no layout */
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
[hidden] { display: none; }   /* .support and .goal set no display of their own, so this holds */
b { font-weight: 700; }

/* E's classification banners, full width at the very top and bottom */
.cls { margin: 0; padding: 3px var(--gutter); background: var(--cls-bg); color: var(--cls-text); text-align: center;
  font: 700 .72rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cls.bottom { margin-top: 24px; }
.foot { margin: 0; padding: 14px var(--gutter) 28px; text-align: center; font-size: .85rem; color: var(--muted); }
.foot p { margin: 0; }

/* the HUD: black glass, brackets in the corners (phone: 16 px gutters outside, 18 px inside the brackets) */
.hud { position: relative; max-width: 900px; margin: 16px max(var(--gutter), calc((100% - 900px) / 2)) 0; padding: 10px 18px 18px;
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 30%, var(--glow), transparent 70%), var(--paper), var(--glass);
  box-shadow: inset 0 0 0 1px var(--rule), 0 18px 44px rgba(0, 0, 0, .4); }
.hud::before { content: ""; position: absolute; inset: 8px; pointer-events: none;
  background:
    linear-gradient(var(--sym), var(--sym)) top left / 28px 2px no-repeat,
    linear-gradient(var(--sym), var(--sym)) top left / 2px 28px no-repeat,
    linear-gradient(var(--sym), var(--sym)) top right / 28px 2px no-repeat,
    linear-gradient(var(--sym), var(--sym)) top right / 2px 28px no-repeat,
    linear-gradient(var(--sym), var(--sym)) bottom left / 28px 2px no-repeat,
    linear-gradient(var(--sym), var(--sym)) bottom left / 2px 28px no-repeat,
    linear-gradient(var(--sym), var(--sym)) bottom right / 28px 2px no-repeat,
    linear-gradient(var(--sym), var(--sym)) bottom right / 2px 28px no-repeat; }
.hud::after { content: none; }   /* the pitch-ladder ticks come with wider screens, never next to the text on a phone */
@media (prefers-color-scheme: light) {
  .hud { border-radius: 0; box-shadow: 0 1px 0 var(--rule), 0 10px 26px rgba(0, 0, 0, .18); }
  .hud::before { inset: 0; background:   /* sprocket holes instead of brackets */
    radial-gradient(circle, var(--holes) 0 4px, transparent 5px) left 2px top 6px / 12px 24px repeat-y,
    radial-gradient(circle, var(--holes) 0 4px, transparent 5px) right 2px top 6px / 12px 24px repeat-y; }
}

/* heading tape */
.tape { display: flex; justify-content: space-between; max-width: 260px; margin: 0 auto 6px; padding: 12px 0 0;
  font: 700 .7rem/1 var(--mono); color: var(--sym); text-shadow: var(--shadow);
  background: repeating-linear-gradient(90deg, var(--sym) 0 1px, transparent 1px 14.28%) left top / 100% 7px no-repeat; }
.tape span { width: 2em; text-align: center; }
.tape .hdg { outline: 1.5px solid var(--sym); outline-offset: 2px; }

.hdr { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 0 16px; border-bottom: 1px solid var(--rule); }
.emblem { flex: none; width: 64px; height: 64px; filter: drop-shadow(0 0 3px rgba(70, 224, 106, .35)); }
.h-frame { fill: none; stroke: var(--sym); stroke-width: 2.5; stroke-linejoin: round; }
.h-ladder { fill: none; stroke: var(--sym); stroke-width: 2; }
.h-ladder.neg { stroke-dasharray: 5 3; }
.h-fpm { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.hdr-text { min-width: 0; }
.doc { margin: 0; font: 700 .7rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sym); }
h1 { margin: 6px 0 0; font: 800 clamp(1.5rem, 7.4vw, 2.6rem)/1.08 var(--mono); letter-spacing: -.02em; text-transform: uppercase;
  overflow-wrap: anywhere; text-shadow: var(--shadow); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 8px 0 0; font: .8rem/1.5 var(--mono); color: var(--muted); }
.meta b { color: var(--text); }

.alert { margin: 16px 0 0; padding: 8px 12px; border: 1px solid var(--warn); color: var(--warn); font: 700 .88rem/1.4 var(--mono); }
.alert::before { content: "CAUTION  "; white-space: pre; }
.alert:empty { display: none; }

/* blocks, like terminal commands */
.blk { min-width: 0; padding: 18px 0 4px; }
.blk + .blk, .duo + .blk { border-top: 1px dashed var(--rule); margin-top: 14px; }
.blk h2 { margin: 0 0 14px; font: 700 1.05rem/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sym); text-shadow: var(--shadow); }
.blk h2 .pr { color: var(--text); }
.blk h2 .sub { display: block; margin-top: 2px; font-size: .7rem; font-weight: 400; letter-spacing: .12em; color: var(--muted); text-shadow: none; }

/* the carrier deck (H), seen from above, bow up: the angled deck to port (left), the island to starboard (right) */
.deck-wrap { position: relative; margin: 0; filter: drop-shadow(0 10px 16px var(--deck-shadow)); }
.deck { position: relative; display: flex; flex-direction: column; background-color: var(--deck);
  background-image: radial-gradient(var(--deck-dot) 1px, transparent 1.4px); background-size: 5px 5px;
  clip-path: polygon(24% 0, 76% 0, 92% 44px, 96% 110px, 96% calc(100% - 22px), 90% 100%, 30% 100%, 4% calc(100% - 30px),
    0 calc(100% - 90px), 0 calc(100% - 180px), 8% calc(100% - 220px), 8% 110px, 12% 44px); }
.bow { position: relative; height: 96px; }
.bow::before, .bow::after { content: ""; position: absolute; top: 18px; bottom: 0; width: 2px; background: var(--mark); }
.bow::before { left: 34%; }
.bow::after { left: 62%; }
.hull-no { position: absolute; left: 48%; top: 34px; transform: translateX(-50%); font: 800 2.3rem/1 var(--mono); color: var(--mark); }

/* the spots: built by landing.js (data-l-slots, one per max_players), numbered with a CSS counter */
.spots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 6px 10% 18px 13%; counter-reset: spot; }
.spots:empty { min-height: 180px; }
.spots[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.spots[data-cols="8"] { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.slot { position: relative; aspect-ratio: 1; border: 1.5px solid var(--spot); border-radius: 50%; counter-increment: spot; }
.slot::after { content: counter(spot); position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 55%); padding: 0 3px;
  background: var(--deck); color: var(--spot); font: 700 .62rem/1.1 var(--mono); }
.slot.on { box-shadow: 0 0 6px var(--sym-dim), inset 0 0 6px var(--sym-dim); }
.slot.on::before { content: ""; position: absolute; inset: 6%; background: var(--jet); transform: rotate(-20deg);
  clip-path: polygon(50% 0, 55% 14%, 56% 34%, 94% 58%, 94% 66%, 57% 60%, 56% 80%, 72% 92%, 72% 98%, 50% 94%, 28% 98%, 28% 92%,
    44% 80%, 43% 60%, 6% 66%, 6% 58%, 44% 34%, 45% 14%); }

.mid { display: flex; justify-content: flex-end; padding: 0 6% 14px 0; }
.island { position: relative; z-index: 1; display: flex; flex-direction: column; width: 52%; padding: 16px 10px 10px;
  border: 1px solid var(--island-line); border-radius: 6px 6px 3px 3px; background: var(--island); color: var(--island-text);
  box-shadow: -5px 7px 0 rgba(0, 0, 0, .28); }
.windows { position: absolute; top: 5px; left: 10px; right: 10px; height: 4px; opacity: .7;
  background: repeating-linear-gradient(90deg, var(--window) 0 7px, transparent 7px 10px); }
.pri { font: 700 .62rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--island-muted); }
.state-line { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--island-muted); }
.pob { margin-top: 6px; font: 800 1.9rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.pob .of { font-size: 1rem; font-weight: 400; color: var(--island-muted); }
.pob-k { font: .72rem/1.4 var(--mono); color: var(--island-muted); }

/* the server state as a HUD cue */
.state { display: inline-block; padding: 0 6px; border: 2px solid currentColor; font: 700 .82rem/1.35 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--island-muted); }
[data-state="on"] .state { color: var(--good); text-shadow: var(--shadow); }
[data-state="off"] .state, [data-state="error"] .state { color: var(--bad); }
[data-state="unknown"] .state { color: var(--warn); }
[data-state="on"] .lamp { background: var(--good); box-shadow: 0 0 8px var(--good); animation: lamp 2.6s ease-in-out infinite; }
[data-state="off"] .lamp, [data-state="error"] .lamp { background: var(--bad); }
[data-state="unknown"] .lamp { background: var(--warn); }
@keyframes lamp { 50% { box-shadow: 0 0 2px var(--good); } }

/* the angled landing area at the stern: edge lines, dashed centreline and the arresting wires */
.stern { position: relative; height: 180px; overflow: hidden; }
.lz { position: absolute; left: 12%; bottom: -12px; width: 40%; height: 230px; transform: rotate(-10deg); transform-origin: 50% 100%;
  border-left: 2px solid var(--mark); border-right: 2px solid var(--mark);
  background: repeating-linear-gradient(180deg, var(--mark) 0 14px, transparent 14px 28px) center / 2px 100% no-repeat; }
.wires { position: absolute; left: 0; right: 0; bottom: 44px; height: 46px;
  background: repeating-linear-gradient(180deg, var(--mark) 0 1px, transparent 1px 17px); }
.wake { display: block; width: 46%; height: 40px; margin: -2px 0 0 37%;
  background: linear-gradient(180deg, var(--wake), transparent); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.caption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.fresh { display: block; margin-top: 2px; font: .76rem/1.4 var(--mono); }

/* the flight ops board (H), as boxed HUD readouts */
.plat dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.row { min-width: 0; padding-top: 8px; border-top: 1px solid var(--rule); }
.row.wide { grid-column: span 2; }
.row dt { font: 700 .7rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row dd { margin: 2px 0 0; font: 700 1.1rem/1.3 var(--mono); overflow-wrap: anywhere; }
.row .num { font-variant-numeric: tabular-nums; }
.op { display: block; text-transform: uppercase; }
.op.next { color: var(--muted); }
.left { display: block; margin-top: 2px; font: 700 .86rem/1.4 var(--mono); color: var(--warn); }
.left:empty { display: none; }
.limit:not(:empty)::before { content: " "; }
.ends:not(:empty)::before { content: " · ends "; }
.ends:not(:empty)::after { content: " SGT"; }

abbr[title] { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
.howto { margin: 0 0 14px; }
.call { padding: 0 6px; border: 1px solid var(--sym); font-family: var(--mono); color: var(--sym); }

/* the two big buttons (E/F): Discord, then the status page with a live mini readout */
.go { display: grid; gap: 12px; }
.btn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; min-height: 84px; padding: 14px; border-radius: 10px;
  text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .kofi:focus-visible { outline: 3px solid var(--sym); outline-offset: 3px; }
.btn-text { display: flex; flex: 1 1 6.5em; flex-direction: column; min-width: 0; }
.btn-title { font: 700 1.15rem/1.2 var(--sans); }
.btn-sub { margin-top: 3px; font: .78rem/1.35 var(--mono); overflow-wrap: anywhere; }
.discord { flex-wrap: nowrap; background: var(--blurple); color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.discord:hover { background: var(--blurple-hover); }
.discord .btn-title { font-family: inherit; font-weight: 600; }
.discord .glyph { flex: none; width: 42px; height: 42px; }
.soon { align-self: flex-start; margin-top: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font: 600 .7rem/1.6 var(--mono); }
.soon:empty { display: none; }
/* the status button stays a little dark terminal in both schemes (like F's radar button) */
.status { background: #0a140e; color: #e6f2e6; border: 2px solid #2f5a3e; }
.status:hover { border-color: #7fe08f; }
.status .btn-sub { color: #7fe08f; }
.readout { display: grid; flex: 0 1 auto; gap: 3px; min-width: 0; padding: 7px 8px; border: 1px solid #2f5a3e; border-radius: 4px; background: #050b07;
  font: 700 .7rem/1.25 var(--mono); font-variant-numeric: tabular-nums; }
.rd { display: flex; justify-content: space-between; gap: 8px; }
.rd-k { color: #7fa889; text-transform: uppercase; letter-spacing: .06em; font-weight: 400; }
.rd-v { color: #7fe08f; white-space: nowrap; }
[data-state="off"] .readout .rd:first-child .rd-v, [data-state="error"] .readout .rd:first-child .rd-v { color: #ff6b5e; }
[data-state="unknown"] .readout .rd:first-child .rd-v { color: #ffb547; }

/* the support slot (hidden unless status.json enables it): smaller than the two buttons, Ko-fi look, no pressure */
.support { margin-top: 16px; padding-top: 12px; border-top: 1px dotted var(--rule); }
.kofi { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--kofi); color: #1c1c1c; text-decoration: none; font: 700 .95rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background-color .15s ease; }
.kofi:hover { background: var(--kofi-hover); }
.cup { flex: none; width: 22px; height: 22px; }
.cup .heart { fill: var(--kofi); }
.support-note { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.goal { margin: 8px 0 0; font: .76rem/1.4 var(--mono); color: var(--muted); }
.goal b { color: var(--text); }
.goal-bar { display: block; max-width: 260px; height: 4px; margin-top: 5px; background: var(--sym-dim); }
.goal-fill { display: block; width: 0; height: 100%; background: var(--sym); transition: width .6s ease; }

/* future ops: H's Hull 02 as a dashed blueprint; it only says that a second server is coming */
.hull2 { padding: 12px; border: 1.5px dashed var(--sym-dim); border-radius: 6px; }
.blueprint { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.bp-grid { stroke: var(--rule); stroke-width: .6; fill: none; }
.bp-hull, .bp-island { fill: none; stroke: var(--sym); stroke-width: 1.2; stroke-dasharray: 4 3; }
.bp-lz { stroke: var(--sym-dim); stroke-width: .8; }
.bp-no { fill: var(--sym); font: 800 13px var(--mono); }
.hull2-k { display: inline-block; margin: 0; padding: 1px 8px; border: 2px solid var(--warn); outline: 1px solid var(--warn); outline-offset: 2px;
  color: var(--warn); font: 700 .8rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hull2 h3 { margin: 12px 0 0; font: 700 1.1rem/1.25 var(--mono); text-transform: uppercase; }
.hull2 p:last-child { margin: 6px 0 0; }

.eot { margin: 20px 0 0; font: 700 .76rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cursor { color: var(--sym); animation: cursor 1.1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }

@media (min-width: 560px) {
  .hud { padding: 14px 28px 22px; }
  .hdr { flex-direction: row; align-items: center; gap: 18px; }
  .emblem { width: 84px; height: 84px; }
  .cls { letter-spacing: .2em; }
  .tape { max-width: 300px; }
  .deck-wrap { max-width: 380px; margin-inline: auto; }
  .blk h2 .sub { display: inline; margin: 0 0 0 4px; }
}
@media (min-width: 820px) {
  .hud { margin-top: 26px; padding: 14px 44px 22px; }
  .hud::after { content: ""; position: absolute; top: 90px; bottom: 90px; left: 16px; right: 16px; pointer-events: none;
    background:
      repeating-linear-gradient(180deg, var(--sym-dim) 0 2px, transparent 2px 40px) left / 12px 100% no-repeat,
      repeating-linear-gradient(180deg, var(--sym-dim) 0 2px, transparent 2px 40px) right / 12px 100% no-repeat; }
  .duo { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0 36px; align-items: start; }
  .duo .blk + .blk { border-top: 0; margin-top: 0; }
  .deck-wrap { margin-inline: 0; }
  .go { grid-template-columns: 1fr 1fr; }
  .emblem { width: 104px; height: 104px; }
}
@media (prefers-color-scheme: light) and (min-width: 820px) {
  .hud::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* the time limit makes the mission line ~35 characters: the end time would not fit next to it on a phone line, so it goes */
@media (max-width: 519px) {
  .limit:not(:empty) ~ .ends { display: none; }
}
