:root {
  --ink: #15376f;
  --ink-soft: #5b6e8d;
  --line: #e8edf5;
  --blue: #3f80df;
  --blue-strong: #3570ca;
  --green: #2e9f68;
  --danger: #cf4b3a;
  --shadow-lg: 0 18px 45px rgba(55, 88, 143, 0.18);
  --shadow-xl: 0 30px 80px rgba(43, 61, 92, 0.16);
  --radius-card: 24px;
  --radius-soft: 18px;
  --page-gutter: clamp(18px, 4vw, 58px);
  --font-brand: "Arial Rounded MT Bold", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Gujarati", "Kalinga", "Noto Sans Oriya", "Noto Sans Odia", "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Gujarati", "Kalinga", "Noto Sans Oriya", "Noto Sans Odia", "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: url("assets/kidsiksha-full-background.png") center center / cover no-repeat;
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
}

@media (hover: none), (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.56) 24%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.04) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.page-shell.app-view::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
}

.landing-stage,
.app-stage {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-nav,
.hero-column,
.info-panel,
.dashboard-shell,
.setup-overlay,
.language-switcher {
  position: relative;
  z-index: 1;
}

.language-switcher {
  position: fixed;
  top: 16px;
  right: var(--page-gutter);
  display: inline-grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(39, 64, 110, 0.16);
  backdrop-filter: blur(12px);
  z-index: 6;
}

.language-label {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.language-select {
  min-height: 40px;
  border: 1px solid rgba(63, 128, 223, 0.18);
  border-radius: 12px;
  padding: 0 38px 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.92) 100%);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.92) 100%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.language-select:focus {
  outline: none;
  border-color: rgba(63, 128, 223, 0.58);
  box-shadow: 0 0 0 4px rgba(63, 128, 223, 0.12);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 34px 0 0 var(--page-gutter);
}

.nav-link {
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: #355691;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
  -webkit-tap-highlight-color: transparent;
}

.nav-link.is-active,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.hero-column {
  width: min(410px, calc(100% - (var(--page-gutter) * 2)));
  margin-left: var(--page-gutter);
  padding-top: 72px;
  padding-bottom: 42px;
}

.brand-block {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.sunburst {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 108px;
  height: 108px;
  background:
    radial-gradient(circle at center, rgba(255, 214, 74, 0.76) 0 18%, transparent 18% 100%),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 214, 74, 0.72) 0deg 4deg,
      transparent 4deg 14deg
    );
  border-radius: 999px;
  opacity: 0.85;
}

.brand-wordmark {
  position: relative;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(4.2rem, 10vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-shadow: 0 8px 20px rgba(255, 255, 255, 0.72);
}

.brand-kid {
  color: #ff7a17;
}

.brand-sik {
  color: #0f97dc;
}

.brand-sha {
  color: #f040b6;
}

.auth-card,
.setup-card {
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.auth-card {
  width: 100%;
  max-width: min(380px, 100%);
  padding: 28px 34px 26px;
}

.auth-card h2,
.setup-card h2 {
  margin: 0 0 22px;
  color: var(--ink);
  line-height: 1.1;
}

.auth-card h2 {
  font-size: 1.6rem;
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
}

.auth-form input,
.setup-form input,
.setup-form select,
.setup-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.setup-form textarea {
  min-height: 108px;
  padding: 14px 16px;
}

.auth-form input {
  margin-bottom: 14px;
}

.auth-form input::placeholder,
.setup-form input::placeholder,
.setup-form textarea::placeholder {
  color: #7e8797;
}

.auth-form input:focus,
.setup-form input:focus,
.setup-form select:focus,
.setup-form textarea:focus {
  border-color: rgba(63, 128, 223, 0.58);
  box-shadow: 0 0 0 4px rgba(63, 128, 223, 0.12);
}

.primary-button,
.glass-button {
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  background: linear-gradient(180deg, #4a8ff0 0%, var(--blue) 100%);
  color: #ffffff;
  font-size: 0.98rem;
  box-shadow: 0 14px 24px rgba(63, 128, 223, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible,
.glass-button:hover,
.glass-button:focus-visible {
  transform: translateY(-1px);
}

.auth-feedback,
.setup-feedback {
  min-height: 1.5em;
  margin: 14px 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
}

.auth-feedback.is-error,
.setup-feedback.is-error {
  color: var(--danger);
}

.auth-switch {
  margin: 12px 0 0;
  text-align: center;
  color: #707a8d;
  font-size: 0.92rem;
}

.inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--blue-strong);
}

.info-panel {
  position: absolute;
  top: 82px;
  right: max(24px, calc(var(--page-gutter) - 20px));
  width: min(300px, calc(100% - (var(--page-gutter) * 2)));
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(32, 57, 104, 0.16);
  backdrop-filter: blur(12px);
}

.info-panel h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.info-panel p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.page-footer {
  position: relative;
  z-index: 1;
}

.page-footer p {
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(39, 64, 110, 0.12);
  backdrop-filter: blur(10px);
  color: #31548c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.landing-footer {
  width: min(410px, calc(100% - (var(--page-gutter) * 2)));
  margin-left: var(--page-gutter);
  padding-bottom: 30px;
}

.dashboard-footer {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 34px) 38px;
}

.dashboard-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: clamp(96px, 9vw, 112px) clamp(18px, 3vw, 34px) clamp(42px, 5vw, 62px);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content actions"
    "content avatar";
  align-items: start;
  column-gap: clamp(18px, 3vw, 30px);
  row-gap: 14px;
  overflow: hidden;
  padding: 30px 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 74, 0.26), transparent 28%),
    radial-gradient(circle at bottom left, rgba(114, 203, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 247, 255, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    0 26px 58px rgba(32, 57, 104, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 214, 74, 0.18), rgba(255, 214, 74, 0));
  pointer-events: none;
}

