:root {
  --k-bg: #fff8ee;
  --k-yellow: #ffd93d;
  --k-coral: #ff6b6b;
  --k-green: #6bcb77;
  --k-blue: #4d96ff;
  --k-lav: #c77dff;
  --k-peach: #ffb347;
  --k-brown: #5c4632;
  --k-text: #3e342b;
  --p-bg: #fbf7f2;
  --p-accent: #9fd8a8;
  --p-gold: #c9a84c;
  --p-muted: #8a7060;
  --line: rgba(92, 70, 50, 0.14);
  --shadow: 0 6px 24px rgba(92, 70, 50, 0.11);
  --shadow-lg: 0 16px 48px rgba(92, 70, 50, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 48px;
}

* {
  box-sizing: border-box;
}

[hidden],
body.kids-mode .parents-only,
body.parent-mode .kids-only {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--k-bg);
  color: var(--k-text);
  font-family: Nunito, "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--k-bg);
  color: var(--k-text);
  transition: background 0.45s ease;
}

body.parent-mode {
  background: var(--p-bg);
}

:focus-visible {
  outline: 3px solid var(--k-blue);
  outline-offset: 3px;
}

body.parent-mode :focus-visible {
  outline-color: var(--p-accent);
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  background: var(--k-brown);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

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

.floaties,
.shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shimmer {
  top: -40%;
  right: -10%;
  left: auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.12), transparent 70%);
  animation: shimmerPulse 6s ease-in-out infinite;
}

.floatie {
  position: absolute;
  display: block;
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  animation-name: bubbleRise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: normal;
  will-change: transform, opacity;
}

/* Each item starts at the bottom at its horizontal lane, floats upward */
.decor-a { left:  6%;  bottom: -50px; animation-duration: 12s; animation-delay:  0s; font-size: 28px; }
.decor-b { left: 20%;  bottom: -50px; animation-duration:  9s; animation-delay: -3s; font-size: 24px; }
.decor-c { left: 36%;  bottom: -50px; animation-duration: 14s; animation-delay: -8s; font-size: 22px; }
.decor-d { left: 52%;  bottom: -50px; animation-duration: 10s; animation-delay: -5s; font-size: 30px; }
.decor-e { left: 66%;  bottom: -50px; animation-duration:  8s; animation-delay: -1s; font-size: 24px; }
.decor-f { left: 78%;  bottom: -50px; animation-duration: 13s; animation-delay: -6s; font-size: 20px; }
.decor-g { left: 12%;  bottom: -50px; animation-duration: 11s; animation-delay: -10s; font-size: 22px; }
.decor-h { left: 88%;  bottom: -50px; animation-duration: 16s; animation-delay: -4s; font-size: 26px; }

body.parent-mode .floatie,
body.parent-mode .shimmer {
  opacity: 0.22;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2 + 24px));
  border-bottom: 2px solid rgba(255, 217, 61, 0.35);
  background: rgba(255, 248, 238, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--k-brown);
  font-family: "Fredoka One", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  font-size: 1.16rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-logo-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(92, 70, 50, 0.18);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 18px;
}

.primary-nav a {
  border-radius: var(--radius-sm);
  color: var(--k-brown);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 7px 9px;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--k-yellow);
}

.nav-toggle {
  display: none;
}

.mode-toggle {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 80;
  display: inline-flex;
  gap: 0;
  max-width: calc(100vw - 36px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(92, 70, 50, 0.18);
  padding: 4px;
}

.mode-button,
.button,
.filter,
.icon-button {
  min-height: 42px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.mode-button {
  border-radius: 999px;
  background: transparent;
  color: var(--k-brown);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 9px 18px;
  transition: transform 0.2s ease, background 0.25s ease;
}

.mode-button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--k-yellow), var(--k-coral));
  color: #fff;
  box-shadow: 0 3px 12px rgba(255, 107, 107, 0.35);
}

body.parent-mode .mode-button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--p-accent), var(--p-gold));
}

main {
  position: relative;
  z-index: 1;
}

.gateway-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 400px);
  align-items: center;
  gap: 42px;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.hero-bg-blob {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.22), rgba(107, 203, 119, 0.17) 40%, rgba(77, 150, 255, 0.13) 70%, rgba(199, 125, 255, 0.18));
}

body.parent-mode .hero-bg-blob {
  background: linear-gradient(135deg, rgba(159, 216, 168, 0.14), rgba(201, 168, 76, 0.08) 60%, rgba(245, 237, 224, 0.25));
}

.hero-copy {
  max-width: 650px;
}

.status-pill,
.description-label,
.hold-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--k-yellow);
  color: var(--k-brown);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 8px 18px;
  text-transform: uppercase;
}

.status-pill {
  margin: 0 0 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  color: var(--k-brown);
  font-family: "Fredoka One", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(3.4rem, 8vw, 6.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--k-brown);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
}

.hero-body-copy {
  max-width: 54ch;
  margin-bottom: 26px;
  color: var(--k-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.staging-line {
  margin-top: 18px;
  color: rgba(92, 70, 50, 0.52);
  font-size: 0.83rem;
  font-weight: 900;
}

.actions,
.filter-bar,
.emotion-wheel,
.guess-buttons,
.book-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  min-height: 48px;
  padding: 12px 22px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.button:hover,
.feature-card:hover {
  transform: translateY(-3px);
}

.primary {
  background: linear-gradient(135deg, var(--k-coral), var(--k-peach));
  box-shadow: 0 5px 16px rgba(255, 107, 107, 0.24);
}

.secondary,
.filter.active {
  background: linear-gradient(135deg, var(--k-green), var(--k-blue));
  box-shadow: 0 5px 16px rgba(77, 150, 255, 0.2);
}

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

.hold-art {
  padding: 0;
}

.hero-char-img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 16px 36px rgba(255, 107, 107, 0.22));
  animation: gentleBob 4s ease-in-out infinite;
  will-change: transform;
}

.portal-grid,
.feature-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 42px auto 56px;
  padding: 0 24px;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0;
}

.portal-panel,
.book-card,
.waitlist-panel,
.modal-card {
  border: 1px solid rgba(255, 217, 61, 0.45);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.portal-panel,
.book-card,
.waitlist-panel {
  border-radius: var(--radius-md);
  padding: 22px;
}

.feature-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-card::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--k-yellow), var(--k-coral), var(--k-blue));
  content: "";
}

.feature-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--k-green), var(--k-yellow), var(--k-blue));
}

.feature-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--k-lav), var(--k-coral), var(--k-yellow));
}

.mini-visual {
  display: block;
  min-height: auto;
  margin: 12px 0 16px;
}

.card-emoji {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
}

.feature-card h2,
.feature-card h3 {
  margin-bottom: 10px;
  color: var(--k-brown);
  font-size: 1.38rem;
  font-weight: 900;
}

.feature-card p,
.book-card p,
.section-heading p,
.waitlist-panel p,
li {
  color: var(--k-text);
  font-size: 0.96rem;
  line-height: 1.65;
}

.feelings-visual,
.teacher-visual {
  position: relative;
  width: 84px;
  height: 58px;
  margin-top: 20px;
}

.book-shape {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 42px;
  border-radius: 8px 14px 14px 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 9px 0 rgba(107, 203, 119, 0.42);
}

