/* Paros Photo Hunt. Design tokens first; everything else uses them.
   Palette from the town: deep Aegean ink, dome blue, whitewash, warm stone, sun, bougainvillea. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(vendor/fonts/inter-latin-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(vendor/fonts/inter-latin-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(vendor/fonts/inter-latin-800.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(vendor/fonts/inter-greek-400.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(vendor/fonts/inter-greek-600.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(vendor/fonts/inter-greek-800.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: Fraunces; font-weight: 700; font-display: swap; src: url(vendor/fonts/fraunces-latin-700.woff2) format("woff2"); }

:root {
  --ink: #0a2540; --ink-2: #12355c; --dome: #1f5fbf; --sea: #2a9dd8; --white: #faf7f2; --stone: #e8dfd0;
  --sun: #f6b93b; --bougain: #d6336c; --ok: #2fbf71; --text: #fff; --muted: rgba(255, 255, 255, .72);
  --chip: rgba(10, 37, 64, .86); --line: rgba(255, 255, 255, .14);
  --r: 16px; --r-lg: 24px; --tap: 48px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --display: Fraunces, Georgia, serif; --ui: Inter, system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.2, .9, .3, 1.2);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 16px/1.4 var(--ui); overflow: hidden;
  -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; }
.i { width: 22px; height: 22px; flex: none; }
#cam { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#map { position: fixed; inset: 0; z-index: 1; background: var(--stone); }
#map .leaflet-tile-pane { filter: saturate(.35) brightness(1.06) contrast(.92); }

/* ---------- shared components ---------- */
.primary { min-height: var(--tap); padding: 12px 22px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s var(--spring), opacity .2s; }
.primary:active { transform: scale(.96); }
.primary:disabled { opacity: .4; box-shadow: none; }
.primary.wide, .text-btn.wide { width: 100%; }
.text-btn { min-height: var(--tap); padding: 10px 16px; color: var(--muted); font-weight: 600; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--chip);
  font-weight: 700; font-size: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.chip.warn { background: var(--sun); color: var(--ink); }
.chip.big { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: 15px; white-space: nowrap; }
.chips button.on { background: var(--white); color: var(--ink); }
.fab { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--chip); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.fab.small { width: var(--tap); height: var(--tap); }
.fab .i { width: 26px; height: 26px; }

/* switch */
.switch, .flow-step .switch, form .switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: var(--tap); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 52px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .22); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--sun); outline-offset: 2px; }
.switch small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.switch.row { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- intro ---------- */
#intro { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: var(--ink); }
.hero { background: linear-gradient(180deg, #a8d8f0, #d9eef7); }
.hero { flex: 0 0 min(46%, 38vh); overflow: hidden; }
.hero { display: flex; align-items: flex-end; }
.hero svg { width: 100%; height: auto; max-height: 100%; display: block; }
.hero .sun { fill: var(--sun); } .hero .sea { fill: var(--dome); } .hero .house { fill: var(--white); }
.hero .dome { fill: var(--dome); } .hero .door { fill: var(--sea); }
.cards { flex: 1; padding: 24px 24px 0; overflow-y: auto; }
.card h1 { margin: 0 0 10px; font: 700 32px/1.1 var(--display); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card input:not([type=checkbox]) { width: 100%; min-height: 54px; margin: 6px 0 16px; padding: 12px 16px; border: 0; border-radius: var(--r); font-size: 18px; color: var(--ink); background: var(--white); }
.perms { list-style: none; padding: 0; margin: 0 0 10px; }
.perms li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--muted); font-size: 15px; }
.perms .i { color: var(--sun); margin-top: 1px; }
.intro-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px calc(var(--safe-b) + 20px); }
.dots { display: flex; gap: 8px; }
.dots i, .flow-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .3s var(--spring), background .3s; }
.dots i.on, .flow-dots i.on { width: 24px; background: var(--white); }
#next { min-width: 140px; }

/* ---------- HUD bands: status | compass + guide | reticle | toast | modes | controls ---------- */
#hud { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#hud > * { pointer-events: auto; }
#status { position: absolute; top: calc(var(--safe-t) + 10px); left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
#status .spacer { flex: 1; }
#status .chip { pointer-events: auto; }
#captures .i { color: var(--sun); }
#captures.pop, #points.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.25); } }