.dashboard-title-group {
  grid-area: content;
  max-width: 720px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dashboard-hero-art {
  grid-area: avatar;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: end;
  width: 156px;
  min-height: 156px;
  min-width: 156px;
  z-index: 1;
}

.dashboard-avatar-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 134px;
  height: 134px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), transparent 56%),
    linear-gradient(180deg, rgba(255, 247, 205, 0.98) 0%, rgba(234, 244, 255, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 42px rgba(63, 128, 223, 0.18);
  font-size: 4.2rem;
}

.dashboard-avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 214, 74, 0.24), rgba(255, 214, 74, 0));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dashboard-kicker,
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-header h2 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
}

.dashboard-header p,
.dashboard-card p,
.setup-copy {
  color: var(--ink-soft);
  line-height: 1.6;
}

#dashboard-subtitle {
  max-width: 620px;
  margin: 0;
}

.dashboard-actions {
  grid-area: actions;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  align-self: start;
  position: relative;
  z-index: 1;
}

.glass-button {
  min-height: 46px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(44, 73, 121, 0.14);
  backdrop-filter: blur(10px);
}

.glass-button.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  border-radius: 16px;
  flex: 0 0 50px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.92), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 241, 255, 0.96) 100%);
  border: 1px solid rgba(124, 161, 226, 0.32);
}

#dashboard-signout-button {
  color: #d84f44;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.94), transparent 52%),
    linear-gradient(180deg, rgba(255, 247, 245, 0.98) 0%, rgba(255, 233, 229, 0.96) 100%);
  border-color: rgba(231, 131, 120, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 24px rgba(216, 79, 68, 0.12);
}

#dashboard-signout-button:hover,
#dashboard-signout-button:focus-visible {
  color: #bd382e;
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 4px rgba(216, 79, 68, 0.12),
    0 18px 30px rgba(216, 79, 68, 0.18);
}

.button-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.dashboard-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(32, 57, 104, 0.16);
  backdrop-filter: blur(12px);
}

.dashboard-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.dashboard-feature {
  grid-column: 1 / -1;
  min-height: 260px;
}

.dashboard-button {
  width: auto;
  max-width: 220px;
  min-width: 170px;
  margin-top: 16px;
}

.games-section {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 74, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(116, 204, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 54px rgba(32, 57, 104, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  scroll-margin-top: 108px;
}

.games-section::before {
  content: "";
  position: absolute;
  top: -32px;
  right: -26px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 214, 74, 0.18), rgba(255, 214, 74, 0));
  pointer-events: none;
}

.games-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.games-copy-block {
  max-width: 680px;
}

.games-title {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.games-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.games-badge {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(44, 73, 121, 0.12);
  color: var(--blue-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

#little-explorer-section {
  scroll-margin-top: 116px;
}

.level-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(22px, 2.6vw, 28px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 249, 255, 0.9) 100%);
  border: 1px solid rgba(224, 233, 246, 0.94);
  box-shadow:
    0 22px 44px rgba(32, 57, 104, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.level-card::before {
  content: "";
  position: absolute;
  top: -34px;
  right: -30px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.level-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, rgba(74, 143, 240, 0.9), rgba(255, 180, 67, 0.9));
  pointer-events: none;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 58px rgba(32, 57, 104, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.level-card-featured,
.level-card-top {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 74, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(233, 245, 255, 0.92) 100%);
}

.level-card-featured {
  grid-column: 1 / -1;
}

.level-card-active {
  border: 2px solid rgba(255, 187, 76, 0.46);
  box-shadow:
    0 24px 54px rgba(32, 57, 104, 0.2),
    0 0 0 8px rgba(255, 214, 74, 0.08);
}

.level-card-live {
  border: 1px solid rgba(151, 206, 118, 0.52);
  box-shadow:
    0 22px 44px rgba(32, 57, 104, 0.16),
    0 0 0 6px rgba(151, 206, 118, 0.08);
}

.level-card-upcoming {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 249, 255, 0.92) 100%);
}

.level-card-locked {
  border-color: rgba(197, 210, 232, 0.9);
}

.level-theme-sun {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 74, 0.3), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 246, 225, 0.94) 100%);
}

