/* Places: schedules that change when the child's phone arrives at a saved place. Each piece is the product's own:
   - the map set into a box slab like the porcelain Places page, its saved places drawn as the dashboard draws them
     (each place's ring and v4 pin in its week's colour, the travel circle dashed in Travel's; platform
     `locations/placePinArt.ts` and `LocationMap.tsx` at 4e4e33e43), over a town of our own drawing in a light map's
     style (calm land, white roads cased by class, parks, water, quiet buildings, small haloed labels), seen from far
     enough out that Grandma's farm lies well past the travel circle and the drive there takes a while;
   - the schedule editor's reality flags, the neon page flags from one pack (Normal week, Away, then each place, then
     Travel), the chosen one pulled out and lying on the page (platform `planner/RealityFlags.tsx`, `wall-calendar.css`);
   - their phone, a porcelain bead on the map carrying the mode it runs in the editor's Hyperglass, bead and label as
     on the shelf (`hyperglass.css`), so the place and the mode it brings are read in one look.
   Nothing animates a filter. The phone, the flags and the glass move by transform and opacity. */

.places__in { display: grid; gap: clamp(36px, 5vw, 56px); }
.places__copy { display: grid; gap: 22px; justify-items: start; align-content: start; min-width: 0; }
/* two balanced lines at every width, "A schedule that / survives real life.", sized down where the column is narrow
   so neither line runs past it */
.places__copy { container-type: inline-size; }
.places h2 { max-width: 7.9em; font-size: min(clamp(40px, 5.4vw, 78px), 12.6cqw); }
.places__lead { max-width: 30ch; }
/* the lead and its note share one sheet, the copy column's width */
.places__sheet .places__lead, .places__sheet .places__note { max-width: none; }
/* quiet by size, not by contrast: --pc-mute on the room is 3.4:1, this is 4.7:1 */
.places__note { margin: 14px 0 0; max-width: 34ch; font-family: var(--sell); font-weight: 500; font-size: 16px; line-height: 1.4; color: var(--pc-mute); text-wrap: pretty; }

@media (min-width: 1024px) {
  .places__in { grid-template-columns: clamp(300px, 34vw, 520px) minmax(0, 1fr); column-gap: clamp(12px, 2vw, 32px); align-items: center; }
}

/* ---------- the stage: the map on its porcelain card, the flags stuck to the card's edge ---------- */
.places__stage { --fcol: 140px; --stuck: 12px; position: relative; display: grid; grid-template-columns: var(--fcol) minmax(0, 1fr); align-items: start; min-width: 0; }
/* the card wears the house corner (home.css --r-card), sized as Scroll Control's card is (sc.css): the slab's render
   has a 30px corner at its 110px width, so the width and the shadow's reach scale with the corner */
/* --in is how far in the map is set, and every corner inside the card is the card's less its inset */
.places__map { --in: 20px; grid-column: 2; grid-row: 1; position: relative; z-index: 2; isolation: isolate; padding: var(--in); min-width: 0; }
.places__map::before { content: ""; position: absolute; z-index: -1; inset: 0; border: 0 solid transparent; pointer-events: none;
  border-image: var(--pc-slab-box) 110 fill / calc(var(--r-card) * 11 / 3) / calc(var(--r-card) * 2) stretch; filter: var(--pc-slab-drop); }
.places__flags { grid-column: 1; grid-row: 1; z-index: 3; align-self: center; margin: 0 calc(var(--stuck) * -1) 0 0; }

