/*!
 * Pumpkin Smash — look.
 *
 * Dusk over a pumpkin patch: a violet-to-orange sky, a big moon, dark hills,
 * and eight leafy mounds in a 4x2 grid. The MOUNDS stay quiet on purpose,
 * the pumpkins carry all the colour, because colour IS the note. The rest is
 * the arcade's house look: Nunito, navy HUD chips, big friendly buttons, the
 * rainbow bar up top. Layout rules (field in the flow, pods planted at the
 * bottom, 4x2 kept as long as a finger fits) are Whack-a-Bell's, which this
 * game grew out of.
 */

:root {
  --ps-navy: #1b233e;
  --ps-ink: #1f1d1a;
  --ps-ink-soft: #4a463f;
  --ps-cream: #fff6e5;
  --ps-cream-soft: #ffe6c2;
  --ps-paper: #fdfbf6;
  --ps-teal: #176877;
  --ps-teal-edge: #124b56;
  --ps-green: #6abb4a;
  --ps-green-edge: #4f9636;
  --ps-orange: #f39422;
  --ps-gold: #ffd25b;
  --ps-sky1: #2b2456;
  --ps-sky2: #6a3f8f;
  --ps-sky3: #e9874f;
  --ps-grass: #5fa64b;
  --ps-grass-dark: #4b8a3b;
  --ps-soil: #3f2a1e;
  --ps-mound: #74bb55;
  --ps-mound-dark: #4f9140;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'Nunito', 'Avenir Next Rounded', 'Trebuchet MS', sans-serif;
  color: var(--ps-ink);
  background: linear-gradient(180deg, var(--ps-sky1) 0%, var(--ps-sky2) 48%, var(--ps-sky3) 100%);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;   /* no double-tap zoom on a game about tapping */
  user-select: none;
  -webkit-user-select: none;
}

.ps-app {
  position: relative;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── scenery ─────────────────────────────────────────────────────────────── */
/* Rob's Hall of the Mountain King castle (art-src/pumpkins/backgrounds/HOTMK-BG-1),
   sized so its horizon lands about where the grass starts: the castle stands
   in the sky band above the patch on a phone, a tablet and a laptop. */
.ps-scenery {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: url("../../../assets/pumpkins/bg/castle-1.jpg") center top / auto max(48svh, 56.25vw) no-repeat,
    linear-gradient(180deg, #0b0526, #1d0d3a);
}
.ps-scenery svg { width: 100%; height: 100%; display: block; }
.ps-bat { animation: ps-fly 46s ease-in-out infinite alternate; }
.ps-bat-b { animation-duration: 61s; animation-delay: -20s; }
@keyframes ps-fly { from { transform: translate(-40px, 10px); } to { transform: translate(80px, -24px); } }
.ps-stars circle { animation: ps-twinkle 3.2s ease-in-out infinite alternate; }
.ps-stars circle:nth-child(2n) { animation-delay: -1.1s; }
.ps-stars circle:nth-child(3n) { animation-delay: -2.3s; }
@keyframes ps-twinkle { from { opacity: 0.35; } to { opacity: 1; } }

.ps-app > * { position: relative; z-index: 1; }

/* ── header ──────────────────────────────────────────────────────────────── */
.ps-head { text-align: center; padding-top: 58px; }   /* below the shared Menu and coin buttons */
.ps-title {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px); font-weight: 900; color: var(--ps-cream);
  letter-spacing: -0.5px; line-height: 1.02;
  text-shadow: 0 3px 0 rgba(43, 20, 60, 0.45);
}
.ps-title span { color: var(--ps-orange); }
.ps-sub {
  margin: 4px 0 0;
  font-size: clamp(14px, 2.6vw, 18px); font-weight: 800; color: var(--ps-cream-soft);
}

/* the hero: Rob's eight pumpkins in a row, bobbing */
.ps-hero {
  display: flex; align-items: flex-end; justify-content: center; gap: 2%;
  width: min(560px, 100%); height: clamp(64px, 11vw, 96px);
}
.ps-hero .pa-pumpkin { height: calc(var(--pa-h) * 100%); width: auto; animation: ps-bob 2.6s ease-in-out infinite; }
.ps-hero .pa-pumpkin:nth-child(2n) { animation-delay: -0.8s; }
.ps-hero .pa-pumpkin:nth-child(3n) { animation-delay: -1.7s; }
@keyframes ps-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ── menu ────────────────────────────────────────────────────────────────── */
.ps-menu {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-height: 0;
}
.ps-page .kid-quick-start { margin: 6px auto 4px; background: var(--ps-teal); }
.ps-page .kid-quick-start:hover { background: var(--ps-teal-edge); }
.ps-quick-blurb { color: #fff; font-size: 16px; font-weight: 800; }

.ps-optrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.ps-optlabel {
  font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ps-cream); opacity: 0.85; margin-right: 2px;
}
.ps-opt {
  border: 2px solid rgba(255, 246, 229, 0.35); background: rgba(253, 251, 246, 0.88);
  color: var(--ps-navy); font: 800 13px/1 'Nunito', sans-serif; font-family: inherit;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ps-opt.is-on { background: var(--ps-orange); border-color: var(--ps-orange); color: #3b2008; }

.ps-labels { display: flex; gap: 8px; margin: 4px 0 2px; }
.ps-pill {
  min-height: 48px; padding: 0 18px;
  border: 2px solid rgba(255, 246, 229, 0.35); border-radius: 999px;
  background: rgba(253, 251, 246, 0.88); color: var(--ps-navy);
  font: 800 16px/1 'Nunito', system-ui, sans-serif; font-family: inherit; cursor: pointer;
}
.ps-pill[aria-pressed="true"] { background: var(--ps-navy); border-color: var(--ps-navy); color: #fff; }
.ps-pill:focus-visible, .ps-opt:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }

.ps-levels-title { margin: 10px 0 0; font-size: 22px; font-weight: 900; color: var(--ps-cream); text-shadow: 0 2px 0 rgba(43, 20, 60, 0.4); }
.ps-levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr));
  gap: 12px;
  width: min(960px, 100%);
}
.ps-level {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px; align-items: center;
  min-height: 92px; padding: 12px 12px 10px;
  border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94); color: var(--ps-ink);
  text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 4px 0 rgba(43, 20, 60, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ps-level:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(43, 20, 60, 0.28); }
