/* Hold Still. Page shell + every UI screen. Brand tokens match wildroads.com.au (assets/site.css). */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
html, body { margin: 0; height: 100%; background: #13284b; overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: absolute; inset: 0; pointer-events: none; }

.hs {
  --bone: #f5f1ea; --paper: #fffdf8; --sand: #ebe2d3; --ink: #1c2230; --muted: #5b6270; --navy: #13284b;
  --euc: #4b7055; --euc-soft: #dfe7dc; --ochre: #b5532a; --ochre-d: #8e3c1b; --peach: #f2c8a6; --gold: #e3a13a;
  --line: rgba(28, 34, 48, .14); --dk: rgba(12, 22, 40, .62);
  --fd: "Fraunces", Georgia, "Times New Roman", serif; --fb: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px);
  --pt: max(12px, var(--st)); --pr: max(14px, var(--sr)); --pb: max(12px, var(--sb)); --pl: max(14px, var(--sl));
  --sh: 0 18px 50px rgba(8, 14, 26, .34), 0 2px 8px rgba(8, 14, 26, .18);
  position: absolute; inset: 0; overflow: hidden; color: var(--ink); font: 15px/1.4 var(--fb);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
:where(.hs) :where(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
:where(.hs) :where(ul, ol) { list-style: none; padding: 0; }
:where(.hs) svg { display: block; }
.hs :focus { outline: none; }
.hs :focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.hs .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* layers */
.L { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.L.on { visibility: visible; opacity: 1; transition: opacity .3s; }
.title.on, .res.on, .lb.on, .guide.on, .det.on, .pause.on, .rot.on { pointer-events: auto; }

/* shared bits */
.panel { background: rgba(245, 241, 234, .95); border-radius: 22px; box-shadow: var(--sh); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  @supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .panel { background: rgba(245, 241, 234, .86); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
  }
}
.kick { font: 700 11px/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--euc); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 99px; border: 2px solid var(--ink); background: var(--ink); color: var(--bone); font: 700 15px/1.1 var(--fb);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.btn:active { transform: scale(.96); }
.btn.go { background: var(--ochre); border-color: var(--ochre); color: #fff; min-height: 52px; padding: 0 26px; font-size: 17px; box-shadow: 0 6px 18px rgba(181, 83, 42, .35); }
.btn.go:hover { background: var(--ochre-d); border-color: var(--ochre-d); }
.btn.gh { background: transparent; color: var(--ink); }
.btn.gh:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.eu { background: var(--euc); border-color: var(--euc); color: #fff; }
.btn.eu:hover { background: #3c5b45; border-color: #3c5b45; }
.btn .i, .btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn .i svg { width: 100%; height: 100%; }
.ib { width: 46px; height: 46px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; border: 0; padding: 0;
  background: var(--ink); color: var(--bone); cursor: pointer; transition: transform .15s, background-color .2s; }
.ib:hover { background: var(--ochre); color: #fff; }
.ib:active { transform: scale(.93); }
.ib svg { width: 22px; height: 22px; fill: currentColor; }
.ib.dk { background: var(--dk); box-shadow: 0 2px 10px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.st { font: 15px/1 var(--fb); letter-spacing: 1px; color: var(--gold); white-space: nowrap; }
.st i { font-style: normal; opacity: .25; color: currentColor; }
.cnt { font-variant-numeric: tabular-nums; opacity: .75; font-weight: 600; }

/* ---------- title ---------- */
.title { display: flex; align-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); }
.tcard { width: min(540px, 100%); padding: clamp(18px, 4.5vh, 40px) clamp(20px, 4vw, 40px); position: relative; }
.title.on .tcard { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.tcard > .snd { position: absolute; top: 12px; right: 12px; }
.tcard > .kick { padding-right: 44px; }
.wm { position: relative; display: inline-block; margin: 18px 0 14px; padding: 0 8px; font: 700 clamp(46px, 14vh, 100px)/.95 var(--fd); color: var(--navy); letter-spacing: -.02em; }
.af { position: absolute; inset: -9px -4px -7px; animation: focus 1.1s .25s cubic-bezier(.2, .9, .3, 1.15) both; }
.af i { position: absolute; width: 16px; height: 16px; border: 3px solid var(--euc); }
.af i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.af i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.af i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
.af i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }
.pitch { font: 500 clamp(16px, 2.4vh + 8px, 22px)/1.28 var(--fd); color: var(--ochre-d); margin: 8px 0 16px; max-width: 30ch; }
.best { font: 600 13px/1.3 var(--fb); color: var(--euc); margin-top: 10px; }
.best:empty { display: none; }
.howto { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.howto .coarse, .hs.touch .howto .fine { display: none; }
.hs.touch .howto .coarse { display: inline; }
.credit { font-size: 13px; line-height: 1.4; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.back { display: inline-block; margin-top: 6px; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--ochre-d); text-underline-offset: .18em; }
.back:hover { color: var(--ochre); }
@media (max-height: 430px) {
  .tcard { padding: 14px 22px 12px; }
  .wm { font-size: 56px; margin: 15px 0 11px; }
  .pitch { margin: 4px 0 12px; font-size: 17px; }
  .best { margin-top: 8px; }
  .howto { margin-top: 8px; }
}
@media (max-width: 560px) and (orientation: portrait) {
  .title { align-items: flex-end; }
  .wm { font-size: 58px; }
  .tcard .btn { padding: 0 16px; }
}

/* ---------- portrait hint ---------- */
.rot { z-index: 30; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 30%, #1d3a66, #13284b 70%); }
.rot p { font: 600 24px/1.25 var(--fd); max-width: 15ch; }
.phone { width: 50px; height: 84px; border: 3px solid #fff; border-radius: 10px; position: relative; animation: turn 2.6s ease-in-out infinite; }
.phone i { position: absolute; left: 50%; bottom: 6px; width: 12px; height: 3px; margin-left: -6px; border-radius: 2px; background: #fff; }

/* ---------- map postcard ---------- */
.intro { display: grid; place-items: center; perspective: 1400px; background: radial-gradient(ellipse at center, rgba(8, 14, 26, 0) 30%, rgba(8, 14, 26, .45)); }
.pc { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; width: min(680px, calc(100vw - 28px)); height: min(430px, calc(100vh - 28px));
  padding: clamp(12px, 3vh, 22px); background: var(--paper); border-radius: 10px; box-shadow: var(--sh); transform-origin: 50% 60%; }
.pc::after { content: ""; position: absolute; inset: 5px; border-radius: 7px; border: 1px solid rgba(28, 34, 48, .08); pointer-events: none; }
.intro.on .pc { animation: flip .62s cubic-bezier(.2, .75, .25, 1) both; }
.pcm { min-width: 0; min-height: 0; padding-right: clamp(10px, 2vw, 18px); border-right: 1px solid var(--line); display: grid; place-items: center; }
.pcm svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.pct { position: relative; min-width: 0; padding: 2px 0 0 clamp(12px, 2.2vw, 22px); display: flex; flex-direction: column; justify-content: center; }
.stamp { position: absolute; top: 0; right: 0; width: 58px; height: 70px; padding: 4px; transform: rotate(3deg);
  background: radial-gradient(circle, transparent 2.1px, var(--paper) 2.5px) -4px -4px / 8px 8px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.stamp svg { width: 100%; height: 100%; }
.pmk { position: absolute; top: 18px; right: 34px; width: 104px; color: rgba(19, 40, 75, .55); transform: rotate(-12deg); }
.intro.on .pmk { animation: thump .4s .55s cubic-bezier(.3, 1.4, .5, 1) both; }
.pct .kick { margin-top: 56px; color: var(--ochre-d); }
.pct h2 { font: 700 clamp(22px, 3.2vh + 12px, 34px)/1.05 var(--fd); color: var(--navy); margin: 4px 0 4px; letter-spacing: -.01em; }
.place { color: var(--muted); font-size: 14px; }
.look { font: 700 11px/1.2 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--euc); margin: clamp(8px, 2.4vh, 16px) 0 4px; }
.pct ul { font: 500 clamp(14.5px, 1.4vh + 9px, 17px)/1.45 var(--fd); }
.pct li { display: flex; align-items: center; gap: 8px; }
.pct li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--euc); }
.pct li.got::after { content: "✓"; font: 700 12px var(--fb); color: var(--euc); }
.intro.on .pct li { animation: rise .4s both; }
.intro.on .pct li:nth-child(1) { animation-delay: .5s; } .intro.on .pct li:nth-child(2) { animation-delay: .58s; }
.intro.on .pct li:nth-child(3) { animation-delay: .66s; } .intro.on .pct li:nth-child(4) { animation-delay: .74s; }
.pcm .ld { fill: #e7d9c0; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.pcm .rt { fill: none; stroke: var(--navy); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 19; opacity: .5; }
.pcm .rt.now { stroke: var(--ochre); stroke-width: 9; opacity: 1; }
.intro.on .pcm .rt.now { animation: fade .5s .45s both; }
.pcm .pn { stroke: var(--paper); stroke-width: 4; }
.pcm .was { fill: var(--navy); }
.pcm .next { fill: var(--paper); stroke: var(--navy); stroke-width: 4; }
.pcm .cur { fill: var(--ochre); stroke-width: 5; transform-box: fill-box; transform-origin: center; }
.intro.on .pcm .cur { animation: pin .5s .6s cubic-bezier(.3, 1.7, .5, 1) both; }
.pcm .pu { fill: none; stroke: var(--ochre); stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 1.5s 1s ease-out infinite; }
.pcm .ll { stroke: var(--navy); stroke-width: 3; opacity: .5; }
.pcm .lr { fill: none; stroke: var(--navy); stroke-width: 3.5; opacity: .55; }
.pcm .lr.hot { stroke: var(--ochre); opacity: 1; }
.pcm .lrim { fill: none; stroke: var(--navy); stroke-width: 6; }
.pcm .mr { fill: none; stroke: #6f9fc2; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
@media (max-width: 560px) and (orientation: portrait) {
  .pc { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: min(640px, calc(100vh - 40px)); }
  .pcm { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pct { padding: 12px 0 0; justify-content: flex-start; }
}

/* ---------- HUD ---------- */
.where { position: absolute; left: var(--pl); top: var(--pt); max-width: min(46vw, 330px); padding: 7px 14px 9px; border-radius: 14px;
  background: var(--dk); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tod { display: block; font: 700 10px/1.3 var(--fb); letter-spacing: .15em; text-transform: uppercase; color: var(--peach); }
.where b { display: block; font: 600 15px/1.25 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.prog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transition: transform .12s linear; }
.hud.end .prog i { background: var(--peach); }
.hud.end .where { animation: blink 1s ease-in-out infinite; }
.tr { position: absolute; right: var(--pr); top: var(--pt); display: flex; gap: 8px; align-items: center; }
.film { display: flex; gap: 3px; padding: 8px 9px; border-radius: 12px; background: var(--dk); box-shadow: 0 2px 12px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.film i { width: 8px; height: 12px; border-radius: 2px; background: var(--bone); transition: opacity .3s, transform .3s; }
.film i.u { opacity: .2; transform: scale(.72); }
.pz { pointer-events: auto; }
.legend { position: absolute; left: 50%; bottom: var(--pb); transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; white-space: nowrap;
  font: 600 12px/1.3 var(--fb); color: rgba(255, 255, 255, .85); background: rgba(12, 22, 40, .35); }
.hs.touch .legend { display: none; }
.shut, .zm { position: absolute; display: none; pointer-events: auto; touch-action: none; border: 0; padding: 0; cursor: pointer; place-items: center; -webkit-user-select: none; user-select: none; }
.hs.touch .shut, .hs.touch .zm { display: grid; }
.shut { right: max(18px, calc(var(--sr) + 10px)); bottom: max(18px, calc(var(--sb) + 10px)); width: 80px; height: 80px; border-radius: 50%;
  background: rgba(12, 22, 40, .3); box-shadow: inset 0 0 0 4px var(--bone), 0 4px 18px rgba(0, 0, 0, .35); }
.shut i { width: 60px; height: 60px; border-radius: 50%; background: var(--bone); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .08s; }
.shut.dn i { transform: scale(.86); }
.shut::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 3px #86d39a; opacity: 0; transition: opacity .15s; }
.shut.steady::after { opacity: 1; }
.shut.empty { opacity: .45; }
.shut::before, .zm::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.walk { position: absolute; right: max(16px, calc(var(--sr) + 8px)); bottom: max(22px, calc(var(--sb) + 14px)); display: none; pointer-events: auto; touch-action: none; }
.hud.out .walk { display: inline-flex; animation: rise .35s both; }
.hud.out .shut { display: none; }
.hud.out .legend { opacity: 0; }
.mom { position: absolute; z-index: 2; padding: 5px 12px; border-radius: 99px; white-space: nowrap; pointer-events: none;
  font: 700 15px/1.2 var(--fd); color: var(--ink); background: #f3c25c; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transform: translateX(-50%); }
.zm { left: max(18px, calc(var(--sl) + 10px)); bottom: max(26px, calc(var(--sb) + 18px)); width: 62px; height: 62px; border-radius: 50%;
  background: var(--dk); color: #fff; font: 700 19px/1 var(--fb); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75), 0 4px 14px rgba(0, 0, 0, .3); transition: transform .08s, background-color .2s; }
.zm.dn { transform: scale(.92); }
.zm.z3 { background: var(--ochre); }
.hint { position: absolute; left: 50%; top: calc(var(--pt) + 4px); max-width: min(60vw, 420px); padding: 7px 16px; border-radius: 99px; text-align: center;
  font: 700 14px/1.3 var(--fb); color: var(--ink); background: rgba(245, 241, 234, .94); box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s, transform .25s; }
.hint.on { opacity: 1; transform: translate(-50%, 0); }

/* polaroids */
.pol { display: block; background: var(--paper); padding: 7px 7px 0; border-radius: 3px; box-shadow: 0 12px 30px rgba(0, 0, 0, .38), 0 1px 3px rgba(0, 0, 0, .2); color: var(--ink); }
.pol canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #2a3446; }
.pol figcaption, .pol .cap { display: block; padding: 6px 2px 8px; }
.pol b { display: block; font: 700 14px/1.15 var(--fd); color: var(--navy); }
.sc { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font: 700 13px/1.2 var(--fb); font-variant-numeric: tabular-nums; }
.sc .st { font-size: 13px; }
.sc > i { font: 800 11px/1.2 var(--fb); font-style: normal; padding: 2px 7px; border-radius: 99px; background: var(--sand); color: var(--ink); }
.sc > i.good { background: #f3c25c; }
.tg { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.tg i { font: 700 10px/1.2 var(--fb); font-style: normal; letter-spacing: .02em; padding: 2px 6px; border-radius: 99px; background: var(--euc-soft); color: var(--euc); }
.pops { position: absolute; left: 0; right: 0; bottom: calc(var(--pb) + 4px); height: 0; }
.pop { position: absolute; left: 50%; bottom: 0; width: 156px; margin-left: -78px; }
.pop.miss b { color: var(--muted); font-style: italic; }
.new { position: absolute; top: -12px; right: -14px; padding: 6px 8px; border-radius: 99px; background: var(--ochre); color: #fff;
  font: 800 12px/1 var(--fb); letter-spacing: .04em; transform: rotate(12deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); animation: pin .45s .3s cubic-bezier(.3, 1.8, .5, 1) both; }
@media (min-height: 600px) and (min-width: 900px) { .pop { width: 190px; margin-left: -95px; } .pol b { font-size: 16px; } }

/* stop banner */
.band { display: grid; place-items: center; padding: 16px; }
.rib { max-width: min(640px, 100%); padding: 16px 28px 18px; border-radius: 20px; text-align: center; color: #fff;
  background: rgba(19, 40, 75, .9); box-shadow: var(--sh); }
.band.on .rib { animation: slide .5s cubic-bezier(.2, .8, .2, 1) both; }
.rib .kick { color: var(--peach); }
.rib h2 { font: 700 clamp(28px, 6vh + 6px, 44px)/1.05 var(--fd); margin: 4px 0 10px; }
.rib ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rib li { padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font: 600 14px/1.3 var(--fb); }
.band.on .rib li { animation: rise .35s calc(.25s + var(--i) * .07s) both; }
.rib li .st { font-size: 12px; }
.rib .none { opacity: .85; }

/* ---------- results ---------- */
.res { display: flex; flex-direction: column; background: rgba(10, 18, 34, .74); }
.rin { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: var(--pt) max(var(--pr), calc((100% - 1060px) / 2)) 18px max(var(--pl), calc((100% - 1060px) / 2)); }
.rin > * + * { margin-top: 20px; }
.rtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; min-height: calc(100vh - 96px); }
.rbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px max(var(--pr), calc((100% - 1060px) / 2)) var(--pb) max(var(--pl), calc((100% - 1060px) / 2));
  background: rgba(10, 18, 34, .88); box-shadow: 0 -1px 0 rgba(255, 255, 255, .1); }
.rbar .go { margin-left: auto; }
.rbar .lt { color: #fff; border-color: rgba(255, 255, 255, .55); padding: 0 16px; }
.rbar .lt:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hs :focus-visible { outline-color: var(--ochre); }
.res :focus-visible, .rbar :focus-visible { outline-color: var(--peach); }
@media (max-width: 760px) { .rbar .lb2 { display: none; } .rbar .lt { width: 46px; padding: 0; } }
.delta { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.delta span { display: block; }
.still h3, .sheet h3 { font: 700 24px/1.2 var(--fd); color: #fff; }
.still ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 10px; }
.still button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, .75); font: 700 10.5px/1.2 var(--fb); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.still .ph { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--t); margin-bottom: 4px; transition: transform .15s; }
.still button:hover .ph { transform: translateY(-2px); }
.still .ph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.still .q { font-size: 16px; right: 6px; bottom: 4px; }
.still .sub, .sheet .sub { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 2px 0 12px; }
.tip { margin: 2px 0 6px; padding: 9px 12px; border-radius: 12px; background: var(--euc-soft); font-size: 14px; line-height: 1.4; }
.tip b { color: var(--euc); }
.nxt { font: 700 13px/1.3 var(--fb); color: var(--ochre-d); margin-bottom: 10px; }
.pol.big { position: relative; border: 0; padding: 10px 10px 0; text-align: left; font: inherit; cursor: pointer; transform: rotate(-2deg); max-width: min(520px, calc((100vh - 190px) * 1.5)); justify-self: center; width: 100%; transition: transform .25s; }
.pol.big:hover { transform: rotate(-1deg) scale(1.01); }
.res.on .pol.big { animation: drop .7s .15s cubic-bezier(.2, .8, .25, 1.1) both; }
.pol.big .cap { padding: 9px 4px 12px; }
.pol.big b { font-size: 20px; }
.pol.big .kick { color: var(--ochre-d); }
.pol.blank p { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 20px; text-align: center; background: #2a3446; color: #fff; font: 600 17px/1.3 var(--fd); }
.rcard { padding: clamp(16px, 3vh, 26px) clamp(18px, 2.4vw, 28px); display: grid; gap: 10px; }
.res.on .rcard { animation: rise .55s .05s cubic-bezier(.2, .8, .2, 1) both; }
.score { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.score b { display: inline-grid; font: 700 clamp(40px, 9vh, 68px)/1 var(--fd); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score b > * { grid-area: 1 / 1; font-style: normal; }
.score b > i { visibility: hidden; }
.score > span { font: 600 15px var(--fb); color: var(--muted); }
.rank { font: 600 clamp(17px, 2vh + 9px, 22px)/1.2 var(--fd); color: var(--ochre-d); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb { font: 800 11px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--gold); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats b { display: block; font: 700 24px/1.1 var(--fd); color: var(--navy); }
.stats span { display: block; font-size: 12px; line-height: 1.25; color: var(--muted); }
.rcard .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.rcard .btn.go { min-height: 48px; padding: 0 22px; font-size: 16px; }
.real { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: center; padding: 14px; }
.rp { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.rp img, .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
img.framed { transform: scale(1.08); }
.real h3 { font: 700 24px/1.1 var(--fd); color: var(--navy); margin: 4px 0 6px; }
.real p { font-size: 14.5px; line-height: 1.5; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ochre-d); text-underline-offset: .18em; }
.links a::after { content: " →"; white-space: pre; }
.links a:hover { color: var(--ochre); }
.sheet { color: #fff; }
.strip { margin-bottom: 14px; padding: 12px 12px 10px; border-radius: 6px; background: #0b0f17;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.6px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, .16) 1.6px, transparent 2px);
  background-size: 14px 8px; background-position: 0 1px, 0 calc(100% - 1px); background-repeat: repeat-x; }
.sl { font: 700 11px/1.2 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin: 2px 0 8px; }
.strip ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.fr { display: block; width: 100%; padding: 0; border: 0; background: none; color: #f2b45e; cursor: pointer; text-align: left; font: 700 10.5px/1.2 var(--fb); }
.fr canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 2px; transition: transform .15s; }
.fr:hover canvas { transform: scale(1.04); }
.fr span { display: block; padding: 4px 1px 0; white-space: nowrap; overflow: hidden; }
.fr.miss canvas { opacity: .55; }
.fr.miss span { color: rgba(255, 255, 255, .45); }
@media (max-width: 700px) {
  .rtop { grid-template-columns: 1fr; min-height: 0; padding-top: 6px; }
  .pct .stamp { top: 10px; } .pct .pmk { top: 26px; }
  .pol.big { max-width: 360px; }
  .real { grid-template-columns: 1fr; }
}
@media (max-height: 440px) and (min-width: 701px) {
  .rcard { gap: 7px; }
  .score b { font-size: 46px; }
  .stats b { font-size: 21px; }
}

/* lightbox */
.lb { display: grid; place-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); background: rgba(6, 10, 18, .82); }
.lbx { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; width: min(900px, 100%); max-height: 100%; overflow-y: auto; padding: 18px; }
.lb.on .lbx, .det.on .dbox, .pause.on .pbox { animation: pop .3s cubic-bezier(.2, .8, .3, 1.1) both; }
.lbp canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; background: #2a3446; }
.lbi h3 { font: 700 24px/1.1 var(--fd); color: var(--navy); padding-right: 48px; }
.lbi .sc { font-size: 15px; margin: 4px 0 6px; }
.lbi .sub { color: var(--muted); margin: 4px 0; }
.bd { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 13.5px; }
.bd th { text-align: left; font-weight: 600; padding: 4px 10px 4px 0; white-space: nowrap; width: 1%; }
.bd td { padding: 4px 0; }
.bd td:last-child { text-align: right; width: 3.2em; font-variant-numeric: tabular-nums; font-weight: 700; }
.bar { display: block; height: 7px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--euc); transform-origin: 0 50%; }
.x { position: absolute; top: 10px; right: 10px; z-index: 2; }
@media (max-width: 640px) { .lbx { grid-template-columns: 1fr; } }

/* ---------- field guide ---------- */
.guide { display: flex; flex-direction: column; background: var(--bone); color: var(--ink); }
.ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--pt) var(--pr) 10px var(--pl); border-bottom: 1px solid var(--line); background: var(--paper); }
.ghead h2 { font: 700 clamp(22px, 2vh + 14px, 30px)/1.1 var(--fd); color: var(--navy); }
.gt p { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gbar { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.gbar i { display: block; height: 100%; background: var(--euc); transform-origin: 0 50%; transition: transform .6s; }
.gl { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px max(var(--pr), calc((100% - 1100px) / 2)) calc(var(--pb) + 12px) max(var(--pl), calc((100% - 1100px) / 2)); }
.gs h3 { font: 700 11px/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--euc); margin: 14px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.gc { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; text-align: left; cursor: pointer;
  background: var(--paper); color: inherit; font: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.gc:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .14), 0 0 0 1px var(--line); }
.gc .ph, .pair .ph { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--t, #2a3446); }
.gc .ph > img, .gc .ph > canvas, .pair .ph > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.gc:not(.f) .ph > canvas, .pair .ph > canvas + .q { opacity: .92; }
.q { position: absolute; right: 8px; bottom: 6px; font: 700 22px/1 var(--fd); color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.sec .ph { background: repeating-linear-gradient(135deg, #1c2a44 0 10px, #22324f 10px 20px); }
.sec .q, .pair .ph > .q:only-child { right: 0; left: 0; top: 0; bottom: 0; display: grid; place-items: center; font-size: 28px; letter-spacing: .1em; }
.cards li { display: flex; }
.gc { display: flex !important; flex-direction: column; }
.gc .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 7px 9px 0; font: 600 13.5px/1.2 var(--fd); flex: 1; }
.gc:not(.f) .nm { color: var(--muted); font-family: var(--fb); font-size: 12.5px; }
.gc .st { display: block; padding: 3px 9px 8px; font-size: 12px; }
.gc .when { color: var(--muted); font: 600 11px/1 var(--fb); letter-spacing: .06em; text-transform: uppercase; min-height: 23px; padding-top: 5px; }
.gc .new { top: 6px; right: 6px; padding: 4px 7px; font-size: 10px; transform: rotate(6deg); }
.mb { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 3px 7px; border-radius: 99px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 10px/1.2 var(--fb); font-style: normal; color: rgba(255, 255, 255, .8); background: rgba(10, 16, 28, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.mb.on { color: var(--ink); background: #f3c25c; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

/* species detail */
.det { display: grid; place-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); background: rgba(6, 10, 18, .6); }
.dbox { position: relative; width: min(780px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 20px; background: var(--paper); }
.dbox h2 { font: 700 clamp(24px, 2vh + 16px, 34px)/1.05 var(--fd); color: var(--navy); margin: 4px 50px 2px 0; }
.sci { font: italic 500 15px var(--fd); color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.pair .ph { border-radius: 10px; }
.pair figcaption { font-size: 12.5px; margin-top: 5px; color: var(--muted); }
.pair figcaption b { color: var(--ink); }
.pair .none { display: grid; place-items: center; padding: 14px; text-align: center; background: repeating-linear-gradient(135deg, #1c2a44 0 10px, #22324f 10px 20px); color: #fff; font: 500 14px/1.35 var(--fd); }
.locked img { filter: blur(14px) brightness(.55) saturate(.8); transform: scale(1.2); }
.lock { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: #fff; font: 700 14px/1.3 var(--fb); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.dbox > p { font-size: 14.5px; line-height: 1.5; margin-top: 8px; max-width: 64ch; }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }

/* pause */
.pause { display: grid; place-items: center; background: rgba(6, 10, 18, .5); }
.pbox { display: grid; gap: 10px; width: min(300px, calc(100vw - 32px)); padding: 22px 22px 20px; text-align: center; }
.pbox h2 { font: 700 30px/1 var(--fd); color: var(--navy); margin-bottom: 6px; }
@media (max-height: 380px) { .pbox { gap: 7px; padding: 14px 18px; } .pbox h2 { font-size: 24px; margin: 0; } .pbox .btn { min-height: 44px; } }

/* toast */
.toast { position: absolute; left: 50%; top: calc(var(--pt) + 6px); z-index: 40; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff;
  font: 700 14px/1.2 var(--fb); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, -10px); transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(-8deg); } }
@keyframes slide { from { opacity: 0; transform: translateX(-40px) skewX(-6deg); } }
@keyframes flip { from { opacity: 0; transform: rotateY(-100deg) scale(.86); } 45% { opacity: 1; } }
@keyframes thump { from { opacity: 0; transform: rotate(-12deg) scale(1.7); } }
@keyframes pin { from { transform: scale(0); } }
@keyframes pulse { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(2.7); } }
@keyframes focus { 0% { opacity: 0; transform: scale(1.22, 1.5); } 55% { opacity: 1; transform: none; } 70% { opacity: .35; } 85%, 100% { opacity: 1; } }
@keyframes turn { 0%, 22% { transform: rotate(0); } 48%, 78% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@keyframes blink { 50% { opacity: .72; } }
@media (prefers-reduced-motion: reduce) {
  .hs *, .hs *::before, .hs *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pcm .pu { display: none; }
}
