:root {
  --cream: #fff8ef;
  --cream-2: #fff3e4;
  --ink: #2f3a4a;
  --muted: #6b7288;
  --sidebar: #fffdf8;
  --shadow: 0 12px 30px rgba(70, 90, 120, 0.12);
  --radius: 28px;
  --sidebar-w: 236px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar);
  padding: 22px 16px 28px;
  border-right: 1px solid rgba(255, 210, 160, 0.35);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  align-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 6px;
}

.brand img {
  width: 118px;
  height: auto;
}

.nav { display: flex; flex-direction: column; gap: 6px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  color: #4b5568;
  transition: 0.2s ease;
}

.nav a img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav a:hover { background: #fff4dc; transform: translateX(3px); }

.nav a.active {
  background: #ffe9b8;
  color: var(--accent, #c2410c);
  box-shadow: inset 0 0 0 1px #ffd27a;
}

.cms-social {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  padding: 4px 6px;
}
.sidebar > .cms-social {
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 0;
  padding-bottom: 14px;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 210, 160, 0.45);
}
.cms-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.cms-social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.cms-social-btn:hover { transform: translateY(-2px); }
.cms-social-empty {
  opacity: 0.45;
  outline: 2px dashed #cbd5e1;
}
.cms-social-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 22px;
  cursor: pointer;
}

.main {
  min-width: 0;
  padding: 18px 22px 28px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #efe3d2;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: min(320px, 48vw);
  box-shadow: 0 6px 16px rgba(80, 90, 110, 0.06);
}

.search input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.explorer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #374151;
  white-space: nowrap;
}

.site-mute {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(80, 90, 110, 0.08);
  padding: 8px 14px;
  font-weight: 800;
  font-family: inherit;
  font-size: 14px;
  color: #1d4ed8;
  cursor: pointer;
  white-space: nowrap;
}

.site-mute[aria-pressed="true"] {
  background: #fee2e2;
  color: #b91c1c;
}

.site-mute:disabled {
  opacity: 0.65;
  cursor: default;
}

.home-notice {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff7ed;
  border: 2px solid #fdba74;
  color: #9a3412;
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
}

.learn-hero.home-stage > .home-notice {
  grid-column: 1 / -1;
  position: relative;
  z-index: 7;
  margin: 84px 12px 8px;
  width: auto;
}

.learn-hero.home-stage:has(> .home-notice) > .home-friends {
  padding-top: 8px;
}

@media (max-width: 700px) {
  .learn-hero.home-stage > .home-notice {
    margin-top: 132px;
  }
}

.home-notice a {
  color: #c2410c;
  font-weight: 800;
  text-decoration: underline;
}

.hero {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  min-height: 620px;
  background: #9ad4ff url("../assets/backgrounds/background.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero.learn-hero,
.learn-hero,
.learn-hero.cms-section-flow {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  grid-template-columns: none !important;
  grid-auto-rows: auto !important;
  min-height: min(68vh, 640px);
  padding: 28px 12px 36px;
  overflow: hidden;
  background: #ece6de url("../assets/backgrounds/background.jpg") center / cover no-repeat;
}

.learn-hero.cms-section-flow > * {
  height: auto !important;
  min-height: 0 !important;
  width: auto;
  display: block;
}

.learn-hero.cms-section-flow > .learn-wheel {
  width: min(540px, 94vw) !important;
  height: min(540px, 94vw) !important;
  display: block !important;
}

.learn-hero .hero-sky,
.learn-hero .welcome,
.learn-hero .doors,
.learn-hero .boy,
.learn-hero .mascots,
.learn-hero .sky-friends,
.learn-hero > img:not(.learn-harf-icon) {
  display: none !important;
}

.learn-title {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 600;
  color: #6b7c93;
  text-align: center;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  width: auto;
  height: auto;
}

.learn-wheel {
  position: relative;
  display: block !important;
  width: min(540px, 94vw);
  height: min(540px, 94vw);
  z-index: 2;
}

.learn-bubbles {
  position: absolute;
  inset: 8%;
  pointer-events: none;
}

.learn-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.learn-bubbles span:nth-child(1) { width: 18px; height: 18px; left: 18%; top: 22%; }
.learn-bubbles span:nth-child(2) { width: 12px; height: 12px; right: 22%; top: 18%; }
.learn-bubbles span:nth-child(3) { width: 22px; height: 22px; right: 16%; bottom: 28%; }
.learn-bubbles span:nth-child(4) { width: 10px; height: 10px; left: 24%; bottom: 24%; }
.learn-bubbles span:nth-child(5) { width: 14px; height: 14px; left: 46%; top: 10%; }

.learn-spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  min-width: 148px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateY(var(--r, -196px)) rotate(calc(-1 * var(--a, 0deg)));
  z-index: 3;
  font-weight: 800;
  color: #5b6573;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  box-shadow: 0 12px 28px rgba(120, 96, 72, 0.14);
  text-decoration: none;
}

