/* ==========================================================================
   MindSprout — public storefront
   ========================================================================== */

:root {
  --ink: #14313f;
  --ink-deep: #0d2530;
  --ink-soft: #4e6875;
  --ink-muted: #7f949e;
  --cream: #fffaf0;
  --cream-deep: #f6efdf;
  --paper: #fffdf8;
  --white: #ffffff;
  --sun: #ffca3a;
  --sun-deep: #eaaa1f;
  --sun-soft: #fff1bd;
  --coral: #ff6f59;
  --coral-deep: #dc513d;
  --coral-soft: #ffe3dd;
  --leaf: #4fbe7a;
  --leaf-deep: #2e8c5a;
  --leaf-soft: #ddf5e7;
  --sky: #58b7f0;
  --sky-soft: #e1f4ff;
  --grape: #8e7bff;
  --grape-soft: #ece8ff;
  --pink: #ff8fab;
  --pink-soft: #ffe3ea;
  --line: rgba(20, 49, 63, 0.12);
  --line-soft: rgba(20, 49, 63, 0.07);
  --shadow-sm: 0 4px 14px rgba(20, 49, 63, 0.07);
  --shadow-md: 0 16px 38px rgba(20, 49, 63, 0.11);
  --shadow-lg: 0 28px 70px rgba(20, 49, 63, 0.18);
  --radius: 26px;
  --font-display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Buttons, pills, eyebrows
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85em 1.5em;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 5px 0 var(--coral-deep);
}

.btn-primary:hover {
  background: #ff7d69;
  box-shadow: 0 7px 0 var(--coral-deep);
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--coral-deep);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 5px 0 rgba(20, 49, 63, 0.18);
}

.btn-ghost:hover {
  background: var(--sun-soft);
  box-shadow: 0 7px 0 rgba(20, 49, 63, 0.18);
}

.btn-ghost:active {
  box-shadow: 0 2px 0 rgba(20, 49, 63, 0.18);
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--sun-deep);
}

.btn-sun:hover {
  background: #ffd45f;
  box-shadow: 0 7px 0 var(--sun-deep);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 250, 240, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 250, 240, 0.12);
  border-color: var(--cream);
}

.btn-small {
  padding: 0.68em 1.2em;
  font-size: 0.87rem;
}

.btn-large {
  padding: 1.05em 1.8em;
  font-size: 1.04rem;
}

.btn-full {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.46em 0.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.2;
}

.eyebrow-sun {
  background: var(--sun-soft);
  color: #7a5a00;
}

.eyebrow-leaf {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.eyebrow-white {
  background: rgba(255, 250, 240, 0.14);
  color: var(--cream);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32em 0.7em;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.pill-soft {
  background: var(--sun-soft);
  color: #7a5a00;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 900;
  color: var(--ink);
  border-bottom: 2px solid var(--sun);
  padding-bottom: 2px;
  transition: gap 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  gap: 0.55em;
  border-color: var(--coral);
}

.text-link-light {
  color: var(--cream);
  border-color: rgba(255, 202, 58, 0.7);
}

.text-link-light:hover {
  border-color: var(--sun);
}

.stars {
  color: var(--sun);
  letter-spacing: 0.12em;
}

.checklist {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 700;
}

.checklist li > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: 0.7rem;
  font-weight: 900;
}

.checklist-light li {
  color: rgba(255, 250, 240, 0.92);
}

.checklist-light li > span {
  background: rgba(79, 190, 122, 0.2);
  color: #9be9bb;
}

/* --------------------------------------------------------------------------
   Announcement, header, nav
   -------------------------------------------------------------------------- */

.announcement {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  z-index: 95;
}

.announcement p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 0.6rem 2.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.announcement-close {
  position: absolute;
  right: max(12px, calc((100vw - var(--container)) / 2 + 12px));
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.12);
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1;
}

