/* The walk through the Πολιτεία. One light, from the upper left, over the whole town: lit fronts, shaded right
   sides, roof planes in two tones and flat cast shadows falling right. Each district is a paper panel laid on the
   page and the road winds between them. Every scene stands complete without JS: story.js sets the "before"
   states itself, and only when motion is welcome (html.pp-story). */

/* ---------------------------------------------------------------- card stock: see tones.css (loaded first) */
.pp-smoke-origin { fill: none; }
.pp-string, .pp-string-line { fill: none; stroke: #5B3746; stroke-width: 1.6; }
.pp-frame-line { fill: none; stroke: #3B1F2B; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pp-spokes { fill: none; stroke: #7A5363; stroke-width: 1.6; }
.pp-weave { fill: none; stroke: #E08DAE; stroke-width: 1.4; }
.pp-parcel-string { fill: none; stroke: #7A5363; stroke-width: 1.6; }
.pp-leg { fill: none; stroke: #3B1F2B; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pp-leg--back { stroke: #5B3746; }
.pp-arm { fill: none; stroke: #A3164F; stroke-width: 5; stroke-linecap: round; }
.pp-flag { transform-box: fill-box; transform-origin: 50% 0; }
.pp-sign__text { font: 800 13px/1 var(--pp-font); letter-spacing: 0.14em; }
.pp-sign__text--open { fill: #24734A; }
.pp-sign__text--closed { fill: #A3164F; display: none; }
.pp-shop--closed .pp-sign__text--open { display: none; }
.pp-shop--closed .pp-sign__text--closed { display: inline; }
.pp-heart { fill: #FFFFFF; transition: fill 0.6s 0.9s; }

/* Idle loops rest while their scene is off screen (story.js marks them). The scenes below the hero start at rest and
   are marked .is-onscreen as they come into view, so the first pass at load marks the one or two on screen instead of
   restyling every scene on the page. The hero's opening runs from the first paint, so it is marked only when it
   leaves (.is-offscreen). Without scripts nothing is marked and everything loops. */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
.pp-js :is(.pp-bend, .pp-district, .pp-night):not(.is-onscreen), .pp-js :is(.pp-bend, .pp-district, .pp-night):not(.is-onscreen) * { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- chapter 1: the Πολιτεία from above */

/* The first screen holds the ribbon, the header and the hero, which takes exactly the height they leave: the
   whole town, the headline and the four tabs are in view on any screen. Phones and portrait tablets read like a
   picture-book page (the headline in the sky, the town under it, the tabs hanging from the fold); landscape
   screens open the book (words on the left page, the town on the right). */
.pp-hero {
	--sky: var(--pp-sky);
	--title: var(--pp-ink);
	--lead: var(--pp-ink-soft);
	--amp: var(--pp-fuchsia);
	--pp-ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
	position: relative; display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	grid-template-areas: "intro" "view" "act";
	height: calc(100vh - var(--pp-ribbon-h) - var(--pp-header-h) - var(--pp-adminbar, 0px));
	height: calc(100svh - var(--pp-ribbon-h) - var(--pp-header-h) - var(--pp-adminbar, 0px));
	min-height: 440px;
	background: var(--pp-pink);
}
@supports (animation-timing-function: linear(0, 1)) {
	/* A damped spring: up past upright, one small sway back, settled. */
	.pp-hero { --pp-ease-pop: linear(0, 0.14 5%, 0.42 10%, 0.7 15%, 0.91 20%, 1.04 25%, 1.09 30%, 1.09 35%, 1.07 40%, 1.04 45%, 1.018 50%, 1.002 55%, 0.994 60%, 0.992 70%, 0.997 80%, 1); }
}
.admin-bar { --pp-adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --pp-adminbar: 46px; } }
.pp-sky--dusk { --sky: #F7CDD8; }
.pp-sky--night { --sky: var(--pp-plum); --title: var(--pp-pink); --lead: #E3C3D1; --amp: #F48FB6; }

.pp-hero__sky { grid-area: 1 / 1 / 3 / 2; position: relative; overflow: hidden; background: var(--sky); transition: background-color 0.8s; }
.pp-hero__sky::after { content: ""; position: absolute; inset: 0; background: var(--pp-grain); opacity: 0.06; mix-blend-mode: multiply; pointer-events: none; }
.pp-hero__air { position: absolute; inset: 0; }
.pp-hero__intro { grid-area: intro; position: relative; z-index: 3; display: grid; gap: 8px; align-content: start; padding: 16px var(--pp-gutter) 2px; }
.pp-hero__title { margin: 0; max-width: 18ch; color: var(--title); font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.5rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.034em; text-wrap: balance; }
.pp-amp { color: var(--amp); }
.pp-hero__lead { margin: 0; max-width: 46ch; color: var(--lead); font-size: 1rem; line-height: 1.45; }
.pp-hero__more { display: none; }
.pp-hero__view { grid-area: view; position: relative; z-index: 1; overflow: hidden; container-type: size; }
.pp-hero__act { grid-area: act; position: relative; z-index: 4; display: grid; gap: 4px; padding: 0 var(--pp-gutter) 10px; }
.pp-tabs--hero { margin: 0 calc(-1 * var(--pp-gutter)); padding: 6px var(--pp-gutter) 0; }
.pp-tabs--hero::before { left: 0; right: 0; border-radius: 0; }
/* The hero's tabs open over what follows, so pulling one never squeezes the town above. */
.pp-js .pp-tabs--hero .pp-tab__strip { position: absolute; top: 100%; left: var(--pp-gutter); right: var(--pp-gutter); z-index: 6; }
.pp-hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; margin: 0; }
.pp-hero__wheel-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; }
.pp-hero__wheel-link .pp-icon { color: var(--pp-fuchsia); }
@media (max-height: 760px) and (max-aspect-ratio: 1/1) { .pp-hero__meta { display: none; } }
@media (min-width: 600px) and (max-aspect-ratio: 1/1) {
	.pp-hero__intro { padding-top: 28px; gap: 12px; }
	.pp-hero__more:first-of-type { display: inline; }
}

/* The open book: words on the left page, the town on the right one. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1), (min-aspect-ratio: 3/2) and (max-height: 520px) {
	.pp-hero {
		grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
		grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
		grid-template-areas: ". view" "intro view" "act view" ". view";
	}
	.pp-hero__sky { grid-area: view; }
	/* Here the words sit on the paper page, not in the sky, so they keep their ink at dusk and at night. */
	.pp-hero.pp-hero { --title: var(--pp-ink); --lead: var(--pp-ink-soft); --amp: var(--pp-fuchsia); }
	.pp-hero__intro, .pp-hero__act { padding-left: max(var(--pp-gutter), calc((100vw - var(--pp-width)) / 2)); padding-right: clamp(28px, 3.4vw, 56px); }
	.pp-hero__intro { gap: 16px; padding-top: 0; padding-bottom: 24px; }
	.pp-hero__act { gap: 12px; padding-bottom: 0; }
	.pp-hero__title { max-width: 13em; font-size: clamp(2.125rem, 0.7rem + 2.9vw, 3.375rem); font-size: min(clamp(2.125rem, 0.7rem + 2.9vw, 3.375rem), 6.6svh); }
	.pp-hero__lead { font-size: 1.0625rem; }
	.pp-hero__more { display: inline; }
	.pp-tabs--hero { margin: 0; padding: 6px 0 0; }
	.pp-tabs--hero::before { left: -4px; right: -4px; border-radius: 999px; }
	.pp-js .pp-tabs--hero .pp-tab__strip { left: 0; right: 0; }
	.pp-hero__meta { justify-content: flex-start; }
	/* The gutter: the right page lifts off the fold and shades it. */
	.pp-hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 42%; z-index: 4; width: 2px; background: rgb(var(--pp-shadow) / 0.10); box-shadow: 8px 0 22px 2px rgb(var(--pp-shadow) / 0.16); pointer-events: none; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 640px), (min-aspect-ratio: 3/2) and (max-height: 520px) {
	.pp-hero__intro { gap: 10px; padding-bottom: 14px; }
	.pp-hero__more:last-of-type { display: none; }
}

/* A phone on its side: the headline and the tabs on the left page, the town on the right. */
@media (min-aspect-ratio: 3/2) and (max-height: 520px) {
	.pp-hero { min-height: 260px; }
	.pp-hero__lead, .pp-hero__meta { display: none; }
	.pp-hero__intro { padding-bottom: 12px; }
	.pp-tabs--hero .pp-tab__pull { min-height: 54px; padding-top: 10px; padding-bottom: 8px; }
}

/* The sky follows the real sun over Πολίχνη: paper bands at dusk, stars at night, clouds with a shaded
   underside, a hot-air balloon and birds. The sun and moon stand in the town, at the upper left. */
.pp-sky__band { position: absolute; left: -6%; right: -6%; height: 34%; border-radius: 50% 50% 0 0 / 34% 34% 0 0; opacity: 0; transition: opacity 0.9s; }
.pp-sky__band--1 { bottom: 34%; background: #F2A9C5; }
.pp-sky__band--2 { bottom: 26%; background: #EA8FB4; }
.pp-sky__band--3 { bottom: 18%; background: #DE77A3; }
.pp-sky--dusk .pp-sky__band { opacity: 1; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-star { position: absolute; width: 14px; fill: var(--pp-light); opacity: 0; transition: opacity 1s; }
.pp-sky--night .pp-star { opacity: 1; animation: pp-twinkle 3.4s ease-in-out infinite; }
.pp-star--1 { left: 6%; top: 10%; } .pp-star--2 { left: 18%; top: 24%; width: 10px; animation-delay: -1.1s; }
.pp-star--3 { left: 30%; top: 7%; width: 18px; animation-delay: -2.2s; } .pp-star--4 { left: 42%; top: 18%; width: 9px; animation-delay: -0.6s; }
.pp-star--5 { left: 55%; top: 6%; animation-delay: -1.7s; } .pp-star--6 { left: 64%; top: 26%; width: 11px; animation-delay: -2.8s; }
.pp-star--7 { left: 11%; top: 38%; width: 9px; animation-delay: -0.3s; } .pp-star--8 { left: 50%; top: 32%; width: 12px; animation-delay: -2.5s; }
.pp-star--9 { left: 74%; top: 40%; width: 8px; animation-delay: -1.4s; } .pp-star--10 { left: 86%; top: 30%; width: 10px; animation-delay: -0.9s; }
.pp-star--11 { left: 24%; top: 44%; width: 7px; animation-delay: -2s; } .pp-star--12 { left: 92%; top: 8%; width: 12px; animation-delay: -3s; }
/* Both ends spelled out: an animation that borrows its ends from the element can't be handed to the graphics chip. */
@keyframes pp-twinkle { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(0.55) rotate(25deg); opacity: 0.55; } }
.pp-cloud { position: absolute; left: 0; filter: drop-shadow(0 6px 8px rgb(var(--pp-shadow) / 0.10)); animation: pp-drift var(--t) linear infinite; animation-delay: var(--delay); }
.pp-cloud__shade { fill: #D3E9F6; transition: fill 0.8s; }
.pp-cloud__lit { fill: #FFFFFF; transition: fill 0.8s; }
.pp-cloud--1 { --t: 95s; --delay: -28s; --travel: 520%; width: clamp(110px, 22%, 230px); top: 12%; }
.pp-cloud--2 { --t: 130s; --delay: -86s; --travel: 690%; width: clamp(80px, 15%, 170px); top: 30%; }
.pp-cloud--3 { --t: 110s; --delay: -60s; --travel: 600%; width: clamp(96px, 18%, 200px); top: 2%; }
.pp-cloud--4 { --t: 150s; --delay: -10s; --travel: 820%; width: clamp(64px, 12%, 130px); top: 44%; opacity: 0.85; }
@keyframes pp-drift { from { transform: translateX(-130%); } to { transform: translateX(var(--travel)); } }
.pp-sky--dusk .pp-cloud__lit { fill: #FDE5EE; } .pp-sky--dusk .pp-cloud__shade { fill: #F3CAD9; }
.pp-sky--night .pp-cloud { filter: none; }
.pp-sky--night .pp-cloud__lit { fill: #5B3746; } .pp-sky--night .pp-cloud__shade { fill: #4A2937; }
/* What flies is the town's own layer between Olympus and the rows of houses, placed in town units (as the pieces
   are) so it stays in front of the mountains and behind every building on any screen. */
.pp-balloon { position: absolute; left: calc(1112 * 0.05%); top: calc(436 * 0.1%); width: calc(58 * 0.05%); }
.pp-balloon svg { display: block; width: 100%; overflow: visible; transform-origin: 50% 0; animation: pp-bob 7s ease-in-out infinite; }
.pp-balloon__rope { fill: none; stroke: #7A5363; stroke-width: 1.4; }
.pp-balloon__flame { fill: #FFB35C; opacity: 0; }
/* Lit at dusk, and still: a flicker inside the swaying balloon had the phone restyle the sky on every frame. */
.pp-sky--dusk .pp-balloon__flame, .pp-sky--night .pp-balloon__flame { opacity: 1; }
@keyframes pp-bob { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(8px, -10px) rotate(2deg); } }
/* A paper kite flown from the fair, swaying on its string. */
.pp-kite { position: absolute; left: calc(772 * 0.05%); top: calc(440 * 0.1%); width: calc(44 * 0.05%); }
.pp-kite svg { display: block; width: 100%; overflow: visible; transform-origin: 50% 100%; animation: pp-kite 5s ease-in-out infinite alternate; }
.pp-kite__string { fill: none; stroke: #7A5363; stroke-width: 1; opacity: 0.7; }
.pp-kite__tail { fill: none; stroke: #7A5363; stroke-width: 1.2; }
.pp-kite__spar { fill: none; stroke: rgb(59 31 43 / 0.35); stroke-width: 1.2; }
@keyframes pp-kite { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(6deg) translateY(-6px); } }
.pp-sky--night .pp-kite { display: none; }
.pp-birds { position: absolute; left: calc(560 * 0.05%); width: calc(96 * 0.05%); aspect-ratio: 3; fill: none; stroke: var(--pp-plum); stroke-width: 2.6; stroke-linecap: round; }
/* Each bird is a drawing of its own over the flock's box (pp_birds()). It flies the flock's path and beats its wings
   about their root in one transform (pp-flyflap), so it is a single layer the phone's graphics run. A beat inside a
   flying flock (a moving layer inside a moving one) has Chrome restyle the whole scene on every frame. Each bird sets
   off 0.2 s after the one before it (--pp-beat), so their wings don't beat in step. */
.pp-birds .pp-bird { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: pp-flyflap 30s linear infinite; animation-duration: var(--pp-fly-time, 30s); animation-delay: calc(var(--pp-fly-at, 0s) - var(--pp-beat, 0) * 0.2s); }
/* Spring's swallows glide: their flock is one drawing (pp_swallows()). */
svg.pp-birds { animation: pp-fly 30s linear infinite; animation-duration: var(--pp-fly-time, 30s); animation-delay: var(--pp-fly-at, 0s); }
.pp-birds--1 { top: calc(478 * 0.1%); --pp-fly-at: -7s; }
.pp-birds--2 { left: calc(620 * 0.05%); top: calc(452 * 0.1%); width: calc(56 * 0.05%); --pp-fly-time: 38s; --pp-fly-at: -24s; }
.pp-sky--night .pp-birds { display: none; }
@keyframes pp-fly { 0% { transform: translate(-160%, 0); } 45% { transform: translate(480%, -35%); } 100% { transform: translate(1200%, 15%); } }
/* pp-fly's path with 28 wing beats in one loop: sampled three times every half-beat, the wings' scaleY eased by a cosine
   between 1 and 0.4. Regenerate with tools/flyflap.mjs in the project folder. */
@keyframes pp-flyflap{0%{transform:translate(-160%,0%) scaleY(1)}.595%{transform:translate(-151.5%,-.5%) scaleY(.85)}1.19%{transform:translate(-143.1%,-.9%) scaleY(.55)}1.786%{transform:translate(-134.6%,-1.4%) scaleY(.4)}2.381%{transform:translate(-126.1%,-1.9%) scaleY(.55)}2.976%{transform:translate(-117.7%,-2.3%) scaleY(.85)}3.571%{transform:translate(-109.2%,-2.8%) scaleY(1)}4.167%{transform:translate(-100.7%,-3.2%) scaleY(.85)}4.762%{transform:translate(-92.3%,-3.7%) scaleY(.55)}5.357%{transform:translate(-83.8%,-4.2%) scaleY(.4)}5.952%{transform:translate(-75.3%,-4.6%) scaleY(.55)}6.548%{transform:translate(-66.9%,-5.1%) scaleY(.85)}7.143%{transform:translate(-58.4%,-5.6%) scaleY(1)}7.738%{transform:translate(-49.9%,-6%) scaleY(.85)}8.333%{transform:translate(-41.5%,-6.5%) scaleY(.55)}8.929%{transform:translate(-33%,-6.9%) scaleY(.4)}9.524%{transform:translate(-24.6%,-7.4%) scaleY(.55)}10.119%{transform:translate(-16.1%,-7.9%) scaleY(.85)}10.714%{transform:translate(-7.6%,-8.3%) scaleY(1)}11.31%{transform:translate(.8%,-8.8%) scaleY(.85)}11.905%{transform:translate(9.3%,-9.3%) scaleY(.55)}12.5%{transform:translate(17.8%,-9.7%) scaleY(.4)}13.095%{transform:translate(26.2%,-10.2%) scaleY(.55)}13.69%{transform:translate(34.7%,-10.6%) scaleY(.85)}14.286%{transform:translate(43.2%,-11.1%) scaleY(1)}14.881%{transform:translate(51.6%,-11.6%) scaleY(.85)}15.476%{transform:translate(60.1%,-12%) scaleY(.55)}16.071%{transform:translate(68.6%,-12.5%) scaleY(.4)}16.667%{transform:translate(77%,-13%) scaleY(.55)}17.262%{transform:translate(85.5%,-13.4%) scaleY(.85)}17.857%{transform:translate(94%,-13.9%) scaleY(1)}18.452%{transform:translate(102.4%,-14.4%) scaleY(.85)}19.048%{transform:translate(110.9%,-14.8%) scaleY(.55)}19.643%{transform:translate(119.4%,-15.3%) scaleY(.4)}20.238%{transform:translate(127.8%,-15.7%) scaleY(.55)}20.833%{transform:translate(136.3%,-16.2%) scaleY(.85)}21.429%{transform:translate(144.8%,-16.7%) scaleY(1)}22.024%{transform:translate(153.2%,-17.1%) scaleY(.85)}22.619%{transform:translate(161.7%,-17.6%) scaleY(.55)}23.214%{transform:translate(170.2%,-18.1%) scaleY(.4)}23.81%{transform:translate(178.6%,-18.5%) scaleY(.55)}24.405%{transform:translate(187.1%,-19%) scaleY(.85)}25%{transform:translate(195.6%,-19.4%) scaleY(1)}25.595%{transform:translate(204%,-19.9%) scaleY(.85)}26.19%{transform:translate(212.5%,-20.4%) scaleY(.55)}26.786%{transform:translate(221%,-20.8%) scaleY(.4)}27.381%{transform:translate(229.4%,-21.3%) scaleY(.55)}27.976%{transform:translate(237.9%,-21.8%) scaleY(.85)}28.571%{transform:translate(246.3%,-22.2%) scaleY(1)}29.167%{transform:translate(254.8%,-22.7%) scaleY(.85)}29.762%{transform:translate(263.3%,-23.1%) scaleY(.55)}30.357%{transform:translate(271.7%,-23.6%) scaleY(.4)}30.952%{transform:translate(280.2%,-24.1%) scaleY(.55)}31.548%{transform:translate(288.7%,-24.5%) scaleY(.85)}32.143%{transform:translate(297.1%,-25%) scaleY(1)}32.738%{transform:translate(305.6%,-25.5%) scaleY(.85)}33.333%{transform:translate(314.1%,-25.9%) scaleY(.55)}33.929%{transform:translate(322.5%,-26.4%) scaleY(.4)}34.524%{transform:translate(331%,-26.9%) scaleY(.55)}35.119%{transform:translate(339.5%,-27.3%) scaleY(.85)}35.714%{transform:translate(347.9%,-27.8%) scaleY(1)}36.31%{transform:translate(356.4%,-28.2%) scaleY(.85)}36.905%{transform:translate(364.9%,-28.7%) scaleY(.55)}37.5%{transform:translate(373.3%,-29.2%) scaleY(.4)}38.095%{transform:translate(381.8%,-29.6%) scaleY(.55)}38.69%{transform:translate(390.3%,-30.1%) scaleY(.85)}39.286%{transform:translate(398.7%,-30.6%) scaleY(1)}39.881%{transform:translate(407.2%,-31%) scaleY(.85)}40.476%{transform:translate(415.7%,-31.5%) scaleY(.55)}41.071%{transform:translate(424.1%,-31.9%) scaleY(.4)}41.667%{transform:translate(432.6%,-32.4%) scaleY(.55)}42.262%{transform:translate(441.1%,-32.9%) scaleY(.85)}42.857%{transform:translate(449.5%,-33.3%) scaleY(1)}43.452%{transform:translate(458%,-33.8%) scaleY(.85)}44.048%{transform:translate(466.5%,-34.3%) scaleY(.55)}44.643%{transform:translate(474.9%,-34.7%) scaleY(.4)}45.238%{transform:translate(483.1%,-34.8%) scaleY(.55)}45.833%{transform:translate(490.9%,-34.2%) scaleY(.85)}46.429%{transform:translate(498.7%,-33.7%) scaleY(1)}47.024%{transform:translate(506.5%,-33.2%) scaleY(.85)}47.619%{transform:translate(514.3%,-32.6%) scaleY(.55)}48.214%{transform:translate(522.1%,-32.1%) scaleY(.4)}48.81%{transform:translate(529.9%,-31.5%) scaleY(.55)}49.405%{transform:translate(537.7%,-31%) scaleY(.85)}50%{transform:translate(545.5%,-30.5%) scaleY(1)}50.595%{transform:translate(553.2%,-29.9%) scaleY(.85)}51.19%{transform:translate(561%,-29.4%) scaleY(.55)}51.786%{transform:translate(568.8%,-28.8%) scaleY(.4)}52.381%{transform:translate(576.6%,-28.3%) scaleY(.55)}52.976%{transform:translate(584.4%,-27.7%) scaleY(.85)}53.571%{transform:translate(592.2%,-27.2%) scaleY(1)}54.167%{transform:translate(600%,-26.7%) scaleY(.85)}54.762%{transform:translate(607.8%,-26.1%) scaleY(.55)}55.357%{transform:translate(615.6%,-25.6%) scaleY(.4)}55.952%{transform:translate(623.4%,-25%) scaleY(.55)}56.548%{transform:translate(631.2%,-24.5%) scaleY(.85)}57.143%{transform:translate(639%,-24%) scaleY(1)}57.738%{transform:translate(646.8%,-23.4%) scaleY(.85)}58.333%{transform:translate(654.5%,-22.9%) scaleY(.55)}58.929%{transform:translate(662.3%,-22.3%) scaleY(.4)}59.524%{transform:translate(670.1%,-21.8%) scaleY(.55)}60.119%{transform:translate(677.9%,-21.3%) scaleY(.85)}60.714%{transform:translate(685.7%,-20.7%) scaleY(1)}61.31%{transform:translate(693.5%,-20.2%) scaleY(.85)}61.905%{transform:translate(701.3%,-19.6%) scaleY(.55)}62.5%{transform:translate(709.1%,-19.1%) scaleY(.4)}63.095%{transform:translate(716.9%,-18.5%) scaleY(.55)}63.69%{transform:translate(724.7%,-18%) scaleY(.85)}64.286%{transform:translate(732.5%,-17.5%) scaleY(1)}64.881%{transform:translate(740.3%,-16.9%) scaleY(.85)}65.476%{transform:translate(748.1%,-16.4%) scaleY(.55)}66.071%{transform:translate(755.8%,-15.8%) scaleY(.4)}66.667%{transform:translate(763.6%,-15.3%) scaleY(.55)}67.262%{transform:translate(771.4%,-14.8%) scaleY(.85)}67.857%{transform:translate(779.2%,-14.2%) scaleY(1)}68.452%{transform:translate(787%,-13.7%) scaleY(.85)}69.048%{transform:translate(794.8%,-13.1%) scaleY(.55)}69.643%{transform:translate(802.6%,-12.6%) scaleY(.4)}70.238%{transform:translate(810.4%,-12.1%) scaleY(.55)}70.833%{transform:translate(818.2%,-11.5%) scaleY(.85)}71.429%{transform:translate(826%,-11%) scaleY(1)}72.024%{transform:translate(833.8%,-10.4%) scaleY(.85)}72.619%{transform:translate(841.6%,-9.9%) scaleY(.55)}73.214%{transform:translate(849.4%,-9.4%) scaleY(.4)}73.81%{transform:translate(857.1%,-8.8%) scaleY(.55)}74.405%{transform:translate(864.9%,-8.3%) scaleY(.85)}75%{transform:translate(872.7%,-7.7%) scaleY(1)}75.595%{transform:translate(880.5%,-7.2%) scaleY(.85)}76.19%{transform:translate(888.3%,-6.6%) scaleY(.55)}76.786%{transform:translate(896.1%,-6.1%) scaleY(.4)}77.381%{transform:translate(903.9%,-5.6%) scaleY(.55)}77.976%{transform:translate(911.7%,-5%) scaleY(.85)}78.571%{transform:translate(919.5%,-4.5%) scaleY(1)}79.167%{transform:translate(927.3%,-3.9%) scaleY(.85)}79.762%{transform:translate(935.1%,-3.4%) scaleY(.55)}80.357%{transform:translate(942.9%,-2.9%) scaleY(.4)}80.952%{transform:translate(950.6%,-2.3%) scaleY(.55)}81.548%{transform:translate(958.4%,-1.8%) scaleY(.85)}82.143%{transform:translate(966.2%,-1.2%) scaleY(1)}82.738%{transform:translate(974%,-.7%) scaleY(.85)}83.333%{transform:translate(981.8%,-.2%) scaleY(.55)}83.929%{transform:translate(989.6%,.4%) scaleY(.4)}84.524%{transform:translate(997.4%,.9%) scaleY(.55)}85.119%{transform:translate(1005.2%,1.5%) scaleY(.85)}85.714%{transform:translate(1013%,2%) scaleY(1)}86.31%{transform:translate(1020.8%,2.6%) scaleY(.85)}86.905%{transform:translate(1028.6%,3.1%) scaleY(.55)}87.5%{transform:translate(1036.4%,3.6%) scaleY(.4)}88.095%{transform:translate(1044.2%,4.2%) scaleY(.55)}88.69%{transform:translate(1051.9%,4.7%) scaleY(.85)}89.286%{transform:translate(1059.7%,5.3%) scaleY(1)}89.881%{transform:translate(1067.5%,5.8%) scaleY(.85)}90.476%{transform:translate(1075.3%,6.3%) scaleY(.55)}91.071%{transform:translate(1083.1%,6.9%) scaleY(.4)}91.667%{transform:translate(1090.9%,7.4%) scaleY(.55)}92.262%{transform:translate(1098.7%,8%) scaleY(.85)}92.857%{transform:translate(1106.5%,8.5%) scaleY(1)}93.452%{transform:translate(1114.3%,9%) scaleY(.85)}94.048%{transform:translate(1122.1%,9.6%) scaleY(.55)}94.643%{transform:translate(1129.9%,10.1%) scaleY(.4)}95.238%{transform:translate(1137.7%,10.7%) scaleY(.55)}95.833%{transform:translate(1145.5%,11.2%) scaleY(.85)}96.429%{transform:translate(1153.2%,11.8%) scaleY(1)}97.024%{transform:translate(1161%,12.3%) scaleY(.85)}97.619%{transform:translate(1168.8%,12.8%) scaleY(.55)}98.214%{transform:translate(1176.6%,13.4%) scaleY(.4)}98.81%{transform:translate(1184.4%,13.9%) scaleY(.55)}99.405%{transform:translate(1192.2%,14.5%) scaleY(.85)}100%{transform:translate(1200%,15%) scaleY(1)}}
/* The chapel's doves beat their wings with pp-flap while they fly. */
@keyframes pp-flap { to { transform: scaleY(0.4); } }

/* The town: 2000 × 1000 units. It is sized so its core (680 units wide on phones, 960 on the open book, 535
   tall, from the sun and the top of the wheel down to the road) always fits the view, and stands on the view's bottom edge; more of the town shows where there is room. */
.pp-town {
	--core-w: 680;
	--core-h: 535;
	--centre: 49.25%;
	position: absolute; left: 50%; bottom: 0;
	width: min(calc(100cqw * 2000 / var(--core-w)), calc(100cqh * 2000 / var(--core-h)));
	aspect-ratio: 2 / 1;
	/* Centred on the core (the shop, a little left on phones so the chapel shows); the road runs on below. */
	transform: translate(calc(-1 * var(--centre)), 3.5%);
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1), (min-aspect-ratio: 3/2) and (max-height: 520px) { .pp-town { --core-w: 960; --centre: 50%; } }
.pp-layer { position: absolute; inset: 0; perspective: 160cqh; perspective-origin: 50% 0; pointer-events: none; }
.pp-piece { position: absolute; left: calc(var(--x) * 0.05%); top: calc(var(--y) * 0.1%); width: calc(var(--w) * 0.05%); height: calc(var(--h) * 0.1%); transform-origin: 50% 100%; }
.pp-piece > svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* A piece drawn in layers: each layer covers the whole piece in the same town units, so they line up as one drawing. */
.pp-piece--layers > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-piece--layers svg { display: block; overflow: visible; }
/* The wheel casts its shadow layer by layer instead (see the wheel below). */
.pp-piece--chapel, .pp-piece--clock, .pp-piece--smokehouse, .pp-piece--booth, .pp-piece--carousel { filter: drop-shadow(0 0.8cqh 0.7cqh rgb(var(--pp-shadow) / 0.16)); }
.pp-piece--tree, .pp-piece--house-l, .pp-piece--house-r, .pp-piece--house-m, .pp-piece--postbox { filter: drop-shadow(0 1.3cqh 1cqh rgb(var(--pp-shadow) / 0.24)); }

/* Opening the book: about two seconds from the first paint to the whole town standing. The far shore slides up,
   then every piece swings up off the fold with a paper spring, back to front (--t from hero.php); the shop's sign
   drops onto its hooks, the smoke starts, and the courier rides in to wait by the shop (story.js turns his wheels and
   pedals while he does). */
@media (prefers-reduced-motion: no-preference) {
	.pp-pop { animation: pp-pop 0.9s var(--pp-ease-pop) var(--t) backwards, pp-appear 0.18s linear var(--t) backwards; }
	.pp-rise { animation: pp-rise 1s var(--pp-ease-out) var(--t) backwards; }
	.pp-piece--sun { animation-name: pp-sunrise; animation-duration: 1.6s; }
	.pp-shop-sign { transform-box: fill-box; transform-origin: 50% 0; animation: pp-sign-in 1.1s ease-out 1.5s backwards; }
	/* The balloon rises from behind the roofs and the kite is let up on its string. */
	.pp-balloon { animation: pp-balloon-in 2.4s var(--pp-ease-out) 0.15s backwards; }
	.pp-kite { animation: pp-kite-in 1.4s var(--pp-ease-out) 0.45s backwards; }
	.pp-rider__ride { animation: pp-ride-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.95s backwards; }
}
@keyframes pp-pop { from { transform: rotateX(-90deg); } }
@keyframes pp-appear { from { opacity: 0; } }
@keyframes pp-rise { from { transform: translateY(16%); opacity: 0; } }
@keyframes pp-sunrise { from { transform: translateY(70%); opacity: 0; } }
@keyframes pp-sign-in { 0% { transform: translateY(-12px) rotate(-16deg); opacity: 0; } 20% { opacity: 1; } 42% { transform: rotate(10deg); } 62% { transform: rotate(-5deg); } 82% { transform: rotate(2deg); } 100% { transform: none; } }
@keyframes pp-balloon-in { from { transform: translateY(180%); } }
@keyframes pp-kite-in { from { transform: translateY(70%) rotate(-12deg); opacity: 0; } 30% { opacity: 1; } }
@keyframes pp-ride-in { from { transform: translateX(-1300%); } }

/* Far: Olympus across the gulf, the sea and the shore with the White Tower; hills under the town. */
.pp-far__olympus { fill: #A8CCE6; } .pp-far__snow { fill: #FFFFFF; }
.pp-far__sea { fill: #A2D2EE; } .pp-far__foam { fill: #E4F4FC; }
.pp-far__city { fill: #93BEDB; }
.pp-far__pole { fill: none; stroke: #7FA9C6; stroke-width: 1.4; } .pp-far__flag { fill: #D21F6C; }
.pp-far__tower rect, .pp-far__tower path { fill: #F4F9FD; } .pp-far__tower .pp-far__tower-shade { fill: #D2E4F1; }
.pp-sky--dusk .pp-far__olympus { fill: #E9C1D2; } .pp-sky--dusk .pp-far__snow { fill: #FCEAF1; } .pp-sky--dusk .pp-far__sea { fill: #EFB6CA; } .pp-sky--dusk .pp-far__foam { fill: #F8D8E4; } .pp-sky--dusk .pp-far__city { fill: #D7A3BB; }
.pp-sky--night .pp-far__olympus { fill: #4B2D40; } .pp-sky--night .pp-far__snow { fill: #6C4B5E; } .pp-sky--night .pp-far__sea { fill: #432636; } .pp-sky--night .pp-far__foam { fill: #5B3746; } .pp-sky--night .pp-far__city { fill: #3A2030; }
.pp-sky--night .pp-far__tower rect, .pp-sky--night .pp-far__tower path { fill: #7A5363; } .pp-sky--night .pp-far__tower .pp-far__tower-shade { fill: #5B3746; }
.pp-terrace--far { fill: #D9EFE2; } .pp-terrace--mid { fill: #C2E5CF; } .pp-terrace--near, .pp-terrace--rise { fill: #A9D9BB; }
.pp-sky--dusk .pp-terrace--far { fill: #EFD5DF; } .pp-sky--dusk .pp-terrace--mid { fill: #E2C2D0; } .pp-sky--dusk .pp-terrace--near, .pp-sky--dusk .pp-terrace--rise { fill: #CDAEC0; }
.pp-sky--night .pp-terrace--far { fill: #33443D; } .pp-sky--night .pp-terrace--mid { fill: #374E40; } .pp-sky--night .pp-terrace--near, .pp-sky--night .pp-terrace--rise { fill: #3C5946; }
.pp-piece--row-far { opacity: 0.55; }
.pp-piece--row-mid { opacity: 0.8; }
.pp-piece--row-near { filter: drop-shadow(0 0.5cqh 0.5cqh rgb(var(--pp-shadow) / 0.12)); }
.pp-ridge--far { fill: #CDE9D8; transition: fill 0.8s; }
.pp-ridge--near { fill: #A6D7B9; transition: fill 0.8s; }
.pp-sky--dusk .pp-ridge--far { fill: #E7C5D3; } .pp-sky--dusk .pp-ridge--near { fill: #C3AAB9; }
.pp-sky--night .pp-ridge--far { fill: #31503F; } .pp-sky--night .pp-ridge--near { fill: #3A6049; }

/* Sun by day (its rays turning), low and orange at dusk, the moon at night. */
.pp-hsun, .pp-hmoon { transition: opacity 0.8s, transform 0.8s; }
/* The rays are their own layer over the sun's box (hero.php): they turn about its middle and go down with the sun at
   dusk (the same -20, 92 town units as .pp-hsun below, in % of the 160-unit box). */
.pp-hsun__rays { transform-origin: 50% 50%; animation: pp-spin 70s linear infinite; }
.pp-sky--dusk .pp-hsun__rays { translate: -12.5% 57.5%; }
.pp-sky--night .pp-hsun__rays { opacity: 0; animation: none; } /* The sun has set: no need to keep turning rays nobody sees. */
.pp-sun__ray { fill: #FFE7A3; }
.pp-sun__disc { fill: var(--pp-light); }
.pp-sun__glint { fill: #FFE7A3; }
.pp-hmoon { opacity: 0; }
.pp-moon__disc { fill: var(--pp-pink); }
.pp-moon__bite { fill: var(--sky); transition: fill 0.8s; }
.pp-sky--dusk .pp-hsun { transform: translate(-20px, 92px); }
.pp-sky--dusk .pp-sun__disc { fill: #FFB35C; }
.pp-sky--night .pp-hsun { opacity: 0; }
.pp-sky--night .pp-hmoon { opacity: 1; }

/* The landmarks. */
.pp-chapel-cross { fill: none; stroke: #3B1F2B; stroke-width: 3; stroke-linecap: round; }
.pp-chapel-path { fill: none; stroke: #FFF6EE; stroke-width: 7; stroke-linecap: round; }
.pp-sky--night .pp-chapel-path { stroke: #7A5363; }
.pp-sky--night .pp-chapel-cross { stroke: #FFD66B; }
.pp-clock__rim { fill: none; stroke: #5B3746; stroke-width: 2; }
.pp-clock__hand { stroke: #3B1F2B; stroke-width: 2.2; stroke-linecap: round; transition: transform 0.6s var(--pp-ease-out); }
.pp-hclock .pp-clock__hand { transform-origin: 892px 612px; }
.pp-frame-line--thin { stroke-width: 2.2; }
/* The carousel's pennant, a layer of its own over the carousel's box (hero.php), flying from its pole at 1429, 717. */
.pp-hflag { transform-origin: 50.926% 8.125%; animation: pp-pennant 0.9s ease-in-out infinite alternate; filter: drop-shadow(0 0.8cqh 0.7cqh rgb(var(--pp-shadow) / 0.16)); }
.pp-hw__rim { fill: none; stroke: #FFFFFF; stroke-width: 6; }
.pp-hw__ring { fill: none; stroke: #F6B8CF; stroke-width: 2.4; }
.pp-hw__spoke { fill: none; stroke: #FFFFFF; stroke-width: 2.2; }
.pp-hw__leg { fill: none; stroke: #FFFFFF; stroke-width: 9; stroke-linecap: round; }
.pp-hw__leg--back { stroke: #E2CAD5; }
.pp-hw__hook { fill: none; stroke: #7A5363; stroke-width: 2; }
.pp-hw__bulb { fill: #FFF1C2; }
/* The wheel's shadow. The legs and each cabin cast their own. The rim's is a still ring beneath it, since a ring looks
   the same at every turn and a shadow cast by the turning layer itself would turn with it. One shadow over the whole
   piece made the phone redraw it on every frame. */
.pp-hw__still, .pp-hw__cabin { filter: drop-shadow(0 0.8cqh 0.7cqh rgb(var(--pp-shadow) / 0.16)); }
.pp-hw__shadow { translate: 0 0.8cqh; filter: blur(0.35cqh); }
.pp-hw__shade { fill: none; stroke: rgb(var(--pp-shadow) / 0.16); stroke-width: 6; }
.pp-hw__shade--ring { stroke-width: 2.4; }
/* At dusk and at night the bulbs pulse between gold and cream: a gold copy of them over the cream ones, turning with
   the rim, its opacity pulsing, so the pulse runs on the graphics chip instead of 24 bulbs being recoloured on every
   frame. The sky's class is set by the server, so the copy and the rim start turning together. */
.pp-hw__glow { fill: #FFD66B; opacity: 0; }
.pp-sky--dusk .pp-hw__glow, .pp-sky--night .pp-hw__glow { animation: pp-spin 90s linear infinite, pp-glow 2.4s ease-in-out infinite; }
@keyframes pp-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.pp-hw__rotor { animation: pp-spin 90s linear infinite; }
/* A cabin at rest sits at its place on the rim (--a); turning, it travels round the hub upright (hero.php). */
.pp-hw__cabin { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) translateX(calc(-1 * var(--r))); animation: pp-orbit 90s linear infinite; }
@keyframes pp-orbit {
	from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg) translateX(calc(-1 * var(--r))); }
	to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg) translateX(calc(-1 * var(--r))); }
}
.pp-carousel__pole { fill: none; stroke: #FFFFFF; stroke-width: 3; }
.pp-sky--night .pp-hw__rim, .pp-sky--night .pp-hw__spoke, .pp-sky--night .pp-hw__leg, .pp-sky--night .pp-carousel__pole { stroke: #C9A9B8; }

/* The logo's houses: clothes in the shop windows, and the shop's sign over its door. */
.pp-sign__edge { fill: var(--pp-rose); }
.pp-sign__text { font: 800 15px/1 var(--pp-font); letter-spacing: 0.06em; }
.pp-logo-tree .pp-tree__crown { animation-duration: 7s; }

/* Night and dusk: the windows, the heart and the frames light up; the paper dims. */
.pp-lamp--street { fill: #FFF6DC; }
.pp-sky--dusk .pp-lamp, .pp-sky--night .pp-lamp, .pp-sky--dusk .pp-heart, .pp-sky--night .pp-heart, .pp-sky--dusk .pp-frame, .pp-sky--night .pp-frame { fill: var(--pp-light); }
.pp-sky--night .pp-t-fuchsia, .pp-sky--night .pp-r-fuchsia { fill: #B71B5D; } .pp-sky--night .pp-t-fuchsia-shade, .pp-sky--night .pp-r-fuchsia-shade { fill: #8C1447; }
.pp-sky--night .pp-r-green, .pp-sky--night .pp-t-green { fill: #27744B; }
.pp-sky--night .pp-t-rose { fill: #C98AA4; } .pp-sky--night .pp-t-white { fill: #E9DCE3; } .pp-sky--night .pp-t-mint { fill: #A9C9B7; } .pp-sky--night .pp-t-blue { fill: #6FA9C8; }
.pp-sky--night .pp-cast { fill: rgb(0 0 0 / 0.22); }

/* Chimney smoke: paper puffs that swell out of the chimney beside the shop and drift off over its roof. */
.pp-smoke { position: absolute; left: 53.7%; top: 58.3%; width: 2.1%; aspect-ratio: 1; pointer-events: none; }
.pp-smoke i { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #E9DFE5; opacity: 0; animation: pp-puff-l 4.2s linear 1.3s infinite; }
.pp-smoke i::before, .pp-smoke i::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.pp-smoke i::before { left: -38%; top: 30%; width: 70%; height: 70%; }
.pp-smoke i::after { left: 42%; top: -26%; width: 78%; height: 78%; }
.pp-smoke i:nth-child(2) { animation-delay: 2.7s; } .pp-smoke i:nth-child(3) { animation-delay: 4.1s; }
.pp-sky--dusk .pp-smoke i { background: #FBE7EF; }
.pp-sky--night .pp-smoke i { background: #6B4555; }
@keyframes pp-puff-l { 0% { transform: translate(0, 0) scale(0.35); opacity: 0; } 12% { opacity: 1; } 55% { opacity: 0.85; } 100% { transform: translate(-70%, -190%) scale(1.25); opacity: 0; } }

.pp-ground { position: absolute; left: 0; top: 89.6%; width: 100%; height: 10.4%; overflow: visible; pointer-events: none; }
.pp-pavement { fill: #F1E6EA; }
.pp-street { fill: #FFFFFF; }
.pp-street__dash { fill: none; stroke: #F6B8CF; stroke-width: 3; stroke-dasharray: 18 14; vector-effect: non-scaling-stroke; }
.pp-kerb { fill: none; stroke: #E8D3DC; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pp-sky--night .pp-pavement { fill: #4A2937; } .pp-sky--night .pp-street { fill: #5B3746; } .pp-sky--night .pp-street__dash { stroke: #7A5363; }

/* The courier. His legs and wheels are turned by story.js; the pennant flutters. */
.pp-rider { position: absolute; z-index: 6; width: clamp(66px, 9vw, 108px); pointer-events: none; }
.pp-rider__svg { display: block; width: 100%; overflow: visible; }
/* The courier's flag flies while he rides (story.js marks him .is-riding) and hangs still when he stops: waving at
   rest, inside his drawing, it had the phone restyle and repaint him on every frame. */
.pp-rider .pp-flag { transform-origin: 0 50%; animation: pp-pennant 0.5s ease-in-out infinite alternate; animation-play-state: paused; }
.pp-rider.is-riding .pp-flag { animation-play-state: running; }
@keyframes pp-pennant { to { transform: skewY(-12deg) scaleX(0.86); } }
.pp-wheel, .pp-pedals { transform-box: view-box; }
.pp-rider--hero { left: 56%; top: 87.9%; width: 5%; }

/* ---------------------------------------------------------------- the road between districts */

.pp-journey { --pad: max(clamp(18px, 4vw, 56px), calc((100vw - var(--pp-width)) / 2)); position: relative; }
/* The day passing: fixed colour layers behind the walk that story.js cross-fades (opacity only, one screen). */
.pp-daylight { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.pp-daylight i { position: absolute; inset: 0; opacity: 0; }
.pp-daylight i:nth-child(1) { background: #FCE6E2; }
.pp-daylight i:nth-child(2) { background: #F6D0DD; }
.pp-daylight i:nth-child(3) { background: #E5AEC4; }
.pp-bend { position: relative; height: clamp(150px, 20vw, 230px); }
.pp-bend__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pp-road__shadow { fill: none; stroke: rgb(59 31 43 / 0.10); stroke-width: 44px; transform: translateY(5px); }
.pp-road__body { fill: none; stroke: #FFFFFF; stroke-width: 36px; }
.pp-road__dash { fill: none; stroke: #F6B8CF; stroke-width: 3px; stroke-dasharray: 10 12; }
.pp-road__track { fill: none; stroke: none; }
.pp-signpost { position: absolute; top: 22%; z-index: 2; display: grid; justify-items: center; transform-origin: 50% 100%; }
.pp-bend--l .pp-signpost { left: 56%; }
.pp-bend--r .pp-signpost { right: 56%; }
.pp-signpost__board { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; background: #FFFFFF; color: var(--pp-ink); border-radius: 8px; outline: 1.5px dashed #F6B8CF; outline-offset: -5px; box-shadow: var(--pp-lift-1); font-weight: 800; font-size: 0.875rem; white-space: nowrap; rotate: -3deg; }
.pp-bend--r .pp-signpost__board { rotate: 3deg; }
.pp-signpost__arrow { width: 16px; height: 16px; fill: none; stroke: var(--pp-fuchsia); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-signpost__post { width: 6px; height: 40px; background: #7A5363; border-radius: 0 0 3px 3px; box-shadow: 3px 0 0 #5B3746; }
/* Little paper bushes: three bumps, the right one in shade. */
.pp-tufts i { position: absolute; width: 18px; height: 12px; background: #49A86F; border-radius: 10px 10px 0 0; box-shadow: 11px 2px 0 -1px #2F8A55, -9px 3px 0 -2px #3E9A63; }
.pp-tufts i:nth-child(2), .pp-tufts i:nth-child(4) { width: 12px; height: 8px; box-shadow: 8px 1px 0 -1px #2F8A55; }
.pp-bend--l .pp-tufts i:nth-child(1) { left: 9%; top: 72%; } .pp-bend--l .pp-tufts i:nth-child(2) { left: 13%; top: 76%; }
.pp-bend--l .pp-tufts i:nth-child(3) { right: 12%; top: 34%; } .pp-bend--l .pp-tufts i:nth-child(4) { right: 9%; top: 38%; }
.pp-bend--r .pp-tufts i:nth-child(1) { right: 9%; top: 72%; } .pp-bend--r .pp-tufts i:nth-child(2) { right: 13%; top: 76%; }
.pp-bend--r .pp-tufts i:nth-child(3) { left: 12%; top: 34%; } .pp-bend--r .pp-tufts i:nth-child(4) { left: 9%; top: 38%; }
.pp-bend .pp-rider { left: 0; top: 0; transform-origin: 50% 94%; }
html:not(.pp-story) .pp-bend .pp-rider { display: none; }

/* ---------------------------------------------------------------- the districts: paper panels on the page */

/* The room above and below each district follows the screen's height as well as its width, so a short laptop screen
   doesn't spend a third of itself on padding. (Each svh rule follows a vh one: a browser without svh keeps that.) */
.pp-district {
	position: relative; margin: 0 clamp(10px, 2vw, 32px); padding: clamp(40px, min(7vw, 9vh), 96px) var(--pad); padding: clamp(40px, min(7vw, 9svh), 96px) var(--pad);
	border-radius: clamp(24px, 3vw, 40px); box-shadow: var(--pp-lift-2); overflow: clip; isolation: isolate;
}
.pp-district::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pp-grain); opacity: 0.06; mix-blend-mode: multiply; pointer-events: none; }
.pp-district__head { position: relative; z-index: 2; display: grid; gap: 12px; justify-items: start; margin-bottom: clamp(24px, 3vw, 40px); }
.pp-district__head--center { justify-items: center; text-align: center; margin-inline: auto; max-width: 720px; }

/* ---------------------------------------------------------------- Η Βιτρίνα: the shop window */

.pp-d-vitrina { background: #FFFFFF; padding-top: clamp(104px, min(11vw, 19vh), 148px); padding-top: clamp(104px, min(11vw, 19svh), 148px); }
.pp-vitrina__front { position: absolute; inset: 0 0 auto; z-index: 1; }
.pp-vitrina__awning { display: block; width: 100%; height: clamp(54px, 6vw, 84px); transform-origin: 50% 0; filter: drop-shadow(0 8px 6px rgb(var(--pp-shadow) / 0.18)); }
/* The shop's own name board hangs from the awning on two chains. */
.pp-vitrina__sign { position: absolute; left: 50%; top: clamp(62px, 6.8vw, 94px); translate: -50% 0; transform-origin: 50% -14px; padding: 10px 18px; background: var(--pp-pink); border-radius: 10px; box-shadow: 0 0 0 3px var(--pp-plum), var(--pp-lift-2); }
.pp-vitrina__sign img { display: block; width: auto; height: clamp(30px, 3.4vw, 44px); }
.pp-vitrina__sign::before, .pp-vitrina__sign::after { content: ""; position: absolute; top: -12px; width: 2px; height: 13px; background: #5B3746; }
.pp-vitrina__sign::before { left: 22%; } .pp-vitrina__sign::after { right: 22%; }
.pp-d-vitrina .pp-district__head { margin-top: 26px; }
.pp-rail { position: relative; margin-inline: calc(-1 * var(--pad)); }
.pp-rail__rod { position: absolute; left: 0; right: 0; top: 18px; height: 8px; background: #7A5363; border-radius: 4px; box-shadow: 0 3px 0 #5B3746, var(--pp-lift-1); transform-origin: 0 50%; }
.pp-rail__cap { position: absolute; left: 6px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: #5B3746; }
.pp-rail__cap--r { left: auto; right: 6px; }
.pp-rail__track {
	position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 256px); gap: 18px;
	margin: 0; padding: 15px var(--pad) 30px; list-style: none; scroll-padding-inline: var(--pad);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pp-rail__track::-webkit-scrollbar { display: none; }
.pp-rail__item { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; justify-items: center; transform-origin: 50% 0; }
.pp-hanger { position: relative; z-index: 1; display: block; width: 46%; margin-bottom: -10px; }
.pp-hanger svg { display: block; width: 100%; overflow: visible; }
.pp-hanger__hook { fill: none; stroke: #5B3746; stroke-width: 4; stroke-linecap: round; }
.pp-hanger__bar { fill: none; stroke: #7A5363; stroke-width: 5; stroke-linejoin: round; }
.pp-rail__item .pp-card { width: 100%; }
.pp-rail__item:nth-child(3n + 1) .pp-card { rotate: -0.6deg; }
.pp-rail__item:nth-child(3n + 2) .pp-card { rotate: 0.5deg; }
.pp-rail__nav { display: none; }
@media (min-width: 900px) { .pp-rail__nav { display: flex; justify-content: flex-end; gap: 10px; padding: 0 var(--pad); } }
.pp-pigeon { position: absolute; z-index: 3; top: -21px; left: max(64px, 24%); width: 54px; pointer-events: none; }
.pp-pigeon svg { display: block; width: 100%; overflow: visible; }
.pp-pigeon__legs { fill: none; stroke: #D21F6C; stroke-width: 2; stroke-linecap: round; }
/* A bluebird: light blue with a pale belly and a rose cheek. */
.pp-pigeon__belly { fill: #E2F3FC; } .pp-pigeon__cheek { fill: #F6B8CF; }
.pp-pigeon__wing { transform-box: fill-box; transform-origin: 20% 60%; }
/* Its peck: four quick dips every 2.9 s, on its whole drawing so the phone's graphics run it (story.js sets
   .is-pecking while it sits on the rail in view). */
@media (prefers-reduced-motion: no-preference) {
	.pp-pigeon.is-pecking svg { transform-origin: 50% 100%; animation: pp-peck 2.88s ease-in-out 1.5s infinite; }
}
@keyframes pp-peck { 0%, 8.333%, 16.667%, 100% { transform: none; } 4.167%, 12.5% { transform: rotate(16deg); } }

/* ---------------------------------------------------------------- Το Λούνα Πάρκ: the size wheel */

.pp-d-fair { background: var(--pp-green-deep); color: #FFFFFF; padding-top: clamp(96px, min(10vw, 17vh), 136px); padding-top: clamp(96px, min(10vw, 17svh), 136px); }
.pp-d-fair .pp-spread__title { color: #FFFFFF; }
.pp-d-fair .pp-spread__text { color: #DDF0E4; }
.pp-fair__lights { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: clamp(70px, min(9vw, 14vh), 120px); height: clamp(70px, min(9vw, 14svh), 120px); overflow: visible; }
.pp-fair__ground { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(56px, 7vw, 100px); background: #1E6340; }
.pp-fair__side { position: absolute; bottom: clamp(36px, 4.4vw, 68px); z-index: 1; display: none; overflow: visible; }
@media (min-width: 1100px) { .pp-fair__side { display: block; } }
.pp-fair__side--l { left: 5%; width: clamp(150px, 13vw, 210px); aspect-ratio: 220 / 340; }
.pp-fair__side--r { right: 5%; width: clamp(160px, 14vw, 230px); }
/* The balloon seller: the bunch is its own drawing behind the cart, swaying about the seller's hand (110, 262). */
.pp-fair__side--l svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pp-fair__bunch { transform-origin: 50% 77.059%; animation: pp-bunch 5s ease-in-out infinite alternate; }
@keyframes pp-bunch { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.pp-balloon2__string { fill: none; stroke: #DDF0E4; stroke-width: 1.2; opacity: 0.8; }
.pp-glint { fill: #FFFFFF; opacity: 0.55; }
.pp-bulb { fill: #FFF1C2; }
/* The fair's bulbs rest warm white. Six gold layers over them fade in and out a beat apart (wheel.php $wave), so a
   slow glow runs along the string and round the rim on the graphics chip; each bulb fading on its own had the
   processor redraw the fair on every frame. The rim's layers turn with the wheel (story.js). */
.pp-bulb--wave { fill: #FFF6DC; }
.pp-fair__lit { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: clamp(70px, min(9vw, 14vh), 120px); height: clamp(70px, min(9vw, 14svh), 120px); pointer-events: none; }
.pp-ferris__lit { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 600 / 560; transform-origin: 50% 46.786%; pointer-events: none; }
.pp-wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: #FFD66B; display: none; }
@media (prefers-reduced-motion: no-preference) {
	.pp-wave { display: block; animation: pp-wave 2.4s ease-in-out infinite; }
}
@keyframes pp-wave { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* The wheel and its booth are one picture: on a short screen the wheel shrinks until both fit under the header (the
   booth adds about 150px under the wheel, 196px leaves a margin), never below 300px. */
.pp-ferris {
	position: relative; display: grid; justify-items: center; margin: 0 auto;
	max-width: min(600px, max(300px, calc((100vh - var(--pp-header-h) - 196px) * 600 / 560)));
	max-width: min(600px, max(300px, calc((100svh - var(--pp-header-h) - 196px) * 600 / 560)));
}
.pp-ferris__scene { display: block; width: 100%; height: auto; overflow: visible; }
.pp-ferris__wheel { transform-origin: 300px 262px; }
.pp-ferris__rim { fill: none; }
.pp-ferris__rim--outer { stroke: #FFFFFF; stroke-width: 10; }
.pp-ferris__rim--inner { stroke: #F6B8CF; stroke-width: 4; }
.pp-ferris__spoke { stroke: #FFFFFF; stroke-width: 3; opacity: 0.9; }
.pp-ferris__brace { fill: none; stroke: #7A5363; stroke-width: 5; stroke-linecap: round; }
.pp-ferris__steps { fill: none; stroke: #3B1F2B; stroke-width: 2; }
.pp-cabin__body { transform-origin: 0 0; }
.pp-cabin__window { fill: #FFFFFF; transition: fill 0.3s; }
.pp-cabin__label { font: 800 13px var(--pp-font); fill: #3B1F2B; pointer-events: none; }
.pp-cabin.is-selected .pp-cabin__window { fill: #FFD66B; }
.pp-ferris__control { position: absolute; left: 11.65%; top: 0; width: 76.7%; margin-top: 5.33%; aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.pp-ferris__control.is-dragging { cursor: grabbing; }
.pp-ferris__control:focus-visible { outline: 3px solid var(--pp-light); outline-offset: 4px; }
.pp-booth { position: relative; z-index: 2; width: min(100%, 520px); margin-top: -14px; display: grid; gap: 14px; padding: 18px 16px; background: var(--pp-mint); color: var(--pp-ink); border-radius: 0 0 22px 22px; box-shadow: var(--pp-lift-2); }
/* On a phone the booth keeps the district's full width when the wheel shrinks for a short screen: narrower, its two
   buttons would wrap and grow taller. */
@media (max-width: 719px) { .pp-d-fair { container-type: inline-size; } .pp-booth { width: min(520px, 100cqw); } }
.pp-booth__canopy { position: absolute; left: -10px; right: -10px; top: -26px; height: 28px; border-radius: 8px 8px 0 0; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='28'%3E%3Crect width='26' height='28' fill='%23D21F6C'/%3E%3C/svg%3E") repeat-x; box-shadow: var(--pp-lift-1); }
.pp-booth__window { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.pp-wheel__age { margin: 0; text-align: center; font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.pp-wheel__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-pick {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; min-height: 64px; padding: 10px 14px 10px 16px;
	background: var(--pp-fuchsia); color: #FFFFFF; border-radius: 14px; text-align: left; text-decoration: none;
	box-shadow: 0 2px 0 var(--pp-fuchsia-deep), var(--pp-lift-1); transition: transform 0.25s var(--pp-ease-out), background 0.2s;
}
.pp-pick:hover { color: #FFFFFF; background: var(--pp-fuchsia-deep); transform: translateY(-2px); }
.pp-pick--boy { background: var(--pp-blue); color: var(--pp-ink); box-shadow: 0 2px 0 var(--pp-blue-shade), var(--pp-lift-1); }
.pp-pick--boy:hover { background: var(--pp-blue-shade); color: var(--pp-ink); }
.pp-pick__who { font-weight: 800; }
.pp-pick__count { grid-row: 2; font-size: 0.875rem; font-weight: 700; color: inherit; }
.pp-pick .pp-icon { grid-column: 2; grid-row: 1 / span 2; }

/* ---------------------------------------------------------------- Το Εκκλησάκι: the chapel at golden hour */

/* Golden hour: warm cream card, an apricot sky and the sun low behind the cypresses. */
.pp-d-chapel { display: grid; gap: 28px; background: #FFF1D6; color: var(--pp-ink); }
.pp-d-chapel .pp-spread__text { color: var(--pp-ink-soft); }
.pp-chapel__art { position: relative; margin: calc(-1 * clamp(40px, min(7vw, 9vh), 96px)) calc(-1 * var(--pad)) 0; margin: calc(-1 * clamp(40px, min(7vw, 9svh), 96px)) calc(-1 * var(--pad)) 0; background: #FBC49A; overflow: clip; }
.pp-chapel__scene { display: block; width: 100%; height: auto; overflow: visible; }
.pp-chapel__band { fill: #FDD9B2; }
.pp-chapel__halo { fill: #FFE6C2; }
.pp-chapel__sun { fill: #FFB35C; }
.pp-chapel__hill--back { fill: #24734A; }
.pp-chapel__hill--front { fill: #2F8A55; }
.pp-chapel__rose { fill: #F6B8CF; }
.pp-chapel__cross { fill: none; stroke: #3B1F2B; stroke-width: 4; stroke-linecap: round; }
.pp-chapel__path { fill: #EADDE3; }
.pp-chapel__bell { transform-box: fill-box; transform-origin: 50% 0; }
.pp-lampada__tulle { fill: #FCEEF3; stroke: #F6B8CF; stroke-width: 2; }
.pp-wick { stroke: #3B1F2B; stroke-width: 2.6; stroke-linecap: round; }
.pp-flame-out { fill: #FFD66B; } .pp-flame-in { fill: #FFB35C; }
/* The λαμπάδες burn lit but still, like the balloon's flame: a flicker inside the drawing kept the processor redrawing
   the chapel while it was in view. pp-flicker stays for Easter's candles (season.css). */
@keyframes pp-flicker { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.06, 0.95) rotate(-2deg); } 50% { transform: scale(0.96, 1.05) rotate(1.5deg); } 75% { transform: scale(1.03, 0.98) rotate(-1deg); } }
.pp-olive__stem { fill: none; stroke: #49A86F; stroke-width: 4; stroke-linecap: round; }
.pp-olive__leaf { fill: #6CC08D; }
.pp-glow { fill: #FFD66B; pointer-events: none; }
.pp-dove-path { stroke: none; }
/* The doves: each a drawing of its own over the scene, in its units (baptism.php). Their wings beat only while they
   fly; landed, they hover as whole layers, which the phone's graphics move (story.js sets .is-flying on the dove,
   then .is-hovering on its drawing). Beating wings and a hover inside the scene kept its processor redrawing the
   chapel for as long as it was in view. */
.pp-doves { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pp-dove { opacity: 0; }
html:not(.pp-story) .pp-doves--1 .pp-dove { opacity: 1; transform: translate(118px, 112px) scale(-1, 1); }
html:not(.pp-story) .pp-doves--2 .pp-dove { opacity: 1; transform: translate(392px, 76px) scale(0.85); }
.pp-dove__wing { transform-box: fill-box; transform-origin: 30% 100%; }
@media (prefers-reduced-motion: no-preference) {
	.pp-dove.is-flying .pp-dove__wing { animation: pp-flap 0.5s ease-in-out infinite alternate; }
	.pp-doves.is-hovering { animation: pp-hover 1.5s ease-in-out infinite alternate; }
	.pp-doves--2.is-hovering { animation-duration: 1.85s; }
	.pp-doves--3.is-hovering { animation-duration: 2.2s; }
}
/* 9 of the scene's 520 units, as the hover moved them inside it. */
@keyframes pp-hover { to { transform: translateY(1.731%); } }
.pp-chapel__copy { position: relative; z-index: 1; display: grid; gap: 20px; align-content: start; }
.pp-d-chapel .pp-tabs { max-width: 520px; }
.pp-baptism__human { display: grid; gap: 10px; padding-top: 20px; border-top: 1.5px dashed rgb(var(--pp-shadow) / 0.22); }
.pp-baptism__ask { margin: 0; max-width: 46ch; font-weight: 700; color: var(--pp-ink); }
.pp-d-chapel .pp-contactline a { color: var(--pp-ink); }
.pp-d-chapel .pp-contactline a:hover { color: var(--pp-fuchsia-deep); }
.pp-d-chapel .pp-contactline .pp-icon { color: var(--pp-fuchsia); }
.pp-chapel__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pp-chapel__cards li:nth-child(3) { display: none; }
@media (min-width: 720px) { .pp-chapel__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .pp-chapel__cards li:nth-child(3) { display: block; } }
@media (min-width: 960px) {
	.pp-d-chapel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); grid-template-areas: "art copy" "cards cards"; column-gap: 56px; row-gap: 56px; align-items: center; }
	.pp-chapel__art { grid-area: art; margin: 0; border-radius: 28px; overflow: clip; box-shadow: var(--pp-lift-3); }
	.pp-chapel__copy { grid-area: copy; }
	.pp-chapel__cards { grid-area: cards; }
}

/* ---------------------------------------------------------------- Το Ραφείο: the tailor's */

.pp-d-tailor {
	background-color: var(--pp-rose); padding-top: clamp(96px, min(10vw, 15vh), 132px); padding-top: clamp(96px, min(10vw, 15svh), 132px);
	padding-bottom: clamp(28px, min(5vw, 5vh), 64px); padding-bottom: clamp(28px, min(5vw, 5svh), 64px);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0 6h12M6 0v12' stroke='%23EFA6C2' stroke-width='1'/%3E%3C/svg%3E");
}
.pp-d-tailor .pp-spread__text { color: var(--pp-plum-soft); }
.pp-tape { position: absolute; left: -2%; right: -2%; top: 26px; z-index: 1; display: flex; height: 34px; overflow: hidden; background: var(--pp-light); box-shadow: var(--pp-lift-1); rotate: -1.2deg; }
.pp-tape span { flex: 0 0 auto; width: 80px; height: 100%; padding: 13px 0 0 5px; border-left: 2px solid #3B1F2B; font-size: 0.6875rem; font-weight: 800; color: #3B1F2B; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='34'%3E%3Cpath d='M0.5 0v8' stroke='%233B1F2B' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0; }
.pp-cloth { position: relative; padding: 22px 0 96px; }
@media (min-width: 900px) { .pp-cloth { padding-bottom: clamp(52px, 9vh, 76px); padding-bottom: clamp(52px, 9svh, 76px); } }
.pp-spools { position: absolute; left: 0; bottom: 0; display: flex; gap: 10px; }
@media (min-width: 900px) { .pp-spools { left: auto; right: 0; bottom: auto; top: -112px; } }
.pp-spool { width: 46px; }
.pp-spool svg { display: block; width: 100%; filter: drop-shadow(0 6px 4px rgb(var(--pp-shadow) / 0.22)); }
.pp-spool--b { margin-top: 18px; }
.pp-spool__lines { fill: none; stroke: rgb(0 0 0 / 0.14); stroke-width: 1; }
.pp-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.pp-thread__line { fill: none; stroke: var(--pp-fuchsia); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 6; }
.pp-needle { position: absolute; left: 0; top: 0; z-index: 3; width: 64px; height: 13px; transform-origin: 1.6px 6.4px; pointer-events: none; }
.pp-needle svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 2px rgb(var(--pp-shadow) / 0.3)); }
.pp-needle__body { fill: #FFFFFF; stroke: #7A5363; stroke-width: 1.2; }
.pp-needle__eye { fill: var(--pp-rose); }
html:not(.pp-story) .pp-needle, html:not(.pp-story) .pp-thread { display: none; }
.pp-labels { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: clamp(12px, 2vh, 18px) 14px; gap: clamp(12px, 2svh, 18px) 14px; margin: 0; padding: 0; list-style: none; }
.pp-labels li:nth-child(4n + 1) .pp-label { rotate: -1.4deg; }
.pp-labels li:nth-child(4n + 2) .pp-label { rotate: 0.8deg; translate: 0 4px; }
.pp-labels li:nth-child(4n + 3) .pp-label { rotate: -0.4deg; }
.pp-labels li:nth-child(4n) .pp-label { rotate: 1.6deg; translate: 0 -3px; }
@media (min-width: 900px) { .pp-labels .pp-label { min-height: 52px; padding: 12px 24px; font-size: 0.9375rem; } }
.pp-scissors { position: absolute; right: 0; bottom: 6px; width: 84px; }
.pp-scissors svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 4px 3px rgb(var(--pp-shadow) / 0.25)); }
.pp-scissors__blade { transform-box: view-box; transform-origin: 44px 30px; }
.pp-scissors__ring { fill: none; stroke: var(--pp-fuchsia); stroke-width: 5; }
.pp-scissors__arm { stroke: var(--pp-fuchsia); stroke-width: 5; stroke-linecap: round; }

/* ---------------------------------------------------------------- Καρυπίδη 7: the parcel's journey */

.pp-d-street { background: var(--pp-mint); padding-inline: 0; padding-bottom: clamp(32px, min(6vw, 8vh), 72px); padding-bottom: clamp(32px, min(6vw, 8svh), 72px); }
.pp-d-street .pp-district__head { padding: 0 var(--pad); }
.pp-d-street .pp-spread__text { color: var(--pp-ink-soft); }
.pp-street__viewport { position: relative; overflow: hidden; }
.pp-street__sky { position: absolute; inset: 0 0 64px; pointer-events: none; }
.pp-street__sun { top: 4%; left: 6%; width: clamp(70px, 9vw, 124px); }
.pp-street__clouds { position: absolute; left: 0; top: 0; width: 200%; height: 100%; }
.pp-street__cloud { position: absolute; filter: drop-shadow(0 6px 8px rgb(var(--pp-shadow) / 0.10)); }
.pp-street__cloud .pp-cloud__shade { fill: #C4E3CF; }
.pp-street__birds { top: 18%; --pp-fly-time: 36s; }
.pp-street__far { position: absolute; left: 0; bottom: 64px; width: 100%; height: clamp(120px, 16vh, 190px); opacity: 0.6; }
.pp-street__far svg { display: block; width: max(300%, 1800px); height: 100%; }
.pp-skyline { fill: #B2DABF; }
.pp-street__strip { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 24px 28px; padding: 0 var(--pad) 64px; }
.pp-street__shop { width: min(402px, 94vw); }
.pp-street__home { width: min(240px, 66vw); }
.pp-street__shop svg, .pp-street__home svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 10px rgb(var(--pp-shadow) / 0.18)); }
.pp-awning { transform-box: fill-box; transform-origin: 50% 0; transition: transform 0.9s var(--pp-ease-out); }
.pp-shop--closed .pp-awning { transform: scaleY(0.3); }
.pp-d-street .pp-lamp { fill: #FFFFFF; }
.pp-d-street.pp-shop--open .pp-lamp, .pp-d-street.pp-shop--evening .pp-lamp { fill: var(--pp-light); }
.pp-doormat { fill: #A3164F; }
.pp-heart-pop { fill: var(--pp-fuchsia); }
.pp-home-door { transform-box: fill-box; transform-origin: 0 50%; }
html.pp-story .pp-home-heart, html.pp-story .pp-doorstep-parcel { opacity: 0; }
.pp-milestone { display: grid; justify-items: center; width: min(280px, 80vw); }
.pp-milestone__board { display: grid; gap: 4px; padding: 16px 18px 18px; background: #FFFFFF; border-radius: 14px; box-shadow: var(--pp-lift-2); text-align: center; outline: 1.5px dashed #F6B8CF; outline-offset: -7px; transform-origin: 50% 100%; }
.pp-milestone__big { margin: 0; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--pp-fuchsia); }
.pp-milestone__text { margin: 0; font-size: 0.9375rem; color: var(--pp-ink); }
.pp-milestone__text strong, .pp-promises span strong { font-weight: 800; }
.pp-milestone__post { width: 8px; height: 46px; background: #7A5363; border-radius: 0 0 4px 4px; box-shadow: 3px 0 0 #5B3746; }
.pp-street__road { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 64px; background: #FFFFFF; border-top: 10px solid #F1E6EA; }
.pp-street__road::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='3'%3E%3Crect width='18' height='3' fill='%23F6B8CF'/%3E%3C/svg%3E") repeat-x; background-position-x: var(--road-x, 0); }
.pp-rider--street { display: none; left: 22%; bottom: 14px; width: clamp(92px, 10vw, 132px); }
@media (max-width: 520px) { .pp-rider--street { left: 18%; } }
/* Side-scroller (story.js): one long street on a single line, pinned while it rolls past the courier. */
.pp-d-street.is-scroller { padding-top: 0; }
.pp-d-street.is-scroller .pp-street__pin { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - var(--pp-head, 0px)); height: calc(100svh - var(--pp-head, 0px)); padding-top: clamp(20px, 4vh, 48px); }
.pp-d-street.is-scroller .pp-district__head { margin-bottom: 0; }
.pp-d-street.is-scroller .pp-street__viewport { height: 100%; }
.pp-d-street.is-scroller .pp-street__strip { position: absolute; left: 0; bottom: 64px; width: max-content; flex-wrap: nowrap; justify-content: flex-start; gap: clamp(72px, 11vw, 190px); padding: 0; will-change: transform; }
.pp-d-street.is-scroller .pp-street__shop { width: auto; }
/* Sized so the whole shop and its hanging sign are in view from the first frame on a phone. */
.pp-d-street.is-scroller .pp-street__shop svg { width: auto; height: min(54vh, 470px, 74vw); }
.pp-d-street.is-scroller .pp-street__home { width: auto; }
.pp-d-street.is-scroller .pp-street__home svg { width: auto; height: min(44vh, 390px, 68vw); }
.pp-d-street.is-scroller .pp-milestone { width: clamp(260px, 30vw, 360px); }
.pp-d-street.is-scroller .pp-milestone__post { height: clamp(46px, 9vh, 96px); }
@media (min-width: 960px) { .pp-d-street.is-scroller .pp-milestone__board { padding: 20px 22px 22px; } .pp-d-street.is-scroller .pp-milestone__big { font-size: 1.875rem; } .pp-d-street.is-scroller .pp-milestone__text { font-size: 1rem; } }
.pp-d-street.is-scroller .pp-rider--street { display: block; }

/* After the ride, the four promises stand together in one row (only when the street was a side-scroller). */
.pp-promises { display: none; margin: 0; padding: clamp(28px, 4vw, 48px) var(--pad) 0; list-style: none; }
.pp-d-street.is-scroller .pp-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 960px) { .pp-d-street.is-scroller .pp-promises { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.pp-promises li { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; background: #FFFFFF; border-radius: 12px; outline: 1.5px dashed #F6B8CF; outline-offset: -6px; box-shadow: var(--pp-lift-1); }
.pp-promises li > strong { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; color: var(--pp-fuchsia); }
.pp-promises span { font-size: 0.875rem; color: var(--pp-ink); }
.pp-visit { display: grid; gap: 24px; padding: clamp(32px, 5vw, 56px) var(--pad) 0; }
@media (min-width: 960px) { .pp-visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.pp-visit__copy { display: grid; gap: 14px; }
.pp-visit__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.pp-visit__grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .pp-visit__grid { grid-template-columns: auto 1fr; gap: 36px; align-items: start; } }
.pp-d-street .pp-hours { margin: 0; }
.pp-d-street .pp-hours tr.is-today th, .pp-d-street .pp-hours tr.is-today td { color: var(--pp-fuchsia-deep); }
.pp-visit__address { display: grid; gap: 12px; justify-items: start; font-style: normal; font-weight: 700; }

/* ---------------------------------------------------------------- Το Ταχυδρομείο: questions as letters */

.pp-d-post { display: grid; gap: 24px; background: var(--pp-rose-soft); }
.pp-post__art { position: relative; display: grid; place-items: center; }
/* On wide screens the post box travels down beside the pile of letters. */
@media (min-width: 960px) {
	.pp-d-post { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
	.pp-post__art { position: sticky; top: calc(var(--pp-head, 76px) + 48px); align-self: start; padding-top: 24px; }
}
.pp-postbox { width: min(200px, 34vw); height: auto; overflow: visible; filter: drop-shadow(0 12px 10px rgb(var(--pp-shadow) / 0.2)); }
.pp-postbox__plate { fill: #FFFFFF; }
.pp-postbox__mark { fill: none; stroke: #E08DAE; stroke-width: 3; stroke-linecap: round; }
.pp-post__flyers i { position: absolute; left: 50%; top: 40%; width: 34px; height: 22px; background: #FFFFFF; border-radius: 3px; box-shadow: var(--pp-lift-1); opacity: 0; }
.pp-post__flyers i::after { content: ""; position: absolute; inset: 0 0 auto; height: 11px; background: #F7EEF2; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pp-post__copy { display: grid; gap: 12px; }
.pp-letters { display: grid; gap: 12px; margin-top: 8px; interpolate-size: allow-keywords; }
.pp-letter { position: relative; background: #FFFFFF; border-radius: 10px; box-shadow: var(--pp-lift-1); }
.pp-letter summary { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 74px 14px 18px; font-weight: 800; cursor: pointer; list-style: none; overflow: hidden; border-radius: 10px; }
.pp-letter summary::-webkit-details-marker { display: none; }
.pp-letter summary:focus-visible { outline-offset: -3px; }
.pp-letter__q { position: relative; z-index: 1; }
.pp-letter__flap { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: #F7EEF2; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform 0.5s var(--pp-ease-out); pointer-events: none; }
.pp-letter[open] .pp-letter__flap { transform: perspective(300px) rotateX(180deg); }
/* Each question's own post box, seen from the side. Open the question and its door drops, a letter slides out of
   it and the flag goes up; hovering lifts the flag a little, inviting the click. */
.pp-letter__box { position: absolute; right: 12px; top: 50%; z-index: 1; width: 48px; margin-top: -24px; pointer-events: none; }
.pp-letter__box svg { display: block; width: 100%; overflow: visible; }
.pp-mbox__lines { fill: none; stroke: #F6B8CF; stroke-width: 1.2; stroke-linecap: round; }
.pp-mbox__seal { fill: none; stroke: #E08DAE; stroke-width: 1; }
.pp-mbox__door { transform-box: view-box; transform-origin: 9.3px 29px; transition: transform 0.45s var(--pp-ease-spring); }
.pp-mbox__letter { transform-box: view-box; transition: transform 0.5s var(--pp-ease-out) 0.15s; }
.pp-mbox__flag { transform-box: view-box; transform-origin: 37.2px 20px; transform: rotate(90deg); transition: transform 0.5s var(--pp-ease-spring) 0.1s; }
.pp-letter summary:hover .pp-mbox__flag { transform: rotate(68deg); }
.pp-letter[open] .pp-mbox__door { transform: rotate(-90deg); }
.pp-letter[open] .pp-mbox__letter { transform: translate(-15px, -6px) rotate(-14deg); }
.pp-letter[open] .pp-mbox__flag { transform: none; }
.pp-letter__paper { margin: 0 12px 14px; padding: 14px 16px; background: #FFFBF0; border-radius: 6px; box-shadow: inset 0 0 0 1px #F1E6EA; color: var(--pp-ink-soft); }
.pp-letter__paper p { margin: 0; }
.pp-letter[open] .pp-letter__paper { animation: pp-letter-out 0.5s var(--pp-ease-out) both; }
@keyframes pp-letter-out { from { transform: translateY(-14px); opacity: 0; } }
.pp-letter::details-content { height: 0; overflow: clip; transition: height 0.45s var(--pp-ease-out), content-visibility 0.45s allow-discrete; }
.pp-letter[open]::details-content { height: auto; }

/* ---------------------------------------------------------------- Τα εισιτήρια: the ticket booth */

/* A fairground booth: a bulb-lit marquee on top, the striped canopy, two posts, the white window with its ticket
   slot, and a counter with its top lit and its side in shade. */
.pp-d-tickets { background: var(--pp-plum); padding-top: clamp(32px, min(5vw, 7vh), 72px); padding-top: clamp(32px, min(5vw, 7svh), 72px); }
.pp-booth2 { position: relative; max-width: 900px; margin: 0 auto; }
/* The marquee: the board (with its shadow) and over it the chase's three gold layers, which rise with it. The shadow
   stays on the board: cast over the moving layers too, it would have the processor redraw them on every frame. */
.pp-booth2__marquee { position: relative; z-index: 3; display: block; width: min(372px, 80%); margin: 0 auto -12px; transform-origin: 50% 100%; }
.pp-booth2__board { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 8px rgb(0 0 0 / 0.3)); }
.pp-booth2__lit { position: absolute; inset: 0; pointer-events: none; }
.pp-booth2__lit .pp-hbulbs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pp-marquee__text { font: 800 32px var(--pp-font); letter-spacing: 0.12em; fill: var(--pp-light); }
/* Both booths' bulbs rest cream; their chase runs on three gold layers taking turns over them (hero.php, coupon.php). */
.pp-bulb--marquee { fill: #FFF6DC; }
.pp-hbulbs { fill: #FFD66B; animation: pp-lit 1.2s steps(1) infinite; }
@keyframes pp-lit { 0%, 66% { opacity: 1; } 33% { opacity: 0; } }
.pp-booth2__canopy { position: relative; z-index: 2; display: block; width: calc(100% + 24px); height: clamp(48px, 6vw, 72px); margin: 0 -12px -4px; filter: drop-shadow(0 6px 5px rgb(0 0 0 / 0.3)); transform-origin: 50% 0; }
.pp-booth2__body { display: grid; grid-template-columns: clamp(10px, 1.6vw, 16px) minmax(0, 1fr) clamp(10px, 1.6vw, 16px); }
.pp-booth2__post { background: #7A5363; box-shadow: inset -4px 0 0 #5B3746; }
.pp-booth2__face { position: relative; padding: clamp(22px, 3.5vw, 36px) clamp(10px, 2.4vw, 30px) 0; background: #FFFFFF; }
.pp-booth2__slot { position: relative; z-index: 2; height: 10px; margin: 0 6% -6px; background: #3B1F2B; border-radius: 6px; box-shadow: inset 0 3px 4px rgb(0 0 0 / 0.5); }
.pp-booth2__mouth { position: relative; overflow: hidden; padding: 6px 7% 26px; }
.pp-booth2__counter { position: relative; display: block; width: calc(100% + 24px); height: clamp(44px, 5vw, 60px); margin: -2px -12px 0; filter: drop-shadow(0 12px 10px rgb(0 0 0 / 0.35)); }
.pp-coupon { position: relative; display: grid; background: var(--pp-pink); border-radius: 14px; box-shadow: var(--pp-lift-2); }
@media (min-width: 720px) { .pp-coupon { grid-template-columns: 1fr auto; } }
.pp-coupon__body { display: grid; gap: 8px; padding: 24px 22px 20px; }
.pp-coupon__title { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2.125rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.pp-coupon__text { margin: 0; color: var(--pp-ink-soft); }
.pp-coupon__stub { position: relative; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 22px; background: var(--pp-rose); border-radius: 0 0 14px 14px; transform-origin: 0 50%; }
.pp-coupon__stub::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2'%3E%3Crect width='6' height='2' fill='%23FCEEF3'/%3E%3C/svg%3E") repeat-x; }
/* Cut like a real ticket: half-round notches where it tears and a punched outer edge. Each is only the half inside the
   ticket, so nothing white sits on its shadow. On a phone the tear runs across, with a notch on each side. */
.pp-coupon__notch { position: absolute; z-index: 1; left: 0; top: -10px; width: 10px; height: 20px; border-radius: 0 10px 10px 0; background: #FFFFFF; }
.pp-coupon__notch--b { left: auto; right: 0; border-radius: 10px 0 0 10px; }
.pp-coupon__stub::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5'%3E%3Ccircle cx='7' cy='5' r='3.4' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-x; }
@media (min-width: 720px) {
	.pp-coupon__stub { border-radius: 0 14px 14px 0; }
	.pp-coupon__stub::before { left: -1px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='12'%3E%3Crect width='2' height='6' fill='%23FCEEF3'/%3E%3C/svg%3E") repeat-y; }
	/* The tear runs down: a notch hangs from the top edge and one rises from the bottom. */
	.pp-coupon__notch { left: -10px; top: 0; width: 20px; height: 10px; border-radius: 0 0 10px 10px; }
	.pp-coupon__notch--b { right: auto; left: -10px; top: auto; bottom: 0; border-radius: 10px 10px 0 0; }
	.pp-coupon__stub::after { left: auto; right: 0; top: 14px; bottom: 14px; width: 5px; height: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='14'%3E%3Ccircle cx='5' cy='7' r='3.4' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-y; }
}
.pp-coupon__code { padding: 8px 16px; background: #FFFFFF; color: var(--pp-plum); border-radius: 10px; outline: 2px dashed var(--pp-plum); outline-offset: -6px; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.14em; }
.pp-coupon.is-torn .pp-coupon__stub { animation: pp-tear 0.8s var(--pp-ease-out); }
/* On a short screen (a small phone with its browser bars) the marquee, the paper round the ticket and the counter
   shrink, so the booth still shows whole: marquee, ticket and counter. */
@media (max-height: 640px) and (max-width: 719px) {
	.pp-booth2__marquee { width: min(372px, 62%); }
	.pp-booth2__face { padding-top: 14px; }
	.pp-booth2__mouth { padding-bottom: 16px; }
	.pp-coupon__body { gap: 6px; padding: 16px 16px 14px; }
	.pp-coupon__title { font-size: 1.3rem; }
	.pp-coupon__stub { gap: 8px; padding: 14px 16px 16px; }
	.pp-coupon__code { font-size: 1.2rem; }
}
@keyframes pp-tear { 35% { transform: rotate(5deg) translateY(4px); } 70% { transform: rotate(-1.5deg); } }

/* ---------------------------------------------------------------- Καληνύχτα: night falls */

.pp-night { position: relative; overflow: hidden; padding: clamp(120px, min(16vw, 24vh), 220px) var(--pp-gutter) 0; padding: clamp(120px, min(16vw, 24svh), 220px) var(--pp-gutter) 0; background: #301824; border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; text-align: center; }
.pp-night__sky { position: absolute; inset: 0; }
.pp-nstar { position: absolute; width: 12px; fill: var(--pp-light); animation: pp-twinkle 3.6s ease-in-out infinite; }
.pp-nstar:nth-child(3n) { width: 8px; } .pp-nstar:nth-child(4n) { width: 16px; }
@media (max-width: 719px) { .pp-nstar--band { display: none; } }
.pp-night__moon { position: absolute; left: 9%; top: 16%; width: clamp(56px, 8vw, 96px); }
.pp-night__bite { fill: #301824; }
/* The row of houses: the town's own kit in night card, moonlit roofs, some rooms already dark. Their fronts are
   the footer's colour, so the street runs on into it. */
/* From about 2,900px wide the row grows with the screen (7.2vw), so the slice never cuts a roof (season.css's lights follow). */
.pp-night__town { position: relative; display: block; width: calc(100% + 2 * var(--pp-gutter)); height: max(clamp(120px, 15vw, 210px), 7.2vw); margin: clamp(48px, 7vw, 96px) calc(-1 * var(--pp-gutter)) 0; }
.pp-t-night { fill: #3B1F2B; } .pp-t-night-shade { fill: #2A1520; } .pp-t-night-deep { fill: #22101A; }
.pp-r-night { fill: #5B3746; } .pp-r-night-shade { fill: #47293A; } .pp-r-night-edge { fill: #3B1F2B; }
.pp-night .pp-frame, .pp-night .pp-sill { fill: #4A2937; }
.pp-night .pp-lamp { fill: #FFD66B; transition: none; }
.pp-night .pp-lamp--off { fill: #241018; }
.pp-night .pp-mullion { stroke: #3B1F2B; }
.pp-night .pp-door { fill: #241018; }
.pp-night__ground { fill: #3B1F2B; }
.pp-night__copy { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; }
.pp-night__title { margin: 0; color: #FFFFFF; font-size: var(--pp-h2); line-height: 1.1; font-weight: 800; letter-spacing: -0.028em; }
.pp-night__text { margin: 0; max-width: 46ch; color: #EBCFDB; }

/* ---------------------------------------------------------------- reduced motion: every scene complete and still */

@media (prefers-reduced-motion: reduce) {
	.pp-cloud, .pp-balloon svg, .pp-kite svg, .pp-birds, .pp-bird, .pp-sun__rays, .pp-hsun__rays, .pp-hw__rotor, .pp-hw__cabin, .pp-hw__glow, .pp-hflag, .pp-hbulbs, .pp-tree__crown, .pp-flag, .pp-smoke i, .pp-star, .pp-nstar, .pp-bulb, .pp-lampada__flame, .pp-dove__wing, .pp-fair__bunch { animation: none !important; }
	.pp-smoke { display: none; }
	.pp-hbulbs { display: none; } /* The marquee rests cream, as its bulbs do. */
	.pp-letter::details-content { transition: none; }
}
