@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');
:root{--forest:#204a39;--dark:#19372c;--cream:#fff9ed;--light:#ecf4e4;--orange:#f2a45c;--ink:#253d33;--white:#fff;--line:#d9e5d6}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:17px/1.6 Nunito,system-ui,sans-serif}a{color:inherit}button,select{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #2d4a43;outline-offset:3px}h1,h2,h3,.brand{font-family:Fredoka,system-ui,sans-serif;line-height:1.15}h1{font-size:clamp(2.8rem,7vw,5.4rem);margin:.2em 0}h2{font-size:clamp(2rem,4vw,3rem);margin:0 0 14px}h3{font-size:1.5rem;margin:0 0 12px}p{margin:0 0 17px}.wrap{width:min(1120px,calc(100% - 36px));margin:auto}.top{background:var(--white);border-bottom:1px solid var(--line)}.nav{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:78px;flex-wrap:wrap;padding:14px 0}.brand{font-weight:700;font-size:1.45rem;text-decoration:none;color:var(--forest)}.nav-links{display:flex;flex-wrap:wrap;gap:12px 22px;font-size:.94rem;font-weight:900}.nav-links a{text-decoration:none}.nav-links a:hover{text-decoration:underline}.hero{background:linear-gradient(130deg,#e4f1d8,#fff3df);overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:35px;align-items:center;padding:76px 0}.hero h1 span{color:#d77538}.hero p{max-width:590px;font-size:1.13rem}.eyebrow{color:#4e735c;font-weight:900;letter-spacing:.11em;text-transform:uppercase;font-size:.8rem}.pill,.tag{display:inline-block;background:#fff9eb;border-radius:999px;padding:7px 13px;font-weight:900;font-size:.85rem}.art{min-height:320px;border-radius:45% 55% 42% 50%;background:linear-gradient(#c1e6c2,#a3d2a0);display:grid;place-items:center;box-shadow:inset 0 -35px #79a97c;position:relative}.art .scene{font-size:clamp(5rem,15vw,10rem);filter:drop-shadow(0 18px 5px #416a3a38)}.art:after{content:'🍄 🐾 🌼';position:absolute;bottom:20px;font-size:2rem}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.btn{display:inline-block;border:0;border-radius:999px;padding:12px 23px;font-weight:900;text-decoration:none;transition:transform .15s;background:#fff;box-shadow:0 5px 0 #00000013}.btn:hover{transform:translateY(-2px)}.btn.primary{background:var(--forest);color:white}.btn.secondary{background:#ffd7a1;color:#2e3b2c}.btn.small{padding:9px 16px;font-size:.88rem}section{padding:72px 0}.sectionhead{max-width:760px;margin-bottom:30px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:white;border-radius:22px;border:1px solid var(--line);overflow:hidden;box-shadow:0 8px 20px #19413311;display:flex;flex-direction:column}.card-art{background:linear-gradient(135deg,#e1f1d7,#fff0d8);padding:29px;text-align:center;font-size:4.5rem}.card-content{padding:23px;display:flex;flex-direction:column;align-items:start;flex:1}.card-content p{flex:1}.tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.tag{background:#e9f3e6;padding:4px 9px;color:#395d48}.feature{background:#e8f2e5}.feature-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.breath-box{text-align:center;padding:32px;border-radius:28px;background:white}.breath-circle{width:min(240px,68vw);height:min(240px,68vw);border-radius:50%;background:#c6e9c7;display:grid;place-items:center;margin:12px auto 25px;font-family:Fredoka;font-size:1.5rem;transform:scale(.85);transition:transform 4s ease-in-out,background 1s}.breath-circle.in{transform:scale(1.08);background:#a8d9af}.breath-circle.out{transform:scale(.82);background:#d7efdb}.soft{background:#f1f4e9}.notice{background:#fff2db;border-left:5px solid #df914d;padding:18px 22px;border-radius:12px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{border-radius:22px;padding:25px;background:white;border:1px solid var(--line)}.panel ul,.panel ol{padding-left:26px}.panel li{margin-bottom:12px}.crumbs{padding:24px 0 0;font-size:.9rem}.crumbs a{color:#35694c}.activity-hero{padding:38px 0 48px;background:linear-gradient(115deg,#e8f3e2,#fff2db)}.activity-hero .hero-grid{padding:0}.big-icon{font-size:clamp(7rem,16vw,13rem);text-align:center}.mission{padding:50px 0}.mission .panel{margin-bottom:22px}.mindful{background:#e8f2e5;border-left:5px solid #7aa483}.bottomnav{padding:32px 0;display:flex;gap:12px;flex-wrap:wrap}.footer{background:#193b2d;color:white;padding:30px 0;font-size:.92rem}.footer a{color:#ffdaa9}.grid-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;flex-wrap:wrap}.quiet{font-size:.9rem;color:#476052}.hidden{display:none!important}@media(max-width:800px){.hero-grid,.feature-inner,.columns{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.hero-grid{padding:45px 0}.art{min-height:230px}.activity-hero .big-icon{display:none}}@media(max-width:560px){.cards{grid-template-columns:1fr}.nav{align-items:start}.nav-links{font-size:.84rem}section{padding:48px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* SOFT & DREAMY ITTY BITTY PAUSE THEME — edit these colours first */
:root{--forest:#45786e;--dark:#385750;--cream:#fffaf7;--light:#f4f5ed;--orange:#d99b83;--ink:#435957;--white:#fffdfb;--line:#e6dcd4}
body{background:#fffaf7;background-image:radial-gradient(circle at 6% 7%,#f9e5e4 0,transparent 22%),radial-gradient(circle at 90% 28%,#eef3ed 0,transparent 19%)}
.top{background:#fffdfbeF;backdrop-filter:blur(12px);border-color:#f1e4e0}.nav{min-height:88px}
.brand{color:#53796f;font-weight:600;font-size:1.6rem;letter-spacing:-.04em}
.nav-links{color:#5c6862}.nav-links a:hover{color:#8f5353}
h1,h2,h3{font-weight:600;letter-spacing:-.022em}h1{font-size:clamp(3rem,6.4vw,5.3rem)}h2{color:#4c6c65}h3{color:#496961}
.hero{background:linear-gradient(112deg,#fdf0ed 1%,#fff6ef 43%,#e9f2ec 100%);position:relative}
.hero:before{content:'✧  ♡  ✦';content:'✧  ♡  ✦' / '';position:absolute;right:8%;top:9%;font-size:1.4rem;color:#dbb2a9;letter-spacing:1.3rem;pointer-events:none}
.hero-grid{padding:80px 0}.hero h1 span{color:#b7797a}.hero p{color:#5b6c67}
.eyebrow{color:#7a625c;letter-spacing:.16em}.pill{background:#ffffffb8;border:1px solid #eddcd5;color:#7f5c60}
.art{background:radial-gradient(circle at 51% 23%,#fff6e6 0 14%,transparent 15%),linear-gradient(#e8eee9 0 65%,#dbe9df 65%);border-radius:49% 51% 47% 53%;box-shadow:none;min-height:350px;border:8px solid #ffffff80}
.art:before{content:'✿     ✧     ♡';content:'✿     ✧     ♡' / '';position:absolute;top:9%;font-size:1.8rem;color:#c7a4a0;white-space:pre}
.art:after{content:'🌿  🌼   🍄  🌿';content:'🌿  🌼   🍄  🌿' / '';bottom:16px;font-size:2rem}.art .scene{filter:drop-shadow(0 12px 2px #6c8c7130)}
.btn{box-shadow:0 5px 0 #b1aaa01c}.btn.primary{background:#4a7a6c;color:#fff}.btn.primary:hover{background:#3f6b5f}.btn.secondary{background:#f5d9d4;color:#755958}.btn:hover{transform:translateY(-2px)}
section{padding:75px 0}.card{border:1px solid #efe0db;border-radius:25px;box-shadow:0 9px 20px #987c7611;background:#fffefd}
.tag{background:#eef4ee;color:#4a6e61}.feature{background:linear-gradient(110deg,#f5e5e3,#f3f2e7,#e7f0eb)}.breath-box{box-shadow:0 9px 30px #8eaa9c18}.breath-circle{background:#eddcd7}.breath-circle.in{background:#c8dfd3}.breath-circle.out{background:#f4e1dd}
.soft{background:#f8efed}.notice{background:#fff0e8;border-color:#c99f8a}.mindful{background:#edf5ef;border-color:#91b6a0}
.activity-hero{background:linear-gradient(105deg,#f8e9e6,#fff7ed 48%,#e8f1ec)}.footer{background:#486a61;color:#fffdf7}.footer a{color:#ffe6e0}.crumbs a{color:#3f7062}
.card-content{padding:24px}.card-content p{font-size:.97rem}
@media(max-width:800px){.hero-grid{padding:54px 0}.art{min-height:245px}}

/* Soft activity panels */
.panel{background:#fffefc;border-color:#eddeda;box-shadow:0 6px 20px #9d7f7410}
/* Homepage woodland shelter image */

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

/* DREAMY WOODLAND ACTIVITY CARD IMAGES */

.card-art {
  width: 100%;
  height: 210px;
  padding: 0;
  overflow: hidden;
  display: block;
  background: #f8f0ea;
  border-bottom: 1px solid #f0e5df;
}

.card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

/* Gentle zoom when hovering over cards */
.card:hover .card-art img {
  transform: scale(1.05);
}

/* Softer card appearance */
.card {
  border-radius: 26px;
  overflow: hidden;
  background: #fffefd;
  border: 1px solid #efe0db;
  box-shadow: 0 10px 28px rgba(126, 106, 99, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(126, 106, 99, 0.15);
}

/* Comfortable spacing below each illustration */
.card-content {
  padding: 25px;
}

/* Mobile image sizing: the picture sits on top, wide enough to show all of it */
@media (max-width: 560px) {
  .cards {
    gap: 16px;
  }

  .card-art {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .card-content {
    padding: 18px;
  }

  .card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .card-content p {
    font-size: .95rem;
    margin-bottom: 12px;
  }

  .card-content .tags {
    margin-bottom: 6px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }

  .card-art img {
    transition: none;
  }

  .card:hover .card-art img {
    transform: none;
  }
}
/* Bushcraft skill connection: a gentle note for grown-ups */
.parent-note {
  margin: 22px 0;
  padding: 22px 25px;
  border: 1px solid #dbe8df;
  border-left: 4px solid #8db3a1;
  border-radius: 20px;
  background: #f3f7f0;
  color: var(--ink, #435957);
}
.parent-note h2 {
  font-size: clamp(1.18rem, 2.3vw, 1.45rem);
  margin: 0 0 9px;
  color: var(--forest, #45786e);
}
.parent-note p { margin: 0; line-height: 1.65; }
.parent-note .parent-skill {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #426c5e;
}
@media (max-width: 600px) { .parent-note { padding: 18px 19px; } }
/* MOBILE IMPROVEMENTS FOR ACTIVITY PAGES */

@media (max-width: 800px) {

  /* Show the activity illustration as a banner above the title */
  .activity-hero .hero-image {
    order: -1;
    margin: 14px 0 18px;
  }

  .activity-hero .hero-image img {
    max-width: none;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
  }

  /* Let text use the full screen width */
  .activity-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Make the top section less tall */
  .activity-hero {
    padding: 20px 0 28px;
  }

  /* Make activity titles fit better */
  .activity-hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  /* Reduce extra space around activities */
  .mission {
    padding: 30px 0;
  }

}

/* EXTRA IMPROVEMENTS FOR SMALL PHONES */

@media (max-width: 560px) {

  /* More comfortable activity cards */
  .mission .panel {
    padding: 20px;
  }

  /* Smaller activity information labels */
  .activity-hero .tag {
    font-size: 0.78rem;
  }

}

/* ACCESSIBILITY HELPERS */

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to main content" link, shown when focused with the keyboard */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #2d4a43;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Breadcrumb trail */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.crumbs li + li::before { content: '/'; content: '/' / ''; margin-right: 6px; }

/* Focus ring needs to be light on the dark footer */
.footer a:focus-visible { outline-color: #fff; }


/* "Adventure from indoors" panel on each activity page */
.indoor {
  background: #fbf1ee;
  border-left: 5px solid #d3a49a;
}
.indoor > :last-child { margin-bottom: 0; }

/* Activity pictures: rounded corners, since the circle crop only suits the square homepage picture */
.activity-hero .hero-image img {
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(126, 106, 99, 0.12);
}

/* MOBILE: bigger tap targets */

/* Menu links: at least 44px tall, comfortable for a thumb */
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Breadcrumb and footer links */
.crumbs a,
.crumbs [aria-current],
.footer a {
  display: inline-block;
  padding: 6px 0;
}

@media (max-width: 560px) {
  .nav {
    min-height: 0;
    padding: 10px 0 4px;
    gap: 2px;
  }

  .brand {
    font-size: 1.4rem;
  }

  /* Four links don't fit on one row, so arrange them in a neat 2 x 2 grid */
  .nav-links {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 0 28px;
  }
}

/* MOBILE: homepage picture first, smaller, so it shows on the first screen */
@media (max-width: 800px) {
  .hero .hero-grid {
    padding: 28px 0 48px;
    gap: 18px;
  }

  .hero .hero-image {
    order: -1;
  }

  .hero .hero-image img {
    max-width: 290px;
    margin: -12px 0;
  }

  .hero:before {
    display: none;
  }
}

/* HOMEPAGE CRAYON ILLUSTRATIONS
   The drawings are vignettes on white paper. Multiply blending lets the
   section's own background show through the paper, and a soft radial fade
   melts the edges, so they look drawn straight onto the page. */
.hero .hero-image img,
.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
}

/* Give the drawing more room on wider screens: its vignette has white margins */
@media (min-width: 801px) {
  .hero .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }

  .hero .hero-image img {
    max-width: 600px;
    margin: -24px 0;
  }
}

.feature-image {
  display: flex;
  justify-content: center;
}

.feature-image img {
  max-width: 480px;
}

/* STAY IN TOUCH SIGN-UP FORM */
.signup {
  background: linear-gradient(110deg, #e7f0eb, #f3f2e7 55%, #f5e5e3);
}

.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.signup-form {
  background: #fffefd;
  border: 1px solid #efe0db;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(126, 106, 99, 0.10);
}

.signup-form .field {
  margin: 0 0 20px;
}

.signup-form label,
.signup-form legend {
  font-weight: 800;
  color: #435957;
}

.signup-form input[type="email"],
.signup-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  color: #435957;
  background: #fff;
  border: 2px solid #8c7f7a;
  border-radius: 14px;
}

.signup-form textarea {
  resize: vertical;
}

.signup-form input:focus-visible,
.signup-form textarea:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 2px;
}

.signup-form .choices {
  border: 0;
  padding: 0;
}

.signup-form .choices legend {
  padding: 0;
  margin-bottom: 6px;
}

.signup-form .choice {
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.signup-form .choice input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #4a7a6c;
}

.signup-form .optional {
  font-weight: 600;
  color: #5b6c67;
}

.signup-form .hint {
  margin: 2px 0 0;
  font-size: .92rem;
  color: #5b6c67;
}

.signup-form button {
  font-size: 1.05rem;
}

@media (max-width: 800px) {
  .signup-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .signup-form {
    padding: 20px;
  }
}


/* Thank-you page: the calm drawing blends in like the homepage art */
.thanks {
  padding: 40px 0 70px;
}

.thanks .hero-image img {
  max-width: 420px;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
}

@media (max-width: 800px) {
  .thanks .hero-image img {
    height: auto;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Sign-up form consent wording */
.signup-form .consent {
  font-size: .9rem;
  color: #5b6c67;
  margin: 0 0 18px;
}

.signup-form .consent a {
  color: #3f7062;
}

/* PRIVACY POLICY PAGE: comfortable reading width */
.policy {
  max-width: 760px;
}

.policy-section {
  margin-bottom: 34px;
}

.policy-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 10px;
}

.policy ul {
  padding-left: 26px;
}

.policy li {
  margin-bottom: 8px;
}

.policy a {
  color: #3f7062;
}

/* MINDFUL MOMENT GAMES */
.games .columns {
  margin-top: 10px;
}

.game {
  display: flex;
  flex-direction: column;
}

.game .actions {
  margin-top: auto;
}

.game-message {
  min-height: 3.2em;
  font-weight: 700;
  color: #435957;
}

.heron-count {
  width: 150px;
  height: 150px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: #e7f0eb;
  border: 4px solid #91b6a0;
  display: grid;
  place-items: center;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 3.6rem;
  font-weight: 600;
  color: #3f6b5f;
}

.heron-count.done {
  font-size: 2rem;
  background: #f5d9d4;
  border-color: #d3a49a;
  color: #755958;
  animation: heron-pop .5s ease-out;
}

@keyframes heron-pop {
  0% { transform: scale(.8); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .heron-count.done { animation: none; }
}

.weather-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px;
}

.weather-btn {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid #8c7f7a;
  border-radius: 999px;
  background: #fff;
  color: #435957;
  font-weight: 800;
}

.weather-btn:hover {
  background: #f4f5ed;
}

.weather-btn[aria-pressed="true"] {
  background: #4a7a6c;
  border-color: #4a7a6c;
  color: #fff;
}

/* What's Your Weather: each choice is a little picture of that weather with its name */
#ww-choose .weather-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

#ww-choose .weather-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px 6px 8px;
  border-radius: 16px;
  text-align: center;
  line-height: 1.2;
}

#ww-choose .weather-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 360;
  border-radius: 10px;
}

#ww-choose .weather-btn:focus-visible {
  outline: 4px solid #2d4a43;
  outline-offset: 3px;
}

.ww-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
}

.calm-toggle[aria-pressed="true"] {
  background: #4a7a6c;
  color: #fff;
}


/* Make sure anything marked hidden stays hidden (the .btn style was overriding it,
   so "Stop" buttons showed before a game started) */
[hidden] {
  display: none !important;
}


/* MINDFULNESS CARDS PAGE */
.calm-art img {
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  max-width: 440px;
}

.benefits .panel h3 {
  font-size: 1.3rem;
}

.decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
}

.deck {
  display: flex;
  flex-direction: column;
  background: #fffefd;
  border: 1px solid #efe0db;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(126, 106, 99, 0.10);
}

.deck-art img {
  display: block;
  width: 100%;
  height: auto;
}

.deck-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
}

.deck-content h3 {
  margin-bottom: 4px;
}

.deck-tagline {
  font-weight: 800;
  color: #7a625c;
}

.deck-label {
  font-weight: 800;
  margin-bottom: 4px;
}

.deck-content ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.deck-how {
  flex: 1;
}

.deck-content .quiet {
  margin: 8px 0 0;
}

@media (max-width: 800px) {
  .decks {
    grid-template-columns: 1fr;
  }

  .activity-hero .calm-art img {
    height: auto;
    max-width: 260px;
    margin: 0 auto;
  }
}


.benefits .panel p {
  margin-bottom: 0;
}

/* TIGHTER SPACING between content blocks (about a third less than before) */
section {
  padding: 52px 0;
}

.hero-grid {
  padding: 56px 0;
}

.sectionhead {
  margin-bottom: 22px;
}

.activity-hero {
  padding: 28px 0 36px;
}

.mission {
  padding: 36px 0;
}

.mission .panel {
  margin-bottom: 18px;
}

.bottomnav {
  padding: 22px 0 6px;
}

.thanks {
  padding: 32px 0 52px;
}

@media (max-width: 800px) {
  .hero .hero-grid {
    padding: 22px 0 36px;
  }

  .activity-hero {
    padding: 16px 0 24px;
  }

  .mission {
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  section {
    padding: 36px 0;
  }
}

/* MINDFULNESS CONTENT (from itty bitty pause): soft purple so it's
   clearly separate from the woodland adventures */
:root {
  --mindful: #6a4f8f;
  --mindful-btn: #7a5fa3;
  --mindful-btn-hover: #654b8c;
  --mindful-pale: #f3eef9;
  --mindful-line: #b9a5d6;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fffefd;
  border: 2px solid var(--mindful-line);
  color: var(--mindful);
  font-weight: 800;
  text-decoration: none;
}

.jump-links a:hover {
  background: var(--mindful-pale);
}

.mindful-zone {
  background: linear-gradient(180deg, var(--mindful-pale), #f8f4fb);
}

.mindful-zone h2,
.mindful-eyebrow {
  color: var(--mindful);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 26px;
}

.mindful-card {
  border-color: #e4daf1;
}

.mindful-card .card-art {
  border-bottom-color: #e4daf1;
}

.mindful-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mindful-pale);
  color: var(--mindful);
  font-weight: 900;
  font-size: .85rem;
}

.btn.mindful-btn {
  background: var(--mindful-btn);
  color: #fff;
}

.btn.mindful-btn:hover {
  background: var(--mindful-btn-hover);
}

/* Kids yoga: click-to-play video cards (YouTube loads only after a click) */
.yoga-preview {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 22px;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #2f2640;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(106, 79, 143, .92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .15s;
}

.play-button::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 22px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
}

.video-facade:hover .play-button,
.video-facade:focus-visible .play-button {
  transform: scale(1.08);
}

.video-facade:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 3px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #2f2640;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mindfulness activity pages */
.mindful-hero {
  background: linear-gradient(110deg, #f3eef9, #fbf7fd 50%, #f1ecf7);
}

.mindful-hero h1 {
  color: #4f3b6e;
}

.mindful-hero .tags {
  gap: 8px;
}

.mindful-intro p {
  font-size: 1.05rem;
}

.mindful-panel {
  border-left: 5px solid var(--mindful-line);
}

.mindful-panel h2,
.mindful-more h2,
.printable h2 {
  color: var(--mindful);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.mindful-panel ul,
.mindful-panel ol {
  padding-left: 26px;
}

.printable,
.mindful-more {
  background: var(--mindful-pale);
  border-color: #e4daf1;
}


@media (max-width: 800px) {
  .yoga-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* Video cards keep the full-width video instead of the compact phone card */
  .card.video-card {
    flex-direction: column;
  }
}

/* BRIDGE TO ITTY BITTY PAUSE
   Lavender replaces the blush tints as the supporting colour, and purple
   matches the shop's violet, while sage green stays the woodland base. */
:root {
  --mindful: #573a94;
  --mindful-btn: #6a42b8;
  --mindful-btn-hover: #58359b;
  --mindful-pale: #f1eff5;
  --mindful-line: #b8a6dc;
}

body {
  background-image: radial-gradient(circle at 6% 7%, #ece6f6 0, transparent 22%), radial-gradient(circle at 90% 28%, #eef3ed 0, transparent 19%);
}

.hero {
  background: linear-gradient(112deg, #f1edf8 1%, #fbf8f6 43%, #e9f2ec 100%);
}

.activity-hero {
  background: linear-gradient(105deg, #f1edf8, #fdf9f6 48%, #e8f1ec);
}

.feature {
  background: linear-gradient(110deg, #efe9f7, #f4f3ef, #e7f0eb);
}

.soft {
  background: #f6f3f9;
}

.hero:before {
  color: #b8a6dc;
}

.mindful-hero h1 {
  color: #47307a;
}

/* "Shop calm cards" in the menu: a little violet pill */
.nav-links a.nav-shop {
  align-self: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #6a42b8;
  color: #fff;
}

.nav-links a.nav-shop:hover {
  background: #58359b;
  color: #fff;
  text-decoration: none;
}

/* Buttons that lead towards the shop use the shop's violet */
.btn.shop-btn {
  background: #6a42b8;
  color: #fff;
}

.btn.shop-btn:hover {
  background: #58359b;
}

/* Homepage card-deck section */
.shop-promo {
  background: linear-gradient(110deg, #f1eff5, #f7f4fa 55%, #eef3ef);
}

.shop-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.shop-promo-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shop-promo-photos img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(87, 58, 148, .14);
}

.shop-promo-photos img:last-child {
  margin-top: 36px;
}

.shop-promo h2,
.shop-eyebrow,
.take-calm-home h2 {
  color: #573a94;
}

/* "Take the calm home" panel on woodland activity pages */
.take-calm-home {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  background: #f1eff5;
  border-color: #e2daf1;
}

.take-calm-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.take-calm-home p {
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .shop-promo-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .take-calm-home {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .take-calm-art {
    max-width: 260px;
  }

  /* Three menu links: let them wrap naturally instead of the 2 x 2 grid */
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }
}

/* HOMEPAGE LOWER SECTIONS: three clearly different treatments
   so they don't blend together. */

/* 1. A little calm in the wild: a sage green band */
.feature {
  background: linear-gradient(115deg, #e3eee6, #edf3ea 55%, #e1ece4);
}

/* 2. A note for grown-ups: a white note card on the plain cream page */
section.grownup-note {
  background: transparent;
}

.grownup-note > .wrap {
  max-width: 920px;
  padding: 34px 38px;
  background: #fffefd;
  border: 1px solid #e3ebe4;
  border-left: 6px solid #6c9a8c;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(126, 106, 99, 0.08);
}

.grownup-note > .wrap h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

/* 3. Little cards for big feelings: a soft lavender band with a crayon
   flower border along the bottom; the violet button still points to the shop */
.shop-promo {
  position: relative;
  padding-bottom: 120px;
  background: linear-gradient(115deg, #ebe4f6, #f3eefa 55%, #e9e2f5);
}

.shop-promo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: url("crayon-flowers.svg") repeat-x center bottom / auto 96px;
  /* hide the faint line browsers draw along the drawing's top edge */
  -webkit-mask-image: linear-gradient(transparent 4px, #000 12px);
  mask-image: linear-gradient(transparent 4px, #000 12px);
  pointer-events: none;
}

.shop-promo-photos img {
  box-shadow: 0 12px 28px rgba(87, 58, 148, .2);
  border: 6px solid #fff;
}

@media (max-width: 560px) {
  .grownup-note > .wrap {
    padding: 24px 22px;
  }
}

/* Footer: text on the left, social icons on the right */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-text {
  margin: 0;
}

.social {
  display: flex;
  gap: 10px;
}

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 253, 247, .14);
  color: #fffdf7;
  transition: background .15s;
}

.footer .social a:hover {
  background: rgba(255, 253, 247, .28);
}

/* POLICY PAGES (terms, privacy): comfortable reading width */
.policy {
  max-width: 760px;
}

.policy .policy-section {
  padding: 0;
  margin-bottom: 30px;
}

.policy-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 10px;
}

.policy ul {
  padding-left: 26px;
}

.policy li {
  margin-bottom: 8px;
}

.policy a {
  color: #3f7062;
}

/* Page not found */
.not-found {
  padding: 48px 0 64px;
}

/* Phones: "Shop calm cards" is a violet text link on the same line as
   the other menu links, instead of a big button on its own line */
@media (max-width: 560px) {
  .nav-links {
    gap: 0 14px;
  }

  .nav-links a.nav-shop {
    min-height: 44px;
    padding: 0;
    background: none;
    color: #6a42b8;
  }

  .nav-links a.nav-shop:hover {
    background: none;
    color: #58359b;
    text-decoration: underline;
  }
}

/* Forest breathing: Start/Stop sit centred under the circle */
.breath-actions {
  justify-content: center;
  margin-top: 4px;
}

/* CALM-DOWN GAMES (dandelion wishes, still as a heron, what's your weather) */
.game-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.game-stage svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.game-stage-dandelion svg {
  aspect-ratio: 640 / 400;
  background: linear-gradient(180deg, #fdf7e8, #f8ebcf);
}

/* Dandelion: big Ready? / Breathe in / Blow softly cues in the sky beside the flower */
.game-stage-dandelion {
  width: 100%;
}

/* The cue sits inside the picture itself, never over the calm motion note below it */
.dw-picture {
  position: relative;
  container-type: inline-size;
}

.dw-cue {
  position: absolute;
  right: 3%;
  bottom: 5%;
  margin: 0;
  padding: .3em .9em;
  border-radius: 999px;
  background: var(--mindful-btn);
  color: #fff;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: clamp(1rem, 5.6cqi, 2rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(74, 52, 110, .22);
  transform-origin: 100% 100%;
  pointer-events: none;
}

.dw-cue[hidden] {
  display: none;
}

.dw-cue.blow {
  background: #4a7a6c;
}

.dw-cue.pop {
  animation: status-pop .7s ease-out;
}

.dw-cue.inhale {
  animation: status-inhale var(--inhale, 4s) ease-in-out forwards;
}

.calm-motion .dw-cue {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .dw-cue {
    animation: none;
  }
}

/* Speaker button beside Start: turns Read aloud on and off */
.speak-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.speak-toggle .speak-waves {
  display: none;
}

.speak-toggle[aria-pressed="true"] {
  background: var(--mindful-btn);
  color: #fff;
}

.speak-toggle[aria-pressed="true"] .speak-waves {
  display: inline;
}

.speak-toggle[aria-pressed="true"] .speak-off {
  display: none;
}

.speak-state {
  font-weight: 900;
}

/* After each wish: two big, easy choices */
.dw-choices {
  justify-content: center;
  margin-top: 0;
}

.dw-choices[hidden] {
  display: none;
}

.dw-choices .btn {
  min-height: 60px;
  padding-left: 26px;
  padding-right: 26px;
  font-size: 1.25rem;
}

.game-controls {
  text-align: center;
}

.game-status {
  min-height: 3.2em;
  margin: 14px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #435957;
}

.game-actions {
  justify-content: center;
  margin-top: 0;
}

.wish-count {
  margin: 0;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #3f6b5f;
}

.fun-fact {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-radius: 20px;
  background: #fff6e0;
  border: 2px solid #f1d58c;
}

.fun-fact h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #7a5a12;
}

.fun-fact p {
  margin: 0;
  font-size: 1.1rem;
}

.game-options .option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.game-options .option label {
  font-weight: 800;
}

.game-options input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex: none;
  accent-color: #4a7a6c;
}

.game-options .option:has(select) {
  flex-direction: column;
  gap: 6px;
}

/* Panels in two columns may shrink, so a long speed menu can't push them wider than a small phone */
.columns > * {
  min-width: 0;
}

.game-options select {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid #8c7f7a;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: #435957;
}

.option-hint {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: #5b6c67;
}

#read-steps {
  margin-top: 4px;
}

/* Dandelion (artwork: assets in the page's inline SVG, 640 x 400).
   Ready: small head. Breathe in: the head grows around (305, 150), where it meets the stem.
   Blow softly: the fine fluff fades and six seeds drift off to the right; the seed base stays. */
.dandelion-art #dw-head {
  transform-box: view-box;
  transform-origin: 305px 150px;
  transform: scale(.82);
  transition: transform var(--t, 4s) ease-in-out;
}

.dandelion-art.inhale #dw-head {
  transform: scale(1);
}

.dandelion-art #dw-fluff {
  transition: opacity var(--t, 4s) ease-out .2s;
}

.dandelion-art.release #dw-fluff {
  opacity: 0;
}

.dandelion-art [id^="dw-seed-"] {
  transform-box: view-box;
}

.dandelion-art.release [id^="dw-seed-"] {
  animation: var(--release, 7s) ease-in-out both;
}

.dandelion-art.release #dw-seed-1 { animation-name: dw-seed-1; animation-delay: .35s; }
.dandelion-art.release #dw-seed-2 { animation-name: dw-seed-2; animation-delay: .2s; }
.dandelion-art.release #dw-seed-3 { animation-name: dw-seed-3; animation-delay: .5s; }
.dandelion-art.release #dw-seed-4 { animation-name: dw-seed-4; animation-delay: 0s; }
.dandelion-art.release #dw-seed-5 { animation-name: dw-seed-5; animation-delay: .65s; }
.dandelion-art.release #dw-seed-6 { animation-name: dw-seed-6; animation-delay: .8s; }

/* Seed 4 is the easy one to follow: a slow, gentle arc through the open space on the right */
@keyframes dw-seed-4 {
  0% { translate: 0 0; opacity: 1; }
  30% { translate: 62px -34px; }
  60% { translate: 138px -48px; opacity: 1; }
  100% { translate: 214px -26px; opacity: 0; }
}

@keyframes dw-seed-1 {
  0% { translate: 0 0; opacity: 1; }
  55% { translate: 118px -42px; opacity: .9; }
  100% { translate: 205px -52px; opacity: 0; }
}

@keyframes dw-seed-2 {
  0% { translate: 0 0; opacity: 1; }
  55% { translate: 104px -26px; opacity: .9; }
  100% { translate: 196px -34px; opacity: 0; }
}

@keyframes dw-seed-3 {
  0% { translate: 0 0; opacity: 1; }
  55% { translate: 92px -18px; opacity: .9; }
  100% { translate: 178px -12px; opacity: 0; }
}

@keyframes dw-seed-5 {
  0% { translate: 0 0; opacity: 1; }
  55% { translate: 84px -14px; opacity: .9; }
  100% { translate: 168px -30px; opacity: 0; }
}

@keyframes dw-seed-6 {
  0% { translate: 0 0; opacity: 1; }
  55% { translate: 92px 4px; opacity: .9; }
  100% { translate: 176px -14px; opacity: 0; }
}

/* Reset between rounds: everything jumps back to the start without animating */
.dandelion-art.dw-reset #dw-head,
.dandelion-art.dw-reset #dw-fluff {
  transition: none;
}

/* Calm motion, or the device asks for less motion: still poses only.
   Ready = small head, Breathe in = full head, release = the seed base alone */
.calm-motion .dandelion-art #dw-head,
.calm-motion .dandelion-art #dw-fluff {
  transition: none;
}

.calm-motion .dandelion-art.release [id^="dw-seed-"] {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dandelion-art #dw-head,
  .dandelion-art #dw-fluff {
    transition: none;
  }

  .dandelion-art.release [id^="dw-seed-"] {
    animation: none;
    opacity: 0;
  }
}

/* Heron (Pond Stories): visitors appear on their own while you stay still */
.game-stage-heron {
  position: relative;
}

/* The pond keeps its picture shape, but grows taller if a big bubble needs the room
   (the art fills it either way), so words are never cut off */
.pond-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  aspect-ratio: 650 / 390;
  padding: 10px;
  border-radius: 22px;
  background: #dbe2cc;
  container-type: inline-size;
}

.game-stage .pond-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.pond-label {
  align-self: flex-start;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fbf8e9;
  color: #2d4b3b;
  font-size: .85rem;
  font-weight: 800;
}

/* What just appeared: wraps inside the pond at any width or text size */
.pond-sighting {
  align-self: center;
  max-width: 100%;
  margin: 0;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(37, 60, 53, .93);
  color: #fff;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: clamp(.95rem, 3.4cqi, 1.2rem);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: break-word;
}

.pond-sighting[hidden] {
  display: none;
}

.pond-phase {
  margin: 0;
  color: #5d7268;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pond-heading {
  margin: 4px 0 12px;
}

.pond-visitor {
  opacity: 0;
}

.pond-visitor.shown {
  opacity: 1;
  animation: pond-arrive .45s ease-out;
}

#ps-mist.shown {
  opacity: .65;
  animation: pond-mist 2.5s ease-out both;
}

/* The fish glides about 50 units over six seconds, then stays */
#ps-fish.shown {
  animation: pond-fish 6s ease-out both;
}

@keyframes pond-arrive {
  from { opacity: 0; transform: translateX(18px); }
}

@keyframes pond-mist {
  from { opacity: .8; transform: translateY(11px); }
  to { opacity: .65; transform: translateY(0); }
}

@keyframes pond-fish {
  from { opacity: .6; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.game-controls .heron-count {
  margin: 0 auto;
}

/* Weather game */

.game-controls .weather-choices {
  justify-content: center;
}

/* Calm motion: no moving pictures; the words still guide the game */
.calm-motion .pond-visitor.shown,
.calm-motion #ps-mist.shown,
.calm-motion #ps-fish.shown {
  animation: none;
}

.calm-motion .heron-count.done {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .pond-visitor.shown,
  #ps-mist.shown,
  #ps-fish.shown {
    animation: none;
  }
}

@media (max-width: 800px) {
  .game-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Game and mindfulness cards: a 4:3 picture box to match the drawings, so they aren't cut off.
   The odd-shaped ones are framed to keep their important parts in view. */
.game-card .card-art,
.mindful-card .card-art {
  height: auto;
  aspect-ratio: 4 / 3;
}

.game-card .card-art img {
  object-fit: cover;
}

.game-card .card-art img[src$="dandelion.svg"] { object-position: 50% 28%; }
.game-card .card-art img[src$="raindrops.svg"] { object-position: 50% 45%; }

.game-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f0eb;
  color: #3f6b5f;
  font-weight: 900;
  font-size: .85rem;
}

/* A button that can't be pressed right now looks faded */
.btn:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
}

/* Note shown under the game picture while calm motion is on */
.calm-note {
  display: none;
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #e7f0eb;
  color: #3f6b5f;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
}

.calm-motion .calm-note {
  display: block;
}

.calm-note button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #2d4a43;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  min-height: 24px;
}


/* LEAF IT BEHIND: make a leaf, breathe with a buddy, let it go */
.leaf-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
}

.leaf-step {
  text-align: left;
}

.leaf-step-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.leaf-step-title:focus {
  outline: none;
}

.leaf-step-title:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 4px;
}

.choices-label {
  margin: 16px 0 8px;
  font-weight: 800;
  text-align: left;
}

.leaf-step > .choices-label:first-of-type {
  margin-top: 0;
}

.feeling-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feeling-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.face-icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.own-feeling {
  margin-top: 14px;
  text-align: left;
}

.own-feeling label {
  font-weight: 800;
}

.own-feeling-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.own-feeling input {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #8c7f7a;
  border-radius: 14px;
  font: inherit;
  color: #435957;
  background: #fff;
}

.own-feeling input:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 2px;
}

/* Shape, colour, buddy and pen choices: big, rounded, clearly "picked" */
.leaf-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaf-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 14px 6px 8px;
  border: 2px solid #d6e4dc;
  border-radius: 999px;
  background: #fff;
  color: #2e3b2c;
  font: 800 .95rem/1.1 Nunito, system-ui, sans-serif;
  cursor: pointer;
}

.leaf-opt:hover {
  border-color: #9cc3a4;
}

.leaf-opt[aria-pressed="true"] {
  border-color: #3f6b55;
  background: #e4efe9;
  box-shadow: inset 0 0 0 1px #3f6b55;
}

.leaf-opt svg {
  width: 26px;
  height: 34px;
  fill: #8cc06f;
  stroke: #5c9150;
  stroke-width: 8;
}

.swatch {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15);
}

.buddy-pic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4efe6 no-repeat center / 30px 30px;
}

.buddy-pic-fox { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -82 80 86'%3E%3Ccircle cx='-4' cy='-50' r='14' fill='%23d9803f'/%3E%3Cpath d='M-14 -58 L-17 -76 L-5 -63 Z M2 -63 L8 -78 L12 -58 Z' fill='%23d9803f'/%3E%3Cpath d='M-12 -46 Q-22 -44 -26 -48 Q-22 -39 -10 -39 Z' fill='%23f6e7d6'/%3E%3Ccircle cx='-26' cy='-48' r='2.4' fill='%232d2420'/%3E%3Cpath d='M-10 -53 q2.5 2 5 0 M1 -53 q2.5 2 5 0' stroke='%232d2420' stroke-width='1.8' fill='none'/%3E%3Cellipse cx='0' cy='-22' rx='16' ry='21' fill='%23d9803f'/%3E%3Cellipse cx='-4' cy='-19' rx='8' ry='14' fill='%23f6e7d6'/%3E%3C/svg%3E"); }
.buddy-pic-hedgehog { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-42 -42 76 46'%3E%3Cpath d='M-26 0 C-28 -22 -14 -36 4 -36 C22 -36 32 -22 30 0 Z' fill='%237a5a3e'/%3E%3Cpath d='M-26 0 C-30 -8 -30 -16 -22 -22 C-14 -20 -10 -10 -10 0 Z' fill='%23e6c9a0'/%3E%3Cpath d='M-26 -14 Q-36 -12 -38 -8 Q-32 -6 -26 -6 Z' fill='%23e6c9a0'/%3E%3Ccircle cx='-38' cy='-8' r='2.6' fill='%232d2420'/%3E%3Cpath d='M-22 -15 q2.5 2 5 0' stroke='%232d2420' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); }
.buddy-pic-owl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-26 -60 52 62'%3E%3Cellipse cx='0' cy='-26' rx='19' ry='25' fill='%239a7350'/%3E%3Cellipse cx='0' cy='-20' rx='12' ry='16' fill='%23e8d2b0'/%3E%3Cpath d='M-15 -46 L-19 -58 L-8 -50 Z M15 -46 L19 -58 L8 -50 Z' fill='%239a7350'/%3E%3Ccircle cx='-7' cy='-40' r='7.5' fill='%23fffaf0'/%3E%3Ccircle cx='7' cy='-40' r='7.5' fill='%23fffaf0'/%3E%3Cpath d='M-10 -40 q3 2.4 6 0 M4 -40 q3 2.4 6 0' stroke='%232d2420' stroke-width='1.9' fill='none'/%3E%3Cpath d='M-3 -34 L0 -28 L3 -34 Z' fill='%23e8a33a'/%3E%3C/svg%3E"); }

/* Drawing on the leaf */
.leaf-draw {
  margin-top: 16px;
  padding: 10px 14px;
  border: 2px dashed #c9dccd;
  border-radius: 18px;
  background: #fbfdf8;
}

.leaf-draw summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
}

.leaf-draw summary:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 2px;
}

.leaf-draw-hint {
  margin: 0 0 8px;
  font-size: .95rem;
}

.leaf-pad {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.leaf-pens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.leaf-pen {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #d6e4dc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.leaf-pens .btn {
  min-height: 44px;
}

.leaf-pen[aria-pressed="true"] {
  border-color: #3f6b55;
  box-shadow: 0 0 0 2px #3f6b55;
}

.privacy-note {
  margin: 14px 0 0;
  font-size: .88rem;
  color: #5b6c67;
}

.leaf-hint {
  margin: 0 0 4px;
}

.leaf-let-go {
  min-width: 170px;
}

.leaf-go-actions .btn,
.leaf-end-choices .btn {
  min-height: 52px;
  font-size: 1.05rem;
}

.leaf-link {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #2d4a43;
  font: 800 .95rem Nunito, system-ui, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.leaf-link[aria-disabled="true"],
.leaf-opt[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

.leaf-end-choices {
  flex-direction: column;
  align-items: stretch;
  max-width: 340px;
}

.leaf-end-choices .btn[aria-pressed="true"] {
  box-shadow: inset 0 0 0 3px #3f6b55;
}

.leaf-reminder {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #e7f0eb;
  border-left: 5px solid #6c9a8c;
  text-align: left;
}

.leaf-reminder p {
  margin: 0;
  font-weight: 700;
  color: #3f5f58;
}

/* The play area: the picture and what to do next stay together */
.leaf-play {
  text-align: center;
  scroll-margin-top: 12px;
}

.leaf-play .fun-fact {
  margin-top: 14px;
  text-align: left;
}

.game-stage-leaf {
  position: relative;
}

/* One breathing instruction at a time, beside the leaf */
.leaf-cue {
  position: absolute;
  top: 3%;
  left: 72%;
  max-width: 44%;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 246, .95);
  box-shadow: 0 4px 12px rgba(60, 50, 80, .15);
  color: #5a3d99;
  font: 600 clamp(.95rem, 2.6vw, 1.35rem)/1.2 Fredoka, system-ui, sans-serif;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Where the leaf can be grabbed and dragged */
.leaf-grab {
  position: absolute;
  left: 57%;
  top: 40%;
  width: 26%;
  height: 54%;
  border-radius: 40%;
  cursor: grab;
  touch-action: none;
}

.leaf-grab:active {
  cursor: grabbing;
}

/* The leaf hangs from its branch by the stem and turns around the stem's tip */
.leaf {
  transform: translate(420px, 143px);
  transform-origin: 0 0;
}

.leaf.held {
  filter: drop-shadow(0 6px 6px rgba(40, 60, 40, .25));
}

/* Breathing glow: grows while you breathe in, fades while you breathe out */
.leaf-cue-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: .6;
  transition: scale 4s ease-in-out, opacity 1.2s ease;
}

.cue-in .leaf-cue-ring {
  opacity: .55;
  scale: 1.1;
}

.cue-out .leaf-cue-ring {
  opacity: 0;
  scale: .7;
  transition: scale 5s ease-in-out, opacity 5s ease-in-out;
}

/* The buddy breathes too */
.buddy-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: scale 5s ease-in-out;
}

.buddy.breathe-in .buddy-body {
  scale: 1.09;
  transition-duration: 4s;
}

/* A little life in the woods: swaying grass, a butterfly now and then, a peeking bunny */
.amb-grass {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: amb-sway 5s ease-in-out infinite alternate;
}

.amb-grass:nth-of-type(even) {
  animation-delay: -2.5s;
}

@keyframes amb-sway {
  from { rotate: -4deg; }
  to { rotate: 4deg; }
}

.amb-butterfly {
  translate: -40px 250px;
  animation: amb-fly 30s linear 6s infinite;
}

@keyframes amb-fly {
  0% { translate: -40px 250px; }
  6% { translate: 80px 218px; }
  12% { translate: 200px 236px; }
  18% { translate: 320px 206px; }
  24% { translate: 460px 228px; }
  30%, 100% { translate: 660px 196px; }
}

.amb-butterfly-wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: amb-flap .3s ease-in-out infinite alternate;
}

@keyframes amb-flap {
  to { scale: .45 1; }
}

.amb-bunny {
  opacity: 0;
  translate: 0 18px;
  animation: amb-peek 34s ease-in-out 12s infinite;
}

@keyframes amb-peek {
  0%, 84%, 100% { opacity: 0; translate: 0 18px; }
  88%, 96% { opacity: 1; translate: 0 0; }
}

.calm-motion .leaf-cue-ring,
.calm-motion .buddy-body,
.calm-motion .amb-grass,
.calm-motion .amb-butterfly-wings,
.calm-motion .amb-bunny {
  transition: none;
  animation: none;
}

.calm-motion .amb-butterfly {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .leaf-cue-ring,
  .buddy-body,
  .amb-grass,
  .amb-butterfly-wings,
  .amb-bunny {
    transition: none;
    animation: none;
  }

  .amb-butterfly {
    display: none;
  }
}

/* After the leaf is made, the leaf and its buttons take the middle */
.leaf-panel:not(.making) {
  grid-template-columns: minmax(0, min(620px, calc((100svh - 300px) * 1.5)));
  justify-content: center;
}

@media (max-width: 600px) {
  .leaf-panel:not(.making) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.leaf-play .leaf-step {
  margin-top: 6px;
  text-align: center;
}

.leaf-play .leaf-step .actions {
  justify-content: center;
  margin-top: 12px;
}

.leaf-play .leaf-end-choices {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: none;
}

@media (max-width: 600px) {
  .leaf-play .leaf-end-choices {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Wide screens: while choosing, the leaf and its button stay in view beside the choices */
@media (min-width: 601px) and (min-height: 600px) {
  .leaf-panel.making .leaf-play {
    position: sticky;
    top: 12px;
  }
}

/* Tablets: still side by side, with a little less room for the picture */
@media (min-width: 601px) and (max-width: 800px) {
  .leaf-panel.making {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 18px;
  }

  .leaf-opt {
    padding-right: 10px;
    font-size: .9rem;
  }
}

/* Phones: one column */
@media (max-width: 600px) {
  .leaf-panel,
  .leaf-panel.making {
    grid-template-columns: 1fr;
  }
}

/* Tall phone screens: the leaf and its button stay pinned at the top while you choose */
@media (max-width: 600px) and (max-aspect-ratio: 2/3) {
  .leaf-panel.making .leaf-play {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -8px;
    padding: 8px 8px 2px;
    background: #fffefc;
    box-shadow: 0 10px 12px -12px rgba(60, 50, 80, .35);
  }

  .leaf-panel.making .leaf-play .game-status {
    margin: 8px 0 4px;
    padding: 6px 12px;
    font-size: 1rem;
  }

  .leaf-panel.making .leaf-make-actions .actions {
    margin: 4px 0 6px;
  }
}

/* Calm-down games: three across on wide screens, two across on tablets */
@media (min-width: 561px) and (max-width: 1000px) {
  #calm-games .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
  transform: none;
}

/* Calm-down games: what to do next, in a bright bubble that pops when it changes */
.game-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 12px 0;
  padding: 12px 18px;
  border: 3px solid var(--mindful-line);
  border-radius: 20px;
  background: var(--mindful-pale);
  color: var(--mindful);
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.game-status.cue {
  border-color: var(--mindful-btn);
  background: var(--mindful-btn);
  color: #fff;
  font-size: 1.55rem;
}

.game-status.pop {
  animation: status-pop .7s ease-out;
}

.game-status.inhale {
  animation: status-inhale var(--inhale, 3s) ease-in-out forwards;
}

@keyframes status-pop {
  0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(106, 66, 184, .5); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(106, 66, 184, 0); }
}

/* Grows slowly, like breathing in */
@keyframes status-inhale {
  0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(106, 66, 184, .45); }
  100% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(106, 66, 184, .12); }
}

.calm-motion .game-status.pop,
.calm-motion .game-status.inhale {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .game-status.pop,
  .game-status.inhale {
    animation: none;
  }
}

@media (max-width: 800px) {
  .game-status {
    font-size: 1.15rem;
  }

  .game-status.cue {
    font-size: 1.35rem;
  }
}

/* Lucky Clover Hunt: a meadow of clovers and flowers to search */
.clover-field {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 22px;
  /* A busy patch of faint clover leaves behind everything makes the hunt trickier */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg transform='translate%2830 75%29 scale%280.77%29' fill='%235b8f52' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28278%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28398%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28518%29'/%3E%3C/g%3E%3Cg transform='translate%2860 80%29 scale%280.50%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28297%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28417%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28537%29'/%3E%3C/g%3E%3Cg transform='translate%28107 60%29 scale%280.80%29' fill='%236aa860' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28132%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28252%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28372%29'/%3E%3C/g%3E%3Cg transform='translate%2860 69%29 scale%280.69%29' fill='%235b8f52' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28281%29'/%3E%3C/g%3E%3Cg transform='translate%2819 29%29 scale%280.62%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28325%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28445%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28565%29'/%3E%3C/g%3E%3Cg transform='translate%281 85%29 scale%280.51%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%2832%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28152%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28272%29'/%3E%3C/g%3E%3Cg transform='translate%2899 3%29 scale%280.72%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28137%29'/%3E%3C/g%3E%3Cg transform='translate%28112 49%29 scale%280.74%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28218%29'/%3E%3C/g%3E%3Cg transform='translate%2856 119%29 scale%280.51%29' fill='%236aa860' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%2868%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28188%29'/%3E%3C/g%3E%3Cg transform='translate%2863 27%29 scale%280.76%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28132%29'/%3E%3C/g%3E%3Cg transform='translate%2853 64%29 scale%280.68%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28197%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28317%29'/%3E%3C/g%3E%3Cg transform='translate%2874 29%29 scale%280.80%29' fill='%235b8f52' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28172%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28292%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28412%29'/%3E%3C/g%3E%3Cg transform='translate%2885 89%29 scale%280.77%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%2883%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28203%29'/%3E%3C/g%3E%3Cg transform='translate%2872 13%29 scale%280.75%29' fill='%2388c078' opacity='.55'%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28335%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28455%29'/%3E%3Cpath d='M0 0 C-11 -3 -17 -14 -12 -21 C-8 -26 -2 -24 0 -19 C2 -24 8 -26 12 -21 C17 -14 11 -3 0 0 Z' transform='rotate%28575%29'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
    linear-gradient(160deg, #a9d395, #86bb77);
}

.clover-cell {
  aspect-ratio: 1;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: opacity .3s, background-color .3s;
}

.clover-cell svg {
  display: block;
  width: 100%;
  height: 100%;
}

.clover-cell:hover {
  background: rgba(255, 255, 255, .3);
}

.clover-cell:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: -2px;
}

/* Already checked, so children can see where they've looked */
.clover-cell.checked {
  opacity: .55;
}

.clover-cell.hinted {
  background: rgba(255, 238, 150, .6);
  animation: hint-glow 1.6s ease-in-out infinite;
}

.clover-cell.found {
  opacity: 1;
  background: radial-gradient(circle, #fff7c2 30%, rgba(255, 230, 120, .7) 70%);
  box-shadow: 0 0 0 4px #f2c94c;
  animation: clover-found .8s ease-out;
}

.clover-field.done .clover-cell:not(.found) {
  opacity: .35;
}

@keyframes hint-glow {
  0%, 100% { background: rgba(255, 238, 150, .35); }
  50% { background: rgba(255, 238, 150, .8); }
}

@keyframes clover-found {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-8deg); }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1.2); }
}

.clover-cell.found {
  transform: scale(1.2);
  position: relative;
  z-index: 1;
}

.calm-motion .clover-cell.hinted,
.calm-motion .clover-cell.found {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .clover-cell.hinted,
  .clover-cell.found {
    animation: none;
  }
}

.clover-panel .wish-count {
  margin-bottom: 4px;
}

@media (max-width: 560px) {
  .clover-field {
    gap: 0;
    padding: 6px;
  }
}

/* Step-by-step missions (Five Senses Safari): each step is its own soft card */
.panel .safari-steps {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.panel .safari-steps > li {
  margin: 0;
}

.safari-step {
  padding: 18px 22px;
  border: 1px solid #dbe8df;
  border-left: 5px solid #8db3a1;
  border-radius: 18px;
  background: #f6faf3;
}

.safari-step h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  color: var(--forest);
}

.safari-step p {
  margin: 0 0 8px;
}

.safari-step ul {
  margin: 4px 0 10px;
}

.safari-step ul li {
  margin-bottom: 4px;
}

.safari-step > :last-child {
  margin-bottom: 0;
}

.explorer-question {
  margin-top: 12px !important;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff6e0;
}

.step-safety {
  font-weight: 800;
  color: #8a4b1f;
}

.explorer-reminder {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--light);
}

.sense-list li {
  margin-bottom: 8px;
}

.share-adventure {
  margin-bottom: 22px;
  background: #f7f2fb;
  border-left: 5px solid #b9a5d6;
}

.share-adventure a {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.share-adventure > :last-child {
  margin-bottom: 0;
}

.parent-note p + p {
  margin-top: 10px;
}

.activity-hero .hero-lead {
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
}

@media (max-width: 560px) {
  .safari-step {
    padding: 16px 16px;
  }
}

/* "Little bushcraft secret" tips in step-by-step missions (Tiny Shelter Builder) */
.bushcraft-secret {
  margin-top: 12px !important;
  padding: 10px 14px;
  border: 2px dashed #8db3a1;
  border-radius: 12px;
  background: #eef6ee;
}

.safari-step .bushcraft-secret + .explorer-question,
.safari-step .explorer-question + .bushcraft-secret {
  margin-top: 10px !important;
}

.indoor-steps li {
  margin-bottom: 8px;
}

.parent-note ul {
  margin: 10px 0;
}

.parent-note ul li {
  margin-bottom: 6px;
}

/* Cloud Watching Club: the three cloud types, each in its own little card */
.panel .cloud-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
}

.panel .cloud-types > li {
  margin: 0;
}

.cloud-type {
  padding: 14px 16px;
  border: 1px solid #d6e4ef;
  border-radius: 16px;
  background: #f4f9fd;
}

.cloud-type h4 {
  margin: 0 0 8px;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.15rem;
  color: var(--forest);
}

.cloud-type p {
  margin: 0 0 6px;
}

.cloud-type p:last-child {
  margin-bottom: 0;
}

.indoor-subhead {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.parent-note .parent-skill + p {
  margin-top: 0;
}

@media (max-width: 800px) {
  .panel .cloud-types {
    grid-template-columns: 1fr;
  }
}

/* Animal Tracks Detective: the woodland suspects use the same cards in a warm, earthy tint */
.animal-suspects .cloud-type {
  border-color: #eadfcf;
  background: #fbf6ee;
}

/* Make a Mini Nature Map: map symbol ideas, each with a little picture and words */
.panel .map-symbols {
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
}

.panel .map-symbols li {
  margin-bottom: 6px;
}

.map-symbols span[aria-hidden] {
  display: inline-block;
  width: 1.6em;
  text-align: center;
}

/* Little Knot Challenge: the three little moves stand out */
.safari-step .knot-moves {
  margin: 6px 0 12px;
  font-weight: 800;
  color: var(--forest);
}

.safari-step .knot-moves li {
  margin-bottom: 4px;
}

/* Step-by-step picture posters on activity pages (Little Knot Challenge, Tiny Tripod Lashing) */
.knot-picture,
.how-to-picture {
  margin: 0 0 22px;
}

.knot-picture img,
.how-to-picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.picture-description {
  margin-top: 14px;
}

.picture-description summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--forest);
}

.picture-description ol {
  margin: 10px 0 0;
}

.picture-description li {
  margin-bottom: 8px;
}

.picture-bigger {
  margin: 10px 0 0;
  font-weight: 800;
}

@media (max-width: 560px) {
  .panel.knot-picture,
  .panel.how-to-picture {
    padding: 16px 8px;
  }

  .knot-picture h2,
  .knot-picture .picture-bigger,
  .knot-picture .picture-description,
  .how-to-picture h2,
  .how-to-picture .picture-bigger,
  .how-to-picture .picture-description {
    padding: 0 8px;
  }
}

/* Rainbow Nature Hunt: colour clue cards with a matching edge (each is also named in words) */
.colour-clues .colour-clue {
  border-color: #ece4dc;
  border-left-width: 6px;
  background: #fffdf9;
}

.colour-clues .colour-red { border-left-color: #d9534f; }
.colour-clues .colour-orange { border-left-color: #ee8b3a; }
.colour-clues .colour-yellow { border-left-color: #e9c23c; }
.colour-clues .colour-green { border-left-color: #5f9a58; }
.colour-clues .colour-blue { border-left-color: #4f8fd1; }
.colour-clues .colour-purple { border-left-color: #8f6bc7; }

/* Cards page: deck price and the photo gallery */
.deck-price {
  margin: 4px 0 12px;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.2rem;
  color: #6a42b8;
}

.deck-price strong {
  font-size: 1.6rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.photo-gallery figure {
  margin: 0;
}

.photo-gallery .photo-wide {
  grid-column: span 2;
}

.photo-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(126, 106, 99, 0.12);
}

.photo-gallery .photo-wide img {
  aspect-ratio: 3 / 2;
}

@media (max-width: 700px) {
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Weather Wise Explorer: the weather picture between the steps, wind clue cards and note subheadings */
.weather-clues-picture {
  margin: 16px 0;
}

.panel .wind-clues {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-note .note-subhead {
  margin: 18px 0 8px;
  font-size: 1.15rem;
  color: var(--forest);
}

@media (max-width: 800px) {
  .panel .wind-clues {
    grid-template-columns: 1fr;
  }
}

/* Cards page: price in the hero, deck choice details, checkout note and final choice */
.cards-hero .actions {
  margin-top: 16px;
}

.deck-eyebrow {
  margin: 0 0 6px;
  color: #6a42b8;
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.deck-detail {
  margin: 0 0 4px;
  font-weight: 800;
}

.checkout-note {
  margin: 10px 0 0;
  font-size: .88rem;
  color: #5d5068;
}

.deck-details .panel ul {
  margin-bottom: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.choice-card {
  padding: 22px 24px;
  border: 1px solid #e4daf1;
  border-radius: 22px;
  background: #fffefd;
}

.choice-card h3 {
  margin-bottom: 6px;
}

.adventure-with-art {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.adventure-with-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.adventure-with-art p {
  margin: 0;
}

@media (max-width: 600px) {
  .choice-row {
    grid-template-columns: 1fr;
  }

  .adventure-with-art {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .adventure-with-art img {
    max-width: 180px;
  }
}

.deck-currency {
  white-space: nowrap;
  font-family: Nunito, system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #5d5068;
}

/* Secret Sit Spot: roomy numbered steps and the "More little adventures" heading */
.sitspot-steps li {
  margin-bottom: 14px;
}

.sitspot-steps li:last-child {
  margin-bottom: 0;
}

.more-adventures {
  align-items: center;
}

.more-adventures h2 {
  flex-basis: 100%;
  margin: 0;
  font-size: 1.3rem;
}

/* Activity hero picture captions (Nature String Maker) */
.hero-image:has(.hero-caption) {
  flex-direction: column;
}

.hero-caption {
  margin: 10px 4px 0;
  font-size: .92rem;
  font-style: italic;
  color: #476052;
  text-align: center;
}

/* Optional nature variation panel */
.grass-variation {
  margin-bottom: 22px;
  background: #fbf8ec;
  border-left: 5px solid #d8c48a;
}

/* "Print this adventure" button on activity pages */
.print-btn {
  margin-top: 14px;
  border: 2px solid #8db3a1;
}

/* ===== PRINTABLE WOODLAND FIELD GUIDE =====
   Any activity page with a [data-print-guide] button prints as a field guide,
   built from the page's own content (edit the page and the printout updates).
   It follows the page's own order, which keeps the text full size in Chrome:
   guide title, activity, intro, buddy label, the activity picture beside
   what you'll need, mission steps, step-by-step poster, mindful moment,
   grown-up note, safety reminder. */
@page {
  margin: 0.6in 0.6in 0.7in;
}

/* Field guide pages carry the brand and website at the foot of every page */
@page field-guide {
  margin: 0.6in 0.6in 0.75in;

  @bottom-center {
    content: "itty bitty woodlands \00B7  ittybittywoodlands.com";
    color: #3f6b55;
    font: 9.5pt Nunito, system-ui, sans-serif;
  }
}

@media print {
  body:has([data-print-guide]) {
    background: #fff;
    color: #24352c;
    font-size: 12pt;
    line-height: 1.33;
  }

  /* Leave out everything that isn't part of the outdoor field guide */
  body:has([data-print-guide]) :is(.skip-link, header.top, footer.footer, .crumbs, .print-btn,
    .panel.indoor, .share-adventure, .take-calm-home, .bottomnav, .picture-bigger, .picture-description,
    .activity-video-panel) {
    display: none !important;
  }

  /* One simple column on paper */
  body:has([data-print-guide]) :is(.activity-hero, .activity-hero > .wrap, .hero-grid, .hero-grid > div:first-child, .wrap.mission) {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
  }

  body:has([data-print-guide]) main::before {
    content: "itty bitty woodlands \00B7  My Woodland Field Guide";
    display: block;
    padding-bottom: 6pt;
    border-bottom: 1.5pt solid #7aa483;
    color: #3f6b55;
    font: 700 11pt Fredoka, system-ui, sans-serif;
    letter-spacing: .04em;
  }


  body:has([data-print-guide]) main {
    page: field-guide;
  }

  /* Calm, ink-light type: white paper, earthy green headings, no coloured blocks */
  body:has([data-print-guide]) :is(h1, h2, h3, h4) {
    color: #2f5d46;
    break-after: avoid;
    page-break-after: avoid;
  }

  body:has([data-print-guide]) h1 {
    margin: 10pt 0 4pt;
    font-size: 24pt;
  }

  body:has([data-print-guide]) h2 {
    margin: 0 0 6pt;
    font-size: 15.5pt;
  }

  body:has([data-print-guide]) h3 {
    margin: 0 0 3pt;
    font-size: 13pt;
  }

  body:has([data-print-guide]) li {
    margin-bottom: 2pt;
  }

  /* The introduction reads as one short paragraph on paper */
  body:has([data-print-guide]) .hero-grid > div:first-child > p:not(.hero-lead) {
    display: inline;
    margin: 0;
  }

  body:has([data-print-guide]) .hero-grid > div:first-child > p:not(.hero-lead)::after {
    content: " ";
  }

  body:has([data-print-guide]) .hero-lead {
    margin: 0 0 4pt;
  }

  body:has([data-print-guide]) p,
  body:has([data-print-guide]) li {
    font-size: 12pt;
    orphans: 3;
    widows: 3;
  }

  body:has([data-print-guide]) .hero-lead {
    font-size: 14pt;
    color: #2f5d46;
  }

  body:has([data-print-guide]) .tags {
    margin: 8pt 0 10pt;
  }

  body:has([data-print-guide]) .tag {
    padding: 3pt 10pt;
    border: 1pt solid #7aa483;
    background: none;
    color: #2f5d46;
    font-size: 11pt;
  }

  body:has([data-print-guide]) :is(.panel, .parent-note, .notice) {
    margin: 0 0 10pt;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  /* What you'll need: a tick-box checklist */
  body:has([data-print-guide]) .wrap.mission > .panel:first-child ul {
    padding-left: 22pt;
    list-style: none;
  }

  body:has([data-print-guide]) .wrap.mission > .panel:first-child ul li::before {
    content: "\2610";
    display: inline-block;
    width: 22pt;
    margin-left: -22pt;
    font-size: 14pt;
  }

  body:has([data-print-guide]) .wrap.mission > .panel:has(.safari-steps) {
    clear: both;
  }

  /* Mission steps: a thin rule beside each step */
  /* Plain block layout on paper: grid and flex boxes can't split across pages in
     every browser (Safari and Firefox clip them), so steps would lose lines */
  body:has([data-print-guide]) :is(.safari-steps, .cloud-types, .photo-gallery) {
    display: block;
    gap: 0;
    margin: 0;
  }

  body:has([data-print-guide]) :is(.cloud-types, .photo-gallery) > * {
    margin-bottom: 8pt;
  }

  body:has([data-print-guide]) :is(main, .panel, .parent-note, .safari-step, figure) {
    overflow: visible;
  }

  body:has([data-print-guide]) .safari-step {
    padding: 3pt 0 3pt 12pt;
    border: 0;
    border-left: 2pt solid #7aa483;
    border-radius: 0;
    background: none;
    margin-bottom: 8pt;
  }

  /* A long step may continue on the next page, but never splits a tip box,
     a numbered list, or leaves its heading behind */
  body:has([data-print-guide]) .safari-step > :is(ul, ol) {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Short instruction sentences flow together as one paragraph on paper */
  body:has([data-print-guide]) .safari-step > p:not([class]) {
    display: inline;
    margin: 0;
  }

  body:has([data-print-guide]) .safari-step > p:not([class])::after {
    content: " ";
  }

  body:has([data-print-guide]) .safari-step > h3 + p:not([class])::before {
    content: "";
    display: block;
  }

  body:has([data-print-guide]) .safari-step > :is(ul, ol) {
    margin: 4pt 0;
  }

  /* Tips and questions: outlined, labelled boxes (no fills, so they work in black and white) */
  body:has([data-print-guide]) :is(.explorer-question, .bushcraft-secret, .explorer-reminder) {
    margin: 6pt 0 4pt !important;
    padding: 5pt 8pt;
    border: 1pt solid #b9cfc0;
    border-radius: 6pt;
    background: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body:has([data-print-guide]) .bushcraft-secret {
    border-style: dashed;
  }

  body:has([data-print-guide]) .step-safety {
    color: #24352c;
  }

  /* Pictures: whole, never cut off, sized to share a page with text */
  /* The activity picture sits beside the checklist to save paper */
  body:has([data-print-guide]) .hero-image {
    display: block;
    float: right;
    width: 40%;
    margin: 4pt 0 10pt 16pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body:has([data-print-guide]) .hero-image img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: 3in;
    height: auto;
    border-radius: 10pt;
    box-shadow: none;
    object-fit: contain;
  }

  body:has([data-print-guide]) .how-to-picture {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body:has([data-print-guide]) .how-to-picture img {
    width: 100%;
    max-height: 4in;
    object-fit: contain;
    border-radius: 8pt;
    box-shadow: none;
  }

  /* The mindful moment keeps its one-line rhythm, in two columns to save paper */
  body:has([data-print-guide]) .panel.mindful {
    columns: 2;
    column-gap: 28pt;
  }

  body:has([data-print-guide]) .panel.mindful h2 {
    column-span: all;
  }

  body:has([data-print-guide]) .panel.mindful p {
    margin: 0 0 1pt;
    break-inside: avoid;
  }

  body:has([data-print-guide]) .parent-note p {
    margin: 0 0 4pt;
    color: #24352c;
    line-height: 1.33;
  }

  body:has([data-print-guide]) .parent-note li {
    color: #24352c;
  }

  body:has([data-print-guide]) .parent-skill {
    break-after: avoid;
  }

  body:has([data-print-guide]) .parent-note ul {
    margin: 2pt 0 6pt;
  }

  /* Safety reminder: outlined so it stands out without ink-heavy fills */
  body:has([data-print-guide]) .notice {
    padding: 8pt 10pt;
    border: 1.5pt solid #2f5d46;
    border-radius: 8pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body:has([data-print-guide]) a {
    color: inherit;
    text-decoration: none;
  }
}

/* Muddy Water Filter Lab: the never-drink rule sits right under the buddy label */
.water-rule {
  max-width: 560px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 2px solid #c98a5a;
  border-radius: 14px;
  background: #fff7ee;
  color: #6b3d1c;
}

/* ===== Pebble Patterns (calm-down game) ===== */
.pp-panel {
  margin-bottom: 22px;
}

.pp-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.pp-panel h2:focus {
  outline: none;
}

.pp-panel h2:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 4px;
}

.pp-start {
  text-align: center;
  padding: 18px 0;
}

.pp-stop-wrap {
  margin: 0 0 10px;
  text-align: right;
}

.pp-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "tray palette"
    "tray tools"
    "tray quiet";
  grid-template-rows: auto auto auto 1fr;
  gap: 14px 28px;
  align-items: start;
}

.pp-head { grid-area: head; }
.pp-palette-area { grid-area: palette; }
.pp-tray-area { grid-area: tray; }
.pp-tools { grid-area: tools; }
.pp-quiet-panel { grid-area: palette; }

.pp-head h2 {
  margin-bottom: 4px;
}

.pp-instruction {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3f6b55;
}

.pp-hidden {
  display: none !important;
}

.pp-label,
.pp-guides legend {
  margin: 0 0 8px;
  padding: 0;
  font-weight: 800;
}

/* Treasure palette */
.pp-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pp-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 72px;
  padding: 6px 4px;
  border: 2px solid #e2d6c2;
  border-radius: 16px;
  background: #fffaf2;
  color: #435957;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.pp-swatch svg {
  width: 40px;
  height: 40px;
}

.pp-swatch[aria-pressed="true"] {
  border-color: #6a42b8;
  background: #f3eef9;
  box-shadow: 0 0 0 2px #6a42b8;
}

.pp-swatch:focus-visible,
.pp-cell:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 2px;
}

/* The tray: a soft sandy dish with a 6 x 6 grid of spaces */
.pp-tray {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px;
  border: 3px solid #d6c19a;
  border-radius: 42px 48px 40px 46px / 46px 40px 48px 42px;
  background: radial-gradient(circle at 45% 40%, #f8eedb, #ead9b8);
  box-shadow: inset 0 2px 10px rgba(120, 90, 50, .12);
}

.pp-guide {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  pointer-events: none;
  fill: none;
  stroke: #a08a68;
  stroke-width: 4;
  stroke-dasharray: 10 12;
  stroke-linecap: round;
  opacity: .6;
}

.pp-grid {
  position: relative;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  aspect-ratio: 1;
}

.pp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pp-row > div {
  display: flex;
}

.pp-cell {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
}

.pp-cell svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pp-cell:not(.filled):hover {
  background: rgba(255, 255, 255, .45);
}

/* Selected treasure: a purple ring (different from the green keyboard focus ring) */
.pp-cell.is-selected {
  background: rgba(106, 66, 184, .1);
  box-shadow: inset 0 0 0 3px #6a42b8;
}

.pp-cell.is-moving {
  box-shadow: inset 0 0 0 3px #6a42b8;
  background: repeating-linear-gradient(45deg, rgba(106, 66, 184, .08) 0 6px, transparent 6px 12px);
}

/* While moving or dragging, empty spaces show where a treasure can go */
.pp-grid.moving .pp-cell:not(.filled),
.pp-grid.dragging .pp-cell:not(.filled) {
  box-shadow: inset 0 0 0 2px rgba(120, 95, 60, .28);
}

.pp-cell.appear svg {
  animation: pp-appear .25s ease-out;
}

@keyframes pp-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.calm-motion .pp-cell.appear svg {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .pp-cell.appear svg {
    animation: none;
  }
}

.pp-tray.is-quiet {
  border-color: #c9b48c;
}

.pp-ghost {
  position: fixed;
  z-index: 50;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  pointer-events: none;
  opacity: .85;
}

.pp-ghost svg {
  width: 100%;
  height: 100%;
}

.pp-feedback {
  min-height: 1.4em;
  margin: 10px 0 0;
  text-align: center;
  font-weight: 700;
  color: #6b3d1c;
}

.pp-feedback:empty {
  min-height: 0;
  margin: 0;
}

.pp-selection .actions,
.pp-toolbar,
.pp-quiet-panel .actions,
.pp-end .actions,
.pp-confirm .actions {
  margin-top: 10px;
  gap: 10px;
}

.pp-selection .actions {
  justify-content: center;
}

.pp-confirm {
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px solid #e2d6c2;
  border-radius: 16px;
  background: #fffaf2;
}

.pp-confirm p {
  margin: 0;
  font-weight: 800;
}

.pp-guides {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.pp-guides label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
}

.pp-guides input {
  width: 22px;
  height: 22px;
  accent-color: #6a42b8;
}

.pp-quiet-panel h2 {
  margin-bottom: 6px;
}

.pp-prompt {
  margin: 14px 0 4px;
  padding: 12px 16px;
  border: 3px solid var(--mindful-line);
  border-radius: 20px;
  background: var(--mindful-pale);
  color: var(--mindful);
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.pp-end .pp-fact {
  margin: 16px 0 6px;
}

.pp-end .pp-fact h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: #7a5a12;
}

.pp-keyboard-help {
  margin-top: 12px;
}

.pp-keyboard-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}

.pp-keyboard-help p {
  margin: 4px 0 0;
}

@media (max-width: 800px) {
  .pp-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "palette"
      "tray"
      "tools"
      "quiet";
    grid-template-rows: none;
  }

  .pp-quiet-panel { grid-area: quiet; }
}

@media (max-width: 560px) {
  .panel.pp-panel {
    padding: 16px 8px;
  }

  .pp-head,
  .pp-palette-area,
  .pp-tools,
  .pp-quiet-panel,
  .pp-start,
  .pp-end {
    padding: 0 8px;
  }

  .pp-tray {
    padding: 6px;
    border-radius: 28px;
  }

  .pp-guide {
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }

  .pp-cell {
    padding: 2px;
    border-radius: 12px;
  }
}

/* Smallest phones: give the tray every pixel so spaces stay about 44px */
@media (max-width: 360px) {
  .panel.pp-panel {
    padding: 14px 4px;
  }

  .pp-tray {
    padding: 3px;
    border-width: 2px;
  }

  .pp-guide {
    inset: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
  }
}

/* ===== What's Your Weather? woodland scene ===== */
.weather-panel {
  align-items: start;
}

.weather-stage {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.game-stage-weather .weather-stage svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 360;
  border-radius: 22px;
}

/* --- The five scenes (the owner's artwork; game state shows and hides their layers) --- */

/* Sunny: buds open into flowers with a little pop; the first bud glows to show where to start */
[id^="ww-sunny-flower-"][id$="-bloom"] {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ww-bloom .7s ease-out both;
}

@keyframes ww-bloom {
  from { scale: .4; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

.ww-glow [id$="-bud"] {
  filter: drop-shadow(0 0 5px #fff6c8) drop-shadow(0 0 9px #f6d36a);
}

/* Cloudy: clouds drift gently to new places */
[id^="ww-cloudy-cloud-"] {
  transition: translate 1.6s ease-in-out;
}

/* Rainy: rain falls; a little rain has fewer drops. The first empty plot glows. */
#ww-rainy-rain path {
  animation: ws-fall .9s linear infinite;
}

#ww-rainy-rain path:nth-child(3n+2) { animation-delay: -.3s; }
#ww-rainy-rain path:nth-child(3n) { animation-delay: -.6s; }

#ww-rainy-rain.little path:not(:nth-child(3n+1)) {
  display: none;
}

@keyframes ws-fall {
  0% { translate: 4px -14px; opacity: 0; }
  20% { opacity: 1; }
  100% { translate: -6px 26px; opacity: 0; }
}

[id^="ww-rainy-sprout-"],
[id^="ww-rainy-plant-"],
[id^="ww-rainy-bloom-"] {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ww-bloom .9s ease-out both;
}

[id^="ww-rainy-bloom-"] {
  transform-origin: center;
}

.ww-hint-ring {
  fill: none;
  stroke: #fff4c4;
  stroke-width: 3;
  stroke-dasharray: 6 5;
}

.ww-plot-label {
  font: 700 13px Nunito, system-ui, sans-serif;
  fill: #2f3b2c;
  paint-order: stroke;
  stroke: #f4efd9;
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* Stormy: the ground ripples on a stomp; the cloud and its (still) lightning drift away together */
#ww-stormy-stomp-ripples ellipse {
  transform-box: fill-box;
  transform-origin: center;
  animation: ww-ripple 1.3s ease-out both;
}

#ww-stormy-stomp-ripples ellipse:nth-child(2) {
  animation-delay: .15s;
}

#ww-stormy-stomp-ripples ellipse:nth-child(3) {
  animation-delay: .3s;
}

/* Quiet stomp: slower, softer rings, footprints pressed into the ground and a warm glow under them */
.ww-quiet #ww-stormy-stomp-ripples ellipse {
  animation-duration: 2.2s;
}

#ww-stormy-feet {
  animation: ww-press 2.4s ease-out both;
}

.ww-feet-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: ww-ripple 2.2s ease-out both;
}

@keyframes ww-press {
  0% { opacity: 0; translate: 0 -4px; }
  25% { opacity: 1; translate: 0 0; }
  80% { opacity: 1; }
  100% { opacity: .85; }
}

@keyframes ww-ripple {
  from { scale: .5; opacity: 1; }
  to { scale: 1.15; opacity: .2; }
}

#ww-stormy-cloud-1,
#ww-stormy-lightning,
#ww-stormy-strikes {
  transition: translate 1.4s ease-in-out, opacity 1.4s ease-in-out;
}

[data-blown="1"] #ww-stormy-cloud-1,
[data-blown="1"] #ww-stormy-lightning,
[data-blown="1"] #ww-stormy-strikes { translate: 90px -8px; }

[data-blown="2"] #ww-stormy-cloud-1,
[data-blown="2"] #ww-stormy-lightning,
[data-blown="2"] #ww-stormy-strikes { translate: 170px -16px; opacity: .55; }

[data-blown="3"] #ww-stormy-cloud-1,
[data-blown="3"] #ww-stormy-lightning,
[data-blown="3"] #ww-stormy-strikes { translate: 210px -22px; opacity: 0; }

/* Lightning on each loud stomp: one bolt flashes once (taking turns across the sky) and the sky
   brightens softly. Never a strobe: one flash per stomp, at least half a second apart (games.js).
   In Calm motion or reduced motion a bolt just appears for a moment, with no flash. */
.ww-strike {
  opacity: 0;
}

.ww-strike.zap {
  animation: ww-zap .8s ease-out both;
}

#ww-stormy-lightning.zap {
  animation: ww-zap-glow .8s ease-out both;
}

#ww-stormy-glow.zap {
  animation: ww-sky .8s ease-out both;
}

@keyframes ww-zap {
  0% { opacity: 0; }
  15%, 55% { opacity: 1; filter: drop-shadow(0 0 6px #fff3b0); }
  100% { opacity: 0; }
}

@keyframes ww-zap-glow {
  0%, 100% { filter: none; }
  15%, 55% { filter: drop-shadow(0 0 6px #fff3b0) brightness(1.15); }
}

@keyframes ww-sky {
  0%, 100% { opacity: 0; }
  20% { opacity: .22; }
}

.calm-motion .ww-strike.zap {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ww-strike.zap {
    opacity: 1;
  }
}

/* Used by Raindrop Countdown's pond */
@keyframes ws-ripple {
  from { transform: scale(.3); opacity: .9; }
  to { transform: scale(1.15); opacity: 0; }
}

/* Calm motion and reduced motion: still pictures. Every action still shows a change
   (a bloom, a cloud, still rain marks, still ripples, the cloud further away), just without movement. */
.calm-motion .weather-scene *,
.calm-motion .weather-scene {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .weather-scene *,
  .weather-scene {
    transition: none !important;
    animation: none !important;
  }
}

/* Tap targets over the flowers */
.ws-hit {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px dashed rgba(63, 95, 88, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.ws-hit:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 2px;
}

.ws-hit-flower {
  width: 11%;
  height: 22%;
  transform: translate(-50%, -50%);
}

.ws-hit-flower[data-flower="0"] { left: 36.7%; top: 78%; }
.ws-hit-flower[data-flower="1"] { left: 50.3%; top: 75%; }
.ws-hit-flower[data-flower="2"] { left: 63.3%; top: 79.5%; }

/* The one obvious first thing to press */
.ww-first {
  box-shadow: 0 0 0 3px #f6d36a, 0 0 0 6px rgba(246, 211, 106, .35);
}

.ws-hit.ww-first {
  border-color: #c9962a;
  background: rgba(255, 246, 200, .25);
}

.weather-welcome {
  margin: 12px 0 0;
  text-align: center;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #3f6b55;
}

.ww-heading {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.ww-heading:focus {
  outline: none;
}

.ww-heading:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 4px;
}

.weather-controls {
  text-align: left;
}

.weather-controls .weather-choices {
  justify-content: flex-start;
}

.weather-controls .btn,
.weather-controls .weather-btn {
  min-height: 44px;
}

.ww-instruction {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3f6b55;
}

.ww-support {
  margin: 12px 0 0;
}

.ww-bubble {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 3px solid var(--mindful-line);
  border-radius: 20px;
  background: var(--mindful-pale);
  color: var(--mindful);
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.ww-act .actions,
.ww-screen .actions {
  gap: 10px;
  margin-top: 12px;
}

.ww-next {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px dashed #d6e4dc;
}

.ww-toggle[aria-pressed="true"],
.ww-answer[aria-pressed="true"] {
  background: #e4efe9;
  box-shadow: inset 0 0 0 2px #3f6b55;
}

.ww-toggle[aria-pressed="true"]::before {
  content: "\2713  ";
}

.weather-controls .ww-fact {
  margin-top: 18px;
}

.weather-controls .ww-fact h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: #7a5a12;
}

/* Flower buttons: a labelled row under the activity text at every size; the
   tap targets over the picture are an extra for mouse and touch on wider screens */

.ww-flower-row .ws-hit-flower {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  border: 0;
  border-radius: 999px;
  font-size: .88rem;
  color: #2e3b2c;
  background: #ffd7a1;
}

.ww-flower-row .ws-hit-flower[aria-pressed="true"]::before {
  content: "\2713  ";
}

@media (max-width: 480px) {
  .weather-stage .ws-hit-flower {
    display: none;
  }
}

.ww-part {
  margin-top: 12px;
}

/* Storm steps: 1 Stomp, 2 Blow, 3 Cozy den (one shown at a time) */
.ww-steps {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.ww-step {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border: 2px solid #d9cfe6;
  border-radius: 999px;
  background: #fff;
  color: var(--mindful);
  font: 600 .95rem/1.1 Fredoka, system-ui, sans-serif;
  cursor: pointer;
}

.ww-step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mindful-pale);
  font-size: .85rem;
}

@media (max-width: 380px) {
  .ww-step {
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    border-radius: 18px;
  }
}

.ww-step[aria-current="step"] {
  border-color: var(--mindful);
  background: var(--mindful-pale);
}

.ww-step[aria-current="step"] .ww-step-num {
  background: var(--mindful);
  color: #fff;
}

.ww-part h3:focus {
  outline: none;
}

.ww-part h3:focus-visible {
  outline: 3px solid var(--mindful);
  outline-offset: 3px;
}

/* Scene and choices side by side from small tablets up, so children can see what each press
   does without scrolling: the picture stays in view beside the buttons, and the fun fact sits
   below them both. Phones stack, with the picture pinned to the top while playing. */
.weather-panel > .ww-fact {
  grid-column: 1 / -1;
  margin-top: 0;
}

.weather-panel > .ww-fact h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: #7a5a12;
}

@media (min-width: 600px) {
  .weather-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px 22px;
  }

  .weather-panel.in-activity .game-stage-weather {
    position: sticky;
    top: 12px;
    z-index: 2;
  }
}

.ww-scene-text {
  margin: 12px 0 0;
  text-align: center;
}

.ww-h3-note {
  font-family: Nunito, system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #5b6c67;
}

@media (min-width: 600px) and (max-width: 900px) {
  .weather-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    padding: 18px;
  }

  .weather-controls .btn {
    padding: 9px 14px;
    font-size: .86rem;
  }

  .ww-instruction {
    font-size: 1rem;
  }
}

/* Phones held upright only, where the full-size scene fits with room to spare */
@media (max-width: 599px) and (max-aspect-ratio: 2/3), (max-width: 599px) and (min-height: 800px) and (max-aspect-ratio: 99/100) {
  .weather-panel.in-activity .game-stage-weather {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -8px;
    padding: 8px 8px 6px;
    background: #fffefc;
    box-shadow: 0 10px 12px -12px rgba(60, 50, 80, .35);
  }

  html:has(.weather-panel.in-activity) {
    scroll-padding-top: 42svh;
  }
}

.ww-part h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.ww-part p {
  margin: 0 0 8px;
}

.ww-seed[aria-pressed="true"],
.ww-cozy[aria-pressed="true"] {
  background: #e4efe9;
  box-shadow: inset 0 0 0 2px #3f6b55;
}

.ww-seed[aria-pressed="true"]::before,
.ww-cozy[aria-pressed="true"]::before {
  content: "\2713  ";
}

/* ===== Raindrop Countdown ===== */
.rain-panel {
  align-items: center;
}

.rain-stage {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.rain-stage svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.rain-drops {
  position: absolute;
  inset: 0;
}

.rain-drop {
  position: absolute;
  width: 15%;
  min-width: 46px;
  aspect-ratio: 1;
  min-height: 46px;
  padding: 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: top 1s ease-in, opacity .3s ease-in .8s;
}

/* Ten drops: a little smaller so two rows fit */
.rain-drops.many .rain-drop {
  width: 13%;
  min-width: 44px;
  min-height: 44px;
}

.rain-drop svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rain-drop:hover {
  background: rgba(255, 255, 255, .35);
}

.rain-drop:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 2px;
}

/* Falling into the pond */
.rain-drop.falling {
  top: 86% !important;
  opacity: 0;
  pointer-events: none;
}

.rain-number {
  margin: 0;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: #4f86b8;
}

.rd-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: .8;
}

.rd-rings.ripple .rd-ring {
  animation: ws-ripple 1.6s ease-out both;
}

.rd-rings.ripple .rd-ring:nth-child(2) { animation-delay: .25s; }
.rd-rings.ripple .rd-ring:nth-child(3) { animation-delay: .5s; }

/* A different number: a gentle "not this one" wiggle */
.rain-drop.nope {
  animation: rd-nope .45s ease-in-out;
}

@keyframes rd-nope {
  0%, 100% { translate: 0 0; }
  25% { translate: -5px 0; }
  75% { translate: 5px 0; }
}

/* Stuck for a while? The next number glows softly */
.rain-drop.hint {
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 4px rgba(255, 236, 160, .9);
  animation: rd-hint 1.8s ease-in-out infinite;
}

@keyframes rd-hint {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 236, 160, .6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 236, 160, .95); }
}

/* Pond life pops up gently; the sun and rainbow fade in */
.rd-life {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: rd-pop .6s ease-out both;
}

@keyframes rd-pop {
  from { scale: .2; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

.rd-rainbow,
.rd-sun {
  animation: rd-fade 1.6s ease-out both;
}

@keyframes rd-fade {
  from { opacity: 0; }
}

.rd-sky {
  transition: fill 1.6s ease;
}

.rd-done .rd-sky {
  fill: #eaf4fb;
}

.calm-motion .rain-drop,
.calm-motion .rd-rings.ripple .rd-ring,
.calm-motion .rd-life,
.calm-motion .rd-rainbow,
.calm-motion .rd-sun,
.calm-motion .rd-sky {
  transition: none;
  animation: none;
}

.calm-motion .rain-drop.hint {
  animation: none;
  box-shadow: 0 0 0 6px rgba(255, 236, 160, .95);
}

@media (prefers-reduced-motion: reduce) {
  .rain-drop,
  .rd-rings.ripple .rd-ring,
  .rd-life,
  .rd-rainbow,
  .rd-sun,
  .rd-sky {
    transition: none;
    animation: none;
  }

  .rain-drop.hint {
    animation: none;
    box-shadow: 0 0 0 6px rgba(255, 236, 160, .95);
  }
}

/* ===== Bumblebee Breaths ===== */
.bee-panel {
  align-items: center;
}

.bee-stage {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.bee-stage svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* Flowers open a little while you smell them */
.bb-head {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  transition: scale .8s ease;
}

.bb-flower.sniff .bb-head {
  scale: 1.22;
  transition: scale var(--t, 4s) ease-in-out;
}

/* Honey sparkles on flowers the bee has visited */
.bb-pollen {
  display: none;
}

.bb-flower.visited .bb-pollen {
  display: inline;
  animation: bb-twinkle 2s ease-in-out infinite;
}

@keyframes bb-twinkle {
  50% { opacity: .4; }
}

/* Scent swirls rising from the flower */
.bb-scent path {
  fill: none;
  stroke: #c3a8e0;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: bb-scent 1.8s ease-in-out infinite;
}

.bb-scent path:nth-child(2) { animation-delay: -.6s; }
.bb-scent path:nth-child(3) { animation-delay: -1.2s; }

@keyframes bb-scent {
  0% { translate: 0 8px; opacity: 0; }
  40% { opacity: .9; }
  100% { translate: 0 -10px; opacity: 0; }
}

/* The bumblebee: gentle bob, fluttering wings, a hum while you breathe out, a waggle dance at the end */
.bb-bee-body {
  transform-box: fill-box;
  transform-origin: center;
  animation: bb-bob 2.4s ease-in-out infinite;
}

.bb-bee.left .bb-bee-body {
  scale: -1 1;
}

@keyframes bb-bob {
  50% { translate: 0 -3px; }
}

.bb-wings {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bb-flap .12s linear infinite alternate;
}

.bb-bee.humming .bb-wings {
  animation-duration: .35s;
}

@keyframes bb-flap {
  to { scale: 1 .55; }
}

.bb-buzz {
  display: none;
}

.bb-bee.humming .bb-buzz {
  display: inline;
  animation: bb-buzz 1s ease-in-out infinite;
}

.bb-bee.left .bb-buzz {
  display: none;
}

@keyframes bb-buzz {
  50% { opacity: .35; }
}

.bb-bee.dance .bb-bee-body {
  animation: bb-waggle .5s ease-in-out 8 alternate;
}

@keyframes bb-waggle {
  from { rotate: -18deg; translate: -6px 0; }
  to { rotate: 18deg; translate: 6px 0; }
}

/* Tap the flowers themselves: a tall target over each head and stem, as wide as the gap
   between flowers so they never overlap (the labelled buttons below do the same job) */
.bb-hit {
  position: absolute;
  width: 13.5%;
  height: 34%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .35);
}

.bb-hit:hover {
  background: rgba(255, 255, 255, .25);
}

.bb-hit[data-flower="0"] { left: 25%; top: 71%; }
.bb-hit[data-flower="1"] { left: 39%; top: 76%; }
.bb-hit[data-flower="2"] { left: 53%; top: 76%; }
.bb-hit[data-flower="3"] { left: 67%; top: 69%; }
.bb-hit[data-flower="4"] { left: 81%; top: 77%; }

/* While waiting for a pick, the flowers still to visit bob gently: "tap me!" */
.bb-idle .bb-flower:not(.visited) .bb-head {
  animation: bb-invite 2.4s ease-in-out infinite;
}

.bb-idle .bb-flower:nth-child(odd of .bb-flower) .bb-head {
  animation-delay: -1.2s;
}

@keyframes bb-invite {
  50% { scale: 1.1; rotate: 4deg; }
}

.bb-count {
  margin: 0 0 6px;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: #9a7428;
}

.bb-flowers {
  justify-content: center;
}

.bb-pick {
  min-height: 44px;
}

.bb-pick[aria-pressed="true"] {
  background: #fbe7a1;
  box-shadow: inset 0 0 0 2px #c99a2e;
}

.bb-pick[aria-pressed="true"]::before {
  content: "\2713  ";
}

.bb-jar-text {
  margin: 10px 0 0;
  font-weight: 800;
  color: #8a6a2c;
}

.bb-real-bees {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff6dc;
}

/* Game settings (Bumblebee Breaths, Shooting Star Wishes): a compact box beside the game, below its buttons */
.game-settings {
  margin: 0 auto 14px;
  max-width: 460px;
  padding: 12px 16px 4px;
  border-radius: 16px;
  background: #fff9ec;
  border: 2px solid #f1dfae;
  text-align: left;
}

/* Below the game buttons, so the play buttons stay close to the picture */
.game-actions + .game-settings {
  margin-top: 20px;
}

.game-settings h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #8a6a2c;
}

.game-options.game-settings .option {
  gap: 10px;
  margin-bottom: 10px;
}

.game-settings .option-hint {
  font-size: .85rem;
}

/* Timing: label and menu on one line, the hint underneath */
.game-options.game-settings .settings-timing {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.game-options.game-settings .settings-timing select {
  min-height: 40px;
  padding: 4px 10px;
}

.game-settings .settings-timing .option-hint {
  flex-basis: 100%;
}

.calm-motion .bb-head,
.calm-motion .bb-idle .bb-flower .bb-head,
.calm-motion .bb-flower.sniff .bb-head,
.calm-motion .bb-pollen,
.calm-motion .bb-scent path,
.calm-motion .bb-bee-body,
.calm-motion .bb-wings,
.calm-motion .bb-buzz,
.calm-motion .bb-bee.dance .bb-bee-body {
  transition: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .bb-head,
  .bb-idle .bb-flower .bb-head,
  .bb-flower.sniff .bb-head,
  .bb-pollen,
  .bb-scent path,
  .bb-bee-body,
  .bb-wings,
  .bb-buzz,
  .bb-bee.dance .bb-bee-body {
    transition: none;
    animation: none;
  }

  .bb-bee {
    transition: none !important;
  }
}

/* ===== Shooting Star Wishes ===== */
.star-panel {
  align-items: center;
}

.star-stage {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.star-stage svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  cursor: pointer;
  touch-action: manipulation;
}

/* Background stars twinkle softly */
.ss-tw {
  animation: ss-twinkle 3s ease-in-out infinite;
}

@keyframes ss-twinkle {
  50% { opacity: .2; }
}

/* The moon's glow grows as you breathe in and fades as you breathe out */
.ss-glow {
  transform-box: fill-box;
  transform-origin: center;
  transition: scale 4s ease-in-out, opacity 4s ease-in-out;
}

.ss-breathe-in .ss-glow {
  scale: 1.45;
  opacity: .32;
}

/* Catching a star: a sparkle ring */
.ss-shoot.caught circle,
.ss-shoot.caught path {
  transform-box: fill-box;
  transform-origin: center;
  scale: 1.4;
}

.ss-shoot.caught line {
  opacity: 0;
}

.ss-burst {
  transform-box: fill-box;
  transform-origin: center;
}

.ss-burst.pop {
  animation: ss-burst .9s ease-out both;
}

@keyframes ss-burst {
  from { scale: .4; opacity: 1; }
  to { scale: 3.2; opacity: 0; }
}

/* Wish stars settle in with a gentle twinkle */
.ss-wish {
  transform-box: fill-box;
  transform-origin: center;
  animation: ss-wish-in .8s ease-out both, ss-wish-glow 3.4s ease-in-out .8s infinite;
}

@keyframes ss-wish-glow {
  50% { opacity: .75; }
}

@keyframes ss-wish-in {
  from { scale: .2; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

/* Five wishes: the lines draw in to make Cassiopeia */
.ss-lines {
  transition: stroke-dashoffset 2.6s ease-in-out;
}

.ss-done .ss-lines {
  stroke-dashoffset: 0;
}

.ss-label {
  animation: ss-wish-in 1s ease-out 2s both;
}

.ss-count {
  margin: 0 0 6px;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #4a5aa8;
}

.btn.ss-catch {
  min-width: 200px;
  background: #3b4f8f;
}

.ss-wishes {
  justify-content: center;
}

.ss-wishes .btn {
  min-height: 44px;
}

.ss-wishes-label {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-weight: 900;
  color: var(--mindful);
}

.ss-note {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--mindful-pale);
}

.calm-motion .ss-tw,
.calm-motion .ss-glow,
.calm-motion .ss-burst.pop,
.calm-motion .ss-wish,
.calm-motion .ss-lines,
.calm-motion .ss-label {
  transition: none;
  animation: none;
}

.calm-motion .ss-burst.pop {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .ss-tw,
  .ss-glow,
  .ss-burst.pop,
  .ss-wish,
  .ss-lines,
  .ss-label {
    transition: none;
    animation: none;
  }
}

/* ===== Quiet Stories ===== */
.story-lede {
  max-width: 640px;
  font-size: 1.15rem;
}

.story-grownup-note {
  max-width: 640px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--mindful-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  font-size: .95rem;
}

.story-page {
  padding-bottom: 48px;
}

/* The listen button sits at the very top of the story */
.story-listen {
  margin: 24px 0 18px;
  padding: 0;
}

.story-start {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.15rem;
}

.story-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.story-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-buttons .btn {
  min-height: 48px;
  min-width: 120px;
}

.story-progress {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 12px;
}

.story-progress input {
  flex: 1;
  min-height: 44px;
  accent-color: var(--mindful-btn);
}

.story-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--mindful);
}

.story-audio-note {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--mindful-pale);
  color: var(--mindful);
  font-weight: 700;
}

.story-still {
  margin-top: 12px;
}

/* The picture beside the story on wider screens (above it on phones); the words sit on a solid panel */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.story-scene {
  position: sticky;
  top: 16px;
  margin: 0;
}

.story-scene svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #1c2547;
}

.story-text {
  padding: 28px 32px;
  border: 1px solid #e4daf1;
  border-radius: 24px;
  background: #fffdf8;
  color: #2c3150;
  font-size: 1.2rem;
  line-height: 1.75;
}

.story-text p {
  max-width: 34em;
  margin: 0 0 .85em;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* If exact paragraph timings are added, the paragraph being read gets a soft glow */
.story-text p.story-now {
  border-radius: 8px;
  background: var(--mindful-pale);
  box-shadow: 0 0 0 6px var(--mindful-pale);
}

.story-ending {
  margin-top: 28px;
}

/* Scenes crossfade slowly; a few stars twinkle gently. Still sky (or reduced motion) stops both */
.story-scene svg .sc {
  opacity: 0;
  transition: opacity 2.6s ease-in-out;
}

.story-scene svg .sc.on {
  opacity: 1;
}

.st-tw {
  animation: st-twinkle 5s ease-in-out infinite;
}

@keyframes st-twinkle {
  50% { opacity: .3; }
}

/* The Little Door: a soft glow at the doorway, a stirring leaf sail, slow ripples, the odd glimmer */
.ld-glow {
  animation: ld-glow 6s ease-in-out infinite;
}

@keyframes ld-glow {
  50% { opacity: .55; }
}

.ld-sail {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ld-sail 7s ease-in-out infinite alternate;
}

@keyframes ld-sail {
  from { rotate: -2.5deg; }
  to { rotate: 2.5deg; }
}

.ld-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: ld-ripple 9s ease-out infinite;
}

.ld-ripple + .ld-ripple {
  animation-delay: -4.5s;
}

@keyframes ld-ripple {
  from { scale: .7; opacity: .8; }
  to { scale: 1.25; opacity: 0; }
}

.ld-glimmer {
  opacity: 0;
  animation: ld-glimmer 10s ease-in-out infinite;
}

@keyframes ld-glimmer {
  0%, 80%, 100% { opacity: 0; }
  88% { opacity: .9; }
}

/* Florence: pear leaves sway a little, a leaf drifts by now and then, dappled sunlight shifts slowly */
.fl-sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: fl-sway 8s ease-in-out infinite alternate;
}

@keyframes fl-sway {
  from { rotate: -1deg; }
  to { rotate: 1deg; }
}

.fl-drift {
  opacity: 0;
  animation: fl-drift 22s ease-in-out infinite;
}

@keyframes fl-drift {
  0%, 70% { opacity: 0; translate: 0 0; rotate: 0deg; }
  74% { opacity: .9; }
  96% { opacity: .9; translate: -160px 150px; rotate: 200deg; }
  100% { opacity: 0; translate: -170px 160px; rotate: 210deg; }
}

.fl-roll {
  animation: fl-roll 26s ease-in-out infinite;
}

@keyframes fl-roll {
  0%, 60% { translate: 0 0; rotate: 0deg; }
  80%, 100% { translate: 140px 2px; rotate: 300deg; }
}

.fl-dapple {
  animation: fl-dapple 12s ease-in-out infinite alternate;
}

@keyframes fl-dapple {
  from { opacity: .8; translate: 0 0; }
  to { opacity: 1; translate: 6px 1px; }
}

.still-sky .fl-sway,
.still-sky .fl-drift,
.still-sky .fl-roll,
.still-sky .fl-dapple {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .fl-sway,
  .fl-drift,
  .fl-roll,
  .fl-dapple {
    animation: none;
  }
}

.still-sky .story-scene svg .sc {
  transition: none;
}

.still-sky .st-tw,
.still-sky .ld-glow,
.still-sky .ld-sail,
.still-sky .ld-ripple {
  animation: none;
}

.still-sky .ld-glimmer {
  animation: none;
  opacity: .6;
}

@media (prefers-reduced-motion: reduce) {
  .story-scene svg .sc {
    transition: none;
  }

  .st-tw,
  .ld-glow,
  .ld-sail,
  .ld-ripple {
    animation: none;
  }

  .ld-glimmer {
    animation: none;
    opacity: .6;
  }
}

/* The song, in the reading flow, with its credit right below the last line */
.story-song {
  margin: 1.2em 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--mindful-pale);
  color: #3f3466;
}

.story-song p {
  margin: 0 0 .35em;
  font-style: italic;
}

.story-song-label {
  font-style: normal !important;
  font-size: 1.4rem;
  line-height: 1;
}

.story-song .story-lyric-verse {
  margin: 0 0 1em;
  line-height: 1.6;
}

.story-song .story-song-credit {
  margin: .8em 0 0;
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mindful);
}

