@font-face {
  font-family: Rubik;
  src: url('./assets/rubik-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 550;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url('./assets/rubik-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Rubik, ui-rounded, system-ui, sans-serif;
  font-size: 16px;
  color: #193e38;
  background: #fbfaf5;
  --ink: #193e38;
  --muted: #596e64;
  --green: #21664d;
  --line: #d8dfd4;
  --paper: #fffefa;
  --yellow: #f4c653;
  --shadow: 0 4px 0 rgba(44, 70, 47, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
button,
a,
summary,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #197f9b;
}
button:disabled:focus-visible {
  outline: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
}
p {
  line-height: 1.52;
}
h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.45rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(1.4rem, 2vw, 1.86rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}
h3 {
  line-height: 1.25;
  letter-spacing: -0.035em;
}
a,
button {
  touch-action: manipulation;
}
.icon {
  flex: none;
  vertical-align: middle;
}
img {
  display: block;
  max-width: 100%;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  padding: 12px;
  background: #fff;
  z-index: 50;
}
.skip:focus {
  top: 8px;
}
main:focus {
  outline: 0;
}
.topbar,
main,
.foot,
.page-width {
  width: min(1370px, calc(100% - clamp(40px, 7vw, 112px)));
  margin-inline: auto;
}
#entete {
  background: #fffefa;
  border-bottom: 1px solid var(--line);
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand,
.header-tools,
.topbar nav,
.topbar nav a,
.parent-button,
.location,
.date-label,
.button,
.text-button,
.map-caption,
.section-kicker,
.backlink,
.foot > span,
.icon-button {
  display: inline-flex;
  align-items: center;
}
.brand {
  gap: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.06em;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand b {
  display: inline-grid;
  place-items: center;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  background: #f6dfa1;
  padding: 0.28rem 0.45rem;
  border-radius: 7px;
  color: #67450c;
  margin-left: 0;
  transform: rotate(-3deg);
}
.topbar nav {
  gap: 6px;
}
.topbar nav a {
  min-height: 41px;
  padding: 0 15px;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  color: #51655b;
}
.topbar nav a:hover,
.settings-button:hover {
  background: #f1f3ea;
}
.topbar nav a[aria-current='page'] {
  background: #e5eddf;
  color: #1a5b42;
}
.header-tools {
  gap: 13px;
}
.settings-button,
.icon-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
}
.parent-button {
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #c8d4c7;
  border-radius: 12px;
  font-size: 0.91rem;
  font-weight: 600;
  background: #fffefa;
}
.parent-button:hover,
.ghost:hover {
  background: #eff3e9;
}
.explore,
.workspace {
  padding: 34px 0 40px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 2px 0 24px;
}
.location,
.section-kicker {
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #48745b;
}
.location i {
  width: 4px;
  height: 4px;
  background: #7d9a78;
  border-radius: 50%;
  margin-inline: 2px;
}
.location sup {
  font-size: 0.67em;
  margin-left: -7px;
  align-self: flex-start;
}
.page-intro h1 {
  margin: 8px 0 7px;
}
.title-dot {
  color: #d58828;
}
.page-intro p,
.section-heading > p:last-child,
.place-text > p,
.panel > p,
.revision-card p,
.parent-work > .section-heading p {
  color: var(--muted);
}
.date-label {
  gap: 8px;
  border: 1px solid #d6dfd1;
  background: #f4f5eb;
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 0.85rem;
  color: #435e4e;
  white-space: nowrap;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.46fr) minmax(290px, 1fr);
  gap: 22px;
  align-items: stretch;
}
.map-card,
.daily-card,
.activity-card,
.panel,
.revision-card,
.place-view,
.exercise-card,
.exercise-place {
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.map-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-area {
  position: relative;
  isolation: isolate;
  line-height: 0;
  aspect-ratio: 1942/809;
  overflow: hidden;
  background: #cee4cf;
  flex: auto;
}
.panorama {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.map-pin {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffefa;
  color: #223e34;
  box-shadow: 0 3px 8px #1a322e57;
  border: 2px solid #fffefa;
  border-radius: 25px;
  padding: 2px 10px 2px 2px;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  transition: transform 0.15s;
  white-space: nowrap;
}
.map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 46%;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: #fffefa;
  z-index: -1;
}
.map-pin:hover,
.map-pin:focus-visible {
  z-index: 3;
  transform: translate(-50%, -57%) scale(1.06);
}
.maison,
.tone-0 {
  --tint: #f9e2ca;
  --strong: #8b4e28;
  --pop: #f6a65e;
}
.ecole,
.tone-1 {
  --tint: #e9e0f4;
  --strong: #675083;
  --pop: #c9a4e7;
}
.piscine,
.tone-2 {
  --tint: #d2e8ed;
  --strong: #326572;
  --pop: #8ac9dc;
}
.parc,
.tone-3 {
  --tint: #ddebcf;
  --strong: #496a35;
  --pop: #a6cf82;
}
.map-pin > span,
.activity-icon,
.exercise-caption .badge-icon {
  display: grid;
  place-items: center;
  color: var(--strong);
  background: var(--tint);
  border-radius: 50%;
  width: 29px;
  height: 29px;
}
.map-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  background: #fffdf4ec;
  color: #28493b;
  border: 1px solid white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 2px 5px #17271835;
}
.map-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 19px;
  background: #fffdf7;
  border-top: 1px solid #e4e3d5;
}
.map-caption {
  gap: 9px;
  font-size: 0.96rem;
  letter-spacing: -0.025em;
}
.map-caption .icon {
  color: #46836a;
}
.map-bottom > span {
  color: var(--muted);
  font-size: 0.82rem;
}
.daily-card {
  padding: clamp(19px, 1.8vw, 28px);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(125deg, #fff3c8, #fff6d7 70%, #ffedb0);
  border-color: #e8d391;
  overflow: hidden;
  min-width: 0;
}
.daily-card:after {
  content: '';
  position: absolute;
  top: -92px;
  right: -75px;
  width: 220px;
  height: 220px;
  border: 1px dashed #d5af5c;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.38;
}
.daily-top {
  position: relative;
  flex: 1;
  min-height: 67px;
}
.daily-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  transform: rotate(-5deg);
  background: #f7d77a;
  color: #614c22;
}
.bird {
  position: absolute;
  width: clamp(87px, 8.4vw, 122px);
  max-height: 120px;
  object-fit: contain;
  right: 1px;
  bottom: -4px;
  transform: rotate(6deg);
  filter: drop-shadow(0 3px 1px #9e793221);
}
.rays {
  position: absolute;
  right: 35%;
  top: 12px;
  color: #d39224;
  font-size: 1rem;
}
.daily-title {
  position: relative;
  margin: 11px 0 0;
}
.daily-title h2 {
  font-size: clamp(1.55rem, 2.1vw, 2.06rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
}
.daily-title p {
  font-size: 0.96rem;
  margin: 7px 0 0;
  color: #655d3e;
}
.daily-progress {
  margin: clamp(16px, 2vw, 30px) 0 17px;
}
.daily-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #615b3c;
}
.daily-progress strong {
  font-size: 0.85rem;
  color: #384e36;
}
.progress-track {
  background: #e4d8af;
  border-radius: 20px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #3f8258;
  border-radius: 20px;
}
.button {
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 600;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 0.97rem;
  line-height: 1.3;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--green);
  color: #fffdf4;
  box-shadow: 0 2px 0 #134632;
}
.button.primary:hover {
  background: #1a563f;
}
.button.primary:active,
.choice:active {
  transform: translateY(1px);
}
.button.ghost {
  background: #fffef9;
  border: 1px solid #cbd7c9;
}
.start {
  width: 100%;
}
.activities {
  margin-top: 31px;
}
.section-line {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
}
.activity-card {
  overflow: hidden;
  border-radius: 17px;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.activity-card:hover,
.revision-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 11px #244b3018;
}
.activity-art {
  height: clamp(95px, 8vw, 120px);
  overflow: hidden;
  background: var(--tint);
}
.activity-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  transition: transform 0.2s;
}
.activity-card:hover img {
  transform: scale(1.025);
}
.activity-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 15px;
  min-height: 73px;
}
.activity-icon {
  border-radius: 12px;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}
