:root {
  color-scheme: light;
  --coral: #ff5964;
  --background: #fff6f5;
  --ink: #2b2226;
  --muted: #786c71;
  --line: #eedfe0;
  --mint: #dbf2e7;
  --lavender: #e8e2ff;
  --yellow: #ffe8b3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, .major-option:has(input:focus-visible) { outline: 3px solid #7663be; outline-offset: 4px; }
h1[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
button { border: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 2.125rem; line-height: 1.3; font-weight: 800; letter-spacing: -.075rem; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: 1.3125rem; line-height: 1.45; letter-spacing: -.035rem; font-weight: 800; }
h3 { font-size: 1.0625rem; line-height: 1.5; font-weight: 750; }
p { line-height: 1.65; }
svg.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-160%); padding: 12px; border-radius: 12px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.app-shell { width: 100%; height: 100dvh; min-height: 300px; display: flex; flex-direction: column; background: var(--background); }
.app-workspace { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; overflow: hidden; overflow: clip; }
.desktop-sidebar, .desktop-page-title, .major-name, .intro-preview, .selection-heading, .word-overview { display: none; }
.intro-welcome, .intro-selection { min-width: 0; }
.app-header { flex: none; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: max(12px, env(safe-area-inset-top)) 24px 12px; }
.app-header.compact { min-height: 64px; padding-inline: 16px 24px; }
.brand { font-size: 1.75rem; font-weight: 850; letter-spacing: -.09rem; line-height: 1.2; }
.connection-status { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; font-weight: 650; letter-spacing: normal; line-height: 1.3; }
.connection-status.is-online { color: #26735d; }
.app-header .header-name { font-size: 1.125rem; font-weight: 750; min-width: 0; overflow-wrap: anywhere; }
.header-space { flex: 1; }
.icon-button { width: 46px; min-height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; }
.icon-button.tinted { background: var(--major-color, var(--yellow)); }
.icon-button:hover { filter: brightness(.96); }
.page-scroll { overflow-y: auto; overflow-x: clip; min-height: 0; flex: 1; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #ddced1 transparent; }
.page-content { padding: 24px 24px max(28px, env(safe-area-inset-bottom)); }
.home-content { padding-top: 4px; }
.intro-content { padding-top: max(32px, env(safe-area-inset-top)); }
.intro-content .brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.brand-symbol { width: 44px; height: 44px; border-radius: 14px; background: var(--coral); display: grid; place-items: center; }
.brand-symbol svg { width: 28px; height: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; line-height: 1.4; font-weight: 750; padding: 7px 11px; border-radius: 10px; background: var(--background); max-width: 100%; overflow-wrap: anywhere; }
.eyebrow.plain { padding-left: 0; letter-spacing: .06em; }
.muted { color: var(--muted); }
.subtitle { margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.heading-block { margin-bottom: 26px; }
.heading-block > .eyebrow { margin-bottom: 16px; }
.major-options { border: 0; padding: 0; margin: 32px 0 24px; display: grid; gap: 12px; min-width: 0; }
.major-options legend { padding: 0 0 14px; font-size: .875rem; font-weight: 750; }
.name-field { margin-top: 24px; }
.name-field label { display: block; font-size: .875rem; font-weight: 750; margin-bottom: 10px; }
.name-field input { display: block; width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); font-size: 1rem; }
.name-field input:focus { outline: 2px solid var(--coral); outline-offset: 2px; }
.name-field input::placeholder { color: #9b8b91; }
.name-field p { font-size: .6875rem; color: var(--muted); margin-top: 8px; }
.welcome-name { font-size: .875rem; color: var(--muted); margin-bottom: 10px; overflow-wrap: anywhere; }
.keyboard-hint { margin-top: 10px; font-size: .6875rem; color: var(--muted); line-height: 1.8; }
.keyboard-hint kbd { display: inline-block; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: white; font-family: inherit; font-size: inherit; }
.major-option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: white; cursor: pointer; transition: border-color .15s, background .15s; }
.major-option.selected { background: #ffe8e8; border: 2px solid var(--coral); padding: 17px; }
.major-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.major-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--major-color); }
.major-icon .icon { width: 28px; height: 28px; }
.major-copy { flex: 1; min-width: 0; }
.major-copy strong { font-size: 1.0625rem; display: block; font-weight: 750; overflow-wrap: anywhere; }
.major-copy span { display: block; color: var(--muted); margin-top: 4px; font-size: .75rem; line-height: 1.6; }
.radio-mark { width: 22px; height: 22px; flex: none; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.selected .radio-mark { border-color: var(--ink); background: var(--ink); color: white; }
.radio-mark .icon { width: 14px; height: 14px; stroke-width: 3; }
.button { min-height: 56px; border-radius: 18px; padding: 14px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 1rem; font-weight: 750; line-height: 1.5; background: var(--coral); transition: filter .15s, transform .15s; }
.button:hover:not(:disabled) { filter: brightness(.96); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { background: #e5dcde; color: #a1989c; }
.button.full { width: 100%; }
.button.dark { background: var(--ink); color: white; }
.button.outline { background: transparent; border: 1px solid var(--line); }
.footnote { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 20px; font-size: .75rem; color: var(--muted); line-height: 1.6; }
.footnote .icon { width: 17px; height: 17px; }
.form-error { margin-bottom: 12px; padding: 12px; background: #ffebed; color: #a82b38; border-radius: 12px; font-size: .875rem; }
.context-row { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; font-size: .75rem; color: var(--muted); }
.context-row .icon { width: 16px; height: 16px; }
.context-row .current-major { min-width: 0; flex: 1; }
.context-row .eyebrow { color: var(--ink); flex: none; }
.hero { margin: 28px 0 30px; padding: 22px; border-radius: 28px; background: var(--coral); }
.hero-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hero-top .eyebrow { background: #ffffff8c; }
.hero-date { font-size: .875rem; font-weight: 750; }
.hero-body { display: flex; align-items: center; gap: 12px; margin: 22px 0 24px; }
.hero-copy { min-width: 0; flex: 1; }
.hero-copy > p:first-child { font-size: .75rem; font-weight: 600; }
.hero-copy h2 { margin: 7px 0 10px; font-size: 1.6875rem; line-height: 1.3; }
.hero-copy .hero-desc { font-size: .875rem; }
.hero-note { margin-top: 12px; font-size: .6875rem; font-weight: 600; }
.game-art { width: 104px; height: 104px; display: block; flex: none; }
.section-subtitle { color: var(--muted); font-size: .875rem; margin: 6px 0 16px; }
.quick-play > h2 { margin-bottom: 16px; }
.content-note { color: var(--muted); font-size: .75rem; margin-top: 24px; }
.menu-stack { display: grid; gap: 12px; }
.menu-card { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left; padding: 17px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.menu-card:hover, .day-card:hover, .game-card:hover { border-color: #d3afb6; }
.menu-icon { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--tile-color); }
.menu-copy { flex: 1; min-width: 0; }
.menu-copy strong { font-size: 1rem; display: block; }
.menu-copy small { display: block; margin-top: 5px; font-size: .6875rem; line-height: 1.7; color: var(--muted); }
.menu-card > .icon { width: 20px; height: 20px; }
.surface-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.coming-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; }
.coming-card h3 { font-size: .875rem; }
.coming-card p { font-size: .75rem; color: var(--muted); margin-top: 5px; }
.bottom-nav { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 9px 8px max(9px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid #f4e9e9; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; background: transparent; padding: 0 3px; font-size: .75rem; font-weight: 700; color: #65575b; }
.nav-item > span:first-child { width: min(64px, 100%); min-height: 34px; padding: 5px; border-radius: 20px; display: grid; place-items: center; }
.nav-item[aria-current="page"] { color: var(--ink); }
.nav-item[aria-current="page"] > span:first-child { background: #ffe4e7; }
.day-stack { display: grid; gap: 16px; }
.day-card { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 24px; background: white; padding: 20px; }
.day-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.day-top .eyebrow { background: #ffedef; }
.day-top .icon { width: 21px; height: 21px; }
.day-card h2 { margin-top: 18px; }
.word-preview { color: var(--muted); font-size: .75rem; margin-top: 8px; line-height: 1.7; overflow-wrap: anywhere; }
.day-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.day-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.day-meta .icon { width: 16px; height: 16px; }
.day-meta .eyebrow { background: var(--mint); }
.sample-note { margin-top: 24px; }
.sample-note > .icon { margin-bottom: 10px; }
.sample-note strong { display: block; font-size: .875rem; line-height: 1.7; }
.sample-note p { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.word-layout { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.word-progress { margin: 12px 24px 0; flex: none; }
.word-progress > div { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; font-size: .875rem; }
.word-progress .lesson-title { min-width: 0; color: var(--muted); }
.word-progress .word-count { flex: none; font-weight: 750; }
progress { appearance: none; border: 0; height: 6px; width: 100%; display: block; margin-top: 14px; border-radius: 8px; overflow: hidden; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--coral); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--coral); border-radius: 8px; }
.word-scroll { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px; }
.word-card { padding: 28px; min-height: 330px; touch-action: pan-y; }
.word-card .word-label { color: var(--muted); font-size: .75rem; letter-spacing: .12em; font-weight: 750; margin: 42px 0 12px; }
.word-card .english-word { font-size: 2.125rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.35; overflow-wrap: anywhere; }
.word-pronunciation { display: flex; align-items: center; gap: 10px; }
.word-pronunciation .english-word { min-width: 0; }
.speech-button { background: var(--lavender); color: var(--ink); }
.speech-feedback { margin-top: 8px; color: var(--muted); font-size: .8125rem; }
.speech-feedback:empty { display: none; }
.word-meaning { font-size: 1.3125rem; font-weight: 750; margin-top: 28px; }
.word-example { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.word-example .muted:first-child { font-size: .75rem; margin-bottom: 10px; }
.word-example .example-text { font-size: 1rem; line-height: 1.7; }
.word-example .translation { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.word-card .bottom-space { height: 32px; }
.word-hint { display: block; width: 100%; min-height: 64px; border: 0; background: transparent; text-align: center; color: var(--muted); padding: 28px 0 8px; font-size: .875rem; }

/* New content stays interactive throughout these short entrance animations. */
.screen-enter { animation: screen-enter 180ms ease-out backwards; }
.word-enter-next { animation: word-enter-next 180ms ease-out backwards; }
.word-enter-previous { animation: word-enter-previous 180ms ease-out backwards; }
@keyframes screen-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes word-enter-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes word-enter-previous { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .screen-enter, .word-enter-next, .word-enter-previous { animation: none; }
}
.word-hint .icon { width: 30px; height: 30px; margin-bottom: 10px; }
.word-actions { flex: none; padding: 0 24px max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.word-actions .button { flex: 1; }
.word-actions .icon-button { background: #f2e6e9; }
.word-actions .icon-button:disabled { opacity: .4; }
.game-stack { display: grid; gap: 14px; }
.game-card { display: flex; width: 100%; text-align: left; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.game-card.highlighted { border: 2px solid var(--coral); padding: 17px; }
.game-card .game-art { width: 74px; height: 74px; }
.game-card-copy { flex: 1; min-width: 0; }
.game-card-copy .game-eyebrow { font-size: .75rem; line-height: 1.6; color: var(--muted); }
.game-card-copy strong { display: block; font-size: 1.0625rem; margin: 4px 0 6px; }
.game-card-copy small { font-size: .6875rem; line-height: 1.7; color: var(--muted); }
.game-card > .icon { width: 14px; height: 14px; }
.game-status { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 20px; color: var(--muted); font-size: .875rem; }
.game-status > .icon { width: 20px; height: 20px; color: var(--ink); }
.review-card { margin-top: 28px; text-align: center; padding: 40px 20px 20px; }
.review-symbol { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); margin: 0 auto 26px; }
.review-symbol .icon { width: 42px; height: 42px; }
.review-card p { margin: 12px 0 26px; color: var(--muted); font-size: .875rem; }
.review-card .button { margin-top: 26px; }
.game-dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 640px); max-width: 100%; max-height: 88dvh; border: 0; border-radius: 28px 28px 0 0; padding: 0; background: var(--background); color: var(--ink); overscroll-behavior: contain; }
.game-dialog::backdrop { background: #2b222670; }
.sheet-inner { padding: 12px 24px max(24px, env(safe-area-inset-bottom)); }
.sheet-top { display: flex; justify-content: flex-end; }
.sheet-art { display: flex; justify-content: center; }
.sheet-art .game-art { width: 124px; height: 124px; }
.sheet-inner h2 { font-size: 1.6875rem; margin-top: 20px; }
.sheet-description { font-size: .875rem; margin-top: 8px; }
.rules { margin: 20px 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.rules li { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; line-height: 1.7; }
.rule-number { min-width: 26px; height: 26px; display: grid; place-items: center; background: white; border-radius: 50%; font-size: .75rem; }
.word-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.word-chips .eyebrow { background: white; }
.sheet-note { font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.noscript { max-width: 640px; margin: 32px auto; padding: 24px; }
@media (min-width: 700px) {
  .page-content { padding: 32px; }
  .app-header { padding-inline: 32px; }
  .hero { padding: 26px; }
  .hero .game-art { width: 128px; height: 128px; }
  .day-stack { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
  .day-card { padding: 26px; min-height: 228px; }
  .day-card h2 { margin-top: 24px; }
  .day-meta { margin-top: 24px; }
  .game-stack { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
  .game-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; min-height: 280px; gap: 24px; }
  .game-card.highlighted { padding: 25px; }
  .game-card .game-art { width: 112px; height: 112px; }
  .game-card-copy { width: 100%; }
  .game-card-copy strong { font-size: 1.375rem; margin-top: 8px; }
  .game-card-copy small { font-size: .75rem; }
  .game-card > .icon { position: absolute; top: 28px; right: 26px; width: 20px; height: 20px; }
  .intro-content { width: 100%; max-width: 850px; margin-inline: auto; }
  .review-card { max-width: 760px; padding: 52px 40px 40px; }
  .review-card .button { width: auto; min-width: min(100%, 280px); }
}
@media (min-width: 1024px) {
  .has-major { display: grid; grid-template-columns: clamp(200px, 16vw, 252px) minmax(0, 1fr); }
  .desktop-sidebar { display: flex; flex-direction: column; gap: 0; padding: 28px 18px 24px; min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); background: white; }
  .sidebar-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 0 4px 38px; }
  .sidebar-brand img { flex: none; }
  .sidebar-brand .brand { font-size: 1.5625rem; }
  .sidebar-caption { padding: 0 14px; margin-bottom: 14px; font-size: .6875rem; color: var(--muted); font-weight: 700; letter-spacing: .025em; }
  .side-nav { display: grid; gap: 8px; }
  .side-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; min-height: 52px; border-radius: 15px; background: transparent; text-align: left; font-size: .875rem; font-weight: 650; color: #685b60; }
  .side-nav-item span { min-width: 0; overflow-wrap: anywhere; }
  .side-nav-item .icon { width: 21px; height: 21px; }
  .side-nav-item:hover { background: var(--background); }
  .side-nav-item[aria-current="page"] { color: var(--ink); background: #ffe5e7; font-weight: 800; }
  .sidebar-note { margin-top: auto; padding: 20px 14px; background: var(--background); border-radius: 18px; }
  .sidebar-note > .icon { margin-bottom: 12px; }
  .sidebar-note strong { display: block; font-size: .8125rem; line-height: 1.7; }
  .sidebar-note p { margin-top: 6px; color: var(--muted); font-size: .6875rem; line-height: 1.9; }
  .sidebar-footer { font-size: .625rem; color: var(--muted); margin-top: 18px; padding-inline: 4px; }
  .app-header, .app-header.compact { min-height: 84px; padding: 16px clamp(28px, 3vw, 56px); border-bottom: 1px solid var(--line); background: #ffffff80; }
  .app-header .mobile-brand { display: none; }
  .has-major .intro-content .connection-status { display: none; }
  .desktop-page-title { display: inline; font-size: 1.125rem; font-weight: 750; letter-spacing: -.02em; }
  .app-header .header-name { font-size: 1.125rem; }
  .major-switch { width: auto; gap: 9px; border-radius: 14px; padding: 10px 14px; }
  .major-name { display: inline; font-size: .75rem; line-height: 1.5; font-weight: 700; }
  .major-switch .icon { width: 19px; height: 19px; }
  .bottom-nav { display: none; }
  .page-content { padding: 36px clamp(28px, 3vw, 56px) 44px; width: 100%; max-width: 1760px; margin-inline: auto; }
  .heading-block { margin-bottom: 32px; }
  h1 { font-size: clamp(2.125rem, 2.6vw, 2.75rem); }
  .subtitle { font-size: .9375rem; }
  .home-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 28px; grid-template-areas: 'intro intro' 'challenge quick'; align-content: start; }
  .home-intro { grid-area: intro; }
  .home-intro .context-row { margin-bottom: 18px; }
  .home-intro .context-row .eyebrow { padding: 7px 12px; }
  .home-intro .mobile-break { display: none; }
  .home-content .hero { grid-area: challenge; margin: 0; display: flex; flex-direction: column; min-height: 370px; padding: 28px; }
  .hero-body { flex: 1; gap: 20px; margin: 28px 0; }
  .hero-copy h2 { font-size: 2rem; }
  .hero-copy .hero-desc { font-size: .9375rem; }
  .hero-note { margin-top: 14px; }
  .quick-play { grid-area: quick; display: flex; flex-direction: column; min-width: 0; padding-block: 4px; }
  .quick-play .menu-stack { flex: 1; }
  .menu-card { padding: 19px; gap: 16px; }
  .menu-copy small { font-size: .75rem; }
  .coming-card { grid-area: coming; margin-top: 0; padding: 24px; }
  .coming-card h3 { font-size: 1rem; }
  .coming-card p { font-size: .8125rem; }
  .sample-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 24px; }
  .sample-note > .icon { grid-row: span 2; margin: 0; }
  .sample-note p { grid-column: 2; margin: 0; }
  .game-status { align-items: center; padding: 24px; }
  .game-status + .button { width: auto; min-width: 220px; }
  .intro-content { max-width: 1680px; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(32px, 5vw, 80px); }
  .intro-content .brand-lockup { margin-bottom: 48px; }
  .intro-welcome h1 { font-size: clamp(2.125rem, 3.3vw, 3.5rem); }
  .intro-welcome .subtitle { font-size: 1rem; line-height: 1.9; }
  .intro-selection { background: white; padding: clamp(24px, 2.5vw, 44px); border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 16px 60px #5b252b05; }
  .selection-heading { display: block; }
  .selection-heading h2 { font-size: 1.625rem; margin-top: 16px; }
  .selection-heading .subtitle { font-size: .8125rem; }
  .major-options { margin-top: 26px; }
  .intro-selection .major-option { background: var(--background); }
  .intro-selection .major-option.selected { background: #ffe8e8; }
  .intro-preview { display: grid; gap: 10px; max-width: 400px; margin-top: 34px; padding: 22px; border: 1px solid var(--line); background: #ffffff70; border-radius: 22px; }
  .preview-tag { font-size: .5625rem; font-weight: 750; letter-spacing: .12em; margin-bottom: 7px; color: var(--muted); }
  .preview-word { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 11px; background: var(--yellow); font-size: .875rem; }
.preview-word:nth-child(2) { background: var(--lavender); }
.preview-word:nth-child(3) { background: var(--mint); }
  .preview-word span:first-child { font-weight: 750; }
  .word-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: 'progress overview' 'card overview' 'actions overview'; gap: 24px; padding: 32px clamp(28px, 3vw, 56px); }
  .word-progress { grid-area: progress; margin: 0; }
  .word-scroll { grid-area: card; padding: 0; }
  .word-card { padding: 32px; }
  .word-actions { grid-area: actions; padding: 0; }
  .word-actions .button { flex: none; min-width: 230px; margin-left: auto; }
  .word-overview { display: block; grid-area: overview; min-height: 0; overflow-y: auto; align-self: stretch; padding: 22px 18px; border: 1px solid var(--line); border-radius: 24px; background: #ffffff90; }
  .word-overview h2 { font-size: 1rem; margin: 18px 0 6px; }
  .word-overview > p { font-size: .75rem; color: var(--muted); }
  .word-overview ol { display: grid; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
  .word-overview button { display: flex; width: 100%; text-align: left; align-items: center; gap: 9px; padding: 12px 9px; border: 1px solid transparent; border-radius: 12px; background: transparent; }
  .word-overview button:hover { background: var(--background); }
  .word-overview button[aria-current="step"] { border-color: #ffd4d9; background: #ffedef; }
  .overview-number { font-size: .625rem; color: var(--muted); flex: none; }
  .overview-word { font-size: .8125rem; font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .overview-seen { width: 16px; height: 16px; color: #3f917b; flex: none; }
  .overview-seen .icon { width: 16px; height: 16px; }
  .overview-note { border-top: 1px solid var(--line); padding-top: 16px; line-height: 1.8; }
  .game-dialog { inset: 0; margin: auto; width: min(720px, calc(100% - 64px)); max-height: min(800px, calc(100dvh - 64px)); border-radius: 28px; }
  .sheet-inner { padding: 16px 36px 32px; }
}
@media (min-width: 1280px) {
  .hero .game-art { width: clamp(140px, 12vw, 200px); height: auto; aspect-ratio: 1; }
  .word-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; min-height: 360px; }
  .word-face { padding: 32px; min-width: 0; }
  .word-details { display: flex; flex-direction: column; justify-content: center; padding: 32px; min-width: 0; border-left: 1px solid var(--line); }
  .word-details .word-meaning { margin-top: 0; font-size: 1.5rem; }
  .word-details .word-hint { padding: 0; }
  .word-card .bottom-space { display: none; }
  .word-card .english-word { font-size: clamp(2.125rem, 3vw, 3rem); }
}
@media (max-width: 359px) {
  .page-content, .word-scroll { padding-inline: 20px; }
  .hero { padding: 18px; }
  .hero .game-art { width: 78px; height: 78px; }
  .major-option { padding: 15px; gap: 10px; }
  .major-option.selected { padding: 14px; }
  .major-icon { width: 44px; height: 44px; }
  .game-card { gap: 12px; padding: 15px; }
  .game-card.highlighted { padding: 14px; }
  .game-card .game-art { width: 62px; height: 62px; }
  h1 { font-size: 1.875rem; }
}
@media (max-width: 699px) {
  :root { font-size: 125%; }
  .icon-button { width: 50px; min-height: 50px; }
  .brand-symbol svg, .major-icon .icon { width: 32px; height: 32px; }
  .nav-item .icon { width: 30px; height: 30px; }
  .word-hint .icon { width: 36px; height: 36px; }
  .review-symbol .icon { width: 48px; height: 48px; }
  .day-top .icon, .menu-card > .icon, .game-status > .icon { width: 24px; height: 24px; }
  .context-row .icon, .day-meta .icon, .game-card > .icon { width: 20px; height: 20px; }
  .menu-copy small, .game-card-copy small, .nav-item { font-size: .8125rem; }
  .word-card .english-word { font-size: 2.25rem; }
  .word-meaning { font-size: 1.5rem; }
  .word-example .translation { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