.heart-shape {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--k-yellow), var(--k-coral));
  transform: rotate(45deg);
}

.heart-shape::before,
.heart-shape::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.heart-shape::before { left: -14px; }
.heart-shape::after { top: -14px; }

.leaf-shape {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 34px;
  height: 19px;
  border-radius: 100% 0 100% 0;
  background: var(--k-green);
}

.section-block,
.waitlist-panel {
  max-width: 1180px;
  margin: 46px auto 56px;
  padding-left: 24px;
  padding-right: 24px;
}

.kids-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.kids-game-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 61, 0.45);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 22px;
}

.kids-game-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  content: "";
}

.game-bunny {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(107, 203, 119, 0.16));
}

.game-bunny::before {
  background: linear-gradient(90deg, var(--k-green), var(--k-yellow));
}

.game-feelings {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(199, 125, 255, 0.14));
}

.game-feelings::before {
  background: linear-gradient(90deg, var(--k-lav), var(--k-blue));
}

.game-colors {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 179, 71, 0.16));
}

.game-colors::before {
  background: linear-gradient(90deg, var(--k-yellow), var(--k-coral), var(--k-blue), var(--k-green));
}

.game-kindness {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 107, 107, 0.12));
}

.game-kindness::before {
  background: linear-gradient(90deg, var(--k-coral), var(--k-peach));
}

.game-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #fff7dd;
  color: var(--k-brown);
  font-family: "Fredoka One", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(92, 70, 50, 0.08);
}

.kids-game-card h3 {
  margin-bottom: 10px;
  color: var(--k-brown);
  font-size: 1.28rem;
}

.kids-game-card p {
  min-height: 74px;
}

.game-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.game-choice {
  min-height: 58px;
  border: 2px solid rgba(92, 70, 50, 0.12);
  border-radius: var(--radius-md);
  background: #fff7dd;
  color: var(--k-brown);
  cursor: pointer;
  font-weight: 900;
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.game-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 150, 255, 0.45);
}

.game-choice.is-correct {
  border-color: rgba(107, 203, 119, 0.9);
  background: rgba(107, 203, 119, 0.18);
}

.game-choice.is-wrong {
  border-color: rgba(255, 179, 71, 0.82);
  background: rgba(255, 179, 71, 0.16);
}

.game-feedback {
  border-radius: var(--radius-md);
  background: rgba(255, 217, 61, 0.16);
  padding: 12px 14px;
}

.color-play-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 217, 61, 0.16), rgba(107, 203, 119, 0.12), rgba(77, 150, 255, 0.1));
  padding: 22px;
}

.color-liri {
  position: relative;
  width: min(260px, 68vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: #eef6da;
  box-shadow: var(--shadow);
}

.color-liri img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 160ms ease;
}

.color-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-swatch {
  width: 54px;
  height: 54px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.swatch-yellow { background: var(--k-yellow); }
.swatch-blue { background: var(--k-blue); }
.swatch-green { background: var(--k-green); }
.swatch-coral { background: var(--k-coral); }

.kind-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.path-step {
  border-radius: 999px;
  background: rgba(92, 70, 50, 0.1);
  color: rgba(92, 70, 50, 0.65);
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.path-step.is-active {
  background: linear-gradient(135deg, var(--k-green), var(--k-blue));
  color: #fff;
}

.parents-only.section-block {
  position: relative;
}

.parents-only.section-block::before {
  position: absolute;
  inset: -24px 0 auto;
  z-index: -1;
  height: 180px;
  border-radius: var(--radius-xl);
  content: "";
  opacity: 0.45;
}

.section-teacher::before {
  background: linear-gradient(135deg, rgba(107, 203, 119, 0.18), rgba(255, 217, 61, 0.15), rgba(77, 150, 255, 0.12));
}

.section-why::before {
  background: radial-gradient(circle at 16% 20%, rgba(255, 107, 107, 0.16), transparent 30%), linear-gradient(135deg, rgba(255, 179, 71, 0.12), rgba(255, 255, 255, 0));
}

.section-framework::before {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.12), rgba(159, 216, 168, 0.15));
}

.section-matrix::before {
  background: linear-gradient(135deg, rgba(92, 70, 50, 0.06), rgba(159, 216, 168, 0.14));
}

.section-routine::before {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.14), rgba(255, 179, 71, 0.12));
}

.section-boundaries::before,
.section-research::before {
  background: linear-gradient(135deg, rgba(251, 247, 242, 0.2), rgba(159, 216, 168, 0.12));
}

.section-updates::before {
  background: linear-gradient(135deg, rgba(77, 150, 255, 0.12), rgba(255, 217, 61, 0.16), rgba(255, 107, 107, 0.1));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2,
#insights-title,
#waitlist-title {
  color: var(--k-brown);
  font-family: "Fredoka One", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
}

.emotion-wheel,
.filter-bar {
  margin-bottom: 22px;
}

.filter,
.icon-button {
  border-radius: 999px;
  background: #fff;
  color: var(--k-brown);
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.book-card {
  --book-color: var(--k-yellow);
  --book-soft: #fff4bf;
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-color: var(--book-color);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
    linear-gradient(145deg, #fff, var(--book-soft));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--book-color);
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px var(--book-soft), var(--shadow);
}

.book-card.is-highlighted {
  outline: 4px solid var(--k-blue);
  outline-offset: 4px;
}

.book-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--book-color);
  color: var(--k-brown);
  font-weight: 900;
  place-items: center;
  box-shadow: inset 0 -2px 0 rgba(92, 70, 50, 0.12), 0 8px 18px rgba(92, 70, 50, 0.1);
}

.book-color-note {
  max-width: 760px;
  margin: -2px 0 26px;
  color: rgba(92, 70, 50, 0.82);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.5;
}

.book-meta {
  color: var(--k-brown);
  font-weight: 900;
}

.waitlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 24px;
}

.waitlist-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--k-brown);
  font-weight: 900;
}

input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-status,
.modal-feedback {
  min-height: 24px;
  margin: 0;
  font-weight: 900;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(62, 52, 43, 0.48);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1060px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 36px);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
}

.modal-visual-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
}

.modal-visual-row img {
  max-height: 160px;
  object-fit: contain;
}

.modal-visual-row .modal-feature-image {
  width: min(360px, 100%);
  max-height: 360px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-modal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

.about-modal-art {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 350px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(159, 216, 168, 0.38);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 217, 61, 0.24), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(247, 132, 102, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 250, 229, 0.96), rgba(237, 249, 239, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.about-modal-art img {
  width: min(250px, 100%);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(87, 69, 52, 0.16));
}

.about-modal-copy {
  align-self: center;
}

.about-modal-copy h2 {
  margin-top: 0;
}

.about-modal-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.about-modal-points article {
  padding: 16px;
  border: 1px solid rgba(159, 216, 168, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.about-modal-points h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.about-modal-points p {
  margin: 0;
  font-size: 0.94rem;
}

.book-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 16px 0;
}

.book-pick {
  justify-content: flex-start;
  border-radius: var(--radius-md);
  background: #fff7dd;
  color: var(--k-brown);
  text-align: left;
}

.guess-buttons {
  margin: 14px 0;
}

.bunny-surprise {
  position: relative;
  display: grid;
  min-height: 150px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 217, 61, 0.28), rgba(107, 203, 119, 0.2), rgba(77, 150, 255, 0.14));
  place-items: center;
}