.ps-level:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(43, 20, 60, 0.28); }
.ps-level:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.ps-level-emoji { grid-row: 1 / span 3; font-size: 32px; text-align: center; }
.ps-level-name { font-size: 17px; font-weight: 900; line-height: 1.15; color: var(--ps-navy); }
.ps-level-num { color: #6a5a86; font-weight: 800; margin-right: 4px; }
.ps-level-dots { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0 1px; }
.ps-level-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.08); }
.ps-level-blurb { font-size: 13px; font-weight: 700; color: #5a4a6e; line-height: 1.25; }
.ps-level-stars { font-size: 15px; letter-spacing: 1px; color: #f2b72b; }
.ps-level-stars .off { color: #d9d2e3; }
.ps-level.is-locked { background: rgba(255, 255, 255, 0.55); cursor: not-allowed; }
.ps-level.is-locked :is(.ps-level-emoji, .ps-level-name, .ps-level-dots) { opacity: 0.5; }
.ps-level.is-paywalled { cursor: pointer; }

/* ── play screen ─────────────────────────────────────────────────────────── */
#psPlay { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.ps-hud {
  display: flex; justify-content: flex-start; gap: 10px; align-items: center;
  padding: 26px 96px 0 150px;   /* 150px clears the Menu pill at every size */
  flex-wrap: wrap;
}
@media (max-width: 720px) { .ps-hud { justify-content: center; padding: 26px 12px 0; } }
.ps-chip {
  min-width: 108px; text-align: center;
  background: var(--ps-navy); color: #fff;
  border-radius: 16px; padding: 8px 16px 9px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.ps-chip b { display: block; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-chip small { display: block; font-size: 9.5px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.75; }
.ps-chip.is-endless b { font-size: 20px; }

/* the prompt bar: the name, the hand sign, or "listen" */
.ps-prompt {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 54px; padding-top: 14px;
}
.ps-ask {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(20px, 4.4vw, 30px); font-weight: 900; color: var(--ps-navy);
  background: rgba(253, 251, 246, 0.94); border-radius: 18px; padding: 8px 18px;
  box-shadow: 0 3px 0 rgba(43, 20, 60, 0.3);
  min-height: 56px;
}
.ps-ask .ps-ask-note { padding: 2px 10px; border-radius: 10px; }
.ps-ask .ps-ask-note small { font-size: 0.5em; font-weight: 900; margin-left: 4px; vertical-align: super; }
.ps-ask .ps-sign { height: clamp(52px, 9vw, 76px); width: auto; display: block; }
.ps-hear {
  border: 0; cursor: pointer; font-family: inherit;
  background: var(--ps-teal); color: #fff;
  font-size: 15px; font-weight: 900;
  border-radius: 999px; padding: 12px 18px; min-height: 48px;
  box-shadow: 0 4px 0 var(--ps-teal-edge);
}
.ps-hear:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ps-teal-edge); }

/* ── the field ───────────────────────────────────────────────────────────── */
.ps-field { position: relative; margin-top: auto; padding: 56px 0 clamp(10px, 3.5vh, 48px); }
/* The grass below runs 300vh so it never ends short of the screen, but that
   made the PAGE 300vh tall: the play screen scrolled away under a child's
   swipe, and a patch picked low on the menu opened scrolled into grass. Clip
   it at the field's floor (sideways stays visible: the grass is 100vw). */
@supports (overflow: clip) { .ps-field { overflow-y: clip; } }
.ps-field-deco { width: 100%; padding-bottom: 0; pointer-events: none; }
.ps-field::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; transform: translateX(-50%);
  width: 100vw; top: 52px; height: 300vh;
  background: var(--ps-grass);
}
.ps-wave {
  position: absolute; z-index: -1;
  left: 50%; transform: translateX(-50%);
  width: 100vw; top: 0; height: 58px;
  display: block; color: var(--ps-grass);
}
@media (min-height: 720px) {
  .ps-field { padding-top: clamp(56px, 15vh, 240px); }
  .ps-wave { height: clamp(58px, 9vh, 120px); }
  .ps-field::after { top: clamp(52px, 8.4vh, 112px); }
}
/* A patch's prompt bar (a hand sign is ~100px of it) pushed the bottom row of
   an iPad-landscape patch off the screen. The tall hill gives that back. */
@media (min-height: 720px) {
  #psPlay.has-prompt .ps-field { padding-top: 56px; }
  #psPlay.has-prompt .ps-wave { height: 58px; }
  #psPlay.has-prompt .ps-field::after { top: 52px; }
}

/* ── the patch: 4x2 mounds ───────────────────────────────────────────────── */
.ps-garden {
  --ps-chrome: 300px;
  --ps-garden-max: 940px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.4vw, 26px);
  width: min(var(--ps-garden-max), 100%, calc((100svh - var(--ps-chrome)) * 2.17));
  margin: 6px auto 0;
  padding: 8px 4px 4px;
  touch-action: none;   /* a drag across the patch is taps, never a scroll or a bounce */
}
@media (max-width: 560px) {
  .ps-garden { --ps-chrome: 340px; gap: 8px; }
  .ps-hud { padding-top: 20px; }
  .ps-chip { min-width: 84px; padding: 6px 12px 7px; }
  .ps-chip b { font-size: 20px; }
  .ps-prompt { padding-top: 10px; min-height: 46px; }
  .ps-ask { padding: 6px 14px; min-height: 50px; }
}
/* Phone portrait: 2 x 4. Four across a 390px phone left each pumpkin ~60px,
   with half the screen empty sky; two across doubles the target. */