.story-ending-words {
  margin: 0;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mindful);
}

@media (max-width: 820px) {
  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-scene {
    position: static;
  }

  .story-text {
    padding: 22px 20px;
    font-size: 1.15rem;
  }
}

/* Quiet Stories on Mindful moments */
.story-length {
  flex: none !important;
  margin: -4px 0 8px;
  font-weight: 800;
  color: var(--mindful);
}

.story-card .card-art {
  aspect-ratio: 3 / 2;
  background: #1c2547;
}

/* ===== Your adventures and art: every picture hangs in a woodland frame =====
   Just add an <li><figure class="art-frame"> to .art-gallery. The branch it hangs from (leafy,
   autumn with acorns, or pine with a pinecone, taking turns), the twine, the wooden frame, mat and
   name tag are all automatic. */
.art-gallery-section {
  padding: 48px 0 24px;
}

.art-gallery {
  --hang: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 40px 56px;
  align-items: start;
  margin: 28px 0 0;
  padding: 0 20px;
  list-style: none;
}

/* The branch: wider than the frame, across the top of each picture's space */
.art-gallery li {
  position: relative;
  padding-top: var(--hang);
}

.art-gallery li::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: -30px;
  right: -30px;
  height: 104px;
  background: url("frames/branch-leafy.svg") no-repeat center top / 100% 100%;
  pointer-events: none;
}

