/* ==========================================================================
   Disposition This! — game page styles. Tokens come from styles.css.
   ========================================================================== */

.game-main { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.game-main .wrap { max-width: 860px; }

.game-lede { max-width: 40em; }

.nav-menu-simple a { font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- HUD ---------- */

.hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1.6rem 0 0.9rem;
}
@media (min-width: 480px) { .hud { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 780px) { .hud { grid-template-columns: repeat(8, 1fr); } }

.hud-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.05rem;
  text-align: center;
}
.hud-n {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.hud-l {
  font-family: var(--font-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft);
}
.hud-quota { border-color: var(--stamp); border-width: 2px; }
.hud-quota .hud-n { color: var(--stamp-deep); }
.hud-bad .hud-n { color: var(--stamp-deep); }
.hud-zero { background: var(--paper-2); }
.hud-zero .hud-n { color: var(--ink-soft); }

/* ---------- Shift timer ---------- */

.shift-timer {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.shift-track {
  flex: 1; height: 8px; border-radius: 99px;
  background: var(--line-soft); overflow: hidden;
}
.shift-bar {
  height: 100%; width: 100%;
  background: var(--stamp);
  transform-origin: left;
}
.shift-time { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; }

/* ---------- Board ---------- */

.board-wrap {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-card);
}
#board {
  display: block; width: 100%; height: auto;
  touch-action: manipulation; /* taps drop parts; don't let double-tap zoom eat them */
  cursor: crosshair;
}

/* ---------- End-of-shift report ---------- */

.shift-report {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32, 36, 43, 0.55);
  padding: 1rem;
  z-index: 10;
}
.shift-report[hidden] { display: none; }

.report-card {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  max-width: 430px; width: 100%;
  max-height: 100%; overflow-y: auto;
  padding: 1.4rem 1.5rem;
  text-align: center;
}
.report-h {
  font-family: var(--font-mono); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.6rem;
}
.report-body { text-align: left; font-family: var(--font-mono); font-size: 0.8rem; }
.report-body table { width: 100%; border-collapse: collapse; }
.report-body td { padding: 0.32rem 0; border-bottom: 1px solid var(--line-soft); }
.report-body td:last-child { text-align: right; font-weight: 700; }
.report-body .report-grade {
  margin-top: 0.9rem; font-weight: 700; color: var(--stamp-deep);
}
.report-stamp-row { margin: 1rem 0 1.2rem; }
.report-stamp { font-size: 1.6rem; transform: rotate(-7deg); }

/* ---------- Controls / ticker ---------- */

.controls {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 1.1rem;
}
/* kbd hints sit inside buttons; keep them from inheriting the button's weight */
.controls kbd {
  margin-left: 0.4em; font-weight: 400; font-size: 0.8em;
  background: rgba(32, 36, 43, 0.07); border-color: rgba(32, 36, 43, 0.2);
}
.ticker {
  margin-top: 0.9rem; min-height: 2.6em;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft);
}

/* ---------- How to play ---------- */

.how-to { margin-top: 2.5rem; }
.how-to h2 { font-size: 1.25rem; }
.how-to ul { padding-left: 1.2rem; color: var(--ink-soft); }
.how-to li { margin-bottom: 0.55rem; }
.how-to strong { color: var(--ink); }
kbd {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--paper-2); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 4px; padding: 0.05em 0.4em;
}