.announcement-close:hover {
  background: rgba(255, 250, 240, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(20, 49, 63, 0.07);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-name span {
  color: var(--leaf-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.5rem);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.18s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transition: right 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.nav-talk {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.nav-talk:hover {
  color: var(--coral-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 4.2rem 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 40% at 8% 12%, rgba(255, 202, 58, 0.2), transparent 70%),
    radial-gradient(ellipse 35% 45% at 92% 24%, rgba(79, 190, 122, 0.16), transparent 70%),
    var(--cream);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-blob-one {
  width: 420px;
  height: 420px;
  right: -180px;
  top: -160px;
  background: rgba(88, 183, 240, 0.14);
}

.hero-blob-two {
  width: 260px;
  height: 260px;
  left: -140px;
  bottom: 80px;
  background: rgba(255, 143, 171, 0.15);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: 3.4rem;
  z-index: 2;
}

.hero-copy {
  animation: rise-in 0.7s ease both;
}

.hero-title {
  margin: 1.2rem 0 1.1rem;
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
  line-height: 0.98;
}

.hero-title > span {
  display: block;
}

.hero-title .marker {
  display: inline-block;
  width: fit-content;
  margin-top: 0.05em;
  padding: 0 0.1em;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 202, 58, 0.85) 60%, rgba(255, 202, 58, 0.85) 94%, transparent 94%);
  color: var(--ink);
}

.hero-sub {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.7rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.hero-trust .stars {
  font-size: 0.95rem;
}

.hero-micro {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise-in 0.9s 0.1s ease both;
}

.hero-sun {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  max-width: 470px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sun) 0%, #ffdd7e 55%, #ffe9a8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.play-card {
  position: relative;
  z-index: 3;
  width: min(340px, 82%);
  padding: 1.35rem;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid rgba(20, 49, 63, 0.08);
  box-shadow: 0 24px 50px rgba(20, 49, 63, 0.2);
  transform: rotate(-2.5deg);
}

.play-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.play-card-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 900;
  font-size: 0.8rem;
}

.mini-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px var(--leaf-soft);
}

.play-emoji {
  margin: 1.15rem auto 0.7rem;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: var(--pink-soft);
  font-size: 3.6rem;
  animation: bob 4.5s ease-in-out infinite;
}

.play-scenario {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.25;
}

.play-question {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.play-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.play-choice {
  padding: 0.42em 0.8em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.play-choice.is-correct {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border-color: var(--leaf);
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.play-choice.is-correct::after {
  content: '✓';
  font-size: 0.65rem;
  font-weight: 900;
}

.play-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.play-dots {
  display: inline-flex;
  gap: 4px;
}

.play-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.play-dots i.on {
  background: var(--leaf);
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.float-card small {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.3;
}

.float-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.float-streak {
  top: 8%;
  left: 0;
}

.float-safe {
  top: 17%;
  right: -3%;
  animation-delay: -2s;
}

.float-progress {
  bottom: 7%;
  left: -2%;
  animation-delay: -4s;
}

.float-progress-body {
  width: 132px;
}

.float-progress strong {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.float-progress em {
  font-style: normal;
  color: var(--leaf-deep);
}

.mini-bar {
  display: block;
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--leaf);
}

.mini-bar-sky i {
  background: var(--sky);
}

.mini-bar-coral i {
  background: var(--coral);
}

.hero-spark {
  position: absolute;
  z-index: 2;
  color: var(--ink);
  font-size: 1.3rem;
  animation: twinkle 3.4s ease-in-out infinite;
}

.spark-one {
  top: 4%;
  right: 10%;
  color: var(--coral);
}

.spark-two {
  bottom: 10%;
  right: 6%;
  font-size: 1.6rem;
  animation-delay: -1.4s;
}

.spark-three {
  top: 45%;
  left: 2%;
  font-size: 0.7rem;
  color: var(--sky);
  animation-delay: -2.2s;
}

.stats-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.7rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transform: translateY(2.2rem);
}

.stat {
  text-align: center;
  padding: 0.2rem 0.5rem;
}

.stat + .stat {
  border-left: 1px dashed var(--line);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section {
  padding: 6rem 0;
  scroll-margin-top: 90px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 600;
  max-width: 640px;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.center-note {
  margin-top: 2.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Swap / comparison
   -------------------------------------------------------------------------- */

.swap-section {
  padding-top: 2rem;
  background: var(--cream);
}

.swap-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.2rem;
  max-width: 1000px;
  margin-inline: auto;
}

.swap-card {
  padding: 2rem;
  border-radius: 26px;
  border: 2px solid var(--line);
}

.swap-old {
  background: #f3f1ea;
  color: var(--ink-soft);
}

.swap-new {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.swap-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.swap-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 1.5rem;
}

.swap-new .swap-icon {
  background: rgba(255, 250, 240, 0.12);
}

.swap-head h3 {
  font-size: 1.35rem;
}

.swap-head p {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.swap-new .swap-head p {
  color: rgba(255, 250, 240, 0.55);
}

.swap-list {
  display: grid;
  gap: 0.8rem;
}

.swap-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.94rem;
}

.swap-new .swap-list li {
  color: rgba(255, 250, 240, 0.9);
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.67rem;
  font-weight: 900;
}

.mark-x {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.mark-check {
  background: rgba(79, 190, 122, 0.22);
  color: #8ce8b0;
}

.swap-badge {
  align-self: center;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.05;
  transform: rotate(-8deg);
  box-shadow: 0 6px 0 var(--sun-deep);
}

/* --------------------------------------------------------------------------
   Games grid
   -------------------------------------------------------------------------- */

.games-section {
  background: var(--cream);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.game-card {
  --accent: var(--sun);
  --accent-soft: var(--sun-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  background: var(--white);
  border: 2px solid var(--line-soft);
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.game-card:hover::after {
  transform: scale(1.15);
}

.card-brain { --accent: var(--sun); --accent-soft: var(--sun-soft); }
.card-feelings { --accent: var(--pink); --accent-soft: var(--pink-soft); }
.card-calm { --accent: var(--sky); --accent-soft: var(--sky-soft); }
.card-words { --accent: var(--grape); --accent-soft: var(--grape-soft); }
.card-math { --accent: var(--leaf); --accent-soft: var(--leaf-soft); }
.card-family { --accent: var(--sun-deep); --accent-soft: #ffedd0; }

.game-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--accent-soft);
  font-size: 1.8rem;
  margin-bottom: 1.1rem;
}

.game-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
}

.game-card p {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex: 1;
}

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: gap 0.18s ease;
}

.card-link:hover {
  gap: 0.55em;
}

.card-badge {
  position: absolute;
  top: 1.2rem;
  right: -2.1rem;
  z-index: 2;
  padding: 0.3rem 2.4rem;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(32deg);
}

/* --------------------------------------------------------------------------
   Interactive demo
   -------------------------------------------------------------------------- */

.demo-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 202, 58, 0.16), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(79, 190, 122, 0.14), transparent 35%),
    var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(255, 250, 240, 0.04);
}

.demo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.demo-copy h2 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.demo-copy > p {
  color: rgba(255, 250, 240, 0.78);
  font-weight: 600;
  max-width: 34rem;
}

.demo-card {
  width: 100%;
  max-width: 470px;
  justify-self: end;
  padding: 1.6rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.demo-progress {
  display: flex;
  gap: 5px;
  margin: 1.1rem 0 1.2rem;
}

.demo-progress i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--cream-deep);
}

.demo-progress i.is-done {
  background: var(--leaf);
}

.demo-progress i.is-active {
  background: var(--sun);
}

.demo-emoji {
  width: 92px;
  height: 92px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--pink-soft);
  font-size: 3.1rem;
  animation: bob 4.5s ease-in-out infinite;
}

.demo-scenario {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.3;
}

.demo-question {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.demo-options {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.demo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.demo-option:hover:not(:disabled) {
  transform: translateX(3px);
  border-color: var(--ink);
}

.demo-option:disabled {
  cursor: default;
}

.demo-option.is-correct {
  border-color: var(--leaf);
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.demo-option.is-wrong {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.demo-option .option-mark {
  font-size: 0.8rem;
  font-weight: 900;
}

.demo-feedback {
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--sun-soft);
  color: #6d5000;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.demo-feedback.is-wrong {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.demo-next {
  margin-top: 0.9rem;
}

.demo-result {
  padding: 0.5rem 0 0.2rem;
  text-align: center;
}

.result-emoji {
  font-size: 3.2rem;
  animation: bob 3.5s ease-in-out infinite;
}

.demo-result h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.demo-result p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.result-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.demo-note {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Safety
   -------------------------------------------------------------------------- */

.safety-section {
  background: var(--white);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.safety-card {
  padding: 1.8rem;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.safety-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--white);
  font-size: 1.45rem;
  box-shadow: var(--shadow-sm);
}

.safety-card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.4rem;
}

.safety-card p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.safety-promise {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.6rem 2rem;
  border-radius: 22px;
  background: var(--ink);
  color: var(--cream);
}

.safety-promise-label {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}

.safety-promise-text {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
}

.safety-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.safety-note {
  max-width: 760px;
  margin: 1.6rem auto 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Parents / dashboard / stories
   -------------------------------------------------------------------------- */

.parents-section {
  background: var(--cream);
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.parents-copy h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

.parents-lede {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.02rem;
}

.parents-lede em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 65%, var(--sun) 65%);
}

.assurance-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.assurance-list li {
  display: flex;
  gap: 0.9rem;
}

.assurance-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf-deep);
}

.assurance-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
}

.assurance-list p {
  margin-top: 0.15rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.parent-visual {
  position: relative;
}

.dash-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.8rem 1.1rem;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line-soft);
}

.dash-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9d2bf;
}