/* the map, set into the slab with the pocket's shadow over its edge, its corner concentric with the card's */
.places__pocket { --lbl: 10px; position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--r-card) - var(--in)); overflow: hidden; background: #f7f6f1; }
.places__pocket::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; box-shadow: var(--pc-pocket-shadow); pointer-events: none; }
.places__town { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the rings keep the dashboard's line widths at any size of map */
.places__rings circle, .places__travel { vector-effect: non-scaling-stroke; }
.places__area-here { opacity: 0; transition: opacity .35s ease; }
.places__area-here.is-here { opacity: 1; }
/* the map's own labels, set as a map sets them: small, a white halo, street names along their streets.
   The town scales with its box, so places.js sets --k (screen px per map unit) and the labels divide by it, staying
   the same size on screen at any width (--lbl). */
.places__lbl { font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif; font-size: calc(var(--lbl) / var(--k, 1)); font-weight: 600; letter-spacing: .02em;
  fill: #73767e; stroke: #fff; stroke-width: calc(var(--lbl) * .27 / var(--k, 1)); stroke-linejoin: round; paint-order: stroke; }
.places__lbl--park { font-size: calc(var(--lbl) * .95 / var(--k, 1)); fill: #4f8a4a; }
.places__lbl--water { font-size: calc(var(--lbl) * .95 / var(--k, 1)); font-style: italic; fill: #4a86b8; stroke-width: 0; }
.places__shield { transform: scale(calc(1 / var(--k, 1))); }
.places__shield text { font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif; font-size: 8.5px; font-weight: 700; fill: #5d5a52; }

/* the travel circle's label, the dashboard's map label, on the circle's east where the highway leaves town */
.places__ringname { position: absolute; z-index: 2; left: 53.817%; top: 73.689%; transform: translate(-50%, -50%); padding: 4px 10px 2px; border-radius: 99px; white-space: nowrap; pointer-events: none;
  font-family: var(--pc-voice); font-weight: 700; font-size: 13px; line-height: 1.2; color: var(--pc-ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(140, 158, 190, .35), 0 2px 4px rgba(20, 36, 70, .14); }

/* a saved place: its role pin standing on the spot, its name beside it. The pin and name are one button that sends
   the phone there. */
.places__spot { position: absolute; z-index: 4; width: 0; height: 0; padding: 0; border: 0; background: none; color: var(--pc-ink); }
.places__spot:focus-visible { outline: none; }
.places__spot--home { left: 21.5%; top: 73.689%; }
.places__spot--school { left: 35.567%; top: 47.378%; }
.places__spot--grandma { left: 84.667%; top: 29.333%; }
/* the app's own place pins (platform placePinArt.ts, v4): a clay house for Home in Normal week's canary, a
   schoolhouse in the School glass, a map tack with its initial in Grandma's flag; each stands on its point over a
   contact shadow. Where the phone is, the pin rises from its point as the dashboard's selected pin does. */
.places__pin { --pw: 46px; position: absolute; left: calc(var(--pw) / -2); top: calc(var(--pw) * -1.1); width: var(--pw); height: calc(var(--pw) * 1.2); transition: transform .16s var(--ease); }
.places__pin svg { width: 100%; height: 100%; }
.places__pinobj { transition: transform .18s var(--ease); }
.places__spot[aria-pressed="true"] .places__pinobj { transform: scale(1.3); }
.places__name { position: absolute; top: var(--name-y, -38px); right: 20px; padding: 4px 10px 2px; border-radius: 99px; white-space: nowrap;
  font-family: var(--pc-voice); font-weight: 700; font-size: 13px; line-height: 1.2; color: var(--pc-ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(140, 158, 190, .35), 0 2px 4px rgba(20, 36, 70, .14); transition: transform .16s var(--ease), box-shadow .16s ease, color .2s ease; }
/* a hit area a finger can find, over both */
.places__name::before { content: ""; position: absolute; inset: -9px -6px; border-radius: 99px; }
.places__spot:hover .places__name { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(140, 158, 190, .45), 0 4px 8px rgba(20, 36, 70, .18); }
.places__spot:hover .places__pin { transform: translateY(-2px); }
.places__spot:focus-visible .places__name { outline: 3px solid var(--pc-scope); outline-offset: 2px; }
.places__spot[aria-pressed="true"] .places__name { color: var(--pc-scope); }

/* their phone: a porcelain bead carrying the iPhone drawing, and under it the mode it runs, riding with it at a steady
   offset. Script moves the bead by transform and keeps the mode inside the map, moving it to another side only where
   it would rest over a pin, a name or the key (places.js); until then the mode hangs under it to the right. */
.places__phone { position: absolute; z-index: 3; left: 35.567%; top: 50.667%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff 0%, #f6f8fb 48%, #e2e8f0 100%);
  box-shadow: 0 0 0 1px rgba(140, 158, 190, .5), 0 2px 3px rgba(26, 40, 72, .22), 0 6px 12px rgba(40, 66, 120, .2); pointer-events: none; }
.places__phone.is-live { left: 0; top: 0; will-change: transform; }
.places__phone img { width: 11px; height: 23px; }
.places__phone .places__modes { position: absolute; left: 50%; top: 50%; transform: translate(calc(var(--hgh) * -.415), 19px); will-change: transform; }
/* a label the mode's glass passes over goes under it (places.js): the town's own labels at once, since a fade would
   repaint the drawn town every frame, and the travel circle's label, on a layer of its own, by a short fade */
:is(.places__lbl, .places__shield, .places__ringname).is-under { opacity: 0; }
.places__ringname { will-change: opacity; transition: opacity .3s ease; }

/* pause, a round porcelain key in the map's corner */
.places__pause { position: absolute; z-index: 7; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--pc-body); display: grid; place-items: center; }
.places__pause[hidden] { display: none; }
.places__pause::before { content: ""; position: absolute; z-index: -1; inset: -12.6px; pointer-events: none; background: var(--pc-key-round) center / 100% 100% no-repeat; filter: var(--pc-key-drop); }
.places__pause svg { width: 14px; height: 14px; fill: currentColor; }
.places__pause .places__play { display: none; }
.places__pause.is-paused .places__play { display: block; }
.places__pause.is-paused .places__hold { display: none; }
.places__pause:focus-visible { outline: 3px solid var(--pc-scope); outline-offset: 2px; border-radius: 50%; }

/* ---------- the reality flags: adhesive page flags from a neon pack, stuck on the page's left edge ---------- */
/* The week in charge is pulled out past every other flag at full size and lies on the page by its stuck end. The
   rest sit back beneath the page a size smaller (--small), cut at its edge: Normal week and Travel with their free
   ends at --back, the weeks that follow home (Away, Grandma's) further in at --fback, so the pack still reads as
   Normal week's with its two followers. */
.places__flags { --fh: 44px; --fs: 16px; --back: 34px; --fback: 50px; --small: .86; --gap: 16px;
  --base: 0 .6px .9px rgba(40, 22, 5, .38), 1px 2.5px 4px -1px rgba(40, 22, 5, .2), inset 0 .8px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .13);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' seed='12' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.25' intercept='-.13'/%3E%3CfeFuncG type='linear' slope='1.25' intercept='-.13'/%3E%3CfeFuncB type='linear' slope='1.25' intercept='-.13'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='192' height='192' filter='url(%23g)'/%3E%3C/svg%3E");
  position: relative; display: flex; flex-direction: column; gap: 3px; width: calc(var(--fcol) + var(--stuck)); }
/* A flag spans the stack, its stuck end 12px onto the page. Beneath the page its paper shrinks toward the stuck end,
   the flag moves in by --d so the free end lands at --b, and it is cut at the page's edge. */
.places__flag { --b: var(--back); --s: var(--small); --d: calc(var(--b) - (var(--fcol) + var(--stuck)) * (1 - var(--s))); --rot: 0deg;
  position: relative; z-index: 1; display: block; flex: none; height: var(--fh);
  transform: translateX(var(--d)); clip-path: inset(-8px calc(var(--stuck) + var(--d)) -8px -8px);
  transition: transform .36s cubic-bezier(.45, 0, .2, 1), clip-path .36s cubic-bezier(.45, 0, .2, 1); }
.places__flag.is-follow { --b: var(--fback); }
.places__flag.is-own { margin-top: var(--gap); }
.places__flag:nth-child(1) { z-index: 4; --rot: -.12deg; }
.places__flag:nth-child(2) { z-index: 3; --rot: .08deg; }
.places__flag:nth-child(3) { z-index: 2; --rot: -.04deg; }
.places__flag:nth-child(4) { z-index: 1; --rot: .12deg; }
.places__flag.is-out { --s: 1; z-index: 6; transform: none; clip-path: inset(-24px); transition-duration: .3s; transition-timing-function: cubic-bezier(.2, .8, .3, 1); }
/* beneath: the page's edge and its shadow over the flag's paper, shown once the flag has slid under it */
.places__flag::after { content: ""; position: absolute; top: calc(var(--fh) * (1 - var(--s)) / 2); bottom: calc(var(--fh) * (1 - var(--s)) / 2); right: calc(var(--stuck) + var(--d)); width: 4px; pointer-events: none;
  background: linear-gradient(270deg, rgba(40, 22, 5, .16), rgba(40, 22, 5, 0)); transition: opacity .16s ease .3s; }
.places__flag.is-out::after { opacity: 0; transition: none; }
.places__paper { position: absolute; inset: 0; display: block; border-radius: 2px; transform: translateX(0) rotate(var(--rot)) scale(var(--s)); transform-origin: 100% 50%;
  background-color: var(--flag);
  background-image: var(--grain), linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .07));
  background-size: 192px 192px, 100% 100%; background-position: right top; background-blend-mode: soft-light, normal;
  box-shadow: var(--base); clip-path: inset(-22px 0 -22px -22px); transition: transform .36s cubic-bezier(.45, 0, .2, 1); }
/* chosen: the part pressed onto the page, a shade darker from the page's edge */
.places__paper::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--stuck); border-radius: 0 2px 2px 0; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(90deg, rgba(40, 22, 5, 0), rgba(40, 22, 5, .085) 6px, rgba(40, 22, 5, .1)); }
.places__flag.is-out .places__paper::after { opacity: 1; }
/* pulled out: a finger pinches the free end and tugs it past where it rests, lifted off the page with its shadow
   falling wide, then lets it spring back and presses it flat */
.places__flag.is-pressed .places__paper { animation: places-pull .66s both; }
@keyframes places-pull {
  0% { transform: translateX(0) rotate(var(--rot)) scale(var(--small)); box-shadow: var(--base); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  36% { transform: translateX(-8px) rotate(-1.6deg) scale(1.08);
    box-shadow: 0 1px 1.5px rgba(40, 22, 5, .3), 5px 10px 14px -4px rgba(40, 22, 5, .3), inset 0 .8px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .1);
    animation-timing-function: cubic-bezier(.5, 0, .5, 1); }
  70% { transform: translateX(1.5px) rotate(.25deg) scale(.985); box-shadow: var(--base); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  100% { transform: translateX(0) rotate(var(--rot)) scale(1); box-shadow: var(--base); }
}
.places__fname { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); margin-top: 1px; white-space: nowrap;
  font-family: var(--pc-voice); font-weight: 700; font-size: var(--fs); line-height: 1; color: #2a2118; }
.places__flag--normal { --flag: #f4dc3a; }
.places__flag--away { --flag: #ff9a3c; }
.places__flag--grandma { --flag: #b38af0; }
.places__flag--travel { --flag: #4e9cf2; }

/* ---------- the mode it runs, in the editor's glass ---------- */
.places__modes { --hgh: 42px; display: grid; height: var(--hgh); aspect-ratio: 2.75; }

/* one glass per mode, stacked; the one running is shown. The glass render (264 by 96) is sliced at its round ends, so
   it can run wider than its own shape without stretching them. */
.places__mode { --glass: none; position: relative; grid-area: 1 / 1; display: flex; align-items: center; height: 100%; padding: 0 calc(var(--hgh) * .3) 0 calc(var(--hgh) * .8);
  border: 0 solid transparent; border-image: var(--glass) 0 48 fill / 0 calc(var(--hgh) / 2) stretch; color: #fff; font-family: var(--pc-voice); font-weight: 700; font-size: calc(var(--hgh) * .3); line-height: .98; letter-spacing: .01em;
  text-shadow: 0 1px 1px var(--ink), 0 2px 3px var(--ink), 0 0 5px var(--ink);
  opacity: 0; transform: scale(.94); }
/* one pill at a time: the mode swaps in place, the old one gone at once and the new one springing up */
.places__mode.is-on { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.places__refl { position: absolute; z-index: 0; inset: 6% 1.5%; border-radius: 999px; overflow: hidden; opacity: var(--rs); pointer-events: none; }
.places__refl::before { content: ""; position: absolute; left: var(--rl); top: 2%; width: var(--rw); height: 34%; transform: rotate(var(--ra));
  border-radius: 42% 42% 50% 50% / 65% 65% 42% 42%; border-top: 1px solid #fffc;
  background: linear-gradient(180deg, #fff 0%, #ffffffe0 15%, #ffffff85 55%, #ffffff08 100%); }
.places__bead { position: absolute; z-index: 1; left: calc(var(--hgh) * .13); top: 50%; width: calc(var(--hgh) * .57); height: calc(var(--hgh) * .57); margin-top: calc(var(--hgh) * -.285);
  display: grid; place-items: center; border-radius: 50%; border: 1px solid #fff9;
  background: radial-gradient(ellipse at 30% 15%, #ffffffc7, transparent 35%), linear-gradient(150deg, var(--light), var(--ink) 80%);
  box-shadow: inset 0 0 0 2px #ffffff40, inset 0 -3px 6px #0005, 0 2px 3px #0005, 0 0 0 1px var(--ink); }
.places__bead svg { width: 57%; height: 57%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px var(--ink)); }
.places__label { position: relative; z-index: 1; flex: 1; min-width: 0; text-align: center; padding-top: 1px; white-space: nowrap; }
/* Trial (2026-11-04): under the mode's name, what it changes for a 12-year-old on the Normal plan. The pill grows a
   little for the second line and every mode is as wide as the widest, so it never changes size as it rides. */
.places__modes--why { --hgh: 50px; width: max-content; min-width: calc(var(--hgh) * 2.75); aspect-ratio: auto; }
.places__modes--why .places__mode { padding-right: calc(var(--hgh) * .32); font-size: calc(var(--hgh) * .27); }
.places__why { display: block; margin-top: calc(var(--hgh) * .04); font-size: calc(var(--hgh) * .215); line-height: 1.05; letter-spacing: .005em;
  text-shadow: 0 1px 1px var(--ink), 0 0 4px var(--ink); }
.places__mode--morning { --glass: url("places/morning-pill.webp"); --light: #f99543; --ink: #593000; --rl: 3%; --rw: 51%; --ra: -8deg; --rs: .8; }
.places__mode--school { --glass: url("places/school-pill.webp"); --light: #57d7f5; --ink: #02374f; --rl: 12%; --rw: 55%; --ra: -3deg; --rs: .8; }
.places__mode--after { --glass: url("places/after-school-pill.webp"); --light: #a6eb3f; --ink: #16420c; --rl: 33%; --rw: 55%; --ra: 3deg; --rs: .8; }
.places__mode--evening { --glass: url("places/evening-pill.webp"); --light: #ff9c68; --ink: #4d203e; --rl: 45%; --rw: 51%; --ra: 8deg; --rs: .42; }
.places__mode--allday { --glass: url("places/weekend-pill.webp"); --light: #ff718a; --ink: #65182b; --rl: 20%; --rw: 62%; --ra: 0deg; --rs: .45; }

/* ---------- phones: the map runs the full width, and the flags hang from the card's foot as tabs, the week in charge
   pulled down past the rest and lying on the card by its stuck end, the others tucked up under it a size smaller ---------- */
@media (max-width: 599px) {
  .places__stage { --stuck: 10px; display: flex; flex-direction: column; align-items: center; }
  .places__map { --in: 12px; align-self: stretch; }
  .places__pocket { --lbl: 9px; }
  .places__flags { --fh: 54px; --fs: 14px; --small: 1; --gap: 12px; flex-direction: row; justify-content: center; gap: 4px; width: auto; z-index: auto; margin: calc(var(--stuck) * -1) 0 0; }
  /* tucked, a tab is cut at the card's edge (its top is the stuck end's length above it, less how far it's tucked) */
  .places__flag, .places__flag:nth-child(n) { --d: -12px; display: flex; height: var(--fh); z-index: 3; transform: translateY(var(--d));
    clip-path: inset(calc(var(--stuck) - var(--d)) -12px -12px -12px); }
  .places__flag.is-follow { --d: -18px; }
  .places__flag.is-own { margin: 0 0 0 var(--gap); }
  .places__flag.is-out { --d: 0px; z-index: 4; transform: translateY(var(--d)); clip-path: inset(-12px); }
  .places__flag::after { top: calc(var(--stuck) - var(--d)); bottom: auto; left: 0; right: 0; width: auto; height: 5px; background: linear-gradient(180deg, rgba(40, 22, 5, .2), rgba(40, 22, 5, 0)); }
  .places__paper { position: relative; display: flex; align-items: flex-end; height: 100%; padding: 0 11px 8px; transform: rotate(var(--rot)) scale(var(--s)); transform-origin: 50% 0;
    clip-path: inset(0 -22px -22px -22px); border-radius: 0 0 2px 2px; }
  .places__paper::after { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: var(--stuck); border-radius: 0;
    background: linear-gradient(180deg, rgba(40, 22, 5, .1), rgba(40, 22, 5, .085) calc(100% - 6px), rgba(40, 22, 5, 0)); }
  .places__fname { position: static; transform: none; margin: 0; }
  .places__flag.is-pressed .places__paper { animation-name: places-pull-y; }
  .places__modes { --hgh: 36px; }
  .places__modes--why { --hgh: 44px; }
  .places__pin { --pw: 36px; }
  .places__name { --name-y: -30px; right: 15px; padding: 3px 8px 1px; font-size: 12px; }
  .places__ringname { padding: 3px 8px 1px; font-size: 12px; }
  .places__phone { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .places__phone img { width: 10px; height: 21px; }
  .places__pause { top: 7px; right: 7px; width: 32px; height: 32px; }
  .places__pause::before { inset: -11.2px; }
  /* only the map labels with room */
  .places__lbl--more { display: none; }
}
/* the narrowest phones: smaller pins, names and pill */
@media (max-width: 359px) {
  .places__pin { --pw: 30px; }
  .places__name { --name-y: -25px; right: 12px; padding: 2px 6px 0; font-size: 11px; }
  .places__ringname { padding: 2px 6px 0; font-size: 11px; }
  .places__modes { --hgh: 32px; }
  .places__modes--why { --hgh: 40px; }
  .places__flags { --fs: 13px; gap: 3px; --gap: 8px; }
  .places__paper { padding: 0 8px 8px; }
}

/* a phone's tab, pulled down by its free end and let spring back */
@keyframes places-pull-y {
  0% { transform: translateY(0) rotate(var(--rot)) scale(var(--small)); box-shadow: var(--base); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  36% { transform: translateY(7px) rotate(1.4deg) scale(1.06);
    box-shadow: 0 1px 1.5px rgba(40, 22, 5, .3), 4px 10px 14px -4px rgba(40, 22, 5, .3), inset 0 .8px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .1);
    animation-timing-function: cubic-bezier(.5, 0, .5, 1); }
  70% { transform: translateY(-1.5px) rotate(-.2deg) scale(.99); box-shadow: var(--base); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  100% { transform: translateY(0) rotate(var(--rot)) scale(1); box-shadow: var(--base); }
}

/* reduced motion, until the visitor presses play (places.js marks the stage .is-played) */
@media (prefers-reduced-motion: reduce) {
  .places__stage:not(.is-played) :is(.places__flag, .places__paper, .places__mode, .places__area-here, .places__pinobj, .places__name, .places__ringname),
  .places__stage:not(.is-played) :is(.places__flag, .places__paper)::after { transition: none; }
  .places__stage:not(.is-played) .places__flag.is-pressed .places__paper { animation: none; }
}
