:root { --c-accent: #9fd0ff; --c-on-accent: #06080d;
  --c-page-bg: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.78) 75%); }
html, body { margin: 0; height: 100%; background: #000; color: #e9eef7; overflow: hidden;
  font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
#clock, #what { position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); pointer-events: none;
  text-shadow: 0 1px 6px #000, 0 0 2px #000; }
#clock { left: calc(16px + env(safe-area-inset-left)); }
#what { right: calc(16px + env(safe-area-inset-right)); text-align: right; }
#time { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
#dist, #fact { font-size: 14px; opacity: 0.82; font-variant-numeric: tabular-nums; }
#name { font-size: 22px; font-weight: 650; }
#scale { position: fixed; left: calc(16px + env(safe-area-inset-left)); top: calc(var(--band-h, 56px) + 10px);
  pointer-events: none; text-shadow: 0 1px 6px #000, 0 0 2px #000; line-height: 1.15;
  font-size: clamp(26px, 4.4vw, 44px); font-weight: 650; font-variant-numeric: tabular-nums; }
#leader { position: fixed; left: 50%; top: 50%; overflow: visible; pointer-events: none; opacity: 0; }
#leader path { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 2px #000); }
#leader path.tip { fill: #fff; stroke: none; }
#leader text { fill: #fff; font-size: 17px; font-weight: 650; paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: 3px; }
#nav { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; }
#nav .c-btn { min-width: 48px; min-height: 48px; padding: 0 12px; font-size: 16px; color: #fff;
  background: rgba(20, 24, 34, 0.55); border: 1px solid rgba(255, 255, 255, 0.4); }
#nav .c-btn svg { width: 20px; height: 20px; display: block; margin: auto; fill: currentColor; }
#nav #pause .i-play, #nav #pause.on .i-pause { display: none; }
#nav #pause.on .i-play { display: block; }
#pause.on { border-color: var(--c-accent); color: var(--c-accent); }
#dots { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
#dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
#dots i.done { background: rgba(255, 255, 255, 0.7); }
#dots i.now { background: var(--c-accent); box-shadow: 0 0 8px var(--c-accent); transform: scale(1.35); }
#caption, #end { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 24px; pointer-events: none;
  text-shadow: 0 2px 14px #000; animation: rise 0.5s ease-out both; }
#capBig, #endBig { font-size: clamp(30px, 6.5vw, 64px); font-weight: 700; letter-spacing: 0.01em; }
#capSmall, #endSmall { margin-top: 10px; font-size: clamp(15px, 2.4vw, 22px); opacity: 0.85;
  font-variant-numeric: tabular-nums; }
#end { background: rgba(0, 0, 0, 0.35); pointer-events: auto; }
#end .c-btn { margin-top: 26px; min-width: 120px; min-height: 48px; font-size: 17px; }
.idle #clock, .idle #what, .idle #scale, .idle #leader, .idle #nav, .idle #words, .idle #paused { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#paused { position: fixed; left: 50%; top: calc(var(--band-h, 56px) + 10px); transform: translateX(-50%);
  font-size: 22px; opacity: 0.7; pointer-events: none; text-shadow: 0 0 10px #000; }
#words { position: fixed; left: 0; right: 0; bottom: calc(132px + env(safe-area-inset-bottom)); text-align: center;
  padding: 0 20px; font-size: clamp(15px, 2.2vw, 21px); font-style: italic; pointer-events: none;
  text-shadow: 0 1px 8px #000, 0 0 3px #000; min-height: 1.3em; }
#fail { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 32px; text-align: center; font-size: 17px; background: #000; }
@media (max-width: 560px) {
  #scale { top: calc(var(--band-h, 56px) + 42px); }
  #speedBy { font-size: 0.82em; }
  #time { font-size: 22px; }
  #name { font-size: 17px; }
  #dist, #fact { font-size: 12px; }
  #dots { gap: 6px; }
  #dots i { width: 7px; height: 7px; }
  #nav { gap: 6px; }
}
@media (max-height: 420px) {
  #clock, #what { bottom: calc(68px + env(safe-area-inset-bottom)); }
  #scale { font-size: 24px; top: calc(var(--band-h, 56px) + 4px); }
  #time { font-size: 22px; }
  #name { font-size: 17px; }
}
.shot #clock, .shot #what, .shot #scale, .shot #leader, .shot #nav, .shot #paused, .shot #words, .shot #c-band { display: none !important; }