.level-theme-mint {
  background:
    radial-gradient(circle at top right, rgba(142, 223, 151, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 252, 241, 0.94) 100%);
}

.level-theme-sky {
  background:
    radial-gradient(circle at top right, rgba(114, 203, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 247, 255, 0.94) 100%);
}

.level-theme-peach {
  background:
    radial-gradient(circle at top right, rgba(255, 165, 128, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 242, 235, 0.94) 100%);
}

.level-theme-rose {
  background:
    radial-gradient(circle at top right, rgba(255, 130, 165, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 239, 245, 0.94) 100%);
}

.level-theme-violet {
  background:
    radial-gradient(circle at top right, rgba(170, 132, 255, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 239, 255, 0.94) 100%);
}

.level-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.level-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.level-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 1.7rem;
}

.level-copy-block {
  min-width: 0;
}

.level-stage {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(65, 128, 224, 0.12);
  color: var(--blue-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.level-card h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #173f76;
}

.level-meta {
  margin: 0;
  color: var(--blue-strong);
  font-weight: 700;
}

.level-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.level-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.level-status-active {
  background: rgba(255, 214, 74, 0.24);
  color: #9b6900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.level-status-live {
  background: rgba(110, 191, 95, 0.18);
  color: #2f7d30;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.level-status-locked {
  background: rgba(126, 145, 177, 0.14);
  color: #586b89;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.level-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  line-height: 1;
}

.level-upcoming-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(63, 128, 223, 0.08);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.alphabet-language-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 74, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.92) 100%);
  border: 1px solid rgba(220, 231, 247, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 32px rgba(63, 128, 223, 0.08);
}

.alphabet-language-copy {
  display: grid;
  gap: 6px;
}

.alphabet-language-title {
  margin: 0;
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.alphabet-language-hint {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.alphabet-language-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.alphabet-language-button {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(63, 128, 223, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.94) 100%);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(63, 128, 223, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.alphabet-language-button:hover {
  transform: translateY(-1px);
  border-color: rgba(63, 128, 223, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(63, 128, 223, 0.14);
}

.alphabet-language-button:focus-visible {
  outline: none;
  border-color: rgba(63, 128, 223, 0.52);
  box-shadow:
    0 0 0 4px rgba(63, 128, 223, 0.14),
    0 12px 24px rgba(63, 128, 223, 0.14);
}

.alphabet-language-button.is-selected,
.alphabet-language-button[aria-pressed="true"] {
  border-color: rgba(63, 128, 223, 0.48);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.76), transparent 55%),
    linear-gradient(180deg, rgba(231, 242, 255, 0.98) 0%, rgba(213, 232, 255, 0.98) 100%);
  color: var(--blue-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(63, 128, 223, 0.18);
}

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

.level-game-card {
  --game-accent: #4a8ff0;
  --game-soft: #eef6ff;
  --game-soft-strong: #dcecff;
  --game-border: rgba(112, 160, 240, 0.32);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  min-height: 226px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(180deg, var(--game-soft) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid var(--game-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 32px rgba(63, 128, 223, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.level-game-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -18px;
  width: 102px;
  height: 102px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.level-game-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--game-accent), rgba(255, 255, 255, 0));
  opacity: 0.72;
  pointer-events: none;
}

.level-game-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 42px rgba(63, 128, 223, 0.16);
}

.level-game-card-primary {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 74, 0.22), transparent 40%),
    linear-gradient(180deg, var(--game-soft) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.tone-sky {
  --game-accent: #4093ff;
  --game-soft: #eef7ff;
  --game-soft-strong: #d9ecff;
  --game-border: rgba(82, 151, 255, 0.34);
}

.tone-gold {
  --game-accent: #ffb43d;
  --game-soft: #fff8e8;
  --game-soft-strong: #fff0c9;
  --game-border: rgba(255, 189, 82, 0.34);
}

.tone-pink {
  --game-accent: #ff6bb1;
  --game-soft: #fff1f8;
  --game-soft-strong: #ffddec;
  --game-border: rgba(255, 116, 178, 0.34);
}

.tone-orange {
  --game-accent: #ff8a42;
  --game-soft: #fff4eb;
  --game-soft-strong: #ffe3d2;
  --game-border: rgba(255, 148, 84, 0.34);
}

.tone-green {
  --game-accent: #4dbb6a;
  --game-soft: #eefaf1;
  --game-soft-strong: #d8f4df;
  --game-border: rgba(93, 196, 118, 0.34);
}

.tone-coral {
  --game-accent: #ff6d6d;
  --game-soft: #fff0f0;
  --game-soft-strong: #ffdede;
  --game-border: rgba(255, 121, 121, 0.34);
}

.tone-blue {
  --game-accent: #4d7dff;
  --game-soft: #eef2ff;
  --game-soft-strong: #dde5ff;
  --game-border: rgba(102, 130, 255, 0.34);
}

.tone-purple {
  --game-accent: #9b69ff;
  --game-soft: #f3eeff;
  --game-soft-strong: #e6dcff;
  --game-border: rgba(164, 118, 255, 0.34);
}

.level-game-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.level-game-copy h5 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #173f76;
}

.level-game-copy p:not(.game-chip) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.level-game-card .game-chip {
  background: rgba(255, 255, 255, 0.84);
  color: var(--game-accent);
  box-shadow: 0 8px 16px rgba(63, 128, 223, 0.08);
}

.board-play-button {
  width: auto;
}

.level-games-grid-curious {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.games-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0 auto;
  max-width: 760px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 249, 255, 0.9) 100%);
  box-shadow: 0 18px 38px rgba(32, 57, 104, 0.14);
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: auto -16px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(79, 154, 241, 0.12);
}

