/*!
 * Pumpkin Smash v2 — the cover's evening over the same game (with js/kid-kit.js).
 * Colours from the cover (covers/pumpkin-smash/scene.js): sky #2f2862, sunset
 * #e9874f, far hills #251e4f, the patch #4c9a47, mounds soil #3f2a1e / dome
 * #4f9140 / top #74bb55 / leaves #3f7d35.
 */
body.is-v2 {
  --ps-sky1: #2f2862; --ps-sky2: #2f2862; --ps-sky3: #2f2862;
  --ps-grass: #4c9a47; --ps-grass-dark: #3f8a3c;
  --ps-soil: #3f2a1e; --ps-mound: #74bb55; --ps-mound-dark: #4f9140;
  background: #2f2862;
}
/* the castle (Classic's backdrop) gives way to the cover's flat evening */
body.is-v2 .ps-scenery { background: none; }
body.is-v2 .ps-scenery .kk-scene { position: absolute; inset: 0; }

/* the game's own menu stays in the page (the kit presses its buttons) but is never seen */
html.kk-menu-on body.is-v2 { overflow: hidden; }
body.is-v2 #psMenu { visibility: hidden; }
body.is-v2 #psMenu .ps-field-deco { display: none; }

/* the pumpkin on the Smash! button is Rob's art */
.v2-pumpkin-ico { display: grid; place-items: center; width: 100%; height: 100%; }
.v2-pumpkin-ico svg { height: 100%; width: auto; filter: drop-shadow(0 4px 0 rgba(27, 35, 62, 0.25)); }

/* a locked stone that isn't reached yet: a little "not yet" shake */
.kk-stone.kk-nope { animation: v2-nope 0.36s ease-in-out; }
@keyframes v2-nope { 25% { translate: calc(-50% - 6px) -50%; } 75% { translate: calc(-50% + 6px) -50%; } }

