/* No Fault of Their Own: a dark console with two black windows onto space.
 * Three kinds of box: black windows look out, wells are for reading, and raised
 * panels are for acting. A panel's color says which department does that work.
 *
 * Written in 2026 by Chris Spackman. To the extent possible under law, the author
 * has dedicated all copyright and related rights to this file to the public domain
 * worldwide (CC0 1.0). It is distributed without any warranty.
 * https://creativecommons.org/publicdomain/zero/1.0/
 */

:root {
  color-scheme: dark;

  /* the room */
  --ink: #17202f;          /* page */
  --ink-raised: #1f2a3c;   /* panels you can act on */
  --well: #101825;         /* boxes you only read */
  --rule: #3a4a61;         /* hairlines */
  --paper: #ece6d8;        /* main text */
  --dim: #b4bccb;          /* secondary text */
  --signal: #f0b35a;       /* attention: focus, keys, the object */
  --contact: #9fd0e6;      /* contact is always this colour */
  --alarm: #f29a8a;        /* setbacks and refusals */

  /* who does the work: the same color on orders and on the trust gauge */
  --engineering: #e6c566;
  --analysis: #c5adf2;
  --navigation: #86d9ab;

  --reading: "Charter", "Bitstream Charter", "Sitka Text", "Iowan Old Style", "Noto Serif", Cambria, Georgia, serif;
  --working: "Avenir Next", "Segoe UI", "Noto Sans", "Helvetica Neue", Roboto, sans-serif;
}

.dept-keepers { --dept: var(--engineering); }
.dept-advocates { --dept: var(--analysis); }
.dept-pragmatists { --dept: var(--navigation); }

html { font-size: 100%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--reading);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, button, input, select, .num {
  font-family: var(--working);
}
h1, h2, h3 { line-height: 1.25; font-weight: 600; margin: 0; }
p { margin: 0 0 0.8em; }
button { font-size: 1rem; color: inherit; }
a { color: var(--contact); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute;
  left: -100vw;
  background: var(--signal);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

#errbar, .noscript {
  background: var(--alarm);
  color: var(--ink);
  padding: 0.75rem 1rem;
  margin: 0;
}

.site-foot {
  max-width: 90rem;
  margin: 3rem auto 0;
  padding: 1rem 1rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.875rem;
}
.site-foot p { max-width: 42rem; margin-bottom: 0.4em; }

/* ---------- title screen ---------- */

.title {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 36rem);
  gap: 2rem 4rem;
  align-items: start;
}
.title .plate { max-width: 24rem; }
.title h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.title .lede { font-size: 1.1875rem; }

.fieldset { border: 0; margin: 1.5rem 0 0; padding: 0; }
.fieldset legend { font-family: var(--working); font-weight: 600; padding: 0; margin-bottom: 0.5rem; }

.difficulty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.difficulty:last-of-type { border-bottom: 1px solid var(--rule); }
.difficulty input { margin: 0.35rem 0 0; accent-color: var(--signal); width: 1.1rem; height: 1.1rem; }
.difficulty strong { font-family: var(--working); font-weight: 600; }
.difficulty .num { color: var(--dim); font-size: 0.9375rem; margin-left: 0.4rem; }
.difficulty span.blurb { grid-column: 2; color: var(--dim); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.primary, .secondary {
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  min-height: 2.75rem;
}
.primary { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.primary:hover { background: #fff; }
.secondary { background: transparent; border: 1px solid var(--dim); color: var(--paper); }
.secondary:hover { border-color: var(--paper); }

.warning-note { margin: 0.6rem 0 0; color: var(--dim); font-family: var(--working); font-size: 0.9375rem; }
.seed-line { margin-top: 1rem; color: var(--dim); font-family: var(--working); font-size: 0.9375rem; }
.seed-line input {
  width: 8rem;
  margin-left: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rule);
  font-size: 1rem;
}

/* ---------- the game ---------- */

.top {
  padding: 0.6rem max(1rem, calc((100vw - 90rem) / 2 + 1rem));
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  align-items: baseline;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--working);
}
.top .game-name { font-weight: 300; font-size: 1.25rem; margin-right: auto; }
.top .phase { font-weight: 600; }
.top .clock { color: var(--dim); font-size: 0.9375rem; }
.top .clock b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }

