/* ==========================================================================
   Find me by Apo — orange fluo, ambiance 3D
   ========================================================================== */
:root {
  --orange: #ff5e00;
  --orange-hot: #ff8a2b;
  --orange-deep: #d94300;
  --ink: #0b0b0c;
  --cream: #fff3e6;
  --danger: #ff3b5c;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--orange);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  opacity: .09; transform: translateZ(0); /* pas de mix-blend-mode : il provoquait des artefacts au survol */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Curseur (souris uniquement) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--ink);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .25s, opacity .25s;
    opacity: 0;
  }
  .cursor.on { opacity: 1; }
  .cursor.off { opacity: 0 !important; }
  .cursor.big { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(11, 11, 12, .14); }
  .cursor.light { background: var(--cream); }
  .cursor.light.big { background: rgba(255, 243, 230, .16); }
}

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex;
  padding: 96px var(--gutter) 56px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 72% 46%, #ff9a3c 0%, rgba(255, 94, 0, 0) 70%),
    radial-gradient(45% 45% at 0% 100%, #ff3d00 0%, rgba(255, 94, 0, 0) 70%),
    var(--orange);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.nav {
  position: absolute; z-index: 5; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
}
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(360deg); }
.logo em { font-style: normal; font-weight: 500; opacity: .8; }
.logo-mark svg { width: 18px; height: 18px; fill: var(--orange); }
.pill {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap;
  transition: background .25s, color .25s;
}
@media (max-width: 440px) { .logo { font-size: .95rem; gap: 8px; } .logo-mark { width: 32px; height: 32px; } .pill { font-size: .82rem; padding: 8px 13px; } }
.pill:hover { background: var(--ink); color: var(--orange); }

.hero-inner {
  position: relative; width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; gap: 14px 48px; align-content: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "anchor" "card";
}
.hero-title { grid-area: title; perspective: 900px; }
#globeAnchor { grid-area: anchor; min-height: 40svh; }
.start-card { grid-area: card; }

.eyebrow {
  display: inline-block; background: var(--ink); color: var(--orange);
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.2rem, 21vw, 10rem);
  line-height: .84; letter-spacing: -.045em;
  font-variation-settings: 'opsz' 96;
  color: var(--ink);
  transform-style: preserve-3d;
  will-change: transform;
}
h1 .line { display: block; }
h1 .line > span {
  display: inline-block; opacity: 0;
  transform: translateY(70px) rotateX(-55deg);
  transform-origin: 50% 100%;
  animation: titleIn 1.1s var(--ease) forwards;
}
h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes titleIn { to { opacity: 1; transform: none; } }

.lede { margin-top: 22px; max-width: 30ch; font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 600; line-height: 1.25; opacity: 0; animation: fadeUp .9s .5s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "title anchor" "card anchor"; align-items: center; }
  #globeAnchor { min-height: 72svh; }
  h1 { font-size: clamp(3.4rem, 10vw, 9.6rem); }
}

