/* ==========================================================================
   V35.CSS — pokeball nav, XP orb, content feed, three shelves, item spawns.
   PAC-574. Ported from docs/redesign/v35-pokeball-lab.html (Eric-approved
   2026-08-31) onto the v34 app chrome. Tokens come from index.html :root.

   Layering (all below the detail overlay at 500 and the celebration at 9000,
   all above the Leaflet map and the legacy bottom sheet at 201):
     scrim 440 · satellites 452 · press 455 · feed 460 · shelves 462
     orb 470 · multiplier pill 471 · xp float 472 · toast 480
   ========================================================================== */

/* The six-tab bar is retired. Views run to the bottom edge; the map breathes
   full-bleed and the press floats over it. */
:root { --tabbar-h: 0px; }

/* Scroll views keep their last content clear of the press band. */
.view:not(#view-map) { padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important; }

/* The orb owns XP now. Retire the XP / pouch pill, keep the nearest-stop pill. */
#game-hud .hud__pill:not(#hud-nearest) { display: none; }

/* Leaflet's panes carry z-index 200-700 and #map-container had no stacking
   context of its own, so the tiles painted OVER the shutter (z 6) and the
   game HUD (z 5): both hit-tested fine and never showed. Isolate the map. */
#view-map #map-container { isolation: isolate; }

/* Camera shutter moves to the right corner: orb left, press center, shutter right. */
#view-map .fab--shutter {
  left: auto; right: 14px; transform: none;
  width: 56px; height: 56px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(36,26,18,.35);
  z-index: 6;
}
#view-map .fab--shutter:active { transform: scale(.94); }

/* Guide banner rides above the press band and steps aside for the bloom/sheets. */
.guide-banner { bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important; transition: opacity .2s; }
body.bloom .guide-banner, body.feed-open .guide-banner, body.shelves-open .guide-banner { opacity: 0; pointer-events: none; }

/* When the stop bottom-sheet is up, the chrome ducks so its buttons stay reachable. */
body:has(.bottom-sheet--visible) #v35-press { transform: translate(-50%, 190%); pointer-events: none; }
body:has(.bottom-sheet--visible) #v35-orb,
body:has(.bottom-sheet--visible) #v35-multpill,
body:has(.bottom-sheet--visible) #view-map .fab--shutter { transform: translateY(190%); pointer-events: none; }

/* ---- scrim: tap outside to close bloom / sheets ---- */
#v35-scrim { position: fixed; inset: 0; z-index: 440; display: none; background: transparent; }
body.bloom #v35-scrim, body.feed-open #v35-scrim, body.shelves-open #v35-scrim { display: block; }
body.feed-open #v35-scrim, body.shelves-open #v35-scrim { background: rgba(36,26,18,.18); }

/* ---- THE PRESS (pokeball) bottom-center ---- */
#v35-press {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 12px) + 18px);
  transform: translateX(-50%);
  width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--ink);
  background: var(--tomato); z-index: 455; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 0 rgba(36,26,18,.35);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .2s;
  -webkit-tap-highlight-color: transparent;
}
#v35-press:active { transform: translateX(-50%) scale(.92); }
#v35-press svg { width: 40px; height: 40px; }
#v35-press .ring { position: absolute; inset: 6px; border: 2px dashed rgba(244,236,219,.55); border-radius: 50%; animation: v35spin 24s linear infinite; }
@keyframes v35spin { to { transform: rotate(360deg); } }
body.bloom #v35-press { background: var(--ink); }
body.bloom #v35-press .boot { fill: var(--gold); }
/* off the map the press goes ink: the cue that the map is one press away */
body:not([data-view="map"]) #v35-press { background: var(--ink); }
body:not([data-view="map"]) #v35-press .boot { fill: var(--gold); }