@media (max-width: 380px), (max-width: 560px) and (orientation: portrait) {
  .ps-garden {
    grid-template-columns: repeat(2, 1fr);
    --ps-garden-max: 420px;
    width: min(var(--ps-garden-max), 100%, calc((100svh - var(--ps-chrome)) * 0.54));
  }
}

/* Phone landscape: the 300px of chrome above left a 390px-tall screen ~30px
   pumpkins. Tighten the HUD, prompt and hill so the patch gets the height. */
@media (orientation: landscape) and (max-height: 500px) {
  .ps-hud { padding-top: 12px; }
  .ps-chip { min-width: 84px; padding: 4px 12px 5px; }
  .ps-chip b { font-size: 18px; }
  .ps-prompt { padding-top: 0; min-height: 0; }
  .ps-ask { min-height: 44px; padding: 4px 14px; font-size: 20px; }
  .ps-ask .ps-sign { height: 40px; }
  .ps-hear { min-height: 44px; padding: 8px 16px; }
  /* No hill at all: on a 340px-tall iPhone in Safari the old 196px of
     "chrome" left ~60px pumpkins (Chris: "gets super small landscape"). The
     grass runs right up to the HUD and the patch takes the rest. */
  .ps-field { padding-top: 4px; padding-bottom: 8px; }
  .ps-wave { display: none; }
  .ps-field::after { top: 0; }
  .ps-garden { --ps-chrome: 112px; margin-top: 0; }
  #psPlay.has-prompt .ps-garden { --ps-chrome: 166px; }
  #psPlay { gap: 6px; }
}