.game-icon-badge,
.game-chip,
.game-status {
  position: relative;
  z-index: 1;
}

.game-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 1.6rem;
}

.game-chip,
.game-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.game-status {
  margin-top: auto;
  background: rgba(255, 214, 74, 0.22);
  color: #9a6a00;
}

.game-card h4,
.game-card p,
.game-play-button {
  position: relative;
  z-index: 1;
}

.game-card h4 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.game-card > p:not(.game-chip) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.game-play-button {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.3), transparent 48%),
    linear-gradient(180deg, #68b7ff 0%, #4f95ff 45%, #3f80df 100%);
  box-shadow:
    0 16px 28px rgba(63, 128, 223, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.game-play-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 76%);
  transform: translateX(-120%);
  transition: transform 220ms ease;
  pointer-events: none;
}

.level-game-card:hover .game-play-button,
.level-game-card:focus-within .game-play-button,
.game-play-button:hover,
.game-play-button:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 22px 34px rgba(63, 128, 223, 0.34),
    0 0 0 5px rgba(110, 182, 255, 0.16);
}

.level-game-card:hover .game-play-button::after,
.level-game-card:focus-within .game-play-button::after,
.game-play-button:hover::after,
.game-play-button:focus-visible::after {
  transform: translateX(120%);
}

.game-play-button:active {
  transform: translateY(0) scale(0.99);
  box-shadow:
    0 10px 18px rgba(63, 128, 223, 0.24),
    0 0 0 3px rgba(110, 182, 255, 0.12);
}

.game-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 32px var(--page-gutter);
  overflow-y: auto;
  background: rgba(18, 40, 84, 0.24);
  backdrop-filter: blur(16px);
  z-index: 8;
}

.game-confirm-overlay {
  z-index: 14;
  background: rgba(13, 31, 68, 0.32);
}

.game-confirm-card {
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.94), transparent 48%),
    linear-gradient(180deg, rgba(255, 251, 239, 0.98) 0%, rgba(242, 247, 255, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 64px rgba(25, 51, 97, 0.24);
}

.game-confirm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 240, 255, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 36px rgba(108, 89, 201, 0.16);
  font-size: 2.5rem;
}

.game-confirm-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.08;
  color: var(--ink);
}

.game-confirm-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.game-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.alphabet-modal {
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 70px rgba(32, 57, 104, 0.26);
}

.alphabet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.alphabet-modal-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.alphabet-modal-header h3 {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.alphabet-intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.alphabet-progress-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.alphabet-progress-label,
.alphabet-progress-count {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--blue-strong);
}

.alphabet-progress-bar {
  width: 100%;
  height: 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(63, 128, 223, 0.12);
  overflow: hidden;
}

.alphabet-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ab0ff 0%, #3f80df 48%, #ffb54e 100%);
  transition: width 180ms ease;
}

.alphabet-card-display {
  --alphabet-accent: #ff8a6b;
  --alphabet-soft: #fff3ec;
  padding: 28px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(180deg, var(--alphabet-soft) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 36px rgba(68, 107, 167, 0.12);
  text-align: center;
}

.alphabet-letter-label {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alphabet-letter-pair {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}

.alphabet-letter,
.alphabet-lowercase {
  font-family: var(--font-brand);
  line-height: 1;
  color: var(--alphabet-accent);
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.68);
}

.alphabet-letter {
  font-size: clamp(4.8rem, 12vw, 7rem);
}

.alphabet-lowercase {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.alphabet-word {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
}

.alphabet-picture {
  margin-bottom: 12px;
  font-size: clamp(3.2rem, 8vw, 4.4rem);
}

.alphabet-tip {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.alphabet-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.alphabet-next-button {
  margin-top: 0;
}

.find-letter-modal {
  width: min(820px, 100%);
}

.find-letter-target-card {
  padding: 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.76), transparent 42%),
    linear-gradient(180deg, rgba(255, 245, 227, 0.96) 0%, rgba(240, 247, 255, 0.96) 100%);
  border: 2px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 36px rgba(68, 107, 167, 0.12);
  text-align: center;
}

.find-letter-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  min-height: 168px;
  margin: 10px auto 14px;
  padding: 18px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 34px rgba(74, 128, 223, 0.14);
  font-family: var(--font-brand);
  font-size: clamp(4.4rem, 11vw, 6.4rem);
  line-height: 1;
  color: #ff8755;
  text-shadow:
    0 12px 24px rgba(255, 255, 255, 0.8),
    0 6px 18px rgba(255, 135, 85, 0.14);
}

