/* Shared dark theme + page basics for every page of the app (game and fitness). */
/* ---- Dark minimalist pixel-map theme (2026-10-02 MVP HUD task, section 3):
   near-black/navy ground, thin borders, few colors, status always carried
   by text/icon as well as color, never color alone. */
:root {
  --bg: #05070d; --panel: #0e1420; --panel2: #121a2b; --accent: #ffb020;
  --text: #d9e2ec; --muted: #7c8ba1; --danger: #e0554a; --ok: #35e07a;
  --grid-line: #1c2536; --below: #e0554a; --within: #35e07a; --above: #4aa3e0; --unavailable: #5a6b82;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; }
body { display: flex; justify-content: center; padding: 16px; }
.app { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
h1 { font-size: 1.15rem; margin: 0; }
p { color: var(--muted); line-height: 1.4; }
.screen { display: none; flex-direction: column; gap: 14px; }
.screen.active { display: flex; }
.panel { background: var(--panel); border: 1px solid var(--grid-line); border-radius: 10px; padding: 16px; }
button { font: inherit; border: none; border-radius: 8px; padding: 12px 16px; cursor: pointer; }
.btn-primary { background: var(--accent); color: #201400; font-weight: 600; font-size: 1.05rem; }
.btn-secondary { background: #1c2536; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row button { flex: 1; min-width: 110px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5a6b82; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--accent); }
.dot.bad { background: var(--danger); }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
label.field input { font: inherit; background: #1c2536; border: 1px solid var(--grid-line); color: var(--text); border-radius: 6px; padding: 8px 10px; }
.err { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; margin: 4px 0; }
[hidden] { display: none !important; }
.link-btn { display: block; text-align: center; text-decoration: none; padding: 12px 16px; border-radius: 8px; color: var(--text); }