#compass { position: absolute; top: calc(var(--safe-t) + 58px); left: 12px; right: 12px; height: 46px; border-radius: 14px; background: var(--chip);
  overflow: hidden; pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
#compass .ticks, #compass .pips { position: absolute; inset: 0; }
#compass .tick { position: absolute; top: 6px; width: 2px; height: 8px; margin-left: -1px; background: rgba(255, 255, 255, .35); border-radius: 1px; }
#compass .tick.card { height: 10px; background: #fff; }
#compass .tick b { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: #fff; }
#compass .pip { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--sun); opacity: .55; }
#compass .pip.next { width: 20px; height: 20px; margin: -10px 0 0 -10px; opacity: 1; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(246, 185, 59, .45); }
#compass .pip.next.aligned { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 191, 113, .5); }
#compass .pip.next span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; white-space: nowrap; }
#compass .centre-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; opacity: .9; }
#compass .edge { position: absolute; top: 0; bottom: 0; width: 34px; display: grid; place-items: center; color: var(--sun); opacity: 0; transition: opacity .2s; }
#compass .edge.left { left: 0; background: linear-gradient(90deg, var(--chip), transparent); }
#compass .edge.right { right: 0; background: linear-gradient(270deg, var(--chip), transparent); }
#compass .edge.on { opacity: 1; animation: nudge 1s infinite; }
@keyframes nudge { 50% { transform: translateX(var(--nudge, 0)); } }
#compass .edge.left.on { --nudge: -3px; } #compass .edge.right.on { --nudge: 3px; }

#guideChip { position: absolute; top: calc(var(--safe-t) + 114px); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px);
  white-space: nowrap; overflow: hidden; pointer-events: none; }
#guideWhat { overflow: hidden; text-overflow: ellipsis; }
#guideHow { color: var(--sun); }
#guideChip.aligned #guideHow { color: var(--ok); }

#reticle { position: absolute; left: 50%; top: 50%; width: min(64vw, 280px, 44vh); height: min(64vw, 280px, 44vh); transform: translate(-50%, -55%); pointer-events: none;
  transition: width .3s var(--spring), height .3s var(--spring); }
#reticle i { position: absolute; width: 34px; height: 34px; border: 4px solid rgba(255, 255, 255, .9); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); transition: border-color .2s; }
#reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
#reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
#reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
#reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
#reticle.aligned { width: min(56vw, 240px, 38vh); height: min(56vw, 240px, 38vh); }
#reticle.aligned i { border-color: var(--ok); }

#hint { position: absolute; bottom: calc(var(--safe-b) + 176px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
#toast { position: absolute; bottom: calc(var(--safe-b) + 176px); left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 24px); padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: rise .3s var(--spring); pointer-events: none; }
#toast.bad { background: var(--bougain); color: #fff; }
#toast.wait { background: var(--chip); color: #fff; }
#toast.good .i { color: var(--ok); }
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }

/* Overflow-safe centring: auto margins on the ends instead of justify-content, which clips the start. */
#modes > :first-child { margin-left: auto; } #modes > :last-child { margin-right: auto; }
#modes { position: absolute; bottom: calc(var(--safe-b) + 116px); left: 0; right: 0; display: flex; gap: 2px;
  padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
#modes::-webkit-scrollbar { display: none; }
#modes { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
@media (max-width: 380px) { #modes button { padding: 8px 10px; font-size: 12px; letter-spacing: .03em; } }
#modes button { flex: none; min-height: 44px; padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); transition: background .2s, color .2s; }
#modes button.on { background: var(--sun); color: var(--ink); text-shadow: none; }

#controls { position: absolute; bottom: calc(var(--safe-b) + 22px); left: 0; right: 0; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; }
#viewFab { justify-self: start; }
#rec, .fab-spacer { justify-self: end; grid-column: 3; grid-row: 1; }
#shutter { grid-column: 2; width: 82px; height: 82px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: transform .12s; }
#shutter .ring { width: 64px; height: 64px; border-radius: 50%; background: #fff; transition: background .2s, transform .15s var(--spring); }
#shutter:active .ring { transform: scale(.88); }
#shutter.warn { border-color: var(--sun); }
#shutter.busy .ring { background: rgba(255, 255, 255, .5); }
.fab.rec .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--bougain); transition: border-radius .2s, transform .2s; }
.fab.rec.on .dot { border-radius: 6px; transform: scale(.85); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 30; }
#flash.go { animation: flash .28s ease-out; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.fly { position: fixed; z-index: 31; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); pointer-events: none;
  transition: all .7s cubic-bezier(.5, 0, .2, 1); }

