:root {
  --navy: #163b8f;
  --navy-2: #0d2a6b;
  --blue: #3977ea;
  --yellow: #ffd447;
  --coral: #ff6b6b;
  --aqua: #42c9c0;
  --ink: #17305f;
  --muted: #64739a;
  --paper: #ffffff;
  --bg: #f4f7ff;
  --line: #dce5f6;
  --success: #168a5b;
  --shadow: 0 12px 32px rgba(22, 59, 143, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(66,201,192,.17), transparent 18rem),
    radial-gradient(circle at 96% 24%, rgba(255,212,71,.19), transparent 17rem),
    var(--bg);
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 7.5rem;
}
button { font: inherit; }
button:focus-visible, [tabindex]:focus-visible { outline: 4px solid rgba(57,119,234,.28); outline-offset: 3px; }
button { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .75rem 1rem; color: white; background: var(--navy); }
.skip-link:focus { top: 1rem; }

.app-header {
  height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: .65rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; border: 0; color: var(--navy); background: transparent; cursor: pointer; text-align: left; }
.brand strong { display: block; font-size: 1.35rem; line-height: 1.05; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .18rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-clock { position: relative; width: 2.8rem; height: 2.8rem; border: .25rem solid var(--yellow); border-radius: 50%; background: white; box-shadow: 0 4px 12px rgba(22,59,143,.15); }
.brand-clock::before, .brand-clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: .18rem; border-radius: 1rem; background: var(--navy); transform-origin: 50% 100%; }
.brand-clock::before { height: .75rem; transform: translateX(-50%) rotate(30deg); }
.brand-clock::after { height: .95rem; transform: translateX(-50%) rotate(120deg); background: var(--coral); }
.brand-clock i { position: absolute; left: 50%; top: 50%; width: .36rem; height: .36rem; border-radius: 50%; background: var(--navy); transform: translate(-50%,-50%); }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.icon-button, .stars-pill, .install-button, .profile-button { min-height: 2.75rem; border-radius: .85rem; }
.icon-button { width: 2.75rem; border: 1px solid var(--line); background: white; cursor: pointer; }
.profile-button { display: flex; align-items: center; gap: .5rem; padding: .25rem .65rem; border: 1px solid var(--line); color: var(--ink); background: white; text-align: left; cursor: pointer; }
.profile-button strong,.profile-button small { display: block; line-height: 1.15; }
.profile-button strong { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.profile-button small { margin-top: .16rem; color: var(--muted); font-size: .68rem; }
.profile-avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem; background: #eaf1ff; }
.stars-pill { display: flex; align-items: center; gap: .4rem; padding: 0 .9rem; color: var(--navy); background: #fff7cf; border: 1px solid #f5dc6f; }
.stars-pill span { color: #e2a800; font-size: 1.25rem; }
.install-button { border: 0; padding: 0 1rem; color: white; background: var(--navy); font-weight: 800; cursor: pointer; }

.progress-strip {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 1140px;
  margin: 0 auto 2.1rem;
  padding: .75rem 1.1rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}
.level-badge { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; color: var(--navy-2); background: var(--yellow); border-radius: .75rem; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(159,111,0,.2); }
.progress-copy { flex: 1; min-width: 0; }
.progress-copy > div:first-child { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.progress-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.progress-copy span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.progress-track { height: .65rem; overflow: hidden; background: #e3e9f5; border-radius: 1rem; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--aqua),var(--blue)); transition: width .5s ease; }

main { max-width: 1140px; min-height: 38rem; margin: 0 auto; padding: 0 1rem; }
.view { animation: view-in .35s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading.compact { align-items: center; }
.eyebrow { color: var(--blue); font-weight: 900; font-size: .78rem; letter-spacing: .14em; }
h1 { margin: .2rem 0 .25rem; color: var(--navy-2); font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1; letter-spacing: -.045em; }
.section-heading p { margin: .4rem 0 0; color: var(--muted); font-size: 1.05rem; }
.lesson-score { min-width: 8rem; padding: .75rem 1rem; border-left: 4px solid var(--yellow); color: var(--muted); background: white; box-shadow: 0 4px 18px rgba(22,59,143,.07); }
.lesson-score span { display: block; color: var(--navy); font-size: 1.75rem; font-weight: 900; }
.lesson-score small { font-size: .76rem; }

.learn-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: 1.35rem; }
.clock-stage { position: relative; display: grid; justify-items: center; align-content: center; min-height: 33rem; padding: 2.5rem 1.25rem 1.5rem; overflow: hidden; border: 1px solid #d9e4fb; background: linear-gradient(145deg,#eaf3ff 0%,#fdfefe 75%); box-shadow: var(--shadow); }
.clock-stage::before { content: ""; position: absolute; width: 14rem; height: 14rem; right: -6rem; top: -7rem; border: 2.4rem solid rgba(255,212,71,.25); border-radius: 50%; }
.speech-bubble { position: absolute; top: 1.2rem; left: 1.2rem; max-width: 15rem; padding: .65rem .9rem; border-radius: .8rem .8rem .8rem .15rem; color: var(--navy-2); background: white; box-shadow: 0 5px 18px rgba(22,59,143,.1); font-size: .88rem; }
.clock-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.clock-wrap svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 15px rgba(22,59,143,.12)); }
.large-clock { width: min(74vw, 19rem); }
.time-readout { display: flex; align-items: center; gap: 1rem; margin-top: .65rem; }
.time-readout span { padding: .38rem .75rem; color: white; background: var(--navy); border-radius: .6rem; font-size: 1.35rem; font-weight: 900; letter-spacing: .08em; }
.time-readout strong { font-size: 1.05rem; }
.listen-button { display: flex; align-items: center; gap: .55rem; margin-top: .85rem; border: 0; padding: .48rem .8rem; border-radius: .8rem; color: var(--navy); background: #dff6f3; text-align: left; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 #aadfd9; }
.listen-button .voice-face { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .65rem; background: white; font-size: 1.2rem; }
.listen-button strong,.listen-button small { display: block; }.listen-button small { margin-top: .05rem; color: #39716f; font-size: .68rem; font-weight: 700; }
.listen-button.speaking { background: #fff4c4; box-shadow: 0 3px 0 #e2cc72; }.listen-button.speaking .voice-face { animation: voice-bob .7s ease-in-out infinite alternate; }
@keyframes voice-bob { to { transform: translateY(-3px) rotate(3deg); } }
.clock-controls { display: flex; gap: .5rem; margin-top: 1rem; }
.clock-controls button { min-height: 2.7rem; border: 1px solid #c9d8f3; border-radius: .75rem; padding: 0 .85rem; color: var(--navy); background: white; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #c9d8f3; }
.clock-controls button:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9d8f3; }

.lesson-list { display: flex; flex-direction: column; gap: .7rem; }
.lesson-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; min-height: 4.65rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: white; text-align: left; cursor: pointer; box-shadow: 0 5px 16px rgba(22,59,143,.06); transition: transform .2s, border .2s, box-shadow .2s; }
.lesson-card:hover, .lesson-card.selected { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 9px 24px rgba(22,59,143,.12); }
.lesson-card.selected { background: #f3f7ff; }
.lesson-card strong, .lesson-card small { display: block; }
.lesson-card small { margin-top: .1rem; color: var(--muted); }
.lesson-card i { color: var(--blue); font-size: 1.6rem; font-style: normal; }
.lesson-icon { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: .8rem; color: white; font-weight: 900; }
.lesson-icon.blue { background: var(--blue); }.lesson-icon.yellow { color: #6d4c00; background: var(--yellow); }.lesson-icon.coral { background: var(--coral); }.lesson-icon.aqua { color: #073f45; background: var(--aqua); }
.primary-action, .secondary-action { min-height: 3.2rem; border-radius: .85rem; padding: .65rem 1.1rem; font-weight: 900; cursor: pointer; }
.primary-action { border: 0; color: white; background: linear-gradient(135deg,var(--blue),var(--navy)); box-shadow: 0 5px 0 var(--navy-2); }
.primary-action span { color: var(--yellow); }
.primary-action:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy-2); }
.primary-action[disabled] { cursor: default; opacity: .65; transform: none; box-shadow: none; }
.tip-card { display: flex; align-items: center; gap: .85rem; margin-top: 1.25rem; padding: .85rem 1rem; border: 1px solid #f2dc85; background: #fff8da; }
.tip-card span { font-size: 1.5rem; }.tip-card p { margin: 0; }

.streak-pill { padding: .6rem .9rem; border: 1px solid #ffd2be; border-radius: 1rem; background: #fff0e9; white-space: nowrap; }
.heading-tools { display: flex; align-items: center; gap: .7rem; }
.difficulty-switch { display: flex; gap: .22rem; padding: .25rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.difficulty-switch button { min-height: 2.35rem; border: 0; border-radius: .58rem; padding: 0 .7rem; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 900; cursor: pointer; }
.difficulty-switch button.active { color: white; background: var(--navy); box-shadow: 0 3px 8px rgba(22,59,143,.18); }
.quiz-shell { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.25rem; align-items: start; }
.quiz-card { display: grid; justify-items: center; padding: 1.5rem; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.question-count { color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.quiz-clock { width: min(65vw, 18rem); margin: .5rem 0; }
.question-title { margin: .2rem 0 1rem; color: var(--navy-2); font-size: 1.4rem; font-weight: 900; }
.answer-grid { display: grid; grid-template-columns: repeat(3, minmax(7rem, 1fr)); gap: .7rem; width: min(100%, 36rem); }
.answer-button { min-height: 4rem; border: 2px solid #ccdaf1; border-radius: .9rem; color: var(--navy-2); background: #f9fbff; font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.answer-button:hover { border-color: var(--blue); background: #eef4ff; }
.answer-button.correct { color: #0b5c3b; border-color: #35b87c; background: #dcf8e9; }
.answer-button.wrong { color: #963939; border-color: var(--coral); background: #fff0f0; }
.answer-button:disabled { cursor: default; }
.feedback { min-height: 2.2rem; margin-top: .65rem; font-weight: 900; }
.feedback.good { color: var(--success); }.feedback.bad { color: #b34848; }
.next-action { width: min(100%, 18rem); margin-top: .4rem; }
.session-card { padding: 1.3rem; border-top: 6px solid var(--aqua); background: var(--navy-2); color: white; box-shadow: var(--shadow); }
.session-icon { font-size: 2rem; }.session-card h2 { margin: .4rem 0; }.session-card p { margin: 0 0 1rem; color: #d8e5ff; }
.mini-progress { height: .7rem; overflow: hidden; border-radius: 1rem; background: rgba(255,255,255,.18); }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .4s; }
.session-numbers { display: flex; justify-content: space-between; margin-top: .9rem; }
.session-numbers span { color: #c7d7fb; font-size: .75rem; text-transform: uppercase; }.session-numbers strong { display: block; color: white; font-size: 1.5rem; }

.game-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.game-card { position: relative; display: flex; min-height: 17rem; flex-direction: column; justify-content: space-between; overflow: hidden; border: 0; padding: 1.25rem; color: white; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s; }
.game-card:hover { transform: translateY(-5px) rotate(-.4deg); }
.game-card::after { content: ""; position: absolute; width: 9rem; height: 9rem; right: -3rem; top: -3rem; border: 1.8rem solid rgba(255,255,255,.12); border-radius: 50%; }
.game-card.hunt { background: linear-gradient(145deg,#ff786d,#da4353); }.game-card.build { background: linear-gradient(145deg,#347eea,#173e9d); }.game-card.compare { background: linear-gradient(145deg,#28c7b7,#087f89); }
.game-symbol { position: relative; z-index: 1; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem; background: rgba(255,255,255,.18); font-size: 2rem; }
.game-card small, .game-card strong, .game-card em { display: block; }.game-card small { margin-bottom: .2rem; opacity: .8; letter-spacing: .12em; }.game-card strong { font-size: 1.55rem; line-height: 1.1; }.game-card em { margin-top: .4rem; opacity: .85; font-style: normal; }.game-card i { align-self: flex-start; padding: .45rem .85rem; border-radius: .65rem; color: var(--ink); background: white; font-style: normal; font-weight: 900; }
.game-arena { padding: 1.25rem; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.text-button { border: 0; padding: .4rem; color: var(--blue); background: transparent; font-weight: 900; cursor: pointer; }
.arena-inner { display: grid; justify-items: center; gap: 1rem; padding: 1rem; text-align: center; }
.arena-inner h2 { margin: 0; color: var(--navy-2); font-size: 1.8rem; }.arena-inner p { margin: 0; color: var(--muted); }
.build-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; width: min(100%, 32rem); }
.build-controls label { padding: .8rem; border: 1px solid var(--line); border-radius: .8rem; color: var(--muted); background: #f8faff; font-weight: 800; }
.build-controls input { width: 100%; accent-color: var(--blue); }.build-controls output { display: block; color: var(--navy); font-size: 1.35rem; }
.compare-clocks { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; width: min(100%, 39rem); }.compare-clocks .clock-wrap { width: min(33vw, 14rem); }.compare-clocks span { font-weight: 900; }
.compare-buttons { display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; width: min(100%,32rem); }

.reward-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.3rem; padding: 1.5rem; overflow: hidden; color: white; background: linear-gradient(125deg,var(--navy-2),var(--blue)); box-shadow: var(--shadow); }
.trophy { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 1.2rem; background: rgba(255,255,255,.13); font-size: 2.8rem; }.reward-summary small { color: var(--yellow); font-weight: 900; letter-spacing: .12em; }.reward-summary h2 { margin: .15rem 0; font-size: 1.6rem; }.reward-summary p { margin: 0; color: #d7e4ff; }.big-stars { text-align: center; }.big-stars strong { display: block; color: var(--yellow); font-size: 2.6rem; line-height: 1; }.big-stars span { font-size: .78rem; }
.subheading { margin: 1.8rem 0 1rem; color: var(--navy-2); }
.badge-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; }
.badge-card { position: relative; min-height: 11rem; display: grid; place-items: center; align-content: center; gap: .5rem; padding: 1rem; border: 1px solid var(--line); background: white; text-align: center; box-shadow: 0 6px 18px rgba(22,59,143,.07); }
.badge-card.locked { filter: grayscale(1); opacity: .58; }.badge-card .badge-medal { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #fff2a9; font-size: 2.2rem; border: 6px double #f0bc28; }.badge-card strong { display: block; }.badge-card small { color: var(--muted); }.badge-card .lock { position: absolute; top: .5rem; right: .6rem; }
.parent-zone { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; padding: 1rem; border: 1px dashed #aebddd; background: rgba(255,255,255,.5); }.parent-zone > div { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; }.parent-zone > div > span { grid-row: 1 / 3; font-size: 1.8rem; }.parent-zone p { margin: 0; color: var(--muted); font-size: .85rem; }.secondary-action { border: 1px solid #cdd9ee; color: var(--navy); background: white; }

.bottom-nav { position: fixed; z-index: 50; left: 50%; bottom: max(1rem,env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); width: min(calc(100% - 2rem),38rem); padding: .45rem; border: 1px solid #d3dff2; border-radius: 1.25rem; background: rgba(255,255,255,.93); box-shadow: 0 12px 35px rgba(13,42,107,.22); backdrop-filter: blur(14px); transform: translateX(-50%); }
.bottom-nav button { min-height: 3.9rem; border: 0; border-radius: .9rem; color: var(--muted); background: transparent; cursor: pointer; }
.bottom-nav button span, .bottom-nav button strong { display: block; }.bottom-nav button span { font-size: 1.2rem; }.bottom-nav button strong { font-size: .76rem; }.bottom-nav button.active { color: var(--navy); background: #eaf1ff; }

.toast { position: fixed; z-index: 80; top: 1rem; left: 50%; max-width: calc(100% - 2rem); padding: .8rem 1.1rem; border-radius: .85rem; color: white; background: var(--navy-2); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%,-1rem); transition: .3s; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.confetti { position: fixed; z-index: 70; inset: 0; overflow: hidden; pointer-events: none; }.confetti i { position: absolute; top: -2rem; width: .65rem; height: 1rem; animation: fall 1.2s ease-in forwards; }@keyframes fall { to { transform: translate(var(--drift),105vh) rotate(650deg); } }
dialog { width: min(calc(100% - 2rem),27rem); padding: 0; border: 0; border-radius: 1.2rem; box-shadow: 0 24px 70px rgba(13,42,107,.3); }dialog::backdrop { background: rgba(13,42,107,.55); backdrop-filter: blur(3px); }.dialog-content { padding: 1.5rem; text-align: center; }.dialog-icon { font-size: 3rem; }.dialog-content h2 { margin: .3rem 0; }.dialog-content p { color: var(--muted); }.dialog-content .primary-action { width: 100%; }
.profile-dialog { width: min(calc(100% - 2rem),34rem); }
.profile-dialog-content { text-align: left; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { color: var(--navy-2); font-size: 1.7rem; }
.dialog-close { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--muted); background: white; font-size: 1.5rem; cursor: pointer; }
.profile-list { display: grid; gap: .6rem; margin: 1rem 0; }
.profile-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; width: 100%; padding: .65rem; border: 2px solid var(--line); border-radius: .85rem; background: white; }
.profile-row.active { border-color: var(--blue); background: #f1f6ff; }
.profile-select { display: contents; color: inherit; cursor: pointer; }
.profile-select .avatar { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .8rem; background: #e6f7f5; font-size: 1.4rem; }
.profile-select strong,.profile-select small { display: block; }
.profile-select small { color: var(--muted); }
.delete-profile { width: 2.4rem; height: 2.4rem; border: 0; border-radius: .6rem; color: #a43e4a; background: #fff0f1; cursor: pointer; }
.add-profile-toggle { width: 100%; }
.profile-form { display: grid; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.profile-form > label { color: var(--ink); font-weight: 900; }
.profile-form input[type="text"],.profile-form input:not([type]) { width: 100%; min-height: 3rem; margin-top: .35rem; border: 2px solid #cbd8ed; border-radius: .7rem; padding: 0 .8rem; color: var(--ink); font-size: 1rem; }
.profile-form fieldset { border: 0; padding: 0; margin: 0; }
.profile-form legend { margin-bottom: .45rem; font-weight: 900; }
.age-options { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.age-options label { cursor: pointer; }
.age-options input { position: absolute; opacity: 0; pointer-events: none; }
.age-options span { display: grid; place-items: center; min-height: 4rem; border: 2px solid var(--line); border-radius: .75rem; color: var(--navy); background: #f8faff; font-size: 1.2rem; font-weight: 900; }
.age-options small { color: var(--muted); font-size: .7rem; }
.age-options input:checked + span { border-color: var(--blue); background: #eaf1ff; box-shadow: inset 0 0 0 2px white; }
.privacy-note { margin: 1rem 0 0; text-align: center; font-size: .78rem; }

@media (max-width: 800px) {
  .app-header { height: 4.5rem; padding: .5rem 1rem; }.brand strong { font-size: 1.15rem; }.brand-clock { width: 2.45rem; height: 2.45rem; }.install-button { padding: 0 .7rem; font-size: .78rem; }
  .progress-strip { margin: 0 .75rem 1.5rem; border-radius: .85rem; }.progress-copy > div:first-child strong { max-width: 55vw; }
  main { padding: 0 .75rem; }.section-heading { align-items: flex-start; }.section-heading.compact { align-items: flex-start; flex-direction: column; }.lesson-score { display: none; }
  .learn-layout, .quiz-shell { grid-template-columns: 1fr; }.clock-stage { min-height: 31rem; }.lesson-list { display: grid; grid-template-columns: 1fr 1fr; }.lesson-list .primary-action { grid-column: 1 / -1; }.lesson-card { grid-template-columns: auto 1fr; }.lesson-card i { display: none; }
  .session-card { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; }.session-card h2 { margin: 0; }.session-card p { grid-column: 2; }.session-card .mini-progress,.session-card .session-numbers { grid-column: 1 / -1; }
  .game-picker { grid-template-columns: 1fr; }.game-card { min-height: 12rem; }.badge-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 520px) {
  body { padding-bottom: 6.8rem; }.app-header { padding-inline: .55rem; }.brand { gap: .4rem; }.brand strong { font-size: 1rem; }.brand small { display: none; }.brand-clock { width: 2.15rem; height: 2.15rem; border-width: .2rem; }.header-actions { gap: .25rem; }.stars-pill { padding: 0 .45rem; }.icon-button { display: none; }.profile-button { padding: .2rem; }.profile-button > span:last-child { display: none; }.profile-avatar { width: 2rem; height: 2rem; }.install-button { padding: 0 .45rem; font-size: .7rem; }
  .section-heading { margin-bottom: 1rem; }.section-heading p { font-size: .93rem; }h1 { font-size: 2rem; }
  .clock-stage { min-height: 28.5rem; padding-top: 3.3rem; }.speech-bubble { right: 1rem; max-width: none; }.large-clock { width: min(75vw,16.5rem); }.time-readout { flex-direction: column; gap: .4rem; }.clock-controls button { padding: 0 .65rem; font-size: .85rem; }
  .lesson-list { grid-template-columns: 1fr; }.lesson-card { min-height: 4rem; }.tip-card { align-items: flex-start; font-size: .9rem; }
  .answer-grid { grid-template-columns: 1fr; }.answer-button { min-height: 3.4rem; }.quiz-card { padding: 1rem; }
  .compare-clocks { gap: .35rem; }.compare-clocks .clock-wrap { width: 38vw; }.build-controls { grid-template-columns: 1fr; }
  .reward-summary { grid-template-columns: auto 1fr; padding: 1rem; }.trophy { width: 3.8rem; height: 3.8rem; font-size: 2rem; }.big-stars { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: .5rem; }.big-stars strong { font-size: 2rem; }
  .badge-grid { gap: .55rem; }.badge-card { min-height: 10.5rem; padding: .7rem; }.parent-zone { align-items: stretch; flex-direction: column; }
  .heading-tools { width: 100%; justify-content: space-between; }.difficulty-switch { flex: 1; }.difficulty-switch button { flex: 1; padding: 0 .35rem; }.age-options { gap: .35rem; }
  .bottom-nav { bottom: max(.45rem,env(safe-area-inset-bottom)); width: calc(100% - .8rem); }.bottom-nav button { min-height: 3.65rem; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (display-mode: standalone) { .install-button { display: none !important; } }