/* Carte de démarrage */
.start-card {
  position: relative; width: 100%; max-width: 520px; margin-top: 8px;
  background: var(--ink); color: var(--cream);
  border-radius: 32px; padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .07);
  opacity: 0; animation: fadeUp .9s .7s var(--ease) forwards;
}
.start-card.shake { animation: shake .45s; opacity: 1; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.invite-note { background: rgba(255, 94, 0, .16); color: var(--orange-hot); border-radius: 16px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.field > span { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin: 0 0 8px 6px; }
.field input, .join-row input {
  width: 100%; background: #1a1a1c; border: 2px solid transparent; border-radius: 18px;
  padding: 16px 18px; font-size: 1.15rem; font-weight: 700; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .join-row input::placeholder { color: rgba(255, 243, 230, .28); }
.field input:focus, .join-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 94, 0, .18); }
.join-row { display: flex; gap: 10px; }
.join-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .2em; text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; padding: 17px 26px;
  transition: transform .3s var(--ease), box-shadow .3s, background .2s, opacity .2s;
  will-change: transform;
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { width: 100%; margin-top: 14px; background: var(--orange); color: var(--ink); box-shadow: 0 14px 44px -10px rgba(255, 94, 0, .85); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(255, 94, 0, .22), 0 18px 54px -8px rgba(255, 94, 0, 1); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: var(--cream); color: var(--ink); flex: none; padding-inline: 22px; }
.btn-ghost:hover { background: #fff; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 243, 230, .5); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 243, 230, .16); }
.form-error { min-height: 1.4em; margin-top: 12px; color: var(--danger); font-weight: 700; font-size: .95rem; padding-left: 6px; }
.link { background: none; border: 0; cursor: pointer; padding: 6px; margin-top: 2px; color: var(--orange); font-weight: 800; font-size: .98rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Bande défilante */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; margin-top: -34px; padding: 34px 0; }
.marquee {
  background: var(--ink); color: var(--orange);
  transform: rotate(-1.8deg) scale(1.05); padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-group { display: inline-flex; flex: none; }
.marquee span { font-size: clamp(1.4rem, 4.2vw, 2.7rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; padding-right: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Comment ça marche ---------- */
.how { padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(70px, 10vw, 140px); max-width: 1400px; margin: 0 auto; }
.section-title {
  font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: -.045em;
  font-size: clamp(2.8rem, 11vw, 8.4rem); font-variation-settings: 'opsz' 96;
}
.section-title em { font-style: normal; color: var(--cream); -webkit-text-stroke: 0; text-shadow: 5px 5px 0 var(--ink); }
.cards { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 80px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); perspective: 1400px; }
.card {
  position: relative; min-height: 380px; border-radius: 36px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transform-style: preserve-3d; transition: transform .35s var(--ease);
  box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .55);
}
.card h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.card p { margin-top: 10px; font-weight: 500; font-size: 1.05rem; line-height: 1.35; max-width: 30ch; opacity: .85; }
.card .num {
  position: absolute; top: 18px; right: 24px; font-size: 5.4rem; font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .5; transform: translateZ(30px);
}
.card-art { width: 150px; transform: translateZ(70px); transition: transform .4s var(--ease); align-self: flex-start; margin-top: 30px; }
.card-art svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .28)); }
.card-text { transform: translateZ(40px); }
.card-ink { background: var(--ink); color: var(--cream); }
.card-ink .card-art { color: var(--orange); }
.card-cream { background: var(--cream); color: var(--ink); }
.card-cream .card-art { color: var(--ink); }
.card-hot { background: var(--orange-hot); color: var(--ink); }
.card-hot .card-art { color: var(--ink); }
.art-arrow svg { animation: wobble 4.2s ease-in-out infinite; transform-origin: 50% 55%; }
@keyframes wobble { 0%, 100% { transform: rotate(-28deg); } 50% { transform: rotate(32deg); } }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .3), transparent 48%);
  opacity: 0; transition: opacity .3s;
}
.tilt:hover::after { opacity: 1; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(60px) rotateX(10deg); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: opacity .9s var(--ease) var(--d, 0s), transform .35s var(--ease); }

/* ---------- Vie privée ---------- */
.privacy { background: var(--ink); color: var(--cream); padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; overflow: hidden; }
.privacy::before { content: ''; position: absolute; right: -20vmax; top: -20vmax; width: 70vmax; height: 70vmax; background: radial-gradient(circle, rgba(255, 94, 0, .35), transparent 62%); pointer-events: none; }
.privacy > * { position: relative; max-width: 1400px; margin-inline: auto; }
.privacy .section-title em { color: var(--orange); text-shadow: none; }
.privacy-grid { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 80px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.privacy-grid > div { border-top: 2px solid rgba(255, 243, 230, .2); padding-top: 22px; }
.privacy-grid b { color: var(--orange); font-size: .95rem; letter-spacing: .1em; }
.privacy-grid h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 8px; }
.privacy-grid p { opacity: .75; font-size: 1.05rem; line-height: 1.4; max-width: 34ch; }
.fineprint { margin-top: clamp(40px, 6vw, 80px) !important; opacity: .55; max-width: 62ch; font-size: .98rem; line-height: 1.5; }

