/* Hunt Pro styles. The game itself is drawn on the canvas; this file styles the start card and the end-of-hunt card.
   One look only (dawn forest), so the colours are the same in light and dark phone settings. */
:root {
  --bg: #17231a;
  --panel: #17231a;
  --ink: #f3efe2;
  --muted: #c5cdb9;
  --line: #34463a;
  --go: #f3efe2;
  --go-ink: #17231a;
  --gold: #ffd75e;
  --dim: rgba(8, 14, 9, 0.5);
}
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
canvas {
  position: fixed; left: 0; top: 0; display: block; width: 100vw; height: 100vh; height: 100dvh;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* Invisible box used to read the phone's notch and rounded-corner margins. */
#safe {
  position: fixed; left: 0; top: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.screen {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; background: var(--dim); touch-action: manipulation;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
           max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}
.screen[hidden] { display: none; }
.card {
  box-sizing: border-box; width: 100%; max-width: 26rem; max-height: 100%; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.25rem 0;
  -webkit-user-select: none; user-select: none;
}
h1, h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; font-weight: 700; }
.tag { margin: 0.25rem 0 0; color: var(--muted); font-size: 1rem; }
.how { margin: 1rem 0 0; padding: 0 0 0 1.25rem; font-size: 1rem; line-height: 1.4; }
.how li { margin: 0 0 0.5rem; }
.best { margin: 0.75rem 0 0; color: var(--gold); font-size: 1rem; font-weight: 600; }
.stats { margin: 1rem 0 0; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.stats div[hidden] { display: none; }
.stats dt { color: var(--muted); font-size: 1rem; }
.stats dd { margin: 0; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
/* The button row stays in view even if the card has to scroll on a short screen. */
.actions { position: sticky; bottom: 0; background: var(--panel); padding: 0.75rem 0 0.75rem; }
#summary .actions { padding-bottom: 1.25rem; }
.btn {
  display: block; width: 100%; min-height: 3rem; padding: 0.5rem 1rem; border: 0; border-radius: 0.75rem;
  background: var(--go); color: var(--go-ink); font: inherit; font-size: 1.125rem; font-weight: 700; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:active { filter: brightness(0.82); transform: scale(0.98); }
.btn.wait { opacity: 0.45; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.by { margin: 0 0 1rem; color: var(--muted); font-size: 0.875rem; }
/* Short sideways phones: tighten the start card so the button and the three steps fit. */
@media (max-height: 30rem) {
  .by, .tag { display: none; }
  .how { margin-top: 0.5rem; }
  .how li { margin-bottom: 0.25rem; }
  .card { padding-top: 0.75rem; }
}
/* Added by the game when a card is too tall for the screen. */
.card.tight { padding-top: 0.75rem; }
.card.tight .by, .card.tight .tag { display: none; }
.card.tight .how { margin-top: 0.5rem; }
.card.tight .how li { margin-bottom: 0.25rem; }
.card.tight .stats { margin-top: 0.5rem; }
.card.tight .stats div { padding: 0.25rem 0; }
.card.tighter h1, .card.tighter h2 { font-size: 1.375rem; }
.card.tighter .how { font-size: 0.875rem; line-height: 1.3; }
.card.tighter .stats dt, .card.tighter .stats dd { font-size: 0.9375rem; }
.card.tightest .how { font-size: 0.75rem; }
.card.tightest h1, .card.tightest h2 { font-size: 1.125rem; }
.card.tightest .actions { padding: 0.5rem 0; }
