:root {
  --bg: #0b0b0d;
  --fg: #ececec;
  --muted: #8d8d93;
  --line: #26262b;
  --accent: #ff5a36;
  --font: ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --header-h: 56px;
}
* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; background: var(--bg); overscroll-behavior: none; }
/* Pinned body: iOS Safari can scroll the document behind an overflow:hidden body (e.g. when the
   keyboard opens); position:fixed removes the document scroll entirely. */
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%;
  position: fixed; inset: 0; overflow: hidden; display: flex; flex-direction: column; width: 100%; height: 100%; }

header {
  flex: 0 0 auto; height: var(--header-h); box-sizing: border-box; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 18px; background: var(--bg);
}
.brand { font-weight: 700; letter-spacing: -0.02em; background: none; border: 0; padding: 0; color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.brand:hover { color: var(--accent); }
.where {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
  max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto;
}
.where:hover { color: var(--fg); border-color: var(--muted); }

.deck {
  flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.deck::-webkit-scrollbar { display: none; }
.panel {
  flex: 0 0 100%; min-height: 0; scroll-snap-align: start; scroll-snap-stop: always;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.panel::-webkit-scrollbar { display: none; }
.panel-inner {
  max-width: 720px; margin: 0 auto; padding: 0 22px 120px; min-height: 100%;
}

/* intro */
.intro .panel-inner { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100%; padding-top: 12px; padding-bottom: 16px; }
.intro .panel-inner > h1 { margin-top: clamp(8px, 6vh, 80px); }
.intro h1 { font-size: clamp(36px, 8vw, 64px); margin: 0 0 14px; letter-spacing: -0.03em; }
.blurb { font-size: 17px; line-height: 1.5; color: var(--fg); margin: 0 0 10px; max-width: 560px; }
.blurb.small { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ver { font-family: var(--mono); font-size: 12px; color: var(--muted); opacity: 0.7; }
.buildfoot { margin-top: auto; padding-top: 32px; padding-bottom: 8px; }
#status { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.when { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--fg); }
.when b { font-family: var(--mono); font-weight: 600; color: var(--accent); margin-right: 6px; }
.when small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search { display: flex; gap: 8px; margin-top: 20px; }
.search input { flex: 1; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #141417; color: var(--fg); }
.search button { font: inherit; padding: 12px 18px; border-radius: 10px; border: 0; background: var(--fg); color: var(--bg); cursor: pointer; }
.search .locate { background: #141417; color: var(--muted); border: 1px solid var(--line); padding: 0 14px; display: flex; align-items: center; }
.search .locate svg { display: block; }
.search .locate.on { color: #3b8cff; border-color: #3b8cff; }
.search .locate.on svg path { fill: currentColor; }
#go { position: relative; min-width: 64px; }
#go .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.25); border-top-color: var(--bg); border-radius: 50%; animation: spin 700ms linear infinite; margin: 0 auto; }
#go.busy .label { visibility: hidden; }
#go.busy .spinner { display: block; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.search .locate:hover { color: var(--fg); border-color: var(--muted); }
.search .locate.busy { color: var(--accent); }
.results { list-style: none; margin: 10px 0 0; padding: 0; }
.results li { padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--muted); }
.results li:hover { color: var(--fg); }

/* hazard panels */
.hero { padding-top: 8px; padding-bottom: 8px; }
.rank { font-family: var(--mono); color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.emoji { font-size: clamp(56px, 14vw, 96px); line-height: 1; margin: 10px 0 6px; }
.hero h2 { font-size: clamp(36px, 8vw, 72px); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 18px; }
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 900ms cubic-bezier(.2,.8,.2,1); }
.meter-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.next { display: inline-block; margin-top: 16px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-family: var(--mono); cursor: pointer; }
.next:hover { color: var(--fg); border-color: var(--muted); }

.body h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 32px 0 12px; font-family: var(--mono); }
.body p { font-size: 18px; line-height: 1.55; margin: 0 0 14px; }
.body ul { padding-left: 20px; font-size: 17px; line-height: 1.5; }
.body li { margin-bottom: 8px; }
.why li { list-style: none; margin-left: -20px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.why li b { color: var(--accent); font-family: var(--mono); font-weight: 600; margin-right: 8px; }
.live { border-left: 3px solid var(--accent); padding-left: 12px; }
.live .ts { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sources a { color: var(--muted); font-size: 14px; }
.sources a:hover { color: var(--fg); }
.foot { margin-top: 60px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* also-ran list on the last panel */
.others { margin-top: 20px; }
.others { list-style: none; padding: 0; }
.others li { border-bottom: 1px solid var(--line); }
.others .row { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 12px 0; font: inherit; font-family: var(--mono); font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; }
.others .row:hover, .others .row[aria-expanded="true"] { color: var(--fg); }
.others .chev { display: inline-block; font-style: normal; margin-left: 6px; transition: transform 200ms; }
.others .row[aria-expanded="true"] .chev { transform: rotate(180deg); }
.others .detail { padding: 4px 0 28px; }
.others .detail .body h3:first-child { margin-top: 24px; }

.dots { position: fixed; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; z-index: 10; pointer-events: none; }
.dots:empty { display: none; }
.dots-pill { display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background 200ms, transform 200ms; }
.dots i.on { background: var(--fg); transform: scale(1.3); }

.error { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .meter > i { transition: none; } #go .spinner { animation-duration: 2s; } }
