/* Slavic Affirmations, "Panel Block Dusk". Round 7: the page is one yard. Loaded after dusk.css, which is unchanged
   (the app cuts pictures from it). Everything here applies under html.yd (the script runs); without the script the
   words below read as a plain page. Only transform and opacity are animated. */

/* ---------- without the script: a plain page of the same words */
html:not(.yd) .stage { position: relative; padding: 28px var(--pad) 8px; }
html:not(.yd) .hero-ui { position: static; }
html:not(.yd) .stop { position: relative; padding: 26px var(--pad); max-width: 1180px; margin: 0 auto; }
html:not(.yd) .stop .name { font-size: 26px; text-transform: uppercase; color: var(--cream); }
/* round 8: the Coming-soon card keeps its morning colours without the script (dark on dark before) */
html:not(.yd) .stop.soon { background: linear-gradient(#f3bf7c, #e2a25e 70%); color: #2b1c10; text-align: center; }
html:not(.yd) .stop.soon .badges { margin: 16px auto 0; }
html:not(.yd) .soon-row { display: flex; flex-wrap: wrap; align-items: center; }
.faces, .step { display: none; }

/* ---------- the stage: one screen, no scroll, no bounce, no pull-to-refresh */
.yd, .yd body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.yd body { position: fixed; inset: 0; width: 100%; }
.yd main { position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; --faces-h: calc(74px + env(safe-area-inset-bottom)); }
.yd .stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.yd .world { position: absolute; inset: 0; overflow: hidden; transition: opacity .14s linear; }
.yd.cut .world { opacity: 0; }
.yd .ly > * { position: absolute; }
/* round 8: the "will move" hint only while the camera moves. With it kept at rest, Chrome may keep the raster scale it
   chose during a flight, and the resting picture came out a little soft (check 2: the Drunkard at 390 x 844) */
.yd .ly, .yd .ground, .yd .groom-in { will-change: auto; }
.yd.flying .ly, .yd.flying .ground, .yd.flying .groom-in { will-change: transform; }
.yd .ly-far, .yd .ly-block, .yd .ly-front { pointer-events: none; }
/* round 8: the lantern only glows (no press); Grandma's room behind her glass: the glass clips, the room moves */
.yd .ly .lantern { pointer-events: none; }
.yd .groom-wrap { overflow: hidden; background: #3a2a2c; contain: paint; }
.yd .groom-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* the ground in front of the block: one band, moved up and down only (its stripes are the pavement along the wall) */
.ground {
  position: absolute; left: 0; right: 0; top: 0; transform-origin: 0 0; will-change: transform; pointer-events: none;
  /* 4200 world units deep since round 8's polish: the stops of the first 1400 are round 7's divided by 3 */
  background: linear-gradient(#3a3352 0, #3a3352 .533%, #433a5c .533%, #433a5c 1.867%, #34304e 1.867%, #29243f 6%, #1f1b34 13.333%, #1a1730 23.333%, #17142a 33.333%, #17142a 100%);
}
.yd .lampglow.yd-glow { left: 0; top: 0; }
.yd.cat-off .cat-tail, .yd.flying .cat-tail { animation-play-state: paused; }
/* while the camera moves, the small things that move on their own wait: each would make the browser redraw the
   layers on every frame of the flight */
.yd.flying .grain { animation-play-state: paused; }

/* ---------- the spots: real buttons over the world. No name tags (round 8): the faces row is the cast list */
.yd .spots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.spot { position: absolute; display: block; pointer-events: auto; border-radius: 6px; transition: box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.spot.off, .yd.flying .spot, .yd:not(.opened) .spot { visibility: hidden; }
@media (hover: hover) { .yd:not(.at-stop) .spot:hover { box-shadow: 0 0 0 2px rgba(240, 164, 58, .55), 0 0 26px rgba(240, 164, 58, .25); } }
/* the loudspeaker on its pole is the music switch */
.spot-speaker { border-radius: 40% 40% 12px 12px; }
.spot-speaker.busy { animation: busy .7s ease-in-out infinite alternate; }
/* the highlight: a face held, hovered or focused lights its spot, the rest of the yard a shade darker */
.yd .hl { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.yd .hl.on { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }
/* (follow-up 2) hidden, not only clear, while it is off: a clear full-screen box over the moving things would still be
   a layer of the screen's size on a phone */
.yd.flying .hl { opacity: 0; transition: none; }

/* ---------- the title over the sky; it gets out of the way in a close shot */
.yd .hero-ui { pointer-events: none; transition: opacity .4s, transform .4s; }
.yd.at-stop .hero-ui { opacity: 0; transform: translateY(-14px); }
.yd .stamp { pointer-events: none; }
/* round 8: after the opening the title block goes into the bar (the tour); it stays there for the page load */
.yd .hero-ui { transform-origin: 0 0; }
.yd.compact-done .hero-ui { visibility: hidden; }
.yd[data-mode="landscape"] .hero-ui { top: max(16px, 4.2svh); left: max(18px, 3vw); right: auto; width: auto; max-width: 46vw; }
.yd[data-mode="landscape"] .title { font-size: clamp(30px, min(5.4vw, 9.6vh), 104px); }
.yd[data-mode="landscape"] .tagline { font-size: clamp(13px, min(1.55vw, 2.7vh), 26px); margin-top: 10px; max-width: 17em; }
.yd[data-mode="landscape"] .stamp { margin-top: 12px; font-size: clamp(10px, min(1vw, 1.8vh), 15px); }

/* ---------- the bar: "Whole yard" in a close shot, the music while it plays, About */
.yd .bar { opacity: 1; background: none; pointer-events: none; align-items: flex-start; justify-content: flex-start; padding: max(6px, env(safe-area-inset-top)) 8px 0; gap: 6px; }
.yd .bar > * { pointer-events: auto; }
/* the name, small, over a small "Coming soon" that opens the last stop: shown once the title has gone into the bar */
.yd .bar-brand { display: none; flex-direction: column; align-items: flex-start; gap: 3px; margin: 4px 0 0 6px; }
.yd.compact .bar-brand, .yd.at-stop .bar-brand { display: flex; }
.yd.js-motion.compact:not(.compact-done) .bar-brand { animation: brand-in .5s .25s both; }
@keyframes brand-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.yd .bar-name { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; color: var(--amber); line-height: 1.1; white-space: nowrap; text-shadow: 0 1px 8px rgba(21, 19, 31, .8); }
.yd .bar-soon { position: relative; display: inline-block; padding: 3px 7px 2px; border: 1.5px solid var(--amber); border-radius: 2px; color: var(--amber); font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; background: rgba(29, 26, 48, .55); transform: rotate(-2deg); }
.yd .bar-soon::after { content: ""; position: absolute; inset: -14px -10px -12px; }   /* a 44 px press area round the small chip */
.yd[data-at="soon"] .bar-soon { color: var(--ink); background: var(--amber); }
/* a phone at a stop: "Whole yard" takes the name's place */
.yd.at-stop[data-mode="portrait"] .bar-name { display: none; }
.yd.at-stop[data-mode="portrait"] .bar-brand { margin-top: 12px; }
@media (max-width: 379px) { .yd.at-stop[data-mode="portrait"] .bar-brand { display: none; } }
.out { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px; background: rgba(29, 26, 48, .82); color: var(--cream); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; box-shadow: 0 0 0 2px rgba(240, 164, 58, .6), 0 4px 14px rgba(10, 8, 20, .4); }
.out[hidden] { display: none; }
.out-ic { position: relative; width: 14px; height: 14px; }
.out-ic::before { content: ""; position: absolute; left: 4px; top: 3px; width: 8px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(45deg); }
.yd .bar-tune { margin: 0 0 0 auto; }
.yd .bar-music { margin: 0 0 0 auto; }
.yd .bar-tune:not([hidden]) + .bar-music { margin-left: 2px; }
.bar-about { margin-left: auto; min-height: 44px; padding: 0 12px; border-radius: 22px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pale); background: rgba(29, 26, 48, .5); }
.bar-music:not([hidden]) ~ .bar-about { margin-left: 4px; }
.yd[data-at="about"] .bar-about { color: var(--ink); background: var(--amber); }

/* ---------- the sheet: one stop's words, the caption and the buttons */
.yd .sheet { position: fixed; z-index: 20; display: none; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; color: var(--cream); }
.yd .sheet.on { display: block; }
.yd .stop { display: none; }
.yd .stop.cur { display: block; }
.yd .foot.cur { display: grid; }
.yd[data-mode="portrait"] .sheet {
  left: 0; right: 0; bottom: var(--faces-h); max-height: 60%; padding: 16px var(--pad) 16px;
  background: var(--dots), #3b3557; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(10, 8, 20, .45), inset 0 3px 0 rgba(255, 255, 255, .05);
}
.yd[data-mode="portrait"] .sheet[data-stop="how"], .yd[data-mode="portrait"] .sheet[data-stop="lines"] { max-height: 62%; }
.yd[data-mode="landscape"] .sheet {
  right: 14px; bottom: calc(var(--faces-h) + 10px); width: min(440px, 40vw); max-height: calc(100% - var(--faces-h) - 74px); padding: 20px 22px;
  background: var(--dots), #3b3557; border-radius: 10px; box-shadow: 0 12px 40px rgba(10, 8, 20, .5), inset 0 3px 0 rgba(255, 255, 255, .05);
}
.yd.js-motion .sheet.on { animation: sheet-in .34s cubic-bezier(.2, .8, .2, 1); }
.yd.js-motion[data-mode="landscape"] .sheet.on { animation-name: panel-in; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* a pin, as on the notice board */
.yd .sheet::before { content: ""; position: sticky; float: right; top: -6px; margin: -8px -4px 0 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }

/* a character: the family's plate (name, trait, caption, "Hear ...") */
.yd .stop.char.cur { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; }
.stop .name { grid-column: 1; font-size: 26px; font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--cream); text-shadow: none; letter-spacing: 0; }
.stop .trait { grid-column: 1; margin-top: 4px; font-size: 15px; font-weight: 500; color: #e6dbe6; }
/* room for the caption is kept from the start, so the sheet does not grow over the face when a line begins:
   three lines for the family, five smaller ones for the Babki and the Drunkard (their lines are twice as long) */
.stop.char .cap { grid-column: 1 / -1; min-height: 3.66em; margin-top: 8px; color: var(--amber); font-size: clamp(16px, 4.6vw, 21px); text-shadow: 0 1px 0 rgba(21, 19, 31, .6); }
.stop.adult .cap { min-height: 108px; font-size: clamp(14.5px, 3.9vw, 18px); }
.stop.asking .cap { display: none; }
.stop.adult .ask { min-height: 108px; margin-top: 8px; }
.stop.char .more { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); width: 84px; text-align: center; }
.stop .more .say-ic { width: 50px; height: 50px; border-color: #1d1a30; background: var(--amber); }
.stop .more .say-ic::before { border-left-color: #1d1a30; }
.stop .more.playing .say-ic::before { background: #1d1a30; }
.stop.asking .more { visibility: hidden; }
/* the one question before the Babki and the Drunkard talk */
.ask { grid-column: 1 / -1; margin-top: 10px; padding: 12px 12px 12px 14px; border-radius: 4px; background: rgba(21, 19, 31, .6); box-shadow: 0 0 0 2px var(--amber); }
.ask[hidden] { display: none; }
.ask-q { font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--cream); }
.ask-b { display: flex; gap: 10px; margin-top: 10px; }
.ask-b button { min-height: 46px; padding: 11px 18px 10px; border-radius: 4px; font-weight: 900; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.ask-yes { background: var(--amber); color: var(--ink); box-shadow: 0 4px 0 #a9631f; }
.ask-no { color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }

/* the cards */
.yd .stop.card h2 { font-size: clamp(26px, 7.4vw, 40px); }
.yd .stop .floors { margin-top: 18px; grid-template-columns: 1fr; gap: 14px; }
.yd .stop .grid { margin-top: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.yd .stop .lw { min-height: 168px; }
/* the end of "How it works": "Hard on the surface. Warm underneath." and the slab that lifts (round 8) */
.yd .how .warm { margin-top: 26px; padding-top: 22px; border-top: 2px dashed rgba(246, 226, 189, .22); }
.warm-h { font-weight: 900; text-transform: uppercase; color: var(--amber); line-height: .98; font-size: clamp(24px, 6.6vw, 34px); text-wrap: balance; }
.yd .how .warm .lead { font-size: clamp(16px, 4.3vw, 19px); }
.yd .how .warm .shutter { margin-top: 18px; }
/* the six lines of the old "A few things you will hear": words for screen readers and search engines, shown on the
   page without JavaScript; in the yard they are said in the characters' cycles and the tour's bubbles */
.yd .said { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html:not(.yd) .said { padding: 26px var(--pad); max-width: 1180px; margin: 0 auto; }
html:not(.yd) .said-list { margin-top: 12px; display: grid; gap: 8px; list-style: none; padding: 0; }
.about-go { min-height: 44px; margin-top: 10px; padding: 0 16px; border-radius: 22px; color: var(--ink); background: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.foot .tm { margin-top: 12px; font-size: 11px; line-height: 1.35; opacity: .7; }
.yd .sheet[data-stop="soon"] { background: linear-gradient(#f3bf7c, #e2a25e 70%); color: #2b1c10; text-align: center; }
.yd .sheet[data-stop="soon"]::before { background: #2b1c10; }
.yd .stop.soon .stamp.big { font-size: clamp(28px, 8vw, 44px); }
.yd .stop.soon .lead { color: #2b1c10; font-weight: 600; margin: 16px auto 0; }
.yd .stop.soon .small { color: #3a2716; margin: 10px auto 0; opacity: 1; }
.yd .stop.soon .badges { display: flex; margin: 14px auto 0; }
.yd .sheet[data-stop="about"] { background: #2b1c10; }
.yd .foot { padding: 8px 4px 4px; }
.yd .foot .draft { margin-top: 8px; opacity: .8; }

/* ---------- the faces: thumb reach */
.yd .faces {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: var(--faces-h); display: flex; justify-content: center; align-items: flex-start; gap: clamp(2px, 1.6vw, 14px);
  padding: 6px 6px env(safe-area-inset-bottom); background: linear-gradient(rgba(21, 19, 31, 0), rgba(21, 19, 31, .8) 34%, rgba(21, 19, 31, .92)); touch-action: manipulation;
  transition: opacity .5s, transform .5s;
}
.yd:not(.opened) .faces { opacity: 0; transform: translateY(24px); }
.face { flex: 1 1 0; max-width: 76px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); text-align: center; }
.face .peep { width: 48px; height: 48px; transition: box-shadow .25s, transform .25s; }
.face-name { white-space: nowrap; }
.face[aria-current="true"] .peep { box-shadow: 0 0 0 3px var(--amber), 0 0 20px rgba(240, 164, 58, .6); transform: translateY(-2px); }
.face[aria-current="true"] .face-name { color: var(--amber); }
.yd .faces { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (max-width: 349px) { .face { font-size: 9px; letter-spacing: .04em; } .face .peep { width: 44px; height: 44px; } }

/* ---------- walking: the arrows at the sides */
.yd .step { display: block; position: fixed; z-index: 26; top: var(--step-y, 34%); width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(29, 26, 48, .72); box-shadow: 0 0 0 2px rgba(240, 164, 58, .6); }
.yd .step[hidden] { display: none; }
.step.prev { left: 8px; } .step.next { right: 8px; }
.step::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -6px 0 0 -3px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(45deg); }
.step.next::before { margin-left: -9px; transform: rotate(-135deg); }
.yd[data-mode="landscape"] .step.next { right: calc(min(440px, 40vw) + 26px); }

/* ---------- the morning at the last stop */
.yd .sky-dawn, .yd .sky-sun { transition: opacity 1.4s ease-in-out; }
.yd.at-soon .sky-dawn { opacity: .9; }
.yd.at-soon .sky-sun { opacity: .6; transform: translateY(10vh); }

/* ---------- short screens (a phone on its side) */
@media (max-height: 500px) {
  .yd main { --faces-h: calc(60px + env(safe-area-inset-bottom)); }
  .face .peep { width: 38px; height: 38px; }
  .face { font-size: 9px; gap: 2px; }
  .yd[data-mode="landscape"] .sheet { padding: 14px 16px; max-height: calc(100% - var(--faces-h) - 60px); }
  .stop .name { font-size: 22px; }
  .stop.char .cap { font-size: 15px; }
  .stop.adult .cap { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .yd .hero-ui, .yd .faces, .yd .hl, .yd .bubble, .yd .sky-dawn, .yd .sky-sun { transition: none; }
  .yd .sheet.on { animation: none; }
}

/* ---------- a short phone held upright: a smaller title, so the yard keeps its size */
@media (max-height: 720px) and (max-aspect-ratio: 1/1) {
  .yd .hero-ui { top: max(12px, env(safe-area-inset-top)); }
  .yd .title { font-size: clamp(30px, 10vw, 40px); }
  .yd .tagline { margin-top: 6px; font-size: 14px; max-width: 22em; }
  .yd .stamp { margin-top: 8px; font-size: 10px; padding: 4px 9px 3px; }
  html.yd[data-mode="portrait"] .hero-ui { top: max(8px, env(safe-area-inset-top)); }
  html.yd[data-mode="portrait"] .title { margin-bottom: 5px; }
  html.yd[data-mode="portrait"] .tagline { line-height: 1.38; }
}
/* a short phone held upright (320 x 568, 360 x 640): a smaller title, tighter tagline lines, a smaller stamp */
@media (max-height: 660px) and (max-aspect-ratio: 1/1) {
  html.yd[data-mode="portrait"] .hero-ui { font-size: 12px; }
  html.yd[data-mode="portrait"] .title { font-size: clamp(24px, 8.2vw, 30px); margin-bottom: 3px; }
  html.yd[data-mode="portrait"] .tagline { line-height: 1.3; }
  html.yd[data-mode="portrait"] .hero-ui .stamp { font-size: 9.5px; padding: 3px 7px 2px; letter-spacing: .16em; }
}

/* ---------- the store badges (round 8; round 9: no plate, small, decorative, in the row of "Coming soon"): the official
   artwork, unmodified, lying on the page's own background, with at least a quarter of the badge height clear round
   each one (the transparent padding of their box: nothing else may come into it, the stamp included). --bh is the
   height of the badge itself, 40 px everywhere (Apple's minimum on screen; Google's is 28 px): Apple's SVG is that
   tall; Google's PNG has its own clear space round the badge (41 of its 250 px each side, the badge is 168 px), so its
   image is 250/168 of --bh tall and its transparent margin lies over the padding. Apple's first, the same height. */
.badges { --bh: 40px; display: inline-flex; vertical-align: middle; width: max-content; align-items: center; margin: 0; padding: calc(var(--bh) * .26); }
.badges img, .badges a { display: block; flex: none; }
.badges img { width: auto; max-width: none; }
.badges .b-apple { height: var(--bh); }
.badges .b-google { height: calc(var(--bh) * 250 / 168); margin: calc(var(--bh) * -41 / 168) calc(var(--bh) * -41 / 168) calc(var(--bh) * -41 / 168) calc(var(--bh) * (.3 - 41 / 168)); }
.badges a { pointer-events: auto; }
.yd .hero-ui .badges { pointer-events: none; }
/* the badges never move on their own: when the title block fades away for a close shot they go at once */
.yd.at-stop .hero-ui .badges, .yd.compact .hero-ui .badges { visibility: hidden; }
/* the row: the stamp, then the badges centred on its middle line; on a narrow screen the badges go on the next line,
   at the row's left. On a screen held upright the row is no box of its own (display: contents): the stamp still flows
   on the tagline's last line and the badges follow it there if they fit */
.yd .soon-row { display: flex; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.yd .soon-row .stamp { margin-top: 0; }
.yd[data-mode="portrait"] .soon-row { display: contents; }
/* round 8 polish: a compact title block on a screen held upright, so that with the badges the yard is at least as big
   as in round 7. The block starts higher (the About button is at the right, the title at the left: they never meet);
   the "Coming soon" stamp flows on the tagline's last line instead of a row of its own; the plate sits close under
   it (its own padding is the badges' clear space). */
.yd[data-mode="portrait"] .hero-ui { top: max(12px, env(safe-area-inset-top)); line-height: 1.3; }   /* the strut of the tagline's lines */
.yd[data-mode="portrait"] .title { margin-bottom: 8px; }
.yd[data-mode="portrait"] .tagline { display: inline; margin: 0; line-height: 1.5; }
.yd[data-mode="portrait"] .hero-ui .stamp { display: inline-block; margin: 0 0 0 10px; vertical-align: middle; line-height: 1.2; }

/* ---------- the slow tour's bubble: beside the one in focus (below on a phone, right of them elsewhere) */
.yd .bubble { position: fixed; z-index: 22; max-width: 560px; margin: 0 auto; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.yd .bubble[hidden], html:not(.yd) .bubble { display: none; }
.yd .bubble.on { opacity: 1; transform: none; }
.bubble-b { position: relative; display: grid; gap: 6px; width: 100%; padding: 14px 16px 12px; text-align: left; color: var(--cream); background: var(--dots), #3b3557; border-radius: 14px; box-shadow: 0 0 0 2px rgba(240, 164, 58, .55), 0 12px 34px rgba(10, 8, 20, .5); }
.bubble-b::before { content: ""; position: absolute; width: 18px; height: 18px; background: #3b3557; box-shadow: -2px -2px 0 0 rgba(240, 164, 58, .55); }
.bubble[data-tail="up"] .bubble-b::before { left: var(--tail-x, 50%); top: -9px; margin-left: -9px; transform: rotate(45deg); }
.bubble[data-tail="left"] .bubble-b::before { left: -9px; top: var(--tail-y, 50%); margin-top: -9px; transform: rotate(-45deg); }
.bubble-k { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pale); }
.bubble-18 { padding: 2px 5px 1px; border: 1.5px solid var(--amber); border-radius: 2px; color: var(--amber); letter-spacing: .06em; }
.bubble-18[hidden] { display: none; }
.bubble-t { font-weight: 600; color: var(--amber); font-size: clamp(16px, 4.4vw, 20px); line-height: 1.24; text-wrap: balance; }
.bubble-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.bubble-h .say-ic { position: relative; width: 28px; height: 28px; border-width: 2px; border-color: #1d1a30; background: var(--amber); flex: none; }
.bubble-h .say-ic::before { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; border-left-color: #1d1a30; margin: -6px 0 0 -3px; }
.yd.js-motion .bubble.on .say-ic::after { inset: -6px; animation: ring 2.4s ease-out .6s infinite; }
/* during the tour the faces row marks the one in focus; the arrows and "Whole yard" wait */
.yd.touring .step, .yd.touring .out { display: none; }

/* ---------- the music button in the bar: the small horn loudspeaker (dusk.css's slash over it means "stop") */
.yd .bar-music svg.horn-ic { left: 6px; top: 6px; width: 32px; height: 32px; }
.yd .bar-music::after { left: 8px; right: 8px; top: 21px; }
/* the bubble on a short screen (a phone on its side) */
@media (max-height: 500px) {
  .bubble-b { gap: 4px; padding: 10px 12px 9px; }
  .bubble-t { font-size: 15px; line-height: 1.2; }
  .bubble-h .say-ic { width: 24px; height: 24px; }
}

/* ---------- round 9: life in the yard (yard-life.js). A stage in world units on the block plane (and one on the far
   plane), scaled by the plane's --k; every figure is a small box moved by transform, its poses side by side in one
   svg seen through a clip. Only transform and opacity move; nothing here takes a press */
.yd .lf, .yd .lf * { pointer-events: none; }
.lf-st { position: absolute; left: 0; top: 0; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.lf-a { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.lf-c { position: absolute; overflow: hidden; transform-origin: 0 0; }
/* (follow-up 2, the iPhone) the stage paints nothing itself: its figures and its few static pieces are small layers of
   their own (a sprite is drawn at about its size on the screen, yard-life.js), the car's lights are shown only while
   they move */
.lf-main > .lf-a, .lf-main > .lf-rug, .lf-main > .lf-smk, .lf-main > .lf-ember, .lf-main > .lf-puff, .lf-main > .lf-husk { will-change: transform; }
.lf-main > .lf-tv { will-change: opacity; }
.lf-s { position: absolute; left: 0; top: 0; }
.lf-s > svg { display: block; }
.lf-rug, .lf-smk { position: absolute; display: block; }
/* the pigeons peck now and then: they tip forward about their feet (not while they fly) */
.lf-peck { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: lf-peck 5.2s steps(1, end) infinite; }
.lf-peck.lf-fly { animation: none; }
@keyframes lf-peck { 0%, 30%, 40%, 62%, 100% { transform: none; } 22%, 34%, 55% { transform: rotate(24deg); } }
/* the ember of the cigarette, smoke and dust */
.lf-ember { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: .55; background: radial-gradient(circle, #ffe2a0 0, #ff9a3a 38%, rgba(255, 120, 40, 0) 72%); }
.lf-puff { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(236, 232, 244, .95) 0, rgba(236, 232, 244, .5) 35%, rgba(236, 232, 244, 0) 70%); }
.lf-dust { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: radial-gradient(circle, rgba(232, 214, 180, .95) 0, rgba(232, 214, 180, .55) 35%, rgba(232, 214, 180, 0) 70%); }
.lf-husk { position: absolute; width: 4px; height: 2.4px; border-radius: 1px; background: #ece2cc; opacity: 0; }
/* a car's lights going by: one soft band moved across the facade */
.lf-lights { position: absolute; width: 320px; height: 1110px; background: linear-gradient(90deg, rgba(255, 238, 196, 0), rgba(255, 238, 196, .16) 32%, rgba(255, 242, 210, .34) 50%, rgba(255, 238, 196, .16) 68%, rgba(255, 238, 196, 0)); }
/* the TV in one window: a cold blue light that changes with the picture */
.lf-tv { position: absolute; background: radial-gradient(ellipse at 50% 60%, #b6d2ff, #5f8cf0 70%); opacity: .5; animation: lf-tv 5.3s steps(1, end) infinite; }
@keyframes lf-tv { 0% { opacity: .5; } 11% { opacity: .68; } 19% { opacity: .42; } 31% { opacity: .62; } 37% { opacity: .78; } 46% { opacity: .46; } 58% { opacity: .58; } 71% { opacity: .38; } 79% { opacity: .7; } 90% { opacity: .52; } }
.lf-off .lf-peck, .lf-off .lf-tv, .lf-hold .lf-peck, .lf-hold .lf-tv { animation-play-state: paused; }
/* the first snow of November: sparse flakes of two sizes falling (and drifting a little to the right) at two speeds;
   over the world, under the spots and the title. Follow-up 2: drawn on one canvas the size of the screen
   (yard-life.js snow()), no longer two sheets of 1.6 x the screen kept on the compositor */
.lf-snow { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.lf-sncv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.yd:not(.opened) .lf-snow { opacity: 0; }
.lf-snow { transition: opacity 1.2s ease; }
@media (prefers-reduced-motion: reduce) { .lf-peck, .lf-tv { animation: none; } .lf-snow { display: none; } }
/* round 9 follow-up, the idle gags (yard-idle.js): a bubble (the Drunkard's nose, his hiccup), and a face laid over
   Coach's stopwatch with a hand that goes round (the drawn one stays under it) */
.li-bub { position: absolute; border-radius: 50%; opacity: 0; transform-origin: 30% 85%; background: radial-gradient(circle at 34% 32%, rgba(255, 255, 255, .95) 0 11%, rgba(214, 232, 242, .5) 24%, rgba(186, 212, 228, .3) 62%, rgba(150, 184, 206, .7) 100%); }
.li-watch { position: absolute; width: 31px; height: 31px; border-radius: 50%; background: #f1e8d7; opacity: 0; }
.li-hand { position: absolute; left: 14.5px; top: 1.5px; width: 2px; height: 14px; border-radius: 1px; background: #b9462e; transform-origin: 1px 14px; }
.li-hand::after { content: ""; position: absolute; left: -1.4px; top: 12.6px; width: 4.8px; height: 4.8px; border-radius: 50%; background: #2a2233; }
