/* ==========================================================================
   Readability. Loaded last, so it wins.
   - The pixel font (Silkscreen: buttons, labels, headings) never goes below
     about 13px, where its letters stop being a blur of dots.
   - The terminal font (VT323: reading text) is a touch bigger, with more room
     between letters, words and lines, so it no longer looks squished.
   (VT323 is also scaled up by font-size-adjust in retro.css, so its px sizes
   here render roughly 25% larger.)
   ========================================================================== */

:root {
  --t-label: 13.5px; /* Silkscreen on buttons and labels */
  --t-label-sm: 12px; /* Silkscreen on badges and tiny tags */
  --muted: #a9b2d6; /* secondary text: a little brighter so it is easy to read on the dark panels */
}

/* ---------- Reading text (VT323) ---------- */
body { font-size: 18px; line-height: 1.32; letter-spacing: 0.025em; word-spacing: 0.06em; }
p, li { line-height: 1.32; }
.hint, label, .muted { font-size: 16px; line-height: 1.3; }
.chat-log { font-size: 17px; line-height: 1.3; }
.chat-log .msg .ch { font-size: 13px; }
input, textarea, select { font-size: 17px; letter-spacing: 0.03em; }
.horizon { font-size: 15.5px; }
.hud-todo { font-size: 16.5px; line-height: 1.25; }
.toast, .problem { font-size: 17px; line-height: 1.3; }
.seat .nm { font-size: 15.5px; }
.lobby-players .name { font-size: 17px; }
.lobby-players .bio { font-size: 15px; }
.recap-line { font-size: 16.5px; line-height: 1.3; }
.coach-text { font-size: 16.5px; line-height: 1.3; }
.cloud-text { font-size: 21px; line-height: 1.3; }
.ability { font-size: 18px; line-height: 1.35; }
.tips { line-height: 1.4; }
.note { font-size: 16.5px; line-height: 1.3; }
.wiki-role-meta, .wiki-figure figcaption, .wiki-type span { font-size: 15px; }
.wiki-system, .wiki-role .tips { font-size: 15.5px; }
.season-table { font-size: 16.5px; }

/* ---------- Labels, buttons and headings (Silkscreen) ---------- */
h2 { font-size: 18px; letter-spacing: 0.06em; }
h3 { font-size: 14px; letter-spacing: 0.08em; }
.eyebrow { font-size: var(--t-label); letter-spacing: 0.14em; }
button { font-size: var(--t-label); letter-spacing: 0.07em; }
button.small { font-size: 13px; }
button.big { font-size: 15px; }
.action { font-size: var(--t-label); letter-spacing: 0.06em; }
.chip { font-size: 13px; }
.badge { font-size: var(--t-label-sm); }
.phase-pill { font-size: 13px; }
.ring-title { font-size: var(--t-label); }
.use-prompt { font-size: 13px; }
.room-row b, .award b, .sys-box b { font-size: var(--t-label); }
.ship-name { font-size: 13px; }
.lobby-ship { font-size: var(--t-label); }
.recap-title { font-size: 13px; }
.seat .token .initial { font-size: 11px; }
.tabs button, .command-tabs button { font-size: 13px; }

/* Keyboard hints read better in the terminal font than as 8px pixel caps. */
kbd { font-family: var(--font-body); font-size: 15px; line-height: 1; padding: 1px 5px 2px; }

/* Buttons that hold reading text keep the reading font. */
.night-action .pick, .bet-picker .pick, .room-row, .who-chip { font-size: 16.5px; letter-spacing: 0.03em; }

/* ---------- Phones: slightly smaller, never tiny ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .action, button.small, .chip { font-size: 12.5px; }
  .hint, label { font-size: 15.5px; }
  .hud-todo { font-size: 15px; }
}

/* ---------- Top bar: keep the sides pinned to the top edge ---------- */
/* The middle block (timer, black hole, "what now?") is tall, so the side
   items must not centre on it or they slide down behind the panels. */
.topbar { align-items: start; }
.phase-pill { white-space: nowrap; }
.tb-left { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 1100px) {
  .ship-name { display: none; } /* the ship's name is still in the lobby and on the share card */
}
.minimap { top: 78px; }