.activity-info span {
  color: var(--muted);
  font-size: 0.79rem;
}
.activity-info h3 {
  margin-top: 3px;
  font-size: 1.05rem;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 18px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}
.foot > span {
  gap: 5px;
}
.foot sup {
  margin-left: -4px;
}
.text-button,
.backlink {
  font-weight: 600;
  font-size: 0.91rem;
  color: #2a674d;
  gap: 7px;
  padding: 7px 0;
  line-height: 1.4;
}
.text-button:hover,
.backlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace {
  max-width: 1150px;
  margin: 0 auto;
  min-height: 67vh;
}
.section-heading,
.session-heading {
  margin: 22px 0 27px;
}
.section-kicker {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-heading > p:last-child {
  margin-top: 10px;
}
.place-view {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  background: #fffdf8;
}
.place-photo img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}
.place-text {
  align-self: center;
  padding: clamp(24px, 4vw, 52px);
}
.place-text h1 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  margin: 3px 0 13px;
}
.ready-list {
  padding: 14px 0;
}
.ready-list > div {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #506b5d;
  font-size: 0.93rem;
}
.revision-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.revision-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.16s;
}
.revision-icon,
.stats > div > .icon {
  color: var(--strong);
  background: var(--tint);
  border-radius: 13px;
}
.revision-icon {
  padding: 11px;
  display: inline-flex;
  margin-bottom: 16px;
}
.revision-card h2 {
  font-size: 1.4rem;
}
.revision-card p {
  font-size: 0.95rem;
  margin: 8px 0 16px;
  flex: 1;
}
.stats {
  margin-bottom: 20px;
}
.stats > div {
  background: var(--tint);
  border-radius: 18px;
  padding: 21px;
  display: grid;
  gap: 6px;
}
.stats b {
  font-size: 2.2rem;
}
.stats span {
  font-size: 0.95rem;
  color: #3f5a4b;
}
.panel {
  padding: clamp(20px, 2.5vw, 34px);
}
.panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.45rem;
}
.panel > p {
  margin: 10px 0 16px;
}
.learning-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 17px;
}
.learning-table td,
.learning-table th {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.learning-table thead {
  background: #f0f3e9;
}
.table-scroll {
  overflow-x: auto;
}
.actions,
.input-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.session-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.session h1 {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
}
.page-count,
.small-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #537361;
}
.page-count {
  background: #e8eedf;
  border-radius: 20px;
  padding: 8px 15px;
}
.step-track {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.step-track span {
  height: 5px;
  flex: 1;
  background: #e0e5d8;
  border-radius: 8px;
}
.step-track .current {
  background: #ddb247;
}
.step-track .done {
  background: #739d6e;
}
.exercise-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.54fr) minmax(0, 1.5fr);
  gap: 21px;
  align-items: start;
}
.exercise-place {
  overflow: hidden;
}
.exercise-place > img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}
.exercise-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  font-size: 0.9rem;
}
.exercise-caption .badge-icon {
  width: 32px;
  height: 32px;
}
.exercise-card {
  padding: clamp(21px, 3vw, 38px);
}
.exercise-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.6vw, 2.28rem);
}
.exercise-card .small-status {
  margin-bottom: 8px;
}
.problem,
.word-display {
  background: #eff4e6;
  border: 1px solid #dce4d2;
  border-radius: 16px;
  padding: 18px 21px;
  margin: 14px 0;
  font-size: 1.1rem;
  line-height: 1.55;
}
.word-display {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 16px 0 22px;
  padding: 24px;
  overflow-wrap: anywhere;
}
.word-display .syll.s0 {
  color: #215d8e;
}
.word-display .syll.s1 {
  color: #855020;
}
.completed-words {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.55rem;
}
.prompt {
  font-weight: 600;
  font-size: 1.09rem;
  margin: 16px 0 12px;
}
.choices {
  display: grid;
  gap: 9px;
}
.choice {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cfd9cc;
  border-radius: 12px;
  background: #fffefa;
}
.choice i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: #eef1e8;
  color: #536d5b;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
}
.choice:not(:disabled):hover {
  background: #f0f5e9;
  border-color: #8db097;
}
.choice.right,
.feedback.good {
  background: #e6f2df;
  border-color: #98bc8b;
}
.choice.wrong,
.feedback.try {
  background: #fff0d7;
  border-color: #e4c486;
}
.feedback,
.heard {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 13px 0;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.96rem;
  line-height: 1.45;
}
.heard {
  display: block;
  background: #e8f1f1;
  border: 0;
}
.small-actions {
  margin: 11px 0;
  justify-content: space-between;
}
.lesson,
.parent-extra {
  border-top: 1px solid var(--line);
  margin-top: 11px;
  padding: 10px 0 0;
}
.lesson summary,
.parent-extra summary {
  font-weight: 600;
  color: #315e49;
  line-height: 1.5;
}
.lesson summary .icon {
  margin: 0 6px 0 3px;
}
.lesson > div {
  background: #f7f6ec;
  margin-top: 8px;
  padding: 13px 15px;
  border-radius: 11px;
}
.lesson p {
  font-size: 0.97rem;
}
.next {
  margin-top: 18px;
}
.fraction,
.groups,
.clocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 2px auto 14px;
}
.fraction {
  max-width: 300px;
  gap: 0;
}
.fraction i {
  border: 2px solid #57806a;
  border-right: 0;
  flex: 1;
  height: 38px;
  background: #fffdf5;
}
.fraction i:last-child {
  border-right: 2px solid #57806a;
}
.fraction i.filled {
  background: #84b7b8;
}
.groups {
  flex-wrap: wrap;
}
.groups > span {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 9px;
  border: 1px solid #ba9f68;
  border-radius: 8px;
  background: #fff5dc;
}
.groups i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e59a47;
  border: 1px solid #ac682d;
}
.clocks {
  gap: 16px;
}
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.tiles button {
  background: #edf3e8;
  border: 1px solid #ccd9ca;
  border-radius: 7px;
  min-width: 35px;
  min-height: 38px;
  font-weight: 600;
}
.summary {
  max-width: 650px;
  margin: 30px auto;
  text-align: center;
}
.summary > img {
  height: 125px;
  margin: 0 auto 10px;
}
.summary .actions {
  justify-content: center;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 15px 0 5px;
}
input:not([type='checkbox']),
textarea,
select {
  width: 100%;
  border: 1px solid #bac9b9;
  border-radius: 10px;
  background: #fffefa;
  padding: 10px 12px;
  line-height: 1.45;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233f6650' stroke-width='2'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
}
.input-row {
  flex-wrap: nowrap;
}
.input-row input {
  min-width: 0;
  flex: 1;
}
.date-input {
  max-width: 200px;
}
.parent-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  gap: 18px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 16px;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 13px;
}
.check-grid label {
  margin: 0;
  cursor: pointer;
  font-size: 0.91rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
input[type='checkbox'] {
  accent-color: #246a50;
  width: 18px;
  height: 18px;
  flex: none;
}
.save-row {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.parent-extra {
  margin: 22px 0;
}
.parent-extra p {
  margin: 12px 0;
  color: var(--muted);
}
.parent-extra form {
  max-width: 400px;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #246349;
  text-decoration: underline;
}
.narrow {
  max-width: 550px;
}
.narrow .panel {
  margin: 15px 0;
}
.narrow .button {
  margin-top: 15px;
}
.form-message {
  font-size: 0.92rem;
  color: #765018;
}
dialog {
  padding: 24px;
  border-radius: 21px;
  border: 1px solid #bdcdbd;
  background: #fffdf6;
  box-shadow: 0 15px 70px #14332644;
  color: var(--ink);
  max-width: min(500px, calc(100% - 24px));
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #15382e73;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.modal-head h2 {
  font-size: 1.45rem;
}
.icon-button {
  background: #eef1e7;
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.switch-row small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}
.switch-row strong {
  display: block;
}
.switch-row + button {
  margin-top: 8px;
}
.map-dialog {
  width: 1200px;
  max-width: 95vw;
}
.map-dialog .map-area {
  border-radius: 14px;
}
.map-dialog .map-pin {
  font-size: 1rem;
}
.park-wrap {
  padding: 25px 0;
}
.park-wrap h1 {
  letter-spacing: -0.045em;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #214d3c;
  color: white;
  border-radius: 12px;
  padding: 11px 17px;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  width: max-content;
  max-width: 90vw;
}
#notice.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
.reading body {
  letter-spacing: 0.03em;
  word-spacing: 0.08em;
}
.reading p,
.reading label,
.reading .choice {
  line-height: 1.8;
}
.reading h1,
.reading h2,
.reading h3 {
  letter-spacing: normal;
}
.large {
  font-size: 19px;
}
.calm *,
.calm *::before,
.calm *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  transition: none !important;
}
@media (min-width: 1600px) {
  .hero-layout {
    grid-template-columns: minmax(0, 2.65fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1200px) {
  .topbar {
    gap: 10px;
  }
  .topbar nav a {
    padding: 0 9px;
  }
  .header-tools {
    gap: 5px;
  }
}
@media (max-width: 1060px) {
  .hero-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(245px, 1fr);
    gap: 15px;
  }
  .daily-top {
    min-height: 55px;
  }
  .bird {
    width: 83px;
  }
  .daily-progress {
    margin: 15px 0;
  }
  .activity-grid {
    gap: 12px;
  }
  .activity-info {
    padding: 10px;
    gap: 7px;
  }
  .activity-info h3 {
    font-size: 0.98rem;
  }
  .topbar,
  main,
  .foot,
  .page-width {
    width: calc(100% - 44px);
  }
}
@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0;
    min-height: auto;
    padding: 10px 0 0;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 7px 0;
    gap: 11px;
  }
  .topbar nav a {
    min-height: 35px;
  }
  .brand {
    font-size: 1.22rem;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(212px, 1fr);
  }
  .daily-card {
    padding: 16px;
  }
  .daily-top {
    min-height: 45px;
  }
  .bird {
    width: 69px;
  }
  .daily-title h2 {
    font-size: 1.5rem;
  }
  .map-bottom {
    padding: 11px;
  }
  .map-bottom > span {
    display: none;
  }
  .map-pin {
    font-size: 0.78rem;
    padding-right: 7px;
  }
  .map-pin > span {
    width: 23px;
    height: 23px;
  }
  .map-pin svg {
    width: 15px;
    height: 15px;
  }
  .page-intro {
    align-items: flex-start;
  }
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-art {
    height: 135px;
  }
  .exercise-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .revision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .topbar,
  main,
  .foot,
  .page-width {
    width: calc(100% - 30px);
  }
  .topbar nav {
    justify-content: space-between;
    gap: 1px;
  }
  .topbar nav a {
    font-size: 0.84rem;
    gap: 5px;
    padding: 0 8px;
  }
  .header-tools {
    gap: 3px;
  }
  .parent-button {
    font-size: 0.78rem;
    padding: 8px 9px;
  }
  .settings-button {
    width: 32px;
    height: 32px;
  }
  .brand {
    gap: 6px;
    font-size: 1.1rem;
  }
  .brand b {
    font-size: 0.65rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .explore,
  .workspace {
    padding: 23px 0 29px;
  }
  .page-intro {
    margin: 0 0 16px;
    display: block;
  }
  .date-label {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.77rem;
  }
  .page-intro h1 {
    font-size: 2.15rem;
  }
  .page-intro p {
    font-size: 0.94rem;
  }
  .location {
    font-size: 0.68rem;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .map-card,
  .daily-card,
  .panel,
  .place-view {
    border-radius: 17px;
  }
  .map-bottom > span {
    display: block;
  }
  .map-expand {
    right: 6px;
    bottom: 7px;
    width: 29px;
    height: 29px;
  }
  .map-caption {
    font-size: 0.85rem;
  }
  .map-bottom > span {
    font-size: 0.74rem;
  }
  .daily-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 0 10px;
    padding: 17px;
  }
  .daily-top {
    grid-column: 2;
    grid-row: 1/3;
  }
  .daily-icon,
  .rays {
    display: none;
  }
  .bird {
    bottom: 0;
    right: 0;
    height: 78px;
    width: 71px;
    max-width: 100%;
  }
  .daily-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .daily-title p {
    margin-top: 3px;
  }
  .daily-progress {
    grid-column: 1;
    grid-row: 2;
    margin: 12px 0 13px;
  }
  .start {
    grid-column: 1/-1;
  }
  .activities {
    margin-top: 22px;
  }
  .section-line {
    margin-bottom: 12px;
  }
  .activity-grid {
    gap: 10px;
  }
  .activity-art {
    height: 90px;
  }
  .activity-info {
    align-items: flex-start;
    min-height: 65px;
    padding: 10px;
  }
  .activity-icon {
    display: none;
  }
  .activity-info span {
    font-size: 0.75rem;
  }
  .activity-info h3 {
    font-size: 0.94rem;
  }
  .foot {
    gap: 8px;
    font-size: 0.75rem;
  }
  .foot .text-button {
    font-size: 0.75rem;
  }
  .parent-grid,
  .place-view,
  .exercise-layout {
    grid-template-columns: 1fr;
  }
  .place-photo img {
    min-height: 0;
    max-height: 235px;
    aspect-ratio: 2.1;
  }
  .exercise-place {
    display: none;
  }
  .exercise-card {
    border-radius: 16px;
  }
  .session-heading {
    margin: 15px 0;
  }
  .stats {
    gap: 7px;
  }
  .stats > div {
    padding: 12px 9px;
  }
  .stats b {
    font-size: 1.6rem;
  }
  .stats span {
    font-size: 0.77rem;
  }
  .revision-card {
    padding: 15px;
  }
  .revision-card h2 {
    font-size: 1.23rem;
  }
  .revision-grid {
    gap: 10px;
  }
  .save-row,
  .input-row {
    flex-wrap: wrap;
  }
  .input-row input {
    flex-basis: 170px;
  }
  .map-dialog {
    padding: 13px;
  }
  .map-dialog .map-pin {
    font-size: 0.75rem;
  }
  .map-pin {
    gap: 3px;
  }
  .map-pin > span {
    width: 21px;
    height: 21px;
  }
  .large .topbar nav a {
    font-size: 0.73rem;
  }
  .large .map-pin {
    font-size: 0.65rem;
  }
  .small-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .revision-card p {
    font-size: 0.9rem;
  }
}
@media (max-width: 400px) {
  .topbar nav a {
    padding-inline: 4px;
  }
  .topbar nav a svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.audio-note {
  color: #6f5a29;
  font-size: 0.9rem;
  line-height: 1.5;
}
.audio-note:not(:empty),
.park-alternative {
  margin-top: 15px;
}
.voice-setup-title {
  margin-top: 20px;
}

.oral-stage strong { display: block; }
.oral-stage {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.35rem);
  background: #f8efd0;
  border: 1px solid #e8d49b;
  border-radius: 16px;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
}
.oral-emblem {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(48px, 7vw, 67px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff9e8;
  color: #7b5720;
}
.oral-stage strong { font-size: clamp(1.12rem, 2.2vw, 1.45rem); }
.oral-stage p { margin: .35rem 0 0; line-height: 1.5; }
.oral-stage:is(.ready, .listening, .correct) { background: #eaf3e5; border-color: #c4d9bf; }
.oral-stage:is(.ready, .listening, .correct) .oral-emblem { background: #fbfff4; color: #2b754e; }
.oral-stage.listening .oral-emblem { box-shadow: 0 0 0 5px #d6e8cd; }
.oral-actions { margin-top: 1.1rem; }
.mic-privacy { color: var(--muted); font-size: .9rem; margin: .85rem 0; }
.feedback.prepare { background: #f0f5f2; border-color: #d7e3d9; }

.voice-preferences { padding: 0 0 1rem; }
.voice-selects {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(6.5rem, .85fr);
  gap: .7rem;
}
.voice-selects label { margin-top: 0; }
.voice-selects select { min-height: 44px; text-overflow: ellipsis; }
#voice-description, #voice-sample-status {
  font-size: .91rem;
  line-height: 1.45;
  color: var(--muted);
}
#voice-description { margin: .55rem 0 .8rem; }
#voice-sample-status:not(:empty) { margin-top: .55rem; }
.oral-voice-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.oral-voice-tools .text-button { padding-block: .5rem; }
.oral-voice-tools + .mic-privacy { margin-top: .12rem; }
@media (max-width: 460px) {
  .voice-selects { grid-template-columns: 1fr; }
  .voice-selects > div:last-child { display: flex; align-items: center; gap: .8rem; }
  .voice-selects > div:last-child label { margin-bottom: 0; }
  .voice-selects > div:last-child select { width: auto; }
}
