:root {
  color-scheme: light;
  --page: #f9f7fe;
  --paper: #fffdff;
  --ink: #21173b;
  --muted: #514666;
  --purple: #6034bd;
  --purple-dark: #4a249e;
  --purple-light: #ded0fa;
  --lilac: #ebe0fc;
  --line: #dfd4ef;
  --mint: #d3f5e5;
  --peach: #ffe1d3;
  --yellow: #fff1bb;
  --hour: #5423a8;
  --minute: #9765d9;
  --radius: 26px;
  --shadow: 0 3px 4px #40266f0a, 0 11px 26px #40266f0c;
  font-family: Nunito, "Avenir Next", ui-rounded, system-ui, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:enabled { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 850; line-height: 1.09; }
p { line-height: 1.45; }
:focus-visible { outline: 3px solid #5b2bbb; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #d5b9fc; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  border-radius: 12px;
  padding: 12px;
  background: white;
}
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { padding: 16px 0; }
.header-layout {
  display: grid;
  min-height: 56px;
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.brand-clock { width: 44px; aspect-ratio: 1; background: url(assets/favicon.png) center / contain no-repeat; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a {
  display: grid;
  min-height: 44px;
  padding: 0 16px;
  place-items: center;
  border-radius: 99px;
  font-size: 1.075rem;
  font-weight: 750;
  white-space: nowrap;
}
.site-nav a[aria-current] { background: var(--purple-light); color: #381a76; }
.site-nav a:hover { background: #eee5fd; }
.star-count {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dfd4f4;
  border-radius: 16px;
  background: #f2eafb;
  box-shadow: 0 3px 0 #e7d9f6;
  font-size: 1.15rem;
}
.star-count > span:first-child { color: #e6a51a; font-size: 1.45rem; line-height: 1; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.button:not(:disabled,[aria-disabled="true"]):active { transform: translateY(2px); }
.primary {
  background: linear-gradient(180deg, #7a49d1 0%, #6335bd 86%);
  color: #fff;
  box-shadow: 0 3px 0 #4c248f;
}
.primary:hover { background: var(--purple-dark); }
.secondary { background: #fbf8ff; color: var(--purple-dark); border: 1.5px solid #7444c7; }
.secondary:hover { background: #efe5ff; }
.quiet { background: #f6f0ff; color: #432483; border-color: var(--line); }
.quiet:hover, .quiet[aria-pressed="true"] { background: #e7d7fd; }
.button:disabled, .button[aria-disabled="true"] { cursor: default; opacity: .53; }
.small { min-height: 44px; padding: 8px 14px; font-size: .925rem; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 425px;
  display: grid;
  align-items: center;
  grid-template-columns: 56% 44%;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(109deg, #eee4fb 0%, #ebdffa 44%, #e5dcfa 100%);
}
.hero-copy { z-index: 1; padding: 47px 0 51px 48px; }
.hero h1 { font-size: clamp(2.95rem, 5.2vw, 4.65rem); letter-spacing: -.06em; line-height: .99; max-width: 640px; }
.hero h1 em {
  display: block;
  width: max-content;
  margin-top: 6px;
  color: #6234c0;
  font-style: normal;
  font-size: 1.16em;
}
.hero p {
  max-width: 413px;
  margin-top: 22px;
  color: #38294f;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  font-weight: 600;
  line-height: 1.38;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .button { min-height: 54px; padding-inline: 23px; font-size: 1.06rem; }
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  align-items: center;
  width: 49%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%);
  mask-image: linear-gradient(90deg, transparent, #000 14%);
}
.hero-art img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: cover; object-position: center; }

.learning-path { margin-top: 31px; scroll-margin-top: 16px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2, .page-head h1 { font-size: clamp(2.15rem, 4vw, 3rem); letter-spacing: -.045em; }
.section-head p, .page-head p { margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 1.075rem; }
.overall-progress, .step-progress { display: flex; align-items: center; gap: 12px; }
.overall-progress strong, .step-progress strong { flex: 0 0 auto; font-size: .94rem; }
progress {
  display: block;
  appearance: none;
  width: clamp(90px, 13vw, 170px);
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: #dfd1f6;
  color: var(--purple);
}
progress::-webkit-progress-bar { border-radius: 30px; background: #dfd1f6; }
progress::-webkit-progress-value { border-radius: 30px; background: var(--purple); }
progress::-moz-progress-bar { border-radius: 30px; background: var(--purple); }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-card {
  display: block;
  min-width: 0;
  min-height: 202px;
  padding: 17px 18px 20px;
  border: 1px solid #38205210;
  border-radius: 22px;
  background: var(--tile, var(--lilac));
  box-shadow: inset 0 1px 0 #ffffff58;
  transition: transform .18s, box-shadow .18s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mint { --tile: var(--mint); }
.lilac { --tile: var(--lilac); }
.peach { --tile: var(--peach); }
.yellow { --tile: var(--yellow); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.topic-number { margin-top: 2px; color: #51416a; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.topic-number > span:first-child { color: #136440; font-size: 1.15rem; }
.topic-card h3, .topic-card h2 { font-size: clamp(1.19rem, 2.15vw, 1.53rem); letter-spacing: -.035em; }
.topic-card p { margin-top: 7px; color: #4a3c5a; font-size: .96rem; font-weight: 600; line-height: 1.33; }
.tile-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 57px;
  height: 57px;
  place-items: center;
  border: 1px solid #ffffffa6;
  border-radius: 17px;
  background: #ffffffcf;
  box-shadow: 0 5px 9px #3a23511b;
}
.icon { position: relative; display: block; width: 32px; height: 32px; }
.icon-clock, .icon-timer, .icon-duration {
  border-radius: 50%;
  border: 4px solid #7950c8;
  background: radial-gradient(circle at 50% 50%, #fff8f1 54%, #f3def8 100%);
  box-shadow: 0 2px 0 #492b9b48;
}
.icon-clock::before, .icon-timer::before, .icon-duration::before {
  position: absolute;
  width: 9px;
  height: 10px;
  top: 4px;
  left: calc(50% - 1.5px);
  border-left: 3px solid #6638b7;
  border-bottom: 3px solid #6638b7;
  border-radius: 2px;
  content: '';
}
.icon-timer { width: 29px; height: 29px; margin-top: 5px; border-color: #e9a324; }
.icon-timer::after { position: absolute; width: 11px; height: 5px; top: -10px; left: 5px; border-radius: 3px; background: #e88367; content: ''; }
.icon-duration { border-color: #4faa8f; }
.icon-digital { width: 40px; height: 26px; border: 3px solid #9160d2; border-radius: 7px; background: #492185; }
.icon-digital::after { display: block; color: white; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; line-height: 20px; text-align: center; content: '12:30'; }
.icon-quarter, .icon-half {
  border: 3px solid #8251cb;
  border-radius: 50%;
  background: conic-gradient(#b98ae8 0 90deg, #fff5e3 90deg);
}
.icon-half { background: conic-gradient(#b98ae8 0 180deg, #fff5e3 180deg); }
.icon-backtime { border: 4px solid #4bab8b; border-right-color: transparent; border-radius: 50%; }
.icon-backtime::before { position: absolute; inset: 5px 6px auto auto; width: 9px; height: 9px; border: solid #4bab8b; border-width: 0 0 3px 3px; transform: rotate(-15deg); content: ''; }
.icon-backtime::after { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border: solid #4bab8b; border-width: 0 3px 3px 0; transform: rotate(12deg); content: ''; }
.icon-sun { width: 28px; height: 28px; border: 4px dotted #e29422; border-radius: 50%; background: #ffca60; background-clip: padding-box; box-shadow: inset 0 0 0 2px #fff3c9; }
.icon-books { width: 35px; height: 11px; border: 2px solid #7748c2; border-radius: 4px; background: #e2c6fc; box-shadow: 0 7px 0 -1px #e8ab57, 0 13px 0 -1px #5bab95; transform: translateY(-6px) rotate(-8deg); }
.icon-star {
  width: 42px;
  height: 42px;
  background: linear-gradient(#ffd878, #eaa425);
  clip-path: polygon(50% 2%, 64% 33%, 98% 38%, 73% 61%, 79% 95%, 50% 78%, 21% 95%, 27% 61%, 2% 38%, 36% 33%);
}
.more-lessons {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid #e8dcf7;
  border-radius: 20px;
  background: #eee4fc;
  color: #392164;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 800;
}
.more-lessons:hover { background: #e8d9fa; }
.more-lessons .tile-icon { width: 45px; height: 45px; border: none; background: transparent; box-shadow: none; }
.more-chevron { margin-left: auto; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.more-lessons[aria-expanded="true"] .more-chevron { transform: translateY(2px) rotate(225deg); }
#extra-lessons { margin-top: 14px; }
.quiz-banner {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 15px;
  padding: 20px 24px;
  border: 1px solid #f6e5a1;
  border-radius: 22px;
  background: var(--yellow);
}
.quiz-banner .tile-icon { background: #fff9db; box-shadow: none; border-color: #fff9db; }
.quiz-banner h2 { font-size: clamp(1.34rem, 2.6vw, 1.68rem); letter-spacing: -.028em; }
.quiz-banner p { margin-top: 4px; color: #57482d; font-weight: 600; }
.quiz-banner .button { margin-left: auto; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 27px; padding: 18px 0 22px; border-top: 1px solid var(--line); color: #5c506d; font-size: .9rem; }
.footer-brand { color: var(--ink); font-weight: 900; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 18px 0 20px; }
.lesson-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin: 10px 0 14px;
}
.lesson-header h1 { font-size: clamp(1.32rem, 2.6vw, 2rem); letter-spacing: -.035em; }
.lesson-header h1 span { color: #594581; }
.lesson-video {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.lesson-video summary {
  display: list-item;
  padding: 11px 16px;
  border-radius: 15px;
  color: #412184;
  font-weight: 750;
  cursor: pointer;
}
.lesson-video summary:hover { background: #f5ecff; }
.lesson-video video {
  display: block;
  width: min(100% - 24px, 800px);
  height: auto;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #211830;
}
.work-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5effd;
  box-shadow: var(--shadow);
}
.board {
  min-width: 0;
  min-height: 355px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border-radius: 19px;
  background: linear-gradient(144deg, #efdbfc, #e6d9fc 76%);
}
.lesson-copy, .trainer-controls, .question {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: clamp(19px, 4vw, 46px);
  border: 1px solid #ebe3f4;
  border-radius: 20px;
  background: var(--paper);
}
.lesson-copy h2, .trainer-controls h2, .question h2 { font-size: clamp(1.55rem, 3.2vw, 2.6rem); letter-spacing: -.035em; }
.lesson-copy > p { margin-top: 14px; color: #3a2e4e; font-size: clamp(1.05rem, 1.8vw, 1.17rem); font-weight: 600; }
.tip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid #eadcf9;
  border-radius: 14px;
  background: #f5ecff;
  color: #48316d;
  font-weight: 700;
}
.tip-spark { flex: 0 0 auto; color: #7d4cbf; font-size: 1.25rem; line-height: 1.1; }
.panel-footer { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 16px; }
.panel-footer > :first-child { justify-self: start; }
.panel-footer > :last-child { justify-self: end; }
.step-dots { display: flex; align-items: center; gap: 7px; }
.step-dots span { display: block; width: 9px; height: 9px; border-radius: 50%; background: #d9c8ee; }
.step-dots .is-current { background: var(--purple); }

.clock-face {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  flex-shrink: 0;
  border: clamp(7px, 1vw, 12px) solid #8451d1;
  border-radius: 50%;
  background: #fff8e9;
  box-shadow: inset 0 0 0 3px #6042a624, inset 0 8px 18px #3b243419, 0 4px 0 #6339ae, 0 11px 17px #44257a32;
  container-type: inline-size;
}
.clock-graphic { position: absolute; inset: 0; isolation: isolate; overflow: hidden; border-radius: 50%; }
.clock-arc { position: absolute; inset: 4.5%; z-index: -1; border-radius: 50%; background: conic-gradient(#ccb1f07d 0 var(--arc), transparent var(--arc)); }
.tick {
  --stroke: 1px;
  position: absolute;
  inset: 1.9% 0;
  left: calc(50% - var(--stroke) / 2);
  width: var(--stroke);
  transform: rotate(var(--angle));
}
.tick::before { display: block; height: 2%; border-radius: 3px; background: #765797ad; content: ''; }
.tick-major { --stroke: 2px; }
.tick-major::before { height: 3%; background: #5c397d; }
.dial-number, .dial-minute {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dial-number { font-size: clamp(1rem, 8.3cqw, 1.65rem); }
.dial-minute { font-size: clamp(.63rem, 4cqw, .78rem); color: #674892; }
.clock-face:not(.has-minute-marks) .dial-minute,
.hour-only .tick:not(.tick-major),
.hour-only .hand-minute { display: none; }
.has-minute-marks .tick { inset: 1% 0; left: calc(50% - var(--stroke) / 2); }
.has-minute-marks .tick::before { height: 1.7%; }
.hand {
  position: absolute;
  z-index: 1;
  bottom: 50%;
  left: calc(50% - var(--width) / 2);
  width: var(--width);
  height: var(--length);
  transform: rotate(var(--angle));
  transform-origin: 50% 100%;
}
.hand::before {
  position: absolute;
  bottom: -6px;
  top: 0;
  left: calc(50% - var(--body) / 2);
  width: var(--body);
  border-radius: 12px;
  background: var(--hand-color);
  box-shadow: 0 2px 4px #512d7633;
  content: '';
}
.hand-hour { --width: 12%; --body: max(8px, 4.1cqw); --length: 22%; --hand-color: var(--hour); z-index: 2; }
.hand-minute { --width: 10%; --body: max(5px, 2.9cqw); --length: 30%; --hand-color: var(--minute); }
.hand-second { --width: 5%; --body: 2px; --length: 43%; --hand-color: #d27235; z-index: 3; }
.clock-pin { position: absolute; z-index: 4; left: 50%; top: 50%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: #b58bec; box-shadow: 0 2px 5px #45207643; transform: translate(-50%,-50%); pointer-events: none; }
.is-editable { touch-action: none; user-select: none; }
.is-editable [data-hand] { cursor: grab; }
.is-dragging, .is-dragging [data-hand] { cursor: grabbing; }
.clock-stack { display: flex; width: 100%; align-items: center; flex-direction: column; gap: 17px; }
.clock-stack .clock-face { max-width: 258px; }
.lesson-model { display: grid; width: 100%; justify-items: center; gap: 14px; }
.lesson-model .clock-face { max-width: 258px; }
.lesson-model output { text-align: center; color: #412184; font-weight: 850; font-variant-numeric: tabular-nums; }
.model-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.model-actions .button { min-height: 44px; }

.digital-face {
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: .12em;
  max-width: 100%;
  padding: 13px 17px;
  border: 4px solid #8050c9;
  border-radius: 16px;
  background: #3f2174;
  color: #fff9ff;
  box-shadow: 0 4px 0 #562d9d4a, inset 0 2px 5px #1e0f493d;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: clamp(1.6rem, 4.3vw, 3.15rem);
  line-height: 1;
  white-space: nowrap;
}
.digital-unit { display: flex; flex-direction: column; align-items: center; }
.digital-unit small { margin-top: 9px; font-family: Nunito, ui-rounded, system-ui, sans-serif; font-size: clamp(.65rem, 1.3vw, .89rem); color: #e9d9fb; }
.digital-colon { color: #caa5fb; }
.clock-stack .digital-face, .time-pair .digital-face { font-size: clamp(1.4rem, 3.3vw, 2rem); padding: 6px 12px; border-width: 3px; border-radius: 12px; }
.time-pair { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; align-items: start; gap: 12px; width: min(100%, 345px); }
.time-pair > div:not(.clock-face) { display: grid; justify-items: center; gap: 7px; font-size: .95rem; font-weight: 800; }
.time-pair .clock-face { grid-column: 1 / -1; width: min(100%, 205px); margin-top: 5px; }
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: min(92%, 380px);
  padding: 5px 0 30px;
}
.timeline-point { display: grid; justify-items: start; position: relative; flex: 1 1 100%; }
.timeline-point:last-child { flex-basis: auto; }
.timeline-point::before { position: absolute; right: 0; left: 0; top: 34px; height: 4px; border-radius: 2px; background: #ad82d5; content: ''; }
.timeline-point:last-child::before { display: none; }
.timeline-point strong { transform: translateX(-8px); font-weight: 850; font-size: clamp(1rem, 2.8vw, 1.45rem); line-height: 26px; }
.timeline-point i { position: relative; display: block; width: 14px; height: 14px; border: 3px solid #7d4cc6; border-radius: 50%; margin: 3px 0; background: #fff6f5; }
.timeline-point span { position: absolute; left: min(11%, 19px); top: 51px; color: #5b388c; font-size: .91rem; font-weight: 800; white-space: nowrap; }

.trainer-controls { justify-content: flex-start; padding: clamp(18px, 3vw, 33px); container-type: inline-size; }
.trainer-top { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.trainer-top h2 { font-size: clamp(1.4rem, 2.9vw, 2.17rem); }
.segmented { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 3px; padding: 3px; width: fit-content; border: 1px solid #e9dbf8; border-radius: 13px; background: #f3eafd; }
.segment { min-height: 44px; padding: 5px 10px; border-radius: 9px; color: #674b86; font-size: .88rem; }
.segment[aria-pressed="true"] { background: #e2cef9; color: #412184; }
.segment:hover { background: #e8d8fb; }
.editable-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 89px;
  margin-top: 13px;
  padding: 10px;
  border-radius: 15px;
  background: #eee1fb;
  color: #371c72;
  font-variant-numeric: tabular-nums;
}
.editable-readout strong { font-size: clamp(2.45rem, 5vw, 3.55rem); line-height: 1; letter-spacing: -.035em; }
.editable-readout span { min-block-size: 1lh; font-size: .84rem; font-weight: 750; line-height: 1.2; margin-top: 4px; }
.steppers { display: grid; gap: 9px; margin-top: 16px; }
.stepper { display: grid; grid-template-columns: 1fr 50px 52px 50px; align-items: center; gap: 8px; }
.without-values .stepper { grid-template-columns: 1fr 55px 55px; }
.stepper > span { font-weight: 800; }
.step-button, .stepper output { min-width: 0; min-height: 44px; border-radius: 12px; padding: 4px; }
.step-button { background: #ebdcfb; color: var(--purple-dark); font-size: 1.5rem; }
.step-button:hover { background: #dec8fa; }
.stepper output { display: grid; place-items: center; border: 1px solid #e4d9f3; color: #493668; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.speech { margin-top: 16px; padding: 12px 14px; border-radius: 13px; background: #e4f8ed; color: #254c3b; }
.speech strong { display: block; min-block-size: 2lh; font-size: 1.1rem; line-height: 1.5rem; }
.speech p { min-block-size: 4lh; margin-top: 3px; font-weight: 600; line-height: 1.5rem; font-variant-numeric: tabular-nums; }
@container (min-width: 17.5rem) {
  .speech p { min-block-size: 3lh; }
}
@container (min-width: 25.5rem) {
  .speech strong { min-block-size: 1lh; }
  .speech p { min-block-size: 2lh; }
}
.clock-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding-top: 4px; color: #4a336b; font-size: .92rem; font-weight: 800; }
.clock-legend span { display: inline-flex; align-items: center; gap: 7px; }
.clock-legend span::before { width: 19px; height: 5px; border-radius: 8px; background: var(--hour); content: ''; }
.clock-legend span + span::before { width: 25px; background: var(--minute); }
.trainer-alarm {
  position: relative;
  isolation: isolate;
  width: min(100%, 400px);
  aspect-ratio: 1.12;
  touch-action: none;
  user-select: none;
}
.trainer-alarm::before {
  position: absolute;
  inset: auto 17% 3% 17%;
  z-index: -1;
  height: 13%;
  background: radial-gradient(ellipse, #68389847, transparent 70%);
  content: '';
  pointer-events: none;
}
.trainer-alarm canvas { display: block; width: 100%; height: 100%; }
.trainer-alarm[data-alarm-hand] { cursor: grab; }
.trainer-alarm[data-alarm-dragging] { cursor: grabbing; }
.dial-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 15px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.dial-options label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .94rem; font-weight: 800; cursor: pointer; }
.dial-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--purple-dark); }
.dial-options label:has(:disabled) { color: #594775; cursor: default; }
.preset-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.preset-bar strong { margin-right: 5px; color: #4e3b71; }

.hub-banner { margin: 0 0 18px; }
.clock-quiz-banner { background: var(--lilac); border-color: var(--line); }
.clock-quiz-banner .tile-icon { background: #fffdff; border-color: #fffdff; }
.clock-quiz-banner p { color: var(--muted); }
.quiz-topic { min-height: 155px; }
.quiz-topic h2 { margin-top: 9px; font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
.quiz-repeat { display: block; margin-top: 8px; color: var(--purple-dark); font-size: .94rem; }
.quiz-work { grid-template-columns: minmax(240px, .87fr) minmax(0, 1.13fr); }
.quiz-board { min-height: 305px; }
.quiz-board .clock-face { width: min(100%, 255px); }
.single-question { grid-template-columns: 1fr; }
.single-question .question { min-height: 275px; }
.question h2 { font-size: clamp(1.42rem, 2.8vw, 2.15rem); }
.answers { display: grid; gap: 9px; margin-top: 17px; }
.answer {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 53px;
  padding: 11px 13px;
  border: 1px solid #dfd2f0;
  border-radius: 12px;
  background: #fbf8ff;
  color: #312348;
  text-align: left;
  font-weight: 750;
}
.answer:not([aria-disabled="true"]):hover { background: #f0e5fc; border-color: #c8a9ee; }
.answer:disabled { opacity: .63; }
.answer[aria-disabled="true"] { cursor: default; }
.answer-dot { display: grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; border: 1.5px solid #9272bc; border-radius: 50%; font-size: 12px; line-height: 1; }
.answer.is-correct { background: #ddf6e8; border-color: #9ccdb5; color: #1d5b3e; }
.answer.is-correct .answer-dot { border-color: #368861; background: #368861; color: white; }
.answer.is-correct .answer-dot::after { content: '✓'; }
.answer.is-incorrect { background: #fff1dd; border-color: #eac994; color: #644520; }
.answer.is-incorrect .answer-dot { border-color: #aa7c35; }
.answer.is-incorrect .answer-dot::after { content: '×'; }
.question .time-of-day { margin-top: 12px; }
.question .steppers { max-width: 320px; }
.check-clock { align-self: flex-start; margin-top: 12px; }
.board-caption { text-align: center; color: #4f3968; font-size: .91rem; font-weight: 750; }
.motion-status { min-block-size: 1lh; }
.quiz-footer { display: flex; align-items: start; justify-content: flex-end; gap: 12px; margin-top: 15px; }
.feedback { flex: 1 1 auto; min-width: 0; }
.feedback:not(:empty) { display: flex; align-items: flex-start; gap: 9px; min-height: 52px; padding: 12px 15px; border: 1px solid; border-radius: 13px; font-weight: 650; }
.feedback.correct { background: #ddf6e8; color: #22563c; border-color: #a9d8bd; }
.feedback.incorrect { background: #fff0d3; color: #65491e; border-color: #edce98; }
.feedback-symbol { flex: 0 0 auto; font-size: 1.2rem; line-height: 1.2; }
.result {
  display: grid;
  justify-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 48px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eee2fc;
  text-align: center;
}
.result .tile-icon { width: 75px; height: 75px; }
.result h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.result-score { font-size: 1.3rem; }
.result p { max-width: 410px; color: #4d3a68; font-weight: 650; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 970px) {
  .hero { min-height: 380px; }
  .hero-copy { padding-left: 34px; }
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 3.7rem); }
  .hero-art { width: 50%; }
  .topic-card { padding: 15px 13px 17px; min-height: 188px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .site-header { padding: 10px 0; }
  .header-layout { gap: 8px; }
  .brand { gap: 6px; }
  .brand-clock { width: 33px; }
  .site-nav a { padding-inline: 9px; font-size: .95rem; }
  .star-count { gap: 5px; padding-inline: 9px; }
  .hero { min-height: 335px; }
  .hero-copy { padding: 29px 0 32px 26px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { min-height: 48px; padding-inline: 12px; font-size: .94rem; }
  .hero p { margin-top: 13px; max-width: 310px; }
  .hero-art { width: 52%; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic-card { min-height: 166px; }
  .quiz-topic { min-height: 146px; }
  .work-area { gap: 9px; padding: 9px; }
  .board { min-height: 280px; padding: 14px; }
  .lesson-header .step-progress progress { display: none; }
}
@media (max-width: 580px) {
  .header-layout { grid-template-columns: 1fr auto; min-height: auto; row-gap: 8px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .site-nav a { flex: 1 1 0; min-height: 44px; padding-inline: 6px; }
  .star-count { grid-row: 1; grid-column: 2; min-height: 35px; font-size: .93rem; }
  .star-count > span:first-child { font-size: 1.12rem; }
  .hero { display: block; min-height: auto; border-radius: 23px; }
  .hero-copy { padding: 25px 20px 2px; }
  .hero h1 { font-size: clamp(2.15rem, 9.5vw, 3.3rem); }
  .hero h1 em { margin-top: 3px; }
  .hero p { font-size: 1rem; max-width: 370px; }
  .hero-actions { margin-top: 16px; }
  .hero-art {
    position: relative;
    width: min(100%, 402px);
    margin-inline: auto;
    height: clamp(190px, 62vw, 275px);
    -webkit-mask-image: linear-gradient(#0000, #000 10%, #000 96%, #0000);
    mask-image: linear-gradient(#0000, #000 10%, #000 96%, #0000);
  }
  .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .learning-path { margin-top: 25px; }
  .section-head, .page-head { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 13px; }
  .section-head p, .page-head p { font-size: 1rem; }
  .overall-progress { gap: 9px; width: 100%; }
  .overall-progress progress { flex: 1 1 auto; max-width: 160px; }
  .topic-card { padding: 11px 11px 14px; min-height: 155px; border-radius: 17px; }
  .tile-icon { width: 46px; height: 46px; border-radius: 13px; }
  .tile-top { margin-bottom: 9px; }
  .topic-number { font-size: .74rem; }
  .topic-card p { font-size: .9rem; }
  .more-lessons { padding-inline: 10px 14px; gap: 8px; font-size: .96rem; }
  .quiz-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 14px; }
  .quiz-banner .button { grid-column: 2; margin-left: 0; justify-self: start; }
  .quiz-banner .icon-star { width: 35px; height: 35px; }
  .lesson-header { grid-template-columns: 1fr auto; gap: 8px; margin: 6px 0 12px; }
  .lesson-header .button { justify-self: start; }
  .lesson-header h1 { grid-column: 1 / -1; grid-row: 2; font-size: 1.45rem; }
  .lesson-header .step-progress { grid-row: 1; grid-column: 2; }
  .work-area, .quiz-work { grid-template-columns: 1fr; border-radius: 19px; }
  .board { min-height: 220px; border-radius: 14px; padding: 18px 15px; }
  .board .clock-face { max-width: 222px; }
  .lesson-copy, .trainer-controls, .question { padding: 17px 15px 20px; border-radius: 14px; }
  .panel-footer { grid-template-columns: auto 1fr; }
  .step-dots { display: none; }
  .panel-footer .button { padding-inline: 13px; font-size: .94rem; }
  .quiz-footer { flex-wrap: wrap; }
  .feedback:not(:empty) { flex-basis: 100%; }
  .single-question .question { min-height: 0; }
  .site-footer { margin-top: 23px; }
}
@media (max-width: 340px) {
  .shell { width: calc(100% - 22px); }
  .hero-copy { padding-inline: 15px; }
  .hero h1 { font-size: 2.04rem; }
  .hero-actions .button { padding-inline: 9px; }
  .topic-card h3, .topic-card h2 { font-size: 1.1rem; }
  .timeline { width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