.art-gallery li:nth-child(3n+2)::before {
  background-image: url("frames/branch-autumn.svg");
  transform: scaleX(-1);
}

.art-gallery li:nth-child(3n)::before {
  background-image: url("frames/branch-pine.svg");
}

/* The frame hangs from the branch and tilts a little from it */
.art-frame {
  position: relative;
  margin: 0;
  padding: 16px 16px 12px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .07) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(80deg, rgba(60, 35, 15, .1) 0 2px, transparent 2px 17px),
    linear-gradient(135deg, #b98353, #9a6a40 55%, #b07a49);
  box-shadow: inset 0 0 0 2px rgba(255, 236, 205, .35), inset 0 0 0 6px rgba(80, 50, 25, .25), 0 12px 22px rgba(60, 40, 20, .18);
  transform-origin: 50% calc(var(--hang) * -0.6);
  transform: rotate(-1.6deg);
  transition: transform .6s ease;
}

.art-gallery li:nth-child(even) .art-frame {
  transform: rotate(1.4deg);
}

.art-gallery li:nth-child(3n) .art-frame {
  transform: rotate(-.8deg);
}

.art-frame:hover {
  transform: rotate(0deg);
}

/* Two twine strings from the branch, tied to little brass tacks on the frame */
.art-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: calc(100% - 9px);
  left: 18%;
  right: 18%;
  height: calc(var(--hang) * 0.62);
  border-left: 3px solid #a07c4f;
  border-right: 3px solid #a07c4f;
  pointer-events: none;
}

