:root {
  --bg: #0b0b0b; --panel: #151515; --line: #262626; --text: #f2f2f2; --dim: #9a9a9a;
  --gold: #f5c518; --red: #ff4d4d; --amber: #ffab40; --green: #6fcf97;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(11,11,11,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.back { background: transparent; border: 1px solid #3a3a3a; color: var(--text); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 700; margin-right: 10px; }
.top { gap: 8px; }
.brand { flex: 1; }
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 19px; letter-spacing: -.01em; }
.brand b { color: var(--gold); }
.bite-btn { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }

main { max-width: 520px; margin: 0 auto; padding: 16px 16px 48px; }
.screen { display: none; }
.screen.active { display: block; animation: in .18s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }

h2 { font-size: 24px; line-height: 1.2; margin: 8px 0 12px; letter-spacing: -.01em; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: 24px 0 8px; }
.goal { font-size: 18px; margin: 4px 0 16px; color: var(--text); }
.fine { color: var(--dim); font-size: 14px; }
.label { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.big { font-size: 20px; font-weight: 700; }
.sub { color: var(--dim); font-size: 14px; }
.right { text-align: right; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.place-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.place-row + .place-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.count { margin-top: 14px; font-size: 15px; color: var(--gold); }
select { background: #0f0f0f; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 18px; font-weight: 700; }

.primary, .secondary, .ghost { display: block; border-radius: 12px; font-weight: 700; text-align: center; }
.primary { width: 100%; background: var(--gold); color: #111; border: 0; padding: 18px; font-size: 19px; margin: 8px 0; }
.primary:active { transform: scale(.99); }
.secondary { background: transparent; color: var(--text); border: 1px solid #3a3a3a; padding: 14px; font-size: 16px; margin: 8px 0; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--gold); padding: 8px 12px; font-size: 14px; }
.wide { width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .secondary { margin: 0; }
.file { cursor: pointer; }
.link { text-decoration: none; }

.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.presets button { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: left; }
.presets small { display: block; color: var(--dim); font-size: 12px; }

.preview { margin: 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.preview img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #000; }
.working { display: flex; align-items: center; gap: 10px; color: var(--dim); margin: 12px 0; }
.spin { width: 18px; height: 18px; border: 2px solid #333; border-top-color: var(--gold); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.error { color: var(--red); }

.warn { background: rgba(255,77,77,.12); border: 1px solid rgba(255,77,77,.5); color: #ffd6d6; border-radius: 12px;
  padding: 12px 14px; font-weight: 700; margin-bottom: 14px; }
.headline { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 4px 0 6px; letter-spacing: -.01em; }
.sci { color: var(--dim); font-style: italic; font-size: 14px; }
.tier { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.cand { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; }
.cand.best { border-color: rgba(245,197,24,.5); }
.cand-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cand-name { font-weight: 700; font-size: 17px; }
.pct { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 5px; background: #242424; border-radius: 3px; margin: 8px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); }
.look { color: #cfcfcf; font-size: 14px; margin: 6px 0 0; }
.clues { color: var(--dim); font-size: 13px; margin: 6px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-top: 8px; }
.tag.yes { background: rgba(255,77,77,.16); color: var(--red); }
.tag.mild { background: rgba(255,171,64,.16); color: var(--amber); }
.tag.no { background: #222; color: #bbb; }
.compare { border-left: 3px solid var(--red); padding-left: 12px; margin-top: 18px; }
.meta { color: #666; font-size: 12px; margin-top: 18px; }

.call-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.call { display: flex; flex-direction: column; justify-content: center; text-align: center; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid #3a3a3a; border-radius: 12px; padding: 14px 8px; font-weight: 800; font-size: 17px; min-height: 64px; }
.call small { font-weight: 500; color: var(--dim); font-size: 13px; }
.call.red { background: var(--red); border-color: var(--red); color: #fff; font-size: 20px; }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin: 8px 0; }
.steps.no li::marker { content: "\2715  "; color: var(--red); }

.brain { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.brain .fine { flex: 1; margin: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #444; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 8px rgba(111,207,151,.6); }
.venom-meter { display: flex; justify-content: space-between; align-items: center; border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; }
.venom-meter b { font-size: 22px; font-variant-numeric: tabular-nums; }
.venom-meter.hi { background: rgba(255,77,77,.16); color: var(--red); }
.venom-meter.mid { background: rgba(255,171,64,.14); color: var(--amber); }
.venom-meter.lo { background: #1b1b1b; color: #cfcfcf; }
.search { width: 100%; background: #0f0f0f; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; margin: 4px 0 12px; }
.trail { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; }
.trail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.trail-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.easy { background: rgba(111,207,151,.15); color: var(--green); }
.pill.moderate { background: rgba(245,197,24,.15); color: var(--gold); }
.pill.hard { background: rgba(255,171,64,.16); color: var(--amber); }
.pill.veryhard { background: rgba(255,77,77,.16); color: var(--red); }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 2px; }
.fact b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.fact span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.trail-snakes { color: #cfcfcf; font-size: 14px; margin-top: 10px; border-left: 3px solid var(--gold);
  padding-left: 10px; }
.trail-go { display: inline-block; margin-top: 10px; color: var(--gold); font-size: 14px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.meter { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; text-align: center; transition: border-color .2s, background .2s; }
.meter-state { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.meter-bar { height: 12px; background: #242424; border-radius: 6px; margin: 14px 0 10px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s linear; }
.meter-sub { color: var(--dim); font-size: 14px; }
.meter.mid { border-color: rgba(255,171,64,.55); }
.meter.mid .meter-state { color: var(--amber); }
.meter.mid .meter-bar i { background: var(--amber); }
.meter.hi { border-color: rgba(255,77,77,.7); background: rgba(255,77,77,.1); }
.meter.hi .meter-state { color: var(--red); }
.meter.hi .meter-bar i { background: var(--red); }
.miclevel { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mic-bar { flex: 1; height: 6px; background: #242424; border-radius: 3px; overflow: hidden; }
.mic-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .1s linear; }
.srow { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.srow-text { flex: 1; min-width: 0; }
.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: #1b1b1b; }
.shot { margin: 10px 0 0; }
.shot img { width: 100%; border-radius: 10px; display: block; background: #1b1b1b; }
.shot figcaption { color: #6f6f6f; font-size: 11px; margin-top: 4px; }
.unchecked { border-left: 3px solid var(--amber); background: rgba(255,171,64,.08); color: #e8c99a;
  font-size: 13px; padding: 8px 10px; border-radius: 0 8px 8px 0; margin-top: 10px; }
.unchecked.small { font-size: 12px; padding: 6px 8px; }
.srow .tag { margin: 4px 0 2px; white-space: nowrap; }
.srow .look { margin-top: 4px; }
.srow .cand-name { font-size: 16px; line-height: 1.25; }
.out { color: var(--dim); font-size: 12px; }

/* ---- Snake facts + first-open notice (2026-10-02) ---- */
#facts .warn { margin-bottom: 12px; }
#facts .search { margin-bottom: 14px; }
.fact h3 { margin: 0 0 8px; }
.fact ul { padding-left: 20px; margin: 0; }
.fact li { margin: 7px 0; line-height: 1.45; }
mark { background: rgba(245,197,24,.28); color: inherit; border-radius: 3px; padding: 0 1px; }
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate[hidden] { display: none; }
.gate-box { background: var(--panel); border: 1px solid var(--red); border-radius: 16px; padding: 22px 20px; max-width: 420px; width: 100%; }
.gate-box h2 { margin: 0 0 12px; color: var(--gold); }
.gate-box p { margin: 10px 0; line-height: 1.45; }
.gate-box .primary { width: 100%; margin-top: 16px; }