.dash-bar span:nth-child(1) { background: #ff9b8c; }
.dash-bar span:nth-child(2) { background: var(--sun); }
.dash-bar span:nth-child(3) { background: var(--leaf); }

.dash-bar p {
  margin-left: 0.6rem;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--ink-muted);
}

.dash-body {
  padding: 1.4rem;
}

.dash-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.dash-hello strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.dash-hello p {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.dash-sprout {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--leaf-soft);
  font-size: 1.4rem;
}

.dash-streak {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--sun-soft);
}

.streak-flame {
  font-size: 1.35rem;
}

.dash-streak strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
}

.dash-streak p {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8a6a13;
}

.streak-dots {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.streak-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e4cd85;
}

.streak-dots i:nth-child(-n+5) {
  background: var(--sun-deep);
}

.dash-skills {
  display: grid;
  gap: 0.9rem;
}

.dash-skill > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
}

.dash-skill strong {
  color: var(--leaf-deep);
}

.dash-note {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--cream);
  border: 1px dashed var(--line);
}

.dash-note p {
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.45;
}

.dash-float {
  bottom: -22px;
  left: -18px;
}

.stories-wrap {
  margin-top: 5.5rem;
}

.stories-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.stories-head h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.story-carousel {
  max-width: 840px;
  margin-inline: auto;
}