.art-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 3px;
  left: calc(18% - 4px);
  right: calc(18% - 4px);
  height: 11px;
  background:
    radial-gradient(circle at 5.5px 5.5px, #f2d58a 0 2px, #c9a24a 2.5px 4.5px, #7d5f26 5px, transparent 5.6px) left center / 11px 11px no-repeat,
    radial-gradient(circle at 5.5px 5.5px, #f2d58a 0 2px, #c9a24a 2.5px 4.5px, #7d5f26 5px, transparent 5.6px) right center / 11px 11px no-repeat;
  pointer-events: none;
}

.art-mat {
  padding: 12px;
  border-radius: 4px;
  background: #fffaf0;
  box-shadow: inset 0 2px 6px rgba(60, 40, 20, .25);
}

.art-mat img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.art-tag {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  padding: 4px 18px;
  border: 2px solid #c9a56e;
  border-radius: 999px;
  background: #fff8e8;
  color: #4a3423;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(60, 40, 20, .25);
}

.art-share {
  padding: 24px 0 56px;
}

@media (max-width: 560px) {
  .art-gallery {
    gap: 36px;
    padding: 0 12px;
  }

  .art-gallery li::before {
    left: -14px;
    right: -14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-frame {
    transition: none;
  }

  .art-frame:hover {
    transform: rotate(-1.6deg);
  }
}

/* Homepage: a peek at the newest framed artwork */
.art-feature {
  background: #fbf3e4;
}

.art-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.art-preview {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
  margin: 0;
}

@media (max-width: 800px) {
  .art-feature-inner {
    grid-template-columns: 1fr;
  }
}

/* ===== About page: Chelsey's story with snapshot-style photo frames ===== */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 32px;
  align-items: center;
}

.about-lede {
  max-width: 560px;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  color: #3f6b55;
}

.about-story {
  max-width: 980px;
  padding: 48px 0 24px;
}

.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 56px;
}

