:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647084;
  --line: #dfe5ee;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --brand: #f47a12;
  --brand-2: #0f766e;
  --brand-soft: #fff1df;
  --sunny: #ffd56a;
  --danger: #b42318;
  --ok: #15803d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff1df 0%, #fff8ed 44%, #eefaf3 100%);
}
a { color: var(--brand-2); text-decoration: none; }
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(244, 122, 18, .18);
  box-shadow: 0 8px 24px rgba(244, 122, 18, .08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
}
.brand img {
  display: block;
  width: 164px;
  height: auto;
  object-fit: contain;
}
.brand span {
  color: var(--brand);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.topbar nav { display: flex; gap: 18px; font-size: 14px; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto 40px; }
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}
.site-footer p {
  margin: 0;
}
.kids-hero {
  position: relative;
  min-height: 400px;
  margin: 0 calc(50% - 50vw) 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 32%, rgba(255,255,255,.62) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.56) 0 2px, transparent 3px),
    linear-gradient(#fff0dc 0%, #fff9ed 56%, #e8f8df 100%);
}
.kids-hero::before,
.kids-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.kids-hero::before {
  left: 8%;
  top: 44%;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffcb47;
  box-shadow: 74px -42px 0 #ffae35, 132px 26px 0 #72b85f, 980px 18px 0 #ff8a1f, 1080px -50px 0 #ffd56a;
  transform: rotate(12deg);
  opacity: .65;
  animation: confettiFloat 7s ease-in-out infinite;
}
.kids-hero::after {
  right: 12%;
  top: 48%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2dc8cc;
  box-shadow: -90px -18px 0 #86c91a, -164px 28px 0 #ff6b5f, -1010px 16px 0 #16a38e;
  opacity: .55;
  animation: confettiFloat 8s ease-in-out infinite reverse;
}
.kids-hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  text-align: center;
  padding: 60px 0 130px;
}
.kids-hero h1 {
  margin: 0;
  color: #f47a12;
  font-size: 56px;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(255,255,255,.72);
}
.kids-hero p {
  color: #52616b;
  font-size: 18px;
  line-height: 1.45;
}
.kids-hero .eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(244,122,18,.16);
  color: #24515f;
}
.hero-art span { position: absolute; display: block; }
.sun {
  width: 76px;
  height: 76px;
  right: 9%;
  top: 52px;
  border-radius: 50%;
  background: #ffd56a;
  box-shadow: 0 0 0 14px rgba(255, 213, 106, .3);
  animation: sunPulse 4.8s ease-in-out infinite;
}
.cloud {
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 36px; height: 36px; left: 12px; top: -18px; }
.cloud::after { width: 44px; height: 44px; left: 42px; top: -22px; }
.cloud-one { left: 12%; top: 78px; }
.cloud-one { animation: cloudDrift 16s ease-in-out infinite; }
.cloud-two { right: 21%; top: 112px; transform: scale(.72); animation: cloudDriftSmall 18s ease-in-out infinite reverse; }
.hill {
  bottom: -72px;
  height: 168px;
  border-radius: 50% 50% 0 0;
}
.hill-one {
  left: -8%;
  width: 64%;
  background: #67bd56;
  transform: rotate(5deg);
  animation: hillWaveOne 12s ease-in-out infinite;
}
.hill-two {
  right: -10%;
  width: 68%;
  background: #78ca65;
  transform: rotate(-5deg);
  animation: hillWaveTwo 14s ease-in-out infinite;
}
.book-stack {
  right: 17%;
  bottom: 84px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #f47a12 0 33%, #ffae35 33% 66%, #ffd84d 66%);
  box-shadow: 0 10px 0 rgba(0,0,0,.08);
  animation: floatBook 5.5s ease-in-out infinite;
}
.balloon {
  left: 17%;
  bottom: 126px;
  width: 54px;
  height: 66px;
  display: grid !important;
  place-items: center;
  border: 3px solid rgba(45,66,88,.35);
  border-radius: 50% 50% 44% 44%;
  background: rgba(255,255,255,.74);
  color: #ff8a1f;
  animation: floatBalloon 6.2s ease-in-out infinite;
}
.student-ribbon {
  margin: 20px auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.student-ribbon span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,118,110,.16);
  color: #24515f;
  font-weight: 800;
}
.hero-language-tabs {
  margin: 14px auto 0;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 12px 28px rgba(244,122,18,.12);
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(255, 213, 106, .3); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 22px rgba(255, 213, 106, .18); }
}
@keyframes cloudDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(34px); }
}
@keyframes cloudDriftSmall {
  0%, 100% { transform: translateX(0) scale(.72); }
  50% { transform: translateX(-42px) scale(.72); }
}
@keyframes hillWaveOne {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(10px) rotate(4deg); }
}
@keyframes hillWaveTwo {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(8px) rotate(-4deg); }
}
@keyframes floatBook {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes floatBalloon {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}
@keyframes confettiFloat {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-10px) rotate(18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sun,
  .cloud-one,
  .cloud-two,
  .hill-one,
  .hill-two,
  .book-stack,
  .balloon {
    animation: none;
  }
  .kids-hero::before,
  .kids-hero::after {
    animation: none;
  }
}
.practice-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(980px, 100%);
  margin: -74px auto 22px;
  padding: 22px 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(244, 122, 18, .2);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(22, 32, 51, .14);
  position: relative;
  z-index: 3;
}
.practice-list-head h2 {
  margin: 0;
  font-size: 32px;
  color: #12385a;
}
.practice-list-head p {
  margin: 6px 0 0;
  color: #596778;
  font-size: 17px;
}
.practice-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.language-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #fff4e6;
  border: 1px solid rgba(244, 122, 18, .2);
}
.language-tabs a {
  min-width: 82px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #24515f;
  font-weight: 900;
  text-align: center;
}
.language-tabs a.active {
  background: #fff;
  color: #12385a;
  box-shadow: 0 8px 18px rgba(22,32,51,.12);
}
.practice-list-head .leaderboard-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f47a12, #ffae35);
  color: #fff;
  border: 0;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(244,122,18,.22);
}
.practice-list {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
}
.language-section {
  position: relative;
  z-index: 3;
  width: min(1040px, 100%);
  margin: 0 auto 28px;
}
.language-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 10px 28px rgba(22,32,51,.08);
  backdrop-filter: blur(6px);
}
.language-section-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-section-head span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff8a1f, #ffd84d);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.08);
}
.language-sanskrit .language-section-head span {
  background: linear-gradient(135deg, #0f766e, #72b85f);
}
.language-section-head h2 {
  margin: 0;
  color: #12385a;
  font-size: 26px;
}
.language-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.skill-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: visible;
  padding: 18px 22px 18px 18px;
  box-shadow: 0 14px 32px rgba(22, 32, 51, .1);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.skill-row::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  opacity: .9;
}
.skill-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(22, 32, 51, .15);
}
.skill-badge {
  place-items: center;
  font-weight: 900;
  width: 76px;
  min-height: 76px;
  border-radius: 20px;
  display: grid;
  padding: 10px;
  text-align: center;
}
.skill-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.1), 0 8px 18px rgba(22,32,51,.13);
}
.skill-content {
  padding: 0;
  min-width: 0;
}
.skill-title-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.skill-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.skill-row h3 {
  margin: 0;
  color: #253044;
  font-size: 25px;
}
.skill-score {
  width: 86px;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #f7f9fd;
  color: var(--muted);
  text-align: center;
  border: 1px solid #e8edf5;
}
.skill-score strong { color: var(--ink); font-size: 22px; }
.skill-score span { font-size: 12px; font-weight: 800; }
.includes {
  margin: 8px 0 0;
  color: #5f6570;
  line-height: 1.5;
  font-size: 16px;
}
.includes b { padding: 0 6px; }
.skill-actions {
  display: grid;
  grid-template-columns: 86px minmax(132px, 1fr);
  align-items: center;
  justify-content: end;
  gap: 16px;
}
.skill-button {
  align-self: center;
  min-width: 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(22,32,51,.16);
  transition: transform .15s ease, filter .15s ease;
}
.skill-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}
.skill-orange::before, .skill-orange .skill-icon, .skill-orange .skill-button { background: #ff8a1f; }
.skill-orange .skill-badge { background: #fff1df; }
.skill-orange .includes b { color: #ff8a1f; }
.skill-aqua::before, .skill-aqua .skill-icon, .skill-aqua .skill-button { background: #2dc8cc; }
.skill-aqua .skill-badge { background: #e2fbfb; }
.skill-aqua .includes b { color: #2dc8cc; }
.skill-violet::before, .skill-violet .skill-icon, .skill-violet .skill-button { background: #7b55d9; }
.skill-violet .skill-badge { background: #f0eafe; }
.skill-violet .includes b { color: #7b55d9; }
.skill-lime::before, .skill-lime .skill-icon, .skill-lime .skill-button { background: #86c91a; }
.skill-lime .skill-badge { background: #eefbdc; }
.skill-lime .includes b { color: #86c91a; }
.skill-red::before, .skill-red .skill-icon, .skill-red .skill-button { background: #f23b22; }
.skill-red .skill-badge { background: #ffe8e4; }
.skill-red .includes b { color: #f23b22; }
.skill-blue::before, .skill-blue .skill-icon, .skill-blue .skill-button { background: #5478f2; }
.skill-blue .skill-badge { background: #eaf0ff; }
.skill-blue .includes b { color: #5478f2; }
.skill-teal::before, .skill-teal .skill-icon, .skill-teal .skill-button { background: #16a38e; }
.skill-teal .skill-badge { background: #def8f3; }
.skill-teal .includes b { color: #16a38e; }
.setup-shell {
  margin: 30px auto 0;
  width: min(1040px, 100%);
}
.setup-card {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(0, 1.15fr);
  gap: 28px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,216,77,.24), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(77,183,244,.2), transparent 20%),
    #fff;
  border: 1px solid rgba(34,174,234,.18);
  box-shadow: 0 18px 46px rgba(22,32,51,.12);
}
.setup-main h1 {
  margin: 0;
  color: #12385a;
  font-size: 38px;
  line-height: 1.08;
}
.setup-copy {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.setup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.setup-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #24515f;
  font-weight: 800;
  background: #eefaf7;
  border: 1px solid rgba(15,118,110,.12);
}
.difficulty-form {
  display: grid;
  gap: 18px;
}
.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.difficulty-option {
  display: block;
}
.difficulty-option input {
  position: absolute;
  opacity: 0;
}
.difficulty-option span {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 2px solid #e3ebf4;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.difficulty-option strong {
  color: #253044;
  font-size: 22px;
}
.difficulty-option em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0d8;
  color: #a35400;
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}
.difficulty-option small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.difficulty-option input:checked + span {
  background: #f0fff5;
  border-color: #69bd43;
  box-shadow: 0 0 0 5px rgba(105,189,67,.16);
  transform: translateY(-2px);
}
.setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.hero-band, .result-hero, .practice-head {
  background: linear-gradient(135deg, #f47a12, #0f766e);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 42px rgba(20, 86, 73, .18);
}
.hero-band h1, .result-hero h1, .practice-head h1 { margin: 6px 0; font-size: 34px; }
.result-summary {
  margin: 22px auto 18px;
}
.result-summary h1 {
  font-size: 46px;
  letter-spacing: .02em;
}
.result-summary p:not(.eyebrow) {
  margin: 8px 0 0;
  color: rgba(255,255,255,.86);
  font-weight: 800;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: 12px; font-weight: 700; opacity: .8; margin: 0 0 6px; }
.muted { color: var(--muted); }
.profile-grid, .result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}
.result-stats {
  grid-template-columns: repeat(5, minmax(112px, 1fr));
}
.profile-grid span, .result-stats span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
}
.profile-grid strong, .result-stats strong { display: block; margin-top: 4px; font-size: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.section-head h1, .section-head h2 { margin: 0; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card, .question-card, .review-card, .login-panel, .table-wrap, .empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(22, 32, 51, .05);
}
.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e6f4f1;
  color: var(--brand);
  font-weight: 800;
}
.module-card h3 { margin: 16px 0 8px; }
.module-card p { color: var(--muted); min-height: 42px; }
.module-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(199, 83, 0, .18);
  border-radius: 14px;
  padding: 0 22px;
  background: linear-gradient(180deg, #ff9d2e 0%, #f47a12 100%);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(244, 122, 18, .24), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.button:hover, button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 13px 22px rgba(244, 122, 18, .3), inset 0 1px 0 rgba(255,255,255,.32);
}
.button:active, button:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(244, 122, 18, .22), inset 0 2px 4px rgba(132,58,0,.16);
}
.button.secondary {
  background: #e7edf6;
  border-color: #d8e1ec;
  color: var(--ink);
  box-shadow: none;
  margin-top: 0;
}
.button.secondary:hover {
  box-shadow: 0 8px 16px rgba(22,32,51,.08);
}
.login-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.login-panel { width: min(440px, 100%); }
.login-panel h1 { margin: 0 0 8px; }
.form { display: grid; gap: 14px; margin-top: 22px; }
label { display: grid; gap: 6px; font-weight: 700; }
input[type="email"], input[type="password"], .answer-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
.alert { background: #fff1f0; color: var(--danger); padding: 10px 12px; border-radius: 8px; margin-top: 14px; }
.practice-head { margin-bottom: 18px; }
.timer { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.practice-form, .review-list { display: grid; gap: 16px; }
.question-count { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.question-card h2, .review-card h2 { margin: 0 0 16px; font-size: 22px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option input { position: absolute; opacity: 0; }
.option span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
}
.option input:checked + span { border-color: var(--brand); background: #e6f4f1; }
.submit-practice {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  padding: 0 22px;
}
.submit-practice:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.15);
}
.single-practice-shell {
  margin: 12px calc(50% - 50vw) -56px;
  min-height: calc(100vh - 90px);
  padding: 28px 16px 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.44), transparent 18%),
    linear-gradient(180deg, #8bdcf4 0%, #abedf0 100%);
}
.one-by-one-practice {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 0;
  align-items: start;
}
.question-stage {
  min-height: 620px;
  background: #fff;
  border: 1px solid rgba(22, 32, 51, .08);
  border-radius: 14px 0 0 14px;
  padding: 36px 42px;
}
.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.question-position {
  color: var(--muted);
  font-weight: 800;
}
.single-question {
  display: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.single-question.active {
  display: block;
}
.question-prompt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.question-prompt h2 {
  color: #527d00;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}
.question-letter {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff9d2e 0%, #f47a12 100%);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.1), 0 10px 18px rgba(244,122,18,.22);
}
.practice-question-icon {
  font-size: 24px;
}
.sound-icon {
  flex: 0 0 auto;
  color: #06a9e8;
  font-size: 0;
  width: 34px;
  height: 34px;
  position: relative;
  margin-top: 2px;
}
.sound-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 16px;
  background: #06a9e8;
  clip-path: polygon(0 28%, 45% 28%, 100% 0, 100% 100%, 45% 72%, 0 72%);
}
.sound-icon::after {
  content: ")))";
  position: absolute;
  left: 16px;
  top: 0;
  color: #06a9e8;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -5px;
}
.picture-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 300px));
  gap: 8px;
  margin-left: 48px;
}
.picture-option input {
  position: absolute;
  opacity: 0;
}
.picture-option span {
  min-height: 300px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  border: 2px solid #92ddff;
  border-radius: 4px;
  background: #fff;
  padding: 22px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.picture-option input:checked + span {
  border-color: #79c900;
  box-shadow: 0 0 0 4px rgba(121, 201, 0, .18);
  transform: translateY(-2px);
}
.word-art {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffde59, #ff914d);
  color: #fff;
  font-size: 76px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.08);
}
.picture-option strong {
  font-size: 28px;
  font-weight: 500;
  color: #111;
}
.spelling-option-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: 780px;
}
.spelling-option-grid .picture-option span {
  min-height: 120px;
  grid-template-rows: 1fr;
  font-size: 30px;
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
}
.spelling-option-grid .picture-option strong {
  color: #253044;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.big-answer {
  margin-left: 48px;
  width: min(620px, calc(100% - 48px));
  min-height: 58px;
  font-size: 24px;
  border-color: #92ddff;
}
.question-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 34px;
}
.question-actions .submit-practice {
  width: min(260px, 100%);
}
.single-question.submitted .picture-option span,
.single-question.submitted .answer-input {
  pointer-events: none;
}
.example-panel {
  margin: 24px 0 0 48px;
  width: min(840px, calc(100% - 48px));
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #ffe0b9;
  background: #fff8ed;
  box-shadow: 0 10px 24px rgba(244,122,18,.08);
}
.example-panel h3 {
  margin: 0 0 14px;
  color: #12385a;
  font-size: 18px;
}
.example-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.example-panel div {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f1e4d4;
}
.example-panel dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.example-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
}
.secondary-action {
  background: #eef4f8;
  color: var(--ink);
}
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.submit-hint {
  align-self: center;
  margin-left: auto;
  padding: 11px 14px;
  border-radius: 8px;
  background: #fff8e6;
  color: #8a5a00;
  font-weight: 800;
  border: 1px solid #ffd77a;
}
.practice-side-panel {
  min-height: 620px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #fff8ed 0%, #f3fbf5 100%);
  border: 1px solid rgba(22, 32, 51, .08);
  border-left: 0;
  overflow: hidden;
}
.side-box {
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(244,122,18,.18);
  border-radius: 16px;
  padding: 14px 8px;
  box-shadow: 0 10px 20px rgba(22,32,51,.06);
}
.side-box span {
  display: block;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  font-size: 13px;
  width: calc(100% + 16px);
  margin: -14px -8px 12px;
  padding: 10px 5px;
  border-radius: 16px 16px 10px 10px;
}
.side-box strong {
  display: block;
  color: #172033;
  font-size: 34px;
  line-height: 1;
}
.side-box.answered span { background: linear-gradient(135deg, #72b85f, #409f4c); }
.side-box.elapsed span { background: linear-gradient(135deg, #ffd56a, #f47a12); }
.side-box.score span { background: linear-gradient(135deg, #0f766e, #72b85f); }
.side-box.elapsed strong {
  font-size: 24px;
}
.pencil-mark {
  width: 44px;
  height: 12px;
  margin: 58px auto 0;
  background: #11aee9;
  transform: rotate(45deg);
  position: relative;
}
.pencil-mark::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  border-right: 12px solid #0d8ec2;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.pencil-mark::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  width: 8px;
  height: 12px;
  background: #fff;
}
.review-list {
  width: min(1040px, 100%);
  margin: 0 auto;
}
.review-card {
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 14px 34px rgba(22, 32, 51, .08);
}
.review-card.correct {
  border-left: 6px solid var(--ok);
  background: linear-gradient(90deg, rgba(21,128,61,.06), #fff 22%);
}
.review-card.wrong {
  border-left: 6px solid var(--danger);
  background: linear-gradient(90deg, rgba(180,35,24,.06), #fff 22%);
}
.review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.review-topline .question-count {
  margin: 0;
}
.status-pill {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: var(--danger);
}
.review-card.correct .status-pill {
  background: var(--ok);
}
.answer-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.answer-review-grid p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8ed;
  border: 1px solid #ffe1ba;
  color: var(--muted);
  font-weight: 800;
}
.answer-review-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
}
.result-actions {
  width: min(1040px, 100%);
  margin: 18px auto 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 8px; }
.tabs a { padding: 8px 12px; border-radius: 8px; background: #e7edf6; color: var(--ink); }
.tabs a.active { background: var(--brand); color: #fff; }

@media (max-width: 820px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 16px; gap: 10px; }
  .topbar nav { flex-wrap: wrap; }
  .brand img { width: 138px; }
  .brand span { font-size: 14px; }
  .hero-band, .result-hero, .practice-head { display: block; }
  .profile-grid, .result-stats { margin-top: 18px; grid-template-columns: 1fr; }
  .result-summary h1 {
    font-size: 34px;
  }
  .answer-review-grid {
    grid-template-columns: 1fr;
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .button {
    width: 100%;
  }
  .module-grid, .option-grid { grid-template-columns: 1fr; }
  .hero-band h1, .result-hero h1, .practice-head h1 { font-size: 28px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .kids-hero { min-height: 360px; }
  .kids-hero-content { padding: 44px 16px 104px; }
  .kids-hero h1 { font-size: 36px; }
  .kids-hero p { font-size: 16px; }
  .hero-language-tabs {
    width: min(360px, 100%);
  }
  .book-stack { right: 8%; bottom: 70px; transform: scale(.82); }
  .balloon { left: 7%; bottom: 86px; transform: scale(.78); }
  .practice-list-head {
    margin-top: -54px;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .practice-head-actions {
    align-items: stretch;
    justify-content: stretch;
  }
  .language-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .language-tabs a {
    flex: 1;
    min-width: 92px;
  }
  .practice-list-head .leaderboard-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .practice-list-head h2 { font-size: 26px; }
  .practice-list-head p { font-size: 15px; }
  .language-section-head {
    padding: 14px;
  }
  .language-section-head span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .language-section-head h2 {
    font-size: 22px;
  }
  .language-section-head p {
    font-size: 14px;
  }
  .skill-row {
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding: 16px;
  }
  .skill-row::before {
    left: 16px;
    right: 16px;
  }
  .skill-badge {
    width: 62px;
    min-height: 62px;
    border-radius: 16px;
  }
  .skill-icon {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
  .skill-content { padding: 0; }
  .skill-title-line { display: block; }
  .skill-row h3 { font-size: 21px; }
  .skill-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .skill-score {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
  }
  .includes { font-size: 14px; }
  .skill-button {
    margin-top: 0;
    border-radius: 12px;
    width: 100%;
  }
  .setup-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .setup-main h1 {
    font-size: 30px;
  }
  .difficulty-grid {
    grid-template-columns: 1fr;
  }
  .setup-actions {
    flex-direction: column;
  }
  .setup-actions .button,
  .setup-actions button {
    width: 100%;
  }
  .single-practice-shell {
    margin-top: 0;
    padding: 12px;
  }
  .one-by-one-practice {
    grid-template-columns: 1fr;
  }
  .question-stage {
    min-height: auto;
    border-radius: 14px 14px 0 0;
    padding: 22px 16px;
  }
  .practice-side-panel {
    min-height: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    border-left: 1px solid rgba(22, 32, 51, .08);
    border-radius: 0 0 14px 14px;
  }
  .side-box strong {
    padding: 0;
    font-size: 24px;
  }
  .side-box.elapsed strong {
    font-size: 20px;
  }
  .question-topline {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
  }
  .question-prompt h2 {
    font-size: 22px;
  }
  .question-letter {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
  }
  .picture-option-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .spelling-option-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .picture-option span {
    min-height: 210px;
  }
  .big-answer {
    margin-left: 0;
    width: 100%;
  }
  .question-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .question-actions .submit-practice {
    width: 100%;
  }
  .example-panel {
    margin-left: 0;
    width: 100%;
  }
  .example-panel dl {
    grid-template-columns: 1fr;
  }
  .submit-hint {
    margin-left: 0;
    text-align: center;
  }
}