.learn-spoke-video { --a: 270deg; background: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.learn-spoke-worksheet { --a: 0deg; background: #fef3c7; color: #b45309; border-color: #fde68a; }
.learn-spoke-colour { --a: 90deg; background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.learn-spoke-fun { --a: 140deg; background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.learn-spoke-game { --a: 218deg; background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }

.learn-spoke-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  flex: 0 0 36px;
  box-shadow: 0 4px 10px rgba(120, 96, 72, 0.1);
}

.learn-spoke-icon svg {
  width: 22px;
  height: 22px;
}

.learn-spoke:hover,
.learn-spoke:focus-visible {
  transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateY(var(--r, -196px)) rotate(calc(-1 * var(--a, 0deg))) scale(1.05);
}

.learn-spoke-label {
  font-size: 14px;
  white-space: nowrap;
  color: inherit;
  text-shadow: none;
}

.learn-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: min(228px, 46%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 30%, #ffffff 0%, #fff7ee 58%, rgba(255, 247, 238, 0.72) 100%);
  box-shadow: 0 18px 40px rgba(120, 96, 72, 0.16), inset 0 0 0 10px rgba(255, 255, 255, 0.55);
  z-index: 2;
  overflow: hidden;
}

.learn-harf-icon,
.learn-core img {
  width: 72% !important;
  height: 72% !important;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain !important;
  display: block;
}

.learn-letter {
  margin: 0;
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  font-size: clamp(72px, 14vw, 118px);
  line-height: 1;
  color: #314155;
}

.learn-change,
.learn-hero .btn.learn-change {
  position: relative;
  left: auto;
  top: auto;
  z-index: 4;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
  margin-top: 10px;
  flex: 0 0 auto;
  align-self: center;
  width: max-content !important;
  height: auto !important;
  min-height: 0;
  max-width: calc(100% - 24px);
}

.learn-change:hover { transform: translateY(-2px); }

.learn-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  direction: ltr;
  background: rgba(47, 58, 74, 0.38);
  display: grid;
  place-items: center;
  padding: 18px;
}

.learn-picker[hidden] { display: none !important; }

.learn-picker-card {
  width: min(1080px, 100%);
  max-height: min(92vh, 960px);
  direction: ltr;
  overflow: auto;
  background: linear-gradient(180deg, #fffdf9 0%, #fff3e6 100%);
  border-radius: 32px;
  padding: 22px 22px 18px;
  box-shadow: 0 22px 50px rgba(120, 86, 62, 0.18);
}

.learn-picker-card h3 {
  font-family: "Fredoka", sans-serif;
  text-align: center;
  margin-bottom: 16px;
  color: #c46b7a;
}

.learn-picker-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.learn-picker-grid button {
  position: relative;
  --scoop: #e48a9a;
  --shade: #c56d80;
  --wash: #fdecef;
  border: 0;
  background: radial-gradient(circle at 50% 36%, #fffefb 0%, var(--wash) 78%);
  border-radius: 26px;
  min-height: 128px;
  padding: 8px 6px;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.95),
    0 6px 0 #f0e0d2,
    0 12px 18px rgba(140, 100, 72, 0.1);
  transition: transform 0.15s ease;
}

.learn-picker-grid button:hover {
  transform: translateY(-4px) scale(1.04);
}

.learn-picker-grid button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: inset 0 0 0 3px #fff, 0 2px 0 #f0e0d2;
}

.learn-picker-glyph {
  display: block;
  font-family: "Baloo Bhaijaan 2", "Noto Naskh Arabic", Tahoma, sans-serif;
  font-weight: 800;
  font-size: 82px;
  line-height: 0.95;
  text-align: center;
  color: var(--scoop);
  -webkit-text-stroke: 5px #fffaf6;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 0 var(--shade)) drop-shadow(0 7px 0 rgba(120, 86, 62, 0.12));
}

.learn-picker-grid button.scoop-0 { --scoop: #e48a9a; --shade: #c56d80; --wash: #fdecef; }
.learn-picker-grid button.scoop-1 { --scoop: #e8a07a; --shade: #c9845e; --wash: #fdeee6; }
.learn-picker-grid button.scoop-2 { --scoop: #e2b15e; --shade: #c49442; --wash: #fdf4e2; }
.learn-picker-grid button.scoop-3 { --scoop: #c9b45a; --shade: #a89440; --wash: #fbf6e2; }
.learn-picker-grid button.scoop-4 { --scoop: #7eae78; --shade: #5f9160; --wash: #eaf6e8; }
.learn-picker-grid button.scoop-5 { --scoop: #6eb8aa; --shade: #4f9a8c; --wash: #e7f6f2; }
.learn-picker-grid button.scoop-6 { --scoop: #7eabd4; --shade: #5d8cb8; --wash: #e8f3fb; }
.learn-picker-grid button.scoop-7 { --scoop: #b09ad0; --shade: #9078b4; --wash: #f3eef8; }
.learn-picker-grid button.scoop-8 { --scoop: #d489a4; --shade: #b46a86; --wash: #fbeaf1; }
.learn-picker-grid button.scoop-9 { --scoop: #d4a06a; --shade: #b4824c; --wash: #fbf1e4; }

.learn-picker-grid button[data-slug="seen"] .learn-picker-glyph,
.learn-picker-grid button[data-slug="sheen"] .learn-picker-glyph,
.learn-picker-grid button[data-slug="suad"] .learn-picker-glyph,
.learn-picker-grid button[data-slug="zuad"] .learn-picker-glyph {
  font-size: 68px;
}

.learn-picker-grid button[data-slug="hamza"] .learn-picker-glyph {
  font-size: 96px;
}

.learn-hero .hero-sky,
.learn-hero .welcome,
.learn-hero .doors,
.learn-hero .boy,
.learn-hero .mascots,
.learn-hero .sky-friends,
.learn-hero > img:not(.learn-harf-icon) {
  display: none !important;
}

.learn-picker-grid button.is-locked .learn-picker-glyph {
  opacity: 0.38;
}

.learn-picker-lock {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 18px;
  line-height: 1;
  filter: none;
}

.learn-picker-grid button.is-current {
  box-shadow:
    inset 0 0 0 3px #fff,
    0 0 0 4px var(--scoop),
    0 6px 0 #f0e0d2;
}

.learn-picker-close {
  display: block;
  margin: 16px auto 0;
}

@media (max-width: 640px) {
  .learn-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .learn-picker-grid button { min-height: 100px; }
  .learn-picker-glyph {
    font-size: 58px;
    -webkit-text-stroke: 3px #fffaf6;
  }
  .learn-picker-grid button[data-slug="seen"] .learn-picker-glyph,
  .learn-picker-grid button[data-slug="sheen"] .learn-picker-glyph,
  .learn-picker-grid button[data-slug="suad"] .learn-picker-glyph,
  .learn-picker-grid button[data-slug="zuad"] .learn-picker-glyph {
    font-size: 46px;
  }
}

.colour-studio {
  display: grid;
  gap: 14px;
}

.colour-hub [data-colour-studio],
.colour-hub .colour-browse-wrap,
.colour-hub > .cms-colour.cms-harf-catalog {
  display: none !important;
}

.colour-canvas-door {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  width: 100%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font: inherit;
  min-height: 168px;
  margin: 8px 0 22px;
  padding: 28px 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 12px 0 #1d4ed8, var(--shadow);
}

.colour-canvas-door strong {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.02em;
}

.colour-canvas-door span {
  margin-top: 8px;
  font-weight: 800;
  font-size: 16px;
  opacity: 0.95;
}

.cms-harf-colour-section {
  margin: 0 0 22px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-harf-colour-heading {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  background: #fff7d6;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.cms-harf-colour-section .cms-colour {
  margin: 0;
}

.cms-harf-fun-section {
  margin: 0 0 22px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-fun-general,
.cms-fun-animals {
  margin: 0 0 22px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-fun-general-heading,
.cms-fun-animals-heading {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  background: #fff7d6;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.cms-fun-general .fruit-hangman {
  box-shadow: none;
  background: transparent;
  padding: 4px 4px 0;
}

.cms-fun-general-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.cms-fun-general-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 18px 12px;
  border: 3px solid transparent;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: "Fredoka", "Nunito", sans-serif;
  color: var(--ink, #2f3a4a);
}

.cms-fun-general-card:hover,
.cms-fun-general-card:focus-visible {
  border-color: var(--heading, #2563eb);
}

.cms-fun-general-emoji {
  font-size: 48px;
  line-height: 1;
}

.cms-fun-general-card strong {
  font-size: 22px;
  color: var(--heading, #1d4ed8);
}

.cms-fun-general-card small {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, #c2410c);
}

.cat-fun-game-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  place-items: center;
  padding: 18px;
}

.cat-fun-game-lightbox[hidden] { display: none; }

.cat-fun-game-lightbox-box {
  width: min(640px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--cream, #fff8ef);
  border-radius: 28px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.win-celebrate {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.win-sparkle {
  position: absolute;
  font-size: 26px;
  animation: win-sparkle 1.15s ease-out forwards;
}

.win-ribbon {
  position: absolute;
  top: -24px;
  width: 12px;
  height: 26px;
  border-radius: 3px;
  animation: win-ribbon-fall 2.1s linear forwards;
}

@keyframes win-sparkle {
  0% { opacity: 0; transform: scale(0.2); }
  25% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(0.7) translateY(-28px); }
}

@keyframes win-ribbon-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(520px) rotate(220deg); opacity: 0.85; }
}

.cat-fun-game-lightbox-title {
  color: var(--heading, #1d4ed8);
  font-family: "Fredoka", sans-serif;
  margin: 0 48px 12px 0;
}

.cat-fun-game-lightbox-frame .game-wrap {
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.cat-fun-game-lightbox-frame .puzzle-grid {
  max-width: 320px;
}

.cat-fun-game-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.fruit-hangman-title {
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Segoe UI", sans-serif;
  font-size: 28px;
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 8px;
}

.fruit-hangman-hint {
  font-size: 32px;
  margin-inline-start: 8px;
}

.fruit-hangman-canvas {
  display: block;
  margin: 0 auto 8px;
  border: 3px solid var(--heading, #2563eb);
  border-radius: 12px;
  background: #fff;
}

.fruit-hangman-word {
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Segoe UI", sans-serif;
  font-size: 32px;
  line-height: 1.8;
  letter-spacing: 4px;
  direction: rtl;
  min-height: 52px;
}

.fruit-hangman-meta {
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Segoe UI", sans-serif;
  font-size: 18px;
  direction: rtl;
  margin: 4px 0;
}

.fruit-hangman-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  direction: rtl;
  margin: 12px 0 8px;
}

.fruit-hangman-key {
  min-width: 42px;
  padding: 8px 10px;
  background: var(--heading, #2563eb);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Segoe UI", sans-serif;
}

.fruit-hangman-key:disabled {
  cursor: default;
}

.fruit-hangman-key.is-hit {
  background: var(--button, #22c55e);
}

.fruit-hangman-key.is-miss {
  background: var(--accent, #c2410c);
}

.fruit-hangman-message {
  min-height: 1.4em;
  color: var(--accent, #c2410c);
  font-weight: 800;
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Segoe UI", sans-serif;
  direction: rtl;
  font-size: 20px;
}

.fruit-hangman-restart {
  margin-top: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: 0;
  background: var(--accent, #c2410c);
  color: #fff;
  border-radius: 8px;
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Segoe UI", sans-serif;
}

.cms-harf-fun-heading {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  background: #fff7d6;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.cms-harf-fun-section .cms-fun {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.cms-harf-fun-section.is-current-harf {
  box-shadow: 0 0 0 3px #93c5fd, var(--shadow);
}

.cms-add-fun {
  flex: 1 1 180px;
  max-width: 240px;
  min-height: 180px;
  border: 3px dashed #fbbf24;
  border-radius: 26px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 800;
  font-size: 18px;
  font-family: "Fredoka", "Nunito", sans-serif;
  cursor: pointer;
}

.cms-fun-gif {
  flex: 1 1 180px;
  max-width: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(253, 186, 116, 0.45);
  padding: 10px 10px 14px;
}

.cms-fun-gif-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff8ef;
}

.cms-fun-gif-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-fun-gif-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
}

.cms-fun-gif h3 {
  margin: 10px 4px 0;
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  color: #c2410c;
}

.cat-gif-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  place-items: center;
  padding: 18px;
}

.cat-gif-lightbox[hidden] { display: none; }

.cat-gif-lightbox-box {
  width: min(720px, 96vw);
  background: #0f172a;
  border-radius: 28px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.cat-gif-lightbox-title {
  color: #fff;
  font-family: "Fredoka", sans-serif;
  margin: 0 48px 12px 0;
}

.cat-gif-lightbox-frame {
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.cat-gif-lightbox-frame .cms-click-gif,
.cat-gif-lightbox-frame .cms-click-gif-frame {
  width: 100%;
}

.cat-gif-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.cat-gif-lightbox-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.fun-photo-viewer {
  display: grid;
  gap: 12px;
}

.colour-photo-viewer {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.colour-photo-viewer .harf-preview-stage,
.colour-photo-viewer .colour-studio,
.colour-photo-viewer .colour-stage {
  display: block;
  width: 100%;
  max-width: min(100%, 760px);
  min-width: 0;
  margin-inline: auto;
}

.colour-photo-viewer .colour-stage {
  overflow: hidden;
}

.colour-photo-viewer .colour-page-art {
  max-width: 100%;
}

.fun-viewer .cms-harf-fun-section,
.fun-viewer > .cms-fun.cms-harf-catalog {
  display: none !important;
}

body.fun-harf-focus .cms-fun-general,
body.fun-harf-focus .cms-fun-animals,
body.fun-harf-focus .cms-harf-fun-section:not(.is-current-harf) {
  display: none !important;
}

.fun-read-stage {
  min-height: 280px;
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.harf-preview-thumbs .harf-preview-thumb span {
  display: block;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
}

.colour-viewer .colour-canvas-door,
.colour-viewer .cms-harf-colour-section,
.colour-viewer > [data-colour-studio],
.colour-viewer .colour-browse-wrap,
.colour-viewer > .cms-colour.cms-harf-catalog {
  display: none !important;
}

.colour-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.colour-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.colour-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(47, 58, 74, 0.12);
  cursor: pointer;
}

.colour-swatch.is-current { box-shadow: 0 0 0 3px #2563eb; }

.colour-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.colour-tools button.is-current {
  background: #2563eb;
  color: #fff;
}

.colour-stage {
  position: relative;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.colour-stage canvas {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  touch-action: none;
  cursor: crosshair;
}

.colour-guide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: "Noto Naskh Arabic", serif;
  font-size: min(42vh, 280px);
  color: rgba(47, 58, 74, 0.14);
  line-height: 1;
  text-align: center;
  width: 100%;
}

.learn-letter-name {
  margin: 6px 0 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
}

.learn-core {
  flex-direction: column;
}

.harf-hub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 8px 0 18px;
}

.harf-hub-bar h1,
.harf-hub-title {
  font-family: "Fredoka", sans-serif;
  font-size: 32px;
  color: var(--heading, #1d4ed8);
  margin: 0;
}

.harf-hub-current {
  font-family: "Noto Naskh Arabic", "Fredoka", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #334155;
  margin: 0;
}

.harf-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.harf-preview-tabs .btn {
  border: 1px solid transparent;
}

.harf-preview-tabs .harf-preview-tab-worksheets {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.harf-preview-tabs .harf-preview-tab-videos {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fecdd3;
}

.harf-preview-tabs .harf-preview-tab-games {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

.harf-preview-tabs .harf-preview-tab-colour {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.harf-preview-tabs .harf-preview-tab-fun {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fed7aa;
}

.harf-preview-tabs .btn.is-current {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
  filter: brightness(0.98);
}

.harf-preview-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  align-items: start;
}

.harf-preview-layout.is-media-viewer {
  grid-template-columns: 1fr;
}

.harf-preview-layout.is-media-viewer .harf-preview-library {
  display: none;
}

.harf-preview-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.harf-preview-thumb {
  width: 92px;
  height: 118px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #fff8ef;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(47, 58, 74, 0.12);
}

.harf-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.harf-preview-thumb.is-current {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #93c5fd;
}

.harf-preview-layout.is-video-picker .harf-preview-head,
.harf-preview-layout.is-video-picker .harf-preview-stage {
  display: none;
}

.harf-preview-layout.is-video-picker .harf-preview-main {
  min-height: 0;
  padding: 18px;
}

.harf-preview-layout.is-video-picker .harf-preview-thumbs,
.harf-preview-thumbs.is-video-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 0;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}

.harf-preview-layout.is-video-picker .harf-preview-thumb,
.harf-preview-thumbs.is-video-thumbs .harf-preview-thumb {
  position: relative;
  flex: 1 1 280px;
  width: auto;
  min-width: min(100%, 240px);
  max-width: 420px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(47, 58, 74, 0.16);
}

.harf-preview-thumbs.is-video-thumbs .harf-preview-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.harf-preview-thumbs.is-video-thumbs .harf-preview-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  line-height: 1.25;
}

.harf-preview-stage.is-video {
  background: #0f172a;
  min-height: 0;
  padding: 12px;
}

.harf-preview-video,
.harf-preview-video-poster {
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 640px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.harf-preview-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.harf-preview-video-poster::after {
  content: "▶";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  font-size: 24px;
}

.harf-preview-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
}

.harf-preview-library {
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
  max-height: min(72vh, 720px);
  overflow: auto;
}

.harf-preview-lib-label {
  margin: 0 0 10px;
  font-weight: 800;
  color: #c2410c;
}

.harf-preview-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: #fff8ef;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.harf-preview-item small {
  color: #64748b;
  font-size: 11px;
}

.harf-preview-item.is-current {
  background: #dbeafe;
  box-shadow: 0 0 0 2px #2563eb;
}

.harf-preview-main {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.harf-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.harf-preview-head h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
}

.harf-preview-stage {
  background: #fff8ef;
  border-radius: 20px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.harf-preview-stage > img,
.harf-preview-stage > iframe {
  width: 100%;
  max-height: min(70vh, 640px);
  border: 0;
  background: #fff;
}

.harf-worksheet-draw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.harf-worksheet-tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff8ef;
  padding: 8px 0;
}

.harf-worksheet-swatches {
  display: flex;
  gap: 6px;
  align-items: center;
}

.harf-worksheet-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(47, 58, 74, 0.14);
  padding: 0;
  cursor: pointer;
}

.harf-worksheet-swatch.is-current {
  box-shadow: 0 0 0 3px #2563eb;
}

.harf-worksheet-board {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.harf-worksheet-board img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(70vh, 640px);
  object-fit: contain;
  background: #fff;
}

.harf-worksheet-board canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.harf-preview-game {
  height: min(70vh, 640px);
}

.harf-preview-fact {
  padding: 28px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .harf-preview-layout {
    grid-template-columns: 1fr;
  }
  .harf-preview-library {
    max-height: 240px;
  }
  .harf-preview-layout.is-video-picker .harf-preview-thumb,
  .harf-preview-thumbs.is-video-thumbs .harf-preview-thumb {
    max-width: none;
    flex-basis: 100%;
  }
}

.cms-fun-card, .cms-colour-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.cms-colour-card img, .cms-fun-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.cms-video-card .body, .cms-fun-card, .cms-colour-card h3 {
  padding: 12px 14px 16px;
}

.cms-fun-type {
  display: inline-block;
  margin: 12px 14px 0;
  font-size: 12px;
  font-weight: 800;
  color: #c2410c;
}

.cms-colour {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.cms-colour.is-open { display: flex; }

.cms-colour-card {
  width: 92px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #fff8ef;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(47, 58, 74, 0.12);
}

.cms-colour-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}

.cms-colour-card h3 {
  display: none;
}

.cms-colour-card.is-current {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #93c5fd;
}

.cms-add-colour {
  width: 92px;
  min-height: 118px;
  border: 3px dashed #fbbf24;
  border-radius: 14px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 800;
  font-size: 28px;
  font-family: "Fredoka", "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: none;
}

.colour-browse-wrap { display: none; }

.colour-page-art {
  display: none !important;
}

.colour-stage canvas { position: relative; z-index: 1; }

.colour-stage canvas.colour-page-border,
.colour-photo-viewer .colour-stage canvas.colour-page-border,
.cat-sheet-overlay .colour-stage canvas.colour-page-border,
[data-harf-preview-stage] .colour-stage canvas.colour-page-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  pointer-events: none;
  z-index: 2;
  cursor: default;
}

.colour-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
}

@media print {
  .sidebar, .topbar, .menu-btn, .colour-toolbar, .harf-hub-bar, .cms-colour, .colour-browse-wrap { display: none !important; }
  .app { display: block; }
  .colour-stage { box-shadow: none; }
}

.hero-sky {
  position: absolute;
  inset: 0 0 42% 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 40px;
  opacity: 0.88;
  filter: blur(0.2px);
  animation: drift 28s linear infinite;
}

.cloud:before, .cloud:after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.cloud.c1 { width: 120px; height: 36px; top: 46px; left: 18%; }
.cloud.c1:before { width: 46px; height: 46px; top: -22px; left: 18px; }
.cloud.c1:after { width: 62px; height: 62px; top: -30px; left: 48px; }
.cloud.c2 { width: 90px; height: 28px; top: 86px; right: 28%; animation-duration: 36s; }
.cloud.c2:before { width: 34px; height: 34px; top: -16px; left: 14px; }
.cloud.c2:after { width: 48px; height: 48px; top: -24px; left: 36px; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

.welcome {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  width: min(720px, 90%);
}

.welcome h1 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  color: #2f5d8a;
  letter-spacing: -0.02em;
}

.welcome h1 span.brand-word {
  display: inline-block;
  margin-top: 2px;
}

.welcome .c { color: #ef4444; }
.welcome .h { color: #22c55e; }
.welcome .a { color: #3b82f6; }
.welcome .t { color: #f59e0b; }

.tagline {
  margin-top: 6px;
  font-weight: 800;
  color: #4b5563;
  letter-spacing: 0.08em;
}

.sky-friends {
  position: absolute;
  top: 18px;
  right: 4%;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  z-index: 4;
}

.sky-friends .moon { width: 110px; }
.sky-friends .star { width: 72px; margin-top: 18px; animation: bob 3s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.boy {
  position: absolute;
  left: 4%;
  bottom: 18%;
  width: min(250px, 28vw);
  z-index: 6;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.18));
}

.mascots {
  position: absolute;
  left: 38%;
  bottom: 34%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 6;
}

.mascots img { width: 92px; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.16)); }
.mascots .tara { width: 86px; }

.doors {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 7;
  width: min(920px, 94%);
  justify-content: center;
  flex-wrap: nowrap;
}

.doors a {
  width: 15.5%;
  min-width: 92px;
  transition: transform 0.18s ease;
  filter: drop-shadow(0 10px 10px rgba(40, 50, 40, 0.22));
}

.doors a:hover { transform: translateY(-8px) scale(1.04); }

.hello-panel {
  margin-top: -28px;
  position: relative;
  z-index: 8;
  background: var(--cream);
  border-radius: 40px 40px 0 0;
  padding: 36px 18px 8px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 18px;
  align-items: center;
}

.hello-copy h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 34px;
  color: var(--heading, #1d4ed8);
}

.hello-copy p {
  margin-top: 8px;
  max-width: 340px;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.45;
}

.friends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 12px;
}

.friend-card {
  background: transparent;
  text-align: center;
  padding: 8px;
  border-radius: 24px;
  transition: 0.2s ease;
}

.friend-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }

.friend-card .bubble {
  width: 118px;
  height: 118px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(80, 90, 120, 0.1);
}

.friend-card img { width: 108px; height: 108px; object-fit: contain; }
.friend-card span {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: #334155;
}

.page-head {
  background: linear-gradient(180deg, #d7f0ff 0%, #fff8ef 70%);
  border-radius: 32px;
  padding: 28px 28px 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.page-head h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--heading, #2563eb);
}

.page-head p { margin-top: 6px; font-weight: 700; color: #64748b; max-width: 520px; }
.page-head img { width: 120px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.cms-worksheets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cms-worksheet {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border-radius: 26px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(252, 211, 77, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-worksheet:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(70, 90, 120, 0.16);
}

.cms-worksheet-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.08);
}

.cms-worksheet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cms-worksheet-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-weight: 800;
  color: #9a3412;
}

.cms-worksheet h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  text-align: center;
  color: #1d4ed8;
  line-height: 1.25;
  min-height: 2.4em;
}

.cms-harf-video-section:not(:has(.cms-video-card)):not(:has(.cms-add-video)) {
  display: none;
}
  margin: 28px 0 12px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-harf-story-section {
  margin: 0 0 22px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-harf-story-heading,
.cms-harf-story-section h2 {
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  margin: 0 0 14px;
}

.cms-harf-story-section .cms-stories,
.cms-harf-story-section .cards {
  margin: 0;
}

.cms-harf-story-section:not(:has(.cms-story)):not(:has(.card)):not(:has(.cms-add-story)) {
  display: none;
}

.cms-harf-poem-section {
  margin: 0 0 22px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-harf-poem-heading,
.cms-harf-poem-section h2 {
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  margin: 0 0 14px;
}

.cms-harf-poem-section .cms-poems,
.cms-harf-poem-section .cards {
  margin: 0;
}

.cms-harf-poem-section:not(:has(.cms-poem)):not(:has(.card)):not(:has(.cms-add-poem)) {
  display: none;
}

.cms-harf-worksheet-section h2,
.cms-harf-video-section h2 {
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  margin: 0 0 14px;
}

.cms-harf-worksheet-section .cms-worksheets,
.cms-harf-video-section .cms-videos {
  margin: 0;
}

.cms-videos:not(.video-doors) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cms-harf-video-section .cms-video-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border-radius: 26px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(252, 211, 77, 0.45);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-harf-video-section .cms-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(70, 90, 120, 0.16);
}

.cms-harf-video-section .cms-video-card-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #1e3a8a, #0f172a);
  color: #fff;
  font-size: 42px;
  text-decoration: none;
  position: relative;
}

.cms-harf-video-section .cms-video-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-harf-video-section .cms-video-card-cover::after {
  content: "▶";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.cms-harf-video-section .cms-video-card .body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cms-harf-video-section .cms-video-card h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  text-align: center;
  color: #1d4ed8;
  line-height: 1.25;
  min-height: 2.4em;
  margin: 0;
}

.cms-harf-video-section .cms-video-card p { display: none; }

.cms-video-watch {
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  background: #22c55e;
  box-sizing: border-box;
}

.cms-add-video {
  min-height: 210px;
  border: 3px dashed #fbbf24;
  border-radius: 26px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 800;
  font-size: 18px;
  font-family: "Fredoka", "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: none;
}

.cat-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  place-items: center;
  padding: 18px;
}

.cat-video-lightbox[hidden] { display: none; }

.cat-video-lightbox-box {
  width: fit-content;
  max-width: 96vw;
  background: #0f172a;
  border-radius: 28px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.cat-video-lightbox-frame {
  width: min(960px, 92vw);
  height: auto;
  max-height: 72vh;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto;
}

.cat-video-lightbox-title {
  font-family: "Fredoka", sans-serif;
  color: #fff;
  margin: 0 48px 12px 0;
  font-size: 22px;
}

.cat-video-lightbox-frame iframe,
.cat-video-lightbox-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cat-video-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cat-video-lightbox-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.cat-video-lightbox-nav .btn {
  min-width: 120px;
}

.cms-worksheet-dl {
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  background: #22c55e;
  box-sizing: border-box;
}

.cms-worksheet-dl:hover { filter: brightness(1.05); }

.cms-add-worksheet {
  min-height: 320px;
  border: 3px dashed #fbbf24;
  border-radius: 26px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 800;
  font-size: 18px;
  font-family: "Fredoka", "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: none;
}

.cms-add-story {
  min-height: 220px;
  border: 3px dashed #c4b5fd;
  border-radius: 26px;
  background: #f5f3ff;
  color: #6d28d9;
  font-weight: 800;
  font-size: 18px;
  font-family: "Fredoka", "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: none;
}

.cms-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cms-game {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border-radius: 26px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(134, 239, 172, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-game:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(70, 90, 120, 0.16);
}

.cms-game-cover {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ecfdf5, #dcfce7);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.cms-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cms-game-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-weight: 800;
  color: #166534;
  font-family: "Fredoka", "Nunito", sans-serif;
}

.cms-game h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  text-align: center;
  color: #1d4ed8;
  line-height: 1.25;
  min-height: 2.4em;
}

.cms-game-play {
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  background: #22c55e;
  box-sizing: border-box;
}

.cms-game-play:hover { filter: brightness(1.05); }

.cms-game-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin: 0 0 16px;
}

.cms-game-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 168px;
  min-height: 196px;
  padding: 14px 12px 16px;
  border: 3px solid transparent;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: "Fredoka", "Nunito", sans-serif;
  color: var(--ink, #2f3a4a);
}

.cms-game-widget:hover,
.cms-game-widget:focus-visible {
  border-color: #38bdf8;
  transform: translateY(-3px);
}

.cms-balloon-widget-icon,
.cms-game-widget-icon {
  width: 96px;
  height: 120px;
  object-fit: contain;
  pointer-events: none;
}

.cms-game-icon {
  width: 132px;
  height: 132px;
  object-fit: contain;
  pointer-events: none;
}

.cms-game-widget strong {
  font-size: 18px;
  color: #1d4ed8;
  text-align: center;
  line-height: 1.2;
}

.cms-game-widget small {
  font-size: 14px;
  font-weight: 700;
  color: #c2410c;
  text-align: center;
}

.home-play-board .cms-game-widgets {
  justify-content: center;
  margin-bottom: 0;
}

.cms-add-game {
  min-height: 260px;
  border: 3px dashed #86efac;
  border-radius: 26px;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
  font-size: 18px;
  font-family: "Fredoka", "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: none;
}

.cms-games-section {
  margin: 0 0 22px;
  padding: 18px 16px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cms-games-heading {
  font-family: "Fredoka", sans-serif;
  color: var(--heading, #1d4ed8);
  margin: 0 0 14px;
  font-size: 22px;
}

.cms-games-play { display: none !important; }

.cat-game-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  place-items: center;
  padding: 18px;
}

.cat-game-overlay[hidden] { display: none; }

.cat-sheet-overlay-box {
  background: #fff8ef !important;
  max-height: 96vh;
  overflow: auto;
}

.cat-sheet-overlay .cat-game-overlay-title {
  color: #2563eb;
}

.cat-sheet-overlay-stage {
  min-height: 240px;
}

.cat-sheet-pdf {
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  background: #fff;
  border-radius: 16px;
}

.colour-photo-viewer .colour-toolbar,
.cat-sheet-overlay .colour-toolbar,
[data-harf-preview-stage] .colour-toolbar {
  display: flex;
}

.colour-photo-viewer .colour-stage canvas,
.cat-sheet-overlay .colour-stage canvas,
[data-harf-preview-stage] .colour-stage canvas {
  width: 100%;
  height: min(58vh, 520px);
}

.cat-game-overlay-box {
  position: relative;
  width: min(1100px, 96vw);
  background: #0f172a;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cat-game-overlay-title {
  font-family: "Fredoka", sans-serif;
  color: #fff;
  margin: 0 52px 12px 0;
  font-size: 22px;
}

.cat-game-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cat-game-overlay .cms-html5-stage {
  max-height: calc(100dvh - 160px);
}

.cat-listen-overlay-box {
  width: min(720px, 96vw);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff8ef;
  color: var(--ink, #2f3a4a);
}

.cat-listen-overlay .cat-game-overlay-title {
  color: #7c3aed;
}

.cat-listen-stage {
  background: #fff;
  box-shadow: none;
  padding: 8px 4px 4px;
  max-height: none;
}

body:not(.dash-body) .story-stage:not(.cat-listen-stage):not(.fun-read-stage),
body:not(.dash-body) .poem-stage:not(.cat-listen-stage):not(.fun-read-stage) {
  display: none !important;
}

.cms-games-play .cms-html5-stage {
  min-height: 220px;
}

.card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.card:hover { transform: translateY(-5px); }

.card .art {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 58px;
}

.card .body { padding: 16px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-weight: 700; margin-top: 6px; }

.cms-story {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cms-story-cover {
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.cms-story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-story-read {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  margin-top: 12px;
  background: var(--button, #22c55e);
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.story-stage, .poem-stage, .game-wrap {
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.game-wrap {
  width: 100%;
  max-width: 100%;
}

.story-stage h2, .poem-stage h2 { font-family: "Fredoka", sans-serif; color: #7c3aed; margin-bottom: 10px; }
.story-stage p, .poem-stage p { font-size: 20px; line-height: 1.6; font-weight: 700; }
.story-stage .story-pic,
.poem-stage .story-pic {
  margin: 16px 0;
  text-align: center;
}
.story-stage img,
.poem-stage img {
  display: block;
  max-width: min(100%, 520px);
  height: auto;
  margin: 12px auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.story-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.story-player audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.story-play-btn {
  margin-top: 0;
}

.letters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}

.letter {
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  color: #0f766e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 8px 6px;
  text-decoration: none;
  overflow: visible;
}

.letter img {
  width: 100%;
  height: auto;
  max-height: 220px;
  flex: none;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #e8f4fb;
}

.letter span {
  margin-top: 6px;
  line-height: 1;
}

.letter:hover, .letter.active { background: #d1fae5; transform: scale(1.04); }

.cms-img-empty {
  min-width: 72px;
  min-height: 72px;
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 8px, #e5e7eb 8px, #e5e7eb 16px);
  border-radius: 16px;
}

.cms-click-gif {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  max-width: 100%;
}

.cms-click-gif-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff8ef;
  box-shadow: 0 10px 24px rgba(47, 58, 74, 0.12);
}

.cms-click-gif-frame img,
.cms-click-gif-still {
  display: block;
  width: 100%;
  height: auto;
}

.cms-click-gif-frame img[hidden],
.cms-click-gif-still[hidden] {
  display: none;
}

.cms-click-gif-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.cms-click-gif.is-playing .cms-click-gif-play {
  opacity: 0;
}

.cms-click-gif-title {
  font-weight: 800;
  font-size: 16px;
  color: #1d4ed8;
  text-align: center;
}

.cms-click-gif audio {
  display: none;
}

.cms-click-gif-hint {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  padding: 0 8px 8px;
}
.cms-pick-html5-game {
  cursor: pointer;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  background: #111827;
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}
.harf-file-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 160px;
}
.harf-file-card .art {
  min-height: 92px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  font-weight: 900;
  color: #2563eb;
}
.harf-file-card .art img { width: 100%; height: 110px; object-fit: cover; }
.harf-file-card .body { padding: 10px 12px 14px; }
.harf-file-card h3 { font-size: 15px; margin-bottom: 6px; }
.harf-file-action {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.harf-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  padding: 10px 8px 4px;
  font-weight: 800;
}
.harf-topnav a { color: #2563eb; }

.harf-hero {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr minmax(140px, 200px);
  gap: 16px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 32px;
  background:
    linear-gradient(#d9f1ff, #bfe6ff 55%, #9ad4a8 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.harf-hero-char {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.harf-hero-copy h1 {
  font-family: Fredoka, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  color: #1d4ed8;
}
.harf-word-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 10px 14px;
  margin-top: 10px;
  width: fit-content;
}
.harf-word-chip img, .harf-word-chip .cms-img-empty {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.harf-callout {
  background: #fff3c4;
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}
.harf-block {
  background: #fffdf8;
  border-radius: 28px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.harf-write { background: #fff8e7; }
.harf-recognise { background: #e9fbe8; }
.harf-console { background: #e8f1ff; }
.harf-sing { background: #f3e8ff; }
.harf-watch { background: #ecebff; }
.harf-worksheets { background: #eef4ff; }
.harf-block h2 {
  font-family: Fredoka, sans-serif;
  margin-bottom: 6px;
}
.harf-cards, .harf-words, .harf-watch-grid {
  margin-top: 12px;
}
.harf-console-box {
  background: #f97316;
  border-radius: 28px;
  padding: 16px;
  color: #fff;
  margin: 12px 0;
}
.harf-console-box h3 { color: #fff; text-align: center; margin-bottom: 10px; }
.harf-console-box .cms-html5-stage,
.harf-console-box .cms-pick-html5-game {
  border-radius: 18px;
  min-height: 220px;
}
.harf-game-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.harf-game-links .btn,
.harf-game-links .cms-html5-game {
  width: 100%;
}
.harf-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.harf-pager { margin-top: 10px; }

@media (max-width: 900px) {
  .harf-hero { grid-template-columns: 1fr; text-align: center; }
  .harf-hero-char { max-height: 220px; margin: 0 auto; }
  .harf-word-chip { margin-left: auto; margin-right: auto; }
  .harf-cards, .harf-words, .harf-watch-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.haroof-info {
  margin-top: 18px;
  background: #ecfeff;
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.snake-board,
#snake-board {
  display: block;
  margin: 0 auto;
  background: #ecfdf5;
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.snake-haroof-game {
  margin: 0 auto;
}

.snake-frame {
  border: 8px solid #16a34a;
  border-radius: 32px;
  padding: 14px 14px 8px;
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.18), inset 0 0 0 3px #bbf7d0;
}

.snake-hud {
  flex-wrap: wrap;
  font-size: 15px;
}

.snake-status {
  text-align: center;
  font-weight: 800;
  margin: 0 0 8px;
  color: #166534;
}

.game-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
  font-weight: 800;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0 auto;
  gap: 6px;
}

.puzzle-msg {
  text-align: center;
  font-weight: 800;
  color: var(--heading, #1d4ed8);
  margin-bottom: 10px;
}

.puzzle-tile {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  background: #fb923c;
  color: #fff;
}

.puzzle-tile.empty { background: #ffe8d2; cursor: default; color: transparent; }

.cms-html-embed {
  margin: 12px 0 28px;
}
.cms-html-frame {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cms-audio,
.cms-audio-widget {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 12px;
}
.cms-audio {
  padding: 10px 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cms-audio-title {
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 14px;
}
.cms-audio audio {
  width: 100%;
  display: block;
}
.cms-with-audio {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.cms-html5-title {
  margin: 0 0 10px;
  font-family: Fredoka, sans-serif;
}
.cms-section-flow {
  display: grid;
  width: 100%;
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 16px;
}
.cms-section-flow > * {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.cms-section-flow > .cms-column {
  overflow: auto;
}
.cms-section-flow img,
.cms-section-flow video,
.cms-section-flow .cms-video,
.cms-section-flow .cms-youtube,
.cms-section-flow .cms-html5-game {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
}
.cms-section-flow .cms-html5-stage {
  flex: 1 1 auto;
  min-height: 160px;
  height: 100%;
  max-height: none;
}
.cms-column {
  min-width: 0;
  max-width: 100%;
}
.cms-el img,
.cms-html5-game img {
  max-width: 100%;
  height: auto;
}
.cms-html5-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  aspect-ratio: var(--game-w, 16) / var(--game-h, 9);
  background: #111827;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cms-html5-game[style*="width"] .cms-html5-stage,
.cms-html5-game[style*="height"] .cms-html5-stage {
  max-height: none;
}
.cms-html5-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}
.cms-html5-full { margin-top: 12px; }
.cms-game-missing {
  padding: 18px;
  border-radius: 18px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
}
.cms-quote {
  background: #fff;
  border-left: 6px solid #fbbf24;
  border-radius: 18px;
  padding: 18px 20px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.cms-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}
.cms-video {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: var(--cms-ar, 16 / 9);
  background: #111827;
  box-shadow: var(--shadow);
}
.cms-video.cms-youtube-portrait {
  width: min(360px, 100%);
  margin-inline: auto;
}
.cms-video iframe,
.cms-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  display: block;
  object-fit: contain;
}
.cms-video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #f8fafc;
  font-weight: 800;
  text-align: center;
}

.cms-anim-bob { animation: bob 3s ease-in-out infinite; }
.cms-anim-drift { animation: drift 28s linear infinite; }
.cms-anim-spin { animation: cms-spin 12s linear infinite; }
@keyframes cms-spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 30;
    transform: translateX(-110%);
    width: min(280px, 86vw);
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; place-items: center; }
  .main { padding-top: 70px; }
  .hello-panel, .friends { grid-template-columns: 1fr; }
  .boy { width: 160px; bottom: 22%; }
  .mascots { left: 32%; bottom: 38%; }
  .mascots img { width: 64px; }
  .doors { bottom: 4%; }
  .hero { min-height: 520px; }
  .learn-hero { min-height: 520px; padding-bottom: 48px; }
  .learn-spoke { min-width: 124px; --r: -150px; padding: 6px 12px 6px 6px; }
  .learn-spoke-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .learn-spoke-icon svg { width: 18px; height: 18px; }
  .learn-spoke-label { font-size: 12px; }
  .learn-change { margin-top: 0; }
  .cms-worksheets,
  .cms-videos:not(.video-doors),
  .cms-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cms-adsense { width: 100%; }
.cms-adsense-preview {
  min-height: 90px;
  border: 2px dashed #94a3b8;
  border-radius: 16px;
  background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 12px, #e2e8f0 12px, #e2e8f0 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  color: #334155;
  font-weight: 800;
  text-align: center;
}
.cms-adsense-preview p { margin: 0; font-weight: 700; }
.cms-adsense-setup { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cms-adsense-setup span {
  background: #1d4ed8;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.cms-adsense-label { font-size: 12px; color: #64748b; }

.video-doors {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr !important;
}
.video-doors .video-door {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 4px solid rgba(255,255,255,0.9);
  min-height: 132px;
}
.video-doors .video-door .art {
  width: 150px;
  min-width: 150px;
  height: auto;
  min-height: 132px;
}
.video-doors .video-door .art img { height: 96px !important; }
.video-doors .video-door .body { display: flex; flex-direction: column; justify-content: center; }
.video-doors .video-door h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0;
}
.video-doors .video-door p { margin-top: 4px; }
.video-door-go {
  margin-top: 10px !important;
  font-weight: 800 !important;
  color: #1d4ed8 !important;
}
.video-door-songs { box-shadow: 0 10px 0 #fb7185, var(--shadow); }
.video-door-haroof { box-shadow: 0 10px 0 #34d399, var(--shadow); }
.video-door-alfaz { box-shadow: 0 10px 0 #fb923c, var(--shadow); }
.video-door-science { box-shadow: 0 10px 0 #84cc16, var(--shadow); }

.video-head-index { background: linear-gradient(180deg, #dbeafe 0%, #fff8ef 72%); }
.video-head-songs { background: linear-gradient(180deg, #fecdd3 0%, #fff1f2 72%); }
.video-head-haroof { background: linear-gradient(180deg, #a7f3d0 0%, #ecfdf5 72%); }
.video-head-alfaz { background: linear-gradient(180deg, #fed7aa 0%, #fff7ed 72%); }
.video-head-science { background: linear-gradient(180deg, #d9f99d 0%, #f7fee7 72%); }

.video-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px;
}
@media (max-width: 760px) {
  .video-doors .video-door { flex-direction: column; }
  .video-doors .video-door .art { width: 100%; min-height: 110px; }
  .video-shelf { grid-template-columns: 1fr !important; }
}

/* Moon-and-star life: playful for children, calm enough for grown-ups. */
body:not(.dash-body) {
  background:
    radial-gradient(circle at 100% 0%, rgba(253, 230, 138, 0.55), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(191, 219, 254, 0.45), transparent 32%),
    var(--cream);
}

.brand img { transition: transform 0.35s ease; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }

.nav a img { transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav a:hover img { transform: translateY(-3px) rotate(-8deg) scale(1.1); }
.nav a.active {
  background: linear-gradient(90deg, #fff7d6, #ffe3a3);
  box-shadow: inset 0 0 0 2px #f6c453, 0 6px 0 rgba(245, 158, 11, 0.18);
}
.nav a:active { transform: translateX(1px) scale(0.98); }

.cms-social-btn { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cms-social-btn:hover { transform: translateY(-3px) scale(1.08); }

.explorer {
  background: #fff;
  border: 2px solid #ffe08a;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 6px 0 rgba(251, 191, 36, 0.28);
}

.search {
  border: 2px solid #f3e6d4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.45);
}

.menu-btn { transition: transform 0.2s ease; }
.menu-btn:hover { transform: rotate(-8deg) scale(1.05); }

.learn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 16% 20%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 82% 16%, #ffe08a 0 3px, transparent 5px),
    radial-gradient(circle at 88% 72%, #fff 0 2px, transparent 4px),
    radial-gradient(circle at 10% 76%, #fff 0 2px, transparent 4px);
  animation: cat-twinkle 3.8s ease-in-out infinite;
}

.learn-hero::after {
  content: "✦";
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  pointer-events: none;
  color: #fbbf24;
  font-size: 26px;
  text-shadow: 0 0 10px #fff, 0 2px 0 #f59e0b;
  animation: cat-twinkle 2.6s ease-in-out infinite;
}

.learn-title {
  color: #1e3a5f;
  background: rgba(255, 250, 244, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 8px 24px rgba(80, 60, 30, 0.12);
  backdrop-filter: blur(8px);
}

.learn-wheel::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.18), 0 0 0 8px rgba(255, 255, 255, 0.12);
  animation: cms-spin 56s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.learn-core { animation: cat-moon 4.4s ease-in-out infinite; }

.learn-spoke {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.learn-spoke:hover,
.learn-spoke:focus-visible {
  box-shadow: 0 14px 0 rgba(255, 255, 255, 0.35), 0 18px 30px rgba(80, 60, 30, 0.18);
}

.learn-change,
.learn-hero .btn.learn-change {
  border: 0;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  box-shadow: 0 5px 0 #93c5fd, 0 12px 22px rgba(37, 99, 235, 0.18);
}
.learn-change:hover { transform: translateY(-2px); }
.learn-change:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #93c5fd;
}

.hello-panel {
  margin-top: 22px;
  padding: 28px 22px 18px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 0% 0%, rgba(254, 226, 226, 0.7), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fff8ef 100%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(80, 90, 120, 0.1);
}

.hello-copy h2 {
  font-size: clamp(30px, 4vw, 40px);
  color: #1d4ed8;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hello-copy h2 {
    background: linear-gradient(90deg, #2563eb, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.friend-card .bubble {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}
.friend-card:nth-child(1) .bubble { box-shadow: 0 0 0 5px #fecdd3, 0 10px 18px rgba(190, 18, 60, 0.12); }
.friend-card:nth-child(2) .bubble { box-shadow: 0 0 0 5px #fde68a, 0 10px 18px rgba(180, 83, 9, 0.12); }
.friend-card:nth-child(3) .bubble { box-shadow: 0 0 0 5px #bbf7d0, 0 10px 18px rgba(22, 163, 74, 0.12); }
.friend-card:nth-child(4) .bubble { box-shadow: 0 0 0 5px #bfdbfe, 0 10px 18px rgba(37, 99, 235, 0.12); }
.friend-card:hover { transform: translateY(-8px); }
.friend-card:hover .bubble { transform: scale(1.06); }
.friend-card:hover img { animation: cat-wiggle 0.5s ease; }
.friend-card:active { transform: translateY(-2px) scale(0.98); }

.page-head {
  border: 3px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.75), transparent 34%),
    linear-gradient(180deg, #d7f0ff 0%, #fff8ef 72%);
  box-shadow: 0 14px 0 rgba(191, 219, 254, 0.45), var(--shadow);
}
.page-head img { animation: bob 3.4s ease-in-out infinite; }

.card,
.cms-game,
.cms-worksheet,
.video-doors .video-door {
  position: relative;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}
.card:hover,
.cms-worksheet:hover,
.video-doors .video-door:hover {
  transform: translateY(-8px);
}
.card:active,
.cms-game:active,
.cms-worksheet:active,
.video-doors .video-door:active { transform: translateY(-2px) scale(0.99); }

.say-hello {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  border-radius: 36px;
  padding: 26px 26px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 26px;
  align-items: center;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 30%, rgba(253, 230, 138, 0.95) 0 18px, rgba(253, 230, 138, 0.25) 19px, transparent 70px),
    radial-gradient(circle at 12% 18%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 16%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 88% 28%, #fde68a 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 80% 78%, #fff 0 1px, transparent 2px),
    linear-gradient(128deg, #1e1b4b 0%, #312e81 48%, #9a3412 100%);
  box-shadow: 0 18px 0 rgba(49, 46, 129, 0.18), 0 24px 40px rgba(30, 27, 75, 0.25);
}
.say-hello-mascots {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  grid-row: 1 / span 2;
}
.say-hello-mascots img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.28));
}
.say-hello-mascots img:first-child { animation: bob 3.1s ease-in-out infinite; }
.say-hello-mascots img:last-child { width: 96px; animation: bob 3.6s ease-in-out infinite 0.35s; }
.say-hello-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
}
.say-hello h2 {
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #fff;
}
.say-hello-kid {
  margin: 8px 0 0;
  max-width: 540px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: #e0e7ff;
}
.say-hello-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.say-hello-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1e1b4b;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}
.say-hello-btn:hover { transform: translateY(-3px); }
.say-hello-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(15, 23, 42, 0.18); }
.say-hello-btn i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.say-hello-facebook i { background: #1877f2; }
.say-hello-instagram i { background: #e1306c; }
.say-hello-youtube i { background: #ff0000; }
.say-hello-note {
  display: none;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
}
.dash-body:not(.preview-mode) .say-hello-note { display: block; }

.cat-spark {
  position: fixed;
  z-index: 70;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--spark, #fbbf24);
  animation: cat-spark 0.55s ease-out forwards;
}

.nav a:focus-visible,
.say-hello-btn:focus-visible,
.friend-card:focus-visible,
.learn-change:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

@keyframes cat-twinkle {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@keyframes cat-moon {
  0%, 100% {
    box-shadow: 0 18px 40px rgba(120, 96, 72, 0.16), inset 0 0 0 10px rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    box-shadow: 0 22px 46px rgba(120, 96, 72, 0.22), inset 0 0 0 10px rgba(255, 255, 255, 0.8), 0 0 28px 8px rgba(251, 191, 36, 0.55);
  }
}
@keyframes cat-wiggle {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-7deg); }
  70% { transform: rotate(7deg); }
}
@keyframes cat-spark {
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

:root { --sidebar-w: 268px; }

@media (max-width: 980px) {
  .topbar { justify-content: center; }
  .search { min-width: 0; width: min(100%, 320px); }
  .explorer, .site-mute { max-width: 100%; }
  .learn-title {
    max-width: calc(100% - 16px);
    min-width: 0;
    font-size: clamp(18px, 5vw, 26px);
    line-height: 1.15;
    text-align: center;
  }
  .learn-spoke {
    min-width: 0;
    --r: -88px;
    padding: 5px 8px 5px 5px;
  }
  .learn-spoke-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .learn-spoke-label { font-size: 11px; }
  .learn-wheel,
  .learn-hero.cms-section-flow > .learn-wheel {
    width: min(300px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1 !important;
  }
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: center; }
  .search, .explorer, .site-mute { width: min(100%, 300px); justify-content: center; }
}

@media (max-width: 760px) {
  .say-hello { grid-template-columns: 1fr; padding: 22px 18px; }
  .say-hello-mascots { grid-row: auto; }
  .learn-hero::after { font-size: 18px; top: 10px; left: 10px; }
}

.app {
  display: block !important;
}
.app > .sidebar,
.menu-btn {
  display: none !important;
}

.home-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}

.home-social-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 #f6c453;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.home-social-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.home-social-btn:hover { transform: translateY(-2px); }

.home-social-youtube.is-subscribed {
  box-shadow: 0 4px 0 #22c55e;
}

.cat-sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
}

.cat-sub-overlay[hidden] { display: none; }

.cat-sub-card {
  position: relative;
  width: min(520px, 96vw);
  background: #fff8ef;
  color: #1e3a5f;
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.2);
}

.cat-sub-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #c2410c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 #f6c453;
}

.cat-sub-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
}

.cat-sub-card h2 {
  margin: 0 36px 8px 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 28px;
  color: #1d4ed8;
}

.cat-sub-copy,
.cat-sub-status {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.4;
}

.cat-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-sub-go,
.cat-sub-check {
  border: 0;
  text-decoration: none;
}

.cat-sub-check { background: #22c55e; }
.cat-sub-check:disabled { opacity: 0.7; cursor: wait; }

.home-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 2px 0 12px 2px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: #fff;
  color: #c2410c;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 5px 0 #f6c453, 0 10px 18px rgba(80, 60, 30, 0.12);
  position: relative;
  z-index: 8;
}
.home-fab img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.home-fab:hover { transform: translateY(-3px) rotate(-2deg); }
.home-fab:active { transform: translateY(2px); box-shadow: 0 2px 0 #f6c453; }
.app:has(.home-stage) .home-fab {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
}
.app:has(.home-stage) .home-friends { padding-top: 72px; }

@media (max-width: 980px) {
  .main { padding-top: 16px !important; }
}

.learn-hero.home-stage {
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr) auto !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px 14px;
  min-height: calc(100dvh - 28px);
  margin: 0;
  padding: 8px 0 12px !important;
  overflow: visible;
  border-radius: 28px;
  background: #7ec8f5 url("../assets/backgrounds/background.jpg") center / cover no-repeat;
}
.learn-hero.home-stage::before {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12), transparent 36%);
}
.dash-body .learn-hero.home-stage { min-height: 680px; }

.learn-hero.home-stage.cms-section-flow > * {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column;
}

.home-friends {
  position: relative;
  justify-content: space-evenly;
  align-items: center;
  gap: 6px;
  z-index: 2;
  align-self: stretch;
  margin: 10px 0 10px 0;
  padding: 16px 36px 16px 12px;
  background: #fff;
  border: 6px solid #f6c453;
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 11px #7dd3fc,
    8px 10px 0 rgba(246, 196, 83, 0.45);
}
.home-friends .friend-card,
.home-friends .home-friend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.home-friends .home-friend-pair {
  display: contents;
}
.home-friend-bit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.home-friends .bubble {
  width: 112px;
  height: 112px;
  background: transparent;
  box-shadow: none !important;
}
.home-friends .friend-card:nth-child(n) .bubble { box-shadow: none !important; }
.home-friends .bubble img,
.home-friends img {
  width: 104px !important;
  height: 104px !important;
  object-fit: contain;
}
.home-friends .friend-card span,
.home-friend-bit > span:last-child {
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
  text-shadow: 0 1px 0 #fff;
}

.home-sky {
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  z-index: 2;
  padding-top: 6px;
}
.learn-hero.home-stage.cms-section-flow > .home-sky {
  height: 100% !important;
  min-height: 0;
}
.home-sky .search {
  width: min(420px, 80%);
  background: rgba(255, 255, 255, 0.92);
}
.home-sky .learn-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 40px);
}
.home-sky .hello-copy { text-align: center; }
.home-sky .hello-copy h2 { font-size: clamp(22px, 2.4vw, 28px); }
.home-sky .hello-copy p {
  margin: 6px auto 0;
  max-width: 420px;
  color: #334155;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-play {
  flex: 1 1 auto;
  min-height: 240px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.home-play-figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.home-play-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(400px, 88%);
  height: min(56vh, 540px);
  margin: 0 auto 10px;
  padding: 28px 22px 72px;
  background: #fff;
  border: 6px solid #f6c453;
  border-radius: 50% 50% 36px 36px;
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 11px #7dd3fc,
    0 10px 0 rgba(246, 196, 83, 0.45);
  overflow: hidden;
}
.home-play-harf {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}
video.home-play-harf {
  display: block;
  pointer-events: none;
}
.home-play-toggle {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #7dd3fc;
  color: #1e3a5f;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 0 #38bdf8, inset 0 0 0 3px #fff;
}
.home-play-toggle:hover { transform: translateX(-50%) translateY(-2px); }
.home-play-toggle:active {
  transform: translateX(-50%) translateY(2px);
  box-shadow: 0 1px 0 #38bdf8, inset 0 0 0 3px #fff;
}
.home-play-toggle-icon {
  font-size: 16px;
  width: 1.1em;
  text-align: center;
}
.home-play.is-board {
  align-items: stretch;
  min-height: 280px;
}
.home-play.is-board .home-play-figure { display: none; }
.home-play-board {
  display: none;
  width: 100%;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 4px 2px 10px;
}
.home-play.is-board .home-play-board { display: block; }
.home-play-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 22px;
  color: #1d4ed8;
}
.home-play-empty {
  margin: 28px 12px;
  text-align: center;
  font-weight: 800;
  color: #1e3a5f;
}
.home-play-board .cms-harf-worksheet-section,
.home-play-board .cms-harf-video-section,
.home-play-board .cms-harf-fun-section,
.home-play-board .cms-harf-colour-section,
.home-play-board .cms-games-section {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.home-stage .learn-spoke.is-home-open {
  box-shadow: 0 0 0 3px #7c3aed, 0 6px 0 rgba(91, 33, 182, 0.18) !important;
}

.learn-hero.home-stage > .home-harf,
.home-harf {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  flex-direction: unset !important;
  align-items: center;
  gap: 12px;
  min-height: 0;
  height: 100% !important;
  z-index: 2;
}
.home-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  align-items: stretch;
}
.home-stage .learn-wheel { display: none !important; }
.home-stage .learn-bubbles { display: none !important; }
.home-stage .learn-spoke,
.home-stage .learn-spoke:hover,
.home-stage .learn-spoke:focus-visible {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 158px;
  margin: 0;
}
.home-stage .learn-spoke:hover { transform: translateY(-3px) !important; }
.home-stage .learn-core {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  justify-self: end;
  align-self: center;
  width: min(42vw, 430px) !important;
  height: min(88dvh, 820px) !important;
  max-height: none;
  aspect-ratio: auto;
  margin: 8px 0;
  padding: 28px 18px 28px 48px;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  background: #fff !important;
  border: 6px solid #f6c453;
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 11px #7dd3fc,
    -8px 10px 0 rgba(246, 196, 83, 0.45);
  animation: none !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.dash-body .home-stage .learn-core {
  width: min(280px, 34vw) !important;
  height: 560px !important;
}
.home-stage .learn-harf-icon,
.home-stage .learn-core img {
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 86% !important;
  object-fit: contain !important;
}
.home-stage .learn-letter { display: none !important; }
.learn-hero.home-stage .learn-change {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 5;
  margin: 0 !important;
  width: 100%;
  background: #7c3aed !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 4px 0 #5b21b6 !important;
}
.home-stage .learn-wheel::before { display: none !important; }
.learn-hero.home-stage > .is-home-moved,
.learn-hero.home-stage .learn-wheel.is-home-moved,
.is-home-moved {
  display: none !important;
}

.app:has(.home-stage) .main { position: relative; padding-top: 8px; }
.app:has(.home-stage) .topbar {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 6;
  margin: 0;
}
.app:has(.home-stage) .say-hello { margin: 16px 12px 8px; }

@media (max-width: 900px) {
  .learn-hero.home-stage {
    grid-template-columns: 1fr !important;
    min-height: auto;
    overflow: visible;
    padding: 8px 12px 16px !important;
  }
  .home-friends {
    flex-direction: row !important;
    justify-content: space-around;
    overflow: auto;
    height: auto;
    margin: 0;
    padding: 16px 12px !important;
    border-radius: 40px;
  }
  .home-friends .home-friend-pair { flex-direction: row; }
  .home-friends .bubble,
  .home-friends .bubble img,
  .home-friends img {
    width: 88px !important;
    height: 88px !important;
  }
  .home-stage .learn-core {
    width: min(92vw, 420px) !important;
    height: min(78vw, 460px) !important;
    margin: 0 auto;
    border-radius: 50% 50% 36px 36px;
  }
  .home-stage .learn-harf-icon,
  .home-stage .learn-core img {
    max-height: 78% !important;
  }
  .home-play { min-height: 180px; align-items: center; }
  .home-play-frame {
    width: min(92vw, 360px);
    height: min(52vh, 420px);
  }
  .home-play-board { max-height: 48vh; }
}

@media (prefers-reduced-motion: reduce) {
  .learn-hero::before,
  .learn-hero::after,
  .learn-wheel::before,
  .learn-core,
  .page-head img,
  .friend-card:hover img,
  .say-hello-mascots img,
  .cat-spark { animation: none !important; }
}

body.balloon-open { overflow: hidden; }

.balloon-game {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(180deg, #9fd6f5 0%, #d7f0ff 46%, #fff6ea 100%);
  overflow: hidden;
}

.balloon-hud {
  position: relative;
  z-index: 5;
  padding: 14px 16px 8px;
}

.balloon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #c2410c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 0 #f6c453;
}

.balloon-title {
  margin: 0 52px 10px 0;
  text-align: center;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  color: #1e3a5f;
}

.balloon-bar {
  width: min(760px, 100%);
  margin: 0 auto;
}

.balloon-slots {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.balloon-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-family: "Baloo Bhaijaan 2", "Noto Naskh Arabic", Tahoma, sans-serif;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 800;
  color: #c46b7a;
}

.balloon-slot.is-filled {
  background: #fff;
  box-shadow: 0 4px 0 #f6c453;
  animation: balloon-slot-pop 0.28s ease;
}

.balloon-count {
  margin: 6px 0 0;
  text-align: center;
  font-weight: 800;
  color: #1e3a5f;
}

.balloon-field {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}

.balloon-bit {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  height: 160px;
  width: auto;
  line-height: 0;
}

.balloon-bit img {
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgba(30, 70, 110, 0.18));
}

.balloon-bit.is-pop {
  pointer-events: none;
  animation: balloon-pop 0.28s ease forwards;
}

.balloon-game.is-oops .balloon-field { animation: balloon-shake 0.35s linear; }
.balloon-game.is-frozen .balloon-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(186, 230, 253, 0.28);
  pointer-events: none;
}

.balloon-burst {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}

.balloon-burst i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  animation: balloon-burst 0.48s ease-out forwards;
}

.balloon-fx {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.balloon-fx-boom {
  background: rgba(255, 255, 255, 0.28);
  animation: balloon-flash 0.45s ease;
}

.balloon-fx-boom span {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  animation: balloon-boom 1.1s ease-out forwards;
}

.balloon-fx-stars span {
  position: absolute;
  top: -20px;
  width: 18px;
  height: 18px;
  background: #fff8d6;
  clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%);
  animation: balloon-star 2.2s linear infinite;
}

.balloon-rocket {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6c9a0;
  box-shadow: 0 0 0 8px rgba(246, 201, 160, 0.35), 18px -28px 0 6px #f4b6c2, -16px -18px 0 5px #a9d4ef, 8px -48px 0 7px #f3e0a0;
  animation: balloon-rocket 1.3s ease-in infinite;
}

.balloon-finale {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}

.balloon-finale-balloon {
  height: min(68%, 460px);
  width: auto;
  max-width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(30, 70, 110, 0.22));
  animation: balloon-slot-pop 0.45s ease;
}

.balloon-finale .balloon-again { pointer-events: auto; }

.balloon-again {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #7dd3fc;
  color: #1e3a5f;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #38bdf8;
}

@keyframes balloon-pop {
  40% { transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.5); }
}

@keyframes balloon-burst {
  to { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

@keyframes balloon-slot-pop {
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes balloon-shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes balloon-flash {
  0% { background: rgba(255, 255, 255, 0.72); }
  100% { background: rgba(255, 255, 255, 0); }
}

@keyframes balloon-boom {
  to { transform: scale(3.2); opacity: 0; }
}

@keyframes balloon-star {
  to { transform: translateY(110vh) rotate(180deg); opacity: 0.2; }
}

@keyframes balloon-rocket {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(-58vh) scale(1); opacity: 1; }
  100% { transform: translateY(-62vh) scale(1.8); opacity: 0; }
}

body.match-open { overflow: hidden; }

.match-game {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(180deg, #fde68a 0%, #fff7ed 42%, #e0f2fe 100%);
  overflow: hidden;
}

.match-hud {
  position: relative;
  z-index: 5;
  padding: 14px 16px 8px;
}

.match-slots {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.match-board {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  justify-items: center;
  padding: 4px 12px 14px;
  touch-action: none;
}

.match-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.match-card {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  min-width: 0;
  width: clamp(58px, 11vw, 108px);
}

.match-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(30, 70, 110, 0.16));
}

.match-card.is-matched img {
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95));
}

.match-card.is-shake img {
  animation: balloon-shake 0.35s linear;
}

.match-center {
  display: grid;
  place-items: center;
  min-width: 0;
}

.match-harf {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  line-height: 0;
}

.match-harf img {
  width: clamp(96px, 22vw, 210px);
  height: auto;
  max-height: 48vh;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(30, 70, 110, 0.18));
}

.match-harf:active { cursor: grabbing; }

.match-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

.match-word {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 8;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: "Baloo Bhaijaan 2", "Noto Naskh Arabic", Tahoma, sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  color: #1d4ed8;
  text-shadow: 0 4px 0 #fff, 0 8px 16px rgba(30, 58, 95, 0.18);
  pointer-events: none;
  animation: match-word-out 1.15s ease forwards;
}

.match-empty {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  font-weight: 800;
  color: #1e3a5f;
}

.match-board.is-won .match-row,
.match-board.is-won .match-lines {
  opacity: 0;
  pointer-events: none;
}

.match-finale {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.match-dancer {
  position: absolute;
  width: min(18vw, 120px);
  height: auto;
  animation: match-dance 1.15s ease-in-out infinite;
  filter: drop-shadow(0 8px 8px rgba(30, 70, 110, 0.2));
}

.match-again {
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
}

@keyframes match-word-out {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.68); }
}

@keyframes match-dance {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(-8deg); }
  50% { transform: translate(-50%, -50%) translateY(-18px) rotate(8deg) scale(1.06); }
}

.match-spark {
  position: absolute;
  z-index: 7;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.45);
  animation: match-spark 0.42s ease-out forwards;
}

.match-stars {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}

.match-stars i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #fde68a;
  clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%);
  filter: drop-shadow(0 0 4px #facc15);
  animation: match-star 0.65s ease-out forwards;
}

@keyframes match-spark {
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

@keyframes match-star {
  0% { transform: translate(0, 0) scale(0.4); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

.info-page {
  display: grid;
  gap: 18px;
}

.info-sheet {
  background:
    radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.55), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff8ef 100%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow);
}

.info-sheet h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--heading, #2563eb);
  margin: 26px 0 8px;
}

.info-sheet h2:first-child { margin-top: 0; }

.info-sheet p,
.info-sheet li {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: #475569;
}

.info-sheet p + p { margin-top: 10px; }

.info-sheet ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.info-sheet a {
  color: var(--accent, #c2410c);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-dates {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px solid rgba(253, 186, 116, 0.55);
  color: #9a3412;
  font-weight: 800;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.contact-point {
  background: #fff;
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(80, 90, 120, 0.08);
  border: 2px solid rgba(191, 219, 254, 0.7);
}

.contact-point strong {
  display: block;
  font-family: "Fredoka", "Nunito", sans-serif;
  color: #1d4ed8;
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-mail {
  margin-top: 16px;
  min-height: 52px;
  padding: 12px 22px;
  font-size: 18px;
  text-decoration: none;
  justify-content: center;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff4dc;
  color: #c2410c;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 28px;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.site-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.site-footer-bar p {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  color: #64748b;
}

.site-footer-google h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--heading, #2563eb);
  margin-bottom: 6px;
}

.site-footer-google p {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: #475569;
  max-width: 72ch;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff4dc;
  color: var(--accent, #c2410c);
  font-weight: 800;
}

.site-footer a:hover { background: #ffe9b8; }

.site-footer a[aria-current="page"] {
  background: #ffe9b8;
  box-shadow: inset 0 0 0 2px #ffd27a;
}

@media (max-width: 700px) {
  .info-page .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-page .page-head img { width: 96px; }

  .info-sheet { padding: 20px 16px 24px; }

  .info-sheet p,
  .info-sheet li { font-size: 16px; }

  .site-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer nav { flex-direction: column; }

  .contact-social { flex-direction: column; }

  .contact-social a,
  .contact-mail { width: 100%; }
}
