/* =========================================================
   Phonics Island · 拼读小岛
   A hand-drawn, sticker-book phonics playground
   ========================================================= */

@font-face {
  font-family: "Baloo 2";
  src: url("assets/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff7e8;
  --cream-2: #fffaf0;
  --paper: #fffdf8;
  --ink: #25314a;
  --ink-2: #485574;
  --muted: #7d88a1;
  --line: #eee1c8;
  --line-strong: #e3d2b2;

  --coral: #ff7a59;
  --coral-dark: #d94d2f;
  --coral-soft: #ffe4dc;
  --mint: #4ecdc4;
  --mint-dark: #218e87;
  --mint-soft: #dff8f4;
  --sunny: #ffd166;
  --sunny-dark: #b77a00;
  --sunny-soft: #fff2c9;
  --sky: #7fb5ff;
  --sky-dark: #3268b8;
  --sky-soft: #e7f0ff;
  --lilac: #b79cff;
  --lilac-dark: #6949c5;
  --lilac-soft: #f0eaff;
  --pink: #ff9cc2;
  --pink-dark: #bd4a75;
  --pink-soft: #ffe8f1;
  --green: #7ed957;
  --green-dark: #4c982c;
  --green-soft: #eaf9e2;

  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 46px rgba(71, 54, 22, 0.1);
  --shadow-card: 0 8px 26px rgba(71, 54, 22, 0.09);
  --shadow-pop: 0 5px 0 rgba(37, 49, 74, 0.14);
  --font-display: "Baloo 2", "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease-pop: cubic-bezier(0.2, 1.5, 0.4, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(133, 105, 56, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.2) 70%, transparent);
  pointer-events: none;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, .display { font-family: var(--font-display); line-height: 1.14; letter-spacing: -0.015em; }
button { border: 0; background: none; }
:focus-visible { outline: 4px solid rgba(127, 181, 255, 0.7); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--sunny); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-sprite symbol { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg:has(> use[href^="#i-"]) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite symbol#logo-owl, .svg-sprite symbol#mascot-owl, .svg-sprite symbol#mascot-pig, .svg-sprite symbol#mascot-frog { stroke: none; }

/* ---------- background decor ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-cloud {
  position: absolute;
  width: 220px; height: 60px;
  background: #fff;
  border-radius: 999px;
  opacity: 0.62;
  filter: blur(0.2px);
}
.bg-cloud::before, .bg-cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.bg-cloud::before { width: 90px; height: 90px; left: 35px; top: -44px; }
.bg-cloud::after { width: 64px; height: 64px; right: 34px; top: -28px; }
.cloud-a { top: 120px; left: -80px; transform: scale(1.1); }
.cloud-b { top: 44%; right: -100px; transform: scale(0.8); opacity: 0.45; }
.cloud-c { bottom: 60px; left: 22%; transform: scale(0.65); opacity: 0.35; }
.bg-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; opacity: 0.5; }
.dot-a { background: var(--coral); top: 200px; right: 8%; }
.dot-b { background: var(--mint); top: 62%; left: 5%; width: 20px; height: 20px; }
.dot-c { background: var(--lilac); bottom: 16%; right: 12%; width: 11px; height: 11px; }
.bg-ring { position: absolute; border: 3px solid var(--sunny); border-radius: 50%; opacity: 0.36; }
.ring-a { width: 52px; height: 52px; top: 28%; left: 4%; }
.ring-b { width: 34px; height: 34px; top: 16%; right: 22%; border-color: var(--mint); }
.bg-star { position: absolute; font-size: 28px; color: var(--coral); opacity: 0.4; }
.star-a { top: 32%; right: 6%; transform: rotate(14deg); }
.star-b { top: 72%; left: 8%; font-size: 20px; color: var(--sky); }
.star-c { top: 48%; right: 3%; font-size: 18px; color: var(--sunny); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: rgba(255, 247, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 190, 148, 0.28);
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--line);
  transition: transform 0.25s var(--ease-pop);
}
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.04); }
.brand-mark svg { width: 42px; height: 42px; }
.brand-type { display: flex; flex-direction: column; line-height: 1.02; }
.brand-type strong { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.brand-type small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; margin-top: 3px; }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.desktop-nav a {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 15px;
  color: var(--ink-2);
  font-size: 14px; font-weight: 800;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.desktop-nav a svg { width: 19px; height: 19px; }
.desktop-nav a:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.desktop-nav a.active { background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(37, 49, 74, 0.18); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.star-balance {
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 15px 0 10px;
  background: #fff;
  border: 2px solid var(--sunny);
  border-radius: 999px;
  box-shadow: 0 3px 0 #efd085;
  font-weight: 900;
  color: var(--ink);
  transition: transform 0.2s;
}
.star-balance:hover { transform: translateY(-2px) rotate(-1deg); }
.star-coin {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--sunny); color: #9c6900; border-radius: 50%;
  font-size: 16px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.09);
}
.profile-chip {
  display: flex; align-items: center; gap: 9px;
  height: 48px; padding: 3px 10px 3px 4px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--line);
  transition: transform 0.2s, border-color 0.2s;
}
.profile-chip:hover { transform: translateY(-2px); border-color: var(--mint); }
.mini-avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mint-soft);
  overflow: hidden;
  flex: 0 0 auto;
}
.mini-avatar > svg { width: 100%; height: 100%; }
.avatar-accessory { position: absolute; top: 1px; right: 1px; font-size: 15px; line-height: 1; }
.profile-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.12; }
.profile-meta strong { font-size: 13px; font-weight: 900; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta small { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.chevron { width: 16px; height: 16px; color: var(--muted); }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--line);
  transition: transform 0.2s, border-color 0.2s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(5deg); border-color: var(--sky); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.small { width: 38px; height: 38px; }

/* ---------- bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- generic layout ---------- */
#view { min-height: 60vh; outline: none; }
.page { width: min(1240px, calc(100% - 56px)); margin: 0 auto; padding: 30px 0 70px; animation: pageIn 0.42s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 18px; }
.section-heading h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.section-heading p { color: var(--muted); font-size: 13px; font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--coral-dark);
  font-size: 12px; font-weight: 900; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; opacity: 0.5; }
.muted { color: var(--muted); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 900;
  border: 2px solid transparent;
  transition: transform 0.16s var(--ease-pop), box-shadow 0.16s, background 0.2s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(3px); box-shadow: none !important; }
.btn-primary { background: var(--coral); color: #fff; border-color: var(--coral-dark); box-shadow: 0 5px 0 var(--coral-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-dark); }
.btn-mint { background: var(--mint); color: #0d514d; border-color: var(--mint-dark); box-shadow: 0 5px 0 var(--mint-dark); }
.btn-mint:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--mint-dark); }
.btn-sunny { background: var(--sunny); color: #6b4900; border-color: var(--sunny-dark); box-shadow: 0 5px 0 var(--sunny-dark); }
.btn-sunny:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sunny-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: 0 4px 0 var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-strong); }
.btn-quiet { background: rgba(255, 255, 255, 0.66); color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { background: #fff; transform: translateY(-1px); }
.btn-lg { min-height: 58px; padding: 0 29px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 12.5px; }
.btn-icon-round { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  font-size: 11px; font-weight: 900; letter-spacing: 0.04em;
}
.pill.coral { background: var(--coral-soft); border-color: #ffc5b4; color: var(--coral-dark); }
.pill.mint { background: var(--mint-soft); border-color: #a7e8e2; color: var(--mint-dark); }
.pill.sunny { background: var(--sunny-soft); border-color: #f3d990; color: var(--sunny-dark); }
.pill.lilac { background: var(--lilac-soft); border-color: #d7c8ff; color: var(--lilac-dark); }
.pill.sky { background: var(--sky-soft); border-color: #c1d8ff; color: var(--sky-dark); }

/* =========================================================
   HOME
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 24px;
  min-height: 456px;
  padding: 42px 40px 34px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.8) 0 90px, transparent 91px),
    radial-gradient(circle at 8% 100%, rgba(255, 255, 255, 0.45) 0 130px, transparent 131px),
    linear-gradient(118deg, #ffe9d5 0%, #fff4df 42%, #e2f8f2 100%);
  border: 2px solid #efdabb;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border: 2px dashed rgba(37, 49, 74, 0.1);
  border-radius: 50%;
  right: -100px; bottom: -150px;
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.hero-eyebrow .phase-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--ink); color: #fff;
  border-radius: 9px;
  font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  box-shadow: 0 3px 0 rgba(37, 49, 74, 0.2);
}
.hero-eyebrow .phase-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sunny); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.25); }
.hero-eyebrow > span:last-child { color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.hero h1 {
  font-size: clamp(42px, 4.8vw, 65px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 620px;
}
.hero h1 .marker {
  position: relative;
  z-index: 1;
  color: var(--coral-dark);
  white-space: nowrap;
}
.hero h1 .marker::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px; right: -4px; bottom: 3px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.7);
  transform: rotate(-1deg);
}
.hero-sub { max-width: 480px; margin: 18px 0 23px; color: var(--ink-2); font-size: 15.5px; font-weight: 600; line-height: 1.7; }
.hero-sub b { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.hero-stats { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.hero-stat { display: flex; align-items: center; gap: 9px; }
.hero-stat + .hero-stat { border-left: 1.5px dashed rgba(37, 49, 74, 0.18); padding-left: 24px; }
.hero-stat-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-size: 19px; }
.hero-stat-ico.sun { background: var(--sunny-soft); }
.hero-stat-ico.fire { background: var(--coral-soft); }
.hero-stat-ico.flower { background: var(--mint-soft); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1; font-weight: 800; }
.hero-stat span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; margin-top: 3px; }

.hero-scene { position: relative; min-height: 380px; display: flex; align-items: flex-end; justify-content: center; }
.hero-sun {
  position: absolute; top: 12px; right: 18px;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--sunny);
  box-shadow: 0 0 0 12px rgba(255, 209, 102, 0.2);
  animation: floaty 6s ease-in-out infinite;
}
.hero-sun::before, .hero-sun::after {
  content: ""; position: absolute; inset: -21px; border: 2px dashed rgba(183, 122, 0, 0.32); border-radius: 50%;
}
.hero-sun::after { inset: -35px; opacity: 0.5; }
.hero-cloud {
  position: absolute; top: 77px; left: 4px;
  width: 100px; height: 28px; border-radius: 999px; background: #fff; opacity: 0.9;
}
.hero-cloud::before, .hero-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.hero-cloud::before { width: 44px; height: 44px; left: 15px; top: -22px; }
.hero-cloud::after { width: 30px; height: 30px; right: 14px; top: -14px; }
.mascot-stage { position: relative; width: 380px; height: 380px; display: flex; align-items: flex-end; justify-content: center; }
.mascot-halo {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 100px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.38), transparent 68%);
}
.mascot-main { position: relative; z-index: 3; width: 292px; height: 292px; filter: drop-shadow(0 18px 16px rgba(60, 91, 76, 0.16)); animation: mascotBob 4.8s ease-in-out infinite; }
.mascot-main > svg { width: 100%; height: 100%; }
@keyframes mascotBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.speech-bubble {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  z-index: 5;
  width: max-content; max-width: 250px;
  padding: 13px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(37, 49, 74, 0.12);
  font-size: 13px; font-weight: 800; line-height: 1.5;
  text-align: center;
}
.speech-bubble::after {
  content: ""; position: absolute; bottom: -10px; left: 42%;
  width: 18px; height: 18px; background: #fff;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.speech-bubble small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.1em; margin-bottom: 2px; }
.float-tile {
  position: absolute;
  display: grid; place-items: center;
  width: 66px; height: 72px;
  border-radius: 18px;
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(37, 49, 74, 0.14);
  z-index: 4;
  animation: tileFloat 5s ease-in-out infinite;
}
.float-tile.t1 { left: 20px; bottom: 160px; background: var(--sunny); transform: rotate(-8deg); animation-delay: -1s; }
.float-tile.t2 { right: 23px; bottom: 205px; background: var(--coral); color: #fff; transform: rotate(7deg); animation-delay: -2.3s; }
.float-tile.t3 { right: 35px; bottom: 87px; background: var(--sky); color: #fff; transform: rotate(-4deg); animation-delay: -3.1s; }
@keyframes tileFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
.hero-ground { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 350px; height: 70px; border-radius: 50%; background: rgba(126, 217, 87, 0.24); filter: blur(1px); }
.hero-flower { position: absolute; bottom: 36px; font-size: 32px; z-index: 4; }
.hero-flower.f1 { left: 67px; transform: rotate(-8deg); }
.hero-flower.f2 { right: 56px; transform: rotate(8deg) scale(0.8); }

.quick-strip {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.quick-strip::-webkit-scrollbar { display: none; }
.quick-strip .quick-label { flex: 0 0 auto; font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: 0.12em; margin-right: 4px; }
.phase-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 900;
  color: var(--ink-2);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.phase-chip:hover { transform: translateY(-2px); border-color: var(--mint); }
.phase-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(37, 49, 74, 0.2); }
.phase-chip.locked { opacity: 0.48; background: #f4ecdd; }
.phase-chip .num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--ink); font-family: var(--font-display); font-size: 11px; }
.phase-chip.active .num { background: var(--sunny); color: #6b4900; }
.phase-chip svg { width: 13px; height: 13px; }

.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.module-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 300px;
  padding: 22px 21px 19px;
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 5px 0 var(--line-strong), 0 18px 34px rgba(71, 54, 22, 0.06);
  overflow: hidden;
  transition: transform 0.2s var(--ease-pop), box-shadow 0.2s;
}
.module-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 8px 0 var(--line-strong), 0 26px 44px rgba(71, 54, 22, 0.1); }
.module-card:active { transform: translateY(1px); box-shadow: 0 3px 0 var(--line-strong); }
.module-card .module-blob {
  position: absolute;
  width: 150px; height: 150px; border-radius: 50%;
  right: -42px; top: -52px; opacity: 0.45;
}
.module-card.card-blend .module-blob { background: var(--coral-soft); }
.module-card.card-write .module-blob { background: var(--sky-soft); }
.module-card.card-alien .module-blob { background: var(--lilac-soft); }
.module-card.card-picture .module-blob { background: var(--mint-soft); }
.module-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.module-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 15px;
  border: 2px solid;
  flex: 0 0 auto;
}
.module-icon svg { width: 26px; height: 26px; }
.card-blend .module-icon { background: var(--coral-soft); border-color: #ffc5b4; color: var(--coral-dark); }
.card-write .module-icon { background: var(--sky-soft); border-color: #c1d8ff; color: var(--sky-dark); }
.card-alien .module-icon { background: var(--lilac-soft); border-color: #d7c8ff; color: var(--lilac-dark); }
.card-picture .module-icon { background: var(--mint-soft); border-color: #a7e8e2; color: var(--mint-dark); }
.module-tag { font-family: var(--font-display); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.module-card h3 { position: relative; margin-top: 18px; font-size: 23px; font-weight: 800; }
.module-card p { position: relative; margin-top: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.6; min-height: 40px; }
.module-visual { position: relative; margin: 15px 0 13px; flex: 1; display: flex; align-items: center; }
.mini-blend { display: flex; gap: 5px; align-items: center; }
.mini-blend span {
  width: 34px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--cream); border: 1.5px solid var(--line);
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
}
.mini-blend span:nth-child(2) { background: var(--coral-soft); border-color: #ffc5b4; }
.mini-blend .arrow { width: 16px; height: 16px; color: var(--muted); border: 0; background: none; }
.write-preview { display: flex; align-items: center; gap: 9px; }
.write-preview .ghost-letter { font-family: var(--font-display); font-size: 54px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.6px #a9bddb; letter-spacing: 3px; line-height: 1; }
.write-preview .pencil-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.alien-preview { display: flex; align-items: flex-end; gap: 9px; }
.alien-preview .mini-alien { width: 46px; height: 52px; border-radius: 50% 50% 44% 44%; background: var(--lilac); border: 1.5px solid var(--lilac-dark); position: relative; }
.alien-preview .mini-alien::before, .alien-preview .mini-alien::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; top: 17px; }
.alien-preview .mini-alien::before { left: 10px; } .alien-preview .mini-alien::after { right: 10px; }
.alien-preview .alien-word { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: 0.06em; color: var(--lilac-dark); transform: rotate(-4deg); }
.picture-preview { display: flex; align-items: center; gap: 8px; }
.picture-preview .pic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--mint-soft); font-size: 30px; border: 1.5px dashed #8fd9d2; transform: rotate(-4deg); }
.picture-preview .pic:nth-child(2) { transform: rotate(4deg); background: var(--sunny-soft); border-color: #e8ca7e; }
.picture-preview .qmark { font-family: var(--font-display); font-size: 27px; color: var(--mint-dark); font-weight: 800; }
.card-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 12.5px; font-weight: 900; }
.card-cta svg { width: 18px; height: 18px; transition: transform 0.2s; }
.module-card:hover .card-cta svg { transform: translateX(4px); }
.card-blend .card-cta { color: var(--coral-dark); }
.card-write .card-cta { color: var(--sky-dark); }
.card-alien .card-cta { color: var(--lilac-dark); }
.card-picture .card-cta { color: var(--mint-dark); }

.split-section { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 17px; margin-top: 22px; }
.feature-wide {
  position: relative;
  display: flex; align-items: stretch;
  min-height: 208px;
  padding: 25px 27px;
  border-radius: 28px;
  border: 2px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 4px 0 var(--line-strong);
  overflow: hidden;
  transition: transform 0.2s;
}
.feature-wide:hover { transform: translateY(-4px); }
.feature-wide.sentence-feature { background: linear-gradient(115deg, #eef8ff, #fff); }
.feature-wide.tricky-feature { background: linear-gradient(115deg, #fff2c9, #fff); }
.feature-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 62%; }
.feature-copy .eyebrow { margin-bottom: 6px; color: var(--sky-dark); }
.tricky-feature .feature-copy .eyebrow { color: var(--sunny-dark); }
.feature-copy h3 { font-size: 24px; font-weight: 800; }
.feature-copy p { margin: 5px 0 14px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.feature-copy .card-cta { border: 0; padding: 0; color: var(--sky-dark); }
.tricky-feature .feature-copy .card-cta { color: var(--sunny-dark); }
.feature-art { position: absolute; right: 17px; bottom: 10px; width: 39%; height: 85%; display: flex; align-items: flex-end; justify-content: center; }
.sentence-scene { position: relative; width: 190px; height: 150px; border-radius: 22px; background: #fff; border: 2px solid #cfe2ff; box-shadow: 5px 5px 0 rgba(127, 181, 255, 0.18); transform: rotate(2deg); }
.sentence-scene .scene-emoji { position: absolute; font-size: 45px; }
.sentence-scene .se1 { left: 17px; bottom: 18px; }
.sentence-scene .se2 { right: 18px; bottom: 20px; transform: rotate(8deg); }
.sentence-scene .se3 { left: 50%; top: 13px; transform: translateX(-50%) scale(0.9); opacity: 0.7; }
.sentence-scene .speech { position: absolute; left: 50%; top: 45%; transform: translateX(-50%) rotate(-3deg); padding: 5px 9px; border-radius: 9px; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 11px; font-weight: 800; white-space: nowrap; }
.tricky-art { width: 165px; height: 140px; position: relative; }
.tricky-card-mini { position: absolute; width: 105px; height: 128px; border-radius: 18px; background: #fff; border: 2px solid #e9c86c; box-shadow: 4px 4px 0 #ecd48e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tricky-card-mini.one { left: 0; bottom: 0; transform: rotate(-9deg); }
.tricky-card-mini.two { right: 0; top: 0; transform: rotate(8deg); background: var(--sunny-soft); }
.tricky-card-mini strong { font-family: var(--font-display); font-size: 27px; font-weight: 800; }
.tricky-card-mini span { font-size: 22px; }
.tricky-card-mini small { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.16em; color: var(--sunny-dark); }

.home-lower { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 34px; align-items: start; }
.journey-preview { background: #fff; border: 2px solid var(--line-strong); border-radius: 30px; padding: 23px 24px; box-shadow: 0 4px 0 var(--line-strong); }
.journey-preview .section-heading { margin: 0 0 14px; }
.journey-preview .section-heading h2 { font-size: 23px; }
.journey-track { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 5px 2px 9px; scrollbar-width: none; }
.journey-track::-webkit-scrollbar { display: none; }
.journey-node { flex: 1 0 145px; position: relative; text-align: center; padding: 0 5px; }
.journey-node::before { content: ""; position: absolute; top: 25px; left: -50%; width: 100%; border-top: 2px dashed #dfd1b8; z-index: 0; }
.journey-node:first-child::before { display: none; }
.journey-dot {
  position: relative; z-index: 1;
  width: 52px; height: 52px; margin: 0 auto 8px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line-strong);
  font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink-2);
}
.journey-node.done .journey-dot { background: var(--green); border-color: var(--green-dark); color: #24510f; }
.journey-node.current .journey-dot { background: var(--coral); border-color: var(--coral-dark); color: #fff; box-shadow: 0 0 0 6px var(--coral-soft); }
.journey-node.locked .journey-dot { background: #f4ecdd; color: #a99b83; }
.journey-node strong { display: block; font-size: 11.5px; font-weight: 900; }
.journey-node span { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.journey-preview .card-cta { border-top: 1.5px dashed var(--line); margin-top: 10px; padding-top: 12px; }

.owl-tip-card {
  position: relative;
  min-height: 230px;
  padding: 23px;
  border-radius: 30px;
  background: var(--mint-soft);
  border: 2px solid #a7e8e2;
  box-shadow: 0 4px 0 #a7e8e2;
  overflow: hidden;
}
.owl-tip-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; bottom: -55px; background: rgba(255, 255, 255, 0.66); border-radius: 50%; }
.owl-tip-card .tip-owl { position: absolute; right: 6px; bottom: -8px; width: 146px; height: 146px; transform: rotate(4deg); }
.owl-tip-card h3 { position: relative; font-size: 19px; max-width: 170px; }
.owl-tip-card p { position: relative; max-width: 190px; margin-top: 8px; color: #346f68; font-size: 11.5px; font-weight: 700; line-height: 1.65; }
.owl-tip-card .btn { position: relative; margin-top: 13px; }
.owl-tip-card .tiny-stars { position: absolute; top: 19px; right: 24px; font-size: 17px; color: var(--sunny-dark); letter-spacing: 4px; transform: rotate(8deg); }

.parent-note {
  display: flex; align-items: center; gap: 16px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1.5px dashed #d9c8a8;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink-2);
  font-size: 12px; font-weight: 650;
}
.parent-note .pn-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--sunny-soft); font-size: 18px; }
.parent-note b { color: var(--ink); }
.parent-note a { color: var(--coral-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   PAGE HEADS / CARDS
   ========================================================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 7px 0 24px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 800; }
.page-head h1 .accent { color: var(--coral); }
.page-head p { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 650; max-width: 560px; }
.page-head-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.panel { background: #fff; border: 2px solid var(--line-strong); border-radius: 28px; box-shadow: 0 4px 0 var(--line-strong); }
.panel-pad { padding: 24px; }
.panel h3 { font-size: 20px; font-weight: 800; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.panel-head h3 { font-size: 19px; }
.panel-head .muted { font-size: 11px; font-weight: 800; }

/* =========================================================
   MAP
   ========================================================= */
.map-progress-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px;
  padding: 25px 28px;
  border-radius: 30px;
  background: linear-gradient(115deg, var(--ink), #3b4c6d);
  color: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.map-progress-card h2 { font-size: 28px; font-weight: 800; }
.map-progress-card p { margin-top: 5px; color: rgba(255, 255, 255, 0.68); font-size: 12.5px; font-weight: 600; max-width: 470px; }
.map-progress-card .progress-line { margin-top: 19px; }
.map-progress-card .progress-track { background: rgba(255, 255, 255, 0.16); }
.map-progress-card .progress-fill { background: var(--sunny); }
.map-progress-card .progress-meta { color: rgba(255, 255, 255, 0.7); }
.map-mini-stats { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.map-mini-stat { min-width: 105px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.map-mini-stat strong { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 800; color: var(--sunny); }
.map-mini-stat span { font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, 0.65); }
.journey-list { position: relative; display: flex; flex-direction: column; gap: 17px; }
.journey-list::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 3px dashed #e2d2b4; transform: translateX(-50%); z-index: 0; }
.phase-card {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 88px 1fr 190px; gap: 22px; align-items: center;
  width: calc(100% - 40px);
  padding: 22px 24px;
  border-radius: 30px;
  background: #fff;
  border: 2px solid var(--line-strong);
  box-shadow: 0 5px 0 var(--line-strong), 0 14px 30px rgba(71, 54, 22, 0.05);
  transition: transform 0.2s;
}
.phase-card:hover { transform: translateY(-4px); }
.phase-card:nth-child(even) { margin-left: 40px; }
.phase-card:not(.locked) .phase-number { background: var(--phase-soft, var(--cream)); color: var(--phase-color, var(--ink)); }
.phase-card.phase-1 { --phase-color: var(--sky-dark); --phase-soft: var(--sky-soft); --phase-border: #bdd8ff; }
.phase-card.phase-2 { --phase-color: var(--coral-dark); --phase-soft: var(--coral-soft); --phase-border: #ffc3b2; }
.phase-card.phase-3 { --phase-color: var(--mint-dark); --phase-soft: var(--mint-soft); --phase-border: #9be7e0; }
.phase-card.phase-4 { --phase-color: var(--lilac-dark); --phase-soft: var(--lilac-soft); --phase-border: #d5c5ff; }
.phase-card.phase-5 { --phase-color: var(--sunny-dark); --phase-soft: var(--sunny-soft); --phase-border: #efd385; }
.phase-card.locked { background: #fbf5e9; border-style: dashed; box-shadow: none; opacity: 0.72; }
.phase-number {
  width: 74px; height: 74px;
  display: grid; place-items: center;
  border-radius: 24px;
  background: #f4ecdd; color: var(--muted);
  font-family: var(--font-display); font-size: 29px; font-weight: 800;
  position: relative;
}
.phase-number small { position: absolute; bottom: 7px; font-family: var(--font-body); font-size: 8px; font-weight: 900; letter-spacing: 0.15em; }
.phase-card.locked .phase-number { background: #efe6d5; }
.phase-info h2 { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 800; }
.phase-info h2 .en { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.phase-info p { margin-top: 3px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; max-width: 580px; }
.phase-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.phase-card .gpc-mini { display: flex; gap: 4px; flex-wrap: wrap; }
.phase-card .gpc-mini span { padding: 2px 7px; border-radius: 7px; background: var(--phase-soft); color: var(--phase-color); font-family: var(--font-display); font-size: 11px; font-weight: 800; }
.phase-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.phase-side .progress-wrap { width: 100%; }
.phase-side .progress-label { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 900; color: var(--muted); margin-bottom: 5px; }
.phase-side .btn { width: 100%; }
.lock-note { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--muted); }
.lock-note svg { width: 14px; height: 14px; }
.phase-ribbon { position: absolute; top: -9px; right: 28px; padding: 3px 10px; border-radius: 7px; background: var(--coral); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: 0.1em; transform: rotate(3deg); box-shadow: 0 2px 0 var(--coral-dark); }
.phase-ribbon.done { background: var(--green); color: #24510f; box-shadow: 0 2px 0 var(--green-dark); }
.phase-ribbon.lock { background: var(--ink-2); box-shadow: none; }

/* progress */
.progress-wrap { width: 100%; }
.progress-track { height: 9px; border-radius: 999px; background: #eee5d5; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #6edcd4); transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1); }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.progress-fill.coral { background: linear-gradient(90deg, #ff9a7f, var(--coral)); }
.progress-fill.sky { background: linear-gradient(90deg, #a9cbff, var(--sky)); }
.progress-fill.lilac { background: linear-gradient(90deg, #cdbbff, var(--lilac)); }
.progress-fill.sunny { background: linear-gradient(90deg, #ffe08f, var(--sunny)); }

/* =========================================================
   PHASE DETAIL
   ========================================================= */
.back-row { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 900; padding: 8px 13px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.back-link svg { width: 16px; height: 16px; }
.phase-hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 260px; gap: 20px;
  padding: 32px 34px;
  border-radius: 34px;
  overflow: hidden;
  border: 2px solid var(--phase-border);
  background: var(--phase-soft);
}
.phase-hero::after { content: ""; position: absolute; right: 240px; top: -75px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.38); }
.phase-hero .phase-kicker { display: flex; align-items: center; gap: 8px; color: var(--phase-color); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; }
.phase-hero h1 { margin-top: 8px; font-size: clamp(34px, 4vw, 48px); }
.phase-hero p { max-width: 640px; margin-top: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.phase-hero-stats { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.phase-stat strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.phase-stat span { color: var(--muted); font-size: 9.5px; font-weight: 900; letter-spacing: 0.08em; }
.phase-hero-scene { position: relative; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.phase-hero-scene .big-number { font-family: var(--font-display); font-size: 130px; line-height: 1; font-weight: 800; color: var(--phase-color); opacity: 0.18; letter-spacing: -0.08em; }
.phase-hero-scene .hero-gpc { position: absolute; padding: 10px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--phase-border); box-shadow: 4px 4px 0 rgba(37, 49, 74, 0.08); font-family: var(--font-display); font-size: 29px; font-weight: 800; color: var(--phase-color); }
.phase-hero-scene .hero-gpc:nth-child(2) { transform: rotate(-7deg) translate(-62px, 35px); }
.phase-hero-scene .hero-gpc:nth-child(3) { transform: rotate(6deg) translate(64px, -22px); }
.phase-hero-scene .hero-gpc:nth-child(4) { transform: rotate(3deg) translate(42px, 62px); }
.phase-columns { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-top: 20px; }
.gpc-groups { display: flex; flex-direction: column; gap: 11px; }
.gpc-group { padding: 13px 14px; border-radius: 16px; background: var(--cream-2); border: 1.5px solid var(--line); }
.gpc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gpc-group-head strong { font-size: 11.5px; font-weight: 900; }
.gpc-group-head .group-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gpc-group-head span { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.group-practice { display: inline-flex; align-items: center; gap: 3px; color: var(--phase-color, var(--coral-dark)); font-size: 9px; font-weight: 900; padding: 3px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--phase-border, var(--line)); white-space: nowrap; }
.group-practice:hover { background: var(--phase-soft, var(--cream)); }
.group-practice svg { width: 11px; height: 11px; }
.gpc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.gpc-chip {
  min-width: 42px; min-height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 11px;
  background: #fff; border: 1.5px solid var(--line-strong);
  box-shadow: 0 2px 0 var(--line-strong);
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--phase-color, var(--ink));
  transition: transform 0.15s, background 0.15s;
}
.gpc-chip:hover { transform: translateY(-2px); background: var(--phase-soft, var(--cream)); }
.gpc-chip:active { transform: translateY(1px); box-shadow: none; }
.gpc-chip .mini-speaker { width: 12px; height: 12px; opacity: 0.45; }
.core-words { display: flex; flex-wrap: wrap; gap: 7px; }
.word-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 7px;
  border-radius: 11px; background: #fff; border: 1.5px solid var(--line);
  font-size: 12px; font-weight: 800;
  transition: transform 0.15s, border-color 0.15s;
}
.word-chip:hover { transform: translateY(-2px); border-color: var(--mint); }
.word-chip .emoji { font-size: 15px; }
.tricky-mini-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tricky-mini-list span { padding: 4px 8px; background: var(--sunny-soft); border: 1px solid #eed58e; border-radius: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: #8a5f00; }
.phase-actions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.phase-action {
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 17px;
  text-align: left; transition: transform 0.18s, border-color 0.18s;
}
.phase-action:hover { transform: translateY(-3px); border-color: var(--phase-border); }
.phase-action .pa-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--phase-soft); color: var(--phase-color); }
.phase-action .pa-ico svg { width: 20px; height: 20px; }
.phase-action strong { font-size: 12px; font-weight: 900; }
.phase-action span { color: var(--muted); font-size: 9.5px; font-weight: 650; }
.phase-test-banner {
  display: flex; align-items: center; gap: 18px;
  margin-top: 18px; padding: 20px 24px;
  border-radius: 24px;
  background: linear-gradient(110deg, #fff2c9, #fffaf0);
  border: 2px solid #f0d58a;
  box-shadow: 0 4px 0 #f0d58a;
}
.phase-test-banner .test-badge { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--sunny); font-size: 28px; box-shadow: 0 0 0 7px rgba(255, 209, 102, 0.24); flex: 0 0 auto; }
.phase-test-banner .test-copy { flex: 1; }
.phase-test-banner h3 { font-size: 19px; }
.phase-test-banner p { color: var(--ink-2); font-size: 11px; font-weight: 650; margin-top: 3px; }
.phase-test-banner.done { background: linear-gradient(110deg, #eaf9e2, #fff); border-color: #b6e8a0; box-shadow: 0 4px 0 #b6e8a0; }

/* =========================================================
   PRACTICE COMMON
   ========================================================= */
body[data-screen="practice"] .topbar,
body[data-screen="practice"] .bottom-nav { display: none; }
body[data-screen="practice"] { background: #fdf7ec; }
body[data-screen="practice"] .bg-decor { opacity: 0.35; }
body[data-screen="game"] .topbar,
body[data-screen="game"] .bottom-nav { display: none; }
.practice-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 42px; min-height: 100vh; display: flex; flex-direction: column; }
.practice-top { display: flex; align-items: center; gap: 15px; min-height: 58px; margin-bottom: 18px; }
.practice-title { display: flex; flex-direction: column; gap: 1px; }
.practice-title strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.practice-title span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.practice-progress { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 400px; margin-left: auto; }
.practice-progress .progress-track { height: 10px; flex: 1; background: #f0e5d3; }
.practice-progress .progress-fill { background: linear-gradient(90deg, var(--coral), #ffb18f); }
.practice-progress .progress-text { font-size: 11px; font-weight: 900; color: var(--muted); white-space: nowrap; }
.practice-stars { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--sunny-soft); border: 1.5px solid #efd487; color: #8a5f00; font-size: 12px; font-weight: 900; }
.practice-stars .star-coin { width: 22px; height: 22px; font-size: 13px; }
.practice-surface {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  background: #fff;
  border: 2px solid var(--line-strong);
  box-shadow: 0 6px 0 var(--line-strong), 0 24px 54px rgba(71, 54, 22, 0.1);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.practice-surface::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -180px; top: -170px; background: var(--cream); opacity: 0.7; pointer-events: none; }
.practice-tip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; padding: 10px 14px; background: var(--mint-soft); border-radius: 14px; color: #2d6c65; font-size: 11.5px; font-weight: 700; border: 1px solid #b7e9e4; }
.practice-tip .tip-mascot { width: 32px; height: 32px; flex: 0 0 auto; }
.practice-tip b { font-weight: 900; }
.practice-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; color: var(--muted); font-size: 10px; font-weight: 800; }
.practice-footer .footer-hint { display: flex; align-items: center; gap: 6px; }
.practice-footer svg { width: 14px; height: 14px; }

/* ---------- blending ---------- */
.blend-layout { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 32px; align-items: stretch; min-height: 520px; }
.picture-panel { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 13px; }
.picture-frame {
  position: relative;
  flex: 1;
  min-height: 335px;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--sky-soft), #fff);
  border: 2px solid #cfe2ff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.picture-frame::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, 0.66); }
.picture-frame .picture-stars { position: absolute; inset: 0; pointer-events: none; }
.picture-frame .picture-stars span { position: absolute; color: var(--sunny); font-size: 18px; opacity: 0.8; }
.picture-frame .picture-stars span:nth-child(1) { top: 22px; left: 24px; transform: rotate(-12deg); }
.picture-frame .picture-stars span:nth-child(2) { bottom: 27px; right: 30px; transform: rotate(14deg); font-size: 13px; }
.picture-frame .picture-stars span:nth-child(3) { top: 35%; right: 20px; font-size: 10px; color: var(--pink); }
.picture-emoji { position: relative; z-index: 2; font-size: clamp(96px, 12vw, 150px); line-height: 1; filter: drop-shadow(0 15px 12px rgba(71, 54, 22, 0.12)); transition: filter 0.35s, transform 0.35s; }
.picture-frame.hidden-picture .picture-emoji { filter: blur(18px); transform: scale(0.8); opacity: 0.45; }
.picture-frame.hidden-picture::after { content: "图片藏起来了"; position: absolute; z-index: 4; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 11px; font-size: 11px; font-weight: 800; }
.picture-label { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 4px 12px; background: rgba(255, 255, 255, 0.9); border-radius: 999px; color: var(--sky-dark); font-size: 9.5px; font-weight: 900; letter-spacing: 0.12em; white-space: nowrap; }
.picture-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.picture-tools .mini-note { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.toggle-picture { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 900; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream-2); }
.toggle-picture svg { width: 14px; height: 14px; }

.blend-work { display: flex; flex-direction: column; justify-content: center; }
.step-kicker { display: flex; align-items: center; gap: 8px; color: var(--coral-dark); font-size: 10px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.step-kicker .num { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--font-display); font-size: 12px; }
.blend-work h2 { margin: 8px 0 4px; font-size: clamp(27px, 3.5vw, 38px); font-weight: 800; }
.blend-work .instruction { color: var(--muted); font-size: 12px; font-weight: 650; }
.sound-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 23px 0 18px; }
.sound-tile {
  position: relative;
  min-width: 76px; min-height: 88px;
  padding: 4px 16px 8px;
  border-radius: 20px;
  border: 2.5px solid var(--tile-border, var(--sky-dark));
  background: var(--tile-bg, var(--sky-soft));
  color: var(--tile-text, var(--sky-dark));
  box-shadow: 0 5px 0 var(--tile-shadow, #b5cff4);
  font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform 0.13s, box-shadow 0.13s, filter 0.2s;
  user-select: none;
}
.sound-tile .tile-hint { font-family: var(--font-body); font-size: 8px; font-weight: 900; letter-spacing: 0.06em; opacity: 0.56; text-transform: uppercase; min-height: 10px; }
.sound-tile:hover { transform: translateY(-3px) rotate(-1deg); filter: saturate(1.05); }
.sound-tile:active, .sound-tile.is-active { transform: translateY(4px) scale(0.97); box-shadow: 0 1px 0 var(--tile-shadow); background: var(--tile-border); color: #fff; }
.sound-tile.vowel { --tile-bg: var(--coral-soft); --tile-border: #f1a28e; --tile-text: var(--coral-dark); --tile-shadow: #edb3a5; }
.sound-tile.digraph { --tile-bg: var(--lilac-soft); --tile-border: #b9a3f5; --tile-text: var(--lilac-dark); --tile-shadow: #d2c2fb; }
.sound-tile.silent { --tile-bg: #f3efe7; --tile-border: #d9cdb9; --tile-text: #a29683; --tile-shadow: #e2d7c6; font-size: 32px; }
.sound-tile.chunk { --tile-bg: var(--mint-soft); --tile-border: #91ddd7; --tile-text: var(--mint-dark); --tile-shadow: #b1e7e2; font-size: 32px; min-width: 98px; }
.sound-tile.sounding { animation: tileSound 0.38s var(--ease-pop); background: var(--tile-border); color: #fff; }
@keyframes tileSound { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-9px) scale(1.08) rotate(-2deg); } 100% { transform: translateY(0) scale(1); } }
.blend-wand {
  position: relative;
  height: 66px;
  margin: 2px 0 8px;
  border-radius: 18px;
  background: repeating-linear-gradient(90deg, #fff7e8 0 24px, #fbf0da 24px 48px);
  border: 2px dashed #e4cfa9;
  display: flex; align-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.blend-wand:active { cursor: grabbing; }
.blend-wand .wand-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, rgba(255, 209, 102, 0.55), rgba(255, 122, 89, 0.3)); transition: width 0.08s linear; }
.blend-wand .wand-label { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; color: #8d6c31; font-size: 11.5px; font-weight: 900; letter-spacing: 0.04em; pointer-events: none; }
.blend-wand .wand-hand { position: absolute; z-index: 3; left: calc(16px + var(--wand-x, 0%)); top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--coral); box-shadow: 0 4px 0 rgba(217, 77, 47, 0.18); font-size: 23px; transition: left 0.08s linear; pointer-events: none; }
.blend-wand .wand-end { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 19px; opacity: 0.55; }
.blend-wand.done .wand-hand { background: var(--sunny); }
.blend-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.blend-actions .btn-primary { flex: 1; min-width: 140px; }
.word-reveal { margin-top: 14px; display: flex; align-items: center; gap: 10px; min-height: 38px; }
.word-reveal .word-full { font-family: var(--font-display); font-size: 31px; font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.word-reveal .word-full .mask { display: inline-block; filter: blur(9px); opacity: 0.4; transition: filter 0.45s, opacity 0.45s; }
.word-reveal.revealed .word-full .mask { filter: none; opacity: 1; }
.word-reveal .tiny-note { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.sentence-mini { margin-top: 17px; padding: 12px 14px; border-radius: 13px; background: var(--cream-2); border: 1px dashed var(--line-strong); display: flex; align-items: center; gap: 10px; }
.sentence-mini .sm-ico { font-size: 18px; }
.sentence-mini p { flex: 1; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sentence-mini .mini-play { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; }
.sentence-mini .mini-play svg { width: 13px; height: 13px; }

/* record */
.record-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.record-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); font-size: 10px; font-weight: 900; }
.record-btn svg { width: 14px; height: 14px; }
.record-btn.recording { background: var(--coral); border-color: var(--coral-dark); color: #fff; animation: recPulse 1.2s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 5px rgba(255, 122, 89, 0.18); } }
.record-status { font-size: 9.5px; font-weight: 800; color: var(--muted); }
.record-playback { display: none; align-items: center; gap: 6px; }
.record-playback.show { display: inline-flex; }

/* =========================================================
   WRITING
   ========================================================= */
.writing-layout { display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: stretch; min-height: 560px; }
.writing-side { display: flex; flex-direction: column; gap: 14px; }
.writing-target-card { padding: 20px; border-radius: 24px; background: linear-gradient(145deg, var(--sky-soft), #fff); border: 2px solid #cfe2ff; }
.writing-target-card .target-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.15em; color: var(--sky-dark); }
.writing-target-card .case-pill { padding: 2px 6px; border-radius: 5px; background: #fff; border: 1px solid #cfe2ff; color: var(--sky-dark); font-size: 7.5px; letter-spacing: 0.04em; white-space: nowrap; }
.writing-target-card .target-letter { font-family: var(--font-display); font-size: 86px; font-weight: 800; line-height: 1.1; color: var(--ink); margin: 3px 0; }
.writing-target-card .target-word { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.writing-target-card .target-word .tt-emoji { font-size: 27px; }
.writing-target-card .target-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.writing-target-card .target-actions .btn { min-height: 35px; padding: 0 12px; font-size: 10px; }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; border-radius: 13px; background: var(--cream-2); border: 1.5px solid var(--line); }
.mode-tab { flex: 1 0 auto; min-height: 33px; padding: 0 8px; border-radius: 9px; color: var(--muted); font-size: 9.5px; font-weight: 900; transition: background 0.15s, color 0.15s; }
.mode-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.mode-tab:hover { color: var(--ink); }
.writing-checklist { padding: 16px; border-radius: 19px; background: var(--cream-2); border: 1.5px dashed var(--line-strong); }
.writing-checklist h4 { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 900; margin-bottom: 7px; }
.writing-checklist ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.writing-checklist li { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font-size: 10.5px; font-weight: 700; line-height: 1.4; }
.writing-checklist li::before { content: "✦"; color: var(--sunny-dark); font-size: 10px; line-height: 1.5; }
.writing-main { display: flex; flex-direction: column; gap: 12px; }
.writing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tool-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font-size: 10px; font-weight: 900; }
.tool-btn:hover { border-color: var(--sky); }
.tool-btn svg { width: 14px; height: 14px; }
.pen-dot { width: 19px; height: 19px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.pen-dot.active { box-shadow: 0 0 0 2px var(--ink); }
.trace-stage {
  position: relative;
  flex: 1;
  min-height: 410px;
  border-radius: 26px;
  background: #fffdf8;
  border: 2px solid var(--line);
  overflow: hidden;
  touch-action: none;
}
.trace-lines { position: absolute; inset: 29px 38px; pointer-events: none; }
.trace-line { position: absolute; left: 0; right: 0; border-top: 1.2px solid #e9cfa8; opacity: 0.85; }
.trace-line.dashed { border-top-style: dashed; opacity: 0.55; }
.trace-line.base { border-top: 2px solid #ddbd90; opacity: 0.9; }
.trace-line .line-label { position: absolute; left: -30px; top: -7px; font-size: 8px; color: #b6a17e; font-weight: 800; }
.trace-stage.lines-off .trace-lines { display: none; }
.trace-stage svg.guide { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trace-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.guide-stroke { fill: none; stroke: #cabda9; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 7; opacity: 0.62; }
.guide-stroke.solid { stroke: #d9cfc0; stroke-dasharray: none; stroke-width: 8; opacity: 0.7; }
.start-dot { fill: var(--green); stroke: #fff; stroke-width: 3; }
.start-number { fill: #24510f; font-family: var(--font-display); font-size: 13px; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.guide-animate { fill: none; stroke: var(--coral); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.guide-animate.play { animation: drawStroke 0.85s ease forwards; opacity: 1; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
.trace-feedback { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(8px); z-index: 5; padding: 7px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; opacity: 0; transition: 0.25s; pointer-events: none; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.trace-feedback.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.trace-feedback.good { background: var(--green-dark); }
.writing-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.writing-bottom .hint { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.writing-bottom .actions { display: flex; gap: 7px; }
.word-slots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.word-slot { min-width: 26px; height: 34px; border-bottom: 2px dashed #cbb998; display: grid; place-items: center; font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink); }
.word-slot.reveal { border-bottom-color: var(--mint); background: var(--mint-soft); border-radius: 6px 6px 0 0; }

/* =========================================================
   ALIEN
   ========================================================= */
.alien-page .practice-surface { background: radial-gradient(circle at 75% 10%, #33406e 0%, #1b2342 55%, #10162c 100%); border-color: #46547f; box-shadow: 0 6px 0 #46547f, 0 24px 54px rgba(15, 22, 45, 0.36); color: #fff; padding: 0; }
.alien-page .practice-surface::before { display: none; }
.alien-top { color: #fff; }
.alien-top .practice-title span { color: rgba(255, 255, 255, 0.52); }
.alien-top .practice-progress .progress-track { background: rgba(255, 255, 255, 0.14); }
.alien-top .practice-progress .progress-fill { background: linear-gradient(90deg, var(--lilac), var(--pink)); }
.alien-top .practice-progress .progress-text { color: rgba(255, 255, 255, 0.55); }
.alien-scene { position: relative; min-height: 585px; overflow: hidden; border-radius: 32px; }
.space-stars { position: absolute; inset: 0; pointer-events: none; }
.space-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.7; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.25); } }
.planet { position: absolute; border-radius: 50%; }
.planet.p1 { width: 150px; height: 150px; right: -40px; top: 50px; background: radial-gradient(circle at 36% 32%, #ffd98d, #e69a56 68%, #a45d3f); opacity: 0.55; box-shadow: 0 0 0 19px rgba(255, 209, 102, 0.06); }
.planet.p2 { width: 70px; height: 70px; left: 35px; top: 65px; background: radial-gradient(circle at 35% 30%, #bca9ff, #6c4de0); opacity: 0.35; }
.planet.p3 { width: 46px; height: 46px; left: 22%; bottom: 36px; background: radial-gradient(circle at 35% 30%, #8ee9e1, #218e87); opacity: 0.3; }
.alien-hud { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.alien-collection { display: flex; align-items: center; gap: 5px; }
.alien-collection .little-alien { width: 27px; height: 30px; border-radius: 50% 50% 42% 42%; border: 1.5px solid rgba(255, 255, 255, 0.35); position: relative; opacity: 0.38; transform: scale(0.9); }
.alien-collection .little-alien.on { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.15); }
.alien-collection .little-alien::before, .alien-collection .little-alien::after { content: ""; position: absolute; top: 9px; width: 5px; height: 5px; background: #fff; border-radius: 50%; }
.alien-collection .little-alien::before { left: 7px; } .alien-collection .little-alien::after { right: 7px; }
.alien-score { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); font-size: 10px; font-weight: 900; color: rgba(255, 255, 255, 0.8); }
.alien-score b { color: var(--sunny); font-family: var(--font-display); font-size: 15px; }
.alien-body { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 430px; padding: 0 24px 24px; }
.alien-judge { position: relative; margin-bottom: 10px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25)); }
.alien-judge .speech-mini { position: absolute; left: 50%; top: -23px; transform: translateX(-50%); white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 8.5px; font-weight: 900; }
.alien-judge .speech-mini::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px; background: #fff; }
.alien-figure { position: relative; width: 122px; height: 112px; }
.alien-figure .body { position: absolute; inset: 0; background: var(--accent); border: 2px solid rgba(255, 255, 255, 0.42); border-radius: 46% 54% 42% 58% / 51% 46% 54% 49%; box-shadow: inset -13px -16px 0 rgba(0, 0, 0, 0.1); }
.alien-figure .body::before { content: ""; position: absolute; inset: 19px 24px 27px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.alien-figure .antenna { position: absolute; top: -17px; left: 50%; width: 3px; height: 23px; background: rgba(255, 255, 255, 0.68); transform-origin: bottom; }
.alien-figure .antenna::before { content: ""; position: absolute; top: -8px; left: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--sunny); box-shadow: 0 0 13px rgba(255, 209, 102, 0.55); }
.alien-figure .eye { position: absolute; top: 41px; width: 25px; height: 28px; border-radius: 50%; background: #fff; }
.alien-figure .eye.l { left: 28px; } .alien-figure .eye.r { right: 28px; }
.alien-figure .eye::after { content: ""; position: absolute; width: 10px; height: 12px; border-radius: 50%; background: #1b2342; top: 8px; left: 7px; }
.alien-figure .mouth { position: absolute; left: 50%; bottom: 22px; width: 31px; height: 15px; border-radius: 0 0 20px 20px; background: rgba(27, 35, 66, 0.55); transform: translateX(-50%); }
.alien-figure .cheek { position: absolute; top: 67px; width: 14px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.alien-figure .cheek.l { left: 19px; } .alien-figure .cheek.r { right: 19px; }
.alien-word-card {
  width: min(540px, 100%);
  padding: 24px 20px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(4px);
}
.alien-word-card .alien-word-label { display: inline-flex; align-items: center; gap: 6px; font-size: 8.5px; letter-spacing: 0.22em; font-weight: 900; color: rgba(255, 255, 255, 0.48); }
.alien-word { margin: 6px 0 2px; font-family: var(--font-display); font-size: clamp(58px, 8vw, 86px); font-weight: 800; line-height: 1.05; letter-spacing: 0.07em; color: #fff; text-shadow: 0 7px 0 rgba(0, 0, 0, 0.18); }
.alien-word .ph { color: var(--sunny); }
.alien-word-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.alien-real-question { margin-top: 19px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.68); }
.alien-choice-row { display: flex; justify-content: center; gap: 12px; margin-top: 11px; }
.alien-choice {
  min-width: 156px; min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 16px;
  font-family: var(--font-body); font-size: 14px; font-weight: 900;
  border: 2px solid;
  transition: transform 0.15s, background 0.15s;
}
.alien-choice.earth { background: var(--mint); color: #073b38; border-color: #a9f0ea; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2); }
.alien-choice.fake { background: var(--lilac); color: #28155c; border-color: #dbcfff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2); }
.alien-choice:hover { transform: translateY(-3px); }
.alien-choice:active { transform: translateY(2px); box-shadow: none; }
.alien-choice .ico { font-size: 19px; }
.alien-feedback { min-height: 58px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--sunny); font-size: 12px; font-weight: 900; opacity: 0; transform: translateY(5px); transition: 0.25s; }
.alien-feedback.show { opacity: 1; transform: none; }
.alien-feedback small { color: rgba(255, 255, 255, 0.6); font-size: 10px; font-weight: 700; }
.alien-progress { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.alien-progress i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.alien-progress i.done { background: var(--sunny); }
.alien-progress i.wrong { background: var(--coral); }
.alien-progress i.current { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.alien-unlock-toast { position: absolute; z-index: 8; left: 50%; top: 80px; transform: translate(-50%, -15px); padding: 12px 18px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28); font-size: 11px; font-weight: 900; opacity: 0; pointer-events: none; transition: 0.3s var(--ease-pop); }
.alien-unlock-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   PICTURE QUIZ / SENTENCE THEATER
   ========================================================= */
.quiz-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: center; min-height: 520px; }
.quiz-art { position: relative; border-radius: 32px; background: linear-gradient(145deg, var(--mint-soft), #fff); border: 2px solid #b8e9e4; min-height: 390px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.quiz-art::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.68); }
.quiz-art .big-emoji { position: relative; z-index: 2; font-size: clamp(110px, 14vw, 170px); filter: drop-shadow(0 17px 15px rgba(71, 54, 22, 0.14)); animation: artFloat 4s ease-in-out infinite; }
@keyframes artFloat { 50% { transform: translateY(-8px) rotate(1deg); } }
.quiz-art .doodle { position: absolute; font-size: 25px; opacity: 0.55; }
.quiz-art .d1 { top: 25px; left: 25px; transform: rotate(-14deg); } .quiz-art .d2 { right: 28px; top: 31%; transform: rotate(12deg); } .quiz-art .d3 { bottom: 25px; left: 39%; font-size: 17px; }
.quiz-panel h2 { margin: 8px 0 5px; font-size: clamp(25px, 3vw, 33px); font-weight: 800; }
.quiz-panel .instruction { color: var(--muted); font-size: 12px; font-weight: 650; }
.option-list { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.answer-option {
  display: flex; align-items: center; gap: 12px;
  min-height: 61px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.answer-option:hover { transform: translateX(4px); border-color: var(--mint); }
.answer-option .opt-key { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--cream-2); color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.answer-option .opt-label { flex: 1; font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: 0.01em; }
.answer-option .opt-hint { color: var(--muted); font-size: 9px; font-weight: 800; }
.answer-option .opt-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); }
.answer-option .opt-ico svg { width: 15px; height: 15px; }
.answer-option.correct { background: var(--green-soft); border-color: var(--green-dark); animation: correctPop 0.45s var(--ease-pop); }
.answer-option.correct .opt-ico { background: var(--green); border-color: var(--green-dark); color: #1f4c0b; }
.answer-option.wrong { background: var(--coral-soft); border-color: var(--coral); animation: shake 0.4s; }
.answer-option.wrong .opt-ico { background: var(--coral); border-color: var(--coral-dark); color: #fff; }
@keyframes correctPop { 40% { transform: scale(1.025); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.quiz-feedback { min-height: 54px; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0 4px; color: var(--mint-dark); font-size: 11.5px; font-weight: 800; }
.quiz-feedback .score-bubble { font-family: var(--font-display); font-size: 21px; }
.quiz-feedback small { display: block; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.quiz-feedback .btn { margin-left: auto; }

.sentence-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; min-height: 500px; }
.sentence-stage {
  position: relative;
  border-radius: 32px;
  min-height: 380px;
  background: linear-gradient(150deg, #fff2c9 0%, #fffaf0 52%, #e2f8f2 100%);
  border: 2px solid #eddaa9;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sentence-stage::before { content: ""; position: absolute; width: 270px; height: 100px; border-radius: 50%; background: rgba(126, 217, 87, 0.22); bottom: 34px; }
.scene-collage { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 20px; }
.scene-collage span { font-size: clamp(58px, 7.5vw, 96px); line-height: 1; filter: drop-shadow(0 13px 10px rgba(71, 54, 22, 0.13)); }
.scene-collage span:nth-child(2) { transform: translateY(-20px) rotate(3deg); font-size: clamp(48px, 6.2vw, 80px); }
.scene-collage span:nth-child(3) { transform: translateY(8px) rotate(-4deg); font-size: clamp(40px, 5vw, 64px); }
.scene-label { position: absolute; z-index: 3; top: 18px; left: 18px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255, 255, 255, 0.85); border-radius: 999px; font-size: 9px; font-weight: 900; color: var(--sunny-dark); letter-spacing: 0.08em; }
.sentence-work { display: flex; flex-direction: column; justify-content: center; }
.sentence-card-big { padding: 24px; border-radius: 26px; background: var(--cream-2); border: 2px solid var(--line); }
.sentence-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; font-weight: 900; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.sentence-tokens { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; margin: 14px 0 13px; }
.sentence-token { position: relative; padding: 2px 3px; border-radius: 6px; font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 33px); font-weight: 800; line-height: 1.3; color: var(--ink); transition: background 0.15s, color 0.15s, transform 0.15s; }
.sentence-token:hover { background: var(--sunny-soft); color: var(--sunny-dark); transform: translateY(-2px); }
.sentence-token.tricky-word { color: var(--coral-dark); }
.sentence-token.tricky-word::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; border-bottom: 2px dashed rgba(217, 77, 47, 0.35); }
.sentence-token.speaking { background: var(--sunny); color: var(--ink); transform: translateY(-2px); }
.sentence-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sentence-controls .btn { min-height: 42px; font-size: 12px; padding: 0 15px; }
.sentence-note { margin-top: 10px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.sentence-note svg { width: 14px; height: 14px; }
.sentence-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line); margin-bottom: 15px; }
.sentence-tab { flex: 1; min-height: 34px; border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 900; }
.sentence-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }

/* =========================================================
   TRICKY WORDS
   ========================================================= */
.tricky-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: stretch; min-height: 500px; }
.tricky-list { display: flex; flex-direction: column; gap: 7px; }
.tricky-list-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 11px; border-radius: 13px; border: 1.5px solid transparent; text-align: left; transition: background 0.15s, border-color 0.15s; }
.tricky-list-item:hover { background: var(--cream-2); border-color: var(--line); }
.tricky-list-item.active { background: var(--sunny-soft); border-color: #efd488; }
.tricky-list-item .tl-emoji { font-size: 20px; }
.tricky-list-item strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.tricky-list-item .tl-check { margin-left: auto; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; font-size: 9px; }
.tricky-list-item.known .tl-check { background: var(--green); border-color: var(--green-dark); color: #1f4c0b; }
.tricky-card-main { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; border-radius: 30px; background: linear-gradient(150deg, #fff6d9, #fffdf7); border: 2px solid #eed58e; position: relative; overflow: hidden; }
.tricky-card-main::before, .tricky-card-main::after { content: "✦"; position: absolute; color: var(--sunny); opacity: 0.65; font-size: 24px; }
.tricky-card-main::before { top: 30px; left: 38px; transform: rotate(-17deg); }
.tricky-card-main::after { bottom: 39px; right: 45px; transform: rotate(11deg); font-size: 16px; }
.tricky-big-word { font-family: var(--font-display); font-size: clamp(62px, 9vw, 105px); font-weight: 800; line-height: 1.05; color: var(--ink); letter-spacing: 0.01em; position: relative; }
.tricky-big-word .heart-dot { position: absolute; top: -4px; right: -31px; color: var(--coral); font-size: 27px; transform: rotate(11deg); }
.tricky-sentence { margin-top: 7px; padding: 9px 15px; border-radius: 12px; background: #fff; border: 1.5px dashed #e3cb91; font-size: 13px; font-weight: 750; color: var(--ink-2); }
.tricky-actions { display: flex; gap: 7px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.tricky-progress { margin-top: 15px; width: min(300px, 100%); }
.tricky-note { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); font-weight: 700; white-space: nowrap; }

/* =========================================================
   PHASE 1
   ========================================================= */
.sound-garden-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sound-game-card {
  position: relative;
  min-height: 205px;
  padding: 21px;
  border-radius: 26px;
  border: 2px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 4px 0 var(--line-strong);
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sound-game-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: 0 7px 0 var(--line-strong); }
.sound-game-card .sgame-blob { position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -42px; top: -46px; background: var(--sky-soft); }
.sound-game-card.coral .sgame-blob { background: var(--coral-soft); }
.sound-game-card.mint .sgame-blob { background: var(--mint-soft); }
.sound-game-card.sunny .sgame-blob { background: var(--sunny-soft); }
.sound-game-card.lilac .sgame-blob { background: var(--lilac-soft); }
.sound-game-card.pink .sgame-blob { background: var(--pink-soft); }
.sound-game-emoji { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--cream-2); font-size: 28px; border: 1.5px solid var(--line); }
.sound-game-card h3 { position: relative; margin-top: 14px; font-size: 21px; }
.sound-game-card p { position: relative; margin-top: 4px; color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.55; max-width: 84%; }
.sound-game-card .sgame-foot { position: absolute; left: 21px; right: 21px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 900; color: var(--ink-2); border-top: 1.5px dashed var(--line); padding-top: 9px; }
.sound-game-card .sgame-foot svg { width: 16px; height: 16px; }
.phase1-intro { display: grid; grid-template-columns: 1fr 260px; gap: 20px; padding: 30px 34px; border-radius: 34px; background: linear-gradient(115deg, #e7f0ff, #f3fbff 55%, #e2f8f2); border: 2px solid #c4ddfb; margin-bottom: 23px; position: relative; overflow: hidden; }
.phase1-intro h1 { font-size: clamp(32px, 4vw, 46px); margin: 8px 0 6px; }
.phase1-intro p { max-width: 600px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.phase1-intro .sound-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 90px; }
.phase1-intro .sound-wave i { display: block; width: 8px; border-radius: 999px; background: var(--sky); animation: wave 1.1s ease-in-out infinite; }
.phase1-intro .sound-wave i:nth-child(2n) { background: var(--mint); animation-delay: -0.3s; height: 60px; }
.phase1-intro .sound-wave i:nth-child(3n) { background: var(--coral); animation-delay: -0.6s; height: 38px; }
@keyframes wave { 0%, 100% { height: 18px; } 50% { height: 72px; } }

.sound-quiz { max-width: 880px; margin: 0 auto; }
.sound-quiz-head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.sound-quiz-head .sq-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--sky-soft); font-size: 29px; }
.sound-quiz-head h2 { font-size: 26px; }
.sound-quiz-head p { color: var(--muted); font-size: 11px; font-weight: 700; }
.sound-listen-card { position: relative; padding: 23px; border-radius: 25px; background: linear-gradient(135deg, var(--sky-soft), #fff); border: 2px solid #c8ddf9; text-align: center; margin-bottom: 18px; }
.sound-listen-card .listen-kicker { font-size: 10px; font-weight: 900; color: var(--sky-dark); letter-spacing: 0.1em; }
.sound-listen-card h3 { margin: 6px 0 12px; font-size: 20px; }
.big-listen-btn { width: 106px; height: 106px; border-radius: 50%; background: #fff; border: 2.5px solid var(--sky); box-shadow: 0 7px 0 #b4d1f9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0 auto; transition: transform 0.15s; }
.big-listen-btn:hover { transform: scale(1.04); }
.big-listen-btn:active { transform: translateY(4px) scale(0.98); box-shadow: 0 3px 0 #b4d1f9; }
.big-listen-btn svg { width: 34px; height: 34px; color: var(--sky-dark); }
.big-listen-btn span { font-size: 9px; font-weight: 900; color: var(--sky-dark); letter-spacing: 0.06em; }
.sound-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sound-option { min-height: 155px; padding: 14px; border-radius: 21px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform 0.15s, border-color 0.15s; }
.sound-option:hover { transform: translateY(-4px); border-color: var(--mint); }
.sound-option .so-emoji { font-size: 55px; line-height: 1; }
.sound-option strong { font-size: 12px; font-weight: 900; }
.sound-option.correct { background: var(--green-soft); border-color: var(--green-dark); }
.sound-option.wrong { background: var(--coral-soft); border-color: var(--coral); }
.sound-feedback { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 12px; font-weight: 900; color: var(--mint-dark); }
.sound-feedback .btn { margin-left: 8px; }
.rhythm-taps { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 15px 0; }
.tap-drum { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--sunny); border: 2.5px solid var(--sunny-dark); box-shadow: 0 7px 0 var(--sunny-dark); font-size: 40px; transition: transform 0.08s; }
.tap-drum:active, .tap-drum.tapped { transform: translateY(5px); box-shadow: 0 2px 0 var(--sunny-dark); }
.tap-count { min-width: 110px; padding: 10px 15px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--line-strong); text-align: center; font-size: 21px; font-weight: 900; font-family: var(--font-display); }
.rhythm-pips { display: flex; gap: 5px; justify-content: center; }
.rhythm-pips i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.rhythm-pips i.on { background: var(--sunny-dark); }

/* =========================================================
   GAMES
   ========================================================= */
.games-hero { display: grid; grid-template-columns: 1fr 250px; gap: 20px; padding: 30px 34px; border-radius: 34px; background: linear-gradient(115deg, #f0eaff, #fff7fb 50%, #fff2c9); border: 2px solid #d8c8ff; position: relative; overflow: hidden; margin-bottom: 25px; }
.games-hero h1 { font-size: clamp(32px, 4vw, 46px); margin: 7px 0 5px; }
.games-hero p { max-width: 560px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.games-hero .hero-actions { margin-top: 17px; display: flex; gap: 8px; flex-wrap: wrap; }
.games-hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.games-hero-art .gma-1, .games-hero-art .gma-2, .games-hero-art .gma-3 { position: absolute; display: grid; place-items: center; border-radius: 17px; background: #fff; border: 2px solid var(--line-strong); box-shadow: 4px 4px 0 var(--line-strong); font-size: 39px; width: 76px; height: 76px; }
.games-hero-art .gma-1 { transform: rotate(-10deg) translate(-49px, -26px); background: var(--sunny-soft); }
.games-hero-art .gma-2 { transform: rotate(8deg) translate(48px, -8px); background: var(--lilac-soft); }
.games-hero-art .gma-3 { transform: rotate(-3deg) translate(0, 49px); background: var(--mint-soft); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.game-card { position: relative; padding: 24px; border-radius: 29px; background: #fff; border: 2px solid var(--line-strong); box-shadow: 0 5px 0 var(--line-strong); overflow: hidden; min-height: 245px; display: flex; flex-direction: column; }
.game-card .game-bg { position: absolute; right: -35px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; background: var(--sky-soft); opacity: 0.7; }
.game-card:nth-child(2) .game-bg { background: var(--pink-soft); }
.game-card:nth-child(3) .game-bg { background: var(--lilac-soft); }
.game-card:nth-child(4) .game-bg { background: var(--sunny-soft); }
.game-card .game-emoji { width: 58px; height: 58px; display: grid; place-items: center; font-size: 31px; border-radius: 18px; background: var(--cream-2); border: 1.5px solid var(--line); position: relative; }
.game-card h3 { position: relative; margin-top: 13px; font-size: 23px; }
.game-card p { position: relative; margin-top: 3px; max-width: 73%; color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.game-card .game-foot { position: relative; margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-card .best { font-size: 9px; font-weight: 900; color: var(--muted); letter-spacing: 0.04em; }
.game-card .best b { color: var(--sunny-dark); }
.break-banner { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 21px; border-radius: 21px; background: var(--mint-soft); border: 1.5px dashed #9fe1db; }
.break-banner .bb-emoji { font-size: 33px; }
.break-banner p { flex: 1; color: #316f68; font-size: 11.5px; font-weight: 700; }
.break-banner b { color: var(--ink); }

/* whack game */
.whack-stage { position: relative; border-radius: 30px; background: linear-gradient(180deg, #dff8f4, #fff); border: 2px solid #a7e8e2; padding: 21px; min-height: 560px; overflow: hidden; }
.whack-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; position: relative; z-index: 2; }
.whack-head h2 { font-size: 26px; }
.whack-head p { color: var(--muted); font-size: 10px; font-weight: 700; }
.whack-stats { display: flex; gap: 7px; }
.whack-stat { padding: 7px 11px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); font-size: 9px; font-weight: 900; color: var(--muted); text-align: center; }
.whack-stat strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.whack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 700px; margin: 0 auto; }
.whack-hole { position: relative; aspect-ratio: 1.3; border-radius: 50% 50% 44% 44% / 60% 60% 40% 40%; background: #cfb990; border-bottom: 8px solid #aa8f63; overflow: hidden; }
.whack-hole::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 25%; background: #7b643d; border-radius: 50%; opacity: 0.55; }
.mole { position: absolute; left: 11%; right: 11%; bottom: -100%; height: 84%; border-radius: 48% 48% 18% 18%; background: var(--mole, var(--mint)); border: 2px solid rgba(37, 49, 74, 0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: bottom 0.18s var(--ease-pop); cursor: pointer; }
.mole.up { bottom: 3%; }
.mole .mole-face { display: flex; gap: 12px; margin-top: 8px; }
.mole .mole-face i { width: 9px; height: 11px; border-radius: 50%; background: var(--ink); position: relative; }
.mole .mole-face i::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; top: 2px; left: 2px; }
.mole .mole-nose { width: 9px; height: 7px; border-radius: 50%; background: var(--coral); }
.mole .mole-word { font-family: var(--font-display); font-size: clamp(15px, 2.1vw, 23px); font-weight: 800; color: var(--ink); padding: 1px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.55); }
.mole.hit { animation: moleHit 0.36s var(--ease-pop); }
@keyframes moleHit { 50% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(0.8) translateY(30px); opacity: 0; } }
.whack-target { margin: 14px auto 0; max-width: 520px; padding: 11px 15px; border-radius: 15px; background: #fff; border: 2px dashed var(--mint); display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.whack-target .wt-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-soft); color: var(--mint-dark); }
.whack-target .wt-ico svg { width: 18px; height: 18px; }
.whack-target p { flex: 1; font-size: 10px; font-weight: 800; color: var(--ink-2); }
.whack-target strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.whack-end { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(255, 253, 248, 0.88); backdrop-filter: blur(5px); }
.whack-end-card { width: min(380px, 88%); padding: 28px; border-radius: 27px; background: #fff; border: 2px solid var(--line-strong); box-shadow: 0 9px 0 var(--line-strong); text-align: center; }
.whack-end-card .we-emoji { font-size: 63px; }
.whack-end-card h2 { margin-top: 5px; font-size: 28px; }
.whack-end-card p { margin: 4px 0 15px; color: var(--muted); font-size: 11px; font-weight: 700; }
.whack-end-card .stars-earned { font-family: var(--font-display); font-size: 36px; color: var(--sunny-dark); margin-bottom: 12px; }

/* memory game */
.memory-stage { border-radius: 30px; background: linear-gradient(180deg, #fff2c9, #fff); border: 2px solid #ecd48c; padding: 22px; min-height: 560px; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; max-width: 680px; margin: 16px auto 0; }
.memory-card { position: relative; aspect-ratio: 0.86; perspective: 600px; }
.memory-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.42s var(--ease-pop); border-radius: 17px; }
.memory-card.flipped .memory-inner, .memory-card.matched .memory-inner { transform: rotateY(180deg); }
.memory-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 2px solid #e4c683; background: var(--sunny); box-shadow: 0 4px 0 #d5b463; overflow: hidden; }
.memory-face.back { background: #fff; transform: rotateY(180deg); border-color: var(--line-strong); box-shadow: 0 4px 0 var(--line-strong); }
.memory-face .mem-pattern { font-family: var(--font-display); font-size: 37px; color: #9b7315; opacity: 0.6; }
.memory-face .mem-emoji { font-size: clamp(29px, 4vw, 45px); line-height: 1; }
.memory-face .mem-word { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--ink); }
.memory-card.matched .memory-face.back { border-color: var(--green-dark); background: var(--green-soft); }

/* =========================================================
   REWARDS
   ========================================================= */
.reward-hero { display: grid; grid-template-columns: 1fr 340px; gap: 25px; min-height: 330px; padding: 32px 36px; border-radius: 36px; background: linear-gradient(120deg, #fff2c9, #fff 50%, #f0eaff); border: 2px solid #ecd48c; position: relative; overflow: hidden; }
.reward-hero h1 { font-size: clamp(33px, 4vw, 48px); margin: 7px 0 5px; }
.reward-hero p { color: var(--ink-2); font-size: 13px; font-weight: 600; max-width: 500px; }
.reward-balance { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 11px 19px; border-radius: 18px; background: #fff; border: 2px solid #ecd48c; box-shadow: 0 4px 0 #ecd48c; }
.reward-balance .big-star { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sunny); font-size: 23px; color: #8a5f00; }
.reward-balance strong { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.reward-balance span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; }
.reward-hero .hero-actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-showcase { position: relative; display: flex; align-items: center; justify-content: center; }
.avatar-stage { position: relative; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #f4e9ff 65%, #eadcff); border: 2px dashed #cbb7ff; display: flex; align-items: center; justify-content: center; }
.avatar-stage svg.mascot { width: 220px; height: 220px; }
.avatar-accessory-big { position: absolute; top: 23px; right: 65px; font-size: 56px; z-index: 5; transform: rotate(12deg); filter: drop-shadow(0 4px 4px rgba(0,0,0,0.12)); }
.avatar-stars { position: absolute; color: var(--sunny); font-size: 24px; }
.avatar-stars.s1 { top: 32px; left: 31px; } .avatar-stars.s2 { bottom: 35px; right: 29px; font-size: 17px; }
.shop-section { margin-top: 27px; }
.shop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.shop-item { position: relative; padding: 20px 15px 15px; border-radius: 23px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); text-align: center; transition: transform 0.2s; }
.shop-item:hover { transform: translateY(-4px); }
.shop-item .shop-emoji { width: 69px; height: 69px; margin: 0 auto 9px; display: grid; place-items: center; border-radius: 20px; background: var(--item-soft, var(--sunny-soft)); font-size: 39px; border: 1.5px dashed var(--item-border, #ecd48c); }
.shop-item strong { display: block; font-size: 11.5px; font-weight: 900; }
.shop-item .cost { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--sunny-dark); font-size: 10px; font-weight: 900; }
.shop-item .cost .mini-star { width: 17px; height: 17px; border-radius: 50%; background: var(--sunny); display: grid; place-items: center; font-size: 10px; }
.shop-item.owned { background: var(--green-soft); border-color: #b9e6a2; box-shadow: 0 4px 0 #b9e6a2; }
.shop-item.owned::after { content: "已拥有"; position: absolute; top: 7px; right: 8px; padding: 2px 6px; border-radius: 5px; background: var(--green); color: #24510f; font-size: 7.5px; font-weight: 900; }
.shop-item.equipped { border-color: var(--sunny-dark); box-shadow: 0 4px 0 var(--sunny-dark); }
.shop-item.equipped::after { content: "正在佩戴"; background: var(--sunny); color: #6b4900; }
.shop-item .btn { margin-top: 9px; width: 100%; min-height: 31px; font-size: 9.5px; padding: 0 8px; }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.badge-card { padding: 16px 13px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); text-align: center; opacity: 0.55; filter: grayscale(0.9); }
.badge-card.unlocked { opacity: 1; filter: none; background: var(--cream-2); border-color: #ecd48c; }
.badge-card .badge-emoji { width: 48px; height: 48px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 50%; background: var(--sunny-soft); font-size: 27px; }
.badge-card strong { display: block; font-size: 10.5px; font-weight: 900; }
.badge-card span { display: block; color: var(--muted); font-size: 8.5px; font-weight: 650; margin-top: 2px; }
.badge-card.unlocked .badge-emoji { background: var(--sunny); box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.18); }

/* =========================================================
   PARENT
   ========================================================= */
.parent-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.parent-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.child-card { padding: 20px; border-radius: 24px; background: linear-gradient(145deg, var(--mint-soft), #fff); border: 2px solid #b7e9e4; text-align: center; }
.child-avatar { width: 75px; height: 75px; margin: 0 auto 8px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.child-avatar svg { width: 65px; height: 65px; }
.child-card h3 { font-size: 18px; }
.child-card p { color: var(--muted); font-size: 10px; font-weight: 700; }
.child-list { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; text-align: left; }
.child-list button { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 10px; font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.child-list button:hover, .child-list button.active { background: #fff; color: var(--ink); }
.child-list .cl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.parent-nav { display: flex; flex-direction: column; gap: 3px; padding: 7px; border-radius: 17px; background: #fff; border: 1.5px solid var(--line); }
.parent-nav button { text-align: left; padding: 9px 11px; border-radius: 9px; color: var(--ink-2); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.parent-nav button svg { width: 16px; height: 16px; }
.parent-nav button:hover, .parent-nav button.active { background: var(--cream-2); color: var(--ink); }
.parent-main { display: flex; flex-direction: column; gap: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 17px; border-radius: 20px; background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.metric-card .metric-ico { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--cream-2); font-size: 16px; }
.metric-card strong { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 27px; line-height: 1; }
.metric-card span { color: var(--muted); font-size: 9.5px; font-weight: 800; }
.metric-card small { display: block; margin-top: 4px; color: var(--mint-dark); font-size: 8.5px; font-weight: 800; }
.parent-panel { padding: 22px 24px; border-radius: 25px; background: #fff; border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); }
.parent-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.parent-panel-head h3 { font-size: 18px; }
.parent-panel-head p { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.mastery-list { display: flex; flex-direction: column; gap: 11px; }
.mastery-row { display: grid; grid-template-columns: 140px 1fr 50px; gap: 12px; align-items: center; }
.mastery-row .mr-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; }
.mastery-row .mr-badge { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--cream-2); font-size: 11px; font-family: var(--font-display); font-weight: 800; }
.mastery-row .progress-track { height: 8px; }
.mastery-row .mr-value { text-align: right; font-size: 10px; font-weight: 900; color: var(--muted); }
.word-analytics { display: flex; flex-wrap: wrap; gap: 7px; }
.analytics-chip { padding: 6px 10px; border-radius: 9px; background: var(--coral-soft); border: 1px solid #f6c4b6; font-size: 10px; font-weight: 800; color: var(--coral-dark); }
.analytics-chip.mint { background: var(--mint-soft); border-color: #b1e7e2; color: var(--mint-dark); }
.word-analytics .empty-note { color: var(--muted); font-size: 10px; font-weight: 700; }
.parent-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line); }
.setting-row .sr-copy strong { display: block; font-size: 10.5px; font-weight: 900; }
.setting-row .sr-copy span { display: block; color: var(--muted); font-size: 8.5px; font-weight: 650; }
.switch { position: relative; width: 40px; height: 23px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #dcd1bd; transition: 0.2s; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); transition: 0.2s; }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(17px); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input[type="range"] { width: 95px; accent-color: var(--coral); }
.range-row output { min-width: 33px; text-align: right; font-size: 9.5px; font-weight: 900; color: var(--muted); }
.custom-word-box { display: flex; flex-direction: column; gap: 8px; }
.custom-word-box textarea { width: 100%; min-height: 95px; resize: vertical; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream-2); font-size: 11px; line-height: 1.7; }
.custom-word-box textarea:focus { outline: 3px solid rgba(78, 205, 196, 0.25); border-color: var(--mint); }
.custom-word-box .cwb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.custom-word-box .cwb-foot span { color: var(--muted); font-size: 8.5px; font-weight: 650; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-zone { border-color: #f3c9be; background: #fff8f5; }
.danger-zone .btn { border-color: #efb9a9; color: var(--coral-dark); }
.voice-status { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: var(--sky-soft); color: var(--sky-dark); font-size: 8.5px; font-weight: 800; }
.voice-status .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.2); }
.voice-status.bad { background: var(--coral-soft); color: var(--coral-dark); }
.voice-status.bad .status-dot { background: var(--coral); }
.phoneme-check { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--sky-soft); border: 1px solid #c7dcff; }
.phoneme-check-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phoneme-check-head strong { font-size: 10.5px; font-weight: 900; color: var(--sky-dark); }
.phoneme-check .voice-status { padding: 4px 8px; font-size: 8px; }
.phoneme-test-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.phoneme-test-row button { min-height: 28px; padding: 0 9px; border-radius: 8px; background: #fff; border: 1.5px solid #c7dcff; color: var(--sky-dark); font-family: var(--font-display); font-size: 11px; font-weight: 800; }
.phoneme-test-row button:hover { background: #eef6ff; }
.phoneme-check p { margin-top: 7px; color: #4d6790; font-size: 8.5px; font-weight: 650; line-height: 1.5; }
@media (max-width: 720px) { .phoneme-check { margin-top: 8px; } }

/* =========================================================
   MODALS / TOASTS / CONFETTI
   ========================================================= */
.modal-layer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-layer[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 37, 56, 0.46); backdrop-filter: blur(5px); animation: fadeIn 0.2s ease; }
.modal-panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 30px; background: var(--paper); border: 2px solid var(--line-strong); box-shadow: 0 12px 0 rgba(37, 49, 74, 0.16), 0 30px 80px rgba(0, 0, 0, 0.2); animation: modalIn 0.3s var(--ease-pop); }
.modal-panel.wide { width: min(750px, 100%); }
.modal-panel.narrow { width: min(430px, 100%); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.modal-head h2 { font-size: 26px; }
.modal-head p { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 650; }
.modal-close { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); border: 1.5px solid var(--line); }
.modal-close svg { width: 16px; height: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.modal-section { margin-top: 17px; }
.modal-section h3 { font-family: var(--font-body); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field label { font-size: 10px; font-weight: 900; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; }
.field input:focus, .field select:focus { outline: 3px solid rgba(78, 205, 196, 0.22); border-color: var(--mint); }
.avatar-picker { display: flex; gap: 8px; }
.avatar-option { flex: 1; padding: 7px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.avatar-option svg { width: 50px; height: 50px; }
.avatar-option span { font-size: 8.5px; font-weight: 900; color: var(--muted); }
.avatar-option.active { border-color: var(--coral); background: var(--coral-soft); }
.settings-list { display: flex; flex-direction: column; gap: 7px; }
.settings-list .setting-row { background: #fff; }
.star-big { font-size: 62px; text-align: center; line-height: 1.1; }
.complete-card { text-align: center; }
.complete-card .complete-mascot { width: 150px; height: 150px; margin: 0 auto; }
.complete-card h2 { margin-top: 4px; font-size: 31px; }
.complete-card .complete-sub { color: var(--muted); font-size: 11.5px; font-weight: 650; margin-top: 4px; }
.complete-stars { display: flex; justify-content: center; gap: 4px; margin: 13px 0; font-size: 32px; color: var(--sunny); }
.complete-stars .off { color: #e8dfcf; }
.complete-stats { display: flex; justify-content: center; gap: 22px; margin: 14px 0 19px; }
.complete-stat strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.complete-stat span { color: var(--muted); font-size: 8.5px; font-weight: 900; letter-spacing: 0.08em; }
.complete-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.exit-card { text-align: center; }
.exit-card .exit-emoji { font-size: 55px; }
.exit-card h2 { margin-top: 3px; font-size: 26px; }
.exit-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; font-weight: 650; }
.test-intro-card { text-align: center; }
.test-intro-card .test-big-icon { width: 95px; height: 95px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--sunny); font-size: 47px; box-shadow: 0 0 0 11px rgba(255, 209, 102, 0.2); }
.test-intro-card h2 { font-size: 28px; }
.test-intro-card p { color: var(--muted); font-size: 11px; font-weight: 650; max-width: 390px; margin: 5px auto 0; }
.test-question { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--cream-2); border: 1.5px dashed var(--line-strong); }
.test-question .tq-label { font-size: 9px; font-weight: 900; letter-spacing: 0.12em; color: var(--muted); }
.test-question .tq-word { font-family: var(--font-display); font-size: 48px; font-weight: 800; text-align: center; letter-spacing: 0.04em; margin: 3px 0; }
.test-question .tq-emoji { text-align: center; font-size: 50px; }
.test-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.test-option { min-height: 46px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.test-option:hover { border-color: var(--mint); background: var(--mint-soft); }
.test-option.correct { background: var(--green-soft); border-color: var(--green-dark); }
.test-option.wrong { background: var(--coral-soft); border-color: var(--coral); }
.test-progress { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.test-progress i { width: 18px; height: 5px; border-radius: 999px; background: var(--line); }
.test-progress i.done { background: var(--mint); }
.test-progress i.bad { background: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.toast-stack { position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 11px 30px rgba(0, 0, 0, 0.22); font-size: 11px; font-weight: 800; animation: toastIn 0.32s var(--ease-pop); text-align: center; }
.toast.success { background: var(--mint-dark); }
.toast.bad { background: var(--coral-dark); }
.toast .toast-ico { font-size: 15px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.confetti-layer { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: confettiFall 1.3s ease-out forwards; }
@keyframes confettiFall { 0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; } 100% { transform: translate3d(var(--dx, 20px), 75vh, 0) rotate(540deg); opacity: 0; } }
.reward-float-layer { position: fixed; inset: 0; z-index: 240; pointer-events: none; }
.reward-float { position: absolute; left: 50%; top: 55%; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--sunny-dark); animation: rewardRise 1.1s ease-out forwards; }
@keyframes rewardRise { from { opacity: 1; transform: translate(-50%, 0) scale(0.8); } to { opacity: 0; transform: translate(-50%, -140px) scale(1.18); } }
.noscript { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--cream); padding: 30px; text-align: center; font-weight: 800; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1120px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card { min-height: 270px; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phase-card { grid-template-columns: 78px 1fr 160px; }
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .mascot-stage { transform: scale(0.9); transform-origin: bottom center; }
  .hero-scene { min-height: 350px; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .topbar { gap: 14px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 90;
    left: 50%; bottom: 12px;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 22px));
    justify-content: space-around;
    padding: 7px;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(16px);
    border: 2px solid var(--line-strong);
    border-radius: 23px;
    box-shadow: 0 8px 0 rgba(227, 210, 178, 0.5), 0 16px 38px rgba(80, 60, 25, 0.14);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 4px 2px; border-radius: 13px; color: var(--muted); font-size: 9px; font-weight: 900; transition: background 0.2s, color 0.2s; }
  .bottom-nav a .nav-ico { width: 31px; height: 27px; display: grid; place-items: center; border-radius: 10px; }
  .bottom-nav a svg { width: 19px; height: 19px; }
  .bottom-nav a.active { color: var(--coral-dark); background: var(--coral-soft); }
  .bottom-nav a.active .nav-ico { background: var(--coral); color: #fff; }
  .page { padding-bottom: 112px; }
  .hero { grid-template-columns: 1fr; padding: 34px 28px 20px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-scene { min-height: 350px; margin-top: 2px; }
  .mascot-stage { transform: scale(0.82); }
  .hero-sun { top: -12px; }
  .speech-bubble { top: 4px; }
  .float-tile.t1 { left: 12%; }
  .float-tile.t2 { right: 12%; }
  .float-tile.t3 { right: 16%; }
  .split-section, .home-lower { grid-template-columns: 1fr; }
  .owl-tip-card { min-height: 178px; }
  .owl-tip-card p { max-width: 65%; }
  .owl-tip-card .tip-owl { width: 155px; height: 155px; right: 14px; bottom: -12px; }
  .map-progress-card { grid-template-columns: 1fr; }
  .map-mini-stats { justify-content: flex-start; }
  .phase-card { grid-template-columns: 70px 1fr; width: 100%; margin-left: 0 !important; }
  .phase-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1.5px dashed var(--line); padding-top: 12px; }
  .phase-side .progress-wrap { max-width: 210px; }
  .phase-side .btn { width: auto; }
  .journey-list::before { display: none; }
  .phase-columns { grid-template-columns: 1fr; }
  .phase-hero { grid-template-columns: 1fr 180px; }
  .phase-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blend-layout { grid-template-columns: 1fr; gap: 20px; }
  .picture-frame { min-height: 240px; }
  .picture-emoji { font-size: 100px; }
  .blend-work { order: 2; }
  .writing-layout { grid-template-columns: 1fr; }
  .writing-side { display: grid; grid-template-columns: 1fr 1fr; }
  .writing-target-card { grid-row: span 2; }
  .trace-stage { min-height: 380px; }
  .quiz-layout { grid-template-columns: 1fr; gap: 20px; }
  .quiz-art { min-height: 270px; }
  .quiz-art .big-emoji { font-size: 115px; }
  .sentence-layout { grid-template-columns: 1fr; gap: 20px; }
  .sentence-stage { min-height: 260px; }
  .tricky-layout { grid-template-columns: 1fr; }
  .tricky-list { flex-direction: row; overflow-x: auto; padding-bottom: 5px; }
  .tricky-list-item { flex: 0 0 auto; min-width: 112px; }
  .tricky-card-main { min-height: 420px; }
  .sound-garden-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parent-layout { grid-template-columns: 1fr; }
  .parent-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .parent-nav { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; }
  .parent-nav button { flex: 0 0 auto; }
  .reward-hero { grid-template-columns: 1fr 260px; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .alien-scene { min-height: 560px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar { height: 68px; padding: 0 15px; gap: 9px; }
  .brand-mark { width: 41px; height: 41px; border-radius: 13px; }
  .brand-mark svg { width: 36px; height: 36px; }
  .brand-type strong { font-size: 17px; }
  .brand-type small { font-size: 8.5px; }
  .profile-meta { display: none; }
  .profile-chip { padding: 3px 5px 3px 3px; height: 43px; gap: 3px; }
  .profile-chip .chevron { display: none; }
  .star-balance { height: 41px; padding: 0 10px 0 7px; }
  .star-balance strong { font-size: 12px; }
  .icon-btn { width: 41px; height: 41px; }
  .page { width: calc(100% - 28px); padding-top: 19px; }
  .hero { padding: 28px 19px 12px; border-radius: 30px; min-height: auto; }
  .hero h1 { font-size: clamp(35px, 10vw, 47px); }
  .hero-sub { font-size: 13.5px; margin-top: 13px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 13px; margin-top: 22px; flex-wrap: wrap; }
  .hero-stat + .hero-stat { padding-left: 13px; }
  .hero-stat-ico { width: 31px; height: 31px; font-size: 16px; }
  .hero-stat strong { font-size: 17px; }
  .hero-scene { min-height: 310px; transform: scale(0.88); margin: -3px -10px -4px; }
  .mascot-main { width: 260px; height: 260px; }
  .mascot-stage { transform: none; width: 330px; height: 330px; }
  .speech-bubble { top: 8px; font-size: 11.5px; padding: 10px 13px; max-width: 210px; }
  .float-tile { width: 53px; height: 58px; font-size: 29px; border-radius: 14px; }
  .float-tile.t1 { left: 4%; bottom: 124px; }
  .float-tile.t2 { right: 3%; bottom: 172px; }
  .float-tile.t3 { right: 8%; bottom: 60px; }
  .hero-sun { width: 58px; height: 58px; top: 0; right: 4px; }
  .hero-flower { font-size: 24px; }
  .quick-strip { margin-top: 13px; }
  .section-heading { margin: 25px 0 13px; align-items: center; }
  .section-heading h2 { font-size: 25px; }
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card { min-height: 220px; padding: 19px; }
  .module-card p { min-height: auto; max-width: 82%; }
  .module-visual { margin: 12px 0 9px; }
  .feature-wide { min-height: 250px; padding: 21px; }
  .feature-copy { max-width: 100%; }
  .feature-art { width: 100%; right: 9px; bottom: 6px; height: 118px; opacity: 0.92; }
  .sentence-scene { transform: scale(0.78) rotate(2deg); transform-origin: bottom right; }
  .tricky-art { transform: scale(0.8); transform-origin: bottom right; }
  .feature-copy p { max-width: 77%; }
  .home-lower { margin-top: 25px; }
  .journey-preview { padding: 19px; }
  .owl-tip-card { min-height: 170px; }
  .owl-tip-card .tip-owl { width: 135px; height: 135px; }
  .owl-tip-card h3 { max-width: 57%; font-size: 18px; }
  .owl-tip-card p { max-width: 58%; }
  .parent-note { align-items: flex-start; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 2px; }
  .page-head h1 { font-size: 35px; }
  .map-progress-card { padding: 22px; }
  .map-progress-card h2 { font-size: 24px; }
  .map-mini-stats { gap: 8px; }
  .map-mini-stat { flex: 1; min-width: 0; padding: 10px; }
  .phase-card { padding: 17px; gap: 13px; grid-template-columns: 58px 1fr; border-radius: 23px; }
  .phase-number { width: 54px; height: 54px; border-radius: 17px; font-size: 22px; }
  .phase-number small { display: none; }
  .phase-info h2 { font-size: 20px; flex-wrap: wrap; gap: 4px 7px; }
  .phase-info p { font-size: 11px; }
  .phase-meta { margin-top: 7px; }
  .phase-side { flex-wrap: wrap; }
  .phase-side .progress-wrap { max-width: 100%; flex: 1 1 100%; }
  .phase-side .btn { flex: 1; }
  .phase-ribbon { right: 17px; }
  .phase-hero { grid-template-columns: 1fr; padding: 25px 22px; }
  .phase-hero-scene { display: none; }
  .phase-actions-grid { grid-template-columns: 1fr 1fr; }
  .phase-test-banner { flex-wrap: wrap; padding: 17px; }
  .phase-test-banner .test-copy { flex: 1 1 180px; }
  .phase-test-banner .btn { width: 100%; }
  .practice-page { width: calc(100% - 20px); padding: 8px 0 25px; }
  .practice-top { flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .practice-title strong { font-size: 17px; }
  .practice-title span { font-size: 8.5px; }
  .practice-progress { order: 3; flex: 1 1 100%; max-width: none; margin: 3px 0 0; }
  .practice-stars { margin-left: auto; padding: 5px 8px; font-size: 10px; }
  .practice-surface { padding: 16px; border-radius: 24px; }
  .practice-tip { font-size: 10px; padding: 8px 10px; }
  .blend-layout { gap: 15px; min-height: auto; }
  .picture-frame { min-height: 205px; border-radius: 22px; }
  .picture-emoji { font-size: 90px; }
  .sound-tiles { margin: 15px 0 12px; gap: 6px; }
  .sound-tile { min-width: 58px; min-height: 70px; font-size: 32px; border-radius: 15px; padding: 3px 10px 6px; }
  .sound-tile .tile-hint { font-size: 6.5px; min-height: 8px; }
  .sound-tile.chunk { min-width: 74px; font-size: 25px; }
  .sound-tile.silent { font-size: 25px; }
  .blend-work h2 { font-size: 27px; }
  .blend-actions .btn { flex: 1; min-width: 125px; }
  .sentence-mini p { font-size: 11px; }
  .writing-side { grid-template-columns: 1fr; }
  .writing-target-card { grid-row: auto; padding: 15px; }
  .writing-target-card .target-letter { font-size: 62px; }
  .trace-stage { min-height: 330px; border-radius: 20px; }
  .trace-lines { inset: 18px 18px; }
  .writing-bottom { flex-direction: column; align-items: stretch; }
  .writing-bottom .actions { justify-content: flex-end; }
  .quiz-art { min-height: 230px; border-radius: 24px; }
  .quiz-art .big-emoji { font-size: 100px; }
  .quiz-panel h2 { font-size: 26px; }
  .answer-option { min-height: 56px; }
  .answer-option .opt-label { font-size: 20px; }
  .sentence-card-big { padding: 17px; }
  .sentence-token { font-size: 25px; }
  .sentence-controls .btn { flex: 1; }
  .tricky-card-main { min-height: 390px; padding: 18px; }
  .tricky-big-word { font-size: 67px; }
  .sound-garden-grid { grid-template-columns: 1fr; }
  .phase1-intro { grid-template-columns: 1fr; padding: 23px; }
  .phase1-intro .sound-wave { height: 65px; justify-content: flex-start; }
  .sound-options { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .sound-option { min-height: 112px; padding: 8px; border-radius: 15px; }
  .sound-option .so-emoji { font-size: 40px; }
  .sound-option strong { font-size: 10px; }
  .sound-quiz-head { gap: 9px; }
  .sound-quiz-head .sq-icon { width: 45px; height: 45px; border-radius: 13px; font-size: 23px; }
  .sound-quiz-head h2 { font-size: 21px; }
  .game-grid { grid-template-columns: 1fr; }
  .games-hero { grid-template-columns: 1fr; padding: 23px; }
  .games-hero-art { display: none; }
  .reward-hero { grid-template-columns: 1fr; padding: 24px; }
  .avatar-showcase { display: none; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 13px; }
  .metric-card strong { font-size: 23px; }
  .mastery-row { grid-template-columns: 105px 1fr 38px; gap: 7px; }
  .mastery-row .mr-label { font-size: 10px; }
  .parent-side { grid-template-columns: 1fr; }
  .parent-nav { grid-column: auto; }
  .parent-settings-grid { grid-template-columns: 1fr; }
  .parent-panel { padding: 18px; }
  .modal-panel { padding: 21px; border-radius: 24px; }
  .modal-head h2 { font-size: 22px; }
  .alien-scene { min-height: 530px; }
  .alien-hud { padding: 14px 14px 0; }
  .alien-body { padding: 0 13px 17px; min-height: 420px; }
  .alien-word-card { padding: 19px 13px 15px; }
  .alien-word { font-size: 58px; }
  .alien-choice-row { gap: 7px; }
  .alien-choice { min-width: 0; flex: 1; min-height: 50px; font-size: 12px; }
  .whack-stage, .memory-stage { padding: 13px; min-height: 490px; }
  .whack-grid { gap: 7px; }
  .whack-head h2 { font-size: 20px; }
  .whack-stat { padding: 5px 7px; }
  .mole .mole-word { font-size: 13px; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .memory-face .mem-word { font-size: 12px; }
  .toast-stack { bottom: 92px; }
  .writing-toolbar { gap: 6px; }
  .tool-btn { min-height: 32px; font-size: 9px; padding: 0 8px; }
  .practice-footer { margin-top: 11px; }
}
@media (max-width: 420px) {
  .brand-type small { display: none; }
  .brand-type strong { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 32px; height: 32px; }
  .hero-scene { transform: scale(0.76); margin: -28px -30px -20px; }
  .hero-stats { gap: 8px; }
  .hero-stat + .hero-stat { padding-left: 8px; }
  .hero-stat strong { font-size: 15px; }
  .hero-stat span { font-size: 9px; }
  .bottom-nav a { font-size: 8px; }
  .phase-actions-grid { grid-template-columns: 1fr; }
  .sound-tile { min-width: 51px; min-height: 65px; font-size: 29px; }
  .sound-tile.chunk { min-width: 67px; font-size: 22px; }
  .practice-surface { padding: 13px; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   EXTRA COMPONENTS
   ========================================================= */
.today-goal {
  display: flex; align-items: center; gap: 12px;
  width: min(460px, 100%);
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  border: 1.5px dashed rgba(37, 49, 74, 0.15);
}
.today-goal-copy { display: flex; flex-direction: column; line-height: 1.15; flex: 0 0 auto; }
.today-goal-copy strong { font-size: 10px; font-weight: 900; }
.today-goal-copy span { font-size: 8.5px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.today-goal-track { flex: 1; height: 7px; border-radius: 999px; background: #eadfcb; overflow: hidden; min-width: 60px; }
.today-goal-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--sunny)); transition: width 0.5s ease; }
.today-dots { display: flex; gap: 4px; }
.today-dots span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #f1e7d4; color: transparent; font-size: 9px; font-weight: 900; }
.today-dots span.done { background: var(--green); color: #24510f; }

/* writing */
.writing-target-card .target-letter.word-text { font-size: 34px; min-height: 92px; display: flex; align-items: center; line-height: 1.12; letter-spacing: -0.02em; word-break: break-word; }
.trace-stage { flex: 0 0 auto; aspect-ratio: 600 / 460; min-height: 0; }
.trace-lines { inset: 0; }
.trace-line { border-top: var(--line-w, 1.5px) solid #e9cfa8; opacity: 0.85; }
.trace-line.dashed { border-top-style: dashed; opacity: 0.55; }
.trace-line.base { border-top-width: calc(var(--line-w, 1.5px) + 0.8px); border-color: #ddbd90; opacity: 0.9; }
.trace-stage svg.guide { pointer-events: none; z-index: 2; }
.trace-stage canvas { z-index: 3; background: transparent; }
.trace-stage .trace-lines { z-index: 1; }
.trace-stage .trace-feedback { z-index: 4; }
.guide-hidden .guide-stroke,
.guide-hidden .start-dot,
.guide-hidden .start-number,
.guide-hidden .guide-animate { opacity: 0; }
.guide-animate { stroke-dasharray: 100; stroke-dashoffset: 100; }
.word-slot { transition: background 0.15s, border-color 0.15s; }
.record-playback audio { height: 30px; max-width: 190px; }
.voice-card .record-playback audio { max-width: 100%; }
.writing-toolbar .pen-dot { cursor: pointer; }

/* alien */
.alien-choice svg { width: 16px; height: 16px; flex: 0 0 auto; }
.alien-word-actions .alien-choice { width: auto; flex: 0 0 auto; }
.alien-choice.right { box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.55), 0 5px 0 rgba(0, 0, 0, 0.2); }
.alien-choice.dim { opacity: 0.34; }
.alien-choice[disabled] { cursor: default; }
.alien-figure .body { background: var(--accent) !important; }
.alien-word span { display: inline-block; }
.practice-surface .alien-scene { margin: -1px; }

/* picture hidden */
.quiz-art.is-hidden .big-emoji { opacity: 0.18; filter: blur(14px); }
.quiz-art.is-hidden::after { content: "PICTURE HIDDEN"; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: 0.15em; font-weight: 900; color: var(--mint-dark); }

/* detective */
.detective-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; align-items: stretch; }
.detective-audio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 18px; border-radius: 26px; background: linear-gradient(150deg, var(--sunny-soft), #fff); border: 2px solid #eed58e; text-align: center; }
.detective-kicker { font-size: 9px; font-weight: 900; letter-spacing: 0.17em; color: var(--sunny-dark); }
.detective-sentence { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); min-height: 30px; }
.detective-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.detective-option { position: relative; min-height: 190px; padding: 12px 9px; border-radius: 21px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: transform 0.16s, border-color 0.16s; }
.detective-option:hover { transform: translateY(-4px); border-color: var(--mint); }
.detective-option.correct { background: var(--green-soft); border-color: var(--green-dark); }
.detective-option.wrong { background: var(--coral-soft); border-color: var(--coral); animation: shake 0.4s; }
.det-scene { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; }
.det-scene span { font-size: clamp(33px, 3.7vw, 49px); line-height: 1.1; filter: drop-shadow(0 6px 5px rgba(71, 54, 22, 0.1)); }
.det-scene span:nth-child(2) { transform: translateY(-5px) rotate(3deg); font-size: clamp(27px, 3.1vw, 40px); }
.det-label { font-size: 9px; font-weight: 900; color: var(--muted); padding: 3px 9px; border-radius: 999px; background: var(--cream-2); }
.detective-option.correct .det-label { background: var(--green); color: #24510f; }
.detective-feedback { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 58px; margin-top: 16px; padding: 10px 14px; border-radius: 14px; background: var(--cream-2); border: 1px dashed var(--line-strong); font-size: 11px; font-weight: 650; color: var(--ink-2); }
.detective-feedback b { font-weight: 900; color: var(--ink); }
.detective-feedback .btn { margin-left: auto; }

/* voice playground */
.voice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.voice-card { padding: 19px 13px; border-radius: 22px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); text-align: center; }
.voice-emoji { font-size: 48px; line-height: 1.3; }
.voice-card h3 { font-size: 18px; }
.voice-card p { color: var(--muted); font-size: 10px; font-weight: 700; margin: 2px 0 10px; }
.voice-actions { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.voice-card .record-btn { border-color: var(--line); }
.voice-modal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.voice-modal-card { padding: 15px 10px; border-radius: 17px; background: #fff; border: 1.5px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.voice-modal-card > span { font-size: 34px; }
.voice-modal-card strong { font-size: 11px; font-weight: 900; }
.voice-modal-card p { color: var(--muted); font-size: 9px; font-weight: 700; margin-bottom: 4px; }

/* wrongbook */
.wrongbook-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.wrong-card { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: 19px; background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.wrong-emoji { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--cream-2); font-size: 28px; }
.wrong-copy { flex: 1; min-width: 0; }
.wrong-copy strong { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.wrong-copy span { display: block; color: var(--ink-2); font-size: 10px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrong-copy small { display: block; color: var(--muted); font-size: 8.5px; font-weight: 700; margin-top: 2px; }
.wrong-actions { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.wrong-actions .btn { min-height: 29px; font-size: 9px; padding: 0 10px; }
.empty-state { text-align: center; max-width: 580px; margin: 30px auto; padding: 50px 25px; }
.empty-state .empty-emoji { font-size: 58px; }
.empty-state h2 { margin-top: 5px; font-size: 28px; }
.empty-state p { color: var(--muted); font-size: 11.5px; font-weight: 650; max-width: 380px; margin: 6px auto 17px; }

/* child switch modal */
.child-switch-list { display: flex; flex-direction: column; gap: 7px; }
.child-switch-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 14px; background: var(--cream-2); border: 1.5px solid var(--line); text-align: left; }
.child-switch-row:hover { background: #fff; border-color: var(--mint); }
.child-switch-row.active { background: var(--mint-soft); border-color: var(--mint); }
.cs-avatar { width: 47px; height: 47px; border-radius: 50%; overflow: hidden; background: #fff; flex: 0 0 auto; }
.cs-avatar svg { width: 100%; height: 100%; }
.cs-copy { flex: 1; min-width: 0; }
.cs-copy strong { display: block; font-size: 13px; font-weight: 900; }
.cs-copy small { display: block; font-size: 9px; color: var(--muted); font-weight: 700; }
.cs-check { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: #0d514d; }
.cs-check svg { width: 14px; height: 14px; }

/* vertically balance the tall practice stage */
.blend-layout, .writing-layout, .quiz-layout, .sentence-layout, .tricky-layout, .detective-layout { flex: 1; }
.blend-layout, .quiz-layout, .sentence-layout, .tricky-layout, .detective-layout { align-items: center; }
.writing-layout { align-items: center; }
.sound-quiz { margin-top: auto; margin-bottom: auto; width: 100%; }
.test-wrap { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.alien-page .practice-surface { display: flex; flex-direction: column; }
.alien-scene { flex: 1; display: flex; flex-direction: column; }
.alien-body { flex: 1; }
.whack-stage, .memory-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.whack-grid, .memory-grid { width: 100%; }
.target-letter.word-text { overflow-wrap: anywhere; }
.memory-card { padding: 0; }
.mole { padding: 0; }
.test-option[disabled] { cursor: default; }
.test-option.correct { background: var(--green-soft); border-color: var(--green-dark); }
.test-option.wrong { background: var(--coral-soft); border-color: var(--coral); }
.alien-word-card .alien-choice:disabled { opacity: 0.9; }
.practice-surface .quiz-feedback { border-top: 1px dashed var(--line); padding-top: 10px; }
.sentence-tokens > span { vertical-align: baseline; }
.token-punct { display: inline; margin-left: 1px; }

@media (max-width: 960px) {
  .detective-layout { grid-template-columns: 1fr; }
  .detective-audio { padding: 20px 16px; }
  .detective-options { grid-template-columns: repeat(3, 1fr); }
  .voice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wrongbook-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .today-goal { display: none; }
  .writing-target-card .target-letter.word-text { font-size: 26px; min-height: 58px; }
  .detective-options { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .detective-option { min-height: 130px; padding: 8px 5px; border-radius: 15px; }
  .det-scene span { font-size: 30px; }
  .det-scene span:nth-child(2) { font-size: 25px; }
  .detective-sentence { font-size: 16px; }
  .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-modal-grid { grid-template-columns: 1fr 1fr; }
  .wrong-card { flex-wrap: wrap; }
  .wrong-actions { flex-direction: row; width: 100%; }
  .wrong-actions .btn { flex: 1; }
  .alien-choice.right { box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.5); }
  .detective-feedback .btn { margin-left: 0; width: 100%; }
  .practice-surface .detective-layout { min-height: auto; }
  .trace-lines { inset: 0; }
  .trace-stage { min-height: 0; aspect-ratio: 600 / 460; }
  .writing-checklist { display: none; }
  .writing-side { gap: 9px; }
  .writing-target-card { padding: 13px; }
  .writing-target-card .target-letter { font-size: 54px; }
  .writing-target-card .target-word { font-size: 11px; gap: 6px; }
  .writing-target-card .target-actions .btn { min-height: 31px; font-size: 9px; }
  .writing-target-card .mode-tabs { margin-top: 0; }
}
