/* The game at /play: one column, and the episode's black day card over every scene.
   Colours and type come from style.css. */
.game { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.game .home { font-weight: 700; }
.game section > p { margin: 1rem 0 0; }

.game h1 { font-size: clamp(1.8rem, 7vw, 2.7rem); text-transform: uppercase; margin-top: 1.4rem; }
.rule { font-weight: 700; }
.small { color: var(--soft); font-weight: 700; font-size: 0.9rem; }

.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
#intro .shot { margin-top: 1.25rem; border-radius: 0.9rem; }

/* The day card from the videos, with the scene's picture hanging from it. */
.daycard {
  margin-top: 1.25rem;
  padding: 0.3em 0 0.25em;
  border-radius: 0.9rem 0.9rem 0 0;
  background: var(--night);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 14vw, 4.6rem);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.daycard + .shot { border-radius: 0 0 0.9rem 0.9rem; }

/* Supplies: the episode's supply card, as three meters. */
.supplies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.meter .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 0.4rem; }
.meter .label { color: var(--soft); font-weight: 700; font-size: 0.85rem; }
.meter .count { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter .bar { margin-top: 0.35rem; }
.meter .bar i { width: 0; transition: width 0.5s ease; }
.meter.food .bar i { background: var(--beanie); }
.pips { display: flex; gap: 0.3rem; height: 0.6rem; margin-top: 0.35rem; }
.pips i { flex: 1; background: var(--rule); border-radius: 0.3rem; }
.pips i.on { background: var(--alarm); }

.situation { font-size: 1.05rem; }

/* Buttons: the site's dark link buttons. The hover blue is darkened for light text. */
.act, .choices button {
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
  min-height: 2.9rem;
  cursor: pointer;
}
.act:hover, .choices button:hover:not(:disabled) { background: #2a6aa8; border-color: #2a6aa8; }
.act:focus-visible, .choices button:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
#start, #next, .again { margin-top: 1.4rem; }

.choices { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.choices button { text-align: left; }
.choices button:disabled { cursor: default; background: transparent; border-color: var(--rule); color: var(--soft); }
.choices button.picked { background: var(--ink); border-color: var(--beanie); color: var(--paper); }

.said { margin-top: 1.5rem; }
.said:focus { outline: none; }
.said:focus-visible { outline: 3px solid var(--water); outline-offset: 4px; }
.said p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.said .cost { margin-top: 0.3rem; color: var(--soft); font-size: 0.9rem; }

.factcard { margin-top: 1rem; padding: 1rem 1.1rem; background: #fff; border-left: 0.45rem solid var(--water); border-radius: 0.9rem; }
.factcard p { margin: 0; }
.factcard .source { margin-top: 0.4rem; color: var(--soft); font-weight: 700; font-size: 0.9rem; }

.verdict { margin-top: 1.4rem; font-size: clamp(2rem, 9vw, 3.3rem); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.verdict:focus { outline: none; }
.cause { font-weight: 700; }
.resultcard { display: block; width: min(100%, 15rem); height: auto; margin: 1.6rem auto 0; border-radius: 0.9rem; background: var(--night); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.again { display: block; width: 100%; }

.game .links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.4rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .meter .bar i { transition: none; }
}