/* ---------- map view ---------- */
body.mapview #cam, body.mapview #compass, body.mapview #guideChip, body.mapview #reticle, body.mapview #hint, body.mapview #shutter,
body.mapview #modes { visibility: hidden; }
.card-sheet { position: absolute; left: 12px; right: 12px; max-width: 520px; margin: 0 auto; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--ink); box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
#mapCard { bottom: calc(var(--safe-b) + 112px); }
#nearest { font: 700 20px/1.25 var(--display); }
#nearest small { display: block; margin-top: 4px; font: 400 15px var(--ui); color: var(--muted); }
#street { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin-top: 12px; font-size: 14px; font-weight: 600; }
#street .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
#street .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sea), var(--ok)); border-radius: 99px; transition: width .6s var(--spring); }
#recentre { position: absolute; right: 14px; bottom: calc(var(--safe-b) + 260px); }
.me { width: 22px; height: 22px; border-radius: 50%; background: var(--dome); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(31, 95, 191, .25); position: relative; }
.me::after { content: ""; position: absolute; left: 50%; top: -15px; margin-left: -7px; border: 7px solid transparent; border-bottom: 10px solid var(--dome); }
.cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(246, 185, 59, .9); color: var(--ink); font-weight: 800; font-size: 12px;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.leaflet-tooltip.venue-label { background: var(--ink); color: #fff; border: 0; border-radius: 999px; font: 700 12px var(--ui); padding: 4px 10px; box-shadow: none; }
.leaflet-tooltip.venue-label::before { display: none; }
.leaflet-control-attribution { font-size: 10px; }

#camBlocked { top: calc(var(--safe-t) + 118px); z-index: 5; background: var(--bougain); }
#camBlocked .primary { margin-top: 12px; width: 100%; }

/* ---------- sheets (venue, person capture) ---------- */
.sheet { position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 170px); z-index: 4; max-width: 560px; margin: 0 auto;
  max-height: calc(100vh - var(--safe-b) - 250px); overflow-y: auto; padding: 8px 16px 12px; border-radius: var(--r-lg); background: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
body.sheet-open #modes, body.sheet-open #controls { z-index: 5; }
.grabber { width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.steps li .i { color: var(--muted); }
.steps li span { flex: 1; font-size: 15px; }
.steps li b { font-size: 14px; color: var(--muted); }
.steps li.active { background: rgba(255, 255, 255, .08); border-radius: 12px; }
.steps li.active .i { color: var(--sun); }
.steps li.done .i, .steps li.done b { color: var(--ok); }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pc-head b { font: 700 20px var(--display); }
.pc-head span { color: var(--muted); font-weight: 600; font-size: 14px; }
#venuePanel { max-height: min(46vh, calc(100vh - var(--safe-b) - 250px)); }
/* Person capture: a compact card with the current step; the full list opens on demand. */
.pc-now { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.pc-now .i { color: var(--sun); width: 26px; height: 26px; }
.pc-now span { flex: 1; font-weight: 700; font-size: 16px; }
.pc-actions { display: flex; gap: 8px; margin-top: 4px; }
.pc-actions .text-btn { flex: 1; min-height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
#personCapture:not(.expanded) #personChecklist, #personCapture:not(.expanded) #personDone { display: none; }
#personCapture.expanded .pc-now { display: none; }
#personCapture.expanded { max-height: min(56vh, calc(100vh - var(--safe-b) - 250px)); }
form label, .flow-step label { display: block; margin: 14px 0 0; font-weight: 600; font-size: 15px; }
form label small, .flow-step label small { color: var(--muted); font-weight: 400; }
form input, .flow-step input:not([type=checkbox]) { display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 14px; border: 0; border-radius: 14px;
  background: var(--white); color: var(--ink); font-size: 17px; }
form .primary { margin-top: 16px; }
.rec-btn { background: var(--bougain); color: #fff; margin-top: 12px; }
.rec-btn.on { animation: pulse 1s infinite; }

/* ---------- person flow (full screen stepper) ---------- */
.flow { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; background: var(--ink); }
.flow-head { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 6px) 8px 6px; }
.flow-dots { display: flex; gap: 6px; }
.flow-step { flex: 1; overflow-y: auto; padding: 4px 22px 16px; }
.flow-step h2 { margin: 6px 0 8px; font: 700 30px/1.1 var(--display); }
.lead { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.release { padding: 18px; border-radius: var(--r); background: var(--white); color: var(--ink); font-size: 15px; line-height: 1.5; }
.release h3 { margin: 0 0 8px; font: 700 20px/1.2 var(--display); }
.release h4 { margin: 16px 0 4px; font-size: 16px; }
.release ul { padding-left: 20px; }
.flow-foot { padding: 12px 22px calc(var(--safe-b) + 16px); border-top: 1px solid var(--line); }
.sig-wrap { position: relative; margin-top: 18px; }
#sig { width: 100%; height: 42vh; max-height: 320px; display: block; border-radius: var(--r); background: var(--white); touch-action: none; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(10, 37, 64, .35); font-weight: 600; pointer-events: none;
  border-top: 2px dashed rgba(10, 37, 64, .2); margin: 0 24px; padding-top: 8px; }
.sig-wrap.signed .sig-hint { opacity: 0; }
#sigClear { position: absolute; top: 6px; right: 6px; color: var(--dome); }
.qr { display: grid; place-items: center; padding: 18px; margin: 8px auto; width: min(72vw, 280px); border-radius: var(--r); background: #fff; }
.qr svg, .qr img { width: 100%; height: auto; display: block; }
.code { text-align: center; font: 800 28px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; }

/* ---------- guided capture overlays ---------- */
#guide { position: absolute; left: 50%; top: calc(var(--safe-t) + 70px); transform: translateX(-50%); height: 46vh; pointer-events: none; }
#guidePath { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 3 2; opacity: .9; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
#sweep { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 200px; text-align: center; pointer-events: none; }
#sweep svg { width: 200px; height: 200px; }
#sweepBg { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 7; }
#sweepArc { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; }
#sweepText { font-weight: 800; text-shadow: 0 1px 4px #000; }

/* ---------- landscape: controls move to the right edge ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  #controls { left: auto; top: 0; bottom: 0; right: calc(env(safe-area-inset-right, 0px) + 14px); width: 96px; padding: 0;
    grid-template-columns: auto; grid-template-rows: 1fr auto 1fr; justify-items: center; }
  #viewFab { grid-row: 1; align-self: end; margin-bottom: 18px; }
  #shutter { grid-row: 2; grid-column: 1; }
  #rec, .fab-spacer { grid-row: 3; grid-column: 1; align-self: start; margin-top: 18px; justify-self: center; }
  #modes { bottom: calc(var(--safe-b) + 10px); right: 120px; }
  #compass, #status { right: 120px; }
  #recentre { right: calc(env(safe-area-inset-right, 0px) + 38px); bottom: auto; top: calc(var(--safe-t) + 14px); }
  #toast, #hint { bottom: calc(var(--safe-b) + 66px); }
  #mapCard { bottom: calc(var(--safe-b) + 12px); right: 120px; }
  .sheet { max-height: calc(100vh - var(--safe-b) - 130px); right: 120px; bottom: calc(var(--safe-b) + 64px); }
  #personCapture.expanded, #venuePanel { max-height: calc(100vh - var(--safe-b) - 130px); }
  #reticle { top: 62%; width: 30vh; height: 30vh; transform: translate(-60%, -50%); }
  #reticle.aligned { width: 26vh; height: 26vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Messages move clear of the cards that sit at the bottom. */
body.mapview #toast { bottom: auto; top: calc(var(--safe-t) + 60px); }
body.sheet-open #toast, body.sheet-open #hint { bottom: auto; top: calc(var(--safe-t) + 60px); }
/* On the map, the centre-on-me button takes the empty right-hand slot of the bottom row. */
#recentre { position: absolute; top: auto; bottom: calc(var(--safe-b) + 26px); right: 28px; }
.chips button { min-height: 44px; }
