/* Console Wars: the Game Boy palette the Godot game uses (rustic-gb). */
:root { --d: #2c2137; --m: #764462; --l: #a96868; --b: #edb4a1; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--d); color: var(--b); font: 16px/1.45 system-ui, sans-serif; }
a { color: var(--b); }
.muted { color: var(--l); }
header, main, footer { max-width: 960px; margin: 0 auto; padding: 12px 16px; }
h1 { margin: 8px 0; letter-spacing: 2px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--m); }
a.live { background: var(--m); padding: 2px 10px; border-radius: 4px; text-decoration: none; }
a.live:hover { background: var(--l); color: var(--d); }
button { background: var(--m); color: var(--b); border: 1px solid var(--l); border-radius: 6px;
  padding: 8px 14px; font: inherit; cursor: pointer; touch-action: none; user-select: none; }
button:disabled { opacity: 0.5; cursor: default; }
button.down { background: var(--l); color: var(--d); }
#home { font-weight: bold; text-decoration: none; letter-spacing: 1px; }
#stage { position: relative; background: #000; aspect-ratio: 10 / 9; max-height: 70vh; margin: 0 auto; }
#screen { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
#overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; background: rgba(44, 33, 55, 0.85); padding: 24px; text-align: center; }
#overlay[hidden] { display: none; }
#play { font-size: 22px; padding: 12px 40px; }
#controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 12px 0; }
#pad div { display: flex; gap: 6px; margin-bottom: 6px; }
#mic { display: flex; flex-direction: column; gap: 6px; }
.meter { width: 200px; height: 8px; background: var(--m); border-radius: 4px; overflow: hidden; }
#level { height: 100%; width: 0; background: var(--b); }
#level.off { background: var(--l); }
#hint, #keys { flex-basis: 100%; margin: 0; }
#status th { width: 180px; color: var(--l); font-weight: normal; }

.conf { font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; }
.conf-high { color: #2e8b57; }
.conf-medium { color: #c08a00; }
.conf-low { color: #c0392b; }
.conf-blocked { color: #888; text-decoration: line-through; }
.conf-unknown { color: #888; }
.download { font-size: 0.85em; margin-left: 0.3em; }

.group { font-size: 0.85em; white-space: nowrap; }
.group-2x { font-weight: bold; }
dl.groups dt { font-weight: bold; margin-top: 0.6em; }
dl.groups dd { margin-left: 1.2em; }

.slides-link { font-size: 1.1em; margin: 0.8em 0; }
.slides-link a { color: #f6dccf; background: #764462; padding: 0.25em 0.7em; border-radius: 0.4em; text-decoration: none; }

td.playing { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

p.explain { max-width: 60rem; line-height: 1.5; }

/* Data paths (web/paths.js + paths.json): the landing page's last section */
section.paths { max-width: 1220px; margin: 0 auto; padding: 12px 16px 28px; }
section.paths > p { max-width: 60rem; line-height: 1.5; }
.cwp-legend { display: grid; gap: 6px; margin: 12px 0 8px; padding: 10px 14px; border: 1px solid var(--m);
  border-radius: 8px; background: rgba(118, 68, 98, 0.12); font-size: 0.85em; }
.cwp-lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.cwp-lrow > b { min-width: 9.5em; color: #f6dccf; }
.cwp-li { display: inline-flex; align-items: center; gap: 6px; }
.cwp-badge { display: inline-block; color: var(--d); font-weight: 700; font-size: 0.75em; letter-spacing: 0.05em;
  padding: 0 7px; border-radius: 8px; line-height: 1.5; }
.cwp-sub { margin: 22px 0 6px; color: #f6dccf; letter-spacing: 1px; }
figure.cwp-card { margin: 10px 0 18px; padding: 12px 14px 8px; border: 1px solid var(--m); border-radius: 10px; }
figure.cwp-group { border-color: var(--l); background: rgba(169, 104, 104, 0.06); }
.cwp-card figcaption h3 { margin: 0 0 4px; color: #f6dccf; }
.cwp-card figcaption p, .cwp-card figcaption ul { margin: 0 0 6px; font-size: 0.9em; line-height: 1.45; }
.cwp-card figcaption ul { padding-left: 1.2em; }
.cwp-year { font-weight: normal; font-size: 0.8em; color: var(--l); }
.cwp-status { font-size: 0.7em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 8px;
  border-radius: 8px; vertical-align: 2px; background: var(--m); color: #f6dccf; }
.cwp-s-live { background: #2e7d4f; } .cwp-s-preview { background: #5d6b2e; }
.cwp-s-blocked { background: #8e3a30; } .cwp-s-parked { background: var(--m); }
.cwp-scroll { overflow-x: auto; }
.cwp-scroll svg { min-width: 760px; }
.cwp-text { font-size: 0.8em; color: var(--l); margin: 2px 0 0; }
.cwp-text summary { cursor: pointer; }
.cwp-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
button.cwp-chip { padding: 4px 10px; font-size: 0.85em; border-radius: 14px; background: transparent; border: 1px solid var(--m); touch-action: auto; }
button.cwp-chip[aria-selected="true"] { background: var(--b); color: var(--d); border-color: var(--b); }
button.cwp-chip:hover { border-color: var(--b); }
button.cwp-chip.cwp-s-blocked { text-decoration: line-through; text-decoration-color: #e06a5a; }
button.cwp-all { border-style: dashed; }

/* the phone (decision 54): call-to-play and real calls */
#callbox { font-size: 1.1em; }
#callbox .call-head { text-transform: uppercase; letter-spacing: 0.1em; color: var(--l); }
#callbox .call-number { font-size: 1.8em; font-weight: bold; margin: 0.2em 0; }
#callbox .call-number a { text-decoration: none; }
#s-phone.bad { color: #ff8a7a; font-weight: bold; }
#mic[hidden] { display: none; }