.find-letter-hint {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.find-letter-feedback {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
}

.find-letter-feedback.is-success {
  color: var(--green);
}

.find-letter-feedback.is-error {
  color: var(--danger);
}

.find-letter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.find-letter-option {
  min-height: 82px;
  border: 1px solid rgba(63, 128, 223, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.8), transparent 48%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.98) 0%, rgba(233, 244, 255, 0.92) 100%);
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(63, 128, 223, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.find-letter-option:hover,
.find-letter-option:focus-visible {
  border-color: rgba(63, 128, 223, 0.44);
  color: var(--blue-strong);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 30px rgba(63, 128, 223, 0.18);
}

.find-letter-option:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(63, 128, 223, 0.14),
    0 18px 30px rgba(63, 128, 223, 0.18);
}

.find-letter-option.is-correct {
  border-color: rgba(46, 159, 104, 0.42);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), transparent 48%),
    linear-gradient(180deg, rgba(232, 251, 242, 0.98) 0%, rgba(209, 245, 224, 0.96) 100%);
  color: #16784c;
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 30px rgba(46, 159, 104, 0.2);
}

.find-letter-option.is-wrong {
  border-color: rgba(207, 75, 58, 0.36);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.86), transparent 48%),
    linear-gradient(180deg, rgba(255, 239, 236, 0.98) 0%, rgba(255, 224, 219, 0.96) 100%);
  color: var(--danger);
  animation: find-letter-shake 240ms ease-in-out;
}

.find-letter-option:disabled {
  cursor: default;
}

.find-letter-grid.is-locked .find-letter-option:not(.is-correct) {
  opacity: 0.72;
  transform: none;
}

.find-letter-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.find-letter-complete-panel {
  margin-top: 0;
  animation: find-letter-panel-pop 560ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.curious-cub-modal {
  width: min(860px, 100%);
}

.curious-cub-stage-card {
  padding: 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.78), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 234, 0.96) 0%, rgba(238, 247, 255, 0.96) 100%);
  border: 2px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 36px rgba(68, 107, 167, 0.12);
  text-align: center;
}

.curious-cub-visual {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 12px;
}

.curious-word-display,
.curious-equation-display,
.curious-target-word,
.curious-shape-target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(360px, 100%);
  min-height: 148px;
  padding: 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 34px rgba(74, 128, 223, 0.12);
}

.curious-word-display {
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 8vw, 3.7rem);
  color: var(--ink);
}

.curious-word-display .curious-letter-tile,
.curious-gap-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 68px;
  padding: 4px 10px;
  border-radius: 18px;
  background: rgba(242, 248, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.curious-gap-slot {
  background:
    linear-gradient(180deg, rgba(255, 239, 211, 0.98) 0%, rgba(255, 227, 179, 0.98) 100%);
  color: #a06b00;
}

.curious-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(360px, 100%);
}

.curious-count-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 255, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px rgba(74, 128, 223, 0.1);
  font-size: 2rem;
}

.curious-count-caption,
.curious-support-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.curious-target-word,
.curious-equation-display {
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 1;
  color: #ff8755;
  text-shadow: 0 10px 20px rgba(255, 255, 255, 0.8);
}

.curious-shape-target {
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}

.curious-shape-target .shape-symbol {
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 10vw, 4.7rem);
  line-height: 1;
  color: #4f95ff;
}

.curious-shape-target .shape-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.curious-cub-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.curious-cub-option {
  min-height: 94px;
  padding: 12px 10px;
  border: 1px solid rgba(63, 128, 223, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.8), transparent 48%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.98) 0%, rgba(233, 244, 255, 0.92) 100%);
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(63, 128, 223, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.curious-cub-option:hover,
.curious-cub-option:focus-visible {
  border-color: rgba(63, 128, 223, 0.44);
  color: var(--blue-strong);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 30px rgba(63, 128, 223, 0.18);
}

.curious-cub-option:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(63, 128, 223, 0.14),
    0 18px 30px rgba(63, 128, 223, 0.18);
}

.curious-cub-option-main {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
}

.curious-cub-option-main.is-symbol {
  font-size: clamp(2.3rem, 6vw, 3.1rem);
}

.curious-cub-option-sub {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.curious-cub-option.is-correct {
  border-color: rgba(46, 159, 104, 0.42);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), transparent 48%),
    linear-gradient(180deg, rgba(232, 251, 242, 0.98) 0%, rgba(209, 245, 224, 0.96) 100%);
  color: #16784c;
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 30px rgba(46, 159, 104, 0.2);
}

.curious-cub-option.is-wrong {
  border-color: rgba(207, 75, 58, 0.36);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.86), transparent 48%),
    linear-gradient(180deg, rgba(255, 239, 236, 0.98) 0%, rgba(255, 224, 219, 0.96) 100%);
  color: var(--danger);
  animation: find-letter-shake 240ms ease-in-out;
}