/* The clock stays on screen wherever there's room for it. */
@media (min-width: 48rem) and (min-height: 30rem) {
  .top { position: sticky; top: 0; z-index: 5; }
}

#decide { scroll-margin-top: calc(var(--header, 0px) + 1rem); }

.board {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31rem;
  gap: 1.5rem 2rem;
  align-items: start;
}

.instruments {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  font-family: var(--working);
}

/* The two windows scroll away with the page. What matters turn by turn stays: the
 * panels under them pin below the header, and scroll by themselves if they're long.
 * In a very short window, everything just scrolls with the page. */
@media (min-width: 70.01rem) and (min-height: 40rem) {
  .gauges {
    position: sticky;
    top: calc(var(--header, 0px) + 0.75rem);
    max-height: calc(100vh - var(--header, 0px) - 1.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--dim) transparent;
  }
}

/* Windows: real black, with real space in them. */
.viewports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.viewports figure { margin: 0; }
.viewports figcaption { font-size: 0.875rem; font-weight: 600; color: var(--dim); margin-bottom: 0.2rem; }
.plate {
  background: #000;
  border: 1px solid var(--rule);
  line-height: 0;
}
.plate svg { display: block; width: 100%; height: auto; }
.plate text { font-family: var(--working); }

.reading { margin: 0.6rem 0 0; }
.reading .big { font-size: 1.5rem; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.3; }
.reading .small, .map-words, .chart-key { color: var(--dim); font-size: 0.9375rem; line-height: 1.45; margin-bottom: 0.3rem; }
.chart-key:empty { display: none; }

.gauges { margin-top: 0.75rem; font-size: 0.9375rem; }

.side-panel {
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  padding: 0.6rem 0.8rem 0.5rem;
  margin-bottom: 0.6rem;
}
.side-panel h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem; }
.side-panel h3 { font-size: 0.9375rem; font-weight: 600; margin: 0.75rem 0 0.25rem; color: var(--dept, var(--paper)); }
.side-panel.dept-advocates, .side-panel.dept-pragmatists { border-top: 3px solid var(--dept); }

.gauge { margin-bottom: 0.3rem; }
.gauge-head { display: flex; justify-content: space-between; gap: 1rem; }
.gauge-head .value { font-variant-numeric: tabular-nums; }
.gauge-head .warn { color: var(--alarm); }
.bar {
  position: relative;
  height: 0.5rem;
  background: var(--rule);
  margin-top: 0.15rem;
}
.bar i { display: block; height: 100%; background: var(--dept, var(--paper)); }
.bar.low i { background: var(--alarm); }
.bar .tick {
  position: absolute;
  top: -0.15rem;
  width: 2px;
  height: 0.8rem;
  background: var(--paper);
}
.gauge-note { color: var(--dim); font-size: 0.875rem; line-height: 1.4; margin: 0.15rem 0 0.4rem; }

