/* Sleigh Run only. Shared rules are in ../shared/base.css. The sky, the moon and the glow are scenery, so they may
   glow; the cards and buttons over them stay flat. */
.sh { display: flex; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.sh-title { flex: 1; min-width: 0; }
.sh .kicker { margin-bottom: 4px; }
.sh h1 { font-size: clamp(44px, 14vw, 104px); }
#mute[aria-pressed="true"] { text-decoration: line-through; color: var(--muted); }
.today-line { font-size: 18px; font-weight: 600; margin: 20px 0 14px; min-height: 1.5em; }
.needs { margin-top: 20px; }

/* ---- flying: the play screen covers the whole screen and the header becomes its bar ---- */
html.flying, html.flying body { overflow: hidden; overscroll-behavior: none; }
body.flying .sh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3; margin: 0; gap: 4px 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 4px) max(10px, env(safe-area-inset-right, 0px)) 4px max(10px, env(safe-area-inset-left, 0px));
  background: rgba(8, 12, 34, 0.6);
}
body.flying .sh-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hud { display: flex; gap: 6px 22px; flex: 1; align-items: center; }
.hud .stat { margin: 0; display: flex; flex-direction: column; }
.hud .label { font-size: 12px; }
.hud .num { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
#hud-m { color: var(--accent); min-width: 3.2ch; }

#play {
  position: fixed; inset: 0; z-index: 2; background: #0D1540; outline: none;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cue { position: absolute; left: 16px; right: 16px; bottom: 20%; margin: 0; text-align: center; pointer-events: none; display: grid; gap: 4px; }
.cue-big { font-size: clamp(28px, 7vw, 44px); font-weight: 800; color: var(--text); }
.cue-small { font-size: 17px; font-weight: 600; color: var(--text); }
.cue[hidden] { display: none; }

/* the pause and end cards: flat, over the still scene */
.card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -42%);
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 96px); overflow: auto;
  padding: 18px 18px 20px; border-radius: 16px; background: var(--raised); border: 2px solid var(--edge);
  touch-action: manipulation; user-select: text; -webkit-user-select: text;
}
.card-head { font-size: clamp(40px, 12vw, 64px); color: var(--accent); margin: 6px 0 0; }
.card-line { font-size: 18px; margin: 12px 0 6px; }
.card-goes { font-size: 22px; letter-spacing: 2px; margin: 4px 0 6px; }
.card .home-actions { margin-top: 14px; }
.card.pop { animation: rise 160ms ease-out; }
@keyframes rise { from { transform: translate(-50%, -38%); opacity: 0.6; } to { transform: translate(-50%, -42%); } }
@media (prefers-reduced-motion: reduce) { .card.pop { animation: none; } }
@media (max-height: 600px) {
  .card { padding: 12px 14px 14px; }
  .card-head { font-size: 40px; }
  .card-line { margin-top: 8px; }
  .hud .num { font-size: 21px; }
}
