@font-face {
  font-family: "Baloo";
  src: url("./assets/baloo.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "OpenSans";
  src: url("./assets/opensans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("./assets/merriweather.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f8fbff;
  --bg-soft: #eef8ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --welcome: #fff2cc;
  --featured: #fff8e1;
  --moral: #e8edff;
  --bedtime: #fff1cc;
  --gk: #e3f6ea;
  --text: #23314b;
  --muted: #5d6987;
  --line: rgba(77, 101, 184, 0.12);
  --brand: #ff8b5e;
  --brand-deep: #ff6b6b;
  --brand-soft: #fff0c7;
  --accent-blue: #65bdf6;
  --accent-green: #84d89d;
  --accent-yellow: #ffd86f;
  --accent-pink: #ffb3c7;
  --dark: #374151;
  --shadow: 0 24px 60px rgba(67, 107, 181, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "OpenSans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(117, 193, 255, 0.28), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 219, 130, 0.34), transparent 24%),
    radial-gradient(circle at 50% 20%, rgba(255, 170, 195, 0.18), transparent 20%),
    linear-gradient(180deg, #fdfefe, var(--bg));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-shell { position: relative; width: min(1200px, calc(100% - 28px)); margin: 18px auto 60px; }

.topbar,
.footer-card,
.section-card,
.panel-card,
.hero-card,
.featured-panel,
.story-tile,
.media-panel,
.continue-card,
.promo-card,
.profile-hero-card,
.stat-card,
.history-row,
.dashboard-card,
.result-card,
.reader-text,
.reader-image,
.empty-card,
.loading-card { box-shadow: var(--shadow); border: 1px solid var(--line); }

.topbar {
  position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 22px; padding: 14px 18px; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px); border-radius: 999px;
}
.topbar-row {
  display: contents;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 18px; }
.brand strong, .hero-copy h1, h1, h2, h3 { font-family: "Baloo", cursive; line-height: 0.98; margin: 0; }
.brand small { display: block; color: var(--muted); }
.nav-wrap {
  display: contents;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff2cc, #ffe2dd);
  box-shadow: 0 14px 26px rgba(98, 108, 160, 0.12);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  border-radius: 999px;
  background: #3d4f77;
}
.sky-doodles {
  position: absolute;
  inset: -18px 0 auto;
  pointer-events: none;
  z-index: 0;
}
.cloud,
.star,
.spark {
  position: absolute;
}
.cloud {
  width: 118px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(117, 142, 201, 0.12);
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: inherit;
}
.cloud::before {
  width: 46px;
  height: 46px;
  left: 16px;
  top: -18px;
}
.cloud::after {
  width: 56px;
  height: 56px;
  right: 14px;
  top: -24px;
}
.cloud-a { left: 3%; top: 20px; animation: drift 11s ease-in-out infinite; }
.cloud-b { right: 8%; top: 120px; transform: scale(0.88); animation: drift 10s ease-in-out infinite 1.2s; }
.cloud-c { left: 46%; top: 56px; transform: scale(0.7); animation: drift 12s ease-in-out infinite 2s; }
.star {
  width: 18px;
  height: 18px;
  background: #ffe47a;
  clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%);
}
.star-a { right: 16%; top: 34px; }
.star-b { left: 20%; top: 160px; transform: scale(0.8); }
.star-c { right: 34%; top: 160px; transform: scale(1.1); }
.spark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(115, 207, 255, 0.85);
}
.spark-a { left: 32%; top: 28px; }
.spark-b { right: 24%; top: 92px; }
.nav-link, .nav-button, .primary-button, .dark-button, .small-button, .filter-chip, .ghost-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 18px; border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.nav-link, .filter-chip { background: rgba(255, 184, 145, 0.18); color: var(--text); }
.nav-link.active, .filter-chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.nav-button, .primary-button, .small-button { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #76cdf7, #4da4eb); color: #fff; transition: transform 180ms ease, box-shadow 180ms ease;
}
.dark-button { background: var(--dark); color: #fff; }
.ghost-button { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.nav-link:hover, .nav-button:hover, .primary-button:hover, .dark-button:hover, .small-button:hover, .filter-chip:hover, .ghost-button:hover, .secondary-button:hover { transform: translateY(-2px); }

.hero-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 440px; background: #1d2f67; }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(22,40,106,0.18), rgba(22,40,106,0.85)); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 24px; min-height: 440px; padding: 28px; color: #fff; }
.hero-copy { align-self: center; }
.hero-copy h1, .hero-reader h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
.hero-copy p { max-width: 560px; line-height: 1.7; }
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  min-height: 560px;
  padding: 34px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 225, 133, 0.95), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(126, 215, 255, 0.55), transparent 20%),
    linear-gradient(140deg, #fff2b6 0%, #ffd7a7 28%, #ffd3df 60%, #d9efff 100%);
}
.hero-home-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.hero-home-copy h1 {
  font-family: "Baloo", cursive;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.92;
  max-width: 560px;
}
.hero-intro {
  max-width: 600px;
  font-size: 1.04rem;
  line-height: 1.75;
}
.badge-sun {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}
.hero-actions {
  margin-top: 2px;
}
.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.mini-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 40px rgba(112, 97, 55, 0.08);
}
.mini-stat strong {
  display: block;
  font-family: "Baloo", cursive;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.mini-stat span {
  display: block;
  line-height: 1.5;
  color: var(--muted);
}
.hero-home-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hero-mascot {
  position: absolute;
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 36px rgba(87, 102, 156, 0.16);
}
.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
.mascot-book {
  left: 12px;
  bottom: 20px;
  transform: rotate(-8deg);
}
.mascot-moon {
  right: 16px;
  top: 86px;
  transform: rotate(8deg);
}
.mascot-gk {
  left: 48px;
  top: 52px;
  transform: rotate(-6deg);
}
.hero-scene-card {
  position: relative;
  width: min(100%, 460px);
  padding: 16px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 60px rgba(83, 95, 146, 0.18);
  transform: rotate(-2deg);
}
.hero-scene-card img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 28px;
}
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  opacity: 0.55;
  animation: drift 8s ease-in-out infinite;
}
.orbit-a {
  top: 20px;
  left: 12px;
  width: 88px;
  height: 88px;
  background: rgba(255, 183, 87, 0.44);
}
.orbit-b {
  right: 6px;
  bottom: 70px;
  width: 118px;
  height: 118px;
  background: rgba(114, 204, 255, 0.4);
  animation-delay: 1.3s;
}
.story-sticker {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Baloo", cursive;
  font-size: 1.05rem;
  box-shadow: 0 12px 28px rgba(76, 83, 130, 0.18);
}
.sticker-top {
  top: -14px;
  right: 18px;
  background: #fff6a8;
}
.sticker-middle {
  left: -12px;
  top: 44%;
  background: #bde8ff;
}
.sticker-bottom {
  right: 20px;
  bottom: -16px;
  background: #ffd0db;
}
.floating-note {
  position: absolute;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 45px rgba(98, 108, 160, 0.12);
}
.note-top {
  top: 30px;
  left: 0;
}
.note-bottom {
  right: 0;
  bottom: 18px;
}
.hero-side { display: grid; gap: 18px; align-self: end; }
.mini-panel, .continue-card, .footer-card, .section-card, .panel-card, .profile-hero-card, .dashboard-card, .result-card, .empty-card, .loading-card {
  border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(10px);
}
.mini-panel { padding: 18px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.24); }
.section-label, .card-label { margin: 0 0 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.content-grid { display: grid; gap: 24px; margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.section-card, .footer-card, .panel-card, .promo-card { padding: 24px; }
.welcome-card { background: var(--welcome); }
.featured-panel, .profile-hero-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface-strong); min-height: 190px; }
.featured-panel img, .story-cover, .media-panel img, .hero-reader img, .profile-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.profile-avatar { width: 110px; height: 110px; }
.continue-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; color: #fff; background: linear-gradient(135deg, #7c8cff, #5b73ff); }
.continue-card-sunrise {
  background: linear-gradient(135deg, #ffb36f, #ff7f7f 50%, #7c8cff);
}
.continue-card img { width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,0.18); padding: 10px; }
.progress-track { width: min(360px, 100%); height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.32); }
.progress-fill { display: block; width: 60%; height: 100%; background: #fff; }
.story-grid, .stats-grid, .panel-grid, .issue-grid, .gk-grid { display: grid; gap: 18px; }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-tile { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-strong); min-height: 100%; }
.story-tile {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.story-tile:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 24px 42px rgba(77, 101, 184, 0.14);
}
.story-link { display: block; height: 100%; }
.story-cover-wrap { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #dbe4ff, #eef3ff); }
.story-cover { height: 100%; }
.lock-badge, .chip, .chip-alt { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.story-ribbon {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.ribbon-moral { background: linear-gradient(135deg, #7d8dff, #5769f5); }
.ribbon-bedtime { background: linear-gradient(135deg, #7f63d7, #4f46b8); }
.ribbon-gk { background: linear-gradient(135deg, #1ea59c, #127e7e); }
.ribbon-myth { background: linear-gradient(135deg, #e9813c, #cf5d29); }
.ribbon-inspire { background: linear-gradient(135deg, #f35f8f, #d94372); }
.ribbon-general { background: linear-gradient(135deg, #5baee8, #3b7fe4); }
.lock-badge { position: absolute; top: 14px; left: 14px; color: #fff; background: rgba(19, 28, 79, 0.78); }
.story-body { padding: 18px; }
.story-body h3 {
  font-family: "Baloo", cursive;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 10px;
}
.story-body p { margin: 0; line-height: 1.6; }
.story-card-actions {
  margin-top: 14px;
}
.story-rich-copy {
  display: grid;
  gap: 14px;
}
.story-rich-copy p,
.story-rich-copy li {
  font-family: "Merriweather", serif;
  font-size: 1.12rem;
  line-height: 2;
  color: #384256;
  margin: 0;
}
.story-rich-copy ul,
.story-rich-copy ol {
  margin: 0;
  padding-left: 22px;
}
.story-rich-copy strong,
.story-rich-copy b {
  color: #273a60;
}
.media-panel { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-strong); min-height: 220px; }
.issue-panel .issue-link, .media-panel .issue-link { display: grid; grid-template-columns: 190px 1fr; height: 100%; }
.media-panel img { height: 100%; }
.media-copy { padding: 18px; }
.media-copy.compact { display: flex; flex-direction: column; justify-content: center; }
.funzone-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), var(--funzone-bg));
  box-shadow: var(--shadow);
}
.funzone-image-wrap {
  position: relative;
  min-height: 190px;
}
.funzone-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
.funzone-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(35, 49, 75, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.funzone-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.button-row, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { background: rgba(255, 171, 113, 0.18); color: var(--text); }
.chip-alt { background: #edf4ff; color: #44618b; }
.promo-grid, .parent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo-card { border-radius: var(--radius-lg); }
.promo-card.primary { background: linear-gradient(135deg, #6789ff, #4d67ef); color: #fff; }
.promo-card.dark { background: linear-gradient(180deg, #ffffff, #eef2ff); }
.reader-layout { display: grid; gap: 18px; }
.hero-reader { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-strong); }
.locked-reader { background: linear-gradient(180deg, #fff, #f4f6ff); }
.reader-text { padding: 22px; border-radius: var(--radius-lg); background: #fff; }
.reader-text p { margin: 0; font-size: 1.08rem; line-height: 1.9; }
.reader-image { margin: 0; padding: 10px; border-radius: var(--radius-lg); background: #fff; }
.reader-image img { border-radius: 20px; }
.profile-hero-card, .history-row, .dashboard-card, .stat-card, .result-card, .gk-tile { border-radius: var(--radius-lg); background: var(--surface-strong); }
.profile-hero-card { align-items: center; padding: 22px; }
.stat-card, .dashboard-card, .result-card, .gk-tile { padding: 20px; }
.history-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px; }
.history-row p, .dashboard-card p, .result-card p, .gk-tile p, .empty-card p, .loading-card p, .panel-card p, .footer-card p, .featured-panel p, .hero-reader p { margin: 0; line-height: 1.6; }
.empty-card, .loading-card { padding: 24px; text-align: center; }
.empty-card.tall { min-height: 220px; display: grid; place-items: center; }
.loading-card { color: var(--muted); min-height: 140px; display: grid; place-items: center; }
.loading-copy {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.issue-skeleton-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.skeleton-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.skeleton-body {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.skeleton {
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(232,238,251,0.9) 25%, rgba(255,255,255,0.95) 50%, rgba(232,238,251,0.9) 75%);
  background-size: 220% 100%;
}
.shimmer {
  animation: shimmer 1.3s linear infinite;
}
.skeleton-cover {
  aspect-ratio: 4 / 3;
}
.skeleton-issue {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}
.skeleton-issue-image {
  min-height: 180px;
}
.skeleton-line {
  height: 16px;
}
.skeleton-line.short {
  width: 38%;
}
.skeleton-line.medium {
  width: 72%;
}
.safe { border-left: 6px solid #16a34a; }
.warn { border-left: 6px solid #f59e0b; }
.parent-grid .wide { grid-column: span 2; }
.mini-list { display: grid; gap: 10px; }
.mini-list-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gk-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; margin-bottom: 12px; background: rgba(106,128,255,0.12); font-weight: 700; }
.theme-blue { background: linear-gradient(180deg, #fff, #edf3ff); }
.theme-gold { background: linear-gradient(180deg, #fffef7, #fff4d7); }
.theme-green { background: linear-gradient(180deg, #fbfff9, #e8f8ec); }
.footer-card { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 18px; margin-top: 24px; align-items: start; }
.footer-main p:last-child { max-width: 460px; }
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  width: fit-content;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}
.footer-links a:hover {
  color: var(--text);
  transform: translateX(2px);
}
.footer-meta { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.form-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface-strong); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field-row { display: grid; gap: 10px; }
.field-row input, .field-row textarea { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); font: inherit; }
.field-row textarea { min-height: 160px; resize: vertical; }
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 10px; }
.toast { min-width: 220px; padding: 14px 16px; border-radius: 16px; color: #fff; background: rgba(25, 35, 83, 0.92); opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

.spark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.spark-card {
  position: relative;
  overflow: hidden;
}
.spark-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  opacity: 0.26;
}
.sparkle-yellow { background: linear-gradient(180deg, #fffdf1, #fff1bd); }
.sparkle-yellow::after { background: #ffd461; }
.sparkle-blue { background: linear-gradient(180deg, #f5fcff, #dff2ff); }
.sparkle-blue::after { background: #70c7ff; }
.sparkle-peach { background: linear-gradient(180deg, #fff7f0, #ffe1cf); }
.sparkle-peach::after { background: #ff9f80; }
.grid-hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}
.section-playground {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,247,236,0.96));
}
.section-cloud {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(235,246,255,0.95));
}
.section-meadow {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,255,237,0.96));
}
.section-lilac {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,239,255,0.94));
}
.section-links {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,245,230,0.96));
}
.play-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.play-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.play-card-lime {
  background: linear-gradient(180deg, #f8fff1, #dff7c7);
}
.play-card-pink {
  background: linear-gradient(180deg, #fff6fa, #ffdce8);
}
.play-card-sky {
  background: linear-gradient(180deg, #f2fbff, #d5efff);
}
.profile-page-hero {
  background: linear-gradient(135deg, #fff3bf, #ffe1d2 44%, #e8f5ff);
}
.profile-page-hero::after {
  opacity: 1;
  background-image: url("./assets/header-story.webp");
}
.issue-page-hero {
  background: linear-gradient(135deg, #eefbff, #fff1ce 46%, #ffe2e7);
}
.issue-page-hero::after {
  opacity: 1;
  background-image: url("./assets/monthly-magazine.webp");
}
.profile-section-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,248,255,0.94));
}
.profile-hub-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(244,250,255,0.96));
}
.profile-empty-state {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,244,227,0.95));
}
.profile-hero-card-playful {
  background: linear-gradient(135deg, #fffef5, #fff1d0 38%, #eef7ff);
}
.playful-stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,244,223,0.95));
}
.playful-history-row {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,247,255,0.94));
}
.playful-dashboard-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,240,255,0.95));
}
.story-meta-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,244,228,0.94));
}
.story-reader-page {
  gap: 20px;
}
.reader-workspace {
  --reader-bg: linear-gradient(180deg, #f7efe1, #efe3cf);
  --reader-surface: rgba(255, 252, 246, 0.94);
  --reader-border: rgba(171, 139, 94, 0.18);
  --reader-text: #2f2a22;
  --reader-muted: #7a6753;
  --reader-accent: #8d5f2f;
  --reader-progress: linear-gradient(135deg, #d39d57, #8a6031);
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.48), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.12)),
    var(--reader-bg);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 30px 70px rgba(99, 84, 61, 0.12);
}
.reader-workspace[data-reader-theme="sepia"] {
  --reader-bg: linear-gradient(180deg, #e8d7b7, #d8c3a0);
  --reader-surface: rgba(255, 249, 239, 0.92);
  --reader-border: rgba(132, 98, 54, 0.16);
  --reader-text: #34281e;
  --reader-muted: #816852;
  --reader-accent: #8f5826;
  --reader-progress: linear-gradient(135deg, #b87d44, #724624);
}
.reader-workspace[data-reader-theme="sky"] {
  --reader-bg: linear-gradient(180deg, #dfeefc, #c7dff3);
  --reader-surface: rgba(248, 252, 255, 0.93);
  --reader-border: rgba(87, 126, 172, 0.16);
  --reader-text: #26354c;
  --reader-muted: #61738d;
  --reader-accent: #446ea6;
  --reader-progress: linear-gradient(135deg, #6dbcf2, #4c77c9);
}
.kindle-hero-card {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.45), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,248,240,0.52));
  border: 1px solid var(--reader-border);
  box-shadow: 0 22px 40px rgba(90, 76, 58, 0.1);
}
.kindle-cover-frame {
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,0.52);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.kindle-hero-copy {
  color: var(--reader-text);
}
.kindle-hero-copy p {
  color: var(--reader-muted);
}
.kindle-hero-notes {
  margin-top: 18px;
}
.reader-toolbar-card,
.reader-progress-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--reader-border);
  background: linear-gradient(180deg, var(--reader-surface), rgba(255,255,255,0.72));
  backdrop-filter: blur(14px);
}
.reader-toolbar-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}
.reader-toolbar-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}
.reader-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.reader-control-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  border: 1px solid var(--reader-border);
}
.reader-control-chip {
  min-width: 52px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--reader-text);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.reader-control-chip:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.72);
}
.reader-control-chip.active {
  color: #fff;
  background: var(--reader-progress);
  box-shadow: 0 10px 24px rgba(77, 61, 43, 0.16);
}
.reader-font-indicator {
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  color: var(--reader-muted);
}
.reader-progress-copy {
  display: grid;
  gap: 6px;
}
.reader-progress-copy strong {
  font-family: "Baloo", cursive;
  font-size: 1.55rem;
  color: var(--reader-text);
}
.reader-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(124, 110, 91, 0.12);
}
.reader-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--reader-progress);
  transition: width 220ms ease;
}
.reader-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 28px;
  border: 1px solid var(--reader-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.24));
}
.reader-utility-copy {
  display: grid;
  gap: 4px;
}
.reader-utility-copy strong {
  font-family: "Baloo", cursive;
  font-size: 1.4rem;
  color: var(--reader-text);
}
.reader-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.reader-control-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.reader-book-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.reader-page-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 10px;
  border-radius: 26px;
  background: rgba(255,255,255,0.46);
  border: 1px solid var(--reader-border);
  backdrop-filter: blur(12px);
}
.page-rail-dot {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  color: var(--reader-muted);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.page-rail-dot:hover {
  transform: translateX(2px);
  background: rgba(255,255,255,0.84);
}
.page-rail-dot.active {
  color: #fff;
  background: var(--reader-progress);
  box-shadow: 0 16px 24px rgba(77, 61, 43, 0.16);
}
.kindle-book {
  display: grid;
  gap: 22px;
  width: min(100%, 860px);
  margin: 0 auto;
}
.kindle-page {
  padding: 18px;
  border-radius: 30px;
  border: 1px solid var(--reader-border);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.03), transparent 26px),
    linear-gradient(180deg, var(--reader-surface), rgba(255,255,255,0.82));
  box-shadow: 0 24px 40px rgba(90, 76, 58, 0.1);
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 260ms ease, filter 260ms ease;
}
.kindle-page-inner {
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 54px);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0)),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(141, 111, 75, 0.045) 33px 34px);
}
.kindle-page .story-rich-copy p,
.kindle-page .story-rich-copy li {
  font-size: calc(1.08rem * var(--reader-font-scale));
  line-height: calc(2.05 * var(--reader-font-scale));
  color: var(--reader-text);
}
.kindle-page .story-rich-copy p + p {
  margin-top: 0.85em;
}
.kindle-page .story-rich-copy strong,
.kindle-page .story-rich-copy b {
  color: color-mix(in srgb, var(--reader-text) 82%, #000 18%);
}
.kindle-page,
.kindle-illustration {
  opacity: 0.74;
  filter: saturate(0.92);
}
.kindle-page.is-active-page,
.kindle-illustration.is-active-page {
  opacity: 1;
  filter: saturate(1);
  transform: perspective(1600px) rotateY(0deg) translateY(-2px);
  box-shadow: 0 34px 54px rgba(82, 65, 47, 0.15);
}
.kindle-page.is-before-page {
  transform: perspective(1600px) rotateY(-3deg);
}
.kindle-page-spread {
  transform-origin: right center;
}
.kindle-page-spread.is-before-page {
  transform: perspective(1600px) rotateY(3deg);
}
.kindle-illustration {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--reader-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.68));
}
.kindle-illustration img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}
.kindle-illustration figcaption {
  text-align: center;
  color: var(--reader-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reader-workspace:fullscreen {
  width: 100%;
  min-height: 100vh;
  padding: 28px;
  overflow: auto;
  border-radius: 0;
}
.reader-workspace:fullscreen .reader-page-rail {
  top: 24px;
}
.story-reader-hero {
  background: linear-gradient(135deg, #fff9de, #ffe6d0 42%, #e9f6ff);
}
.story-reader-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
}
.story-text-card {
  background: linear-gradient(180deg, #fffefb, #fff6e9);
  border: 1px solid rgba(240, 190, 120, 0.18);
  position: relative;
  overflow: hidden;
  transform-origin: left center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.story-text-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 16px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 211, 149, 0.7), rgba(138, 215, 255, 0.45));
}
.story-text-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(255,255,255,0) 50%, rgba(255, 221, 173, 0.88) 50%);
  border-bottom-right-radius: 22px;
  transform: translate(18px, 18px) rotate(0deg);
  transition: transform 260ms ease;
}
.story-illustration {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}
.reader-layout .story-text-card:nth-of-type(odd) {
  transform: rotate(-0.2deg);
}
.reader-layout .story-text-card:nth-of-type(even) {
  transform: rotate(0.2deg);
}
.story-text-card:hover {
  transform: perspective(1200px) rotateY(-4deg) translateY(-2px);
  box-shadow: 0 28px 42px rgba(108, 121, 170, 0.14);
}
.story-text-card:hover::after {
  transform: translate(0, 0) rotate(-8deg);
}
.issue-reader-hero {
  background: linear-gradient(135deg, #eefbff, #fff1c8 44%, #ffe0e8);
}
.issue-action-row {
  margin-bottom: 16px;
}
.issue-preview-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(241,249,255,0.94));
}
.stories-hero {
  background: linear-gradient(135deg, #ffe8b6, #ffd9c5 42%, #e5f1ff);
}
.stories-hero::after {
  opacity: 1;
  background-image: url("./assets/moral-story.webp");
}
.infotainment-hero {
  background: linear-gradient(135deg, #dff7ff, #e9ffd5 45%, #fff0bf);
}
.infotainment-hero::after {
  opacity: 1;
  background-image: url("./assets/kids-gk.webp");
}
.parent-hero {
  background: linear-gradient(135deg, #f5f4ff, #eef6ff 44%, #fff3dc);
}
.parent-hero::after {
  opacity: 1;
  background-image: url("./assets/current-gk.webp");
}
.story-filter-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,241,225,0.92));
}
.story-load-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(236,246,255,0.92));
}
.story-filter-chip {
  padding-inline: 16px;
  background: rgba(255, 190, 139, 0.2);
}
.issue-section h2 {
  margin-bottom: 16px;
}
.daily-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,247,255,0.95));
}
.monthly-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,242,222,0.95));
}
.gk-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,255,232,0.95));
}
.playful-gk-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}
.playful-gk-tile::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(118, 205, 247, 0.18);
}
.parent-tools-grid .form-card,
.parent-tools-grid #ad-policy-result {
  min-height: 100%;
}
.parent-panel-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,246,255,0.94));
}
.parent-stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,245,233,0.94));
}
.parent-summary-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(243,240,255,0.94));
}
.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.profile-action-button {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.profile-action-button:hover,
.profile-action-button.active {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fffef7, #edf5ff);
}
.profile-action-button strong {
  font-family: "Baloo", cursive;
  font-size: 1.4rem;
  line-height: 1;
}
.profile-action-button small {
  color: var(--muted);
  line-height: 1.5;
}
.profile-action-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.chart-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.chart-metric-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.95));
  border: 1px solid var(--line);
}
.chart-metric-card h4 {
  margin: 0 0 8px;
  font-family: "Baloo", cursive;
  font-size: 1.08rem;
}
.chart-metric-card p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.split-bar-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.split-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
}
.split-bar-row label,
.split-bar-row strong {
  font-size: 0.95rem;
}
.split-bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(119, 145, 215, 0.16);
}
.split-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #72cdf6, #6c7cff);
}
.analytics-chart-stack {
  display: grid;
  gap: 18px;
}
.parent-hub-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(242,249,255,0.96));
}
.parent-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.parent-menu-button {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.parent-menu-button:hover,
.parent-menu-button.active {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fffdf6, #edf6ff);
}
.parent-menu-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.parent-menu-button strong {
  font-family: "Baloo", cursive;
  font-size: 1.4rem;
  line-height: 1;
}
.parent-menu-button small {
  color: var(--muted);
  line-height: 1.5;
}
.parent-menu-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.parent-menu-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.parent-detail-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.96));
  border: 1px solid var(--line);
}
.parent-detail-card h4 {
  margin: 0 0 8px;
  font-family: "Baloo", cursive;
  font-size: 1.1rem;
}
.parent-detail-card p {
  margin: 0;
  line-height: 1.6;
}
.goal-meter {
  display: grid;
  gap: 12px;
}
.goal-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 152, 221, 0.18);
}
.goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff9a63, #ff6c7d);
}
.weekly-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
}
.weekly-bar {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.weekly-bar span {
  display: block;
  width: 100%;
  min-height: 18px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #78d2ff, #6c7cff);
}
.weekly-bar label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
}
.weekly-bar small {
  color: var(--muted);
  font-size: 0.78rem;
}
.options-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(236,247,255,0.95));
}
.quick-options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.option-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.option-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1ae, #ffd9d9);
  box-shadow: 0 10px 22px rgba(117, 142, 201, 0.14);
}
.option-card:nth-child(2)::before {
  background: linear-gradient(135deg, #dff6ff, #bde4ff);
}
.option-card:nth-child(3)::before {
  background: linear-gradient(135deg, #e7ffd8, #c8f0b6);
}
.option-card:nth-child(4)::before {
  background: linear-gradient(135deg, #f7e6ff, #ffd4ea);
}
.option-card h3 {
  margin: 4px 0 10px;
  font-size: 1.55rem;
}
.option-card p:last-child {
  margin: 0;
  line-height: 1.65;
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.quick-link-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(111, 141, 209, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.quick-link-card span {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  font-weight: 700;
}
.quick-link-card strong {
  font-family: "Baloo", cursive;
  font-size: 1.35rem;
  line-height: 1.1;
}
.quick-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(77, 101, 184, 0.12);
}
.static-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff4bf, #ffe3d7 45%, #e0f1ff);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.static-hero::before,
.static-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 28px;
}
.static-hero::before {
  width: 96px;
  height: 96px;
  right: 30px;
  top: 26px;
  background: rgba(255,255,255,0.38);
}
.static-hero::after {
  right: 34px;
  bottom: 26px;
  width: 112px;
  height: 112px;
  opacity: 0;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 30px rgba(84, 103, 155, 0.18);
}
.static-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.static-hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-content: center;
}
.static-pill {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 36px rgba(74, 91, 145, 0.1);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.info-card p,
.info-card li,
.rich-copy p,
.rich-copy li {
  line-height: 1.7;
}
.info-card ul,
.rich-copy ul {
  margin: 0;
  padding-left: 18px;
}
.rich-copy {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-highlight {
  display: grid;
  gap: 14px;
}
.contact-box {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffef7, #eef8ff);
  border: 1px solid var(--line);
}

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

@media (max-width: 980px) {
  .topbar, .hero-layout, .grid-2, .promo-grid, .parent-grid, .stats-grid, .story-grid, .issue-grid, .gk-grid, .featured-panel, .continue-card, .hero-reader, .profile-hero-card, .issue-panel .issue-link, .media-panel .issue-link, .hero-home, .spark-grid, .grid-hero-lower, .play-strip, .quick-links-grid, .info-grid, .static-hero, .footer-card, .hero-mini-stats, .funzone-card, .quick-options-grid, .skeleton-grid, .issue-skeleton-grid, .parent-menu-grid, .parent-menu-grid-inner, .profile-action-grid, .chart-metrics-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    position: static;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .nav-wrap {
    display: none;
    width: 100%;
    padding-top: 14px;
  }
  .nav-wrap.open {
    display: grid;
    gap: 14px;
  }
  .main-nav, .topbar-actions { justify-content: center; }
  .main-nav {
    flex-direction: column;
  }
  .nav-link, .nav-button {
    width: 100%;
  }
  .parent-grid .wide { grid-column: span 1; }
  .section-heading-row { flex-direction: column; align-items: flex-start; }
  .hero-home-visual { min-height: 360px; gap: 16px; }
  .floating-note { position: static; max-width: none; }
  .sky-doodles {
    opacity: 0.78;
  }
  .hero-mascot {
    position: static;
    transform: none;
  }
  .weekly-bars {
    min-height: 180px;
  }
  .reader-toolbar-card {
    grid-template-columns: 1fr;
  }
  .reader-toolbar-actions {
    justify-content: flex-start;
  }
  .reader-book-shell {
    grid-template-columns: 1fr;
  }
  .reader-page-rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 16px, 1200px); }
  .hero-layout, .section-card, .panel-card, .promo-card, .continue-card, .form-card, .footer-card, .reader-text, .history-row, .stat-card, .dashboard-card, .result-card, .gk-tile, .profile-hero-card, .featured-panel, .hero-reader, .hero-home, .static-hero, .play-card, .info-card, .rich-copy { padding: 18px; }
  .hero-card { min-height: 520px; }
  .hero-home-copy h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-scene-card img { min-height: 280px; }
  .brand small {
    font-size: 0.82rem;
  }
  .cloud {
    transform: scale(0.72);
  }
  .reader-workspace {
    padding: 14px;
    border-radius: 26px;
  }
  .reader-control-group {
    width: 100%;
    justify-content: center;
  }
  .reader-utility-bar,
  .reader-utility-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .reader-toolbar-actions .primary-button {
    width: 100%;
  }
  .kindle-page {
    padding: 10px;
    border-radius: 22px;
  }
  .kindle-page-inner {
    padding: 18px 16px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  }
  .kindle-illustration img {
    max-height: 300px;
  }
}