.ps-pod {
  position: relative;
  aspect-ratio: 1 / 0.92;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none; border: 0; background: none; padding: 0; font: inherit;
}
/* the mound: a dark soil back, a leafy green front, two leaves */
.ps-mound-back {
  position: absolute; left: 8%; right: 8%; bottom: 5%;
  height: 32%;
  background: var(--ps-soil);
  border-radius: 50% / 62%;
}
/* The sleeve's floor is the mound's waist, so a risen pumpkin SITS ON the
   mound (only its last sliver behind the front lip) instead of peeking out of
   a bowl. The mask still clips it below that line, which is what makes the
   pop a POP. */
.ps-sleeve {
  position: absolute; left: 0; right: 0; top: -12%; bottom: 19%;
  overflow: hidden;
  pointer-events: none;
}
.ps-pumpkin {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 96%;
  display: flex; align-items: flex-end; justify-content: center;
  transform: translateY(112%);      /* parked underground */
  transform-origin: 50% 100%;
  will-change: transform;
  pointer-events: none;
}
.ps-pumpkin .pa-pumpkin { height: calc(var(--pa-h) * 100%); width: auto; display: block; filter: drop-shadow(0 4px 3px rgba(30, 10, 40, 0.25)); }
.ps-pumpkin .pa-face { transition: transform 90ms ease-out; }

.ps-pod.is-up .ps-pumpkin { animation: ps-pop 0.18s cubic-bezier(.2,1.5,.5,1) forwards; }
@keyframes ps-pop {
  from { transform: translateY(112%); }
  60%  { transform: translateY(-5%) scale(1.04, 0.98); }
  to   { transform: translateY(0%); }
}
.ps-pod.is-down .ps-pumpkin { animation: ps-sink 0.14s ease-in forwards; }
@keyframes ps-sink { from { transform: translateY(0%); } to { transform: translateY(112%); } }
.ps-pod.is-hit .ps-pumpkin { animation: ps-squash 0.42s ease-out forwards; }
@keyframes ps-squash {
  0%   { transform: translateY(0%) scale(1, 1); }
  28%  { transform: translateY(8%) scale(1.3, 0.55); }
  55%  { transform: translateY(8%) scale(1.3, 0.55); opacity: 1; }
  100% { transform: translateY(40%) scale(1.4, 0.3); opacity: 0; }
}
/* the smashed face: eyes shut tight, mouth flat, for the 200ms it is visible */
.ps-pod.is-hit .pa-face { transform: scale(1.15, 0.28); }
.ps-pod.is-held .ps-pumpkin { animation: none; transform: translateY(0%); }
.ps-pod.is-wrong .ps-pumpkin { animation: ps-wobble 0.4s ease-in-out; transform: translateY(0%); }
@keyframes ps-wobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(0) rotate(-7deg); }
  75% { transform: translateY(0) rotate(7deg); }
}
.ps-pod.is-lit .pa-pumpkin { filter: drop-shadow(0 0 16px rgba(255, 220, 110, 0.95)) brightness(1.08); }

.ps-mound-front {
  position: absolute; left: 3%; right: 3%; bottom: 0;
  height: 30%;
  background: radial-gradient(ellipse at 50% 20%, var(--ps-mound) 0%, var(--ps-mound-dark) 100%);
  border-radius: 50% / 60%;
  box-shadow:
    inset 0 5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 0 rgba(30, 50, 20, 0.22),
    0 5px 10px rgba(30, 10, 40, 0.22);
}
.ps-leaf {
  position: absolute; bottom: 14%;
  width: 22%; height: 13%;
  background: var(--ps-mound-dark);
  border-radius: 0 100% 0 100%;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.ps-leaf-l { left: 2%; transform: rotate(-30deg); }
.ps-leaf-r { right: 2%; transform: rotate(120deg); }

/* +1, seeds, pulp */
.ps-plus {
  position: absolute; left: 50%; top: 6%;
  transform: translateX(-50%);
  font-size: 22px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 0 rgba(43, 20, 60, 0.5);
  animation: ps-plus 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ps-plus { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -36px); } }
.ps-seed, .ps-pulp {
  position: absolute; left: 50%; top: 42%;
  pointer-events: none;
  animation: ps-spark 0.6s cubic-bezier(.2,.7,.4,1) forwards;
}
.ps-seed { width: 7px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #f6e7b4; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1); }
.ps-pulp { width: 14px; height: 10px; border-radius: 50%; opacity: 0.9; }
@keyframes ps-spark {
  from { opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1); }
  to   { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(var(--rot)) scale(0.7); }
}