.story-slide {
  display: none;
  margin: 0;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.story-slide.is-active {
  display: block;
  animation: fade-in 0.45s ease both;
}

.story-stars {
  color: var(--sun);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.story-quote {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
}

.story-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
}

.story-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--ink);
}

.story-avatar-sun { background: var(--sun); }
.story-avatar-leaf { background: var(--leaf-soft); color: var(--leaf-deep); }
.story-avatar-coral { background: var(--coral-soft); color: var(--coral-deep); }
.story-avatar-sky { background: var(--sky-soft); color: #1f7cad; }

.story-footer strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
}

.story-footer small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.story-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.story-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.story-arrow:hover {
  background: var(--sun);
  border-color: var(--sun);
}

.story-dots {
  display: flex;
  gap: 6px;
}

.story-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.15s ease, transform 0.15s ease;
}

.story-dot.is-active {
  background: var(--ink);
  transform: scale(1.25);
}

.story-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.how-section {
  background: var(--white);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.how-step {
  position: relative;
  padding: 2rem;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
}

.how-number {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--cream-deep);
  line-height: 1;
}

.how-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.9rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.6rem;
}

.how-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.how-step p {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.pricing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.pricing-blob-one {
  width: 380px;
  height: 380px;
  top: -160px;
  left: -120px;
  background: rgba(255, 202, 58, 0.12);
}

.pricing-blob-two {
  width: 300px;
  height: 300px;
  bottom: -130px;
  right: -80px;
  background: rgba(79, 190, 122, 0.16);
}

.pricing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.pricing-copy h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
}

.pricing-copy > p {
  color: rgba(255, 250, 240, 0.72);
  font-weight: 600;
  max-width: 34rem;
}

.value-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: rgba(255, 250, 240, 0.92);
}

.value-list li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(79, 190, 122, 0.2);
  color: #8ce8b0;
  font-size: 0.68rem;
  font-weight: 900;
}

.guarantee-inline {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.12);
}

.guarantee-icon {
  font-size: 1.3rem;
}

.guarantee-inline p {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 250, 240, 0.7);
}

.guarantee-inline strong {
  color: var(--cream);
}

