/* ==========================================================================
   HapyTask — homepage
   Phone mockups follow the app's real screen specs (child home, parent
   "Your Family"), scaled from 390pt to a 280px-wide screen.
   ========================================================================== */

.section-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .lede { margin-inline: auto; max-width: 62ch; }
.text-gold { color: var(--gold); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -88px;
  padding: calc(88px + clamp(32px, 5vw, 64px)) 0 clamp(120px, 12vw, 190px);
  background: linear-gradient(180deg, #37a3f6 0%, #5dbdfb 34%, #97dcff 68%, #d3f3ff 100%);
  isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spark { position: absolute; width: var(--s, 20px); height: auto; animation: twinkle var(--t, 3s) ease-in-out infinite; filter: drop-shadow(0 2px 6px rgba(255, 190, 40, 0.5)); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__copy { position: relative; z-index: 2; }
.hero .display { color: var(--ink); margin-bottom: 22px; }
.hero .lede { color: #102a5c; max-width: 34em; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }
.hero__trust {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-weight: 800; font-size: 16px; color: var(--ink);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a749' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 -2px 0 var(--edge);
}

.hero__demo { position: relative; display: flex; justify-content: center; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
}

/* ============================ PHONE (shared) ============================ */
.phone {
  position: relative;
  width: 300px; height: 632px;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, #1d2335, #0b0f1a);
  box-shadow:
    inset 0 0 0 2px #3a4258,
    inset 0 0 0 5px #0b0f1a,
    0 40px 70px -28px rgba(3, 25, 69, 0.55),
    0 18px 30px -18px rgba(3, 25, 69, 0.4);
  flex: none;
}
.phone::before { /* dynamic island */
  content: ''; position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 25px; border-radius: 20px; background: #05070c; z-index: 20;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 42px;
  background: #bfe6ff;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
  text-align: left;
  isolation: isolate;
}
.phone__screen--white { background: #fff; }
.phone p { margin: 0; }

.scr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -1; }
.scr-status {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; padding: 4px 28px 0 30px;
  font-size: 13px; font-weight: 800; color: #0a1633;
}
.scr-status__icons { display: flex; gap: 5px; align-items: center; }
.scr-status__icons svg { height: 10px; width: auto; fill: currentColor; }
.scr-status__icons svg:last-child { height: 11px; }

/* Child home: side rail */
.scr-rail { position: absolute; left: 6px; top: 52px; display: grid; gap: 7px; z-index: 3; }
.rail-tab { position: relative; width: 52px; display: grid; justify-items: center; }
.rail-face {
  width: 42px; height: 44px; border-radius: 16px; border: 2px solid #785435; position: relative;
  display: grid; place-items: center;
}
.rail-tab--week .rail-face { background: linear-gradient(#b5edff, #5999d9 60%, #366ba7); }
.rail-tab--gift .rail-face { background: linear-gradient(#ead3ff, #ae7be4 60%, #7345ae); }
.rail-face img { width: 38px; height: 38px; margin-top: -6px; }
.rail-tab span {
  margin-top: -6px; position: relative; z-index: 1;
  width: 52px; padding: 2px 0; border-radius: 8px; text-align: center;
  background: linear-gradient(#fff, #eef2f7); border: 1.5px solid #c7d2e1; box-shadow: 0 2px 0 #a3b2c6;
  font-size: 7.5px; font-weight: 900; color: #43566f; letter-spacing: 0.01em;
}
.rail-dot {
  position: absolute; top: -3px; right: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #509763 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 9px no-repeat;
  border: 1.5px solid #fff; transform: scale(0); transition: transform 0.35s var(--ease-pop);
}
.rail-dot.on { transform: scale(1); }

/* Child coin balance chip (home tone) */
.scr-coins {
  position: absolute; top: 54px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px 2px 5px; border-radius: 999px;
  background: #fff0bd; border: 1px solid #edd394; border-top-color: #fff5d6; border-bottom-width: 3px;
  font-weight: 900; font-size: 13.5px; color: var(--reward); font-variant-numeric: tabular-nums;
  transition: transform 0.2s var(--ease-pop);
}
.scr-coins img { width: 17px; height: 17px; }
.scr-coins.bump { animation: bump 0.45s var(--ease-pop); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.scr-buddy {
  position: absolute; left: 50%; bottom: 298px; width: 196px; height: auto; transform: translateX(-50%);
  z-index: 1; filter: drop-shadow(0 12px 10px rgba(30, 70, 20, 0.25));
  animation: buddy-idle 3.6s ease-in-out infinite;
}
@keyframes buddy-idle { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.scr-buddy.cheer { animation: buddy-cheer 0.7s var(--ease-pop); }
@keyframes buddy-cheer { 0% { transform: translateX(-50%) scale(1); } 30% { transform: translateX(-50%) translateY(-18px) scale(1.06) rotate(-4deg); } 60% { transform: translateX(-50%) translateY(0) scale(0.98) rotate(3deg); } 100% { transform: translateX(-50%) scale(1); } }

/* Chores panel */
.scr-panel {
  position: absolute; left: 10px; right: 10px; bottom: 64px; z-index: 2;
  height: 236px; padding: 8px 10px 10px;
  background: #fff; border-radius: 22px;
  border: 2px solid #fff; border-bottom-color: #d6dfea;
  box-shadow: 0 8px 16px rgba(51, 75, 104, 0.18);
}
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 15px; background: #eef2f7; margin-bottom: 8px; }
.seg__tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 32px; border-radius: 12px; font-size: 11.5px; font-weight: 800; color: #64748b;
}
.seg__tab img { width: 18px; height: 18px; }
.seg__tab--on { background: #fff; border: 1px solid #dce4ee; color: #334b68; box-shadow: 0 1px 3px rgba(51, 75, 104, 0.12); }
.seg__tab i {
  font-style: normal; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #e7edf5; color: #52647c; font-size: 9.5px; display: inline-grid; place-items: center;
}

.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task {
  display: flex; align-items: center; gap: 6px;
  min-height: 50px; padding: 6px 7px 6px 8px;
  background: #fff; border: 1px solid #dfe6ee; border-radius: 14px;
  transition: opacity 0.3s, transform 0.4s var(--ease-out), max-height 0.4s var(--ease-out), margin 0.4s, padding 0.4s;
  max-height: 60px; overflow: hidden;
}
.task > img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.task__title { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 800; color: #051a45; line-height: 1.15; }
.task__reward {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px 5px; border-radius: 8px; background: #fff3d7;
  font-size: 11px; font-weight: 800; color: var(--reward);
}
.task__reward img { width: 13px; height: 13px; }
.task__btn {
  flex: none; min-height: 32px; padding: 0 9px; border: 0; border-radius: 10px;
  background: var(--green-ui); color: #fff; font: 800 11px/1 var(--font);
  border-bottom: 2px solid var(--green-ui-edge); cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.task__btn:hover { filter: brightness(1.07); }
.task__btn:active { transform: translateY(1px); border-bottom-width: 1px; }
.task__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.task__wait { display: none; flex: none; font-size: 11px; font-weight: 700; color: #566582; padding: 0 4px; }
.task.is-pending { opacity: 0.8; }
.task.is-pending .task__btn { display: none; }
.task.is-pending .task__wait { display: inline; }
.task.is-done { opacity: 0; transform: translateX(30px); max-height: 0; min-height: 0; padding-block: 0; margin-top: -6px; border-width: 0; }

.demo:not(.touched) .task:first-child .task__btn { animation: pulse-ring 1.8s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(0, 167, 73, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(0, 167, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 167, 73, 0); } }

.alldone { text-align: center; padding-top: 6px; }
.alldone[hidden] { display: none; }
.alldone__well { width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; background: #f0f3f7; display: grid; place-items: center; position: relative; }
.alldone__well::after {
  content: ''; position: absolute; right: -2px; bottom: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #52a776 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 2px solid #fff;
}
.alldone__title { font-size: 17px; font-weight: 900; color: #52647c; margin-bottom: 2px !important; }
.alldone__body { font-size: 12px; font-weight: 700; color: var(--muted); }
.alldone__unlock {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px; background: #efe6ff; color: #5b36b8; font-size: 12px; font-weight: 900;
  animation: pop-in 0.5s var(--ease-pop) both 0.2s;
}
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Tab bar */
.scr-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 3;
  display: flex; justify-content: space-around; align-items: flex-start; padding: 7px 8px 0;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 16px rgba(6, 17, 43, 0.1);
}
.scr-tabs span { display: grid; justify-items: center; gap: 1px; font-size: 9px; font-weight: 800; color: rgba(0, 0, 0, 0.45); }
.scr-tabs span.on { color: #000; }
.scr-tabs img { width: 26px; height: 26px; object-fit: contain; }

/* Push notification */
.scr-notif {
  position: absolute; left: 8px; right: 8px; top: 8px; z-index: 30;
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 11px; border-radius: 20px;
  background: rgba(250, 250, 252, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px -8px rgba(3, 25, 69, 0.35);
  transform: translateY(-140%); transition: transform 0.5s var(--ease-pop);
}
.scr-notif.show { transform: translateY(0); }
.scr-notif > img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.scr-notif div { flex: 1; min-width: 0; }
.scr-notif__top { display: flex; justify-content: space-between; font-size: 10.5px; color: #6b7280; margin-bottom: 1px !important; }
.scr-notif__top b { color: #111827; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; font-size: 9.5px; }
.scr-notif__title { font-size: 12.5px; font-weight: 800; color: #111827; }
.scr-notif__body { font-size: 12px; color: #374151; font-weight: 600; }

/* Celebration */
.scr-celebrate { position: absolute; inset: 0; z-index: 25; pointer-events: none; display: grid; place-items: center; }
.scr-celebrate__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 22px; font-weight: 900; box-shadow: 0 12px 30px -8px rgba(3, 25, 69, 0.6);
  transform: scale(0); opacity: 0;
}
.scr-celebrate.go .scr-celebrate__pill { animation: celebrate 1.5s var(--ease-pop) both; }
@keyframes celebrate { 0% { transform: scale(0.2); opacity: 0; } 18% { transform: scale(1.08); opacity: 1; } 30% { transform: scale(1); } 80% { transform: scale(1) translateY(0); opacity: 1; } 100% { transform: scale(0.9) translateY(-20px); opacity: 0; } }
.confetti { position: absolute; top: 44%; left: 50%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }

.fly-coin { position: absolute; z-index: 28; width: 18px; height: 18px; pointer-events: none; }

/* Demo wrapper extras */
.demo { position: relative; padding: 44px 0 58px; }

/* Download QR, tucked behind the phone's right edge (the phone never covers the code) */
.hero-qr {
  position: absolute; z-index: 0; left: calc(100% - 36px); top: 350px; width: max-content;
  display: grid; justify-items: center; gap: 8px;
  padding: 16px 16px 14px 54px; border-radius: 24px; background: #fff;
  box-shadow: inset 0 -4px 0 var(--edge), 0 24px 40px -20px rgba(3, 25, 69, 0.45);
  transform: rotate(5deg); transform-origin: 0 50%;
}
.hero-qr__code { width: 124px; height: 124px; }
.hero-qr__label { margin: 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.hero-qr__label b { display: block; font-size: 14px; font-weight: 900; color: var(--ink); }
@media (max-width: 1179px), (hover: none) { .hero-qr { display: none; } }
@media (min-width: 1180px) and (max-width: 1319px) { .hero__demo { justify-content: flex-start; } }
.demo-coin {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: auto; z-index: 0;
  animation: bob-rot var(--t, 5s) ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(160, 90, 0, 0.3));
}
.demo .phone { z-index: 1; }

.approve-card {
  position: absolute; right: -78px; top: 148px; z-index: 5; width: 232px;
  padding: 12px 14px 14px; border-radius: 20px; background: #fff;
  border: 2px solid #e3e8f2;
  box-shadow: 0 30px 50px -20px rgba(3, 25, 69, 0.45);
  transform: rotate(3deg) translateY(14px) scale(0.92); opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.45s var(--ease-pop), visibility 0.3s;
}
.approve-card.show { opacity: 1; visibility: visible; transform: rotate(3deg); }
.approve-card:not(.show) { pointer-events: none; }
.approve-card p { margin: 0; }
.approve-card__label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.approve-card__label img { width: 22px; height: 22px; }
.approve-card__row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.approve-card__row > img { width: 39px; height: 39px; border-radius: 50%; }
.approve-card__row > div { flex: 1; min-width: 0; }
.approve-card__who { font-size: 12px; font-weight: 700; color: #566582; }
.approve-card__what { font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.approve-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.approve-card .pill { cursor: pointer; height: 36px; font-size: 14px; }
.approve-card .pill--approve { animation: pulse-ring 1.6s ease-out infinite; }

.mini-chip {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  height: 24px; padding: 0 8px; border-radius: 999px; background: var(--cream);
  font-size: 12px; font-weight: 900; color: var(--reward);
}
.mini-chip img { width: 12px; height: 12px; }
.mini-chip--grey { background: #f0f2f7; color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  height: 32px; font: 800 13px/1 var(--font);
}
.pill--decline { background: #ffe5c9; color: #8f5400; }
.pill--approve { background: var(--green-ui); color: #fff; }
.pill:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.demo-hint {
  position: absolute; z-index: 6; margin: 0;
  left: 50%; top: -12px; transform: translateX(-50%);
  pointer-events: none; transition: opacity 0.3s;
}
.demo-hint span {
  display: inline-block; position: relative; white-space: nowrap;
  padding: 8px 14px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: 0 12px 24px -10px rgba(3, 25, 69, 0.6);
  animation: hint-bob 1.6s ease-in-out infinite;
}
.demo-hint span::before {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; background: var(--ink);
  transform: translateX(-50%) rotate(45deg); border-radius: 3px;
}
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.demo.touched .demo-hint { opacity: 0; }
.demo-reset {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  border: 0; background: rgba(255, 255, 255, 0.85); color: var(--ink); cursor: pointer;
  font: 800 14px/1 var(--font); padding: 11px 18px; border-radius: 999px;
  box-shadow: inset 0 -3px 0 var(--edge), 0 8px 18px -10px rgba(3, 25, 69, 0.5);
}
.demo-reset[hidden] { display: none; }

@media (max-width: 1240px) {
  .approve-card { right: -40px; }
}
@media (max-width: 560px) {
  .approve-card { right: -10px; top: 138px; width: 212px; }
  .demo-coin:nth-of-type(2) { display: none; }
}
@media (max-width: 360px) {
  .demo { zoom: 0.92; }
}

/* ============================ MARQUEE ============================ */
.marquee-band { position: relative; background: var(--cloud); padding: 6px 0 20px; }
.marquee-band__label { text-align: center; font-weight: 700; color: var(--muted); font-size: 16px; margin: 0 0 12px; padding: 0 var(--gutter); }
.marquee-band__label b { color: var(--ink); }
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  list-style: none; margin: 0; padding: 8px 0 14px;
  display: flex; gap: 14px; width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 7px 18px 7px 7px; border-radius: 18px; background: #fff;
  font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap;
  box-shadow: inset 0 -3px 0 var(--edge), 0 8px 18px -12px rgba(6, 17, 43, 0.3);
}
.marquee__track img { width: 44px; height: 44px; border-radius: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: var(--gutter); }
  .marquee__track li[aria-hidden='true'] { display: none; }
  .marquee { -webkit-mask: none; mask: none; }
}

/* ============================ WHAT ============================ */
.what { background: var(--cloud); padding-top: clamp(56px, 7vw, 96px); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); max-width: 1040px; margin: 0 auto; }
.role-card {
  position: relative; background: #fff; border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: inset 0 -6px 0 #bcd7ef, var(--shadow-card);
}
.role-card__tile { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 18px; }
.role-card--kid .role-card__tile { background: #ddf2ff; }
.role-card--parent .role-card__tile { background: #fff0da; }
.role-card__tile img { width: 84px; height: 84px; object-fit: contain; }
.role-card .h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 4px; }
.role-card__sub { color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; color: var(--body); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a749' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.role-card--parent .ticks li::before { background-color: #fff0da; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98a06' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.ticks b { color: var(--ink); }

.stats {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.stats li {
  display: grid; justify-items: center; text-align: center; gap: 2px;
  padding: 22px 12px; border-radius: var(--r-lg); background: #fff;
  box-shadow: inset 0 -4px 0 var(--edge);
}
.stats b { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.stats li:nth-child(1) b { color: var(--green); }
.stats li:nth-child(2) b { color: var(--purple); }
.stats li:nth-child(3) b { color: var(--blue); }
.stats li:nth-child(4) b { color: #b56b00; }
.stats span { font-weight: 800; color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) {
  .roles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================ HOW ============================ */
.how { background: #e4f5ff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: none; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 0;
  border-top: 3px dashed rgba(31, 115, 230, 0.28);
}
.step {
  position: relative; background: #fff; border-radius: var(--r-xl);
  padding: 34px 22px 26px; box-shadow: inset 0 -5px 0 var(--edge), var(--shadow-soft);
}
.step__num {
  position: absolute; top: -22px; left: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-ui); color: #fff; font-size: 22px; font-weight: 900;
  box-shadow: 0 4px 0 var(--green-ui-edge), 0 10px 18px -8px rgba(0, 120, 50, 0.5);
}
.step:nth-child(2) .step__num { background: var(--blue); box-shadow: 0 4px 0 var(--blue-edge), 0 10px 18px -8px rgba(15, 79, 179, 0.5); }
.step:nth-child(3) .step__num { color: var(--ink); background: var(--gold-deep); box-shadow: 0 4px 0 var(--gold-edge), 0 10px 18px -8px rgba(217, 138, 6, 0.5); }
.step:nth-child(4) .step__num { background: var(--purple); box-shadow: 0 4px 0 #5537c9, 0 10px 18px -8px rgba(85, 55, 201, 0.5); }
.step .h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.step p { font-size: 16px; margin: 0; }
.step__art {
  position: relative; height: 184px; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center; padding: 22px 16px 12px;
}
.step__art--assign { background: linear-gradient(160deg, #eef7ff, #dff0ff); }
.step__art--complete { background: linear-gradient(160deg, #e9fbef, #d6f5e1); }
.step__art--approve { background: linear-gradient(160deg, #fff6e8, #ffecd0); }
.step__art--coins { background: linear-gradient(160deg, #f1ecff, #e3d9ff); }
.step__art p { margin: 0; }

.mini-assign { position: relative; width: 100%; max-width: 214px; background: #fff; border-radius: 16px; padding: 14px 10px 12px; box-shadow: var(--shadow-soft); text-align: left; }
.mini-assign__icon { position: absolute; right: -12px; top: -18px; width: 52px; height: 52px; filter: drop-shadow(0 6px 8px rgba(3, 25, 69, 0.2)); }
.mini-assign__title { font-size: 13px; font-weight: 900; color: var(--ink); margin-bottom: 8px !important; padding-right: 34px; }
.mini-assign__input { display: flex; align-items: center; gap: 6px; background: #f1f4fa; border-radius: 10px; padding: 5px 8px; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 7px !important; text-align: left; }
.mini-assign__input img { width: 22px; height: 22px; border-radius: 5px; }
.mini-assign__chips { display: flex; gap: 4px; justify-content: space-between; }
.mini-assign__chips span { padding: 4px 6px; border-radius: 999px; background: #f1f4fa; font-size: 11px; font-weight: 900; color: var(--reward); }
.mini-assign__chips .on { background: var(--green-ui); color: #fff; }

.mini-task { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; width: 100%; max-width: 230px; background: #fff; border: 1px solid #dfe6ee; border-radius: 14px; padding: 8px; box-shadow: var(--shadow-soft); margin-top: -40px; }
.mini-task > img { width: 28px; height: 28px; border-radius: 6px; }
.mini-task__title { flex: 1; font-size: 12px; font-weight: 800; color: #051a45; line-height: 1.1; }
.mini-task .task__reward { font-size: 10.5px; }
.mini-task__btn { padding: 8px 8px; border-radius: 9px; background: var(--green-ui); color: #fff; font-size: 10.5px; font-weight: 800; border-bottom: 2px solid var(--green-ui-edge); animation: pulse-ring 2s ease-out infinite; }
.step__buddy { position: absolute; right: -6px; bottom: -16px; width: 100px; height: auto; }

.mini-approve { width: 100%; max-width: 230px; background: #fff; border: 2px solid #e3e8f2; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-soft); }
.mini-approve__row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mini-approve__row > img { width: 34px; height: 34px; border-radius: 50%; }
.mini-approve__row > div { flex: 1; min-width: 0; }
.mini-approve .ma-who { font-size: 11px; font-weight: 700; color: #566582; margin: 0; }
.mini-approve .ma-what { font-size: 13.5px; font-weight: 900; color: var(--ink); margin: 0; line-height: 1.15; }
.mini-approve__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-approve .pill { height: 30px; font-size: 12.5px; }
.step__art--approve .pill--approve { animation: pulse-ring 2s ease-out infinite; }

.mini-coins { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.mini-coins .coin-chip { height: 44px; font-size: 22px; padding: 0 16px 0 6px; }
.mini-coins .coin-chip img { width: 32px; height: 32px; }
.mini-coins__plus {
  position: absolute; top: 18px; right: 22%;
  font-size: 26px; font-weight: 900; color: var(--gold);
  text-shadow: 0 2px 0 #b86b00, 0 0 1px #b86b00;
  animation: float-up 2.4s ease-in-out infinite;
}
.mini-coins__c { position: absolute; animation: bob-rot 3s ease-in-out infinite; }
.mini-coins__c.c1 { left: 16%; top: 22%; --rot: -14deg; }
.mini-coins__c.c2 { left: 26%; bottom: 18%; --rot: 10deg; animation-delay: -1s; }
.mini-coins__c.c3 { right: 16%; bottom: 24%; --rot: -6deg; animation-delay: -2s; }
@keyframes float-up { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-8px); opacity: 0.85; } }

@media (max-width: 1219px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================ BUDDIES ============================ */
.buddies {
  background: linear-gradient(180deg, #e4f5ff 0%, #eef4ff 45%, #f3efff 100%);
  overflow: hidden; isolation: isolate;
  padding-bottom: clamp(140px, 14vw, 200px);
}
.buddies__sky { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.eggs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); max-width: 1000px; margin: 0 auto; }
.egg-slot { display: grid; justify-items: center; text-align: center; }
.egg {
  position: relative; width: 100%; max-width: 220px; aspect-ratio: 1;
  border: 0; background: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.egg::before { /* soft cloud nest */
  content: ''; position: absolute; left: 8%; right: 8%; bottom: 4%; height: 22%;
  border-radius: 50%; background: radial-gradient(ellipse at center, #fff 0 55%, rgba(255,255,255,0) 72%);
}
.egg__shell, .egg__buddy { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); transition: transform 0.5s var(--ease-pop), opacity 0.35s; }
.egg__shell { width: 88%; filter: drop-shadow(0 12px 14px rgba(70, 70, 140, 0.18)); transform-origin: 50% 90%; }
.egg__buddy { width: 92%; bottom: 4%; opacity: 0; transform: translateX(-50%) scale(0.3); transform-origin: 50% 100%; filter: drop-shadow(0 12px 12px rgba(40, 40, 90, 0.2)); }
.egg__rays {
  position: absolute; inset: -6%; border-radius: 50%; opacity: 0; transform: scale(0.5);
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 90, 0.55) 0 10deg, rgba(255, 214, 90, 0) 10deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 70%);
  mask: radial-gradient(circle, #000 0 30%, transparent 70%);
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.egg:hover .egg__shell { animation: wobble 0.6s ease-in-out; }
.egg.crack-1 .egg__shell { animation: wobble 0.45s ease-in-out; transform: translateX(-50%) scale(1.05); }
.egg.crack-2 .egg__shell { animation: wobble-big 0.45s ease-in-out; transform: translateX(-50%) scale(1.1); }
.egg.is-hatched { cursor: default; }
.egg.is-hatched .egg__shell { opacity: 0; transform: translateX(-50%) scale(1.5); animation: none; }
.egg.is-hatched .egg__buddy { opacity: 1; transform: translateX(-50%) scale(1); }
.egg.is-hatched .egg__rays { opacity: 1; transform: scale(1); animation: spin-slow 16s linear infinite; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -7deg; } 75% { rotate: 7deg; } }
@keyframes wobble-big { 0%, 100% { rotate: 0deg; } 20% { rotate: -12deg; } 50% { rotate: 10deg; } 80% { rotate: -6deg; } }
.egg-slot__name {
  margin: 8px 0 0; font-size: 18px; font-weight: 700; color: var(--ink-2);
  transition: opacity 0.3s, transform 0.4s var(--ease-pop);
}
.egg-slot__name b { font-weight: 900; color: var(--ink); }
.js .egg-slot:not(.is-hatched) .egg-slot__name { opacity: 0; transform: translateY(6px); }
.js .egg-slot:not(.is-hatched)::after {
  content: 'Tap to hatch'; margin-top: -28px; font-size: 14px; font-weight: 800; color: #6b5bb8;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.8);
}
.no-js .egg__shell { opacity: 0; }
.no-js .egg__buddy { opacity: 1; transform: translateX(-50%) scale(1); }
.eggs-note { text-align: center; max-width: 56ch; margin: 28px auto 0; font-weight: 700; color: var(--muted); }
.egg-burst { position: absolute; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; left: 50%; top: 55%; }
@media (max-width: 720px) {
  .eggs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}

/* ============================ ARCADE ============================ */
.arcade {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #2b2a8c 0%, #2b2a8c 50%, #1f1a66 100%);
  color: #ece6ff;
  padding: clamp(120px, 12vw, 176px) 0 clamp(150px, 14vw, 210px);
}
.arcade .cloudline--flip { color: #f3efff; top: -3px; }
/* The room art covers the top of the section at its natural aspect, so the claw
   machine and cabinets stay in view; it then fades into the section colour. */
.arcade__bg { position: absolute; left: 0; right: 0; top: 0; height: clamp(620px, 57.2vw, 1100px); z-index: -1; }
.arcade__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.arcade__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 38, 106, 0.28) 0%, rgba(36, 38, 106, 0.1) 30%, rgba(43, 42, 140, 0.55) 70%, #2b2a8c 100%),
    radial-gradient(ellipse 48% 40% at 30% 42%, rgba(22, 18, 80, 0.78), rgba(22, 18, 80, 0.35) 55%, rgba(22, 18, 80, 0) 80%);
}
@media (max-width: 980px) {
  .arcade__bg::after {
    background: linear-gradient(180deg, rgba(30, 26, 100, 0.55) 0%, rgba(30, 26, 100, 0.7) 45%, rgba(43, 42, 140, 0.8) 75%, #2b2a8c 100%);
  }
}
@media (max-width: 760px) {
  .arcade__bg { height: min(200vw, 1100px); }
}
.arcade__inner { position: relative; }
.arcade__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.arcade .h2 { color: #fff; text-shadow: 0 3px 12px rgba(16, 19, 61, 0.45); }
.arcade .lede { color: #f1ecff; text-shadow: 0 1px 8px rgba(16, 19, 61, 0.45); max-width: 44em; }

.locked-card {
  justify-self: end; width: 100%; max-width: 330px; text-align: center; color: #38265d;
  padding: 20px 20px 18px; border-radius: 28px;
  background: linear-gradient(180deg, #ede1ff 0%, #fffbf1 48%);
  border: 2px solid #ebd4a4;
  box-shadow: 0 16px 30px rgba(24, 13, 57, 0.35);
  transform: rotate(2deg);
}
.locked-card p { margin: 0; }
.locked-card__badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f9f2ff; border: 1px solid #d6bfef;
  font-size: 10.5px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #62448b;
}
.locked-card img { width: 128px; height: 128px; margin: 6px auto 2px; border-radius: 50%; background: #e6d8f7; }
.locked-card__title { font-size: 22px; font-weight: 900; }
.locked-card__body { font-size: 14px; font-weight: 700; color: #6a5a7e; line-height: 1.4; margin-top: 4px !important; }
.locked-card__progress { margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: #f6f0fb; text-align: left; }
.locked-card__progress p { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-bottom: 6px !important; }
.locked-card .bar { display: flex; height: 9px; border-radius: 9px; background: #e5dcee; overflow: hidden; }
.locked-card .bar i { display: block; background: #38ad80; }
.locked-card .bar i.pending { background: #e6ae42; }

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game {
  position: relative; display: grid; grid-template-columns: 44% 1fr; align-items: stretch;
  background: #fff; color: var(--body); border-radius: 26px; overflow: hidden;
  box-shadow: inset 0 -5px 0 rgba(43, 35, 130, 0.18), 0 22px 40px -22px rgba(10, 6, 40, 0.8);
}
.game .h3 { font-size: 1.4rem; margin-bottom: 6px; }
.game p { font-size: 16px; margin-bottom: 12px; }
.game__body { padding: 22px 22px 20px; }
.game__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skills li { padding: 4px 11px; border-radius: 999px; background: #efe9ff; color: #4a2fc0; font-size: 13px; font-weight: 800; }
.game__art { position: relative; overflow: hidden; min-height: 220px; }
.game__art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Math Whiz (featured, playable) */
.game--math {
  grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}
.game--math__intro { padding: clamp(24px, 3.4vw, 40px); }
.game--math__logo { width: 190px; height: auto; margin: 2px 0 8px -6px; }
.game--math .h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.levels {
  list-style: none; padding: 0; margin: 14px 0 0; counter-reset: lvl;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px;
}
.levels li { counter-increment: lvl; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--ink-2); }
.levels li::before {
  content: counter(lvl); width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff; background: #8658d5; box-shadow: inset 0 -2px 0 #5d399a;
}
.mw {
  position: relative; min-width: 0; margin: 14px; border-radius: 22px; overflow: hidden;
  padding: 18px 18px 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0 1.5px, transparent 2.5px) 0 0 / 64px 64px,
    linear-gradient(170deg, #4a3a8f 0%, #393166 55%, #2b2350 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mw p { margin: 0; }
.mw__level { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #fff1ce; }
.mw__pengo { width: 130px; height: auto; margin: 4px 0 -30px; position: relative; z-index: 2; filter: drop-shadow(0 8px 10px rgba(10, 6, 40, 0.35)); transition: transform 0.4s var(--ease-pop); }
.mw.is-right .mw__pengo { transform: translateY(-6px) scale(1.05); }
.mw__card {
  position: relative; z-index: 1; width: 100%; max-width: 360px;
  padding: 34px 16px 18px; border-radius: 24px; background: #fffcf2;
  border: 2px solid #fff; border-bottom: 5px solid #d8cbe8;
  box-shadow: 0 6px 14px rgba(32, 23, 73, 0.25);
}
.mw__prompt { font-size: 14px; font-weight: 800; color: #77618a; min-height: 1.4em; }
.mw.is-right .mw__prompt { color: #25865c; }
.mw__eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; color: #463360; font-weight: 900; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; white-space: nowrap; }
.mw__eqsign { color: #7d6d96; }
.mw__slot {
  width: 74px; height: 74px; flex: none; border-radius: 17px;
  border: 2px dashed #9d85c4; background: #f0eaf8; color: #7d6d96;
  display: grid; place-items: center; font-size: 32px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ease-pop);
}
.mw.is-right .mw__slot { border-style: solid; border-color: #38ad80; background: #e2f7ec; color: #1f7a52; transform: scale(1.06); }
.mw__tiles { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mw__tile {
  --c: #9672f4; --e: #6644b2;
  position: relative; width: 66px; height: 70px; border-radius: 17px; cursor: pointer;
  border: 2px solid var(--e); border-bottom-width: 6px; background: var(--c);
  color: #fff; font: 900 28px/1 var(--font); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  overflow: hidden; transition: transform 0.12s, filter 0.2s, opacity 0.2s;
}
.mw__tile::before { content: ''; position: absolute; left: 10px; right: 10px; top: 6px; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.35); }
.mw__tile:nth-child(2) { --c: #0f8378; --e: #0a5f57; }
.mw__tile:nth-child(3) { --c: #d45a33; --e: #a8401f; }
.mw__tile:nth-child(4) { --c: #edb940; --e: #be861f; color: var(--ink); text-shadow: none; }
.mw__tile:hover { transform: translateY(-3px); }
.mw__tile:active { transform: translateY(2px); border-bottom-width: 3px; }
.mw__tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mw__tile.is-wrong { filter: grayscale(1) brightness(1.3); opacity: 0.55; animation: shake 0.4s; cursor: not-allowed; }
.mw__tile.is-right { transform: scale(1.08); }
@keyframes shake { 0%, 100% { translate: 0; } 25% { translate: -6px; } 75% { translate: 6px; } }

/* Memory Match */
.game__art--memory {
  background: linear-gradient(#3c49a7, #293987 55%, #182257);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px; align-content: center;
  perspective: 700px;
}
.flip { aspect-ratio: 1; }
.flip__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 6s ease-in-out infinite; }
.flip--d1 .flip__in { animation-delay: 0.25s; }
.flip--d2 .flip__in { animation-delay: 1.5s; }
.flip--d3 .flip__in { animation-delay: 1.75s; }
.flip img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 4px 3px rgba(10, 18, 70, 0.3); }
.flip__front { transform: rotateY(180deg); }
@keyframes flip { 0%, 12% { transform: rotateY(0); } 22%, 70% { transform: rotateY(180deg); } 80%, 100% { transform: rotateY(0); } }
.game--memory:hover .flip__in { animation-play-state: paused; }

/* Puzzle Pals */
.game__art--puzzle::after {
  content: ''; position: absolute; left: 0; top: 0; width: 33.4%; height: 33.4%;
  background: rgba(20, 30, 70, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.jigsaw { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.game__art--puzzle .piece {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  clip-path: inset(0 66.6% 66.6% 0 round 6px);
  filter: drop-shadow(0 8px 10px rgba(10, 20, 60, 0.5));
  animation: piece 4s ease-in-out infinite;
}
@keyframes piece { 0%, 100% { transform: translate(14%, 12%) rotate(-6deg); } 45%, 60% { transform: translate(0, 0) rotate(0); } }

/* Bubble Buddies */
.game__art--bubbles > img { object-position: 50% 12%; }

/* Pancake Stack */
.game__art--pancake { background: linear-gradient(#ffe6bc, #ffd79a); display: grid; place-items: end center; padding-bottom: 18px; }
.stack { position: relative; display: flex; flex-direction: column-reverse; align-items: center; width: 78%; }
.stack img { width: 100%; height: auto; margin-top: -22%; filter: drop-shadow(0 4px 3px rgba(120, 60, 0, 0.25)); }
.stack img:nth-child(2) { transform: translateX(4%); }
.stack img:nth-child(3) { transform: translateX(-3%); }
.stack img:nth-child(4) { transform: translateX(2%); }
.stack .drop { animation: pancake 3.2s ease-in-out infinite; }
@keyframes pancake {
  0% { transform: translate(-40%, -120%); } 35% { transform: translate(40%, -120%); } 55% { transform: translate(0, -120%); }
  70% { transform: translate(0, 0); } 76% { transform: translate(0, -6%); } 82%, 100% { transform: translate(0, 0); }
}

@media (max-width: 980px) {
  .arcade__head { grid-template-columns: 1fr; }
  .locked-card { justify-self: center; transform: none; }
  .game--math { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .game { grid-template-columns: 1fr; }
  .game__art { min-height: 0; aspect-ratio: 16 / 10; }
  .game__art--memory { aspect-ratio: auto; grid-template-columns: repeat(4, 1fr); padding: 14px; }
  .levels { grid-template-columns: 1fr; }
  .mw { margin: 0 10px 10px; }
  .mw__tile { width: 58px; height: 64px; font-size: 24px; }
  .mw__slot { width: 60px; height: 60px; font-size: 26px; }
}

/* Longer equations keep the same card width on small phones. */
@media (max-width: 380px) {
  .mw__eq { font-size: 24px; gap: 6px; }
  .mw__slot { width: 48px; height: 48px; font-size: 24px; }
}

/* ============================ HAPYSTORE ============================ */
.store { background: #fff6e3; }
.store__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.store__logo { width: 250px; height: auto; margin: 0 0 12px -8px; }
.store__facts { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 10px; }
.store__facts li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 -3px 0 #f0dfbd; font-weight: 700; color: var(--body); }
.store__facts img { width: 40px; height: 40px; }
.store__facts b { color: var(--ink); }
.store__note { font-size: 15px; font-weight: 700; color: #8a6420; }

.dressup {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 18px;
  padding: 16px; border-radius: 32px; background: #fff;
  box-shadow: inset 0 -6px 0 #f0dfbd, 0 30px 60px -30px rgba(120, 80, 10, 0.45);
}
.dressup__stage {
  position: relative; min-height: 420px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #bfe6ff;
}
.dressup__stage::before { /* striped awning, like the Hapystore market */
  content: ''; position: absolute; left: -2px; right: -2px; top: 0; height: 40px; z-index: 3;
  background: repeating-linear-gradient(90deg, #2f6fe4 0 34px, #7fd9e8 34px 68px);
  -webkit-mask: radial-gradient(circle at 17px 23px, #000 17px, transparent 17.5px) 0 0 / 34px 40px repeat-x, linear-gradient(#000 0 23px, transparent 23px);
  mask: radial-gradient(circle at 17px 23px, #000 17px, transparent 17.5px) 0 0 / 34px 40px repeat-x, linear-gradient(#000 0 23px, transparent 23px);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.18));
}
.dressup__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -1; transition: opacity 0.35s; }
.dressup__bg.swap { opacity: 0.2; }
.dressup__buddy {
  position: absolute; left: 50%; bottom: 60px; width: min(92%, 330px); height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.35s var(--ease-pop);
}
.dressup__buddy.swap { transform: translateX(-50%) scale(0.9) translateY(4%); }
.dressup__total {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; width: max-content;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  font-size: 14px; font-weight: 700; color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
}
.dressup__total b { font-weight: 900; color: var(--reward); font-variant-numeric: tabular-nums; }
.dressup__controls { display: grid; gap: 14px; align-content: start; min-width: 0; }
.picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6420; }
.picker__row { display: flex; flex-wrap: wrap; gap: 7px; }
.picker input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.picker label { cursor: pointer; position: relative; }
.picker label > span {
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  padding: 7px 12px; border-radius: 14px; background: #f4f9fc; border: 2px solid #b4dff7;
  font-size: 14px; font-weight: 800; color: #233b5b; transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.picker label:hover > span { transform: translateY(-1px); border-color: #7cc4ef; }
.picker input:checked + span { border-color: var(--green-edge); box-shadow: inset 0 0 0 1px var(--green-edge); background: #eaf7e9; }
.picker input:checked + span::after {
  content: ''; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; z-index: 1;
  background: var(--green-edge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 2px solid #fff;
}
.picker input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.picker small {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 2px;
  padding: 1px 6px 1px 4px; border-radius: 999px; background: #fff0bd; border: 1px solid #eac66d;
  font-size: 11.5px; font-weight: 900; color: #684010;
}
.picker small::before { content: ''; width: 12px; height: 12px; background: url('/assets/img/icons/coin.svg') center / contain no-repeat; }
.picker__row--buddies label > span { padding: 4px 12px 4px 4px; border-radius: 999px; }
.picker__row--buddies img { width: 34px; height: 34px; border-radius: 50%; }
.picker__row--bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; }
.bg-swatch { flex-direction: column; align-items: flex-start !important; gap: 4px !important; padding: 5px 5px 7px !important; width: 100%; font-size: 12px !important; line-height: 1.15; }
.bg-swatch img { width: 100%; height: 46px; object-fit: cover; object-position: 50% 45%; border-radius: 9px; }
.bg-swatch small { margin-left: 0 !important; }

@media (max-width: 1100px) {
  .store__grid { grid-template-columns: 1fr; }
  .store__copy { text-align: center; }
  .store__logo { margin-inline: auto; }
  .store__facts { max-width: 420px; margin-inline: auto; text-align: left; }
  .store .lede { margin-inline: auto; max-width: 60ch; }
}
@media (max-width: 640px) {
  .dressup { grid-template-columns: 1fr; padding: 12px; }
  .dressup__stage { min-height: 0; aspect-ratio: 4 / 4.4; }
  .picker__row--bgs { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .picker__row--bgs label { flex: 0 0 96px; scroll-snap-align: start; }
  .picker__row--buddies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker__row--buddies label > span { width: 100%; }
}

/* ============================ REWARDS ============================ */
.rewards { background: #eaf7ff; }
.rewards__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); max-width: 1060px; margin: 0 auto; }
.reward { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reward .h3 { margin: 22px 0 6px; font-size: 1.6rem; }
.reward p { margin: 0; max-width: 40ch; }
.reward__banner { width: 250px; height: auto; margin-bottom: 4px; }

.wheel { position: relative; width: min(270px, 78vw); aspect-ratio: 1; margin: 18px auto 20px; }
.wheel__pin { position: absolute; left: 50%; top: -18px; width: 40px; height: auto; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 3px 3px rgba(60, 20, 120, 0.35)); }
.wheel__disc { position: absolute; inset: 0; border-radius: 50%; transition: transform 4.2s cubic-bezier(0.15, 0.7, 0.12, 1); }
.wheel__disc img { width: 100%; height: 100%; filter: drop-shadow(0 12px 18px rgba(150, 80, 0, 0.3)); }
.wheel__disc span {
  position: absolute; left: 50%; top: 50%;
  font-size: clamp(22px, 7vw, 30px); font-weight: 900; color: #fff; line-height: 1;
  text-shadow: 0 0 3px #16205a, 0 2px 0 #16205a, 2px 0 0 #16205a, -2px 0 0 #16205a, 0 -2px 0 #16205a;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(calc(min(270px, 78vw) * -0.33));
}
.wheel__win {
  position: absolute; inset: 22%; z-index: 4; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 2px;
  background: rgba(21, 43, 98, 0.9); color: #fff;
  opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.45s var(--ease-pop); pointer-events: none;
}
.wheel__win img { width: 56px; height: 56px; }
.wheel__win b { font-size: 32px; font-weight: 900; }
.wheel.won .wheel__win { opacity: 1; transform: scale(1); }

.goal { position: relative; width: 100%; max-width: 380px; padding: 18px 18px 22px; border-radius: 24px; background: linear-gradient(180deg, #fff8e3, #fff); box-shadow: inset 0 0 0 2px #f6e3b5; }
.goal__trophy { width: 108px; height: auto; margin: -2px auto 6px; animation: bob 4s ease-in-out infinite; }
.tracker {
  display: flex; gap: 5px; padding: 5px; border-radius: 16px; margin: 0 auto;
  background: var(--navy); border: 2px solid var(--navy-border); box-shadow: inset 0 -3px 0 #102353;
  max-width: 280px;
}
.tracker .d { flex: 1; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: #5f6f99; color: #fff; }
.tracker .d.done { background: var(--green-ui); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.goal__left { margin: 10px 0 14px !important; font-weight: 800; color: var(--green-edge); font-size: 15px; }
.goal__prizes { display: flex; justify-content: center; gap: 6px; }
.goal__prizes span { flex: 1 1 0; max-width: 58px; aspect-ratio: 1; border-radius: 14px; background: #f1f4fa; display: grid; place-items: center; border: 2px solid transparent; }
.goal__prizes span.on { border-color: var(--green); background: rgba(0, 167, 73, 0.1); }
.goal__prizes img { width: 72%; height: auto; }
@media (max-width: 820px) {
  .rewards__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================ PARENTS ============================ */
.parents { background: #fff; }
.parents__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.parents__phone { position: relative; display: flex; justify-content: center; padding: 20px 0 30px; }
.parents__phone::before {
  content: ''; position: absolute; width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff0da 0 55%, rgba(255, 240, 218, 0) 70%);
}
.parents__bear { position: absolute; left: -10px; bottom: 0; width: 170px; height: auto; z-index: 2; filter: drop-shadow(0 12px 14px rgba(80, 40, 0, 0.25)); }
.pscr { padding: 50px 14px 0; }
.pscr__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pscr__title { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.pscr__sub { font-size: 11.5px; font-weight: 700; color: var(--ink); opacity: 0.8; }
.pscr__plus { width: 30px; height: 30px; border-radius: 50%; background: #e3e8f2; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--ink); }
.kid-card { position: relative; display: flex; gap: 9px; align-items: flex-start; padding: 10px 10px 10px; border: 2px solid #e3e8f2; border-radius: 14px; margin-bottom: 8px; min-height: 82px; }
.kid-card > img { width: 44px; height: 44px; border-radius: 50%; }
.kid-card__main { flex: 1; min-width: 0; }
.kid-card__name { font-size: 16px; font-weight: 900; color: var(--ink); }
.kid-card__buddy { font-size: 10.5px; font-weight: 700; color: #566582; }
.kid-card__done { font-size: 10.5px; font-weight: 700; color: #566582; margin-top: 8px !important; }
.kid-card__done b { color: var(--green); }
.kid-card .mini-chip { height: 20px; font-size: 11px; padding: 0 6px; }
.kid-card__chev { position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(179, 190, 215, 0.25); display: grid; place-items: center; font-weight: 900; color: var(--ink); font-size: 15px; line-height: 1; }
.pscr__section { font-size: 14px; font-weight: 900; color: var(--ink); margin: 16px 0 8px !important; display: flex; align-items: center; gap: 6px; }
.pscr__section i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #ff5a5a; color: #fff; font-size: 10.5px; display: grid; place-items: center; }
.mini-approve--flat { box-shadow: none; max-width: none; }
.scr-tabs--parent span { font-size: 9.5px; }

.parents__copy .lede { margin-bottom: 28px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features img { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 14px; background: #f1f4fa; padding: 4px; }
.features img.features__cluster { object-fit: cover; object-position: 50% 30%; padding: 0; background: #ddf2ff; }
.features img.features__appicon { padding: 0; }
.features h3 { font-size: 18px; margin: 2px 0 4px; letter-spacing: -0.01em; }
.features p { font-size: 15.5px; margin: 0; line-height: 1.5; }
@media (max-width: 1020px) {
  .parents__grid { grid-template-columns: 1fr; }
  .parents__phone { order: 2; }
  .parents__bear { left: calc(50% - 220px); }
  .parents__copy { text-align: center; }
  .parents__copy .lede { margin-inline: auto; max-width: 56ch; }
  .features { text-align: left; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .parents__bear { width: 100px; left: -6px; bottom: 44px; z-index: 0; }
  .parents__phone .phone { z-index: 1; }
}

/* ============================ SAFETY ============================ */
.safety {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #102a6e 0%, #152b62 60%, #0f2156 100%);
  color: #c7d4f2;
  padding: clamp(96px, 11vw, 150px) 0 clamp(88px, 10vw, 130px);
}
.safety::before { /* white scallops from the parents section above */
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 30px;
  background: radial-gradient(circle at 32px 0, #fff 30px, transparent 31px) 0 0 / 64px 30px repeat-x;
}
.safety__stars {
  position: absolute; inset: 0; opacity: 0.8; pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 18%, #ffe79a 0 2px, transparent 2.5px),
    radial-gradient(circle at 88% 64%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 30% 80%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 56% 42%, #ffe79a 0 1.5px, transparent 2px),
    radial-gradient(circle at 5% 70%, #fff 0 1.2px, transparent 1.8px);
}
.safety .h2 { color: #fff; }
.safety .lede { color: #d6e0fa; }
.safety__grid { list-style: none; padding: 0; margin: 0 auto 40px; max-width: 1060px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.safety__grid li {
  padding: 24px 22px; border-radius: 24px; background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}
.safety__grid h3 { color: #fff; font-size: 19px; margin: 14px 0 4px; }
.safety__grid p { margin: 0; font-size: 15.5px; color: #b9c7ea; }
.safety__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: #1f3a86; border: 2px solid var(--navy-border); box-shadow: inset 0 -3px 0 #102353;
}
.safety__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .safety__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .safety__grid { grid-template-columns: 1fr; } }

/* ============================ FAQ ============================ */
.faq { background: var(--cloud); }
.faq::before { /* navy scallops hanging from the safety band */
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 30px;
  background: radial-gradient(circle at 32px 0, #0f2156 30px, transparent 31px) 0 0 / 64px 30px repeat-x;
}
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__intro p { font-weight: 600; }
.faq__pengo { width: 180px; height: auto; margin-top: 28px; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  background: #fff; border-radius: 22px; padding: 0 24px;
  box-shadow: inset 0 -4px 0 var(--edge), 0 10px 24px -18px rgba(6, 17, 43, 0.35);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031945' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-soft); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { margin: 0 0 20px; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; text-align: center; }
  .faq__pengo { display: none; }
}

/* ============================ FINAL CTA ============================ */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #d3f3ff 0%, #8fd8ff 45%, #4db2f8 100%);
  padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 8vw, 110px);
}
.final__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.final .display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); color: var(--ink); }
.final .lede { color: #102a5c; max-width: 34em; margin-bottom: 28px; }
.final__art { position: relative; display: grid; justify-items: center; padding-top: 150px; }
.final__cluster {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 0;
  width: min(420px, 100%); height: auto; filter: drop-shadow(0 18px 20px rgba(3, 60, 130, 0.25));
}
.qr-card {
  position: relative; z-index: 1; width: 250px; padding: 22px 20px 18px; border-radius: 28px; background: #fff; text-align: center;
  box-shadow: inset 0 -5px 0 var(--edge), var(--shadow-float); transform: rotate(-3deg);
}
.qr-card__code { width: 176px; height: 176px; margin: 0 auto; }
.qr-card p { display: flex; align-items: center; gap: 10px; text-align: left; margin: 12px 0 0; font-size: 13.5px; font-weight: 800; color: var(--ink-2); line-height: 1.3; }
.qr-card p img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
@media (max-width: 900px) {
  .final__grid { grid-template-columns: 1fr; text-align: center; }
  .final .lede { margin-inline: auto; }
  .final .hero__ctas { justify-content: center; }
}
/* On phones the QR is pointless (they're already on the phone): show the buddies instead. */
@media (hover: none) and (max-width: 900px) {
  .qr-card { display: none; }
  .final__art { padding-top: 0; }
  .final__cluster { position: static; transform: none; width: min(380px, 92%); }
}

/* ============================ MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  .flip__in { animation: none; transform: rotateY(180deg); }
  .stack .drop { animation: none; }
  .game__art--puzzle .piece { animation: none; transform: translate(14%, 12%) rotate(-6deg); }
}

/* Decorative containers must never become scroll containers (focus/scrollIntoView
   would otherwise shift their contents). `clip` keeps the visual crop without that. */
.hero, .buddies, .safety, .final, .phone__screen, .marquee, .game, .game__art, .mw,
.dressup__stage, .step__art { overflow: clip; }
/* The arcade's cloud edges overlap the neighbouring sections, so only clip sideways. */
.arcade { overflow: visible; overflow-x: clip; }

/* Parent mock: weekly tracker row */
.pscr__week { display: flex; align-items: center; gap: 8px; }
.tracker--sm { flex: 1; margin: 0; gap: 3px; padding: 3px; border-radius: 12px; }
.tracker--sm .d { height: 24px; border-radius: 8px; font-size: 10px; }
.pscr__prize { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; font-size: 9px; font-weight: 900; color: var(--ink); }
.pscr__prize img { width: 30px; height: 30px; }

/* #29 rays centred on the phone itself (demo padding is 44 top / 58 bottom) */
.demo .rays { top: calc(50% - 7px); }

/* #30 keep drifting clouds out of the stacked headline on narrow screens */
@media (max-width: 980px) {
  .hero__sky .cloud:nth-child(-n+2) { display: none; }
}

/* Marquee pause control */
.marquee-toggle {
  margin-left: 8px; vertical-align: 1px; cursor: pointer;
  padding: 4px 12px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); font: 800 13px/1.2 var(--font);
  box-shadow: inset 0 -2px 0 var(--edge), 0 4px 10px -6px rgba(6, 17, 43, 0.35);
}
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-toggle { display: none; } }

/* #36 Unhatched buddy names stay hidden from screen readers too */
.js .egg-slot:not(.is-hatched) .egg-slot__name { visibility: hidden; }