.footer a, .footer a:visited, .footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; }
.footer, .footer * { cursor: auto; }
.footer { justify-content: center !important; text-align: center; }
.footer { position: relative; z-index: 2; isolation: isolate; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px var(--gutter) max(26px, env(safe-area-inset-bottom)); font-weight: 700; background: var(--orange); }

/* ==========================================================================
   Écrans plein cadre (révélation circulaire)
   ========================================================================== */
.screen {
  position: fixed; inset: 0; z-index: 60; --cx: 50%; --cy: 50%;
  clip-path: circle(0px at var(--cx) var(--cy));
  visibility: hidden; overflow: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.screen.open { clip-path: circle(160vmax at var(--cx) var(--cy)); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }

@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Liste des personnes ---------- */
.room { background: var(--ink); color: var(--cream); display: flex; flex-direction: column; }
.room::before { content: ''; position: absolute; right: -25vmax; top: -25vmax; width: 80vmax; height: 80vmax; background: radial-gradient(circle, rgba(255, 94, 0, .38), transparent 60%); pointer-events: none; }
.room-top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 10px;
}
.icon-btn { background: rgba(255, 255, 255, .09); border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 800; cursor: pointer; color: var(--cream); transition: background .2s, transform .3s var(--ease); white-space: nowrap; }
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.icon-btn:active { transform: scale(.95); }
.icon-btn.solid { background: var(--orange); color: var(--ink); }
.icon-btn.solid:hover { background: var(--orange-hot); }
.codechip { background: none; border: 0; cursor: pointer; text-align: center; line-height: 1; padding: 4px 8px; }
.codechip small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 7px; }
.codechip strong { font-size: clamp(1.5rem, 6vw, 2.3rem); letter-spacing: .12em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cream); }

.room-body { position: relative; z-index: 1; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) max(40px, env(safe-area-inset-bottom)); }
.room-title { font-size: clamp(2.6rem, 11vw, 5rem); line-height: .9; letter-spacing: -.045em; font-weight: 800; margin: 18px 0 24px; text-transform: uppercase; }
.room-title em { font-style: normal; color: var(--orange); }