.curious-cub-option:disabled {
  cursor: default;
}

.curious-cub-options.is-locked .curious-cub-option:not(.is-correct) {
  opacity: 0.72;
  transform: none;
}

@keyframes find-letter-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

@keyframes find-letter-panel-pop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes celebration-boom-ring {
  0% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.2);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.4);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.1);
  }
}

@keyframes celebration-boom-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--boom-angle)) translateY(-24px) scale(0.15);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--boom-angle)) translateY(-118px) scale(1.05);
  }
}

.alphabet-complete-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 30px 24px 26px;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.84), transparent 40%),
    linear-gradient(180deg, rgba(255, 250, 225, 0.96) 0%, rgba(236, 245, 255, 0.96) 100%);
  border: 1px solid rgba(255, 196, 84, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 20px 42px rgba(72, 109, 173, 0.16);
}

.alphabet-complete-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.celebration-boom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.celebration-boom-ring,
.celebration-boom-spark {
  position: absolute;
  left: 50%;
  top: 148px;
  opacity: 0;
}

.celebration-boom-ring {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border-radius: 999px;
  border: 6px solid rgba(255, 194, 60, 0.9);
  box-shadow:
    0 0 0 12px rgba(255, 227, 136, 0.16),
    0 0 26px rgba(255, 155, 77, 0.16);
}

.celebration-boom-spark {
  width: 14px;
  height: 58px;
  margin-left: -7px;
  margin-top: -29px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4a8 0%, #ffb15d 58%, #ff7f73 100%);
  transform: translate(-50%, -50%) rotate(var(--boom-angle)) translateY(-82px) scale(0.3);
  transform-origin: center 82px;
  box-shadow: 0 4px 14px rgba(255, 167, 65, 0.18);
}

.celebration-boom-spark:nth-child(2) {
  --boom-angle: 0deg;
}

.celebration-boom-spark:nth-child(3) {
  --boom-angle: 45deg;
}

.celebration-boom-spark:nth-child(4) {
  --boom-angle: 90deg;
}

.celebration-boom-spark:nth-child(5) {
  --boom-angle: 135deg;
}

.celebration-boom-spark:nth-child(6) {
  --boom-angle: 180deg;
}

.celebration-boom-spark:nth-child(7) {
  --boom-angle: 225deg;
}

.celebration-boom-spark:nth-child(8) {
  --boom-angle: 270deg;
}

.celebration-boom-spark:nth-child(9) {
  --boom-angle: 315deg;
}

.alphabet-complete-panel.is-booming .celebration-boom-ring {
  animation: celebration-boom-ring 760ms cubic-bezier(0.12, 0.86, 0.24, 1) both;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark {
  animation: celebration-boom-spark 720ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(3) {
  animation-delay: 40ms;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(4) {
  animation-delay: 70ms;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(5) {
  animation-delay: 30ms;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(6) {
  animation-delay: 90ms;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(7) {
  animation-delay: 20ms;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(8) {
  animation-delay: 80ms;
}

.alphabet-complete-panel.is-booming .celebration-boom-spark:nth-child(9) {
  animation-delay: 50ms;
}

.celebration-star {
  position: absolute;
  display: inline-flex;
  animation: alphabet-celebrate-float 2.4s ease-in-out infinite;
}

.celebration-star-one {
  top: 12%;
  left: 10%;
  font-size: 1.2rem;
}

.celebration-star-two {
  top: 10%;
  right: 14%;
  font-size: 1.5rem;
  animation-delay: 0.35s;
}

.celebration-star-three {
  top: 34%;
  left: 16%;
  font-size: 1.1rem;
  animation-delay: 0.75s;
}

.celebration-star-four {
  top: 28%;
  right: 12%;
  font-size: 1.45rem;
  animation-delay: 0.55s;
}

.celebration-star-five {
  bottom: 16%;
  right: 24%;
  font-size: 1.4rem;
  animation-delay: 0.95s;
}

.alphabet-complete-kid {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  margin-top: 4px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(63, 128, 223, 0.16);
  animation: alphabet-kid-bounce 2.2s ease-in-out infinite;
}

.alphabet-complete-kid-main {
  font-size: 3.1rem;
}

.alphabet-complete-kid-party {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.8rem;
  animation: alphabet-party-wiggle 1.8s ease-in-out infinite;
}

.alphabet-complete-chip {
  margin-bottom: 0;
}

.alphabet-complete-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
}

.alphabet-complete-copy,
.alphabet-complete-note {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.alphabet-complete-copy {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.alphabet-complete-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

@keyframes alphabet-celebrate-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }

  50% {
    transform: translateY(-10px) scale(1.12);
    opacity: 1;
  }
}

@keyframes alphabet-kid-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes alphabet-party-wiggle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-12deg) scale(1.06);
  }

  75% {
    transform: rotate(10deg) scale(1.08);
  }
}

.alphabet-board-modal {
  width: min(900px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 70px rgba(32, 57, 104, 0.26);
}

.alphabet-board-script {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(65, 128, 224, 0.12);
  color: var(--blue-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.alphabet-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
}

.alphabet-board-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(63, 128, 223, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.98) 0%, rgba(233, 244, 255, 0.9) 100%);
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(63, 128, 223, 0.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    filter 180ms ease;
}

.alphabet-board-tile:hover,
.alphabet-board-tile:focus-visible {
  z-index: 2;
  border-color: rgba(63, 128, 223, 0.58);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.92), transparent 48%),
    linear-gradient(180deg, rgba(238, 247, 255, 0.99) 0%, rgba(198, 224, 255, 0.99) 100%);
  color: var(--blue-strong);
  transform: translateY(-4px) scale(1.12);
  filter: saturate(1.08);
  box-shadow: 0 24px 38px rgba(63, 128, 223, 0.26);
}

.alphabet-board-tile:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(63, 128, 223, 0.2),
    0 24px 38px rgba(63, 128, 223, 0.26);
}

.setup-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: start;
  overflow-y: auto;
  padding: clamp(16px, 4vh, 32px) var(--page-gutter);
  background: rgba(16, 40, 82, 0.14);
  backdrop-filter: blur(14px);
  z-index: 4;
}

