@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --sky: #EEF5FC; --sky-2: #CFE9FB; --sky-3: #B7DAF3; --paper: #F6F8FB; --white: #FFFFFF;
  --ink: #1F2D3D; --muted: #4A5B6C; --blue: #2F6EA8; --blue-dark: #1F4F7A; --navy: #23395B;
  --line: #DCE6F0; --line-2: #C9D8E6; --line-3: #E3EAF1; --select: #DFEAF7;
  --sun: #FFD45C; --coral: #FF8A73; --red: #B3261E; --green: #6CCB8C; --lav: #C6B3F5;
  --gold-soft: #FDF1CC; --gold: #E3B23C; --lav-soft: #EFE9FD; --lav-ink: #4B3A8C;
  --w-people: #E3B23C; --w-action: #4CAF6E; --w-feel: #4A90D9; --w-thing: #EE8A3C; --w-social: #D9669B;
  --shadow: 0 4px 14px rgba(35, 57, 91, 0.08); --shadow-lg: 0 10px 30px rgba(35, 57, 91, 0.16);
  --r-sm: 12px; --r: 18px; --r-lg: 22px; --r-xl: 32px;
  --head: "Nunito", "Atkinson Hyperlegible", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper); }
body.child { background: var(--sky); overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--white); padding: 10px 16px; border-radius: var(--r-sm); z-index: 50; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; }
.stack > img.center, .stack > .center-self { align-self: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-lg { margin-top: 28px; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 22px; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--select); color: var(--ink); }
.site-main { padding: 28px 0 48px; min-height: 60vh; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 28px 0; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-footer a { color: var(--ink); }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dmca-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); max-width: 680px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }

.card { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.card-flat { border-width: 1px; box-shadow: var(--shadow); }
.card h2 { font-size: 21px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 24px; border: 2px solid var(--line-2); background: var(--white); color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--blue); color: var(--ink); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-secondary { border-color: var(--blue); color: var(--blue); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: #FBEBEB; color: var(--red); }
.btn-lg { min-height: 64px; padding: 0 30px; border-radius: 32px; font-size: 20px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--sky); border: 1px solid var(--line-2); color: var(--ink); }
.badge-sub { background: var(--lav-soft); border-color: var(--lav); color: var(--lav-ink); }
.badge-draft { background: var(--gold-soft); border-color: var(--gold); }
.badge-ok { background: #E5F4E4; border-color: var(--green); }
.badge-warn { background: #FBEBEB; border-color: #E6A39D; color: var(--red); }
.flash { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--white); margin-bottom: 14px; }
.flash-ok { background: #E5F4E4; border-color: var(--green); }
.flash-warn { background: var(--gold-soft); border-color: var(--gold); }
.flash-err { background: #FBEBEB; border-color: #E6A39D; }
.note { padding: 14px 16px; border-radius: var(--r); background: var(--sky); border: 1px solid var(--line-2); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: 16px; }
.field-hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; color: var(--red); font-weight: 700; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 2px solid var(--line-2); background: var(--white); font-family: var(--body); font-size: 16px; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; min-height: 320px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.switch { width: 56px; height: 32px; flex: none; border-radius: 16px; border: none; padding: 3px; display: flex; justify-content: flex-start; background: var(--line-2); cursor: pointer; }
.switch::after { content: ""; width: 26px; height: 26px; border-radius: 13px; background: var(--white); }
.switch[aria-checked="true"] { justify-content: flex-end; background: var(--blue); }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-3); }
.setting-row:first-of-type { border-top: none; }
.setting-row .grow { flex: 1; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.seg button { min-height: 46px; border-radius: var(--r-sm); border: 2px solid var(--line-2); background: var(--white); font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: var(--select); }

.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); text-align: center; }
.tile:hover { border-color: var(--blue); color: var(--ink); }
.tile-icon { width: 96px; height: 96px; object-fit: contain; }
.tile-title { font-family: var(--head); font-weight: 800; font-size: 21px; line-height: 1.15; }
.tile-text { font-size: 15px; color: var(--muted); line-height: 1.3; }

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 2px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); padding: 12px 12px 8px; white-space: nowrap; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line-3); vertical-align: top; }