.known { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; line-height: 1.4; }
.known li { padding-left: 0.6rem; margin-bottom: 0.3rem; border-left: 2px solid var(--dept); }
.next-known {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--dim);
  padding-left: 0.6rem;
  margin: 0.3rem 0;
  border-left: 2px dashed var(--rule);
}
.odds {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 0.1rem 1rem;
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
}
.odds dd { margin: 0; font-variant-numeric: tabular-nums; }

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.1rem 0.9rem;
  margin: 0 0 0.3rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.facts dt { color: var(--dim); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

.crew-row { padding-bottom: 0.3rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.crew-state { font-size: 0.875rem; line-height: 1.4; margin: 0.15rem 0 0; }
.crew-state strong { color: var(--dept); font-weight: 600; }
.crew-refuse { font-size: 0.875rem; line-height: 1.4; margin: 0.15rem 0 0; color: var(--alarm); }

.trust-help summary { cursor: pointer; font-weight: 600; min-height: 1.75rem; }
.trust-help p, .trust-help dl { font-size: 0.875rem; line-height: 1.4; margin: 0.35rem 0; }
.trust-help dt { font-weight: 600; margin-top: 0.35rem; }
.trust-help dd { margin: 0; color: var(--dim); }

.glance { display: none; }

.doors { list-style: none; margin: 0; padding: 0; }
.doors li { margin-bottom: 0.4rem; line-height: 1.35; }
.doors s { color: var(--paper); text-decoration-color: var(--alarm); text-decoration-thickness: 2px; }
.doors span { display: block; color: var(--dim); font-size: 0.875rem; }

/* The orders side: wells to read, raised panels to act on. */
.story { grid-column: 1; grid-row: 1; min-width: 0; }

.hint {
  border-left: 3px solid var(--signal);
  padding-left: 0.85rem;
  color: var(--paper);
  margin-bottom: 0.9rem;
}

.news, .status {
  background: var(--well);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem;
}
.news h2 { font-size: 1rem; margin-bottom: 0.4rem; }
.news > :last-child, .opening > :last-child { margin-bottom: 0; }

.elapsed { font-family: var(--working); font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.2rem; }
.changes {
  font-family: var(--working);
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  margin-bottom: 0.75rem;
}
.changes:has(+ .pushed) { margin-bottom: 0.2rem; }
.changes.pushed { color: var(--navigation); }

.report { list-style: none; margin: 0 0 1rem; padding: 0; }
.report li { margin-bottom: 0.55rem; padding-left: 0.85rem; border-left: 3px solid var(--rule); }
.report li.setback { border-left-color: var(--alarm); }
.report li.contact { border-left-color: var(--contact); }
.report li.earth { border-left-color: var(--dim); }
.report li.good { border-left-color: var(--navigation); }
.report li.done { border-left-color: var(--navigation); border-left-width: 5px; }
.done-tag { font-family: var(--working); color: var(--navigation); }
.report li.ikyn { border-left-color: var(--alarm); border-left-width: 5px; }
.ikyn-tag { font-family: var(--working); color: var(--alarm); }
/* Earth's nuclear strike: launch, arrival, or standing down */
.report li.strike { border-left-color: var(--alarm); border-left-width: 5px; }
.strike-tag { font-family: var(--working); color: var(--alarm); }
/* the score, item by item, at the end */
.score-parts table { border-collapse: collapse; margin: 0.4rem 0 0; }
.score-parts td { padding: 0.15rem 1.2rem 0.15rem 0; }
.score-parts td.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.score-parts tfoot td { border-top: 1px solid var(--rule); font-weight: 600; }
/* Ikyn's own remarks: the same voice, but nothing is wrong, so no alarm colour */
.report li.remark { border-left-color: var(--dim); }
.remark-tag { font-family: var(--working); color: var(--dim); }
.situation .deadline { color: var(--alarm); }
.status h2 { font-size: 1rem; margin-bottom: 0.4rem; }

.overheard { margin: 0 0 1rem; font-style: italic; }
.overheard cite {
  display: block;
  font-family: var(--working);
  font-style: normal;
  color: var(--dim);
  font-size: 0.875rem;
}

.voices { margin: 0; }
.voices p { margin-bottom: 0.45rem; }
.voices .who { font-family: var(--working); font-weight: 600; font-size: 0.9375rem; color: var(--dept); }
/* answering a chief: two small choices under the quote */
.voice-reply { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0.25rem 0 0.75rem; }
.reply-choice { flex: 1 1 14rem; }
.reply {
  min-height: 2.75rem;
  padding: 0.2rem 0.75rem;
  background: none;
  color: var(--paper);
  border: 1px solid var(--dim);
  border-radius: 2px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.reply:hover { border-color: var(--paper); }
.reply-choice .note { display: block; font-size: 0.875rem; color: var(--dim); margin-top: 0.2rem; }
.voice-said { font-style: italic; color: var(--dim); }

.situation {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 1rem;
  margin: 0;
  font-family: var(--working);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.situation dt { font-weight: 600; }
.situation dd { margin: 0; color: var(--dim); }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
.stop {
  min-height: 2.75rem;
  padding: 0.2rem 0.75rem;
  background: none;
  color: var(--paper);
  border: 1px solid var(--dim);
  border-radius: 2px;
  font-size: 0.875rem;
  cursor: pointer;
}
.stop:hover { border-color: var(--paper); }
.plan-yes { color: var(--paper); }
.plan-maybe { color: var(--paper); font-style: italic; }
.plan-no { color: var(--alarm); }

.decide-head {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.decide-q { color: var(--dim); font-style: italic; margin-bottom: 0.15rem; }
.decide-how { margin-bottom: 0.25rem; }

/* One panel per category. The color says which department does the work. */
.panel {
  --dept-fill: color-mix(in srgb, var(--dept) 12%, var(--ink-raised));
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--dept);
  padding: 0 0.85rem 0.4rem;
  margin-top: 0.75rem;
}
.panel-contact { --dept: var(--contact); }
.panel-crew { --dept: var(--dim); }
.panel-time { --dept: var(--paper); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  padding: 0.45rem 0 0.35rem;
  font-family: var(--working);
}
.panel-head h3 { font-size: 1rem; font-weight: 600; color: var(--dept); }
.panel-head .who { color: var(--dim); font-size: 0.875rem; }
.panel .sub { color: var(--dim); font-size: 0.9375rem; margin-bottom: 0.3rem; font-family: var(--working); }

.choice {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0 0.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 0.55rem 0.25rem 0.6rem 0;
  cursor: pointer;
  color: var(--paper);
  min-height: 2.75rem;
}
.choice:hover { background: var(--ink); }
.choice.chosen { background: var(--dept-fill, var(--ink)); box-shadow: inset 3px 0 0 var(--dept, var(--signal)); }
.choice.chosen .label::before { content: "\2713\00a0"; color: var(--dept, var(--signal)); }
.choice .key {
  color: var(--signal);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.choice .label { font-weight: 600; }
.choice .note {
  grid-column: 2;
  font-family: var(--reading);
  color: var(--dim);
  font-size: 0.9875rem;
  line-height: 1.45;
}
.choice[disabled] { cursor: not-allowed; }
.choice[disabled]:hover { background: none; }
.choice[disabled] .label { color: var(--dim); font-weight: 400; }
.choice[disabled] .note { color: var(--alarm); }

/* Greyed out on purpose: these aren't buttons, they're the road ahead. */
.later {
  border-top: 1px dashed var(--rule);
  padding: 0.35rem 0 0.25rem;
  font-family: var(--working);
}
.panel-head + .later { border-top: 0; padding-top: 0; }
.later h4 { margin: 0 0 0.15rem; font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.later ul { list-style: none; margin: 0; padding: 0; }
.later li { font-size: 0.875rem; line-height: 1.4; margin-bottom: 0.2rem; color: var(--dim); }
.later .lwhy { font-family: var(--reading); font-style: italic; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.15rem 0 0.5rem; }
.chip {
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  background: none;
  color: var(--paper);
  border: 1px solid var(--dim);
  border-radius: 2px;
  font-family: var(--working);
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}
.chip:hover { background: var(--ink); }
.chip .key { color: var(--signal); font-weight: 600; margin-right: 0.45rem; }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); font-weight: 600; }
.chip[aria-pressed="true"] .key { color: var(--ink); }
.chip:has(.chip-detail) { flex: 1 1 5.75rem; }
.chip-detail { display: block; font-size: 0.875rem; font-weight: 400; line-height: 1.35; color: var(--dim); }
.chip-detail span { display: block; }
.chip[aria-pressed="true"] .chip-detail { color: var(--ink); }
.chip-note { color: var(--dim); font-size: 0.9375rem; line-height: 1.45; margin: 0 0 0.4rem; }

.commit-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0;
  background: var(--ink);
  border-top: 1px solid var(--dim);
}
.commit-sum { margin: 0; font-family: var(--working); font-size: 0.9375rem; flex: 1 1 14rem; }

.picker { padding: 0.25rem 0 0.75rem; border-top: 1px solid var(--rule); }
.picker fieldset { border: 0; padding: 0; margin: 0.6rem 0 0; }
.picker legend { font-family: var(--working); font-weight: 600; padding: 0; }
.picker label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.6rem;
  padding: 0.35rem 0;
  cursor: pointer;
}
.picker label.closed { cursor: not-allowed; }
.picker input { margin: 0.35rem 0 0; accent-color: var(--contact); width: 1.05rem; height: 1.05rem; }
.picker .pname { font-family: var(--working); }
.picker .pnote { grid-column: 2; color: var(--dim); font-size: 0.9375rem; line-height: 1.4; }
.picker fieldset > .pnote { margin: 0.1rem 0 0; }
.picker .read { font-style: italic; margin: 0.75rem 0 0; }

/* Looks like a link, because it opens something to read, not an order. */
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--contact);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.odds-line { font-size: 1.125rem; font-weight: 300; font-variant-numeric: tabular-nums; margin: 0 0 0.4rem; }

/* the case files, on request */
.files {
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 1.1rem 1.25rem;
  background: var(--ink-raised);
  color: var(--paper);
  border: 1px solid var(--dim);
}
.files::backdrop { background: rgb(0 0 0 / 0.65); }
.files h2 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.files dl { margin: 0.75rem 0 1rem; }
.files dt { font-family: var(--working); font-weight: 600; margin-top: 0.6rem; }
.files dd { margin: 0; color: var(--dim); }

/* events interrupt everything */
.event {
  background: var(--ink-raised);
  border: 1px solid var(--alarm);
  border-top-width: 3px;
  padding: 0.85rem 0.85rem 0.5rem;
  margin-bottom: 1rem;
}
.event h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.reference { margin-top: 1.25rem; }
details.more { margin-top: 0.5rem; padding: 0.4rem 0.9rem; border: 1px solid var(--rule); font-family: var(--working); font-size: 0.9375rem; }
details.more summary { cursor: pointer; font-weight: 600; }
details.more dl { font-family: var(--reading); font-size: 1rem; margin: 0.5rem 0 0; }
details.more dt { font-family: var(--working); font-weight: 600; margin-top: 0.6rem; }
details.more dd { margin: 0; color: var(--dim); }
details.more ol { list-style: none; margin: 0.5rem 0 0; padding: 0; font-family: var(--reading); font-size: 1rem; }
details.more ol li { margin-bottom: 0.4rem; }
details.more .logday { font-family: var(--working); color: var(--dim); font-size: 0.875rem; font-variant-numeric: tabular-nums; margin-right: 0.5rem; }

/* ---------- the end ---------- */

.inquiry { max-width: 42rem; }
.inquiry h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; margin-bottom: 0.75rem; }
.inquiry h2 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.inquiry .scene { font-size: 1.1875rem; }