/* ---- satellites bloom in two arcs around the press ---- */
.v35-sat {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 12px) + 26px); z-index: 452;
  width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; border: 2.5px solid var(--ink);
  background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 4px 0 rgba(36,26,18,.3); opacity: 0; pointer-events: none;
  transform: translate(0,0) scale(.3) rotate(-20deg);
  /* fast attack, soft settle, no overshoot (MOTION.md): the spring read as clunky on the phone */
  transition: transform .26s cubic-bezier(.2,.9,.3,1), opacity .16s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.v35-sat .lbl {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px;
  font: 600 8px var(--font-mono); letter-spacing: .12em; white-space: nowrap;
  color: var(--cream); background: var(--ink); padding: 2px 6px; border-radius: 99px;
  opacity: 0; transition: opacity .2s .15s;
}
.v35-sat svg { width: 28px; height: 28px; }
body.bloom .v35-sat { opacity: 1; pointer-events: none; transform: var(--out) scale(1) rotate(0deg); transition-delay: var(--dl, 0s); }
/* B6: a satellite is tappable only once it has landed (v35-nav.js adds bloom-live after the attack), never while invisible */
body.bloom.bloom-live .v35-sat { pointer-events: auto; }
body.bloom .v35-sat .lbl { opacity: 1; }
.v35-sat:active { background: var(--gold); }
/* C-08: the MAP satellite is tomato like the on-map press, cobalt stays reserve */
.v35-sat--map { background: var(--tomato); color: var(--cream); }
.v35-sat--map .lbl { background: var(--tomato); }
.v35-sat--on { background: var(--gold); }
/* extras.js drops an On-This-Day count onto the TIMELINE satellite */
.v35-sat .otd-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--tomato); color: var(--cream); border: 2px solid var(--cream);
  font: 700 9px/14px var(--font-mono); text-align: center; padding: 0 4px;
}

/* ---- XP ORB bottom-left (floats above the sheets, stays a toggle) ---- */
#v35-orb {
  position: fixed; left: 14px; bottom: calc(env(safe-area-inset-bottom, 12px) + 18px); z-index: 470;
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 5px 0 rgba(36,26,18,.35); transition: transform .25s;
  -webkit-tap-highlight-color: transparent;
}
#v35-orb .core { text-align: center; display: block; }
#v35-orb .xp { display: block; font: 700 15px/1 var(--font-display); letter-spacing: -.02em; }
#v35-orb .lbl { display: block; font: 600 7px/1 var(--font-mono); letter-spacing: .18em; margin-top: 3px; }
#v35-orb .badge {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; border-radius: 99px;
  background: var(--tomato); color: var(--cream); border: 2.5px solid var(--cream);
  display: grid; place-items: center; font: 700 11px var(--font-mono); padding: 0 5px;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
#v35-orb .badge.on { transform: scale(1); }
#v35-orb.pop { animation: v35orbpop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes v35orbpop { 40% { transform: scale(1.18); } }
.v35-float {
  position: fixed; left: 46px; bottom: calc(env(safe-area-inset-bottom, 12px) + 90px); z-index: 472;
  font: 700 16px var(--font-display); color: var(--tomato); text-shadow: 1px 1px 0 var(--cream);
  pointer-events: none; animation: v35rise 1.1s ease-out forwards; white-space: nowrap;
}
@keyframes v35rise { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-64px); } }

/* XP multiplier pill: x3 TODAY (lapse) · x2 / x6 NEXT FIND (doughnut) */
#v35-multpill {
  position: fixed; left: 14px; bottom: calc(env(safe-area-inset-bottom, 12px) + 92px); z-index: 471;
  background: var(--gold); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px;
  font: 800 10px var(--font-mono); letter-spacing: .1em; padding: 6px 10px; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(36,26,18,.3); transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
#v35-multpill.on { transform: scale(1); }
/* the pill sits where the TRAIL satellite's label lands; it folds with the bloom */
body.bloom #v35-multpill.on { transform: scale(0); }