.setup-overlay-toolbar {
  position: sticky;
  top: 76px;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: min(680px, 100%);
  margin-bottom: 12px;
}

.setup-signout-button {
  min-width: 0;
}

.setup-card {
  width: min(680px, 100%);
  max-height: calc(100dvh - clamp(32px, 8vh, 64px));
  overflow-y: auto;
  padding: 30px;
}

.setup-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.setup-copy {
  margin: 0 0 22px;
}

.setup-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--ink);
}

.setup-avatar-section {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.82), transparent 54%),
    linear-gradient(180deg, rgba(250, 245, 255, 0.96) 0%, rgba(238, 247, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 30px rgba(63, 128, 223, 0.1);
}

.setup-avatar-copy-block {
  margin-bottom: 16px;
}

.setup-avatar-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.setup-avatar-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.avatar-option {
  min-height: 88px;
  border: 1px solid rgba(93, 130, 210, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.94), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 24px rgba(63, 128, 223, 0.08);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.avatar-option:hover,
.avatar-option:focus-visible {
  border-color: rgba(63, 128, 223, 0.42);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 30px rgba(63, 128, 223, 0.14);
}

.avatar-option:focus-visible {
  outline: none;
}

.avatar-option.is-selected {
  border-color: rgba(63, 128, 223, 0.6);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), transparent 54%),
    linear-gradient(180deg, rgba(232, 243, 255, 0.98) 0%, rgba(217, 234, 255, 0.94) 100%);
  box-shadow:
    0 0 0 4px rgba(63, 128, 223, 0.12),
    0 18px 30px rgba(63, 128, 223, 0.16);
  transform: translateY(-3px) scale(1.03);
}

.avatar-emoji {
  display: block;
  font-size: 2.85rem;
  line-height: 1;
}

.setup-form input,
.setup-form select,
.setup-form textarea {
  margin-top: 8px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setup-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.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;
}

@media (max-width: 1100px) {
  .page-shell::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 28%, rgba(255, 255, 255, 0.22) 46%, rgba(255, 255, 255, 0.04) 66%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  }

  .brand-wordmark {
    font-size: clamp(3.7rem, 9vw, 4.6rem);
  }
}