.gps { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1.5px dashed rgba(255, 243, 230, .2); margin-bottom: 18px; }
.gps strong { display: block; font-size: 1.02rem; font-weight: 800; }
.gps small { display: block; opacity: .65; font-size: .88rem; margin-top: 2px; line-height: 1.3; }
.gps-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--orange); }
.gps.wait .gps-dot { animation: pulse 1.2s ease-in-out infinite; }
.gps.ok { border-style: solid; border-color: rgba(255, 94, 0, .5); }
.gps.ok .gps-dot { box-shadow: 0 0 0 5px rgba(255, 94, 0, .25), 0 0 20px 2px var(--orange); }
.gps.err { border-color: var(--danger); }
.gps.err .gps-dot { background: var(--danger); }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; perspective: 1000px; }
.person { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.person-btn {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  background: #151517; color: var(--cream); border: 1.5px solid rgba(255, 255, 255, .08);
  border-radius: 28px; padding: 14px 18px 14px 14px;
  transition: transform .4s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s;
}
.person-btn:hover, .person-btn:focus-visible { background: var(--orange); color: var(--ink); border-color: var(--orange); transform: translateY(-4px) rotateX(3deg) scale(1.015); box-shadow: 0 26px 60px -16px rgba(255, 94, 0, .7); outline: none; }
.person-btn:active { transform: scale(.98); }
.avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.55rem; transition: background .25s, color .25s; }
.person-btn:hover .avatar, .person-btn:focus-visible .avatar { background: var(--ink); color: var(--orange); }
.p-main { flex: 1; min-width: 0; }
.p-name { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { display: block; opacity: .7; font-size: .93rem; margin-top: 3px; font-weight: 600; }
.p-dir { width: 48px; height: 48px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .25s; }
.p-dir svg { width: 22px; height: 22px; fill: var(--orange); transition: transform .6s var(--ease), fill .25s; }
.person-btn:hover .p-dir, .person-btn:focus-visible .p-dir { background: rgba(0, 0, 0, .14); }
.person-btn:hover .p-dir svg, .person-btn:focus-visible .p-dir svg { fill: var(--ink); }
.person.stale .person-btn { opacity: .5; }
.person.nopos .p-dir svg { opacity: .25; }

.empty { text-align: center; padding: 34px 10px 10px; animation: rise .8s var(--ease) both; }
.empty h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }
.empty p { opacity: .7; margin: 10px auto 4px; max-width: 32ch; line-height: 1.4; }
.empty .btn { width: auto; margin-top: 18px; }
.empty-art { position: relative; width: 120px; height: 120px; margin: 0 auto 6px; }
.empty-art i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: ripple 3s ease-out infinite; opacity: 0; }
.empty-art i:nth-child(2) { animation-delay: 1s; }
.empty-art i:nth-child(3) { animation-delay: 2s; }
.empty-art::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 30px var(--orange); }
@keyframes ripple { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }

/* ---------- Boussole ---------- */
.compass { background: var(--orange); color: var(--ink); touch-action: none; }
.compass::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 42%, #ff9a3c 0%, rgba(255, 94, 0, 0) 70%), radial-gradient(70% 40% at 50% 100%, #d94300 0%, rgba(255, 94, 0, 0) 70%); pointer-events: none; }
#compassCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.compass-top { position: absolute; z-index: 2; inset: 0 0 auto 0; display: flex; align-items: center; gap: 14px; padding: max(16px, env(safe-area-inset-top)) var(--gutter); }
.compass .icon-btn { background: var(--ink); color: var(--orange); font-size: 1.1rem; padding: 12px 20px; }
.compass .icon-btn:hover { background: #222; }
.who { flex: 1; min-width: 0; line-height: 1; }
.who small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .7; margin-bottom: 6px; }
.who strong { display: block; font-size: clamp(1.7rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signal { flex: none; background: rgba(11, 11, 12, .12); border-radius: 999px; padding: 9px 14px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.signal:empty { display: none; }
.compass-bottom { position: absolute; z-index: 2; inset: auto 0 0 0; text-align: center; padding: 0 20px max(26px, env(safe-area-inset-bottom)); }
.distance { font-weight: 800; line-height: .82; letter-spacing: -.07em; font-size: clamp(5rem, 24vw, 9.5rem); font-variant-numeric: tabular-nums; text-shadow: 4px 4px 0 var(--cream); }
.distance .unit { font-size: .26em; letter-spacing: -.01em; margin-left: .14em; text-shadow: none; opacity: .85; }
.hint { margin: 14px auto 0; max-width: 36ch; font-weight: 700; font-size: 1.02rem; line-height: 1.3; min-height: 2.7em; }
.arrived { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; opacity: 0; transform: scale(.7) rotate(-6deg); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.arrived span { font-size: clamp(3.2rem, 17vw, 9rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.06em; line-height: .84; color: var(--cream); text-shadow: 6px 6px 0 var(--ink); }
.compass.arrived-state .arrived { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 160%); opacity: 0; visibility: hidden; background: var(--cream); color: var(--ink);
  padding: 14px 22px; border-radius: 999px; font-weight: 800; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5); transition: transform .6s var(--ease), opacity .3s, visibility 0s .6s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .6s var(--ease), opacity .3s, visibility 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  h1 .line > span, .lede, .start-card { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