.findings {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1rem;
}
.findings dt { font-family: var(--working); font-weight: 600; }
.findings dd { margin: 0; }
.findings dd b { font-family: var(--working); font-weight: 600; margin-right: 0.35rem; }

.copied { color: var(--dim); font-family: var(--working); font-size: 0.9375rem; align-self: center; }

/* ---------- small screens ---------- */

@media (max-width: 70rem) {
  .title { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .title .plate { max-width: 16rem; }

  .board { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .instruments { position: static; display: contents; }
  .glass { order: 1; }
  .glass .reading .big { font-size: 1.1875rem; }
  .glass .reading .small, .map-words, .chart-key { font-size: 0.875rem; }
  .odds-line { display: none; }
  .glance {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.9rem;
    margin: 0;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--dim);
  }
  .glance .warn { color: var(--alarm); font-weight: 600; }
  .story { order: 2; grid-column: 1; grid-row: auto; }
  .gauges { order: 3; margin-top: 0; }
  .top .game-name { flex-basis: 100%; }
}

@media (max-width: 34rem) {
  .situation { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .situation dd { margin-bottom: 0.3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .opening p { opacity: 0; animation: arrive 900ms ease-out forwards; }
  .opening p:nth-child(2) { animation-delay: 500ms; }
  .opening p:nth-child(3) { animation-delay: 1000ms; }
  .opening p:nth-child(4) { animation-delay: 1500ms; }
  .opening p:nth-child(5) { animation-delay: 2000ms; }
}
@keyframes arrive { to { opacity: 1; } }

@media print {
  .instruments, .actions, .skip { display: none; }
  body { background: #fff; color: #000; }
}