.price-card {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 2rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.price-badge {
  display: inline-block;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.8rem;
}

.price-currency {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  transform: translateY(-0.55rem);
}

.price {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-old {
  margin-left: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.price-sub {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.gpay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 58px;
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gpay-button:hover {
  transform: translateY(-2px);
  background: #171717;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.gpay-button:active {
  transform: translateY(0);
}

.gpay-button strong {
  font-weight: 900;
}

.gpay-g {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}

.gpay-g-large {
  width: 48px;
  height: 48px;
}

.gpay-note {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.price-divider {
  margin: 1.3rem 0 1rem;
  border-top: 1px dashed var(--line);
}

.price-includes-title {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.price-includes {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.price-includes li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 700;
}

.price-includes li span {
  width: 22px;
  text-align: center;
}

.price-demo-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.price-demo-link:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Feedback
   -------------------------------------------------------------------------- */

.feedback-section {
  background: var(--cream);
}

.feedback-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.feedback-copy h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.feedback-copy > p {
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 34rem;
}

.feedback-promises {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.feedback-promises > div {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
}

.feedback-promises strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
}

.feedback-promises small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.feedback-card {
  padding: 1.7rem;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.feedback-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 1.3rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
}

.feedback-tab {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-tab.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 49, 63, 0.08);
}

.feedback-tab[data-feedback-type="complaint"].is-active {
  color: var(--coral-deep);
}

.feedback-tab[data-feedback-type="praise"].is-active {
  color: var(--leaf-deep);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field > span {
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.field > span em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line-soft);
  border-radius: 12px;
  background: #fdfaf3;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a8b5bc;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: var(--white);
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.rating-label {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.star-picker {
  display: flex;
  gap: 2px;
}

.star-picker button {
  border: 0;
  background: transparent;
  padding: 0 2px;
  font-size: 1.55rem;
  line-height: 1;
  color: #ded8c8;
  transition: transform 0.12s ease, color 0.12s ease;
}

.star-picker button:hover,
.star-picker button.is-on {
  color: var(--sun);
  transform: scale(1.08);
}

.feedback-error,
.checkout-error {
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.form-note {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.feedback-success {
  padding: 2rem 1rem;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
}

.feedback-success h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.6rem;
}

.feedback-success p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.feedback-success .btn {
  margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-section {
  background: var(--white);
}

.faq-wrap {
  max-width: 900px;
}

.faq-head {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-head h2 {
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.faq-head a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--cream);
  overflow: hidden;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.3), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255, 111, 89, 0.28), transparent 35%),
    var(--sun);
  color: var(--ink);
}

.final-cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.final-cta .eyebrow-white {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.final-cta h2 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.final-cta p {
  max-width: 520px;
  margin-inline: auto;
  font-weight: 700;
  color: rgba(20, 49, 63, 0.78);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.final-cta .btn-sun {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--ink-deep);
}

.final-cta .btn-sun:hover {
  background: var(--ink-deep);
  box-shadow: 0 7px 0 #07161d;
}

.final-cta .btn-outline-light {
  color: var(--ink);
  border-color: var(--ink);
}

.final-cta .btn-outline-light:hover {
  background: rgba(20, 49, 63, 0.08);
  border-color: var(--ink);
}

.final-cta-note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(20, 49, 63, 0.6);
}

.final-spark {
  position: absolute;
  font-size: 1.6rem;
  animation: twinkle 3.8s ease-in-out infinite;
}

.final-spark-one {
  top: -10px;
  left: 4%;
  color: var(--coral);
}

.final-spark-two {
  bottom: 0;
  right: 5%;
  color: var(--white);
  animation-delay: -1.8s;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.brand-light {
  margin-bottom: 1rem;
}

.brand-light .brand-mark {
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.14);
}

.brand-light .brand-name {
  color: var(--cream);
}

.brand-light .brand-name span {
  color: #9be9bb;
}

.footer-brand p {
  max-width: 280px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 250, 240, 0.62);
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.footer-gpay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.footer-secure {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 250, 240, 0.5);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 250, 240, 0.68);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 250, 240, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 250, 240, 0.42);
}

/* --------------------------------------------------------------------------
   Owner access dock / visitor preview
   -------------------------------------------------------------------------- */

.access-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(20, 49, 63, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  transition: background 0.15s ease, color 0.15s ease;
}

.dock-btn:hover {
  background: var(--cream);
  color: var(--ink);
}

.preview-pill {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 125;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(79, 190, 122, 0.22);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.preview-pill button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 250, 240, 0.12);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 900;
}

.preview-pill button:hover {
  background: var(--coral);
}

.visitor-preview .access-dock,
.visitor-preview .owner-link {
  display: none;
}

/* --------------------------------------------------------------------------
   Checkout modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 37, 48, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

body.modal-open {
  overflow: hidden;
}

.checkout-head {
  padding-right: 2rem;
}

.checkout-badge {
  display: inline-block;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-head h2 {
  margin: 0.8rem 0 0.25rem;
  font-size: 1.9rem;
}

.checkout-head p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line-soft);
}

.checkout-summary strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
}

.checkout-summary small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.checkout-price {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
}

.checkout-price s {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.gpay-button-wide {
  margin-top: 0.4rem;
}

.checkout-fineprint {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.45;
}

.checkout-guarantee {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.processing-view,
.success-view {
  padding: 2rem 0.5rem 0.5rem;
  text-align: center;
}

.gpay-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--line);
  border-top-color: var(--leaf);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.processing-view h2,
.success-view h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.processing-view p,
.success-view p {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.success-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 0 10px var(--leaf-soft);
}

.order-ref {
  display: inline-block;
  margin: 1rem 0 1.1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--sun-soft);
  color: #6d5000;
  font-size: 0.8rem;
  font-weight: 800;
}

.success-note {
  margin: 0.9rem 0;
  font-size: 0.72rem !important;
  color: var(--ink-muted) !important;
}

/* --------------------------------------------------------------------------
   Toast + confetti
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.3s ease both;
  max-width: 320px;
}

.toast.toast-error {
  background: var(--coral-deep);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: confetti-fall var(--duration, 2.4s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(10deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.85; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 2rem;
  }

  .float-streak { left: -2%; }
  .float-safe { right: -1%; }
  .float-progress { left: -1%; }

  .main-nav { gap: 0.8rem; }
  .main-nav a { font-size: 0.82rem; }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .nav-wrap {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .main-nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 0 0.9rem;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .main-nav a:hover {
    background: var(--cream);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-talk {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 4.5rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-ctas,
  .hero-trust {
    justify-content: center;
  }

  .hero-title {
    margin-inline: auto;
  }

  .hero-title .marker {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 480px;
    margin-top: 1rem;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding-top: 1rem;
  }

  .stat:nth-child(4) {
    border-top: 1px dashed var(--line);
    padding-top: 1rem;
  }

  .swap-grid {
    grid-template-columns: 1fr;
  }

  .swap-badge {
    justify-self: center;
  }

  .game-grid,
  .safety-grid,
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-grid,
  .parents-grid,
  .pricing-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    text-align: center;
  }

  .demo-copy > p,
  .demo-copy .checklist {
    margin-inline: auto;
  }

  .demo-copy .checklist {
    display: inline-grid;
    text-align: left;
  }

  .demo-card,
  .price-card {
    justify-self: center;
  }

  .price-card {
    max-width: 520px;
  }

  .safety-promise {
    flex-wrap: wrap;
  }

  .safety-promise-badge {
    margin-left: auto;
  }

  .stories-wrap {
    margin-top: 4.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .btn {
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 0.95em 1.4em;
    font-size: 0.96rem;
  }

  .nav-actions .btn {
    display: none;
  }

  .announcement p {
    padding: 0.55rem 2.4rem 0.55rem 1rem;
    font-size: 0.72rem;
    text-align: left;
    justify-content: flex-start;
  }

  .announcement-close {
    right: 8px;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11.5vw, 3.4rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-sun {
    width: 78%;
  }

  .play-card {
    width: 78%;
    padding: 1.1rem;
  }

  .play-emoji {
    width: 82px;
    height: 82px;
    font-size: 2.7rem;
  }

  .play-scenario {
    font-size: 0.96rem;
  }

  .play-choice {
    font-size: 0.68rem;
    padding: 0.35em 0.6em;
  }

  .float-card {
    padding: 0.55rem 0.7rem;
    border-radius: 13px;
  }

  .float-card strong { font-size: 0.68rem; }
  .float-card small { font-size: 0.58rem; }
  .float-icon { font-size: 1rem; }

  .float-streak { top: 0; left: 0; }
  .float-safe { top: 9%; right: 0; }
  .float-progress { bottom: 0; left: 0; }
  .float-progress-body { width: 100px; }

  .stats-strip {
    padding: 1.2rem 0.8rem;
    gap: 0.7rem;
    transform: translateY(1.6rem);
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px dashed var(--line);
  }

  .stat:nth-child(n+3) {
    border-top: 1px dashed var(--line);
    padding-top: 0.8rem;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.58rem;
  }

  .game-grid,
  .safety-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .swap-card {
    padding: 1.4rem;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  }

  .demo-section {
    padding-bottom: 4rem;
  }

  .demo-card {
    padding: 1.25rem;
  }

  .safety-promise {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.4rem;
  }

  .safety-badge {
    white-space: normal;
  }

  .assurance-list li {
    gap: 0.7rem;
  }

  .dash-window {
    transform: none;
  }

  .dash-float {
    bottom: -14px;
    left: 0;
  }

  .story-slide {
    padding: 1.5rem;
  }

  .price-card {
    padding: 1.5rem;
  }

  .price {
    font-size: 3.4rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feedback-card {
    padding: 1.2rem;
  }

  .feedback-tabs {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }

  .access-dock {
    left: 10px;
    bottom: 10px;
  }

  .dock-btn span {
    display: none;
  }

  .dock-btn {
    padding: 0.55rem;
  }

  .preview-pill {
    left: 10px;
    bottom: 10px;
  }

  .toast-stack {
    left: 14px;
    right: 14px;
    bottom: 70px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }

  .modal-card {
    padding: 1.4rem;
    border-radius: 22px;
  }
}

/* --------------------------------------------------------------------------
   Bundle explorer
   -------------------------------------------------------------------------- */

.float-safe {
  top: 1%;
  right: 0;
}

.bundle-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.bundle-fact {
  display: grid;
  gap: 0.1rem;
  padding: 0.2rem 1.1rem;
  text-align: center;
}

.bundle-fact + .bundle-fact {
  border-left: 1px dashed var(--line);
}

.bundle-fact strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.bundle-fact span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.age-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  max-width: 900px;
  margin: 1.2rem auto 2rem;
}

.age-guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--line-soft);
  border-radius: 18px;
}