.about-row.flip .about-text {
  order: 2;
}

.about-text p {
  font-size: 1.12rem;
  line-height: 1.75;
}

.about-text a {
  color: #35694c;
  font-weight: 800;
  overflow-wrap: anywhere; /* the email address can wrap on small screens with big text */
}

/* A snapshot: white border, a wider bottom edge with a little doodle, washi tape on top.
   Nothing decorative ever covers the photo itself. */
.snap {
  position: relative;
  margin: 18px auto 0;
  width: min(100%, 340px);
  padding: 12px 12px 46px;
  border-radius: 4px;
  background: #fffdf8;
  box-shadow: 0 1px 2px rgba(60, 45, 30, .12), 0 14px 26px rgba(60, 45, 30, .16);
  transform: rotate(2deg);
}

.about-row.flip .snap,
.about-intro .snap {
  transform: rotate(-2.4deg);
}

.snap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Washi tape across the top edge of the frame (it stays in the white border, above the photo) */
.snap::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 24px;
  translate: -50% 0;
  rotate: -3deg;
  border-radius: 2px;
  opacity: .85;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px), var(--tape);
}

.snap-sage { --tape: #b9cfa6; }
.snap-lavender { --tape: #cbb8e6; }
.snap-peach { --tape: #f3c6a5; }

/* A little doodle in the snapshot's bottom edge */
.snap::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  background: var(--doodle) center / contain no-repeat;
}

.doodle-leaf { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 26C6 13 14 6 27 5c0 13-8 21-21 21z' fill='%239fbf86'/%3E%3Cpath d='M6 26C12 19 18 13 24 8' stroke='%236f8f5a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.doodle-star { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3l3.6 8.2 8.9.8-6.7 5.9 2 8.7L16 22l-7.8 4.6 2-8.7L3.5 12l8.9-.8z' fill='%23f2d27a' stroke='%23d9b04f' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.doodle-acorn { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 15h14c0 8-3 13-7 13s-7-5-7-13z' fill='%23c99a63'/%3E%3Cpath d='M7 15c0-5 4-8 9-8s9 3 9 8z' fill='%238a6440'/%3E%3Cpath d='M16 7c0-2 1-3 3-4' stroke='%238a6440' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.doodle-heart { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 27S4 19.5 4 11.5C4 7.4 7 5 10.2 5c2.5 0 4.6 1.5 5.8 3.6C17.2 6.5 19.3 5 21.8 5 25 5 28 7.4 28 11.5 28 19.5 16 27 16 27z' fill='%23eba9a4'/%3E%3C/svg%3E"); }
.doodle-sparkle { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M14 3c1 7 3 9 10 10-7 1-9 3-10 10-1-7-3-9-10-10 7-1 9-3 10-10z' fill='%23c9b5e3'/%3E%3Cpath d='M25 19c.5 3 1.5 4 4.5 4.5-3 .5-4 1.5-4.5 4.5-.5-3-1.5-4-4.5-4.5 3-.5 4-1.5 4.5-4.5z' fill='%23f2d27a'/%3E%3C/svg%3E"); }

.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 32px;
}

@media (max-width: 760px) {
  .about-intro,
  .about-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .about-row.flip .about-text {
    order: 0;
  }

  .about-row {
    margin-bottom: 40px;
  }

  .snap {
    width: min(86%, 320px);
  }
}

/* Menu on phones: shorter words (Home, Mindfulness, About, Shop) so all four links fit on one
   line under the site name, even on the smallest phones. Desktops keep the full words. */
.nav-short {
  display: none;
}

@media (max-width: 560px) {
  .nav-long {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .nav-links {
    gap: 8px 18px;
  }
}

/* ===== Little Things I Noticed: nature photos in the same snapshot frames as the About page ===== */
.noticed-intro {
  max-width: 600px;
  font-size: 1.15rem;
  line-height: 1.7;
}

.noticed-page {
  padding: 40px 0 24px;
}

.noticed-section {
  padding: 8px 0 40px;
}

.noticed-lede {
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.noticed-note {
  display: inline-block;
  max-width: 720px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #e8f2e5;
  color: #35694c;
  font-size: .98rem;
}

/* The snapshot's wide bottom edge holds the caption (the doodle sits just above it) */
.noticed-snap {
  width: 100%;
  padding-bottom: 14px;
}

.noticed-snap figcaption {
  margin: 12px 4px 0;
  padding-right: 30px;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #3f4f4b;
}

.noticed-snap::after {
  top: auto;
  bottom: 12px;
  right: 10px;
  width: 24px;
  height: 24px;
}

.about-intro .noticed-snap {
  width: min(100%, 420px);
}

/* A masonry of snapshots: easy to add to (just add another <li>); tilt, tape colour and doodle
   take turns automatically, so new photos need no extra classes.
   Safari on phones has bugs with CSS columns: lazy pictures inside them don't load until tapped
   and videos inside them only spin. So phones (one column anyway) get a plain list, the masonry
   columns start only where two columns fit, and the videos (all the same shape) use a grid. */
.noticed-gallery,
.noticed-videos {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

@media (min-width: 640px) {
  .noticed-gallery {
    columns: 3 280px;
    column-gap: 34px;
  }
}

.noticed-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  column-gap: 34px;
  align-items: start;
}

.noticed-gallery li,
.noticed-videos li {
  break-inside: avoid;
  padding: 18px 4px 22px;
}

.noticed-gallery li:nth-child(odd) .snap { transform: rotate(-1.6deg); }
.noticed-gallery li:nth-child(even) .snap { transform: rotate(1.4deg); }
.noticed-gallery li:nth-child(3n) .snap { transform: rotate(-.6deg); }

.noticed-gallery li:nth-child(3n+1) .snap { --tape: #b9cfa6; --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 26C6 13 14 6 27 5c0 13-8 21-21 21z' fill='%239fbf86'/%3E%3Cpath d='M6 26C12 19 18 13 24 8' stroke='%236f8f5a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.noticed-gallery li:nth-child(3n+2) .snap { --tape: #cbb8e6; --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M14 3c1 7 3 9 10 10-7 1-9 3-10 10-1-7-3-9-10-10 7-1 9-3 10-10z' fill='%23c9b5e3'/%3E%3Cpath d='M25 19c.5 3 1.5 4 4.5 4.5-3 .5-4 1.5-4.5 4.5-.5-3-1.5-4-4.5-4.5 3-.5 4-1.5 4.5-4.5z' fill='%23f2d27a'/%3E%3C/svg%3E"); }
.noticed-gallery li:nth-child(3n) .snap { --tape: #f3c6a5; --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 15h14c0 8-3 13-7 13s-7-5-7-13z' fill='%23c99a63'/%3E%3Cpath d='M7 15c0-5 4-8 9-8s9 3 9 8z' fill='%238a6440'/%3E%3Cpath d='M16 7c0-2 1-3 3-4' stroke='%238a6440' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

.about-intro .noticed-snap {
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 26C6 13 14 6 27 5c0 13-8 21-21 21z' fill='%239fbf86'/%3E%3Cpath d='M6 26C12 19 18 13 24 8' stroke='%236f8f5a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.noticed-videos li:nth-child(odd) .snap { transform: rotate(1.2deg); --tape: #a9c7d6; }
.noticed-videos li:nth-child(even) .snap { transform: rotate(-1.2deg); --tape: #b9cfa6; }

.noticed-videos .snap::after {
  display: none;
}

.noticed-videos figcaption {
  font-weight: 600;
}

.noticed-videos video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: #1f2a28;
}

@media (max-width: 760px) {
  .noticed-gallery li .snap,
  .noticed-gallery li:nth-child(n) .snap {
    width: min(100%, 460px);
  }
}

/* Little Things: the "play them all" video, beside a short note and button */
.water-all {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 860px;
  margin: 28px 0 8px;
}

.water-all-snap {
  transform: rotate(-1.2deg);
  --tape: #a9c7d6;
}

.water-all-snap::after {
  display: none;
}

.water-all-snap figcaption {
  font-weight: 600;
}

.water-all-snap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: #1f2a28;
}

.water-all-text h3 {
  font-size: 1.6rem;
}

.water-all-text p {
  font-size: 1.08rem;
  line-height: 1.65;
}

.water-all-hint {
  margin-top: 14px;
  color: #5b6c67;
}

@media (max-width: 700px) {
  .water-all {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .water-all-snap {
    width: min(100%, 360px);
    margin: 0 auto;
  }
}

/* Mindful moments: the Little Things I Noticed feature (a landscape snapshot beside the text) */
.noticed-feature {
  margin-bottom: 0;
}

.noticed-feature .snap {
  width: min(100%, 420px);
}

/* Little Things: press a picture to see it bigger (viewer built in script.js) */
.enlarge-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 2px;
}
.enlarge-btn img { display: block; width: 100%; height: auto; }
.enlarge-btn:focus-visible { outline: 3px solid #2d4a43; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .enlarge-btn img { transition: filter .2s; }
  .enlarge-btn:hover img { filter: brightness(1.06); }
}
.enlarge-hint {
  margin: 10px 0 0;
  font-weight: 700;
  color: #4e735c;
}

.photo-viewer {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  overflow: auto;
}
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: rgba(25, 45, 38, .82); }
body:has(.photo-viewer[open]) { overflow: hidden; }

.pv-frame {
  position: relative;
  width: min(100%, 1100px);
  padding: 12px 12px 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.pv-img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 210px);
  max-height: calc(100dvh - 210px);
  object-fit: contain;
  background: #f4f1ea;
  border-radius: 2px;
}
.pv-caption {
  margin: 12px 4px 0;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #3f4f4b;
}
.pv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pv-count { font-weight: 700; color: #4e735c; font-size: .95rem; }
.pv-frame button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  background: #e8f2e5;
  color: #204a39;
}
.pv-frame button:hover { background: #d6e8d1; }
.pv-close {
  position: absolute;
  top: -14px;
  right: -8px;
  background: #204a39 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.pv-frame button:focus-visible { outline: 3px solid #f2a45c; outline-offset: 2px; }
@media (max-width: 480px) {
  .photo-viewer { padding: 22px 10px 10px; }
  .pv-close { right: 0; }
  .pv-count { order: -1; width: 100%; text-align: center; }
  .pv-nav button { flex: 1; }
}

/* ---- A Little Light for Someone (mindfulness/a-little-light-for-someone/, assets/lantern.js) ---- */
.light-subtitle {
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.25rem !important;
  color: var(--mindful);
}
.light-video {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.light-video-frame {
  margin: 0;
  padding: 10px 10px 6px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(106, 79, 143, .16);
}
.light-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: #f3eef9;
}
.light-video-frame figcaption {
  text-align: center;
  font-weight: 800;
  font-size: .92rem;
  color: var(--mindful);
  padding: 8px 0 2px;
}
.light-video video::cue {
  font-family: Nunito, system-ui, sans-serif;
  background: rgba(40, 28, 60, .78);
  color: #fff;
}
.captions-btn {
  margin-bottom: 16px;
}
.transcript {
  border: 2px solid var(--mindful-line);
  border-radius: 18px;
  background: var(--mindful-pale);
}
.transcript summary {
  cursor: pointer;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 900;
  color: var(--mindful);
}
.transcript summary:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 3px;
  border-radius: 14px;
}
.transcript-body {
  padding: 0 18px 8px;
}
.transcript-body p {
  margin-bottom: 12px;
}
.transcript-note,
.transcript-scene {
  font-style: italic;
  color: #5b6c67;
}
.light-think {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff8e8;
}
.light-think h3 {
  font-size: 1.2rem;
  color: var(--mindful);
}
.light-think p:last-child {
  margin-bottom: 0;
}
.light-steps > ol {
  padding-left: 30px;
}
.light-steps > ol > li::marker {
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 700;
  color: var(--mindful);
}
.light-steps h3 {
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: #4f3b6e;
}
.light-steps ul {
  margin: 0 0 12px;
}
.light-steps ul li {
  margin-bottom: 4px;
}
.light-gentle {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--mindful-pale);
  margin: 6px 0 0;
}
.light-list li strong {
  color: #4f3b6e;
}
.light-thought {
  text-align: center;
  background: linear-gradient(180deg, #f6f1fb, #fff8ec);
}
.light-thought p {
  font-size: 1.08rem;
}
.light-moon {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}
.light-moon-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* The Kindness Lantern */
.lantern-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.lantern-stage svg {
  display: block;
  width: 100%;
  height: auto;
}
.lantern-privacy {
  font-size: .9rem;
  color: #5b6c67;
  text-align: center;
  margin: 8px 0 0;
}
.lantern-choices h3 {
  color: #4f3b6e;
  font-size: 1.3rem;
}
.lantern-options {
  display: grid;
  gap: 10px;
}
.lantern-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px 8px 8px;
  border: 2px solid var(--mindful-line);
  border-radius: 999px;
  background: #fff;
  color: #3f3352;
  font-weight: 800;
  text-align: left;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.lantern-option svg {
  flex: none;
  width: 44px;
  height: 44px;
}
.lantern-option:hover {
  background: var(--mindful-pale);
}
.lantern-option[aria-pressed="true"] {
  background: #fff7dc;
  border-color: #e9c46a;
}
.lantern-option[aria-pressed="true"]::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(#fffbe0, #f6d77a);
  box-shadow: 0 0 10px 3px rgba(246, 215, 122, .7);
}
.lantern-option.current {
  box-shadow: 0 0 0 4px rgba(233, 196, 106, .35);
}
.lantern-option:focus-visible {
  outline: 3px solid #2d4a43;
  outline-offset: 3px;
}
.lantern-message {
  min-height: 3.4em;
  margin: 16px 0 4px;
  padding: 12px 18px;
  border-radius: 18px;
  background: #fffaf0;
  border: 1px dashed #e9c46a;
  font-weight: 700;
  color: #4f3b6e;
}
.lantern-message p {
  margin: 0;
}
.lantern-message.show {
  animation: ll-message .6s ease-out;
}
@keyframes ll-message {
  from { opacity: .2; }
}
.lantern-actions {
  margin-top: 12px;
}
.lantern-calm {
  margin-top: 16px;
}

/* Lantern glow and fireflies: a slow, small drift; Calm motion or reduced motion keeps them still */
#ll-halo,
#ll-orb {
  transition: opacity 1.2s ease, r 1.2s ease;
}
.ll-fly {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.ll-fly.on {
  opacity: 1;
  animation: ll-drift 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes ll-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -7px); }
}
.lantern-layout.calm .ll-fly.on,
.lantern-layout.calm .lantern-message.show {
  animation: none;
}
.lantern-layout.calm #ll-halo,
.lantern-layout.calm #ll-orb,
.lantern-layout.calm .ll-fly {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .ll-fly.on,
  .lantern-message.show { animation: none; }
}

/* The Moon We Share: the invitation after the story. It glows softly once the narration ends */
.story-next {
  margin-top: 22px;
  background: linear-gradient(180deg, #f6f1fb, #fff8ec);
  border-left: 5px solid #e9c46a;
  transition: box-shadow 1.2s ease;
}
.story-next h2 {
  color: var(--mindful);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.story-next.story-next-glow {
  box-shadow: 0 0 0 4px rgba(233, 196, 106, .45), 0 10px 30px rgba(233, 196, 106, .35);
}

@media (max-width: 800px) {
  .light-video,
  .lantern-layout,
  .light-moon {
    grid-template-columns: 1fr;
  }
  .light-video-frame {
    max-width: 340px;
    margin: 0 auto;
  }
  .light-moon-art {
    max-width: 320px;
  }
}

/* Activity pages: the owner's own vertical video (e.g. Shadow Detectives), in woodland green */
.activity-video {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.activity-video-frame {
  margin: 0;
  padding: 10px 10px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(25, 65, 51, .12);
  transform: rotate(-1deg);
}
.activity-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: #e8f2e5;
}
.activity-video-frame figcaption {
  text-align: center;
  font-weight: 800;
  font-size: .92rem;
  color: var(--forest);
  padding: 8px 0 2px;
}
.activity-video-side > :last-child {
  margin-bottom: 0;
}
.activity-video .transcript {
  border-color: var(--line);
  background: #f4f8f0;
}
.activity-video .transcript summary {
  color: var(--forest);
}
@media (max-width: 800px) {
  .activity-video {
    grid-template-columns: 1fr;
  }
  .activity-video-frame {
    max-width: 300px;
    margin: 0 auto;
    transform: none;
  }
}
.activity-video video::cue {
  font-family: Nunito, system-ui, sans-serif;
  background: rgba(25, 55, 44, .8);
  color: #fff;
}

/* Try a card: one real card from a deck, free to use, on the Mindful moments hub */
.try-card {
  background: #fbf6e6;
}

.try-card-row {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.try-card-art {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid #eadfb8;
  box-shadow: 0 14px 30px rgba(60, 45, 20, .18);
  transform: rotate(-3deg);
}

.try-card-text h2 {
  color: var(--mindful);
}

.try-card-text p {
  max-width: 560px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.try-card-text .try-card-source {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mindful);
}

.try-card-grownups {
  max-width: 560px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed #e3d6ad;
}

.try-card-grownups p {
  margin-bottom: 14px;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .try-card-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .try-card-art {
    width: min(62%, 220px);
    margin: 0 auto;
  }
}

/* The Journey to Happy Thoughts card: pink band, card on the right on wide screens */
.try-card-pink {
  background: #fcecee;
}

.try-card-pink .try-card-art {
  border-color: #efc3c9;
  transform: rotate(3deg);
}

.try-card-pink .try-card-grownups {
  border-top-color: #efc3c9;
}

@media (min-width: 701px) {
  .try-card-pink .try-card-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  }

  .try-card-pink .try-card-art {
    order: 2;
  }
}