.prose { max-width: 760px; font-size: 18px; line-height: 1.6; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--sky-3); background: var(--sky); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin-bottom: 1em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--r-sm); }
.legal-meta { font-size: 15px; color: var(--muted); margin-bottom: 18px; }

.child-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 16px 20px 20px; gap: 16px; }
.child-bar { display: flex; align-items: center; gap: 14px; min-height: 80px; }
.child-bar h1 { flex: 1; margin: 0; text-align: center; font-size: 32px; }
.child-home { width: 80px; height: 80px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.child-home img { width: 58px; height: 58px; }
.child-lock { width: 80px; height: 80px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 20px; }
.child-lock svg { width: 26px; height: 26px; }
.child-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.big-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; padding: 0 30px; border-radius: 38px; border: 3px solid var(--blue); background: var(--white); color: var(--blue); font-family: var(--head); font-weight: 800; font-size: 26px; text-decoration: none; cursor: pointer; }
.big-btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.big-btn-done { background: #DDF3E4; border-color: #4CAF6E; color: var(--ink); }
.big-btn svg { width: 30px; height: 30px; }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.home-grid { flex: 1; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.home-grid .tile-icon { width: 110px; height: 110px; }
.home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.home-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.home-brand img { width: 68px; height: 68px; }
.home-brand .name { font-family: var(--head); font-weight: 800; font-size: 34px; color: var(--blue); line-height: 1.1; }
.home-brand .sub { font-size: 15px; color: var(--muted); }
.pill-link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(35, 57, 91, .08); text-decoration: none; font-weight: 700; font-size: 18px; color: var(--ink); }
.pill-link svg { width: 24px; height: 24px; color: var(--blue); }
.child-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 17px; color: var(--muted); }