/* ---- FEED sheet ---- */
#v35-feed, #v35-shelves {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--cream); color: var(--ink);
  border-top: 3px solid var(--ink); border-radius: 18px 18px 0 0;
  transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; touch-action: pan-y;
}
#v35-feed { top: 18%; z-index: 460; }
#v35-shelves { top: 14%; z-index: 462; }
body.feed-open #v35-feed { transform: translateY(0); }
body.shelves-open #v35-shelves { transform: translateY(0); }
.v35-grab { width: 44px; height: 5px; border-radius: 99px; background: rgba(36,26,18,.3); margin: 10px auto 4px; flex: none; }
.v35-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 16px 10px; border-bottom: 2px solid var(--ink); flex: none; }
.v35-head b { font: 700 20px var(--font-display); letter-spacing: -.02em; }
.v35-head span { font: 600 9px var(--font-mono); letter-spacing: .16em; color: var(--oak); }
.v35-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 14px 110px; }
.v35-card {
  display: flex; gap: 11px; align-items: center; border: 2px solid var(--ink); background: var(--cream);
  padding: 10px 12px; margin-bottom: 10px; animation: v35landin .32s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes v35landin { from { opacity: 0; transform: translateY(-12px); } }
.v35-card .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.v35-card .ico svg { width: 40px; height: 40px; }
.v35-card .era { width: 4px; align-self: stretch; flex: none; border-radius: 2px; }
.v35-card .mid { flex: 1; min-width: 0; }
.v35-card .k { font: 600 8.5px var(--font-mono); letter-spacing: .16em; color: var(--clay); text-transform: uppercase; }
.v35-card .t { font: 700 14px var(--font-body); margin: 2px 0 1px; }
.v35-card .t em { font-family: var(--font-serif); font-style: italic; font-weight: 600; }
.v35-card .d { font: 400 12px var(--font-body); color: rgba(36,26,18,.75); line-height: 1.35; }
.v35-card .when { font: 500 8.5px var(--font-mono); letter-spacing: .1em; color: var(--oak); white-space: nowrap; align-self: flex-start; margin-top: 2px; }
.v35-card.gold { border-color: var(--gold); box-shadow: 3px 3px 0 rgba(235,161,51,.5); }
.v35-empty { font: 400 13px var(--font-body); color: rgba(36,26,18,.6); text-align: center; padding: 30px 20px; line-height: 1.5; }

/* destination chip on feed cards: where the find WENT, and a place you can go */
.v35-dest {
  font: 700 8px var(--font-mono); letter-spacing: .14em; color: var(--cream); background: var(--oak);
  border: 0; border-radius: 3px; padding: 2.5px 6px; white-space: nowrap; margin-top: 4px; display: inline-block; cursor: pointer;
}
.v35-dest.bp { background: var(--tomato); } .v35-dest.sb { background: var(--clay); } .v35-dest.tc { background: #B87F20; } .v35-dest.st { background: var(--sage); }

/* ---- SHELVES: BACKPACK / TROPHY CASE / SHOEBOX ---- */
.v35-tabs { display: flex; gap: 6px; padding: 0 14px 10px; border-bottom: 2px solid var(--ink); flex: none; }
.v35-tab {
  flex: 1; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); border-radius: 8px;
  font: 800 10px var(--font-mono); letter-spacing: .1em; padding: 8px 4px; cursor: pointer;
}
.v35-tab.on { background: var(--ink); color: var(--gold); }
.v35-pane { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 30px; }
.v35-note { font: 400 12.5px/1.45 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 2px 0 12px; }
.v35-tin {
  border: 2.5px solid var(--ink); border-radius: 12px; background: linear-gradient(180deg, #e9e0ca, #d9cfb4);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 3px 3px 0 rgba(36,26,18,.25); padding: 12px; margin-bottom: 14px;
}
.v35-tin h4, .v35-h4 { margin: 0 0 8px; font: 800 10px var(--font-mono); letter-spacing: .16em; color: var(--oak); }
.v35-h4 { margin-top: 6px; }
.v35-row {
  display: flex; gap: 10px; align-items: center; border: 2px solid var(--ink); background: var(--cream);
  padding: 9px 10px; margin-bottom: 8px; border-radius: 8px;
}
.v35-row .ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.v35-row .ico svg { width: 22px; height: 22px; }
.v35-row .mid { flex: 1; min-width: 0; }
.v35-row .t { font: 700 13px var(--font-body); }
.v35-row .e { font: 400 11px var(--font-body); color: rgba(36,26,18,.7); }
.v35-row .act {
  border: 2px solid var(--ink); background: var(--gold); color: var(--ink); border-radius: 99px;
  font: 800 10px var(--font-mono); letter-spacing: .1em; padding: 7px 12px; cursor: pointer; box-shadow: 0 2px 0 rgba(36,26,18,.3);
}
.v35-row .act:active { transform: translateY(1px); }
.v35-row.shiny { border-color: #B87F20; box-shadow: 2px 2px 0 rgba(235,161,51,.5); }
.v35-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v35-cell { border: 2px solid var(--ink); background: var(--cream); border-radius: 10px; padding: 10px 8px; text-align: center; position: relative; }
.v35-cell.rare { border-color: #B87F20; box-shadow: 2px 2px 0 rgba(235,161,51,.5); }
.v35-cell .ico { width: 40px; height: 40px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.v35-cell .ico svg { width: 24px; height: 24px; }
.v35-cell .n { font: 700 11px var(--font-body); line-height: 1.2; }
.v35-cell .v { font: 600 8px var(--font-mono); letter-spacing: .1em; color: var(--oak); margin-top: 3px; }
.v35-cell .dots { display: flex; gap: 3px; justify-content: center; margin-top: 5px; }
.v35-cell .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: .25; }
.v35-cell .dots i.got { opacity: 1; }
.v35-cell .toss {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--cream); background: var(--ink); color: var(--cream); font: 700 11px/18px var(--font-mono); cursor: pointer; padding: 0;
}
.v35-trophy {
  display: flex; gap: 10px; align-items: center; border: 2px solid #B87F20; background: var(--cream);
  box-shadow: 2px 2px 0 rgba(235,161,51,.4); padding: 10px 12px; margin-bottom: 8px; border-radius: 8px;
}
.v35-trophy .ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid #B87F20; background: #fff; }
.v35-trophy .ico svg { width: 22px; height: 22px; }
.v35-trophy .t { font: 700 13px var(--font-body); }
.v35-trophy .e { font: 400 11px var(--font-body); color: rgba(36,26,18,.7); }
.v35-trophy .when { margin-left: auto; font: 500 8.5px var(--font-mono); letter-spacing: .1em; color: var(--oak); white-space: nowrap; }

/* ---- ITEMS THAT APPEAR AT LOCATIONS (Leaflet divIcon) ----
   The appear is the M01 orange-burst grammar in CSS: rays flash, the item
   pops. Tap to collect. Ignored, it wanders off. */
.leaflet-marker-icon.v35-spawn-icon { background: none; border: 0; }
.v35-spawn { position: relative; width: 44px; height: 44px; cursor: pointer; }
.v35-spawn .rays {
  position: absolute; inset: -26px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(235,161,51,.95) 0deg 6deg, rgba(216,71,46,.25) 6deg 14deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, #000 62%, transparent 66%);
  mask: radial-gradient(circle, transparent 30%, #000 34%, #000 62%, transparent 66%);
  animation: v35burstin .55s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes v35burstin { from { transform: scale(.2) rotate(-40deg); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1.5) rotate(14deg); opacity: 0; } }
.v35-spawn .tok {
  position: absolute; inset: 0; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 rgba(36,26,18,.3); display: grid; place-items: center;
  transform: scale(0); animation: v35tokenin .4s cubic-bezier(.34,1.56,.64,1) .18s forwards;
}
@keyframes v35tokenin { to { transform: scale(1); } }
.v35-spawn .tok svg { width: 26px; height: 26px; }
.v35-spawn.rare .tok { border-color: #B87F20; box-shadow: 0 4px 0 rgba(184,127,32,.55), 0 0 0 3px rgba(235,161,51,.35); }
.v35-spawn.gone { pointer-events: none; }
.v35-spawn.gone .tok { animation: v35tokout .3s ease-in forwards; }
@keyframes v35tokout { to { transform: scale(0) rotate(30deg); opacity: 0; } }

/* ---- toast when new content lands while the feed is closed ---- */
/* Hidden state is visibility:hidden + a short lift, not a big negative
   translate: a fixed offset can never clear every masthead + safe-area
   height, and the lab's -140% left a dark sliver over the title. */
#v35-toast {
  position: fixed; left: 50%; top: calc(var(--masthead-h) + var(--progress-h, 36px) + 8px); z-index: 480;
  transform: translateX(-50%) translateY(-28px); opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--cream); border-radius: 99px; padding: 9px 16px;
  display: flex; gap: 8px; align-items: center; font: 600 12px var(--font-body);
  transition: transform .3s ease-in, opacity .25s, visibility 0s .3s; box-shadow: 0 6px 16px rgba(36,26,18,.4);
  cursor: pointer; max-width: 86vw; border: 0;
}
#v35-toast.on { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .2s, visibility 0s; }
#v35-toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
#v35-toast .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   ROUND 2 (2026-09-01): licensed type, the masthead in flow, the 3D chrome.
   ========================================================================== */

/* ---- type: Champion HTF is condensed, so display sizes step up and the
   negative tracking written for Archivo comes off ---- */
.masthead-title { font-size: 19px; font-weight: 700; letter-spacing: .015em; line-height: 1; white-space: nowrap; }
.masthead-designation { font: 700 8.5px/1 var(--font-mono); letter-spacing: .14em; margin-top: 4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 210px); display: block; }
.masthead-left { min-width: 0; gap: 9px; }
.v35-head b { font-size: 27px; font-weight: 700; letter-spacing: .005em; }
#v35-orb .xp { font-size: 19px; font-weight: 700; letter-spacing: 0; }
#v35-orb .lbl { font: 700 8px/1 var(--font-mono); letter-spacing: .12em; margin-top: 3px; }
/* sprite tokens: the silhouette wants a little more of the circle than the drawn set */
.v35-spawn .tok svg, .v35-row .ico svg, .v35-cell .ico svg, .v35-catch svg { width: 30px; height: 30px; }
.v35-sat svg { width: 30px; height: 30px; }
#v35-press > svg { width: 42px; height: 42px; }
.v35-float { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.v35-sat .lbl { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; }
.v35-card .k { font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.v35-card .t { font-size: 15px; font-weight: 700; }
.v35-card .t em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 16px; }
.v35-card .when, .v35-trophy .when { font-weight: 700; }
.v35-tab { font-weight: 700; font-size: 10.5px; }
.v35-dest, .v35-tin h4, .v35-h4, .v35-cell .v, #v35-multpill, .v35-row .act, #v35-feed .v35-head span { font-family: var(--font-mono-wide, var(--font-mono)); font-weight: 700; }
.v35-dest { font-size: 8px; letter-spacing: .1em; }
.v35-cell .v { font-size: 7.5px; }

/* ---- masthead: one action cluster, in flow, safe-area proof ---- */
.masthead-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.masthead .masthead-xp { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px 0 8px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--gold); color: var(--ink); box-shadow: 0 2px 0 rgba(36,26,18,.28); }
.masthead .masthead-xp .pack-count { font: 700 12px/1 var(--font-mono-wide, var(--font-mono)); }
.masthead-xp__ico { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.masthead-xp__ico svg { width: 16px; height: 16px; }
.masthead .help-btn, .masthead .dark-toggle {
  position: static; width: 34px; height: 34px; margin: 0; padding: 0; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--cream); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 0 rgba(36,26,18,.28);
  font: 700 16px/1 var(--font-display); cursor: pointer; transform: none;
}
.masthead .dark-toggle svg { width: 16px; height: 16px; }
.masthead .help-btn:active, .masthead .dark-toggle:active, .masthead .masthead-xp:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(36,26,18,.28); }

/* ---- 3D chrome layer: one transparent WebGL canvas across the bottom band ---- */
#v35-gl { position: fixed; left: 0; right: 0; bottom: 0; height: 190px; width: 100%; z-index: 456; pointer-events: none; }
/* with the scene live, the DOM press and orb become hit targets and text only */
body.v35-3d #v35-press { background: transparent; border-color: transparent; box-shadow: none; }
body.v35-3d #v35-press .ring, body.v35-3d #v35-press svg { opacity: 0; }
body.v35-3d #v35-orb { background: transparent; border-color: transparent; box-shadow: none; z-index: 470; }
body.v35-3d #v35-orb .core { text-shadow: 0 1px 0 rgba(244,236,219,.7); }
body.v35-3d #v35-orb.pop { animation: none; }
/* the sheets slide over the canvas (the 3D lives on the map); above a sheet the
   orb goes back to its flat gold self so it stays a readable toggle, and the
   multiplier pill folds out of the way of the cards */
body.feed-open #v35-orb, body.shelves-open #v35-orb { background: var(--gold); border-color: var(--ink); box-shadow: 0 5px 0 rgba(36,26,18,.35); }
body.feed-open #v35-multpill.on, body.shelves-open #v35-multpill.on { transform: scale(0); }
body:has(.bottom-sheet--visible) #v35-gl { opacity: 0; transition: opacity .2s; }

/* ---- the catch: a token flying from the pin into the orb ---- */
.v35-catch { position: fixed; width: 44px; height: 44px; z-index: 488; pointer-events: none; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--ink); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(36,26,18,.3); will-change: transform, opacity; }
.v35-catch svg { width: 26px; height: 26px; }
.v35-catch.rare { border-color: #B87F20; box-shadow: 0 4px 0 rgba(184,127,32,.55), 0 0 0 3px rgba(235,161,51,.35); }

@media (prefers-reduced-motion: reduce) {
  .v35-spawn .rays { display: none; }
  .v35-spawn .tok, .v35-card, #v35-press, .v35-sat, #v35-feed, #v35-shelves, #v35-toast, .v35-float { animation-duration: .01s !important; transition-duration: .01s !important; }
  #v35-press .ring { animation: none; }
}


/* ==========================================================================
   STOP SHEET (js/bottom-sheet.js), round 4, auditor B1/B2.
   The sheet's rules lived only in css/views.css, which index.html never loads:
   the sheet rendered as raw HTML over the masthead, the backdrop was 0px tall
   so nothing could dismiss it, and the chrome-ducking rule above stayed on
   forever. Same look as the feed and shelves sheets.
   ========================================================================== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 457; background: rgba(36,26,18,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sheet-backdrop--visible { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 459;
  background: var(--cream); color: var(--ink);
  border-top: 3px solid var(--ink); border-radius: 18px 18px 0 0;
  transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 78vh; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  padding-bottom: calc(env(safe-area-inset-bottom, 12px) + 14px);
  box-shadow: 0 -8px 24px rgba(36,26,18,.18);
}
.bottom-sheet--visible { transform: translateY(0); }
.bottom-sheet--era-precontact { border-top-color: var(--era-precontact); }
.bottom-sheet--era-spanish { border-top-color: var(--era-spanish); }
.bottom-sheet--era-mexican { border-top-color: var(--era-mexican); }
.bottom-sheet--era-american { border-top-color: var(--era-american); }
.bottom-sheet--era-modern, .bottom-sheet--era-20th { border-top-color: var(--era-20th); }
.bottom-sheet--era-contemporary { border-top-color: var(--era-contemporary); }
.sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: rgba(36,26,18,.3); margin: 10px auto 12px; }
.sheet-body { padding: 0 16px 6px; }
.sheet-stop-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sheet-stop-num {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font: 700 11px var(--font-mono); letter-spacing: .1em; background: var(--cream);
}
.sheet-stop-name { font: italic 600 22px/1.1 var(--font-serif); color: var(--ink); letter-spacing: 0; text-transform: none; }
.sheet-stop-meta { margin-top: 5px; font: 600 9px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--oak); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.era-badge { display: inline-block; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: var(--cream); font: 600 8px var(--font-mono); letter-spacing: .14em; line-height: 1; }
.era-badge--precontact { background: var(--era-precontact); }
.era-badge--spanish { background: var(--era-spanish); }
.era-badge--mexican { background: var(--era-mexican); color: var(--ink); }
.era-badge--american { background: var(--era-american); }
.era-badge--modern, .era-badge--20th { background: var(--era-20th); }
.era-badge--contemporary { background: var(--era-contemporary); }
.sheet-stop-baseline { font: 400 14px/1.5 var(--font-body); color: var(--ink); margin: 6px 0 14px; }
.sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sheet-actions--two { grid-template-columns: 1fr 1fr; }
.sheet-btn {
  min-height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--ink);
  font: 700 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; line-height: 1.25;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 6px;
  box-shadow: 0 3px 0 rgba(36,26,18,.3); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sheet-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(36,26,18,.3); }
.sheet-btn--gold { background: var(--gold); }
.sheet-related-label { font: 600 9px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--oak); border-top: 2px solid var(--ink); padding-top: 10px; margin: 4px 0 8px; }
.sheet-related-event { font: 400 13px/1.35 var(--font-body); color: var(--ink); padding: 8px 10px; border: 2px solid var(--ink); border-left-width: 6px; border-left-color: var(--gold); border-radius: 10px; margin-bottom: 6px; background: var(--cream); cursor: pointer; }
.sheet-related-event:active { background: var(--gold); }
.sheet-binocular-distance { font: 700 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); margin: 2px 0 8px; }
.sheet-binocular-teaser { font: 400 14px/1.5 var(--font-body); color: var(--ink); margin-bottom: 10px; }
.sheet-binocular-grant { display: inline-block; font: 700 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; background: var(--gold); border: 2px solid var(--ink); border-radius: 99px; padding: 7px 12px; color: var(--ink); }
/* the stop sheet is a sheet like the others: bloom folds, toast stays above (480), celebration above all (1500) */
body:has(.bottom-sheet--visible) .v35-sat { opacity: 0; pointer-events: none; }

/* ---- DEMO WALK toggle (index.html #demo-toggle, js/demo.js), round 4, auditor B4 ----
   Brand pill above the shutter; hidden under sheets, the bloom, the celebration and off the map. */
.demo-toggle {
  right: 14px; bottom: calc(env(safe-area-inset-bottom, 12px) + 18px + 72px + 12px);
  z-index: 454; padding: 9px 13px; gap: 7px;
  background: var(--cream); border: 2px solid var(--ink); color: var(--ink);
  font: 700 9.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(36,26,18,.3); border-radius: 99px;
  transition: opacity .18s, transform .18s;
}
.demo-toggle--on { background: var(--gold); border-color: var(--ink); color: var(--ink); }
.demo-toggle__dot { width: 8px; height: 8px; background: var(--tomato); }
.demo-toggle--on .demo-toggle__dot { background: var(--ink); }
body.bloom .demo-toggle, body.feed-open .demo-toggle, body.shelves-open .demo-toggle,
body:has(.bottom-sheet--visible) .demo-toggle, body:not([data-view="map"]) .demo-toggle,
body:has(.celebration:not([hidden])) .demo-toggle { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* ---- C-05: every scrolling surface reserves room for the press, the orb and the shutter ---- */
.view:not(#view-map), .view--overlay { padding-bottom: calc(env(safe-area-inset-bottom, 12px) + 124px); box-sizing: border-box; }
#passport-content { padding-bottom: calc(env(safe-area-inset-bottom, 12px) + 124px) !important; }
.v35-pane { padding-bottom: 120px; }
/* ---- C-07: the era filter bar signals that it scrolls ---- */
.filter-bar { scroll-snap-type: x proximity; scroll-padding-left: 12px; padding-right: 56px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); }
.filter-btn { scroll-snap-align: start; flex: none; }
/* ---- C-13: the merchants empty state was trapped in one 100px grid column ---- */
.sjb-backpack-grid > p { grid-column: 1 / -1; text-align: left; font: 400 13px/1.45 var(--font-body); }
/* ---- C-06: locked trail cards carry ink captions on the clay field, not half-transparent cream ---- */
.stop-card--locked .stop-card__cap { color: var(--ink); }
.stop-card--locked .stop-card__cap .stop-card__yr { opacity: .85; }
.stop-card--locked .stop-card__name { opacity: .92; text-shadow: none; }

/* ==========================================================================
   MAP PINS BY ZOOM, round 4 (auditor A4 / A9). One 46 px Leaflet box, the pin
   drawn inside it and centred, sized by #map-container[data-z]. Three states:
   locked medallion, spotted (binocular) dashed gold, walked tomato stamp.
   ========================================================================== */
#map-container .leaflet-marker-icon:not(.v35-spawn-icon) { display: grid; place-items: center; background: none; border: 0; overflow: visible; }
#map-container .pin { position: relative; transition: width .18s ease, height .18s ease, font-size .18s ease, transform .15s ease; }
#map-container .pin::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; } /* B9: 44 px hit area at every size */
#map-container .pin--spotted { width: 26px; height: 26px; font-size: 10px; background: var(--cream); color: var(--ink); border: 2px dashed var(--gold); }
#map-container[data-z="14"] .pin, #map-container[data-z="15"] .pin { width: 12px; height: 12px; font-size: 0; border-width: 1.5px; box-shadow: 0 1px 3px rgba(36,26,18,.35); }
#map-container[data-z="14"] .pin--discovered, #map-container[data-z="15"] .pin--discovered { width: 14px; height: 14px; }
#map-container[data-z="16"] .pin--locked, #map-container[data-z="16"] .pin--spotted { width: 18px; height: 18px; font-size: 0; }
#map-container[data-z="16"] .pin--discovered { width: 22px; height: 22px; font-size: 0; }
#map-container[data-z="16"] .pin--nearby { width: 30px; height: 30px; font-size: 10px; }
#map-container[data-z="17"] .pin--locked, #map-container[data-z="17"] .pin--spotted { width: 24px; height: 24px; font-size: 9px; }
#map-container[data-z="17"] .pin--discovered { width: 34px; height: 34px; font-size: 12px; }
#map-container[data-z="17"] .pin--nearby { width: 40px; height: 40px; font-size: 13px; }
/* the finish remount of the M01 rays behind the developed photo is glow, not a beat (SOUL, 2026-08-31) */
.celebration.is-developed .celebration__fx-rays { opacity: .3; transition: opacity .6s ease; }

/* ---- round 4 collisions found on the AFTER pass ---- */
/* the NEXT STOP banner is a map overlay: it folds under the stop sheet and the detail overlay */
body:has(.bottom-sheet--visible) .guide-banner, body:has(.view--overlay-open) .guide-banner { opacity: 0; pointer-events: none; }
/* the multiplier pill is 16 px tall, so a 190% duck left it peeking over the stop sheet */
body:has(.bottom-sheet--visible) #v35-multpill { transform: translateY(160px); opacity: 0; }
/* dark mode has no palette in any loaded stylesheet (auditors B3, C-04, A7): the toggle is off the
   masthead until a night theme is actually designed, so the bar only carries controls that work */
.dark-toggle { display: none !important; }
/* DEMO WALK pill: top-right under the progress band, clear of the NEXT STOP banner and the shutter */
.demo-toggle { right: 12px; bottom: auto; top: calc(var(--masthead-h) + var(--progress-h, 36px) + 10px); }
/* discovery card: once developed, the full-bleed plate is texture under the type, not the ground.
   With the M01 remount dropped to a glow the light plate was washing out the cream name. */
.celebration.is-developed .celebration__fx-photo { opacity: .3; filter: saturate(.55) contrast(1.05); }
/* passport stamps: the historic name in Archer italic (the one type rule that matters most), tier chip on one line */
.stamp:not(.stamp--locked):not(.stamp--binocular) .stamp__name { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 15px; letter-spacing: 0; }
.stamp__tier { white-space: nowrap; font-size: 8.5px; }
/* shoebox cells, round 4: descriptor line in the body face; ghost slots for the un-found; toss is quiet */
.v35-cell .l { font: 400 10.5px/1.3 var(--font-body); color: var(--ink); margin-top: 3px; }
.v35-cell.ghost { border-style: dashed; border-color: rgba(36,26,18,.45); background: transparent; box-shadow: none; }
.v35-cell.ghost .ico { background: transparent; border-color: rgba(36,26,18,.35); }
.v35-cell.ghost .ico svg { opacity: .28; filter: grayscale(1); }
.v35-cell.ghost .n { color: rgba(36,26,18,.55); font-weight: 600; }
.v35-cell.ghost .l, .v35-cell.ghost .v { color: rgba(36,26,18,.55); }
.v35-cell.ghost .dots i { opacity: .2; }
.v35-empty--tight { padding: 6px 12px 14px; }
.v35-cell .toss { top: -6px; right: -6px; width: 20px; height: 20px; background: var(--cream); color: var(--ink); border: 1.5px solid var(--ink); font: 700 10px/16px var(--font-mono); opacity: .6; }
.v35-cell .toss:active { opacity: 1; background: var(--gold); }
/* timeline, round 4 (auditors C-09, C-20): the hero's two lines no longer collide, and the 33 filter
   chips become two one-line scroll strips instead of a screen and a half of chrome */
.tl-masthead__title { line-height: 1.02 !important; }
.tl-filters__eras, .tl-filters__tags { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 2px 44px 8px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent 100%); }
.tl-filters__eras::-webkit-scrollbar, .tl-filters__tags::-webkit-scrollbar { display: none; }
.tl-filters__eras > *, .tl-filters__tags > * { flex: none; scroll-snap-align: start; white-space: nowrap; }
/* archive hero: the inline h1 rule forces line-height .72 and the two lines collided (auditor C-09) */
.wiki-hero__title { line-height: 1.0 !important; }
/* detail hero: the inline h1 rule forced line-height .72 and the stop name's lines collided */
.detail-hero__name, .detail-hero__name * { line-height: .96 !important; }
/* detail hero: the Photo button had no rule at all (only 3D View and AR were styled) and rendered as a system button */
.detail-hero__actions .btn--photo { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; background: rgba(196,120,90,.2); border: 1px solid var(--terracotta); color: var(--bg); padding: 6px 14px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.detail-hero__actions .btn--photo svg { width: 16px; height: 16px; }

/* ---- round 4 core loop: one next stop, warm state, route line, chapter line on the celebration ---- */
.guide-banner--warm { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(235,161,51,.35), 0 10px 24px rgba(36,26,18,.18) !important; }
.guide-banner--warm .guide-banner__kicker { color: var(--tomato) !important; }
.guide-banner__meta { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.35; }
.sjb-route { stroke-dasharray: 5 9; animation: sjbRoute 1.2s linear infinite; }
@keyframes sjbRoute { to { stroke-dashoffset: -14; } }
.celebration__next { font: 700 10px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
/* the chapter's next stop is the one bright pin; stops outside the active chapter dim */
#map-container .pin--next { background: var(--gold) !important; color: var(--ink); border: 2.5px solid var(--ink) !important; animation: pin-pulse 1.6s ease-in-out infinite; z-index: 5; }
#map-container[data-z="15"] .pin--next, #map-container[data-z="14"] .pin--next { width: 18px !important; height: 18px !important; }
#map-container[data-z="16"] .pin--next { width: 26px !important; height: 26px !important; font-size: 10px !important; }
#map-container[data-z="17"] .pin--next { width: 34px !important; height: 34px !important; font-size: 12px !important; }
#map-container .pin--dim { opacity: .5; }
