/* ═══════════════════════════════════════════════════════════════════
   Your places (#your-places). 2026-10-29 rebuild, owned by the Your
   places builder (site-work/_ref/BRIEF.md).
   Mark: "we need a way better section for the part below too."
   The same language as #planner (flat colour stage, giant sentence with
   something live in it, count-ups, story bars, a phone in the app's look,
   things popping out of it) with its own idea: one find travels from a
   video to your map, into a folder, to your friends. For the map the phone
   lies down and the saved places stand up out of the screen as the app's
   photo pins, with shadows.
   Phone screens copy the SwiftUI code (Sky theme, the default):
     import  ImportTikTokSheet.swift (paper #DAE8FD, ink #0E2042)
     map     VRSavedFolderMapView + VRSavedMapPin + VRSavedMapClusterBubble
     saved   SavedPlacesView (header, stat chips, search, Your folders,
             VRSavedFolderTile) and the root dock (ContentView VRRootDock)
     shared  VRSavedFolderDetailView hero + VRSavedGridTileV2 with the
             added-by avatar (addedByBadge)
   Without JS: scene one, still. Reduced motion: tabs, nothing moves.
   Everything is scoped under #your-places and prefixed pw-.
   ═══════════════════════════════════════════════════════════════════ */

#your-places, #your-places * { box-sizing: border-box; }
#your-places.pw {
  --pw-stage-h: clamp(600px, calc(100vh - 96px), 920px);
  --pw-per: 55vh;
  --pw-ink: #0e2042;            /* VRPaper.ink, Sky */
  --pw-ink2: rgba(14, 32, 66, .67);
  --pw-ink3: rgba(14, 32, 66, .52);
  --pw-paper: #dae8fd;          /* VRPaper.paper, Sky */
  --pw-card: #f3f9ff;           /* VRPaper.card, Sky */
  --pw-hair: rgba(14, 32, 66, .11);
  --pw-gold: #ffc752;           /* VRLux.gold */
  --pw-night: #0f1a33;          /* VRTheme.glass on Sky */
  --pw-rnd: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --pw-sys: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  position: relative;
  padding: 96px 0 40px;
  background: transparent;      /* beats the old chapter-flow gradient; flow.css loads later */
  color: #111214;
}
.pw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#your-places svg { flex: none; }
#your-places svg use { pointer-events: none; }

/* Laptops: the stage holds still while you scroll past it and each scroll
   step plays the next scene (places-world.js adds .pw-scrolly). */
.pw-hold { position: relative; }
.pw-hold.pw-scrolly { height: calc(var(--pw-stage-h) + var(--pw-per) * 3 + 20vh); }
.pw-hold.pw-scrolly .pw-stage { position: sticky; top: max(76px, calc(50vh - var(--pw-stage-h) / 2 + 30px)); }