.intro-stage { position: relative; height: 420px; border-radius: var(--r-xl); background: var(--sky-2); border: 1px solid var(--sky-3); overflow: hidden; }
.intro-logo { position: absolute; left: 50%; top: 22px; width: 240px; height: 240px; margin-left: -120px; }
.intro-cloud { position: absolute; top: 180px; width: 320px; height: 178px; }
.intro-cloud svg { display: block; width: 100%; height: 100%; }
.intro-cloud path { fill: var(--white); stroke: var(--navy); stroke-width: 7; stroke-linejoin: round; }
.intro-cloud-l { left: calc(50% - 534px); }
.intro-cloud-r { left: calc(50% + 214px); }
.intro-cloud-r svg { transform: scaleX(-1); }
.intro-word { position: absolute; left: 0; right: 0; top: 270px; margin: 0; text-align: center; font-size: 64px; line-height: 1.1; color: var(--blue); }
.intro-tag { position: absolute; left: 0; right: 0; top: 348px; margin: 0; text-align: center; font-family: var(--head); font-weight: 700; font-size: 24px; color: var(--navy); }
.intro-skip { position: absolute; top: 18px; right: 18px; min-height: 48px; padding: 0 20px; border-radius: 24px; background: var(--white); border: 1px solid var(--sky-3); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.intro-tiles { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 960px) { .intro-tiles { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.intro-tiles .tile { height: 112px; padding: 10px 4px; gap: 6px; border-radius: var(--r); }
.intro-tiles .tile-icon { width: 56px; height: 56px; }
.intro-tiles .tile-title { font-size: 16px; }
@keyframes mhsPeek { 0% { opacity: 0; transform: translateY(90px) scale(.92); } 22% { opacity: 1; transform: translateY(34px) scale(.92); } 48% { opacity: 1; transform: translateY(34px) scale(.92); } 74% { opacity: 1; transform: translateY(-8px) scale(1.05); } 88% { opacity: 1; transform: translateY(3px) scale(.99); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mhsPartL { 0% { transform: translateX(260px); } 100% { transform: translateX(0); } }
@keyframes mhsPartR { 0% { transform: translateX(-260px); } 100% { transform: translateX(0); } }
@keyframes mhsDrop { 0% { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; transform: translateY(7px); } 80% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes mhsFade { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes mhsPop { 0% { opacity: 0; transform: scale(.86); } 100% { opacity: 1; transform: scale(1); } }
.intro.is-playing .intro-logo { animation: mhsPeek 2.1s ease-in-out 0s both; }
.intro.is-playing .intro-cloud-l { animation: mhsPartL .8s ease-in-out .7s both; }
.intro.is-playing .intro-cloud-r { animation: mhsPartR .8s ease-in-out .7s both; }
.intro.is-playing .intro-word { animation: mhsDrop .8s ease-out 1.5s both; }
.intro.is-playing .intro-tag { animation: mhsFade .5s ease-out 2.1s both; }
.intro.is-playing .intro-tiles li { animation: mhsPop .35s ease-out both; }
.intro.is-playing .intro-tiles li:nth-child(1) { animation-delay: 2.50s; } .intro.is-playing .intro-tiles li:nth-child(2) { animation-delay: 2.56s; }
.intro.is-playing .intro-tiles li:nth-child(3) { animation-delay: 2.62s; } .intro.is-playing .intro-tiles li:nth-child(4) { animation-delay: 2.68s; }
.intro.is-playing .intro-tiles li:nth-child(5) { animation-delay: 2.74s; } .intro.is-playing .intro-tiles li:nth-child(6) { animation-delay: 2.80s; }
.intro.is-playing .intro-tiles li:nth-child(7) { animation-delay: 2.86s; } .intro.is-playing .intro-tiles li:nth-child(8) { animation-delay: 2.92s; }
.intro.is-playing .intro-tiles li:nth-child(9) { animation-delay: 2.98s; } .intro.is-playing .intro-tiles li:nth-child(n+10) { animation-delay: 3.04s; }
.intro.is-playing .intro-go { animation: mhsPop .4s ease-out 3.1s both; }
.intro.is-playing .intro-skip { animation: mhsFade .2s linear 3.3s reverse both; }
@media (max-width: 760px) { .intro-stage { height: 360px; } .intro-logo { width: 180px; height: 180px; margin-left: -90px; } .intro-word { top: 210px; font-size: 44px; } .intro-tag { top: 270px; font-size: 20px; } .intro-cloud { top: 150px; width: 220px; height: 122px; } .intro-cloud-l { left: calc(50% - 300px); } .intro-cloud-r { left: calc(50% + 80px); } }

.talk { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.talk-strip { display: flex; align-items: center; gap: 10px; min-height: 84px; padding: 8px 10px; border-radius: var(--r); background: var(--white); border: 2px solid var(--line); }
.talk-strip-words { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.strip-word { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 12px; background: var(--sky); font-weight: 700; font-size: 16px; }
.strip-word img { width: 44px; height: 44px; object-fit: contain; }
.strip-btn { width: 68px; height: 68px; flex: none; border-radius: 18px; border: 2px solid var(--line-2); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.strip-btn svg { width: 30px; height: 30px; }
.strip-btn-say { border-color: var(--blue); color: var(--blue); }
.talk-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 10px; }
.word { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; padding: 6px 4px; border-radius: 16px; background: var(--white); border: 3px solid var(--line-2); box-shadow: var(--shadow); cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1.1; color: var(--ink); text-align: center; }
.word img { width: 70%; max-width: 76px; aspect-ratio: 1; object-fit: contain; }
.word--people { border-color: var(--w-people); } .word--action { border-color: var(--w-action); } .word--feel { border-color: var(--w-feel); }
.word--thing { border-color: var(--w-thing); } .word--social { border-color: var(--w-social); }
.word--folder::after { content: ""; position: absolute; top: 6px; right: 6px; width: 14px; height: 10px; border: 2px solid var(--navy); border-radius: 2px 2px 3px 3px; }
.word.is-tapped { background: var(--sky); }
.word.is-off { visibility: hidden; }
.slot-empty { border-radius: 16px; border: 2px dashed transparent; }
.talk-page-bar { display: flex; align-items: center; gap: 10px; }
@media (prefers-reduced-motion: no-preference) { .word { transition: background-color .15s; } }
@media (max-width: 700px) { .talk-grid { gap: 5px; } .word { font-size: 12px; border-width: 2px; border-radius: 10px; padding: 3px 2px; } .strip-btn { width: 56px; height: 56px; } }

.day { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 18px; }
.day-top { flex: 1; min-height: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .day-top { grid-template-columns: 1.45fr 1fr; } }
.day-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.day-card--now { border: 4px solid var(--blue); }
.day-card img { width: 200px; height: 200px; object-fit: contain; }
.day-card .label { font-family: var(--head); font-weight: 800; font-size: 36px; }
.day-tag { padding: 6px 22px; border-radius: 20px; background: var(--line-3); font-weight: 700; font-size: 22px; }
.day-tag--now { background: var(--blue); color: var(--white); }
.day-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.day-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 16px; }
.day-list li img { width: 62px; height: 62px; object-fit: contain; }
.day-list li.is-done { opacity: .55; }
.day-list li.is-now { border: 4px solid var(--blue); }
.ft { flex: 1; display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 760px) { .ft { grid-template-columns: 1fr auto 1fr; } }
.ft-arrow { display: flex; align-items: center; justify-content: center; color: var(--navy); }
.ft-arrow svg { width: 70px; height: 70px; }
.picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.picker button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--r); border: 2px solid var(--line-2); background: var(--white); cursor: pointer; font-weight: 700; font-size: 14px; }
.picker button img { width: 56px; height: 56px; object-fit: contain; }
.picker button[aria-pressed="true"] { border-color: var(--blue); background: var(--select); }
.routine-step { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; border-radius: 28px; background: var(--white); border: 4px solid var(--blue); text-align: center; }
.routine-step img { width: 240px; height: 240px; object-fit: contain; }
.routine-step .label { font-family: var(--head); font-weight: 800; font-size: 40px; }
.step-dots { display: flex; justify-content: center; gap: 10px; }
.step-dots span { width: 18px; height: 18px; border-radius: 9px; background: var(--line-2); }
.step-dots span.is-done { background: var(--green); }
.step-dots span.is-now { background: var(--blue); }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }

.timer { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.timer-disk { width: min(62vh, 420px); height: min(62vh, 420px); }
.timer-disk .face { fill: var(--white); stroke: var(--navy); stroke-width: 3; }
.timer-disk .left { fill: var(--sun); }
.timer-left { font-family: var(--head); font-weight: 800; font-size: 34px; }

.choice-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: var(--r-lg); background: var(--white); border: 3px solid var(--line); box-shadow: var(--shadow); cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; text-align: center; }
.choice-card img { width: 110px; height: 110px; object-fit: contain; }
.choice-card[aria-pressed="true"] { border-color: var(--blue); background: var(--select); }
.guide-circle { width: 220px; height: 220px; border-radius: 50%; background: var(--sky-2); border: 4px solid var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 30px; color: var(--navy); }
@media (prefers-reduced-motion: no-preference) { .guide-circle.is-in { animation: mhsBreathe 8s ease-in-out infinite; } }
@keyframes mhsBreathe { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.1); } }
.count-dots { display: flex; gap: 14px; } .count-dots span { width: 44px; height: 44px; border-radius: 22px; border: 4px solid var(--blue); background: var(--white); }
.count-dots span.is-on { background: var(--blue); }
.story { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.story img { width: 260px; height: 260px; object-fit: contain; }
.story .text { font-family: var(--head); font-weight: 800; font-size: 32px; max-width: 760px; line-height: 1.3; }

.area-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.game { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.game-prompt { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 26px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: min(100%, 420px); text-align: center; }
.game-prompt .say { font-family: var(--head); font-weight: 800; font-size: 30px; }
.game-objects { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.game-objects svg, .game-objects img { width: 64px; height: 64px; }
.game-objects img.is-gone { opacity: .25; }
.choices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(140px, 180px)); justify-content: center; width: 100%; }
.choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; padding: 12px; border-radius: var(--r-lg); background: var(--white); border: 3px solid var(--line-2); box-shadow: var(--shadow); cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 54px; color: var(--ink); }
.choice img { width: 96px; height: 96px; object-fit: contain; }
.choice .swatch { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--navy); }
.game-prompt .swatch { display: block; width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--navy); }
.game-prompt img { width: 120px; height: 120px; object-fit: contain; }
.choice.is-faded { opacity: .25; pointer-events: none; }
.choice.is-hint { border-color: var(--sun); box-shadow: 0 0 0 6px rgba(255, 212, 92, .5); }
.choice.is-right { border-color: #4CAF6E; background: #E5F4E4; }
.big-letter { font-family: var(--head); font-weight: 800; font-size: 96px; line-height: 1; color: var(--navy); }
.game-progress { display: flex; gap: 8px; }
.game-progress span { width: 16px; height: 16px; border-radius: 8px; background: var(--line-2); }
.game-progress span.is-done { background: var(--blue); }
.celebrate { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.celebrate img { width: 200px; height: 200px; }
.celebrate .say { font-family: var(--head); font-weight: 800; font-size: 40px; color: var(--blue); }
@media (prefers-reduced-motion: no-preference) { .celebrate img { animation: mhsPop .5s ease-out both; } }

.gate { position: fixed; inset: 0; z-index: 40; background: rgba(31, 45, 61, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate-box { width: 100%; max-width: 380px; background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); text-align: center; }
.gate-dots { display: flex; justify-content: center; gap: 12px; margin: 14px 0; }
.gate-dots span { width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--navy); }
.gate-dots span.is-on { background: var(--navy); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { min-height: 60px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--white); font-family: var(--head); font-weight: 800; font-size: 26px; cursor: pointer; }

.portal { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.portal-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--white); border: 2px solid var(--line); }
.portal-nav button, .portal-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: none; background: transparent; font-weight: 700; font-size: 16px; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.portal-nav button[aria-current="page"] { background: var(--select); }
.portal-nav svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.portal-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 820px) { .portal-nav { max-width: none; flex-direction: row; flex-wrap: wrap; } }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border-radius: var(--r); background: var(--white); border: 2px solid var(--line); text-align: center; }
.stat .n { font-family: var(--head); font-weight: 800; font-size: 34px; color: var(--blue); line-height: 1.1; }
.stat .l { font-size: 15px; color: var(--muted); }
.skill-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-3); }
.skill-row:first-of-type { border-top: none; }
.skill-row .ball { width: 22px; height: 22px; flex: none; }
.ball-ring { fill: var(--white); stroke: var(--blue); stroke-width: 2; }
.ball-fill { fill: var(--blue); }
.ball-check { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 16px; height: 16px; }
.bar { flex: 1; height: 12px; border-radius: 6px; background: #EEF2F6; overflow: hidden; }
.bar > i { display: block; height: 12px; border-radius: 6px; background: var(--blue); width: 0; }
.word-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--white); border: 2px solid var(--line-3); border-left-width: 6px; font-size: 15px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 20px; text-align: center; }
.report-paper { background: var(--white); border: 1px solid var(--line-2); border-radius: 6px; padding: 28px; max-width: 760px; }

.status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--sky); text-align: center; }
.status-page img { width: 140px; height: 140px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.motion-none *, .motion-none *::before, .motion-none *::after { animation: none !important; transition: none !important; }
.intro-off .intro.is-playing *, .intro.is-still * { animation: none !important; }
.center-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .portal-nav, .no-print, .skip-link { display: none !important; }
  .site-main { padding: 0; }
  .portal-main { flex-basis: 100%; }
  .report-paper { border: none; padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
}