.age-guide-card p {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

.age-pill {
  display: inline-block;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.age-pill-young {
  background: var(--sky-soft);
  color: #1f6e9c;
}

.age-pill-mid {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.age-pill-old {
  background: var(--grape-soft);
  color: #5d48c9;
}

.explore-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--white);
  border: 1.5px solid var(--line-soft);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}

.explore-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.explore-top h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.explore-top p {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.filter-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-soft);
}

.filter-label {
  padding-top: 0.55rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  padding: 0.42rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.explore-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.4rem 0 0.9rem;
}

.results-line {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.text-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coral-deep);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.explore-card {
  --card-tint: var(--sun-soft);
  --card-ink: var(--sun-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.explore-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-tint);
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-ink);
  box-shadow: var(--shadow-sm);
}

.explore-card-math { --card-tint: var(--leaf-soft); --card-ink: var(--leaf-deep); }
.explore-card-english { --card-tint: var(--grape-soft); --card-ink: #5d48c9; }
.explore-card-world { --card-tint: var(--sky-soft); --card-ink: #1f6e9c; }
.explore-card-brain { --card-tint: var(--sun-soft); --card-ink: var(--sun-deep); }
.explore-card-everyday { --card-tint: var(--coral-soft); --card-ink: var(--coral-deep); }
.explore-card-feelings { --card-tint: var(--pink-soft); --card-ink: #c04266; }
.explore-card-printables { --card-tint: #ffedd0; --card-ink: var(--sun-deep); }

.explore-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.explore-emoji {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card-tint);
  font-size: 1.35rem;
}

.explore-age {
  flex: 0 0 auto;
  padding: 0.22em 0.6em;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  font-size: 0.6rem;
  font-weight: 900;
  color: var(--ink-soft);
  white-space: nowrap;
}

.explore-cat {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--card-ink);
}

.explore-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.15;
}

.explore-desc {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

.explore-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.explore-meta span {
  padding: 0.2em 0.5em;
  border-radius: 6px;
  background: var(--cream-deep);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.explore-open {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--card-tint);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: gap 0.18s ease;
}

.explore-open:hover {
  gap: 0.5em;
}

.explore-empty {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--cream);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.explore-empty button {
  border: 0;
  background: transparent;
  color: var(--coral-deep);
  font-family: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.explore-empty a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
}

.free-play-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.3rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: var(--ink);
  color: var(--cream);
}

.free-play-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.free-play-banner p {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 250, 240, 0.78);
}

