:root {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #182e4c;
  background: #edf4fb;
  --ink: #182e4c;
  --muted: #49627d;
  --blue: #285d94;
  --line: #c8d8e9;
  --paper: #f8fbff;
  --radius: 22px;
  --winter-city: url('/assets/winterstadt.webp');
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { min-height: 100vh; margin: 0; }
button, input, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a, summary, input, select, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 2px solid #5b9ed9; }
[hidden] { display: none !important; }

.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: .65rem 1rem;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  transform: translateY(-170%);
}

.skip:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 6rem), 80rem); margin-inline: auto; }
.masthead {
  display: flex;
  min-height: 5.5rem;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.brand-star {
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.12rem;
  font-weight: 400;
  color: #487bb1;
}

.season { font-size: .88rem; font-weight: 700; color: var(--muted); }
.eyebrow { margin: 0; font-size: .875rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-block-start: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

body[data-view="welcome"] {
  background:
    radial-gradient(ellipse at 18% 18%, #fcfdff 0%, transparent 57%),
    linear-gradient(120deg, #e5eff9, #e5edf9 48%, #d6e6f7);
}

.welcome {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: min(44rem, calc(100svh - 7.6rem));
  margin-block-end: 2.125rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 30px;
  box-shadow: 0 24px 65px #334c7320, inset 0 0 0 1px #b6d0eb5c;
  background: #f2f7fdf0;
}

.welcome-copy {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 5.25rem);
}

.welcome-copy::before,
.welcome-copy::after {
  content: '';
  position: absolute;
  pointer-events: none;
  width: 1.4rem;
  aspect-ratio: 1;
  background: #8db6dc;
  opacity: .68;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.welcome-copy::before { left: 78%; top: 13%; }
.welcome-copy::after { left: 83%; top: 20%; width: .7rem; }
.welcome-copy .eyebrow { color: #456d99; }
.script-title {
  margin: 1.15rem 0 .5rem -.15rem;
  width: min-content;
  font-family: Allura, "Segoe Script", cursive;
  font-size: clamp(4.4rem, 8.15vw, 8.25rem);
  font-weight: 400;
  line-height: .88;
  color: #3479b6;
  letter-spacing: -.045em;
  text-shadow: 0 1px #fff;
}

.welcome-lead {
  max-width: 25rem;
  margin: 1.25rem 0 .65rem;
  color: #143052;
  font-size: clamp(1.375rem, 2.55vw, 2.06rem);
  font-weight: 800;
  letter-spacing: -.046em;
  line-height: 1.18;
}

.welcome-description {
  max-width: 25rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.66;
  color: var(--muted);
}

.level-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 26rem;
  margin-top: 1.55rem;
}

.level-choice {
  position: relative;
  display: grid;
  gap: .2rem;
  align-content: center;
  min-height: 5rem;
  padding: .8rem 1.05rem;
  color: #203e62;
  background: #fdfefe;
  border: 1px solid #bcd3e8;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 5px 11px #1c45680a;
  transition: background .17s ease, color .17s ease, transform .17s ease, box-shadow .17s ease;
}

.level-choice::after {
  content: '✧';
  position: absolute;
  top: .75rem;
  right: .75rem;
  color: #6994ba;
  font-size: 1.15rem;
}

.level-choice:hover, .level-choice:focus-visible {
  color: #f8fbff;
  background: #285985;
  border-color: #285985;
  transform: translateY(-2px);
  box-shadow: 0 8px 19px #31557830;
}

.level-choice:hover::after, .level-choice:focus-visible::after { color: #d2e9ff; }
.level-code { font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
.level-label { font-size: .88rem; font-weight: 600; }
.welcome-picture { position: relative; min-height: 100%; background: #142c4d; }
.welcome-picture img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 48%; }
.welcome-picture::after {
  content: '';
  position: absolute;
  inset: .8rem;
  border: 1px solid #fff8;
  border-radius: 15px;
  pointer-events: none;
}

body[data-view="calendar"] {
  color: #f1f6ff;
  background:
    radial-gradient(ellipse at 75% 8%, #253d69 0, transparent 55%),
    radial-gradient(ellipse at 20% 75%, #161d3b 0, transparent 75%),
    #0b152b;
}

[data-view="calendar"] .brand-star { color: #a4c9f4; }
[data-view="calendar"] .season { color: #b9cfe8; }
.calendar { padding: .7rem 0 1.5rem; }
.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.calendar-title .eyebrow { color: #b5d4f5; }
.calendar-title h1 { margin: .27rem 0 0; font-size: clamp(2.45rem, 5.5vw, 4.2rem); line-height: 1.02; }
.cal-change, .cal-today, .return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .6rem .9rem;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.cal-change {
  flex-shrink: 0;
  border: 1px solid #a6c3e449;
  background: #1431547a;
  color: #e9f3ff;
}

.cal-change:hover { background: #305079; }
.calendar-status {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  border: 1px solid #b0cbed3c;
  border-radius: 13px;
  background: #afcce514;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  background: #e8ad4a21;
  border: 1px solid #ffca7855;
  border-radius: 50%;
  color: #ffdb9b;
  font-size: 1.3rem;
}

.calendar-status-text { flex: 1; }
.calendar-status strong { display: block; font-size: .96rem; }
.calendar-status p { margin: .14rem 0 0; color: #d3e2f7; font-size: .875rem; }
.cal-today { color: #27231d; background: #ffe0a4; border: 1px solid #ffeac2; }
.cal-today:hover { background: #ffedca; }

.village {
  display: flex;
  overflow: clip;
  isolation: isolate;
  border: 1px solid #90b3ee6b;
  border-radius: var(--radius);
  box-shadow: 0 20px 65px #0008, inset 0 0 0 2px #b5d1ff69;
  background: #08194f;
}

.house {
  flex: var(--house-width) 1 0;
  position: relative;
  min-width: 0;
  aspect-ratio: var(--house-width) / 887;
  background-image: var(--winter-city);
  background-repeat: no-repeat;
}

.shutter {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  perspective: 19rem;
  background: #2a160e;
  border: 0;
  border-radius: 2px;
  color: #ffecbe;
}

.shutter.arch, .arch .shutter-face, .arch .shutter-glow { border-radius: 52% 52% 5% 5% / 35% 35% 4% 4%; }
.shutter-face, .shutter-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.shutter-face {
  background: var(--winter-city) var(--shutter-position) / var(--shutter-size) no-repeat;
  transform-origin: left center;
  transition: transform .32s ease, filter .16s ease;
}

.shutter-glow { background: radial-gradient(ellipse at 50% 70%, #fff1be 0%, #ffc777 45%, #b45b2b 100%); }
.shutter-date {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 2px #321b13, 0 0 6px #341505;
  pointer-events: none;
}

.shutter.arch .shutter-date { font-size: clamp(1.2rem, 3.2vw, 3.25rem); }
.shutter.locked .shutter-face { filter: brightness(.86) saturate(.85); }
.shutter.locked .shutter-date { color: #ffe9bc; }
.shutter.today, .shutter:focus-visible { z-index: 3; box-shadow: 0 0 0 2px #ffdfa6, 0 0 23px #ffc56b99; }
.shutter:not(.locked):hover, .shutter.opening { z-index: 4; }
.shutter:not(.locked):hover .shutter-face { transform: rotateY(-18deg); }
.shutter.opened .shutter-face { transform: rotateY(-53deg); }
.shutter.opening .shutter-face, .shutter.opening:hover .shutter-face { transform: rotateY(-97deg); }
.shutter.opened .shutter-date, .shutter.opening .shutter-date { color: #fff9dc; text-shadow: 0 2px 5px #44210d; }
.shutter.completed::after {
  content: '✓';
  position: absolute;
  right: 4%;
  bottom: 3%;
  z-index: 3;
  color: #fff5cb;
  font: 700 .88rem Manrope, sans-serif;
  text-shadow: 0 1px 4px #421b08;
}

.calendar-footer { display: flex; justify-content: space-between; gap: 1rem; margin: .9rem 0; color: #cbdcf2; font-size: .875rem; }
.progress-count { margin: 0; }
.own-progress summary { cursor: pointer; }
.own-progress label { display: grid; gap: .45rem; padding: .65rem 0; }
.own-progress input {
  width: 100%;
  min-height: 2.4rem;
  padding: .4rem .7rem;
  color: #f1f6ff;
  background: #263e5d;
  border: 1px solid #869fbe;
  border-radius: 7px;
}

body[data-view="lesson"], body[data-view="teacher"] {
  background: radial-gradient(ellipse at 55% 0, #fbfdff, #eaf2fb 70%);
}

.lesson-shell { width: min(calc(100% - 4rem), 58rem); margin: 0 auto 2.5rem; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; margin: .15rem 0 1rem; }
.return-link { background: #ffffffad; border: 1px solid #c3d5e9; color: #284b75; }
.return-link:hover { background: #e2effb; }
.level-marker { color: var(--muted); font-weight: 800; font-size: .875rem; }
.lesson-screen { min-width: 0; }
.lesson-head {
  padding: clamp(1.2rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.8rem);
  border: 1px solid #c2d7eb;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #fbfdff, #dceaf9);
}

.lesson-head .eyebrow { color: #3f6c9b; }
.lesson-head h1 { margin: .35rem 0 0; font-size: clamp(2rem, 4.5vw, 3.55rem); line-height: 1.08; overflow-wrap: anywhere; }
.lesson-body { display: grid; gap: 1rem; margin-top: 1rem; }
.lesson-card {
  min-width: 0;
  padding: clamp(1.15rem, 3.7vw, 2rem);
  border: 1px solid #cad9e9;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 12px #344f7010;
}

.lesson-card > h2 { margin-bottom: 1rem; font-size: clamp(1.25rem, 2.8vw, 1.65rem); line-height: 1.28; letter-spacing: -.024em; }
.lesson-card.cover { padding: 0; overflow: hidden; background: #132740; }
.cover img { width: 100%; max-height: 33rem; object-fit: contain; }
.cover-photo { position: relative; isolation: isolate; }
.cover-photo::before {
  position: absolute;
  z-index: -1;
  inset: -1.5rem;
  content: '';
  background: var(--cover-photo) center / cover no-repeat;
  filter: blur(20px) brightness(.67);
}
.cover-photo img { width: min(100%, 33rem); height: auto; max-height: none; margin-inline: auto; }
.image:not(.cover) img { margin-inline: auto; max-height: 36rem; object-fit: contain; border-radius: 10px; }
.image:not(.cover) img.readable-graphic { width: min(100%, 44rem); max-height: none; height: auto; }
.rich { line-height: 1.7; overflow-wrap: anywhere; }
.rich p { margin: 0 0 .85rem; }
.rich p:last-child { margin-bottom: 0; }
.rich img { margin: .8rem auto; border-radius: 9px; }
.rich a, .external { color: #204d85; font-weight: 800; text-underline-offset: .19em; }
.rich table { display: block; max-width: 100%; border-collapse: collapse; overflow: auto; }
.rich th, .rich td { padding: .45rem .7rem; border: 1px solid #c2d7eb; }
.departure-display {
  margin-top: 1.15rem;
  overflow: hidden;
  border: .25rem solid #202c3b;
  border-radius: .48rem;
  background: #0c1a31;
  color: #f1f6ff;
  line-height: 1.33;
  box-shadow: 0 3px 7px #16263d30;
}
.departure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .9rem;
  background: #173760;
  border-bottom: 1px solid #466286;
}
.departure-header strong { display: block; font-size: 1.45rem; letter-spacing: .015em; }
.departure-header span { display: block; color: #c6d5eb; font-size: .875rem; }
.departure-display time {
  display: block;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
  font-size: 1.13rem;
  white-space: nowrap;
}
.departure-header time { font-size: 1.45rem; font-weight: 600; letter-spacing: .055em; }
.rich .departure-display table { display: table; width: 100%; table-layout: fixed; }
.rich .departure-display th,
.rich .departure-display td {
  padding: .6rem .72rem;
  border: 0;
  border-bottom: 1px solid #274163;
  text-align: left;
  vertical-align: middle;
}
.departure-display th { color: #c6d5eb; background: #132744; font-weight: 700; font-size: .875rem; }
.departure-display th:nth-child(1) { width: 20%; }
.departure-display th:nth-child(2) { width: 19%; }
.departure-display th:nth-child(4) { width: 16%; }
.departure-display tbody tr:nth-child(even) { background: #10223e; }
.rich .departure-display tbody tr:last-child td { border-bottom: 0; }
.departure-train { font-variant-numeric: tabular-nums; white-space: nowrap; }
.departure-display td strong { font-size: 1.1rem; letter-spacing: .01em; }
.departure-display .departure-platform { font-size: 1.2rem; font-weight: 800; }
.departure-note { display: block; margin-top: .17rem; color: #c5d3e8; font-size: .875rem; }
.departure-update, .departure-note.is-delayed { color: #ffda8b; }
.departure-note.is-cancelled { color: #ffad9b; }
.departure-plan { color: #c5d3e8; text-decoration: line-through; }
.departure-changed {
  display: inline-grid;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: .03rem .2rem;
  place-items: center;
  border: 1px solid #ffda8b;
  border-radius: 2px;
  color: #ffda8b;
}
.external { display: inline-block; margin-top: .65rem; }
.word-list { margin: 0; }
.word-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid #e2ebf5; }
.word-list > div:last-child { border: 0; }
.word-list dt { display: flex; align-items: center; gap: .45rem; font-weight: 800; }
.word-list dd { color: var(--muted); margin: 0; }
.speak {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #bed2e8;
  border-radius: 50%;
  background: #edf5fe;
  color: #345f8f;
  font-weight: 800;
}

.video-holder { display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: 24rem; background: #122a47; border-radius: 13px; overflow: hidden; }
.video-holder iframe { width: 100%; height: 100%; border: 0; }
.video-block { margin-bottom: .65rem; }
.media .video-block:not(:first-child) { margin-top: .9rem; }
audio { display: block; width: min(100%, 280px); height: 3rem; }

.questions { display: grid; gap: 1rem; }
.question { min-width: 0; padding: .6rem .8rem .9rem; margin: 0; border: 1px solid #d2e0ee; border-radius: 12px; }
.question-title { max-width: 100%; padding: 0 .35rem; font-weight: 800; line-height: 1.42; }
.question-title p { margin: 0; }
.radio-choices { display: grid; gap: .35rem; }
.radio-choice { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem .6rem; border-radius: 7px; cursor: pointer; }
.radio-choice:hover, .radio-choice:has(input:checked) { background: #eaf3fe; }
.radio-choice input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: .22rem .08rem 0 0; accent-color: #286393; }
.scene-choices { position: relative; margin-top: .5rem; }
.scene-choices img { width: 100%; height: auto; border-radius: 10px; }
.scene-choice { position: absolute; width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%); cursor: pointer; }
.scene-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.scene-choice span { display: grid; height: 100%; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #fff6de; color: #203a51; box-shadow: 0 1px 5px #172a3c90; font-weight: 800; }
.scene-choice input:checked + span { background: #275d91; color: #fff; }
.scene-choice input:focus-visible + span { outline: 3px solid #17466f; outline-offset: 2px; }
.task-hint { margin: .15rem 0 .3rem; color: var(--muted); font-size: .875rem; }
.pair-list, .order-list, .sentence-list { display: grid; gap: .6rem; }
.pair-row { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: .8rem; padding: .6rem; border: 1px solid #cbdced; border-radius: 10px; }
.pair-label { font-weight: 700; overflow-wrap: anywhere; }
.pair-label audio { margin-top: .35rem; }
.pair-row select, .gap-slot select, .gap-entry {
  min-width: 0;
  width: 100%;
  min-height: 2.65rem;
  padding: .4rem .6rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #96b4d4;
  border-radius: 8px;
}

.word-bank { padding: .75rem; background: #edf5fe; border-radius: 10px; font-weight: 700; }
.gap-text { line-height: 2.25; }
.gap-slot { display: inline-block; max-width: 100%; margin: .12rem .18rem; border-radius: 8px; }
.gap-slot select { min-width: 8.3rem; }
.gap-entry { width: min(15rem, 100%); font: inherit; line-height: 1.3; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-item {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .6rem .65rem;
  background: #f6faff;
  border: 1px solid #c8dbec;
  border-radius: 10px;
  cursor: grab;
}

.order-number { color: #507296; font-weight: 800; }
.order-tools { display: flex; gap: .3rem; }
.quiet, .token { padding: .4rem .7rem; border: 1px solid #b8cee6; border-radius: 7px; color: #315780; background: #f1f7fe; font-size: .875rem; font-weight: 800; }
.quiet:disabled { opacity: .42; }
.quiet:not(:disabled):hover, .token:hover { background: #ddeeff; }
.sentence { padding: .7rem; border: 1px solid #c8dbec; border-radius: 10px; }
.sentence-answer, .sentence-stock { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.sentence-answer { min-height: 3.15rem; margin-bottom: .4rem; padding: .3rem .4rem .45rem; border-bottom: 1px dashed #96b5d2; }
.token { font-size: 1rem; }
.token.picked { background: #d7e9fb; }
.task-footer, .lesson-finish { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.task-status, .completion { margin: 0; font-weight: 700; color: #2c577e; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .6rem .95rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  background: #275d91;
  font-weight: 800;
}

.action:hover { background: #184775; }
.action:disabled { background: #e6edf5; color: #566b84; }
.right { border-color: #72a690 !important; background: #f1f9f4 !important; }
.wrong { border-color: #bd7d72 !important; background: #fdf4f1 !important; }
.gap-slot.right :is(select, .gap-entry) { border-color: #72a690; background: #f1f9f4; }
.gap-slot.wrong :is(select, .gap-entry) { border-color: #bd7d72; background: #fdf4f1; }
.lesson-finish { justify-content: space-between; padding: 1rem 0; }
.lesson-error, .waiting { color: var(--muted); }
.teacher { max-width: 58rem; }
.teacher > h1 { font-size: clamp(2rem, 5vw, 3rem); }
.teacher-card { margin-bottom: .9rem; padding: 1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.teacher-card h2 { text-wrap: balance; }
.report-day { padding: .8rem 0; border-top: 1px solid var(--line); }
.report-day summary { cursor: pointer; font-weight: 700; }
.report-day p { margin: .55rem 0 0; }
.report-date { color: var(--muted); font-size: .875rem; }

@media (max-width: 880px) {
  .shell { width: min(calc(100% - 2.5rem), 80rem); }
  .welcome-copy { padding-inline: clamp(1.25rem, 4vw, 2.65rem); }
  .script-title { font-size: clamp(4rem, 9.8vw, 6.5rem); }
  .welcome { min-height: 32rem; }
}

@media (max-width: 820px) {
  .village {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    border-radius: 17px;
    background: linear-gradient(160deg, #112b69, #07143b);
  }
  .village .house:last-child { grid-column: 1 / 3; width: 50%; justify-self: center; }
  .shutter-date { font-size: clamp(1.15rem, 4.8vw, 2.5rem); }
  .shutter.arch .shutter-date { font-size: clamp(1.35rem, 6.25vw, 3.15rem); }
}

@media (max-width: 630px) {
  .shell, .lesson-shell { width: calc(100% - 2rem); }
  .masthead { min-height: 4.2rem; }
  .season { font-size: .82rem; }
  .brand { font-size: .86rem; letter-spacing: 0; }
  .brand-star { width: 1.75rem; height: 1.75rem; }
  .welcome { grid-template-columns: 1fr; border-radius: 21px; }
  .welcome-copy { padding: 1.7rem 1.25rem 1.4rem; }
  .welcome-copy::before { left: 82%; top: 10%; }
  .welcome-copy::after { left: 89%; top: 16%; }
  .script-title { font-size: clamp(3.75rem, 13.4vw, 6.4rem); }
  .welcome-lead { font-size: 1.5rem; max-width: none; }
  .welcome-description { line-height: 1.55; }
  .level-choices { margin-top: 1.15rem; }
  .level-choice { padding: .65rem .8rem; min-height: 4.3rem; }
  .level-choice::after { top: .55rem; right: .55rem; }
  .welcome-picture { min-height: clamp(17rem, 74vw, 25rem); }
  .welcome-picture img { object-position: center 47%; }
  .welcome-picture::after { inset: .55rem; border-radius: 11px; }
  .calendar { padding-top: .4rem; }
  .calendar-head { flex-wrap: wrap; align-items: flex-start; }
  .calendar-title h1 { font-size: clamp(2.48rem, 9.5vw, 3.8rem); }
  .cal-change { min-height: 2.3rem; padding: .35rem .6rem; }
  .calendar-status { flex-wrap: wrap; padding: .65rem .75rem; }
  .cal-today { width: 100%; }
  .shutter-date { font-size: clamp(1.15rem, 4.8vw, 1.65rem); }
  .shutter.arch .shutter-date { font-size: clamp(1.35rem, 6.25vw, 2rem); }
  .calendar-footer { flex-wrap: wrap; gap: .55rem 1rem; }
  .lesson-head, .lesson-card { border-radius: 14px; }
  .rich .departure-display th, .rich .departure-display td { padding: .5rem .38rem; }
  .departure-display th:nth-child(1) { width: 21%; }
  .departure-display th:nth-child(2) { width: 19%; }
  .departure-display th:nth-child(4) { width: 16%; }
  .departure-display td time { font-size: 1rem; }
  .departure-display td strong { font-size: 1rem; }
  .pair-row { grid-template-columns: 1fr; gap: .45rem; }
  .word-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .word-list dd { margin-left: 2.8rem; }
  .order-item { grid-template-columns: 1.25rem 1fr; }
  .order-tools { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