.bunny-reward-video {
  width: min(220px, 86%);
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 248, 238, 0.85);
  box-shadow: var(--shadow);
  object-fit: cover;
  opacity: 0;
  transform: translateY(24px) scale(0.84);
  transition: opacity 220ms ease, transform 220ms ease;
}

.bunny-surprise.is-celebrating .bunny-reward-video {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sparkle {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(255, 217, 61, 0.9);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
  opacity: 0;
}

.sparkle.s1 { left: 18%; top: 22%; }
.sparkle.s2 { right: 20%; top: 16%; }
.sparkle.s3 { left: 50%; top: 8%; transform: translateX(-50%); }

.bunny-surprise.is-celebrating .sparkle {
  animation: sparklePop 1100ms ease forwards;
}

.bunny-surprise.is-celebrating .sparkle.s2 {
  animation-delay: 120ms;
}

.bunny-surprise.is-celebrating .sparkle.s3 {
  animation-delay: 240ms;
}

.balloon {
  position: absolute;
  bottom: -30px;
  width: 20px;
  height: 28px;
  border-radius: 50%;
  background: var(--k-coral);
  opacity: 0;
}

.balloon:nth-child(2) {
  left: 28%;
  background: var(--k-green);
}

.balloon:nth-child(3) {
  right: 28%;
  background: var(--k-lav);
}

.bunny-surprise.is-celebrating .balloon {
  animation: floatBalloon 1200ms ease forwards;
}

.character-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin: 12px 0 16px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.4), rgba(255, 255, 255, 0.65));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-portrait,
.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.card-video {
  display: block;
  background: rgba(255, 248, 238, 0.9);
}

.family-visual .card-portrait {
  object-position: center 20%;
}

.bunny-visual.character-visual {
  background: radial-gradient(circle, rgba(107, 203, 119, 0.32), rgba(255, 255, 255, 0.65));
}

.bunny-portrait {
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/snuggie_bunny_master_reference.png");
  background-size: 320% auto;
  background-position: 14% 32%;
  background-repeat: no-repeat;
}

.feelings-visual {
  width: 96px;
  height: 72px;
  margin: 12px 0 16px;
}

.feelings-visual .star-shape {
  position: absolute;
  left: 2px;
  top: -4px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(92, 70, 50, 0.18));
}

.feelings-visual .heart-shape,
.feelings-visual .book-shape {
  box-shadow: var(--shadow);
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--p-muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.tan-global-link,
.liri-site-link {
  color: var(--k-brown);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-legal-links a {
  color: var(--k-brown);
  text-decoration: underline;
}

body.parent-mode .topbar {
  border-color: rgba(159, 216, 168, 0.25);
  background: rgba(251, 247, 242, 0.96);
}

body.parent-mode h1,
body.parent-mode .section-heading h2,
body.parent-mode #insights-title,
body.parent-mode #waitlist-title {
  color: var(--k-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

body.parent-mode .portal-panel,
body.parent-mode .waitlist-panel,
body.parent-mode .modal-card {
  border-color: rgba(159, 216, 168, 0.32);
}

body.parent-mode .primary,
body.parent-mode .secondary,
body.parent-mode .filter.active {
  background: linear-gradient(135deg, var(--p-accent), var(--p-gold));
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes bunnyPop {
  0% { opacity: 0; transform: translateY(96px) scale(0.72); }
  25% { opacity: 1; }
  70% { transform: translateY(-10px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatBalloon {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-130px); }
}

@keyframes sparklePop {
  0% { opacity: 0; transform: scale(0.4) translateY(10px); }
  35% { opacity: 1; transform: scale(1.15) translateY(-6px); }
  100% { opacity: 0; transform: scale(0.9) translateY(-30px); }
}

/* Bubble rise — floats from bottom to top with a gentle sway, fades in then out */
@keyframes bubbleRise {
  0%   { transform: translateY(0)       translateX(0px)   rotate(0deg)   scale(1);    opacity: 0;    }
  8%   { opacity: 0.75; }
  35%  { transform: translateY(-35vh)   translateX(14px)  rotate(8deg)   scale(1.05); }
  65%  { transform: translateY(-65vh)   translateX(-10px) rotate(-6deg)  scale(0.97); }
  88%  { opacity: 0.65; }
  100% { transform: translateY(-110vh)  translateX(6px)   rotate(10deg)  scale(0.85); opacity: 0;    }
}

@keyframes shimmerPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.disclaimer-note {
  margin-top: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(159, 216, 168, 0.4);
  background: rgba(159, 216, 168, 0.14);
  padding: 14px 18px;
  color: var(--p-muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.6;
}

.matrix-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.matrix-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.94);
}

.matrix-table caption {
  padding: 14px 18px;
  color: var(--k-brown);
  font-weight: 900;
  text-align: left;
  font-size: 1rem;
}

.matrix-table th,
.matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.6;
}

.matrix-table th {
  background: rgba(159, 216, 168, 0.2);
  color: var(--k-brown);
  font-weight: 900;
  white-space: nowrap;
}

.matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

.matrix-table td:first-child {
  font-weight: 900;
  color: var(--k-brown);
  white-space: nowrap;
}

.matrix-book-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.book-color-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(92, 70, 50, 0.18);
  border-radius: 999px;
  background: var(--book-color, var(--k-yellow));
  box-shadow: 0 3px 9px rgba(92, 70, 50, 0.1);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 22px;
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-accent), var(--p-gold));
  color: #fff;
  font-weight: 900;
  place-items: center;
}

.is-not-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.is-not-grid ul {
  margin: 0;
  padding-left: 22px;
}

.is-not-grid li {
  margin-bottom: 6px;
}

.resource-grid,
.insight-grid,
.framework-grid {
  align-items: stretch;
}

.resource-progress-strip {
  display: inline-flex;
  max-width: 100%;
  margin: 4px 0 18px;
  border: 1px solid rgba(159, 216, 168, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--p-muted);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.5;
  padding: 10px 16px;
}

.teacher-freebies-shelf {
  display: grid;
  gap: 18px;
  margin: 20px 0 24px;
}

.teacher-featured-freebie {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(159, 216, 168, 0.42);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 217, 61, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 250, 229, 0.96), rgba(237, 249, 239, 0.92));
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 28px);
}

.featured-freebie-media {
  overflow: hidden;
  border: 1px solid rgba(92, 70, 50, 0.12);
  border-radius: var(--radius-md);
  background: #fffaf0;
  box-shadow: 0 12px 32px rgba(92, 70, 50, 0.13);
}

.featured-freebie-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.featured-freebie-copy h3 {
  margin: 8px 0 12px;
  color: var(--k-brown);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.featured-freebie-copy p {
  margin-bottom: 14px;
}

.freebie-detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.freebie-detail-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.freebie-detail-list li::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--p-accent);
  content: "";
}

.teacher-freebies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.teacher-freebie-card {
  position: relative;
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px;
}

.teacher-freebie-card::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  content: "";
}

.freebie-coloring {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 179, 71, 0.14));
}

.freebie-coloring::before {
  background: linear-gradient(90deg, #ffb347, #ff6b6b);
}

.freebie-feelings {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(199, 125, 255, 0.12));
}