@media (max-width: 980px) {
  body {
    background-position: 66% center;
    background-attachment: scroll;
  }

  .page-shell::before,
  .page-shell.app-view::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 34%, rgba(255, 255, 255, 0.18) 68%, rgba(255, 255, 255, 0.08) 100%);
  }

  .hero-column {
    width: min(420px, calc(100% - (var(--page-gutter) * 2)));
    padding-top: 42px;
  }

  .info-panel {
    position: static;
    margin: 12px var(--page-gutter) 0;
    width: min(420px, calc(100% - (var(--page-gutter) * 2)));
  }

  .landing-footer {
    width: min(420px, calc(100% - (var(--page-gutter) * 2)));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-feature {
    grid-column: auto;
  }

  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .levels-grid {
    grid-template-columns: 1fr;
  }

  .level-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .site-nav {
    gap: 14px 22px;
    padding-top: 20px;
  }

  .hero-column {
    width: auto;
    margin-left: 0;
    padding: 30px var(--page-gutter) 20px;
  }

  .landing-footer {
    margin: 14px var(--page-gutter) 0;
    padding-bottom: 28px;
  }

  .auth-card {
    max-width: 420px;
  }

  .dashboard-shell {
    padding-top: 92px;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "avatar"
      "actions";
    row-gap: 18px;
  }

  .dashboard-hero-art {
    width: 100%;
    min-width: 0;
    min-height: 0;
    justify-content: center;
    justify-self: center;
    align-self: center;
  }

  .dashboard-avatar-badge {
    width: 116px;
    height: 116px;
    font-size: 3.7rem;
  }

  .dashboard-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .level-card-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-section-header,
  .alphabet-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .alphabet-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  body {
    background-position: 60% center;
  }

  .language-switcher {
    top: 12px;
    gap: 8px;
    padding: 8px 10px;
  }

  .language-label {
    font-size: 0.82rem;
  }

  .language-switcher {
    grid-template-columns: auto minmax(110px, 1fr);
  }

  .language-select {
    min-height: 36px;
    padding-left: 12px;
    font-size: 0.86rem;
  }

  .site-nav {
    gap: 10px 16px;
  }

  .nav-link {
    padding: 8px 0;
    font-size: 0.98rem;
  }

  .brand-block {
    margin-bottom: 18px;
  }

  .sunburst {
    width: 84px;
    height: 84px;
    top: -4px;
    left: -6px;
  }

  .brand-wordmark {
    font-size: clamp(3.1rem, 13vw, 4rem);
  }

  .auth-card,
  .setup-card,
  .dashboard-card {
    border-radius: 20px;
  }

  .game-card,
  .alphabet-modal,
  .alphabet-card-display {
    border-radius: 22px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard-actions {
    width: 100%;
  }

  .glass-button {
    flex: 1 1 180px;
  }

  .glass-button.icon-button {
    flex: 0 0 50px;
    width: 50px;
  }

  .games-grid,
  .alphabet-action-row {
    grid-template-columns: 1fr;
  }

  .find-letter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .level-games-grid-curious {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curious-cub-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curious-count-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .alphabet-complete-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .level-games-grid {
    grid-template-columns: 1fr;
  }

  .level-head,
  .level-game-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-section {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .alphabet-language-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .avatar-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .alphabet-language-button {
    min-height: 46px;
    padding-inline: 12px;
  }

  .alphabet-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .page-shell::before,
  .page-shell.app-view::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 36%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0.08) 100%);
  }

  .site-nav {
    gap: 8px 14px;
    padding-top: 74px;
  }

  .nav-link {
    font-size: 0.94rem;
  }

  .auth-card {
    padding: 22px 18px 20px;
  }

  .landing-footer,
  .dashboard-footer {
    padding-bottom: 24px;
  }

  .auth-card h2 {
    font-size: 1.4rem;
  }

  .auth-form input,
  .setup-form input,
  .setup-form select,
  .setup-form textarea,
  .primary-button,
  .glass-button {
    font-size: 0.95rem;
  }

  .auth-switch,
  .auth-feedback,
  .setup-feedback {
    font-size: 0.9rem;
  }

  .dashboard-shell {
    padding-bottom: 34px;
  }

  .dashboard-card {
    padding: 20px;
    min-height: 0;
  }

  .dashboard-card h3 {
    font-size: 1.3rem;
  }

  .games-title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .alphabet-letter {
    font-size: clamp(4rem, 20vw, 5.4rem);
  }

  .alphabet-lowercase {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .alphabet-modal {
    padding: 22px 18px;
  }

  .find-letter-option {
    min-height: 72px;
    font-size: clamp(1.6rem, 9vw, 2.1rem);
  }

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

  .level-games-grid-curious,
  .curious-cub-options,
  .curious-count-grid {
    grid-template-columns: 1fr;
  }

  .curious-word-display,
  .curious-equation-display,
  .curious-target-word,
  .curious-shape-target {
    min-width: 100%;
  }

  .alphabet-board-modal {
    padding: 22px 18px;
  }

  .alphabet-language-panel {
    padding: 16px;
  }

  .game-overlay {
    padding: 20px 14px;
  }

  .setup-overlay {
    padding: 18px 14px;
  }

  .setup-card {
    max-height: calc(100dvh - 20px);
    padding: 22px 18px;
  }

  .setup-avatar-section {
    padding: 16px;
  }

  .setup-overlay-toolbar {
    margin-bottom: 10px;
    top: 72px;
  }

  .setup-signout-button {
    width: 50px;
  }

  .language-switcher {
    right: 14px;
    left: 14px;
    border-radius: 18px;
  }

  .language-switcher {
    grid-template-columns: auto minmax(108px, 1fr);
  }

  .avatar-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .avatar-option {
    min-height: 84px;
    border-radius: 20px;
  }

  .avatar-emoji {
    font-size: 2.45rem;
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 14px;
  }

  body {
    background-position: 62% center;
  }

  .dashboard-header h2 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero-column {
    padding-top: 40px;
  }

  .brand-block {
    margin-bottom: 18px;
  }

  .brand-wordmark {
    font-size: clamp(3.4rem, 7vw, 4.1rem);
  }
}

@media (max-height: 860px) {
  .site-nav {
    padding-top: 18px;
  }

  .hero-column {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .brand-block {
    margin-bottom: 16px;
  }

  .brand-wordmark {
    font-size: clamp(3.2rem, 8vw, 4.2rem);
  }

  .auth-card {
    padding: 22px 22px 20px;
  }

  .auth-card h2 {
    margin-bottom: 16px;
  }

  .auth-form input {
    margin-bottom: 12px;
  }
}