/* ── The stage ───────────────────────────────────────────────────── */
.pw-stage {
  --pw-c: #ff8fb4; --pw-s: .86;
  position: relative; isolation: isolate; overflow: hidden;
  width: min(1800px, calc(100% - 32px)); height: var(--pw-stage-h);
  margin: 0 auto;
  /* Rounded by clip-path, not overflow + border-radius: Safari then clips the
     3D phone with one mask instead of a mask per moving layer. */
  clip-path: inset(0 round 44px);
  background: var(--pw-c); color: #111214;
}
.pw-flood { position: absolute; inset: 0; z-index: 0; visibility: hidden; }
.pw-ghosts { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pw-ghost { position: absolute; left: -.03em; bottom: -.19em; color: rgba(255, 255, 255, .26); font: 800 clamp(170px, 19vw, 380px)/1 'Inter', sans-serif; letter-spacing: -.065em; white-space: nowrap; visibility: hidden; }
.pw-stage:not(.pw-js) .pw-ghost:first-child, .pw-stage.pw-still .pw-ghost.pw-on { visibility: visible; }
.pw-grid {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) calc(560px * var(--pw-s)); column-gap: calc(290px * var(--pw-s));
  padding: 0 clamp(32px, 5vw, 88px);
}
.pw-left { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pw-right { position: relative; display: flex; align-items: center; }

/* Tag, top left: the app's Saved tab. */
.pw-tag { position: absolute; top: clamp(28px, 5vh, 48px); left: 0; display: flex; align-items: center; gap: 9px; height: 40px; margin: 0; padding: 0 17px 0 13px; border-radius: 14px; background: #111214; color: #fff; font: 800 17px/40px 'Inter', sans-serif; letter-spacing: -.01em; }
.pw-tag svg { width: 17px; height: 17px; }

/* The giant sentences */
.pw-lines { position: relative; }
.pw-line {
  margin: 0; max-width: 11.5em;
  font: 800 clamp(44px, 4.7vw, 88px)/1.02 'Inter', -apple-system, sans-serif; letter-spacing: -.055em;
  text-wrap: balance;
}
.pw-stage:not(.pw-js) .pw-line:not(:first-child) { display: none; }
.pw-stage.pw-js .pw-line { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); visibility: hidden; }
.pw-stage.pw-still .pw-line.pw-on { visibility: visible; }
.pw-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .16em; margin: 0 -.03em -.16em; }
.pw-i, .pw-c { display: inline-block; }
.pw-key { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.pw-scr { position: absolute; z-index: -1; left: -3%; width: 106%; bottom: -.12em; height: .3em; overflow: visible; pointer-events: none; }
.pw-scr path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Things that live inside the sentences */
.pw-obj { position: relative; display: inline-flex; align-items: center; justify-content: center; height: .84em; margin: 0 .04em; vertical-align: -.1em; font-variant-numeric: tabular-nums; }
/* The app's photo pin (VRSavedMapPin): photo in a dark disc, a violet ring, a tail. */
.pw-o-pin { width: .7em; height: .9em; vertical-align: -.16em; }
.pw-o-pinb { position: absolute; left: 0; top: 0; width: .7em; height: .7em; border-radius: 50%; background: #c79eff; box-shadow: 0 .1em .16em -.06em rgba(17, 18, 20, .55); }
.pw-o-pinb::before { content: ""; position: absolute; inset: .02em; border-radius: 50%; background: #1a1730; }
.pw-o-pinb img { position: absolute; inset: .07em; width: calc(100% - .14em); height: calc(100% - .14em); border-radius: 50%; object-fit: cover; }
.pw-o-pin > i { position: absolute; left: 50%; top: .685em; width: .16em; height: .12em; margin-left: -.08em; background: #c79eff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
/* A cluster bubble (VRSavedMapClusterBubble), counting. */
.pw-o-clu { width: .96em; height: .96em; vertical-align: -.16em; border-radius: 50%; background: #ffd0e0; box-shadow: 0 .06em .14em -.05em rgba(17, 18, 20, .45); }
.pw-o-clu::before { content: ""; position: absolute; inset: .085em; border-radius: 50%; background: #fa6b9e; }
.pw-o-clu b { position: relative; color: #fff; font-size: .3em; font-weight: 800; letter-spacing: -.03em; }
/* A folder tile (VRSavedFolderTile), in small. */
.pw-o-fold { width: 1.3em; overflow: hidden; border-radius: .2em; background: var(--pw-night); box-shadow: inset 0 0 0 .04em #fff; }
.pw-o-fold img { width: 50%; height: 100%; object-fit: cover; }
.pw-o-fold img + img { border-left: .02em solid #0f1a33; }
.pw-o-fold i { position: absolute; left: .4em; top: .4em; display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--pw-night); box-shadow: 0 0 0 .08em rgba(255, 255, 255, .45); font-size: .21em; font-style: normal; line-height: 1; }
/* Faces of the people in a folder. */
.pw-o-faces { gap: 0; margin-right: .08em; }
.pw-o-faces i { display: grid; place-items: center; width: 1.72em; height: 1.72em; margin-left: -.48em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .12em #111214; font-size: .42em; font-style: normal; line-height: 1; }
.pw-o-faces i:first-child { margin-left: 0; }
.pw-o-faces i:nth-child(1) { background: #ffd23f; }
.pw-o-faces i:nth-child(2) { background: #62e0b8; }
.pw-o-faces i:nth-child(3) { background: #6ccbff; }

/* Count-up numbers under each sentence */
.pw-stats { position: relative; height: clamp(84px, 11vh, 104px); margin-top: clamp(26px, 4vh, 44px); }
.pw-set { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: clamp(26px, 3.2vw, 56px); visibility: hidden; }
.pw-stage:not(.pw-js) .pw-set:first-child, .pw-stage.pw-still .pw-set.pw-on { visibility: visible; }
.pw-stat { margin: 0; }
.pw-stat b { display: block; font: 800 clamp(34px, 3.3vw, 58px)/1 'Inter', sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-stat i { display: inline-block; font-style: normal; }
.pw-stat span { display: block; max-width: 14ch; margin-top: 8px; color: rgba(17, 18, 20, .74); font: 700 15px/1.25 'Inter', sans-serif; }
/* Example numbers say so, right beside them. */
.pw-ex { align-self: flex-start; margin-top: 4px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .5); color: rgba(17, 18, 20, .72); font: 700 13px/1 'Inter', sans-serif; white-space: nowrap; }

/* Story bars */
.pw-prog { position: absolute; left: 0; right: 0; bottom: clamp(26px, 4.5vh, 44px); display: none; gap: 8px; }
.pw-stage.pw-js .pw-prog { display: flex; }
.pw-prog button { flex: 1; min-width: 0; margin: 0; padding: 10px 0 0; border: 0; background: none; color: #111214; text-align: left; cursor: pointer; }
.pw-prog [data-go] > i { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(17, 18, 20, .16); }
.pw-prog [data-go] b { display: block; height: 100%; background: #111214; transform: scaleX(0); transform-origin: 0 50%; }
.pw-prog [data-go] span { display: block; margin-top: 9px; font: 700 12.5px/1.2 'Inter', sans-serif; letter-spacing: -.01em; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.pw-prog button[aria-current] span, .pw-prog button:hover span, .pw-prog button:focus-visible span { opacity: 1; }
.pw-prog button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 6px; }
.pw-prog .pw-next { flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -8px; padding: 0; border-radius: 50%; background: #111214; color: #fff; font: 800 20px/1 'Inter', sans-serif; text-align: center; animation: pw-nudge 1.6s ease-in-out infinite; }
.pw-hold.pw-scrolly .pw-next.pw-end { visibility: hidden; }
.pw-cta {
  flex: none; display: flex; align-items: center; gap: 10px;
  max-width: 0; height: 48px; margin-top: -9px; padding: 0; overflow: hidden;
  border-radius: 24px; background: #111214; color: #fff; text-decoration: none; white-space: nowrap;
  font: 800 16px/1 'Inter', sans-serif; letter-spacing: -.01em; opacity: 0;
  transition: max-width .7s cubic-bezier(.22, 1, .36, 1), padding .7s cubic-bezier(.22, 1, .36, 1), opacity .3s, transform .2s;
}
.pw-cta i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #111214; font-style: normal; }
.pw-stage.pw-at-end .pw-cta { max-width: 260px; padding: 0 8px 0 20px; opacity: 1; transition-delay: 1.6s, 1.6s, 1.6s, 0s; }
.pw-stage.pw-at-end .pw-cta:hover { transform: translateY(-2px); }
.pw-stage.pw-at-end .pw-next { display: none; }
.pw-stage.pw-at-end .pw-prog span { opacity: 0; }
.pw-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pw-prog .pw-pause { display: none; flex: none; place-items: center; width: 40px; height: 40px; margin-top: -6px; padding: 0; border-radius: 50%; background: rgba(17, 18, 20, .14); }
.pw-hold:not(.pw-scrolly) .pw-stage.pw-gs .pw-pause { display: grid; }
.pw-pause i { position: relative; width: 12px; height: 13px; border: solid #111214; border-width: 0 4px; }
.pw-pause.pw-held i { width: 0; height: 0; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #111214; margin-left: 3px; }
@keyframes pw-nudge { 50% { transform: translateY(4px); } }

/* ── The phone, in 3D ────────────────────────────────────────────── */
.pw-box { position: relative; width: calc(360px * var(--pw-s)); height: calc(740px * var(--pw-s)); }
.pw-device { position: absolute; left: 0; top: 0; width: 360px; height: 740px; transform: scale(var(--pw-s)); transform-origin: 0 0; }
.pw-tilt, .pw-spin, .pw-phone { position: absolute; inset: 0; transform-style: preserve-3d; }
/* Resting pose before the JS takes over (and the still scenes). */
.pw-tilt { transform: perspective(1300px) rotateY(-10deg) rotateX(4deg); }
.pw-spin { transform: rotate(-2deg); }
.pw-stage.pw-still.pw-p1 .pw-tilt { transform: perspective(1300px) translateY(-20px) rotateX(54deg) scale(1.08); }
.pw-stage.pw-still.pw-p1 .pw-spin { transform: rotate(-24deg); }
@media (max-width: 899px) {
  .pw-tilt { transform: perspective(1300px) rotateX(2deg); }
  .pw-spin { transform: rotate(-3deg); }
  .pw-stage.pw-still.pw-p1 .pw-tilt { transform: perspective(1300px) translateY(-10px) rotateX(40deg) scale(.92); }
  .pw-stage.pw-still.pw-p1 .pw-spin { transform: rotate(-6deg); }
  .pw-stage .pw-pins { --pw-bz: 6deg; --pw-bx: -40deg; }
}
/* The shadow the phone throws, a plane underneath it. */
.pw-floor { position: absolute; left: -40px; top: -20px; width: 440px; height: 800px; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 18, 20, .42), rgba(17, 18, 20, .2) 55%, rgba(17, 18, 20, 0)); transform: translate3d(22px, 40px, -70px); pointer-events: none; }
/* The body has a thickness: layers behind the face. */
.pw-edge { position: absolute; inset: 0; border-radius: 58px; background: #1d1d22; transform: translateZ(var(--z)); backface-visibility: hidden; }
.pw-body, .pw-floor, .pw-pins > *, .pw-fstack .pw-ft, .pw-drop, .pw-vin { backface-visibility: hidden; }
.pw-edge.e1 { background: #3b3b42; }
.pw-edge.e0 { background: #5d5d66; }
.pw-body { position: absolute; inset: 0; padding: 11px; border-radius: 58px; background: #0b0b0c; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.pw-screen { position: relative; height: 100%; clip-path: inset(0 round 47px); background: var(--pw-paper); isolation: isolate; }
.pw-screen::before { content: ""; position: absolute; z-index: 30; top: 11px; left: 50%; width: 104px; height: 31px; margin-left: -52px; border-radius: 16px; background: #000; }
.pw-app { position: absolute; inset: 0; z-index: 0; visibility: hidden; }
.pw-app.pw-on { visibility: visible; }
.pw-stage:not(.pw-js) .pw-imp { visibility: visible; }

/* Status bar */
.pw-st { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 4px 28px 0 36px; color: var(--pw-ink); font: 600 15px/1 var(--pw-sys); }
.pw-st.lt { color: #fff; }
.pw-sb { display: flex; align-items: flex-end; gap: 2px; }
.pw-sb i { width: 3px; border-radius: 1px; background: currentColor; }
.pw-sb i:nth-child(1) { height: 4px; } .pw-sb i:nth-child(2) { height: 6px; } .pw-sb i:nth-child(3) { height: 8px; } .pw-sb i:nth-child(4) { height: 10px; }
.pw-sb em { width: 22px; height: 11px; margin-left: 6px; border-radius: 3px; background: currentColor; }

/* ── 1. Turn a video into a saved spot (ImportTikTokSheet) ───────── */
.pw-imp { background: var(--pw-paper); font-family: var(--pw-rnd); color: var(--pw-ink); }
.pw-imp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; background: #000; }
.pw-under { position: absolute; left: 16px; right: 16px; top: 46px; height: 40px; border-radius: 14px 14px 0 0; background: #6d7891; }
.pw-sheet { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; border-radius: 34px 34px 0 0; background: var(--pw-paper); }
.pw-x { position: absolute; z-index: 2; left: 15px; top: 13px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--pw-card); box-shadow: inset 0 0 0 1px var(--pw-hair); color: var(--pw-ink); }
.pw-x svg { width: 12px; height: 12px; }
.pw-mo { position: absolute; left: 19px; right: 19px; top: 52px; opacity: 0; visibility: hidden; }
.pw-imp[data-m="paste"] .pw-mo-paste, .pw-imp[data-m="typing"] .pw-mo-paste, .pw-imp[data-m="press"] .pw-mo-paste,
.pw-imp[data-m="read"] .pw-mo-read, .pw-imp[data-m="find"] .pw-mo-read,
.pw-imp[data-m="found"] .pw-mo-found, .pw-imp[data-m="chosen"] .pw-mo-found, .pw-imp[data-m="saving"] .pw-mo-found, .pw-imp[data-m="saved"] .pw-mo-found {
  opacity: 1; visibility: inherit;
}
.pw-art { position: relative; height: 146px; }
.pw-art.big { height: 196px; margin-top: 22px; }
.pw-art-c { position: absolute; left: 50%; top: 50%; width: 82px; height: 132px; margin: -60px 0 0 -41px; border-radius: 18px; box-shadow: 0 9px 14px -4px rgba(0, 0, 0, .25); }
.pw-art.big .pw-art-c { width: 96px; height: 156px; margin: -70px 0 0 -48px; border-radius: 20px; }
.pw-art-c.a { background: linear-gradient(to top right, #ffc245, #f5386a 55%, #8c3dd9); transform: translateX(-40px) translateY(7px) rotate(-9deg); }
.pw-art-c.b { background: linear-gradient(to bottom right, #10dbdb, #fc2b66); transform: translateX(36px) translateY(-3px) rotate(6deg); }
.pw-art.big .pw-art-c.a { transform: translateX(-46px) translateY(8px) rotate(-9deg); }
.pw-art.big .pw-art-c.b { transform: translateX(42px) translateY(-4px) rotate(6deg); }
.pw-art-c svg { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -11px; color: rgba(255, 255, 255, .92); }
.pw-art-c i { position: absolute; left: 10px; bottom: 19px; width: 50px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.pw-art-c i + i { bottom: 10px; width: 34px; background: rgba(255, 255, 255, .55); }
.pw-art-pin { position: absolute; left: 50%; top: 50%; width: 43px; height: 43px; margin: -78px 0 0 -21px; color: var(--pw-gold); filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .3)); }
.pw-art.big .pw-art-pin { margin-top: -94px; }
.pw-scan { display: none; }
.pw-mo-read .pw-art-c.b {
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)), linear-gradient(to bottom right, #10dbdb, #fc2b66);
  background-size: 100% 40px, 100% 100%; background-repeat: no-repeat; background-position: 0 var(--pw-scan, 58px), 0 0;
}
.pw-imp-h { margin: 18px 0 0; font: 800 25px/1.12 var(--pw-rnd); letter-spacing: -.01em; }
.pw-imp-p { margin: 7px 0 0; color: var(--pw-ink2); font: 600 13.5px/1.36 var(--pw-rnd); }
.pw-field { display: flex; align-items: center; gap: 10px; height: 50px; margin-top: 18px; padding: 0 14px; border-radius: 15px; background: var(--pw-card); box-shadow: inset 0 0 0 1px var(--pw-hair); color: var(--pw-ink3); font: 600 14.5px/1 var(--pw-rnd); white-space: nowrap; overflow: hidden; transition: box-shadow .25s; }
.pw-imp[data-m="typing"] .pw-field, .pw-imp[data-m="press"] .pw-field { box-shadow: inset 0 0 0 1.5px #3889f5; }
.pw-field svg { width: 15px; height: 15px; }
.pw-typed { color: var(--pw-ink); overflow: hidden; text-overflow: ellipsis; }
.pw-typed:not(:empty) + .pw-ph { display: none; }
.pw-typed:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 17px; margin-left: 1px; vertical-align: -3px; background: #3889f5; animation: pw-blink 1s step-end infinite; }
@keyframes pw-blink { 50% { visibility: hidden; } }
.pw-help { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; color: var(--pw-ink2); font: 600 13px/1 var(--pw-rnd); }
.pw-help svg { width: 14px; height: 14px; }
.pw-read-h { position: relative; height: 30px; margin: 22px 0 0; font: 800 22px/30px var(--pw-rnd); text-align: center; }
.pw-read-h span { position: absolute; left: 0; right: 0; opacity: 0; }
.pw-imp[data-m="read"] .pw-read-h span:first-child, .pw-imp[data-m="find"] .pw-read-h span:last-child { opacity: 1; }
.pw-read-p { margin: 6px 0 0; color: var(--pw-ink2); font: 600 13px/1.3 var(--pw-rnd); text-align: center; }
.pw-hero { position: relative; height: 262px; border-radius: 22px; background: #c9d6ea; box-shadow: 0 9px 16px rgba(14, 32, 66, .12); }
.pw-hero img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22px; object-fit: cover; }
.pw-hero::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(transparent 48%, rgba(0, 0, 0, .78)); }
.pw-badge { position: absolute; z-index: 1; left: 12px; top: 12px; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 4px; border-radius: 13px; background: rgba(0, 0, 0, .45); color: #fff; font: 600 11px/1 var(--pw-rnd); }
.pw-badge i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(to bottom right, #10dbdb, #fc2b66); }
.pw-badge svg { width: 10px; height: 10px; color: #fff; }
.pw-notit { position: absolute; z-index: 1; right: 12px; top: 12px; display: grid; place-items: center; height: 29px; padding: 0 12px; border-radius: 15px; background: rgba(48, 48, 52, .62); color: #fff; font: 600 12px/1 var(--pw-rnd); }
.pw-hero-t { position: absolute; z-index: 1; left: 17px; right: 17px; bottom: 16px; color: #fff; }
.pw-hero-t b { display: block; font: 800 24px/1.05 var(--pw-rnd); letter-spacing: -.01em; }
.pw-hero-t span { display: flex; align-items: center; gap: 9px; margin-top: 6px; color: rgba(255, 255, 255, .8); font: 600 12px/1 var(--pw-rnd); white-space: nowrap; }
.pw-hero-t em { display: flex; align-items: center; gap: 3px; color: var(--pw-gold); font-style: normal; }
.pw-hero-t em svg { width: 11px; height: 11px; }
.pw-quote { display: flex; gap: 10px; margin-top: 16px; }
.pw-quote i { flex: none; width: 4px; border-radius: 2px; background: linear-gradient(#10dbdb, #fc2b66); }
.pw-quote p { margin: 0; font: 600 13px/1.36 var(--pw-rnd); }
.pw-saveto { margin: 16px 0 0; color: var(--pw-ink2); font: 600 13px/1 var(--pw-rnd); }
.pw-fchips { display: flex; gap: 7px; margin-top: 9px; white-space: nowrap; }
.pw-fchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; background: var(--pw-card); box-shadow: inset 0 0 0 1px var(--pw-hair); font: 600 13px/1 var(--pw-rnd); transition: background-color .2s, color .2s, box-shadow .2s; }
.pw-fchip svg { width: 11px; height: 11px; }
.pw-imp:not([data-m="chosen"]):not([data-m="saving"]):not([data-m="saved"]) .pw-fchip.a,
.pw-imp[data-m="chosen"] .pw-fchip.b, .pw-imp[data-m="saving"] .pw-fchip.b, .pw-imp[data-m="saved"] .pw-fchip.b { background: var(--pw-ink); color: var(--pw-card); box-shadow: none; }
.pw-addnote { display: flex; align-items: center; height: 48px; margin-top: 16px; padding: 0 15px; border-radius: 15px; background: var(--pw-card); box-shadow: inset 0 0 0 1px var(--pw-hair); color: rgba(60, 60, 67, .3); font: 600 14px/1 var(--pw-rnd); }
.pw-act { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 19px 28px; background: rgba(218, 232, 253, .94); }
.pw-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border-radius: 24px; background: var(--pw-ink); color: var(--pw-card); font: 700 15px/1 var(--pw-rnd); }
.pw-imp[data-m="paste"] .pw-btn { background: #aeb9cb; }
.pw-btn span { display: none; }
.pw-imp[data-m="paste"] .t1, .pw-imp[data-m="typing"] .t1, .pw-imp[data-m="press"] .t1,
.pw-imp[data-m="read"] .t2, .pw-imp[data-m="find"] .t2,
.pw-imp[data-m="found"] .t3, .pw-imp[data-m="chosen"] .t3, .pw-imp[data-m="saving"] .t3, .pw-imp[data-m="saved"] .t3 { display: inline; }
.pw-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(243, 249, 255, .3); border-top-color: var(--pw-card); border-radius: 50%; }
.pw-imp[data-m="read"] .pw-spinner, .pw-imp[data-m="find"] .pw-spinner { display: block; }
.pw-done { position: absolute; z-index: 25; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; }
.pw-imp[data-m="saved"] .pw-done { opacity: 1; visibility: inherit; }
.pw-done-c { display: grid; justify-items: center; gap: 12px; width: 266px; padding: 22px; border-radius: 24px; background: #121217; text-align: center; }
.pw-done-k { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; background: var(--pw-gold); color: #000; }
.pw-done-k svg { width: 24px; height: 24px; }
.pw-done-c b { color: #fff; font: 800 21px/1.1 var(--pw-rnd); }
.pw-done-c span { margin-top: -6px; color: rgba(255, 255, 255, .65); font: 600 13px/1.3 var(--pw-rnd); }
.pw-done-c em { display: grid; place-items: center; width: 100%; height: 43px; border-radius: 22px; background: var(--pw-gold); color: #000; font: 700 15px/1 var(--pw-rnd); font-style: normal; }

/* ── 2. Saved map (VRSavedFolderMapView) ─────────────────────────── */
.pw-map { background: #f4f0e8; font-family: var(--pw-rnd); }
.pw-map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 92% 50%; }
.pw-osm { position: absolute; left: 12px; bottom: 96px; padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, .7); color: rgba(60, 52, 40, .75); font: 500 8.5px/1.2 var(--pw-sys); }
.pw-map-scrim { position: absolute; left: 0; right: 0; top: 0; height: 132px; background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0)); }
.pw-map-top { position: absolute; z-index: 2; left: 10px; right: 10px; top: 52px; display: flex; align-items: center; gap: 10px; }
.pw-mbtn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .18); color: #fff; }
.pw-mbtn svg { width: 14px; height: 14px; }
.pw-mtitle { display: grid; gap: 1px; margin-right: auto; padding: 5px 9px 6px; border-radius: 12px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .18); }
.pw-mtitle b { color: #fff; font: 900 19px/1.05 var(--pw-rnd); letter-spacing: -.02em; }
.pw-mtitle span { color: rgba(255, 255, 255, .55); font: 800 9.5px/1.2 var(--pw-rnd); }
.pw-mpills { position: absolute; z-index: 2; left: 10px; right: 0; top: 96px; display: flex; gap: 7px; overflow: hidden; white-space: nowrap; }
.pw-mpills span { padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .65); font: 900 11px/1.1 var(--pw-rnd); transition: background-color .25s, color .25s; }
.pw-mpills span.pw-on { background: #8c54ff; box-shadow: inset 0 0 0 .8px rgba(199, 158, 255, .55); color: #fff; }
.pw-mplaces { position: absolute; z-index: 2; right: 12px; bottom: 96px; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .92); font: 900 10.5px/1 var(--pw-rnd); }
.pw-mplaces svg { width: 11px; height: 11px; }
.pw-mcard { position: absolute; z-index: 2; left: 12px; bottom: 24px; display: flex; align-items: center; gap: 9px; width: 232px; padding: 9px 10px; border-radius: 14px; background: var(--pw-night); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08), 0 4px 10px rgba(0, 0, 0, .3); }
.pw-mcard img { width: 41px; height: 41px; border-radius: 10px; object-fit: cover; }
.pw-mcard div { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.pw-mcard b { color: #fff; font: 600 11.5px/1.2 var(--pw-sys); white-space: nowrap; }
.pw-mcard span { color: rgba(255, 255, 255, .55); font: 400 10px/1.2 var(--pw-sys); white-space: nowrap; }
.pw-mcard svg { width: 9px; height: 9px; color: rgba(255, 255, 255, .35); }

/* The pins, standing on the map. Each one faces you (it undoes the
   phone's lie with --pw-bz / --pw-bx) and has its shadow on the map. */
.pw-pins { --pw-bz: 24deg; --pw-bx: -54deg; position: absolute; left: 11px; top: 11px; width: 338px; height: 718px; transform-style: preserve-3d; transform: translateZ(2px); pointer-events: none; visibility: hidden; }
.pw-stage.pw-still.pw-p1 .pw-pins { visibility: visible; }
.pw-pin, .pw-clu { position: absolute; left: var(--x); top: var(--y); transform-origin: 50% 100%; transform: rotate(var(--pw-bz)) rotateX(var(--pw-bx)); }
.pw-pin { width: 50px; height: 57px; margin: -57px 0 0 -25px; }
.pw-pin > span { position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: #c79eff; box-shadow: 0 6px 12px rgba(0, 0, 0, .45); }
.pw-pin > span::before { content: ""; position: absolute; inset: 1.4px; border-radius: 50%; background: #1a1730; }
.pw-pin img { position: absolute; left: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pw-pin > i { position: absolute; left: 20px; top: 49px; width: 10px; height: 7px; background: #c79eff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pw-pin.tt > span { background: linear-gradient(to bottom right, #29ebf2, #fa335c); }
.pw-pin.tt > i { background: #fa335c; }
.pw-clu { width: 48px; height: 48px; margin: -54px 0 0 -24px; border-radius: 50%; background: rgba(250, 107, 158, .28); box-shadow: inset 0 0 0 1px rgba(250, 107, 158, .6), 0 3px 8px rgba(0, 0, 0, .18); }
.pw-clu::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fa6b9e; }
.pw-clu b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 900 15px/1 var(--pw-rnd); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pw-shad { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 30px; margin: -13px 0 0 -16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 22, 40, .5), rgba(28, 22, 40, .18) 60%, rgba(28, 22, 40, 0)); }
.pw-shad.c { width: 50px; height: 34px; margin: -15px 0 0 -19px; background: radial-gradient(closest-side, rgba(28, 22, 40, .32), rgba(28, 22, 40, 0)); }
.pw-ring { position: absolute; left: var(--x); top: var(--y); width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; opacity: 0; }

/* ── 3. The Saved tab (SavedPlacesView) ──────────────────────────── */
.pw-saved { background: var(--pw-paper); font-family: var(--pw-rnd); color: var(--pw-ink); }
.pw-sv { position: absolute; left: 15px; right: 15px; top: 46px; }
.pw-sv-head { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.pw-sv-head b { margin-right: auto; font: 800 33px/1 var(--pw-rnd); letter-spacing: -.02em; }
.pw-puck { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-t16), 0 3px 7px rgba(90, 70, 170, .14); }
.pw-puck svg { width: 14px; height: 14px; }
.pw-puck.g { color: #6b3bef; --pw-t16: rgba(107, 59, 239, .16); }
.pw-puck.p { color: #fa6b9e; --pw-t16: rgba(250, 107, 158, .16); }
.pw-sv-stats { display: flex; align-items: center; gap: 6px; margin-top: 10px; white-space: nowrap; }
.pw-date { color: var(--pw-ink2); font: 700 11px/1 var(--pw-rnd); }
.pw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--pw-tc12); box-shadow: inset 0 0 0 1px var(--pw-tc24); color: rgba(14, 32, 66, .9); font: 600 11px/1.1 var(--pw-rnd); }
.pw-chip svg { width: 10px; height: 10px; color: var(--pw-tc); }
.pw-chip.m { --pw-tc: #37d9c4; --pw-tc12: rgba(55, 217, 196, .12); --pw-tc24: rgba(55, 217, 196, .24); }
.pw-chip.g { --pw-tc: #6b3bef; --pw-tc12: rgba(107, 59, 239, .12); --pw-tc24: rgba(107, 59, 239, .24); }
.pw-chip.c { --pw-tc: #ff5e7a; --pw-tc12: rgba(255, 94, 122, .12); --pw-tc24: rgba(255, 94, 122, .24); }
.pw-search { display: flex; align-items: center; gap: 9px; height: 41px; margin-top: 12px; padding: 0 12px; border-radius: 14px; background: #fff; box-shadow: 0 4px 9px rgba(90, 70, 170, .12); color: rgba(109, 100, 134, .9); font: 500 13px/1 var(--pw-sys); }
.pw-search svg { width: 13px; height: 13px; color: #6d6486; }
.pw-sv-fh { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.pw-sv-fh > svg { width: 10px; height: 10px; color: var(--pw-ink2); }
.pw-sv-fh b { margin-right: auto; font: 800 17px/1 var(--pw-rnd); }
.pw-newf { display: flex; align-items: center; gap: 5px; height: 41px; padding: 0 14px; border-radius: 999px; background: #3889f5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #fff; font: 600 12px/1 var(--pw-sys); }
.pw-newf svg { width: 11px; height: 11px; }
.pw-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 12px; }

/* A folder tile (VRSavedFolderTile): photo collage, emoji disc, count pill */
.pw-ft { position: relative; height: 155px; overflow: hidden; border-radius: 19px; background: var(--pw-night); box-shadow: 0 7px 15px rgba(0, 0, 0, .24); color: #fff; font-family: var(--pw-rnd); }
.pw-ft-ph { position: absolute; inset: 0; display: grid; gap: 1.5px; }
.pw-ft-ph.c3 { grid-template-columns: 60% 1fr; grid-template-rows: 1fr 1fr; }
.pw-ft-ph.c3 img:first-child { grid-row: 1 / 3; }
.pw-ft-ph.c2 { grid-template-columns: 1fr 1fr; }
.pw-ft-ph img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.pw-ft::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .18) 50%, rgba(0, 0, 0, .78)); }
.pw-ft-e { position: absolute; z-index: 1; left: 10px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pw-night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 4px 9px rgba(0, 0, 0, .35); font-size: 19px; line-height: 1; }
.pw-ft.sh .pw-ft-e { box-shadow: inset 0 0 0 1.5px rgba(77, 158, 255, .9), 0 4px 9px rgba(0, 0, 0, .35); }
.pw-ft-n { position: absolute; z-index: 1; right: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .42); box-shadow: inset 0 0 0 .75px rgba(255, 255, 255, .22); font: 700 10px/1.1 var(--pw-rnd); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.pw-ft-n i, .pw-ft-t i { font-style: normal; }
.pw-ft-t { position: absolute; z-index: 1; left: 11px; right: 11px; bottom: 12px; }
.pw-ft-t b { display: block; overflow: hidden; font: 800 14.5px/1.15 var(--pw-rnd); letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 5px rgba(0, 0, 0, .5); }
.pw-ft-t span { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: rgba(255, 255, 255, .85); font: 600 9.5px/1.1 var(--pw-rnd); white-space: nowrap; }
.pw-ft-t em { display: flex; align-items: center; gap: 2px; margin-left: 1px; color: #38d39b; font-style: normal; }
.pw-ft-t svg { width: 8px; height: 8px; }
.pw-ft.sh .pw-ft-t span { color: rgba(255, 255, 255, .94); font-weight: 800; font-size: 9px; }

/* The root dock (VRRootDock) */
.pw-dock { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; height: 74px; padding: 6px 10px 0; background: #0d0d0f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 -1px 14px rgba(0, 0, 0, .28); }
.pw-dock span { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; color: #737373; font: 600 9px/1 var(--pw-sys); }
.pw-dock span.on { color: #73c7ff; font-weight: 700; }
.pw-dock svg { width: 20px; height: 20px; }
.pw-dock > i { position: absolute; left: 50%; bottom: 8px; width: 113px; height: 4px; margin-left: -56px; border-radius: 2px; background: rgba(255, 255, 255, .18); }

/* ── 4. A shared folder (VRSavedFolderDetailView) ────────────────── */
.pw-shared { background: linear-gradient(#fff3e9, #f4e9ff 52%, #e7dbff); font-family: var(--pw-rnd); }
.pw-sh-hero { position: relative; height: 226px; overflow: hidden; }
.pw-sh-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-sh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .74)); }
.pw-sh-bar { position: absolute; z-index: 2; left: 12px; right: 12px; top: 49px; display: flex; gap: 7px; }
.pw-hchip { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px; background: #fff; box-shadow: 0 3px 6px rgba(90, 70, 170, .14); color: #171126; }
.pw-hchip svg { width: 14px; height: 14px; }
.pw-hchip.w { display: flex; gap: 5px; margin-left: auto; padding: 0 10px; font: 600 11px/1 var(--pw-sys); }
.pw-hchip.w svg { width: 12px; height: 12px; }
.pw-sh-t { position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 14px; color: #fff; }
.pw-sh-t i { display: block; font-size: 24px; font-style: normal; line-height: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pw-sh-t b { display: block; margin-top: 6px; font: 800 26px/1.05 var(--pw-rnd); letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.pw-sh-t span { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: rgba(255, 255, 255, .92); font: 800 11px/1 var(--pw-rnd); }
.pw-sh-t svg { width: 10px; height: 10px; }
.pw-sh-t svg + svg, .pw-sh-t span svg:nth-of-type(2) { margin-left: 8px; }
.pw-sh-t em { font-style: normal; font-variant-numeric: tabular-nums; }
.pw-sh-body { padding: 10px 14px 0; }
.pw-sh-search { display: flex; align-items: center; gap: 9px; height: 41px; padding: 0 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 4px 8px rgba(90, 70, 170, .1); color: #6d6486; font: 600 12.5px/1 var(--pw-rnd); }
.pw-sh-search svg { width: 13px; height: 13px; }
.pw-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 10px; }
.pw-pt { position: relative; height: 163px; overflow: hidden; border-radius: 21px; background: var(--pw-night); box-shadow: 0 7px 12px rgba(0, 0, 0, .22); color: #fff; }
.pw-pt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-pt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .58)); }
.pw-pt-m { position: absolute; z-index: 1; right: 9px; top: 9px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pw-pt-m svg { width: 13px; height: 13px; }
.pw-av { position: absolute; z-index: 2; right: 5px; top: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pw-night); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .18); font-size: 10px; line-height: 1; }
.pw-pt-t { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; }
.pw-pt-t b { display: flex; align-items: baseline; gap: 6px; font: 900 13px/1.15 var(--pw-rnd); letter-spacing: -.01em; }
.pw-pt-t b i { font-size: 15px; font-style: normal; }
.pw-pt-t span { display: block; margin-top: 3px; overflow: hidden; color: rgba(255, 255, 255, .78); font: 600 10px/1.2 var(--pw-rnd); white-space: nowrap; text-overflow: ellipsis; }
.pw-pt-t em { display: inline-flex; align-items: center; gap: 4px; margin: 6px 5px 0 0; padding: 4px 7px; border-radius: 999px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .82); font: 700 8.6px/1 var(--pw-rnd); font-style: normal; }
.pw-pt-t em svg { width: 8px; height: 8px; }

/* ── What pops out of the phone ──────────────────────────────────── */
.pw-pops { position: absolute; inset: 0; pointer-events: none; }
.pw-pop { position: absolute; inset: 0; }
.pw-stage:not(.pw-js) .pw-pop:not(:first-child) { display: none; }
.pw-stage.pw-js .pw-pop { visibility: hidden; }
.pw-stage.pw-still .pw-pop.pw-on { visibility: visible; }

/* White stickers, same make as #planner's */
.pw-stk { position: absolute; z-index: 4; rotate: var(--r, 0deg); animation: pw-float 3.4s ease-in-out var(--d, 0s) infinite alternate; }
.pw-stk > span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px 13px 15px; border-radius: 22px;
  background: #fff; color: #111214; white-space: nowrap;
  font: 800 20px/1.1 'Inter', sans-serif; letter-spacing: -.02em;
  box-shadow: 0 22px 40px -22px rgba(17, 18, 20, .55);
}
.pw-stk i { display: inline-block; font-style: normal; font-size: 24px; line-height: 1; }
@keyframes pw-float { from { translate: 0 -5px; } to { translate: 0 6px; } }

/* Scene 1: the video, and what NextStop reads off it */
.pw-pop:nth-child(1) .pw-stk.a { top: 34px; right: -214px; --r: 5deg; }
.pw-pop:nth-child(1) .pw-stk.b { top: 330px; right: -236px; --r: -4deg; --d: -1.3s; }
.pw-pop:nth-child(1) .pw-stk.c { bottom: 46px; right: -200px; --r: 4deg; --d: -.7s; }
.pw-vid { position: absolute; z-index: 3; left: -258px; top: 104px; width: 206px; height: 366px; rotate: -7deg; animation: pw-float 3.8s ease-in-out -1s infinite alternate; }
.pw-vin { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 26px; background: #b9a57f; box-shadow: 0 0 0 4px #fff, 0 40px 70px -30px rgba(17, 18, 20, .65); }
.pw-vin > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.pw-vin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .18), transparent 22%, transparent 46%, rgba(0, 0, 0, .78)); }
.pw-vid-play { position: absolute; z-index: 1; left: 12px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; }
.pw-vid-play svg { width: 13px; height: 13px; margin-left: 2px; }
.pw-vid-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 26px; margin: 0; color: #fff; font: 700 15px/1.32 'Inter', sans-serif; letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.pw-vid-cap mark { padding: 0 .08em; margin: 0 -.08em; border-radius: 4px; background: linear-gradient(#ffd23f, #ffd23f) no-repeat 0 0 / var(--pw-hl, 0%) 100%; color: inherit; transition: color .2s; }
.pw-vid-cap mark.pw-lit { color: #111214; text-shadow: none; }
.pw-stage:not(.pw-gs) .pw-vid-cap mark { --pw-hl: 100%; color: #111214; text-shadow: none; }
.pw-vid-bar { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 13px; height: 3px; border-radius: 2px; background: linear-gradient(#fff, #fff) no-repeat 0 0 / var(--pw-prog, 35%) 100%, rgba(255, 255, 255, .3); }
.pw-vid-bar b { display: none; }
.pw-vid-scan { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 80px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .5) 70%, #fff 72%, rgba(255, 255, 255, 0) 74%); opacity: 0; }

/* Scene 2: the map, filtered */
.pw-pop:nth-child(2) .pw-stk.a { top: 96px; right: -196px; --r: 6deg; }
.pw-pop:nth-child(2) .pw-stk.b { top: 590px; right: -190px; --r: -5deg; --d: -1.3s; }
.pw-pop:nth-child(2) .pw-stk.c { top: 616px; left: -160px; --r: -4deg; --d: -.7s; }

/* Scene 3: folders, stacked in 3D, and the find landing in one */
.pw-fstack { position: absolute; z-index: 3; left: -192px; top: 206px; width: 176px; height: 168px; transform-style: preserve-3d; transform: perspective(900px) rotateY(16deg) rotateX(6deg) scale(1.14); transform-origin: 50% 100%; }
.pw-fstack .pw-ft { position: absolute; left: 0; top: 0; width: 176px; height: 168px; box-shadow: 0 0 0 3px #fff, 0 26px 40px -20px rgba(17, 18, 20, .55); }
.pw-fstack .pw-ft { transform-origin: 50% 100%; }
.pw-fstack .k2 { transform: translate3d(-40px, -6px, -70px) rotate(-21deg); }
.pw-fstack .k1 { transform: translate3d(-18px, -3px, -35px) rotate(-10deg); }
.pw-fstack .k0 { transform: translate3d(0, 0, 0) rotate(3deg); overflow: visible; }
.pw-fstack .k0 .pw-ft-ph { overflow: hidden; border-radius: 19px; }
.pw-fstack .k0::after { border-radius: 19px; }
.pw-drop { position: absolute; z-index: 4; left: 38px; top: -128px; width: 112px; padding: 6px 6px 9px; border-radius: 16px; background: #fff; box-shadow: 0 20px 30px -16px rgba(17, 18, 20, .6); transform: translateZ(30px) rotate(-6deg); }
.pw-drop img { display: block; width: 100%; height: 76px; border-radius: 11px; object-fit: cover; }
.pw-drop b { display: block; margin-top: 7px; color: #111214; font: 800 12.5px/1.1 'Inter', sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.pw-stage.pw-js .pw-drop { opacity: 0; }
.pw-pop:nth-child(3) .pw-stk.a { top: 112px; right: -176px; --r: 5deg; }
.pw-pop:nth-child(3) .pw-stk.b { top: 470px; right: -236px; --r: -4deg; --d: -1.3s; }

/* Scene 4: faces */
.pw-pop:nth-child(4) .pw-faces { top: 128px; left: -250px; --r: -6deg; }
.pw-faces > span { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 20px 15px 16px; }
.pw-faces b { display: flex; }
.pw-faces b i { display: grid; place-items: center; width: 46px; height: 46px; margin-left: -12px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 0 3px #fff; font-size: 26px; }
.pw-faces b i:first-child { margin-left: 0; }
.pw-faces b i:nth-child(2) { background: #62e0b8; }
.pw-faces b i:nth-child(3) { background: #6ccbff; }
.pw-faces b i:nth-child(4) { background: #ff8fb4; }
.pw-face { display: grid !important; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffd23f; font-size: 19px !important; }
.pw-pop:nth-child(4) .pw-stk.a { top: 40px; right: -214px; --r: 5deg; --d: -1.3s; }
.pw-pop:nth-child(4) .pw-stk.b { top: 360px; right: -232px; --r: -4deg; --d: -.4s; }
.pw-pop:nth-child(4) .pw-stk.c { top: 476px; left: -236px; --r: 4deg; --d: -.9s; }

/* A ring and a burst of bits when something lands */
.pw-burst { position: absolute; z-index: 5; left: 50%; top: 40%; width: 0; height: 0; }
.pw-burst em { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border: 3px solid #fff; border-radius: 50%; opacity: 0; }
.pw-burst b { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #111214; opacity: 0; }
.pw-burst b:nth-child(3n) { background: #fff; }
.pw-burst b:nth-child(3n+1) { border-radius: 2px; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); width: 16px; height: 16px; left: -8px; top: -8px; }

.pw-note { display: table; max-width: min(1560px, calc(100% - 32px)); margin: 16px auto 0; padding: 7px 14px; border-radius: 14px; background: rgba(255, 255, 255, .9); color: #3f434a; font: 500 14px/1.45 'Inter', sans-serif; text-align: center; }

/* Off screen or paused: the loops stop too. */
.pw-stage.pw-idle *, .pw-stage.pw-idle *::before, .pw-stage.pw-idle *::after { animation-play-state: paused !important; }

/* ── Phones and small tablets (to 899 wide): held, full screen ───────
   Mark on his iPhone (10-29): "make it more full screen immersive and
   scroll controlled", and keep the effects ("no stickers or nothing any
   more"). The stage holds still under the nav, one screen tall, and each
   scroll step plays the next scene, as on laptops. Top to bottom: the bars,
   the sentence, the numbers, then the phone with its effects in the room
   beside it. places-world.js measures that room and sets --pw-s and the
   --pw-bx-l / --pw-c* / --pw-a* positions (phone px, from the phone's left
   edge). Text in the phone stays about 8 px or more; a short screen lets the
   phone run off the bottom instead of shrinking it further. */
@media (max-width: 899px) {
  #your-places.pw { --pw-stage-h: calc(100vh - 64px); padding-top: 40px; }
  .pw-hold.pw-scrolly .pw-stage { top: 64px; }
  .pw-stage { --pw-s: .6; width: 100%; height: var(--pw-stage-h); min-height: 400px; padding: 10px 0 0; clip-path: inset(0 round 22px 22px 0 0); }
  .pw-grid { display: flex; flex-direction: column; height: 100%; padding: 0 14px; }
  .pw-left { display: contents; }
  .pw-prog { order: 0; position: relative; bottom: auto; flex: none; margin: 0; gap: 6px; }
  .pw-prog [data-go] span { display: none; }
  .pw-prog [data-go] > i { height: 4px; }
  .pw-prog .pw-next, .pw-prog .pw-pause { width: 36px; height: 36px; margin-top: -4px; font-size: 16px; }
  .pw-cta { height: 36px; margin-top: -4px; font-size: 14px; }
  .pw-stage.pw-at-end .pw-cta { max-width: 196px; padding: 0 5px 0 14px; }
  .pw-cta i { width: 26px; height: 26px; }
  .pw-tag { display: none; }
  .pw-lines { order: 1; flex: none; margin-top: 10px; }
  .pw-line { max-width: none; font-size: clamp(28px, 8.6vw, 40px); }
  .pw-stats { order: 2; flex: none; height: 40px; margin-top: 8px; }
  .pw-set { right: 0; gap: 14px; }
  .pw-stat b { font-size: 23px; }
  .pw-stat span { max-width: 14ch; margin-top: 3px; font-size: 10.5px; line-height: 1.15; }
  .pw-ex { position: absolute; right: 0; top: 0; margin: 0; padding: 3px 7px; border-radius: 8px; font-size: 10px; }
  .pw-right { order: 3; flex: 1 1 auto; min-height: 0; margin-top: 10px; display: block; }
  .pw-box { position: absolute; top: 0; left: var(--pw-bx-l, 40%); }
  .pw-ghost { font-size: clamp(110px, 34vw, 260px); bottom: auto; top: 56%; }
  /* Stickers a little smaller; they sit in the room beside the phone. */
  .pw-stk > span { gap: 7px; padding: 10px 15px 10px 12px; border-radius: 18px; font-size: 18px; }
  .pw-stk i { font-size: 20px; }
  .pw-face { width: 28px; height: 28px; font-size: 17px !important; }
  .pw-faces > span { gap: 8px; padding: 12px 16px 12px 13px; }
  .pw-faces b i { width: 38px; height: 38px; margin-left: -10px; font-size: 21px; }
  /* Scene 1: the video and what is read off it, in a column on the left. */
  .pw-vid { left: var(--pw-cl, -230px); top: 62px; scale: var(--pw-vk, .95); transform-origin: 0 0; }
  .pw-pop:nth-child(1) .pw-stk.a { left: var(--pw-cl, -230px); right: auto; top: 0; }
  .pw-pop:nth-child(1) .pw-stk.b { left: var(--pw-cl, -230px); right: auto; top: calc(80px + 366px * var(--pw-vk, .95)); }
  .pw-pop:nth-child(1) .pw-stk.c { left: var(--pw-cl, -230px); right: auto; bottom: auto; top: calc(138px + 366px * var(--pw-vk, .95)); }
  /* Scene 2: the phone lies in the middle; the stickers above and below. */
  .pw-pop:nth-child(2) .pw-stk.a { left: calc(var(--pw-al, -230px) + 6px); right: auto; top: 0; }
  .pw-pop:nth-child(2) .pw-stk.b { left: calc(var(--pw-al, -230px) + var(--pw-aw, 600px) - 226px); right: auto; top: calc(var(--pw-ah, 660px) - 74px); }
  .pw-pop:nth-child(2) .pw-stk.c { left: calc(var(--pw-al, -230px) + var(--pw-aw, 600px) - 236px); right: auto; top: 0; }
  /* Scene 3: the folder stack on the left, a sticker above and below it. */
  .pw-fstack { left: calc(var(--pw-cl, -230px) + 95px * var(--pw-fk, .7)); top: calc(var(--pw-ah, 660px) * .4); transform: perspective(900px) rotateY(16deg) rotateX(6deg) scale(var(--pw-fk, .7)); transform-origin: 0 0; }
  .pw-pop:nth-child(3) .pw-stk.a { left: var(--pw-cl, -230px); right: auto; top: 10px; }
  .pw-pop:nth-child(3) .pw-stk.b { left: var(--pw-cl, -230px); right: auto; top: calc(var(--pw-ah, 660px) - 66px); }
  /* Scene 4: the faces and the three notes down the left. */
  .pw-pop:nth-child(4) .pw-faces { left: var(--pw-cl, -230px); top: 4px; }
  .pw-pop:nth-child(4) .pw-stk.a { left: var(--pw-cl, -230px); right: auto; top: calc(var(--pw-ah, 660px) * .34); }
  .pw-pop:nth-child(4) .pw-stk.b { left: var(--pw-cl, -230px); right: auto; top: calc(var(--pw-ah, 660px) * .52); }
  .pw-pop:nth-child(4) .pw-stk.c { left: var(--pw-cl, -230px); right: auto; top: calc(var(--pw-ah, 660px) * .7); }
}
@supports (height: 100svh) {
  @media (max-width: 899px) { #your-places.pw { --pw-stage-h: calc(100svh - 64px); } }
}
@media (max-width: 600px) {
  .pw-note { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-stage *, .pw-stage { transition: none !important; animation: none !important; }
}