.freebie-feelings::before {
  background: linear-gradient(90deg, #c77dff, #4d96ff);
}

.freebie-bunny {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(107, 203, 119, 0.14));
}

.freebie-bunny::before {
  background: linear-gradient(90deg, #6bcb77, #ffd93d);
}

.freebie-readaloud {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(77, 150, 255, 0.1));
}

.freebie-readaloud::before {
  background: linear-gradient(90deg, #4d96ff, #9fd8a8);
}

.freebie-bundle {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(201, 168, 76, 0.14));
}

.freebie-bundle::before {
  background: linear-gradient(90deg, #c9a84c, #ffd93d);
}

.freebie-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(107, 203, 119, 0.18);
  color: var(--k-brown);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.freebie-preview-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  border: 1px solid rgba(92, 70, 50, 0.12);
  border-radius: var(--radius-sm);
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(92, 70, 50, 0.1);
  object-fit: cover;
  object-position: center;
}

.freebie-secondary-status {
  margin: 0 0 16px;
  color: var(--p-muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.future-status {
  background: rgba(201, 168, 76, 0.18);
}

.teacher-freebie-card h3 {
  margin-bottom: 8px;
  color: var(--k-brown);
  font-size: 1.08rem;
  line-height: 1.2;
}

.teacher-freebie-card p {
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.freebie-card-footer,
.future-idea-only {
  margin-top: auto;
  color: var(--p-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.future-idea-only {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.16);
  color: var(--k-brown);
  padding: 8px 10px;
}

.disabled-button,
.disabled-button:disabled {
  cursor: not-allowed;
  background: rgba(92, 70, 50, 0.12);
  color: rgba(92, 70, 50, 0.68);
  box-shadow: none;
  transform: none;
}

.resource-card,
.insight-card,
.framework-card,
.update-card {
  position: relative;
  overflow: hidden;
}

.resource-card::before,
.framework-card::before,
.update-card::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  content: "";
}

.resource-color-peach::before { background: linear-gradient(90deg, #ffb347, #ff6b6b); }
.resource-color-sage::before { background: linear-gradient(90deg, #9fd8a8, #6bcb77); }
.resource-color-lavender::before { background: linear-gradient(90deg, #c77dff, #4d96ff); }
.resource-color-sky::before { background: linear-gradient(90deg, #4d96ff, #9fd8a8); }
.resource-color-gold::before { background: linear-gradient(90deg, #ffd93d, #c9a84c); }

.resource-card h3,
.insight-card h3,
.framework-card h3,
.update-card h3 {
  color: var(--k-brown);
}

.insight-card {
  padding-top: 62px;
}

.card-mark {
  position: absolute;
  left: 22px;
  top: 20px;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.mark-heart {
  background: rgba(255, 107, 107, 0.45);
  transform: rotate(45deg);
}

.mark-heart::before,
.mark-heart::after {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.mark-heart::before { left: -15px; }
.mark-heart::after { top: -15px; }

.mark-star {
  background: rgba(255, 217, 61, 0.85);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
}

.mark-book {
  width: 38px;
  border-radius: 6px 14px 14px 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 9px 0 rgba(77, 150, 255, 0.28);
}

.mark-leaf {
  width: 42px;
  height: 24px;
  border-radius: 100% 0 100% 0;
  background: rgba(107, 203, 119, 0.62);
}

.framework-card {
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 217, 61, 0.2), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.framework-card::before {
  background: linear-gradient(90deg, rgba(199, 125, 255, 0.75), rgba(159, 216, 168, 0.75));
}

.framework-number {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(159, 216, 168, 0.22);
  color: var(--k-brown);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
}

.section-matrix .matrix-table-wrap {
  border: 1px solid rgba(159, 216, 168, 0.34);
}

.section-routine .step-card:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 217, 61, 0.12));
}

.section-routine .step-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(107, 203, 119, 0.12));
}

.section-routine .step-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(77, 150, 255, 0.1));
}

.section-boundaries .portal-panel:first-child {
  border-color: rgba(107, 203, 119, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(159, 216, 168, 0.12));
}

.section-boundaries .portal-panel:last-child {
  border-color: rgba(255, 107, 107, 0.32);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 107, 107, 0.08));
}

.section-research {
  border-left: 8px solid rgba(159, 216, 168, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  padding-top: 24px;
  padding-bottom: 24px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.update-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.update-card::before {
  height: 9px;
}

.update-freebie {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 217, 61, 0.18));
}

.update-freebie::before {
  background: linear-gradient(90deg, #ffd93d, #ffb347);
}

.update-activity {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(107, 203, 119, 0.15));
}

.update-activity::before {
  background: linear-gradient(90deg, #6bcb77, #4d96ff);
}

.update-journal {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(199, 125, 255, 0.12));
}

.update-journal::before {
  background: linear-gradient(90deg, #c77dff, #ff6b6b);
}

.update-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--k-brown);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .teacher-featured-freebie {
    grid-template-columns: 1fr;
  }

  .teacher-freebies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-modal-layout {
    grid-template-columns: 1fr;
  }

  .about-modal-art {
    min-height: 260px;
  }

  .about-modal-art img {
    width: min(210px, 80vw);
    max-height: 230px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--k-brown);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    padding: 10px 14px;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .gateway-hero,
  .waitlist-panel {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-char-img {
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .mode-toggle {
    bottom: 18px;
    right: 50%;
    top: auto;
    transform: translateX(50%);
  }

  .gateway-hero {
    min-height: auto;
    padding: 40px 18px 36px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .portal-grid,
  .feature-grid,
  .catalog-grid,
  .section-block,
  .waitlist-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .resource-progress-strip {
    border-radius: var(--radius-md);
  }

  .teacher-freebies-grid {
    grid-template-columns: 1fr;
  }

  .teacher-featured-freebie,
  .teacher-freebie-card {
    border-radius: var(--radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* G-2 PATCH v08-fix-01: FAQ list styles */
.faq-list {
  margin: 0;
  padding: 0;
}

.faq-list dt {
  font-weight: 700;
  color: var(--k-brown);
  margin-top: 1.4rem;
}

.faq-list dd {
  margin: 0.3rem 0 0 0;
  color: var(--p-muted);
  line-height: 1.6;
}

/* Mobile: smaller emoji, hide the rightmost lanes */
@media (max-width: 600px) {
  .floatie {
    font-size: 18px !important;
  }

  .decor-f,
  .decor-h {
    display: none;
  }
}

/* ── Lala Mission Strip ─────────────────────────────────────────── */
.liri-mission-strip {
  max-width: 760px;
  margin: 0.85rem auto 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 28px;
  background: rgba(255, 248, 238, 0.78);
  border: 1px solid rgba(176, 206, 160, 0.55);
  box-shadow: 0 18px 38px rgba(133, 108, 67, 0.12);
  text-align: center;
}

.mission-kicker {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--p-muted);
}

.mission-line {
  margin: 0.25rem 0 0.85rem;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--k-brown);
  line-height: 1.25;
}

.mission-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.mission-badge {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--k-brown);
  font-weight: 800;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(133, 108, 67, 0.12);
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mission-badge:hover,
.mission-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(133, 108, 67, 0.18);
  outline: 3px solid rgba(176, 206, 160, 0.65);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .liri-mission-strip {
    margin-top: 0.65rem;
    padding: 0.9rem;
    border-radius: 22px;
  }

  .mission-badges {
    flex-direction: column;
  }

  .mission-badge {
    width: 100%;
    text-align: center;
  }
}

/* ── Big Feelings Modal Fix ─────────────────────────────────────── */

/* 1. Stronger scrim — dim page clearly behind modal */
.modal-scrim {
  background: rgba(54, 39, 27, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 2. Modal card — warm cream, visible border, strong shadow */
.modal-card {
  background: rgba(255, 248, 238, 0.99);
  border: 2px solid rgba(176, 206, 160, 0.75);
  box-shadow: 0 28px 70px rgba(54, 39, 27, 0.30);
  color: var(--k-brown);
}

/* 3. Headings and body text — ensure dark readable color */
.modal-card h2,
.modal-card h3 {
  color: var(--k-brown);
}

.modal-card > p,
.modal-card .modal-body p {
  color: #4d3a2b;
}

/* 4. Emoji header decoration above modal content */
.modal-card::before {
  content: "💛 ✨ 🐰";
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.35rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

/* 5. Feeling chip buttons — colorful, dark text, readable */
.guess-buttons .button {
  color: #3f3025;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(133, 108, 67, 0.16);
  font-weight: 800;
}

.guess-buttons .button:nth-child(1) {
  background: linear-gradient(135deg, #f7c7d9 0%, #f6df8f 100%);
}
.guess-buttons .button:nth-child(2) {
  background: linear-gradient(135deg, #f6b0a8 0%, #f6df8f 100%);
}
.guess-buttons .button:nth-child(3) {
  background: linear-gradient(135deg, #cdb8ff 0%, #bfe3ff 100%);
}
.guess-buttons .button:nth-child(4) {
  background: linear-gradient(135deg, #b8dfc1 0%, #f6df8f 100%);
}
.guess-buttons .button:nth-child(5) {
  background: linear-gradient(135deg, #bfe3ff 0%, #cdb8ff 100%);
}
.guess-buttons .button:nth-child(6) {
  background: linear-gradient(135deg, #ffd6a5 0%, #f7c7d9 100%);
}

/* Extra buttons — Not Sure (7) and Find Bunny (8) */
.guess-buttons .button:nth-child(7) {
  background: linear-gradient(135deg, #e8e0f7 0%, #d6eaff 100%);
}
.guess-buttons .button:nth-child(8) {
  background: linear-gradient(135deg, #fff3cc 0%, #ffd6a5 100%);
}

/* Slightly tighter chips so 8 don't crowd the modal */
.modal-card .guess-buttons .button {
  padding: 9px 15px;
  font-size: 0.9rem;
}

/* "Go to Bunny Search" follow-up button spacing */
#feelingsExtraAction {
  margin-top: 0.75rem;
}

.feelings-bunny-link {
  font-size: 0.9rem;
  padding: 9px 18px;
}

.guess-buttons .button:hover,
.guess-buttons .button:focus-visible {
  transform: translateY(-2px) scale(1.04);
  outline: 3px solid rgba(176, 206, 160, 0.95);
  outline-offset: 3px;
  box-shadow: 0 14px 28px rgba(133, 108, 67, 0.24);
}

/* 6. Mobile — stack chips full-width */
@media (max-width: 560px) {
  .modal-card {
    width: min(94vw, 560px);
    padding: 1.25rem;
  }

  .guess-buttons {
    flex-direction: column;
  }

  .guess-buttons .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Book cards: cover slot on the front, existing story data on the back. */
.book-card {
  min-height: 320px;
  padding: 0;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
}

.book-card:focus-visible {
  outline: 4px solid var(--k-blue);
  outline-offset: 4px;
}

.book-card-inner {
  position: relative;
  min-height: 320px;
  height: 100%;
  transition: opacity 0.22s ease;
}

.book-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.book-card-front {
  background: linear-gradient(145deg, #fffef9, var(--book-soft, #fff4bf));
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.book-card-back {
  overflow: auto;
  background: linear-gradient(145deg, var(--book-soft, #fff4bf), #fffef9);
}

.book-card.is-flipped .book-card-front {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s;
}

.book-card.is-flipped .book-card-back {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.book-card-back p {
  margin: 0;
  font-size: 0.88rem;
}

.book-cover-slot {
  display: grid;
  place-items: center;
  min-height: 112px;
  margin: 2px 0 6px;
  border: 2px dashed var(--book-color, var(--k-yellow));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--k-brown);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-flip-hint {
  margin-top: auto;
  color: var(--k-brown);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-coloring { background: linear-gradient(145deg, #fff, #ffddea); }
.game-pixel { background: linear-gradient(145deg, #fff, #dcecff); }
.game-abc { background: linear-gradient(145deg, #fff, #eee2ff); }
.game-puzzle { background: linear-gradient(145deg, #fff, #fff1c9); }
.game-games { background: linear-gradient(145deg, #fff, #dff4df); }

@media (prefers-reduced-motion: reduce) {
  .book-card-inner, .book-card-face { transition: none; }
}

/* Approved Book 01 front/back cover preview */
.book-card--cover-preview {
  min-height: 430px;
  background: linear-gradient(145deg, #fffef9, var(--book-soft, #fff4bf));
}

.book-card--cover-preview .book-card-inner {
  min-height: 430px;
  transform-style: preserve-3d;
  transition: transform 0.78s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.book-card--cover-preview .book-card-face {
  align-items: center;
  justify-content: center;
  padding: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.book-card--cover-preview .book-card-front {
  transform: rotateY(0deg);
}

.book-card--cover-preview .book-card-back {
  transform: rotateY(180deg);
}

.book-card--cover-preview.is-flipped .book-card-inner {
  transform: rotateY(180deg);
}

.book-card--cover-preview.is-flipped .book-card-front,
.book-card--cover-preview.is-flipped .book-card-back {
  opacity: 1;
  visibility: visible;
}

.book-cover-label {
  align-self: flex-start;
  color: var(--k-brown);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-cover-image {
  display: block;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(92, 70, 50, 0.18);
  object-fit: contain;
}

.book-cover-image--front {
  max-height: 332px;
  aspect-ratio: 829 / 849;
}

.book-cover-image--back {
  max-height: 286px;
  aspect-ratio: 941 / 849;
}

.book-card--cover-preview .book-flip-hint {
  margin-top: 2px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .book-card--cover-preview .book-card-inner {
    transition: none;
  }
}

/* Large, accessible Book 01 cover preview */
.modal-card:has(.book-preview) {
  width: min(920px, 96vw);
  max-width: 920px !important;
  max-height: 96vh;
}

.book-preview {
  text-align: center;
}

.book-preview-kicker {
  margin: 0 0 4px;
  color: #8a643f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-preview h2 {
  margin: 0;
}

.book-preview-intro {
  max-width: 560px;
  margin: 8px auto 18px;
}

.book-preview-stage {
  width: min(660px, 100%, calc((100vh - 300px) * 829 / 849));
  aspect-ratio: 829 / 849;
  margin: 0 auto;
  perspective: 1400px;
  cursor: pointer;
  outline: none;
}

.book-preview-stage:focus-visible {
  border-radius: 24px;
  outline: 4px solid var(--k-blue);
  outline-offset: 5px;
}

.book-preview-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.82s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.book-preview-stage.is-flipped .book-preview-inner {
  transform: rotateY(180deg);
}

.book-preview-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.58);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffef9, #fff4bf);
  box-shadow: 0 22px 50px rgba(92, 70, 50, 0.22);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.book-preview-back {
  transform: rotateY(180deg);
}

.book-preview-face img {
  display: block;
  width: 100%;
  max-height: 590px;
  border-radius: 16px;
  object-fit: contain;
}

.book-preview-face figcaption {
  color: var(--k-brown);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .modal-card:has(.book-preview) {
    padding: 18px 14px;
  }

  .book-preview-intro {
    font-size: 0.9rem;
  }

  .book-preview-stage {
    width: min(100%, calc(100vh - 330px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-preview-inner {
    transition: none;
  }
}
/* ============================================================
   PATCH 3 of 3 — ADD to the END of css/styles.css
   Covers: per-card accent colors for the redesigned activity grid,
   and the in-page activity overlay panel (iframe, same tab, same URL).
   ============================================================ */

/* --- Per-card accents, dark/gold family matching the ABC page --- */
.kids-game-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  color: #f5eefc;
  background: #181022;
  border: 1px solid rgba(255,255,255,.10);
}
.kids-game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}
.kids-game-card h3 { color: #f5eefc; }
.kids-game-card p { color: #c7b8dd; }
.kids-game-card .game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 8px;
}
.kids-game-card .button {
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.game-bunny::before { background: linear-gradient(90deg,#d24171,#d26541); }
.game-bunny .game-icon { background: rgba(224,102,143,.18); }
.game-bunny .button { background: #e0668f; color: #2a0714; }

.game-feelings::before { background: linear-gradient(90deg,#d2a241,#41d28a); }
.game-feelings .game-icon { background: rgba(90,127,214,.18); }
.game-feelings .button { background: transparent; color: #a9bdf0; border: 1px solid rgba(169,189,240,.4) !important; }

.game-colors::before { background: linear-gradient(90deg,#ff8a63,#2fb8ac); }
.game-colors .game-icon { background: rgba(255,138,99,.18); }
.game-colors .button { background: transparent; color: #ffb097; border: 1px solid rgba(255,176,151,.4) !important; }

.game-kindness::before { background: linear-gradient(90deg,#41d28a,#41c6d2); }
.game-kindness .game-icon { background: rgba(74,138,106,.18); }
.game-kindness .button { background: #4a8a6a; color: #eafff2; }

.game-coloring::before { background: linear-gradient(90deg,#41c6d2,#417ed2); }
.game-coloring .game-icon { background: rgba(122,74,99,.22); }
.game-coloring .button { background: transparent; color: #d9a6c2; border: 1px solid rgba(217,166,194,.4) !important; }

.game-pixel::before { background: linear-gradient(90deg,#417ed2,#5941d2); }
.game-pixel .game-icon { background: rgba(90,74,154,.22); }
.game-pixel .button { background: transparent; color: #bcb0ee; border: 1px solid rgba(188,176,238,.4) !important; }

.game-abc::before { background: linear-gradient(90deg,#5941d2,#c641d2); }
.game-abc .game-icon { background: rgba(224,167,43,.20); }
.game-abc .button { background: transparent; color: #f0c860; border: 1px solid rgba(240,200,96,.4) !important; }

.game-puzzle::before { background: linear-gradient(90deg,#c641d2,#d2418a); }
.game-puzzle .game-icon { background: rgba(255,201,60,.18); }
.game-puzzle .button { background: transparent; color: #7fb0dd; border: 1px solid rgba(127,176,221,.4) !important; }

/* --- In-page activity overlay (same tab, same URL, no navigation) --- */
.activity-panel {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: #14101c;
}
.activity-panel[hidden] { display: none; }
.activity-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #1f1530;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.activity-panel-title {
  color: #f5eefc;
  font-weight: 800;
  font-size: 14px;
}
.activity-panel-close {
  border: none;
  background: #ffc93c;
  color: #3a2600;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.activity-panel-frame {
  flex: 1 1 auto;
  width: 100%;
  border: none;
  background: #fff;
}

/* --- Coloring Pages download list (5 real files) --- */
.freebie-download-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.freebie-download-link {
  font-size: 13px;
  font-weight: 700;
  color: #7a4a63;
  text-decoration: underline;
}
.freebie-download-link:hover { color: #a06a86; }

/* --- Modal upscale / redesign polish: About Liri, Bunny, Big Feelings --- */
.modal-card { max-width: 640px !important; }
.about-modal-art img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.about-modal-points article {
  background: #fdf6e8;
  border-radius: 12px;
  padding: 14px 16px;
}
.bunny-status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.bunny-status-table th, .bunny-status-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee2c8;
  text-align: left;
  font-size: 14px;
}
.bunny-status-table caption {
  text-align: left;
  font-size: 12px;
  color: #8a7a60;
  margin-bottom: 6px;
}


/* ============================================================
   PATCH 4 — Find Snuggie Bunny Touch Hunt card accent (ADD to end
   of css/styles.css). Matches the game-* accent pattern already used
   for the other activity cards.
   ============================================================ */
.game-bunnyhunt::before { background: linear-gradient(90deg,#d26541,#d2a241); }
.game-bunnyhunt .game-icon { background: rgba(122,104,201,.20); }
.game-bunnyhunt .button { background: transparent; color: #c9b6ff; border: 1px solid rgba(201,182,255,.4) !important; }

/* ===== Liri Kids visual refresh 2026-09-28 =====
   Branded display lettering is reserved for short headings; body copy stays plain.
   Activity art reuses existing approved site assets without making duplicates. */
.liri-puffy-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .03em;
  max-width: none;
  color: var(--k-brown);
  font-family: "Fredoka One", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
}
.puffy-line {
  display: block;
  white-space: nowrap;
}
.puffy-line i {
  display: inline-block;
  font-style: normal;
  letter-spacing: -.045em;
  -webkit-text-stroke: 1.5px #594126;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #fff5d8, 0 6px 0 rgba(92,70,50,.18), 0 10px 18px rgba(92,70,50,.14);
}
.puffy-line i:nth-of-type(5n+1) { color: #ff8b86; }
.puffy-line i:nth-of-type(5n+2) { color: #f7bd3f; }
.puffy-line i:nth-of-type(5n+3) { color: #79baf8; }
.puffy-line i:nth-of-type(5n+4) { color: #bd94e8; }
.puffy-line i:nth-of-type(5n) { color: #9eb95d; }
.puffy-line sup { color: #594126; font-size: .28em; margin-left: .12em; vertical-align: top; text-shadow: none; }
.hero-subtitle {
  color: #6f5537;
  text-shadow: 0 2px 0 rgba(255,255,255,.8);
}
.cute-mini-title {
  font-family: "Fredoka One", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  color: #75538d;
  text-transform: none;
  letter-spacing: .015em;
  text-shadow: 0 2px 0 #fff5d8;
}
.activity-puffy-title {
  flex-direction: row;
  align-items: center;
  font-size: clamp(2rem, 4.8vw, 3.2rem) !important;
  line-height: 1.05 !important;
}
#bunny-game .section-heading {
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,253,249,.96), rgba(255,244,214,.78));
  box-shadow: 0 16px 34px rgba(92,70,50,.10);
}
#bunny-game .section-heading > p { max-width: 46ch; }
#bunny-game .kids-game-grid { align-items: stretch; }
#bunny-game .kids-game-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 9px 9px 16px;
  border: 1px solid rgba(92,70,50,.13);
  border-radius: 24px;
  color: var(--k-brown);
  background: linear-gradient(#fffdf9,#fff7df);
  box-shadow: 0 12px 28px rgba(92,70,50,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
#bunny-game .kids-game-card:hover,
#bunny-game .kids-game-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(92,70,50,.17); }
#bunny-game .kids-game-card::before { height: 7px; z-index: 2; }
#bunny-game .game-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #fff4d6;
}
#bunny-game .game-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
#bunny-game .game-art-contain > img { object-fit: contain; background: #fffdf8; }
#bunny-game .game-art .game-icon {
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(92,70,50,.10);
  border-radius: 999px;
  background: rgba(255,253,249,.94);
  color: #594126;
  box-shadow: 0 4px 12px rgba(92,70,50,.18);
  backdrop-filter: blur(5px);
}
#bunny-game .game-art .game-icon-text { width: auto; min-width: 48px; padding: 0 9px; font-size: .82rem; }
#bunny-game .kids-game-card h3 { min-height: 2.5em; margin: 0 10px 8px; color: var(--k-brown); }
#bunny-game .kids-game-card p { min-height: 3.4em; margin: 0 10px 14px; color: #715f50; }
#bunny-game .kids-game-card .button { width: calc(100% - 20px); margin: auto 10px 0; }

@media (max-width: 720px) {
  .liri-puffy-title { align-items: center; text-align: center; }
  #bunny-game .section-heading { align-items: center; padding: 20px 16px; text-align: center; }
  #bunny-game .section-heading > p { margin-inline: auto; }
}

@media (max-width: 520px) {
  #gateway-title { font-size: clamp(2.65rem, 15vw, 4.15rem); }
  .activity-puffy-title { font-size: clamp(1.8rem, 10vw, 2.55rem) !important; }
  #bunny-game .kids-game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  #bunny-game .kids-game-card { min-height: 318px; padding: 7px 7px 13px; border-radius: 20px; }
  #bunny-game .game-art { aspect-ratio: 1.18 / 1; border-radius: 15px; }
  #bunny-game .kids-game-card h3 { min-height: 2.8em; margin-inline: 6px; font-size: 1rem; }
  #bunny-game .kids-game-card p { min-height: 4.7em; margin-inline: 6px; font-size: .82rem; }
  #bunny-game .kids-game-card .button { width: calc(100% - 12px); margin-inline: 6px; padding: 10px 8px; font-size: .8rem; }
}


/* ===== Batch 2026-09-25 ===== */
.about-modal-layout{align-items:start;}
.about-modal-art{align-self:start;display:flex;flex-direction:column;align-items:center;gap:8px;}
.about-modal-art img{width:100%;max-width:320px;height:auto;border-radius:22px;}
.about-modal-caption{margin:0;font-size:.95rem;opacity:.8;text-align:center;}
@media (max-width:700px){.about-modal-layout{grid-template-columns:1fr!important;display:grid;}.about-modal-art img{max-width:260px;}}
.feelings-series{list-style:none;padding:0;margin:8px 0 14px;display:grid;gap:6px;}
.feelings-series li{display:block;line-height:1.45;}
.feel-dot{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--dot);margin-right:8px;vertical-align:-1px;}
.bunny-fact{background:#fff4bf;border-radius:14px;padding:10px 14px;}
.coloring-thumb-link{display:flex;align-items:center;gap:8px;}
.coloring-thumb-link img{width:56px;height:37px;object-fit:cover;border-radius:6px;border:1px solid rgba(0,0,0,.12);background:#fff;}
.contact-card{margin-top:18px;padding:18px 20px;border-radius:20px;background:#fffaf0;border:1px solid rgba(0,0,0,.08);}
.contact-card h3{margin:0 0 4px;}
.contact-links{display:flex;flex-wrap:wrap;gap:10px;}
.form-consent{font-size:.85rem;line-height:1.45;opacity:.85;margin:4px 0 0;}
.moment-note{margin:6px 0;border-radius:12px;background:rgba(255,255,255,.6);padding:6px 10px;}
.moment-note summary{cursor:pointer;font-weight:700;}
.moment-note p{margin:6px 0 2px;}
.activity-panel-legal{flex:0 0 auto;text-align:center;font-size:.78rem;padding:6px 10px;background:#1c1a33;color:#c4bce0;}
.activity-panel-legal a{color:inherit;text-decoration:underline;}


/* Shop section: force high-contrast button text, independent of reused
   .game-* card accent colors (those set !important text colors meant
   for transparent secondary buttons elsewhere on the page). */
#liri-shop .button.primary,
#liri-shop .button.primary:link,
#liri-shop .button.primary:visited,
#liri-shop .button.primary:hover,
#liri-shop .button.primary:focus {
  background: linear-gradient(135deg, var(--k-green), var(--k-peach)) !important;
  color: #2a2116 !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  text-shadow: none !important;
}


/* Teacher/classroom freebie cards: the plain .button (no .primary/.secondary
   modifier) inherits transparent background + white text from the base
   .button rule, which is invisible against these light card backgrounds.
   Give it a solid, readable pill. */
.teacher-freebie-card .button {
  background: linear-gradient(135deg, var(--k-green), var(--k-blue)) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 6px 16px rgba(92, 70, 50, 0.18) !important;
}



/* Shared Kids + Parents feature-card redesign — 2026-09-28 */
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.feature-grid .feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(92,70,50,.12);
  isolation: isolate;
}
body.kids-mode .feature-grid .feature-card { border-color: rgba(255,217,61,.55); }
body.parent-mode .feature-grid .feature-card { border-color: rgba(159,216,168,.42); }
.feature-grid .feature-card::before {
  z-index: 3;
  height: 7px;
  background: var(--k-yellow);
}
.feature-grid .feature-card:nth-child(2)::before { background: var(--k-green); }
.feature-grid .feature-card:nth-child(3)::before { background: var(--k-coral); }
.feature-grid .character-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 1.22 / 1;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff8e8;
}
.feature-grid .card-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform .45s ease;
}
.feature-grid .feature-card:hover .card-portrait { transform: scale(1.025); }
.feature-grid .description-label {
  align-self: flex-start;
  position: relative;
  z-index: 2;
  margin: -17px 24px 0;
  padding: 8px 12px;
  border: 3px solid #fff;
  background: var(--k-yellow);
  box-shadow: 0 7px 16px rgba(92,70,50,.13);
}
.feature-grid .feature-card:nth-child(2) .description-label { background: var(--k-green); }
.feature-grid .feature-card:nth-child(3) .description-label { background: var(--k-coral); }
.feature-grid .feature-card h2 {
  margin: 16px 24px 9px;
  font-size: 1.45rem;
  line-height: 1.12;
}
.feature-grid .feature-card > p {
  flex: 1;
  margin: 0 24px 26px;
  line-height: 1.63;
}
.feature-grid .feature-card:focus-visible {
  outline: 4px solid var(--k-blue);
  outline-offset: 4px;
}
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature-card {
    display: grid;
    grid-template-columns: minmax(190px,.82fr) 1.18fr;
    grid-template-rows: auto auto 1fr;
  }
  .feature-grid .character-visual {
    grid-column: 1;
    grid-row: 1 / 4;
    height: 100%;
    min-height: 290px;
    aspect-ratio: auto;
  }
  .feature-grid .description-label { grid-column: 2; grid-row: 1; margin: 35px 24px 0; }
  .feature-grid .feature-card h2 { grid-column: 2; grid-row: 2; }
  .feature-grid .feature-card > p { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) {
  .feature-grid .feature-card { display: flex; }
  .feature-grid .character-visual { min-height: 0; aspect-ratio: 1.15 / 1; }
  .feature-grid .description-label { margin: -17px 22px 0; }
  .feature-grid .feature-card h2 { margin-left: 22px; margin-right: 22px; }
  .feature-grid .feature-card > p { margin-left: 22px; margin-right: 22px; margin-bottom: 24px; }
}

/* Book 01 live modal polish - confirmed 2026-09-29 */
.book-preview-title.liri-book-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  filter: drop-shadow(0 5px 0 rgba(91, 58, 35, 0.14));
}
.liri-book-number-word,
.liri-book-number-digits {
  display: inline-flex;
  gap: 0.035em;
}
.liri-book-number span span {
  display: inline-block;
  color: var(--liri-letter, #f36f65);
  -webkit-text-stroke: 1px rgba(91, 58, 35, 0.5);
  text-shadow: 0 2px 0 #fff8ea, 0 4px 0 rgba(181, 123, 53, 0.24);
  transform: rotate(var(--liri-tilt, 0deg));
}
.liri-book-number-word span:nth-child(1) { --liri-letter: #f36f65; --liri-tilt: -3deg; }
.liri-book-number-word span:nth-child(2) { --liri-letter: #efb93f; --liri-tilt: 2deg; }
.liri-book-number-word span:nth-child(3) { --liri-letter: #77b9d8; --liri-tilt: -2deg; }
.liri-book-number-word span:nth-child(4) { --liri-letter: #9d83c8; --liri-tilt: 3deg; }
.liri-book-number-digits span:nth-child(1) { --liri-letter: #7fbd72; --liri-tilt: -2deg; }
.liri-book-number-digits span:nth-child(2) { --liri-letter: #ef8eb1; --liri-tilt: 2deg; }
.book-preview-stage {
  overflow: hidden;
  border-radius: 22px;
  background: #fff8e9;
  box-shadow: 0 22px 50px rgba(92, 70, 50, 0.22);
}
.book-preview-face {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff8e9;
}
.book-preview-face img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 20px;
  object-fit: contain;
  object-position: center;
}
.book-preview-face figcaption { display: none; }
.book-details-button,
.book-details-close {
  border: 2px solid rgba(101, 68, 42, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffdd56, #ffb95d);
  color: #513924;
  box-shadow: 0 8px 18px rgba(112, 71, 37, 0.16);
  font: 900 1rem/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.book-details-button {
  display: none;
  margin: 14px auto 0;
  padding: 13px 22px;
}
.book-preview:has(.book-preview-stage.is-flipped) .book-details-button { display: inline-flex; }
.book-details-button:hover,
.book-details-button:focus-visible,
.book-details-close:hover,
.book-details-close:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(119, 185, 216, 0.48);
  outline-offset: 3px;
}
.book-details-panel[hidden] { display: none !important; }
.book-details-panel {
  max-width: 660px;
  max-height: min(66vh, 620px);
  margin: 4px auto 0;
  padding: clamp(20px, 5vw, 36px);
  overflow-y: auto;
  text-align: left;
  color: #4e3829;
  border: 2px solid rgba(239, 185, 63, 0.55);
  border-radius: 24px;
  background: linear-gradient(155deg, #fffaf0, #fff0d7);
  box-shadow: 0 22px 50px rgba(92, 70, 50, 0.2);
}
.book-preview:has(.book-details-panel:not([hidden])) .book-preview-intro,
.book-preview:has(.book-details-panel:not([hidden])) .book-preview-stage,
.book-preview:has(.book-details-panel:not([hidden])) .book-details-button { display: none; }
.book-details-kicker {
  margin: 0 0 6px;
  color: #c15e4e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.book-details-panel h3 {
  margin: 0 0 14px;
  color: #c65f48;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
}
.book-details-panel p,
.book-details-panel li { font-size: clamp(1rem, 2.8vw, 1.14rem); line-height: 1.58; }
.book-details-panel ul { margin: 14px 0 18px; padding-left: 1.35em; }
.book-details-panel li { margin: 7px 0; }
.book-details-panel li::marker { color: #e0785e; }
.book-details-series { padding-top: 12px; border-top: 1px solid rgba(101, 68, 42, 0.18); }
.book-details-credit { color: #7b604d; font-size: 0.92rem !important; }
.book-details-close { display: inline-flex; margin-top: 6px; padding: 12px 20px; }
@media (max-width: 600px) {
  .book-preview-title.liri-book-number { font-size: clamp(2rem, 12vw, 3rem); }
  .book-preview-stage { width: min(100%, calc((100vh - 300px) * 829 / 849)); }
  .book-details-panel { max-height: min(62vh, 560px); padding: 20px 18px; border-radius: 20px; }
}

/* Book 01 card text and all-format cover fit - confirmed 2026-09-29 */
.book-card--cover-preview .book-cover-label {
  display: block;
  align-self: center;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  color: #9b5b45;
  background: linear-gradient(90deg, #ef6f63 5%, #e6ad38 28%, #69aecd 50%, #8b72bd 72%, #70ad68 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 0 rgba(255, 248, 234, 0.95)) drop-shadow(0 3px 0 rgba(91, 58, 35, 0.14));
}
.book-card--cover-preview .book-flip-hint {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 9px 16px;
  text-align: center;
  color: #5b412d;
  border: 1px solid rgba(225, 166, 54, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5c9, #ffe39a);
  box-shadow: 0 5px 12px rgba(111, 73, 37, 0.12);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(0.82rem, 2.8vw, 0.98rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.book-details-kicker {
  width: 100%;
  text-align: center;
}
.book-preview-stage.is-flipped {
  width: min(760px, 100%, calc((100vh - 300px) * 941 / 849));
  aspect-ratio: 941 / 849;
}
.book-preview-stage.is-flipped .book-preview-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 600px) {
  .modal-card:has(.book-preview) {
    width: min(96vw, 620px);
    padding: 18px 14px;
    overflow-x: hidden;
  }
  .book-preview,
  .book-preview-stage,
  .book-preview-inner,
  .book-preview-face {
    max-width: 100%;
  }
  .book-preview-stage.is-flipped {
    width: min(100%, calc((100vh - 300px) * 941 / 849));
    aspect-ratio: 941 / 849;
  }
  .book-preview-stage.is-flipped .book-preview-back img {
    max-width: 100%;
    object-fit: contain;
  }
  .book-details-button {
    max-width: calc(100% - 16px);
    white-space: normal;
    text-align: center;
  }
}