.free-play-banner strong {
  color: var(--cream);
}

.bundle-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.browse-note {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-muted);
  text-align: center;
}

.pricing-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.pricing-categories span {
  padding: 0.32em 0.7em;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.14);
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 250, 240, 0.82);
}

.pricing-preview-link {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 250, 240, 0.62);
}

.pricing-preview-link a {
  color: var(--sun);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.pricing-value-row div {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.12);
}

.pricing-value-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sun);
  line-height: 1.15;
}

.pricing-value-row span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 250, 240, 0.64);
}

.price-categories-note {
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--cream-deep);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

.price-categories-note strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Preview and contents modals
   -------------------------------------------------------------------------- */

.preview-card {
  width: min(660px, 100%);
  padding: 2.1rem;
}

.preview-head {
  display: flex;
  gap: 1rem;
  padding-right: 1.8rem;
}

.preview-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--sun-soft);
  font-size: 1.9rem;
}

.preview-heading h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.preview-cat {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preview-tags span {
  padding: 0.22em 0.6em;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.preview-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
}

.preview-inside {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.preview-inside h3 {
  font-size: 0.98rem;
}

.preview-inside ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.preview-inside li {
  display: flex;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-soft);
}

.preview-inside li span {
  flex: 0 0 auto;
  color: var(--leaf-deep);
  font-weight: 900;
}

.preview-sample {
  margin-top: 1.1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: var(--sun-soft);
  border: 1px solid rgba(234, 170, 31, 0.22);
}

.preview-sample-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a5a00;
}

.preview-sample h3 {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.preview-options {
  display: grid;
  gap: 0.45rem;
}

.preview-option {
  padding: 0.65rem 0.8rem;
  border: 1.5px solid rgba(20, 49, 63, 0.13);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.preview-option:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateX(3px);
}

.preview-option.is-correct {
  background: var(--leaf-soft);
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.preview-option.is-wrong {
  background: var(--coral-soft);
  border-color: var(--coral);
  color: var(--coral-deep);
}

.preview-option:disabled {
  cursor: default;
}

.preview-feedback {
  margin-top: 0.75rem;
  padding-left: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-soft);
  outline: none;
}

.preview-feedback strong {
  color: var(--ink);
}

.preview-feedback.is-right {
  border-left: 4px solid var(--leaf);
}

.preview-feedback.is-gentle {
  border-left: 4px solid var(--coral);
}

.preview-smallprint {
  margin-top: 0.85rem;
  font-size: 0.66rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-muted);
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.preview-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.contents-card {
  width: min(760px, 100%);
}

.contents-head {
  padding-right: 1.8rem;
}

.contents-head h2 {
  margin: 0.7rem 0 0.3rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.contents-head p {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contents-age-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1rem 0 0.4rem;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.contents-age-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.age-key-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-young { background: var(--sky); }
.dot-mid { background: var(--leaf); }
.dot-old { background: var(--grape); }

.contents-group {
  margin-top: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.contents-group summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  list-style: none;
  cursor: pointer;
}

.contents-group summary::-webkit-details-marker {
  display: none;
}

.contents-group-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 1.05rem;
}

.contents-group-title {
  flex: 1;
}

.contents-group-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}

.contents-group-title small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.contents-chevron {
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.contents-group[open] .contents-chevron {
  transform: rotate(45deg);
}

.contents-titles {
  margin: 0;
  padding: 0.2rem 0.9rem 0.6rem;
  border-top: 1px dashed var(--line-soft);
  list-style: none;
}

.contents-titles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.contents-titles li:last-child {
  border-bottom: 0;
}

.contents-age {
  flex: 0 0 auto;
  padding: 0.16em 0.55em;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 900;
  white-space: nowrap;
}

.contents-extras {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--leaf-soft);
}

.contents-extras h3 {
  font-size: 1rem;
  color: var(--leaf-deep);
}

.contents-extras ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contents-extras li {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft);
}

.contents-extras strong {
  color: var(--ink);
}