/* the game's rows, moved into the grown-ups sheet, wear the kit's pills */
.kk-sheet .ps-optrow, .kk-sheet .ps-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; justify-content: flex-start; }
.kk-sheet .ps-optlabel { min-width: 74px; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #8a93ad; }
.kk-sheet .ps-opt, .kk-sheet .ps-pill {
  appearance: none; border: 2px solid #d5dced; background: #fff; color: #1b233e;
  font: 900 14px/1 Nunito, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; min-height: 44px; cursor: pointer; box-shadow: none;
}
.kk-sheet .ps-opt.is-on, .kk-sheet .ps-pill[aria-pressed="true"] { background: #1b233e; border-color: #1b233e; color: #fff; }

/* ── Play: the HUD and prompt as light pills on the evening ─────────────── */
body.is-v2 .ps-chip { background: rgba(255, 255, 255, 0.92); color: #1b233e; border-radius: 999px; box-shadow: 0 3px 10px rgba(15, 12, 40, 0.25); }
body.is-v2 .ps-chip small { color: #6a7392; opacity: 1; }
body.is-v2 .ps-ask { border-radius: 999px; box-shadow: 0 4px 0 rgba(15, 12, 40, 0.25); }
body.is-v2 .ps-field .ps-wave { color: #4c9a47; }
body.is-v2 .ps-field::after { background: #4c9a47; }
body.is-v2 .ps-leaf { background: #3f7d35; }
body.is-v2 .ps-card { border: 0; border-radius: 30px; box-shadow: 0 20px 50px rgba(15, 12, 40, 0.4); }
body.is-v2 .ps-card h2 { font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400; font-variant-caps: small-caps; letter-spacing: 0; }

/* ── 2026-10-09 pass 2: the patch world (../../assets/pumpkins/patch-v2.*) ──
   Rob's castle far back, the night, dark hills, the green patch with its
   fence, hay, corn, lanterns, owl, fireflies and bat, all in .ps-scenery
   BEHIND the game. Classic's grass and hill wave step aside: the scene's
   patch is the ground. */
body.is-v2 { background: #090424; }
body.is-v2 .ps-scenery { background: #090424; }
body.is-v2 #psPlay .ps-field::after { background: none; }
body.is-v2 #psPlay .ps-wave { display: none; }

/* the patch uses the screen: a wider app and garden on tablets and laptops,
   and taller pumpkins on an upright phone (the top was empty sky) */
body.is-v2 .ps-app { width: min(1260px, 100%); }
@media (min-height: 501px) {
  body.is-v2 .ps-garden { --ps-garden-max: 1180px; width: min(var(--ps-garden-max), 100%, calc((100svh - var(--ps-chrome)) * 2.05)); }
  body.is-v2 #psPlay.has-prompt .ps-garden { --ps-chrome: 380px; }
}
@media (max-width: 380px) and (min-height: 501px), (max-width: 560px) and (orientation: portrait) and (min-height: 501px) {
  body.is-v2 .ps-garden { --ps-chrome: 214px; --ps-garden-max: 440px; width: min(var(--ps-garden-max), 100%, calc((100svh - var(--ps-chrome)) * 0.54)); }
  body.is-v2 #psPlay.has-prompt .ps-garden { --ps-chrome: 300px; }
  body.is-v2 #psPlay .ps-field, body.is-v2 #psPlay.has-prompt .ps-field { padding-top: 44px; }
}

/* the mounds: a dark soil mound ringed with vine and big leaves; the
   pumpkin rises out of the hole between the back and the front lip */
body.is-v2 .ps-mound-back {
  left: 5%; right: 5%; bottom: 11%; height: 32%; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M4 80Q10 16 100 6Q190 16 196 80Z' fill='%234a3121'/%3E%3Cpath d='M22 46Q100 22 178 46Q100 34 22 46Z' fill='%235b3c27'/%3E%3Cellipse cx='100' cy='50' rx='70' ry='15' fill='%231f120b'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
body.is-v2 .ps-mound-front {
  left: -7%; right: -7%; bottom: -5%; height: 41%; border-radius: 0; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 86'%3E%3Cg transform='translate(38 60) rotate(-80) scale(1.25)'%3E%3Cpath d='M0 0C-6 -4 -20 -6 -22 -18C-23 -27 -15 -31 -10 -28C-9 -36 -2 -40 0 -36C2 -40 9 -36 10 -28C15 -31 23 -27 22 -18C20 -6 6 -4 0 0Z' fill='%233f7d35'/%3E%3Cpath d='M0 -2V-30M0 -12L-11 -20M0 -12L11 -20' stroke='%232c5f28' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3Cg transform='translate(222 60) rotate(80) scale(1.25)'%3E%3Cpath d='M0 0C-6 -4 -20 -6 -22 -18C-23 -27 -15 -31 -10 -28C-9 -36 -2 -40 0 -36C2 -40 9 -36 10 -28C15 -31 23 -27 22 -18C20 -6 6 -4 0 0Z' fill='%234f9140'/%3E%3Cpath d='M0 -2V-30M0 -12L-11 -20M0 -12L11 -20' stroke='%232c5f28' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3Cpath d='M40 36Q130 60 220 36Q240 72 130 80Q20 72 40 36Z' fill='%235b3c27'/%3E%3Cpath d='M52 62Q130 80 208 62Q190 78 130 80Q70 78 52 62Z' fill='%234a3121'/%3E%3Cpath d='M30 58Q80 76 130 74Q182 76 230 58' fill='none' stroke='%232f6e30' stroke-width='4.5' stroke-linecap='round'/%3E%3Cg transform='translate(72 70) scale(1.05)'%3E%3Cpath d='M0 0c6 -10 18 -11 19 -2c1 7 -8 9 -10 3c-1 -3 2 -5 4 -3' fill='none' stroke='%234f9140' stroke-width='2.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(188 70) scale(1.05)'%3E%3Cpath d='M0 0c6 -10 18 -11 19 -2c1 7 -8 9 -10 3c-1 -3 2 -5 4 -3' fill='none' stroke='%234f9140' stroke-width='2.6' stroke-linecap='round' transform='scale(-1 1)'/%3E%3C/g%3E%3Cg transform='translate(100 74) rotate(-122) scale(0.85)'%3E%3Cpath d='M0 0C-6 -4 -20 -6 -22 -18C-23 -27 -15 -31 -10 -28C-9 -36 -2 -40 0 -36C2 -40 9 -36 10 -28C15 -31 23 -27 22 -18C20 -6 6 -4 0 0Z' fill='%234f9140'/%3E%3Cpath d='M0 -2V-30M0 -12L-11 -20M0 -12L11 -20' stroke='%232c5f28' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3Cg transform='translate(162 74) rotate(120) scale(0.9)'%3E%3Cpath d='M0 0C-6 -4 -20 -6 -22 -18C-23 -27 -15 -31 -10 -28C-9 -36 -2 -40 0 -36C2 -40 9 -36 10 -28C15 -31 23 -27 22 -18C20 -6 6 -4 0 0Z' fill='%233f7d35'/%3E%3Cpath d='M0 -2V-30M0 -12L-11 -20M0 -12L11 -20' stroke='%232c5f28' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3Cg transform='translate(130 80) rotate(180) scale(0.7)'%3E%3Cpath d='M0 0C-6 -4 -20 -6 -22 -18C-23 -27 -15 -31 -10 -28C-9 -36 -2 -40 0 -36C2 -40 9 -36 10 -28C15 -31 23 -27 22 -18C20 -6 6 -4 0 0Z' fill='%233f7d35'/%3E%3Cpath d='M0 -2V-30M0 -12L-11 -20M0 -12L11 -20' stroke='%232c5f28' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
}
body.is-v2 .ps-leaf { display: none; }
/* no drop shadow under a risen pumpkin (flat) */
body.is-v2 .ps-pumpkin .pa-pumpkin { filter: none; }
body.is-v2 .ps-pod.is-lit .pa-pumpkin { filter: drop-shadow(0 0 16px rgba(255, 220, 110, 0.95)) brightness(1.08); }   /* Echo's "watch me" light stays */