/* ── results ─────────────────────────────────────────────────────────────── */
.ps-veil {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(30, 16, 50, 0.5);
  overflow-y: auto;
}
.ps-card {
  width: min(430px, 100%);
  margin: auto;   /* centred, but a card taller than a phone-landscape screen starts at the top and scrolls */
  background: var(--ps-paper); border-radius: 24px;
  padding: 24px 22px 18px; text-align: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  display: grid; gap: 6px; justify-items: center;
  animation: ps-cardpop 280ms ease-out;
}
@keyframes ps-cardpop { from { transform: scale(0.9); opacity: 0; } }
.ps-card h2 { margin: 0; font-size: 30px; font-weight: 900; color: var(--ps-navy); }
.ps-stars { font-size: 40px; letter-spacing: 4px; color: #f2b72b; line-height: 1; min-height: 0; }
.ps-stars:empty { display: none; }
.ps-stars .off { color: #dde5ec; }
.ps-big { font-size: 54px; font-weight: 900; color: var(--ps-orange); line-height: 1; font-variant-numeric: tabular-nums; }
.ps-big small { display: block; font-size: 12px; letter-spacing: 2px; color: var(--ps-ink-soft); }
.ps-stats { margin: 4px 0; font-size: 15px; font-weight: 800; color: var(--ps-ink-soft); }
.ps-best { color: #d99a00; }
.ps-card button { font-family: inherit; cursor: pointer; border: 0; width: 100%; }
.ps-next {
  background: var(--ps-teal); color: #fff;
  font-size: 22px; font-weight: 900;
  border-radius: 999px; padding: 16px 24px; margin-top: 6px;
  box-shadow: 0 6px 0 var(--ps-teal-edge);
}
.ps-next:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ps-teal-edge); }
.ps-again {
  background: var(--ps-green); color: #fff;
  font-size: 20px; font-weight: 900;
  border-radius: 999px; padding: 14px 24px; margin-top: 4px;
  box-shadow: 0 6px 0 var(--ps-green-edge);
}
.ps-again:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ps-green-edge); }
.ps-menu-btn {
  background: none; color: var(--ps-ink-soft);
  font-size: 15px; font-weight: 800; text-decoration: underline; min-height: 44px;
}
.ps-card button:focus-visible { outline: 4px solid #183e74; outline-offset: 3px; }

/* countdown before a round */
.ps-countdown { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; pointer-events: none; }
.ps-countdown b {
  font-size: 110px; font-weight: 900; color: #fff;
  text-shadow: 0 4px 0 rgba(43, 20, 60, 0.6);
  animation: ps-count 0.7s ease-out;
}
@keyframes ps-count { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* streak toast */
/* the burst zone: centred over the patch (the .ps-field), not up by the HUD */
.ps-toast {
  position: absolute; left: 50%; top: 52%;
  transform: translateX(-50%);
  z-index: 50; pointer-events: none; white-space: nowrap;
  font-size: 26px; font-weight: 900; color: #3b2008;
  background: var(--ps-orange); border-radius: 999px; padding: 8px 22px;
  box-shadow: 0 5px 0 #b86a0e;
  animation: ps-toast 1s ease-out forwards;
}
.ps-toast.is-note { box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.85); }
@keyframes ps-toast {
  from { opacity: 0; transform: translate(-50%, 8px) scale(0.8); }
  20%  { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
  80%  { opacity: 1; }
  to   { opacity: 0; transform: translate(-50%, -10px); }
}

/* confetti: leaves and seeds falling */
.ps-confetti {
  position: fixed; top: -14px; z-index: 70; width: 10px; height: 14px;
  border-radius: 0 100% 0 100%;
  pointer-events: none;
  animation: ps-fall linear forwards;
}
@keyframes ps-fall { to { transform: translateY(105vh) rotate(var(--spin)); } }

@media (prefers-reduced-motion: reduce) {
  .ps-bat, .ps-bat-b, .ps-stars circle, .ps-hero .pa-pumpkin { animation: none; }
  .ps-pod.is-up .ps-pumpkin { animation: none; transform: translateY(0); }
  .ps-pod.is-down .ps-pumpkin { animation: none; transform: translateY(112%); }
  .ps-confetti { display: none; }
}

/* Free tier: a locked patch reads as "not yet", never as broken. */
.ps-opt .pmg-lock { margin-left: 5px; }
