:root {
  color-scheme: light;
  --ink: #11231d;
  --green: #0b4033;
  --forest: #116040;
  --muted: #52615a;
  --paper: #f7f9f6;
  --white: #fff;
  --line: #dce4de;
  --mint: #e9f4ec;
  --lime: #d6f766;
  --radius: 13px;
  --width: 1080px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1, h2, h3, .brand { color: var(--green); }
h1, h2 { letter-spacing: -.027em; }
:focus-visible { outline: 3px solid #208258; outline-offset: 4px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.skip { position: fixed; z-index: 3; left: 10px; top: 10px; padding: .65rem; border-radius: 8px; background: var(--lime); transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; overflow: hidden; clip: rect(0,0,0,0); width: 1px; height: 1px; padding: 0; border: 0; white-space: nowrap; }
.mast { background: var(--white); border-bottom: 1px solid var(--line); }
.mast-inner, .page, .site-footer { width: min(var(--width), calc(100% - 44px)); margin-inline: auto; }
.mast-inner { display: flex; min-height: 65px; align-items: center; gap: 23px; }
.brand { display: inline-flex; align-items: center; gap: 9px; line-height: 1.1; white-space: nowrap; }
.brand b { display: block; font-size: 23px; font-weight: 820; letter-spacing: .035em; }
.brand small { font-size: 9px; font-weight: 800; letter-spacing: .055em; }
.mast-note { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 21px; }
.mast nav { display: flex; align-self: stretch; align-items: stretch; gap: 32px; margin-left: auto; }
.mast nav a { position: relative; display: grid; place-items: center; min-width: 70px; padding: 0 5px; font-size: 14px; white-space: nowrap; }
.mast nav a[aria-current] { font-weight: 800; color: var(--green); }
.mast nav a[aria-current]::after { content: ""; position: absolute; height: 3px; background: var(--forest); left: 5px; right: 5px; bottom: 8px; border-radius: 2px; }
.page { min-height: calc(100dvh - 137px); padding-block: 16px 40px; }
.page:focus { outline: none; }
.site-footer { min-height: 60px; border-top: 1px solid var(--line); padding-block: 16px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.hero {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background: #063d2a url("/court.webp") center 56% / cover no-repeat;
  border-radius: 16px;
  min-height: 234px;
  padding: 25px clamp(22px, 4.7vw, 55px);
  color: #fff;
}
.hero-content { position: relative; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: .015em; font-weight: 820; color: #fff; }
.hero p { font-size: clamp(14px, 1.65vw, 18px); margin: 7px 0 15px; color: #f0f7f0; }
.hero-goal { padding-left: 10px; border-left: 4px solid var(--lime); margin-top: 15px; font-size: 14px; line-height: 1.2; font-weight: 650; }
.btn { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 760; white-space: nowrap; line-height: 1.2; }
.primary { background: var(--lime); color: #142718; border-color: #caed51; }
.primary:hover { background: #c8ed4e; }
.secondary { background: var(--white); border-color: #b6c8bc; color: var(--green); }
.secondary:hover { background: var(--mint); }
.hero .btn { font-size: 17px; padding-inline: 21px; border-radius: 14px; }
.hero .btn:focus-visible { outline-color: white; }
.week { margin-top: 22px; }
.week h2, .section-heading h2 { font-size: clamp(21px, 2.8vw, 27px); font-weight: 820; }
.days { display: grid; grid-template-columns: repeat(7, minmax(122px, 1fr)); gap: 12px; margin-top: 12px; padding: 4px; margin-inline: -4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c6d9cb transparent; }
.day-tile { min-width: 0; min-height: 85px; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; color: var(--green); line-height: 1.22; transition: background .14s ease; }
.day-tile strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.day-tile small { font-size: 11px; margin-block: 2px 7px; color: var(--muted); }
.day-tile span { display: flex; align-items: center; justify-content: space-between; gap: 2px; white-space: nowrap; font-weight: 680; font-size: 13px; }
.day-tile:hover { background: var(--mint); }
.day-tile.active { background: var(--lime); border-color: #c8ed50; }
.day-tile.active small { color: #374727; }
.today { margin-top: 17px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-heading > span { color: var(--muted); font-size: 13px; font-weight: 580; }
.dash-grid { display: grid; gap: 18px; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.task-list { padding: 0 16px; }
.task-row { display: grid; align-items: center; grid-template-columns: 38px minmax(0, 1fr) auto 14px; gap: 13px; padding: 13px 5px; min-height: 67px; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row:hover .task-label b, .schedule-row:hover b { color: #177345; }
.task-icon { color: var(--forest); line-height: 1; }
.task-label { display: grid; gap: 2px; }
.task-label b { font-size: 16px; line-height: 1.25; }
.task-label small, .task-time { color: var(--muted); font-size: 12px; }
.task-time { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dash-progress { padding: 14px 19px 16px; }
.dash-progress h3 { font-size: 21px; margin-bottom: 13px; }
.progress-content { display: flex; gap: 15px; align-items: center; min-height: 125px; }
.ring { --arc: 0%; width: 116px; aspect-ratio: 1; display: grid; place-items: center; flex: none; border-radius: 50%; background: conic-gradient(var(--forest) var(--arc), #d9ece0 0); }
.ring[data-progress="1"]{--arc:10%}.ring[data-progress="2"]{--arc:20%}.ring[data-progress="3"]{--arc:30%}.ring[data-progress="4"]{--arc:40%}.ring[data-progress="5"]{--arc:50%}.ring[data-progress="6"]{--arc:60%}.ring[data-progress="7"]{--arc:70%}.ring[data-progress="8"]{--arc:80%}.ring[data-progress="9"]{--arc:90%}.ring[data-progress="10"]{--arc:100%}
.ring > div { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 91px; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.ring strong { font-size: 22px; line-height: 1.1; color: var(--ink); }
.ring small { margin-top: 4px; font-size: 10px; color: var(--muted); }
.progress-text { flex: 1; border-left: 1px solid var(--line); padding-left: 13px; color: var(--muted); font-size: 12px; }
.progress-text b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 5px; }
.progress-meter { width: 100%; height: 10px; border: 0; border-radius: 9px; overflow: hidden; appearance: none; background: #d9ece0; }
.progress-meter::-webkit-progress-bar { background: #d9ece0; border-radius: 9px; }
.progress-meter::-webkit-progress-value { background: var(--forest); border-radius: 9px; }
.progress-meter::-moz-progress-bar { background: var(--forest); border-radius: 9px; }
.progress-meter { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 5px; }
.detail-head > span, .word-num { font-size: 12px; font-weight: 760; letter-spacing: .07em; color: var(--forest); font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--green); min-height: 38px; font-weight: 720; font-size: 14px; }
.back:hover { text-decoration: underline; }
.detail-title { margin: 13px 0 22px; }
.detail-title h1 { font-size: clamp(29px, 5vw, 43px); font-weight: 820; }
.detail-title p { margin-top: 6px; color: var(--muted); }
.practice-intro { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.practice-intro strong { color: var(--forest); white-space: nowrap; }
.word-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.word-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 7px 12px; padding: 15px; }
.word-num { margin-top: 4px; }
.word-card h2 { font-size: 21px; letter-spacing: 0; overflow-wrap: anywhere; }
.word-card p { color: var(--muted); font-size: 14px; }
.icon-btn { border: 1px solid var(--line); background: var(--mint); color: var(--green); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; }
.icon-btn:hover { background: var(--lime); }
.word-card .example, .word-card .tick { grid-column: 2 / -1; }
.word-card .example { color: var(--ink); margin-top: 4px; }
.tick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; min-height: 32px; width: fit-content; cursor: pointer; }
.tick input { accent-color: var(--forest); width: 17px; height: 17px; flex: none; margin: 0; }
.actions, .button-group { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 19px; }
.actions p { margin-right: auto; color: var(--forest); font-size: 14px; }
.practice-stack { display: grid; gap: 13px; }
.practice, .question, .result { padding: clamp(15px, 2.7vw, 24px); min-width: 0; }
.practice h2 { font-size: 20px; }
.practice h2 span { font-size: 12px; color: var(--forest); margin-right: 5px; vertical-align: middle; }
.practice p, .practice textarea, .practice audio, .practice details { margin-top: 10px; }
.practice p { color: var(--muted); }
.practice audio { display: block; width: min(100%, 420px); }
.checks { color: var(--ink); padding-left: 1.4em; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--green); }
.practice details { padding-top: 8px; border-top: 1px solid var(--line); }
.dialogue { margin-block: 10px; }
.dialogue > div { display: grid; gap: 10px; grid-template-columns: 50px minmax(0,1fr); padding-block: 5px; }
.dialogue dt { color: var(--forest); font-weight: 700; }
.dialogue dd { margin: 0; }
.prompt { display: block; color: var(--green); background: var(--mint); font-weight: 700; padding: 12px 15px; border-radius: 9px; margin-top: 12px; }
.practice .model { color: var(--ink); }
textarea, .retry-label input { display: block; width: 100%; border: 1px solid #b6c8bc; background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 9px; }
textarea { resize: vertical; min-height: 92px; }
.scene-tick { margin-top: 10px; }
.result { background: var(--mint); display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.result-label { color: var(--forest); font-weight: 750; font-size: 13px; }
.result h2 { font-size: clamp(25px, 5vw, 34px); margin-block: 4px; }
.result p { color: var(--muted); }
.result-icon { color: var(--forest); background: white; padding: 10px; border-radius: 10px; }
.question { margin: 0; min-inline-size: 0; }
.question-title { display: flex; align-items: baseline; gap: 11px; font-size: 17px; margin-bottom: 13px; }
.options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.option { display: flex; align-items: center; gap: 9px; position: relative; padding: 8px 11px; min-height: 43px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink); overflow-wrap: anywhere; }
.option:has(input:checked) { background: var(--mint); border-color: var(--forest); }
.option:hover { border-color: var(--forest); }
.option input { accent-color: var(--forest); margin: 0; width: 16px; height: 16px; flex: none; }
.option-letter { font-size: 11px; color: var(--muted); font-weight: 760; }
.retry-label { display: block; font-size: 14px; color: var(--muted); }
.retry-label input { margin-top: 7px; max-width: 420px; }
.retry-hint { margin-top: 10px; font-size: 14px; }
.retry-hint p { margin-top: 5px; }
.schedule { padding: 0 15px; }
.schedule-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto 16px; gap: 11px; align-items: center; padding: 13px 4px; }
.schedule-row + .schedule-row { border-top: 1px solid var(--line); }
.schedule-row b { color: var(--green); font-size: 16px; }
.schedule-row small { display: inline-block; margin-left: 7px; color: var(--muted); font-size: 12px; }
.schedule-copy { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.state { color: var(--muted); background: #f0f3ef; border-radius: 6px; padding: 3px 6px; font-size: 11px; font-weight: 730; white-space: nowrap; }
.state.done { color: var(--forest); background: var(--mint); }
.roadmap { margin-top: 14px; }
.record-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.record-stats > div { display: grid; gap: 2px; padding: clamp(9px,2vw,18px); color: var(--muted); font-size: 12px; }
.record-stats strong { font-size: clamp(19px, 3.3vw, 30px); color: var(--green); }
.report-list { padding: 0 14px; }
.report-list details + details { border-top: 1px solid var(--line); }
.report-list summary { padding: 11px 3px; min-height: 44px; }
.report-list summary .state { float: right; }
.record-details { padding: 0 5px 13px; font-size: 14px; color: var(--muted); }
.record-details p + p { margin-top: 4px; }
.record-details ol { margin: 6px 0 9px; padding-left: 23px; }
.record-details .btn { margin-top: 6px; }
.storage-status { color: #57360e; background: #fff1d7; padding: 8px 12px; margin-bottom: 12px; border-radius: 7px; font-size: 14px; }
@media (max-width: 900px) {
  .dash-grid { gap: 12px; grid-template-columns: minmax(0, 1.6fr) minmax(0,1fr); }
  .ring { width: 86px; }.ring > div { width: 68px; }.ring strong { font-size: 18px; }
  .progress-content { gap: 10px; }
}
@media (max-width: 660px) {
  .mast-inner, .page, .site-footer { width: calc(100% - 26px); }
  .mast-inner { display: grid; gap: 0; min-height: 0; }
  .brand { padding: 9px 3px 4px; width: fit-content; }
  .brand img { width: 34px; height: 29px; }
  .brand b { font-size: 19px; }.brand small { font-size: 8px; }
  .mast-note { display: none; }
  .mast nav { margin: 0; gap: 0; justify-content: space-around; }
  .mast nav a { min-height: 40px; min-width: 70px; font-size: 13px; }
  .mast nav a[aria-current]::after { bottom: 1px; }
  .page { min-height: calc(100dvh - 150px); padding-top: 12px; padding-bottom: 26px; }
  .hero { min-height: 224px; border-radius: 13px; padding: 15px 18px; background-position: 86% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#063d2a 15%,#063d2af0 39%,#063d2a00 72%); }
  .hero h1 { font-size: clamp(25px,7.2vw,34px); max-width: 6.7em; line-height: 1.19; }
  .hero p { max-width: 14em; line-height: 1.45; margin: 8px 0 11px; }
  .hero .btn { font-size: 14px; padding-inline: 12px; border-radius: 11px; min-height: 40px; }
  .hero-goal { font-size: 12px; margin-top: 11px; }
  .week { margin-top: 16px; }
  .days { grid-template-columns: repeat(7, 91px); gap: 6px; margin-top: 7px; }
  .day-tile { padding: 6px 7px; min-height: 72px; border-radius: 9px; }
  .day-tile strong { font-size: 17px; }.day-tile small { font-size: 10px; margin-bottom: 5px; }.day-tile span { font-size: 11px; }
  .day-tile .icon { width: 11px; height: 11px; }
  .today { margin-top: 13px; }.section-heading { margin-bottom: 9px; }.section-heading > span { font-size: 12px; }
  .dash-grid { grid-template-columns: 1fr; }
  .task-list { padding-inline: 10px; }
  .task-row { grid-template-columns: 27px minmax(0,1fr) auto 12px; gap: 8px; min-height: 60px; padding: 9px 1px; }
  .task-icon .icon { width: 25px; height: 25px; }
  .task-label b { font-size: 14px; }.task-label small { font-size: 11px; }.task-time { font-size: 10px; gap: 2px; }
  .task-time .icon { width: 12px; height: 12px; }
  .dash-progress { padding: 12px 14px; }.dash-progress h3 { margin-bottom: 8px; font-size: 18px; }
  .progress-content { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 0; gap: 6px 9px; }
  .ring { order: 2; background: none; width: auto; aspect-ratio: auto; }
  .ring > div { width: auto; aspect-ratio: auto; }.ring strong { font-size: 15px; }.ring small { display: none; }
  .progress-meter { order: 1; position: static; opacity: 1; width: 100%; }
  .progress-text { order: 3; grid-column: 1/-1; border: 0; padding: 0; }
  .word-grid { grid-template-columns: 1fr; }
  .schedule-row small { display: block; margin-left: 0; }
}
@media (max-width: 350px) {
  .site-footer { flex-direction: column; }
  .task-time > .icon { display: none; }
  .options { grid-template-columns: 1fr; }
  .hero { background-position: 87% center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.parent-notice { max-width: 640px; margin: 16px auto; }
.parent-notice-link { margin-top: 14px; text-align: right; color: var(--forest); text-decoration: underline; }
.parent-notice form { display: grid; gap: 9px; margin-top: 16px; }
.parent-notice form input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.parent-notice form .btn { justify-self: start; }

.dad-note {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid #e7dcc3; border-radius: 12px; background: #fff8e9; color: #503e28;
  padding: 12px 15px; margin-block: 14px; font-size: 14px;
}
.dad-note > span { color: #a74542; font-size: 17px; }
.dad-note small { display: block; color: #6d4e35; margin-top: 3px; font-size: 12px; font-weight: 700; }
.parent-notice-link { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
.hug-dialog {
  border: 1px solid #e4d4b5; border-radius: 23px; width: min(480px, calc(100% - 28px));
  max-height: calc(100dvh - 28px); padding: 0; background: #fffaf0; color: #372a21;
  box-shadow: 0 20px 90px #102a2461;
}
.hug-dialog[open] { animation: hug-arrive 420ms cubic-bezier(.2,.8,.25,1) both; }
.hug-dialog::backdrop { background: #142b23b8; }
.hug-content { position: relative; text-align: center; padding: 20px clamp(16px,5vw,30px); }
.hug-close {
  position: absolute; right: 10px; top: 10px; height: 44px; width: 44px;
  border: 0; border-radius: 50%; background: #eee1c7; color: #533a2b; font-size: 24px;
}
.hug-label { display: block; color: #82433b; font-size: 12px; font-weight: 760; margin-bottom: 7px; }
.hug-content h2 { color: #422921; font-size: clamp(23px, 6vw, 29px); }
.hug-letter { margin-top: 9px; text-align: left; line-height: 1.7; }
.hug-signature { text-align: right; color: #82433b; font-weight: 750; margin-top: 5px; font-size: 13px; }
.hug-heart { display: block; margin: 0 auto 1px; overflow: visible; }
.hug-center { fill: #b54b4b; transform-origin: center; animation: heart-settle 650ms 260ms both; }
.hug-arm { stroke: #a66d30; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hug-arm.left { animation: arm-left 600ms 120ms both; }
.hug-arm.right { animation: arm-right 600ms 120ms both; }
.memory-slot { margin-top: 12px; }
.memory-slot:empty { margin-top: 0; }
.memory-photo {
  display: grid; justify-items: center; margin: 0 auto; max-width: 100%;
  background: white; padding: 7px 7px 5px; border: 1px solid #eadfc9; border-radius: 11px;
  box-shadow: 0 3px 12px #684b2026; animation: photo-reveal 490ms 100ms both;
}
.memory-photo img { width: 100%; max-height: min(30dvh, 235px); object-fit: contain; border-radius: 6px; }
.memory-photo figcaption { color: #6b5441; font-size: 11px; padding-top: 4px; }
.hug-unlock { color: #734330; text-decoration: underline; font-size: 13px; font-weight: 700; }
.hug-accept { margin-top: 14px; }
@keyframes hug-arrive { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes arm-left { from { opacity: .35; transform: translateX(-10px); } to { opacity: 1; transform: translateX(3px); } }
@keyframes arm-right { from { opacity: .35; transform: translateX(10px); } to { opacity: 1; transform: translateX(-3px); } }
@keyframes heart-settle { 0% { transform: scale(.72); } 58% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes photo-reveal { from { opacity: 0; transform: translateY(8px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@media (max-width: 660px) {
  .hero h1 { max-width: 10em; font-size: clamp(21px,6.1vw,29px); }
  .hero p { max-width: 14.5em; }
  .hero::before { background: linear-gradient(90deg,#063d2a 13%,#063d2ae8 48%,#063d2a00 84%); }
}
@media (prefers-reduced-motion: reduce) {
  .hug-dialog[open], .hug-center, .hug-arm.left, .hug-arm.right, .memory-photo { animation: none; }
}

.hero-signoff { white-space: nowrap; }