.contents-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.contents-footer p {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.contents-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.contents-footer-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1060px) {
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .float-safe {
    top: 1%;
    right: 0;
  }

  .bundle-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 0;
  }

  .bundle-fact:nth-child(3) {
    border-left: 0;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--line);
  }

  .bundle-fact:nth-child(4) {
    padding-top: 0.8rem;
    border-top: 1px dashed var(--line);
  }

  .age-guide {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .explore-top {
    flex-direction: column;
    align-items: stretch;
  }

  .explore-top .btn {
    align-self: flex-start;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .filter-label {
    padding-top: 0;
  }
}

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

  .explore-panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .bundle-fact {
    padding-inline: 0.5rem;
  }

  .bundle-fact strong {
    font-size: 1.45rem;
  }

  .free-play-banner {
    flex-wrap: wrap;
  }

  .free-play-banner p {
    flex-basis: calc(100% - 3rem);
  }

  .free-play-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .bundle-cta-row .btn,
  .preview-actions .btn,
  .contents-footer-actions .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .pricing-value-row {
    grid-template-columns: 1fr;
  }

  .preview-card,
  .contents-card {
    padding: 1.25rem;
  }

  .preview-head {
    gap: 0.75rem;
  }

  .preview-emoji {
    width: 50px;
    height: 50px;
    font-size: 1.55rem;
  }

  .preview-inside ul {
    grid-template-columns: 1fr;
  }

  .preview-actions {
    flex-direction: column;
  }

  .contents-titles li {
    align-items: flex-start;
  }

  .contents-age {
    margin-top: 0.1rem;
  }

  .float-streak,
  .float-safe,
  .float-progress {
    display: none;
  }

  .hero-visual {
    min-height: 360px;
  }
}

/* --------------------------------------------------------------------------
   Color Tap game page
   -------------------------------------------------------------------------- */

.game-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 202, 58, 0.18), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(88, 183, 240, 0.16), transparent 30%),
    var(--cream);
}

.game-main {
  padding: 3rem 0 5rem;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.6rem;
  align-items: start;
  max-width: 980px;
  margin-inline: auto;
}

.game-stage {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.game-hud-item {
  text-align: center;
  min-width: 64px;
}

.game-hud-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.game-hud-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.game-timer {
  flex: 1;
  max-width: 260px;
}

.game-timer-track {
  height: 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}

.game-timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
  transition: width 0.25s linear;
}

.game-timer-fill.is-low {
  background: var(--coral);
}

.game-target {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.3rem 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--cream);
  border: 2px dashed var(--line);
  text-align: center;
}

.game-target-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.game-target-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.game-target-symbol {
  font-size: 1.2rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.color-btn {
  position: relative;
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14), 0 4px 12px rgba(20, 49, 63, 0.12);
}

.color-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.color-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.color-btn.is-correct {
  border-color: var(--ink);
  animation: game-pop 0.4s ease;
}

.color-btn.is-wrong {
  animation: game-shake 0.4s ease;
  filter: saturate(0.3) brightness(0.8);
}

.color-btn:disabled {
  cursor: default;
}

.game-message {
  min-height: 1.6em;
  margin-top: 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.game-side {
  display: grid;
  gap: 1rem;
}

.game-side-card {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.game-side-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.game-side-card p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.game-side-card .btn {
  margin-top: 0.8rem;
  width: 100%;
}

.game-start {
  text-align: center;
  padding: 2rem 1rem;
}

.game-start-emoji {
  font-size: 3.6rem;
  margin-bottom: 0.6rem;
  animation: bob 3.6s ease-in-out infinite;
}

.game-start h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.game-start p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto 1.2rem;
}

.game-end {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.game-end-score {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--leaf-deep);
}

.game-end-label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.game-end h2 {
  margin-top: 1rem;
  font-size: 1.7rem;
}

.game-end p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.game-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.game-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 1.2rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.game-back:hover {
  color: var(--ink);
}

@keyframes game-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes game-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 780px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-side {
    order: -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .game-main {
    padding-top: 1.5rem;
  }

  .game-side {
    grid-template-columns: 1fr;
  }

  .color-btn {
    font-size: 1.2rem;
    border-radius: 15px;
  }

  .game-hud {
    flex-wrap: wrap;
  }

  .game-timer {
    order: 10;
    flex-basis: 100%;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Game page additions */
.game-page .nav-actions {
  margin-left: auto;
}

.game-page .nav-talk {
  display: inline-block;
}

.game-page .nav-actions .btn {
  display: inline-flex;
}

.game-target-swatch {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  border: 3px solid rgba(20, 49, 63, 0.12);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.game-best {
  margin-bottom: 1rem !important;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.game-footer {
  padding: 1.8rem 0;
  margin-top: 2rem;
}

.game-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.76rem;
}

.game-footer .text-link {
  display: inline;
  border-bottom-width: 1px;
}

@media (max-width: 640px) {
  .game-page .nav-actions .btn {
    display: none;
  }

  .game-page .nav-talk {
    font-size: 0.76rem;
  }
}
