/* Spooky Pals · play-section.css — the Play room (#play) at night, Trazo 19-oct-2026 (play-section.js).
 * The porch's night carries on here: paper melts into the night at the top and back into paper at the bottom.
 * Tokens: night #1d1729 (home.css --home-night), on-night #fffaf2, soft #d8cde6, lamp gold #ffd59a, moon #ffd66b,
 * action #e99b67 (the porch CTA). Radii by job: 8 chips · 14 tiles/strips · 22 panels and the Boo Pop stage · arch for the window.
 * Classic games (20-oct, Trazo): five lit dioramas with ambient motion that runs only on screen, never under reduced motion.
 * Only transform/opacity animate; hover only for fine pointers; reduced motion keeps everything still. */
#play.pls-on {
  --pls-night: #1d1729;
  --pls-on: #fffaf2;
  --pls-soft: #d8cde6;
  --pls-lamp: #ffd59a;
  --pls-moon: #ffd66b;
  --pls-go: #e99b67;
  --pls-ink: #2b2238;
  --pls-ease: cubic-bezier(.23, 1, .32, 1);
  position: relative;
  padding: 0 0 132px;
  color: var(--pls-on);
  background:
    linear-gradient(180deg, #f7f2e8 0, #ddd2c5 22px, #a99c9b 52px, #5f5666 86px, #2c2338 122px, #1d172900 150px) top / 100% 150px no-repeat,
    linear-gradient(0deg, #f7f2e8 0, #ddd2c5 22px, #a99c9b 52px, #5f5666 86px, #2c2338 122px, #1d172900 150px) bottom / 100% 150px no-repeat,
    radial-gradient(1.4px 1.4px at 22px 34px, #fffaf2d9 98%, #fffaf200) 0 0 / 170px 190px,
    radial-gradient(1px 1px at 120px 80px, #e9e1ffb3 98%, #e9e1ff00) 0 0 / 230px 210px,
    radial-gradient(1.2px 1.2px at 60px 150px, #ffe7a8a6 98%, #ffe7a800) 0 0 / 310px 260px,
    radial-gradient(80% 480px at 50% 330px, #352a5c 0, #352a5c00 72%),
    var(--pls-night);
}
#play.pls-on .pls-head { max-width: 1180px; margin: 0 auto; padding: 132px 16px 0; }
#play.pls-on .pls-title { margin: 0; font: 800 clamp(38px, 11vw, 60px)/.95 var(--display, 'Outfit', sans-serif); letter-spacing: -.035em; color: var(--pls-on); }

/* ---------- Tonight's game: one window lit up on the street ---------- */
.pls-tonight { --pls-tint: #e9e1f2; position: relative; max-width: 560px; margin: 0 auto; padding: 18px 16px 8px; }
.pls-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 12px/1.2 var(--body, 'DM Sans', sans-serif); letter-spacing: .18em; text-transform: uppercase; color: var(--pls-lamp); }
.pls-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.pls-window { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .16s var(--pls-ease); }
.pls-window-glass {
  position: relative; display: block; height: clamp(232px, 64vw, 300px); overflow: hidden;
  border: 6px solid #3a2d63; border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
  background: var(--pls-tint);
  box-shadow: 0 0 0 2px var(--pls-ink), 0 0 0 9px #3a2d6366, 0 0 46px -4px #ffd59a73;
}
.pls-window-glass::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #1d172966 0, #1d172900 30%), radial-gradient(90% 60% at 50% 100%, #1d172900 50%, #1d172959 100%); }
.pls-window-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0; transition: opacity .35s; }
.pls-window-pal { position: absolute; left: 50%; bottom: 3%; z-index: 1; width: 62%; height: 74%; object-fit: contain; object-position: 50% 100%; opacity: 0; transform: translateX(-50%); filter: drop-shadow(0 8px 8px #0a061073); transition: opacity .35s, transform .25s var(--pls-ease); }
.pls-window-scene.is-in, .pls-window-pal.is-in { opacity: 1; }
.pls-window-sill { display: block; height: 14px; margin: -5px -8px 0; border: 2px solid var(--pls-ink); border-radius: 5px; background: linear-gradient(180deg, #b07d50 0, #8a5a36 55%, #6b4329 100%); box-shadow: 0 10px 18px -8px #0a0610b3; position: relative; z-index: 1; }
.pls-window:active { transform: scale(.98); }
.pls-window:focus-visible { outline: none; }
.pls-window:focus-visible .pls-window-glass { box-shadow: 0 0 0 2px var(--pls-ink), 0 0 0 6px var(--pls-lamp), 0 0 46px -4px #ffd59a73; }
.pls-tonight-copy { padding: 22px 2px 0; }
.pls-tonight-title { margin: 0; font: 800 clamp(30px, 8.8vw, 42px)/1.02 var(--display, 'Outfit', sans-serif); letter-spacing: -.03em; color: var(--pls-on); }
.pls-tonight-motto { margin: 10px 0 0; max-width: 36ch; font: italic 400 16px/1.45 Georgia, 'Times New Roman', serif; color: var(--pls-soft); }
.pls-tonight-motto:empty { display: none; }
.pls-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; margin: 20px 0 0; padding: 0 24px;
  border: 2px solid var(--pls-ink); border-radius: 99px; background: var(--pls-go); color: var(--pls-ink);
  font: 800 18px/1.15 var(--display, 'Outfit', sans-serif); letter-spacing: -.01em; box-shadow: 0 4px 0 var(--pls-ink);
  cursor: pointer; touch-action: manipulation; transition: transform .12s var(--pls-ease), box-shadow .12s var(--pls-ease);
}
.pls-go .gi { width: 22px; height: 22px; flex: none; }
.pls-go:active { transform: translateY(3px) scale(.98); box-shadow: 0 1px 0 var(--pls-ink); }
.pls-go:focus-visible { outline: 3px solid var(--pls-lamp); outline-offset: 4px; }
.pls-ladder-lead { margin: 26px 0 0; font: 600 14px/1.35 var(--body, 'DM Sans', sans-serif); color: var(--pls-soft); }
/* Brillo 2.0: tonight's Ghostie glows in the dark in the window (its light jar is full); the room behind dims a little */
.pls-window.is-glowing .pls-window-scene.is-in { filter: brightness(.62) saturate(.8); }
.pls-window.is-glowing .pls-window-pal { filter: drop-shadow(0 0 2px #e6fff3) drop-shadow(0 0 10px #7dffc4c4) drop-shadow(0 0 26px #2fe0b380); }
.pls-window.is-glowing .pls-window-glass { box-shadow: 0 0 0 2px var(--pls-ink), 0 0 0 9px #3a2d6366, 0 0 46px -4px #8cffc973; }
/* Your lantern (lantern.js) closes the hero */
.pls-lantern { margin: 18px 0 0; }
@media (min-width: 900px) { .pls-lantern { grid-column: 2; } }

/* ---------- the reward ladder (also drawn inside the album) ---------- */
.pls-ladder, .ga-ladder-box, .ga-moons { --pls-on: #fffaf2; --pls-soft: #d8cde6; --pls-lamp: #ffd59a; --pls-moon: #ffd66b; --pls-ink: #2b2238; --pls-ease: cubic-bezier(.23, 1, .32, 1); }
.pls-ladder { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 10px 0 0; padding: 14px 6px 12px; list-style: none; border: 1px solid #e9e1ff2e; border-radius: 14px; background: #fffaf20d; }
/* the path from one prize to the next */
.pls-ladder::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 40px; height: 0; border-top: 2px dashed #c9b8ff59; }
.pls-step { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.pls-step-art { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #2a2142; box-shadow: 0 0 0 2px #e9e1ff2e; transition: opacity .3s, filter .3s; }
.pls-step-art svg { width: 46px; height: 46px; display: block; overflow: visible; }
.pls-step.is-later .pls-step-art svg { opacity: .42; filter: saturate(.35); }
.pls-step.is-done .pls-step-art { box-shadow: 0 0 0 2px var(--pls-lamp), 0 0 16px -2px #ffd59a8c; }
.pls-step.is-next .pls-step-art { box-shadow: 0 0 0 2px var(--pls-on); }
.pls-step.is-next .pls-step-art::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fffaf2; opacity: 0; }
.pls-step-text { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; min-width: 0; }
.pls-step-text b { font: 800 13.5px/1.12 var(--display, 'Outfit', sans-serif); letter-spacing: -.005em; color: var(--pls-on); overflow-wrap: anywhere; }
.pls-step-text small { font: 500 12px/1.25 var(--body, 'DM Sans', sans-serif); color: var(--pls-soft); }
.pls-step-text em { margin-top: 3px; padding: 1px 7px; border-radius: 8px; background: #ffd66b24; font: 700 12px/1.4 var(--body, 'DM Sans', sans-serif); font-style: normal; color: var(--pls-moon); }
@media (prefers-reduced-motion: no-preference) {
  .pls-step.is-next .pls-step-art::after { animation: pls-next 2.4s var(--pls-ease) infinite; }
}
@keyframes pls-next { 0% { opacity: .75; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.18); } }

/* ---------- classic games: five lit dioramas, each opens its game right below ----------
 * Each tile is a little stage (play-section.js DIORAMA): scene, light, Ghosties, foreground, shade, then the words.
 * Radii by job: 22 the wide Boo Pop stage · 14 the four smaller ones · 8 chips. Two shadows: a long soft one and a
 * short ink one. Press = 60 ms squash; release and hover ride a spring with a little overshoot (linear()). */
.pls-classics { --pls-spring: linear(0, .18, .42, .72, .95, 1.06, 1.04, 1.01, .99, 1); --pls-lift: 0 18px 30px -18px #07040dcc, 0 2px 0 #120d1c; max-width: 1180px; margin: 0 auto; padding: 36px 0 0; }
.pls-classics-head { padding: 0 16px; }
.pls-classics-title { margin: 0; font: 800 clamp(30px, 8.6vw, 40px)/1 var(--display, 'Outfit', sans-serif); letter-spacing: -.03em; color: var(--pls-on); }

/* the moon jar on its little shelf, lit from inside by the moons already won */
.pls-jar { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.pls-jar-glass { position: relative; flex: none; display: block; width: 76px; height: 76px; }
.pls-jar-glass::before { content: ''; position: absolute; left: 50%; top: 58%; width: 96px; height: 70px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #ffd66b3d, #ffd66b00); opacity: 0; transition: opacity .4s var(--pls-ease); }
.pls-jar.has-moons .pls-jar-glass::before { opacity: 1; }
.pls-jar-art { position: relative; z-index: 1; display: block; width: 76px; height: 76px; overflow: visible; filter: drop-shadow(0 5px 6px #07040d99); }
.pls-jar-shelf { position: absolute; left: 4px; right: -2px; bottom: 2px; height: 6px; border: 1.5px solid var(--pls-ink); border-radius: 3px; background: linear-gradient(180deg, #b07d50, #6b4329); box-shadow: 0 6px 10px -4px #07040dcc; }
.pls-jar-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pls-jar-text b { font: 800 18px/1.15 var(--display, 'Outfit', sans-serif); letter-spacing: -.01em; color: var(--pls-on); }
.pls-jar.has-moons .pls-jar-text b { color: var(--pls-moon); }
.pls-jar-text small { max-width: 30ch; font: 500 14px/1.4 var(--body, 'DM Sans', sans-serif); color: var(--pls-soft); }

.pls-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 22px 0 0; padding: 0 16px; list-style: none; }
.pls-tile-item { min-width: 0; }
.pls-tile {
  --pls-tint: #2e2450; --pls-rim: #e9e1ff33;
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
  border: 1.5px solid var(--pls-rim); border-radius: 14px; background: linear-gradient(180deg, var(--pls-tint), #1d1729 140%); color: var(--pls-on); text-align: left;
  box-shadow: var(--pls-lift), inset 0 1px 0 #ffffff14;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; isolation: isolate;
  transition: transform .44s var(--pls-spring), border-color .2s var(--pls-ease), box-shadow .3s var(--pls-ease);
}
.pls-tile-memory { --pls-tint: #3a2c57; }
.pls-tile-kevins { --pls-tint: #213a2d; --pls-rim: #c8e3b433; }
.pls-tile-sleep { --pls-tint: #2a2a52; }
.pls-tile-path { --pls-tint: #33283d; --pls-rim: #ffd98a33; }
/* the stage: fixed aspect so the drawing and the pictures stay registered */
.pls-dio { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1b1530; }
.pls-dio::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -16px 18px -14px #120d1ccc; }
.pls-dio-svg { display: block; width: 100%; height: 100%; }
/* only the groups CSS moves get a box-centred origin (the drawing's own transform attributes keep theirs) */
.pls-d-far, .pls-d-near, .pls-peek, .pls-bob, .pls-card, .pls-card-lift, .pls-flip-back, .pls-flip-face, .pls-twinkle, .pls-fly, .pls-flap, .pls-quilt, .pls-zz, .pls-flame, .pls-jm, .pls-jm-spark, .pls-fog, .pls-stones { transform-box: fill-box; transform-origin: center; }
.pls-d-img { opacity: 0; transition: opacity .45s var(--pls-ease); }
.pls-d-img.is-in { opacity: 1; }
.pls-d-far, .pls-d-near, .pls-peek, .pls-card-lift, .pls-stones { transition: transform .5s var(--pls-spring); }
.pls-d-light, .pls-pair-glow { transition: opacity .3s var(--pls-ease); }
.pls-pair-glow { opacity: .55; }
.pls-flip-face { transform: scaleX(0); }
/* a lamp coming on over the stage when the tile is hovered, focused or pressed */
.pls-dio::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 70% at 50% 0, #ffd59a33, #ffd59a00 70%); opacity: 0; transition: opacity .18s var(--pls-ease); }

.pls-tile-body { position: relative; display: flex; flex-direction: column; flex: 1; gap: 3px; padding: 11px 12px 12px; }
.pls-tile-name { font: 800 18px/1.1 var(--display, 'Outfit', sans-serif); letter-spacing: -.015em; color: var(--pls-on); }
.pls-tile-line { font: 500 13.5px/1.35 var(--body, 'DM Sans', sans-serif); color: var(--pls-soft); }
.pls-tile-best { margin-top: 2px; font: 700 12.5px/1.3 var(--body, 'DM Sans', sans-serif); color: var(--pls-lamp); }
.pls-tile-best[hidden] { display: none; }
.pls-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pls-tile-go { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px 0 13px; border: 1.5px solid var(--pls-ink); border-radius: 99px; background: var(--pls-go); color: var(--pls-ink); font: 800 14px/1 var(--display, 'Outfit', sans-serif); box-shadow: 0 2px 0 var(--pls-ink); transition: transform .44s var(--pls-spring), background-color .2s; }
.pls-tile-go .gi { width: 15px; height: 15px; }
.pls-tile.is-open .pls-tile-go { background: var(--pls-lamp); }
.pls-tile.is-open .pls-tile-go .gi { display: none; }
.pls-tile.is-loading { cursor: progress; }
.pls-tile.is-loading .pls-tile-go .gi { display: none; }
.pls-tile-moons { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 8px; background: #ffd66b1f; font: 800 13.5px/1 var(--body, 'DM Sans', sans-serif); color: var(--pls-moon); }
.pls-tile-moons:empty { display: none; }
.pls-tile-moons svg { width: 16px; height: 16px; display: block; }

/* states: press squashes at once, release springs back past rest and settles */
.pls-tile:active { transform: scale(.965); transition-duration: .06s; }
.pls-tile:active .pls-dio::before, .pls-tile:focus-visible .pls-dio::before { opacity: 1; }
.pls-tile:active .pls-tile-go { transform: translateY(1px); }
.pls-tile:focus-visible { outline: 3px solid var(--pls-lamp); outline-offset: 3px; border-color: #ffd59a99; }
.pls-tile.is-open { border-color: var(--pls-lamp); box-shadow: 0 0 0 1px var(--pls-lamp), 0 0 26px -6px #ffd59a99, var(--pls-lift); }
.pls-tile.is-open .pls-dio::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .pls-tile:hover { transform: translateY(-4px); border-color: #ffd59a73; box-shadow: 0 26px 36px -20px #07040de6, 0 0 30px -12px #ffd59a59, 0 2px 0 #120d1c; }
  .pls-tile:hover:active { transform: translateY(-1px) scale(.965); }
  .pls-tile:hover .pls-dio::before { opacity: 1; }
  .pls-tile:hover .pls-d-far { transform: scale(1.035); }
  .pls-tile:hover .pls-d-near { transform: translateY(-1.5px) scale(1.04); }
  .pls-tile:hover .pls-peek { transform: translateY(-5px); }
  .pls-tile:hover .pls-card-lift { transform: translate(-3px, -6px) rotate(-5deg); }
  .pls-tile:hover .pls-pair-glow { opacity: 1; }
  .pls-tile:hover .pls-tile-go { transform: translateY(-1px) scale(1.04); }
  .pls-window:hover .pls-window-pal { transform: translateX(-50%) translateY(-4px); }
}
/* keyboard focus gets the same lift as a hover */
.pls-tile:focus-visible .pls-peek { transform: translateY(-5px); }
.pls-tile:focus-visible .pls-d-far { transform: scale(1.035); }

/* not five equal boxes: Boo Pop, the busy one, is the wide stage on top; the quieter games pair up below it */
.pls-tile-item:first-child { grid-column: span 2; }
.pls-tile-boo { border-radius: 22px; }
.pls-tile-boo .pls-dio { aspect-ratio: 2 / 1; }
.pls-tile-boo .pls-tile-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name go' 'line go' 'best go'; column-gap: 12px; align-items: center; padding: 12px 16px 15px; }
.pls-tile-boo .pls-tile-name { grid-area: name; font-size: 25px; letter-spacing: -.025em; }
.pls-tile-boo .pls-tile-line { grid-area: line; }
.pls-tile-boo .pls-tile-best { grid-area: best; }
.pls-tile-boo .pls-tile-foot { grid-area: go; flex-direction: column-reverse; align-items: flex-end; gap: 8px; margin: 0; padding: 0; }
.pls-tile-boo .pls-tile-go { min-height: 40px; padding: 0 16px 0 18px; font-size: 16px; }

/* ambient motion: only with motion allowed, only while the tiles are on screen and no classic game is open */
@media (prefers-reduced-motion: no-preference) {
  .pls-flick { animation: pls-flick 5.2s steps(1, end) infinite; }
  .pls-flick.pls-a2 { animation-duration: 6.8s; animation-delay: -2.1s; }
  .pls-flick.pls-a3 { animation-duration: 4.4s; animation-delay: -3.3s; }
  .pls-bob { animation: pls-peekaboo 6s var(--pls-ease) infinite; }
  .pls-bob.pls-a2 { animation-delay: -2s; animation-duration: 7.2s; }
  .pls-bob.pls-a3 { animation-delay: -4.1s; animation-duration: 6.6s; }
  .pls-fog { animation: pls-fog 14s ease-in-out infinite alternate; }
  .pls-flip-back { animation: pls-flip-back 8s var(--pls-ease) infinite; }
  .pls-flip-face { animation: pls-flip-face 8s var(--pls-ease) infinite; }
  .pls-twinkle { animation: pls-twinkle 3.2s ease-in-out infinite; }
  .pls-twinkle.pls-a2 { animation-delay: -1.1s; }
  .pls-twinkle.pls-a3 { animation-delay: -2.2s; animation-duration: 4s; }
  .pls-fly { animation: pls-fly 7s ease-in-out infinite; }
  .pls-fly.pls-a2 { animation-delay: -2.5s; animation-duration: 8.4s; }
  .pls-fly.pls-a3 { animation-delay: -5s; animation-duration: 6.2s; }
  .pls-flap { transform-origin: 0% 50%; animation: pls-flap 4.6s var(--pls-ease) infinite; }
  .pls-quilt { transform-origin: 50% 100%; animation: pls-breathe 4.2s ease-in-out infinite; }
  .pls-bed.pls-a3 .pls-quilt { animation-delay: -1.6s; animation-duration: 4.8s; }
  .pls-zz { animation: pls-zz 3.6s ease-out infinite; }
  .pls-zz.pls-a3 { animation-delay: -1.8s; }
  .pls-moonglow { animation: pls-glow 5s ease-in-out infinite alternate; }
  .pls-flame { transform-origin: 50% 100%; animation: pls-flame .9s ease-in-out infinite alternate; }
  .pls-lamp.pls-a2 .pls-flame { animation-duration: 1.1s; }
  .pls-lamp.pls-a3 .pls-flame { animation-duration: .8s; animation-delay: -.3s; }
  .pls-lamp-glow { animation: pls-glow 2.6s ease-in-out infinite alternate; }
  .pls-stone-glow, .pls-stone-lit { opacity: 0; animation: pls-stone 5s var(--pls-ease) infinite; }
  .pls-s2 > * { animation-delay: .35s; } .pls-s3 > * { animation-delay: .7s; } .pls-s4 > * { animation-delay: 1.05s; } .pls-s5 > * { animation-delay: 1.4s; }
  .pls-jm { animation: pls-moon 3.6s ease-in-out infinite; }
  .pls-jm.pls-a2 { animation-delay: -1.2s; } .pls-jm.pls-a3 { animation-delay: -2.4s; }
  .pls-jm-spark { animation: pls-twinkle 2.8s ease-in-out infinite; }
  .pls-jar-halo { animation: pls-glow 4.4s ease-in-out infinite alternate; }
  .pls-tiles:not(.is-playing) .pls-tile:active .pls-bob { animation-play-state: paused; }
}
/* off screen, or a classic open below: everything holds still (no paint work while a game runs) */
.pls-classics:not(.is-awake) .pls-dio *, .pls-tiles.is-playing .pls-dio *, .pls-classics:not(.is-awake) .pls-jar *, .pls-classics:has(.pls-tiles.is-playing) .pls-jar * { animation-play-state: paused !important; }
/* browsers without linear(): a cubic-bezier that still overshoots a little */
@supports not (transition-timing-function: linear(0, 1)) { .pls-classics { --pls-spring: cubic-bezier(.34, 1.4, .64, 1); } }
@keyframes pls-flick { 0%, 100% { opacity: 1; } 31% { opacity: .78; } 33% { opacity: 1; } 58% { opacity: .9; } 61% { opacity: .7; } 63% { opacity: 1; } 86% { opacity: .85; } }
@keyframes pls-peekaboo { 0%, 100% { transform: translateY(0); } 42% { transform: translateY(0); } 52% { transform: translateY(16px); } 64% { transform: translateY(16px); } 72% { transform: translateY(-3px); } 78% { transform: translateY(0); } }
@keyframes pls-fog { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes pls-flip-back { 0%, 36% { transform: scaleX(1); } 42%, 88% { transform: scaleX(0); } 94%, 100% { transform: scaleX(1); } }
@keyframes pls-flip-face { 0%, 42% { transform: scaleX(0); } 49% { transform: scaleX(1.06); } 52%, 82% { transform: scaleX(1); } 88%, 100% { transform: scaleX(0); } }
@keyframes pls-twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pls-fly { 0%, 100% { transform: translate(0, 0); opacity: .35; } 30% { transform: translate(6px, -5px); opacity: 1; } 60% { transform: translate(-4px, -9px); opacity: .7; } 80% { transform: translate(-7px, -2px); opacity: 1; } }
@keyframes pls-flap { 0%, 55%, 100% { transform: none; } 67% { transform: scaleX(.5) skewY(-10deg); } 75% { transform: scaleX(.62) skewY(-7deg); } }
@keyframes pls-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.05); } }
@keyframes pls-zz { 0% { opacity: 0; transform: translate(0, 4px) scale(.7); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -10px) scale(1.1); } }
@keyframes pls-glow { from { opacity: .7; } to { opacity: 1; } }
@keyframes pls-flame { from { transform: scale(1, 1); } to { transform: scale(.86, 1.14); } }
@keyframes pls-stone { 0%, 8% { opacity: 0; } 20%, 64% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes pls-moon { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }

/* the open classic: a way back up, then the game itself */
.pls-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 22px auto 12px; padding: 0 16px; }
.pls-bar-back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 1.5px solid #fffaf28c; border-radius: 99px; background: transparent; color: var(--pls-on); font: 700 15px/1.2 var(--body, 'DM Sans', sans-serif); cursor: pointer; touch-action: manipulation; }
.pls-bar-back .gi { width: 18px; height: 18px; }
.pls-bar-back:active { transform: scale(.97); }
.pls-bar-back:focus-visible { outline: 3px solid var(--pls-lamp); outline-offset: 3px; }
.pls-bar-name { min-width: 0; margin: 0; font: 800 16px/1.2 var(--display, 'Outfit', sans-serif); color: var(--pls-lamp); text-align: right; border-radius: 8px; }
.pls-bar-name:focus { outline: none; }
.pls-bar-name:focus-visible { outline: 3px solid var(--pls-lamp); outline-offset: 4px; }
.pls-stage { max-width: 1180px; margin: 0 auto; }
.pls-stage:not(.has-open) { display: none; }
#play.pls-on .pls-folded { display: none !important; }
/* the classic blocks keep their own look; here they only lose the old shared header and stack one at a time */
#play.pls-on .boo-pop-section { max-width: 720px; margin: 0 auto; padding: 0 16px; }
#play.pls-on .ghostie-games { max-width: 760px; padding: 0 16px; color: var(--ink, #292333); }
#play.pls-on .ghostie-games > .games-kicker, #play.pls-on .ghostie-games > .games-intro, #play.pls-on .ghostie-games > .games-note { display: none; }
#play.pls-on .ghostie-games > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
#play.pls-on .ghostie-games .games-layout { display: block; }
#play.pls-on #ghostie-games .challenge-arcade { margin: 0 auto; }

/* ---------- for grown-ups: folded at the very end ---------- */
.pls-grownups { max-width: 1180px; margin: 44px auto 0; padding: 0 16px; color: var(--pls-soft); }
.pls-grownups summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px; list-style: none; font: 600 14px/1.2 var(--body, 'DM Sans', sans-serif); cursor: pointer; border-radius: 8px; }
.pls-grownups summary::-webkit-details-marker { display: none; }
.pls-grownups summary .gi { width: 18px; height: 18px; transition: transform .2s var(--pls-ease); }
.pls-grownups[open] summary .gi { transform: rotate(180deg); }
.pls-grownups summary:focus-visible { outline: 3px solid var(--pls-lamp); outline-offset: 2px; }
.pls-grownups-body { padding: 4px 4px 0; }
.pls-grownups-body p { margin: 0 0 10px; max-width: 62ch; font: 400 14px/1.55 var(--body, 'DM Sans', sans-serif); color: var(--pls-soft); }

@media (min-width: 768px) {
  #play.pls-on .pls-head { padding: 150px 24px 0; }
  .pls-tonight { padding-top: 24px; }
  .pls-classics-head { padding: 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .pls-jar { margin: 0; }
  .pls-grownups { padding: 0 24px; }
  /* the start screen: Boo Pop's house as a wide stage with its words beside it, the four quieter games in a row below */
  .pls-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; padding: 0 24px; }
  .pls-tile-item:first-child { grid-column: 1 / -1; }
  .pls-tile-boo { flex-direction: row; }
  .pls-tile-boo .pls-dio { flex: 0 0 62%; }
  .pls-tile-boo .pls-dio::after { box-shadow: inset -22px 0 24px -20px #120d1ccc; }
  .pls-tile-boo .pls-tile-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'name' 'line' 'best' 'go'; align-content: center; row-gap: 6px; padding: 24px 28px; }
  .pls-tile-boo .pls-tile-name { font-size: clamp(30px, 3.6vw, 44px); }
  .pls-tile-boo .pls-tile-line { font-size: 16px; }
  .pls-tile-boo .pls-tile-foot { flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; margin-top: 12px; }
  .pls-tile-boo .pls-tile-go { min-height: 48px; padding: 0 22px 0 24px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pls-window, .pls-window-pal, .pls-tile, .pls-go, .pls-step-art, .pls-grownups summary .gi, .pls-tile-go, .pls-d-far, .pls-d-near, .pls-peek, .pls-card-lift { transition: none; }
  .pls-window:active, .pls-tile:active, .pls-tile:hover, .pls-tile:hover:active, .pls-go:active, .pls-bar-back:active, .pls-tile:active .pls-tile-go { transform: none; }
  .pls-tile:hover .pls-d-far, .pls-tile:hover .pls-d-near, .pls-tile:hover .pls-peek, .pls-tile:hover .pls-card-lift, .pls-tile:hover .pls-tile-go, .pls-tile:focus-visible .pls-peek, .pls-tile:focus-visible .pls-d-far { transform: none; }
  .pls-d-img { transition: none; }
}
/* wide screens: the lit window on the left, the game and its prizes beside it */
@media (min-width: 900px) {
  .pls-tonight { max-width: 1180px; padding: 28px 24px 8px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 56px; align-items: start; }
  .pls-kicker { grid-column: 1 / -1; }
  .pls-window { grid-column: 1; grid-row: 2 / span 3; }
  .pls-window-glass { height: 360px; }
  .pls-tonight-copy, .pls-ladder-lead, .pls-tonight-ladder { grid-column: 2; }
  .pls-tonight-copy { padding-top: 4px; }
  .pls-go { width: auto; min-width: 280px; }
}
/* Windows high contrast / forced colors: box-shadow rings vanish there, so focus and "open" get real outlines */
@media (forced-colors: active) {
  .pls-window:focus-visible, .pls-tile:focus-visible, .pls-go:focus-visible, .pls-bar-back:focus-visible, .pls-bar-name:focus-visible, .pls-grownups summary:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
  .pls-tile.is-open { outline: 2px solid Highlight; outline-offset: 2px; }
  .pls-step.is-done .pls-step-art, .pls-step.is-next .pls-step-art { outline: 2px solid CanvasText; }
}
.pls-bar-back-label { white-space: nowrap; }
@media (max-width: 359px) { .pls-bar-back { padding: 0 12px 0 10px; font-size: 14px; } .pls-bar-name { font-size: 15px; } }
