:root {
  --navy: #132942;
  --navy-2: #203c5c;
  --teal-dark: #0c6570;
  --teal: #16a3a5;
  --teal-soft: #dff7f4;
  --coral: #ff704f;
  --coral-dark: #d64e31;
  --amber: #ffbd3e;
  --cream: #f7f8f4;
  --white: #fff;
  --ink: #162539;
  --muted: #68778a;
  --line: #dfe7e8;
  --success: #16875f;
  --danger: #bd3d35;
  --shadow: 0 16px 42px rgba(25, 55, 70, .12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --sidebar: 258px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-rounded, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, select, a[href] { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.skip-link {
  position: fixed; z-index: 1000; left: 12px; top: -60px;
  padding: 12px 16px; color: white; background: var(--navy); border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20;
  display: flex; width: var(--sidebar); padding: 26px 18px;
  color: #eef9f8; background: var(--navy); flex-direction: column;
}

.brand {
  display: flex; width: 100%; min-height: 58px; padding: 0 8px; align-items: center; gap: 12px;
  color: white; text-align: left; text-decoration: none; background: none; border: 0;
}
.brand-mark {
  display: grid; width: 46px; aspect-ratio: 1; color: var(--navy); background: var(--amber);
  border-radius: 15px 15px 15px 5px; place-items: center; font-weight: 900; transform: rotate(-3deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #a8c2cf; font-size: .78rem; }

.main-nav { display: grid; margin-top: 42px; gap: 8px; }
.nav-item {
  display: flex; min-height: 52px; padding: 10px 13px; align-items: center; gap: 13px;
  color: #b9cbd5; text-decoration: none; background: transparent; border: 0; border-radius: 14px; font-weight: 750; text-align: left;
}
.nav-item svg, .mobile-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: var(--navy); background: var(--amber); box-shadow: 0 8px 22px rgba(255,189,62,.2); }

.privacy-note {
  display: flex; margin-top: auto; padding: 13px; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
}
.privacy-dot { width: 9px; height: 9px; margin-top: 6px; background: #54dfb2; border-radius: 50%; box-shadow: 0 0 0 4px rgba(84,223,178,.12); }
.privacy-note strong, .privacy-note small { display: block; }
.privacy-note strong { font-size: .82rem; }
.privacy-note small { margin-top: 2px; color: #9db3bf; font-size: .72rem; line-height: 1.35; }

.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: 28px clamp(24px, 4vw, 58px) 54px; }
.topbar { display: flex; max-width: 1240px; margin: 0 auto 24px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.04em; }
.eyebrow, .section-kicker { margin: 0; color: var(--teal-dark); font-weight: 850; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions, .energy { display: flex; align-items: center; }
.topbar-actions { gap: 12px; }
.energy { padding: 8px 12px; gap: 9px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.energy svg { width: 25px; height: 25px; fill: var(--amber); stroke: #c8820e; stroke-width: 1.5; }
.energy strong, .energy small { display: block; line-height: 1.15; }
.energy small { color: var(--muted); font-size: .7rem; }
.avatar-button { display: grid; width: 46px; height: 46px; color: white; text-decoration: none; background: var(--teal-dark); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); font-weight: 850; place-items: center; }

.view { max-width: 1240px; margin: 0 auto; animation: viewIn .25s ease both; }
.view[hidden] { display: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } }

.hero-card {
  position: relative; display: grid; min-height: 330px; padding: clamp(30px, 5vw, 58px); overflow: hidden;
  color: white; background: linear-gradient(125deg, #0b626d, #159a9b); border-radius: var(--radius-xl); box-shadow: var(--shadow); grid-template-columns: 1.15fr .85fr;
}
.hero-card::before, .hero-card::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero-card::before { width: 380px; height: 380px; right: -120px; top: -180px; }
.hero-card::after { width: 230px; height: 230px; right: 19%; bottom: -170px; }
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.pill { display: inline-flex; padding: 6px 11px; align-items: center; border-radius: 999px; font-size: .73rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.pill-light { color: #eaffff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.pill-teal { color: #07636a; background: var(--teal-soft); }
.pill-coral { color: #9e351f; background: #ffe1d8; }
.hero-copy h2 { margin: 19px 0 14px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; letter-spacing: -.055em; }
.hero-copy h2 em { color: var(--amber); font-style: normal; }
.hero-copy p { max-width: 580px; margin: 0 0 24px; color: #d7f4f2; font-size: 1.03rem; }
.hero-art { position: absolute; z-index: 1; right: 1.5%; bottom: -10px; width: 41%; height: 112%; }
.hero-art img { position: absolute; right: 4%; bottom: 0; max-height: 102%; object-fit: contain; filter: drop-shadow(0 15px 18px rgba(0,35,40,.25)); }
.floating-word { position: absolute; z-index: 2; padding: 7px 11px; color: var(--navy); background: white; border-radius: 10px; box-shadow: 0 8px 15px rgba(9,58,65,.18); font-weight: 850; transform: rotate(-5deg); }
.word-one { left: 0; top: 23%; }.word-two { right: 1%; top: 12%; transform: rotate(6deg); }.word-three { right: 3%; bottom: 17%; transform: rotate(-3deg); }

.button { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 13px; font-weight: 850; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--teal-dark); box-shadow: 0 6px 14px rgba(12,101,112,.16); }
.button-primary:hover { background: #084f59; }
.button-coral { color: white; background: var(--coral); box-shadow: 0 9px 18px rgba(147,43,21,.25); }
.button-coral:hover { background: #ff8063; }
.button-soft { color: var(--teal-dark); background: var(--teal-soft); }
.button-ghost { color: var(--navy); background: white; border: 1px solid var(--line); }

.content-grid { display: grid; margin-top: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgba(25,55,70,.06); }
.exercise-finder, .practice-card { padding: 25px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.panel-heading h2, .panel-heading h3 { margin: 2px 0 0; font-size: 1.35rem; letter-spacing: -.03em; }
.demo-badge, .step-count, .count-badge { display: inline-flex; min-height: 28px; padding: 4px 9px; align-items: center; color: var(--muted); background: #f0f4f4; border-radius: 9px; font-size: .72rem; font-weight: 800; }
.muted { color: var(--muted); font-size: .9rem; }
.exercise-form { display: grid; margin-top: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { color: var(--navy-2); font-size: .82rem; font-weight: 800; }
input, select { width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; color: var(--ink); background: #f8faf9; border: 1px solid #cfdadb; border-radius: 11px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.full-width { grid-column: 1 / -1; }
.inline-message { min-height: 1.4em; margin: 13px 0 0; color: var(--teal-dark); font-size: .9rem; font-weight: 700; }
.inline-message.is-error { color: var(--danger); }
.inline-message.is-success { color: var(--success); }

.task-prompt { display: flex; margin: 18px 0; padding: 15px; align-items: center; gap: 12px; background: #fff7e4; border-radius: 14px; }
.task-prompt p { margin: 0; }.task-prompt p span { color: var(--muted); font-size: .86rem; }
.task-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; color: #875708; background: var(--amber); border-radius: 12px; place-items: center; font-size: 1.25rem; font-weight: 900; }
.sentence-answer { display: flex; min-height: 68px; padding: 12px; align-items: center; gap: 7px; background: #f4f8f7; border: 2px dashed #bdd1d0; border-radius: 14px; flex-wrap: wrap; }
.sentence-answer .answer-placeholder { color: #809092; font-size: .9rem; }
.sentence-answer button, .word-bank button { min-height: 40px; padding: 7px 12px; border-radius: 10px; font-weight: 800; }
.sentence-answer button { color: white; background: var(--teal-dark); border: 0; }
.word-bank { display: flex; margin: 13px 0 17px; gap: 8px; flex-wrap: wrap; }
.word-bank button { background: white; border: 1px solid #c9d5d5; }
.word-bank button:disabled { opacity: .35; cursor: default; }
.practice-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.practice-actions .button-primary { margin-left: auto; }
.hint-box { min-height: 50px; margin: 16px 0 0; padding: 12px 14px; color: #66717e; background: #f7f4ef; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; font-size: .88rem; }
.hint-box.is-success { color: var(--success); background: #ebfaf3; border-color: var(--success); }
.hint-box.is-error { color: #844036; background: #fff0ec; border-color: var(--coral); }

.next-row { display: grid; margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card { display: flex; min-height: 126px; padding: 0; overflow: hidden; align-items: stretch; text-align: left; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(25,55,70,.05); }
.topic-card { color: inherit; text-decoration: none; }
.topic-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.image-topic img { width: 38%; object-fit: cover; }
.topic-card > span:last-child { display: flex; padding: 16px; justify-content: center; flex-direction: column; }
.topic-card small, .topic-card strong, .topic-card em { display: block; }
.topic-card small { color: var(--teal-dark); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.topic-card strong { margin: 4px 0; font-size: 1rem; }.topic-card em { color: var(--muted); font-size: .78rem; font-style: normal; }
.translator-topic { color: white; background: var(--navy); border-color: var(--navy); align-items: center; }
.translator-orb { display: grid !important; width: 70px; height: 70px; margin-left: 14px; padding: 0 !important; color: var(--navy); background: var(--amber); border-radius: 50%; place-items: center; font-weight: 900; line-height: .9; }
.translator-orb i { color: var(--teal-dark); font-style: normal; }.translator-topic small { color: #7fe2dd; }.translator-topic em { color: #b7c8d0; }

.section-intro { display: flex; margin: 22px 0 24px; align-items: end; justify-content: space-between; gap: 24px; }
.section-intro h2 { margin: 3px 0 7px; font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.05; letter-spacing: -.045em; }
.section-intro p:not(.eyebrow) { max-width: 700px; margin: 0; color: var(--muted); }
.intro-chip { padding: 10px 14px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 12px; font-weight: 850; white-space: nowrap; }

.rule-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.rule-list { display: grid; align-content: start; gap: 10px; }
.rule-tab { min-height: 76px; padding: 14px 16px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 15px; }
.rule-tab span, .rule-tab small { display: block; }.rule-tab span { font-weight: 850; }.rule-tab small { margin-top: 3px; color: var(--muted); }
.rule-tab.is-active { color: white; background: var(--teal-dark); border-color: var(--teal-dark); box-shadow: 0 10px 24px rgba(12,101,112,.18); }
.rule-tab.is-active small { color: #c7e8e6; }
.rule-explainer { padding: clamp(24px, 4vw, 44px); }
.rule-explainer > h3 { margin: 16px 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.rule-explainer > p { color: #536375; }
.rule-formula { display: flex; margin: 25px 0; padding: 18px; align-items: center; justify-content: center; gap: 12px; background: #f2f8f7; border-radius: 16px; flex-wrap: wrap; }
.rule-formula strong { padding: 7px 11px; color: white; background: var(--teal-dark); border-radius: 9px; }
.mini-check { padding: 20px; background: #fff8e8; border-radius: 16px; }.mini-check p { margin-top: 0; }.mini-check select { width: auto; min-width: 140px; margin: 0 5px; }

.word-workspace { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 22px; }
.word-visual { position: relative; overflow: hidden; min-height: 500px; }.word-visual img { width: 100%; height: 100%; object-fit: cover; }
.word-caption { position: absolute; inset: auto 17px 17px; padding: 16px; color: white; background: rgba(19,41,66,.9); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; backdrop-filter: blur(8px); }
.word-caption strong, .word-caption > span:last-child { display: block; }.word-caption strong { margin-top: 8px; font-size: 2rem; }.word-caption > span:last-child { color: #bfe7e5; }
.word-trainer { padding: 25px; }
.skill-steps { display: grid; padding: 0; margin: 0 0 25px; list-style: none; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.skill-steps li { position: relative; color: #8a979f; text-align: center; font-size: .66rem; font-weight: 800; }
.skill-steps li::before { position: absolute; z-index: 0; content: ""; height: 2px; top: 15px; left: -55%; right: 55%; background: #d9e2e2; }.skill-steps li:first-child::before { display: none; }
.skill-steps li span { position: relative; z-index: 1; display: grid; width: 31px; height: 31px; margin: 0 auto 5px; background: #edf1f1; border-radius: 50%; place-items: center; }
.skill-steps li.is-done span { color: white; background: var(--success); }.skill-steps li.is-current span { color: var(--navy); background: var(--amber); box-shadow: 0 0 0 4px #fff4d6; }.skill-steps li.is-done::before, .skill-steps li.is-current::before { background: var(--success); }
.listen-box { display: flex; padding: 18px; align-items: center; gap: 15px; background: var(--teal-soft); border-radius: 16px; }
.sound-button { display: grid; width: 58px; height: 58px; flex: 0 0 auto; color: white; background: var(--teal-dark); border: 0; border-radius: 50%; place-items: center; box-shadow: 0 7px 17px rgba(12,101,112,.22); }
.sound-button:hover { transform: scale(1.04); }.sound-button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-button.small { width: 43px; height: 43px; }.sound-button.small svg { width: 20px; height: 20px; }
.listen-box span, .listen-box strong, .listen-box small { display: block; }.listen-box span { color: var(--teal-dark); font-size: .75rem; font-weight: 850; text-transform: uppercase; }.listen-box strong { font-size: 1.15rem; }.listen-box small { color: var(--muted); }
.choice-grid { display: grid; margin: 18px 0; grid-template-columns: repeat(3, 1fr); gap: 9px; }.choice-grid button { min-height: 52px; background: white; border: 1px solid #cbd7d8; border-radius: 12px; font-weight: 800; }.choice-grid button.is-correct { color: var(--success); background: #eaf9f2; border-color: #64bc99; }.choice-grid button.is-wrong { color: var(--danger); background: #fff0ed; border-color: #e6a196; }
.word-writing { padding: 17px; background: #f6f7f5; border-radius: 15px; }.word-writing label { display: block; }.word-writing > div, .translator-input { display: flex; align-items: end; gap: 9px; }.word-writing input, .translator-input input { margin-top: 7px; }

.translator-dialog { width: min(620px, calc(100% - 24px)); padding: 30px; color: var(--ink); background: white; border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(9,34,48,.3); }.translator-dialog::backdrop { background: rgba(12,30,44,.72); backdrop-filter: blur(4px); }.translator-dialog h2 { margin: 13px 0 4px; font-size: 2rem; letter-spacing: -.04em; }.translator-dialog > p { color: var(--muted); }.dialog-close { position: absolute; top: 13px; right: 13px; width: 42px; height: 42px; background: #f0f3f2; border: 0; border-radius: 50%; font-size: 1.5rem; }.translation-result { display: grid; margin-top: 18px; padding: 18px; align-items: center; background: var(--teal-soft); border-radius: 16px; grid-template-columns: 1fr auto; }.translation-result > span { color: var(--teal-dark); font-size: .75rem; font-weight: 850; text-transform: uppercase; grid-column: 1; }.translation-result strong { font-size: 2rem; grid-column: 1; }.translation-result .sound-button { grid-column: 2; grid-row: 1 / 3; }.translation-result p { grid-column: 1 / -1; margin: 14px 0 0; color: #496469; }

.repeat-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; }.repeat-feature { display: grid; overflow: hidden; grid-template-columns: 42% 58%; }.repeat-feature img { width: 100%; height: 100%; object-fit: cover; }.repeat-feature > div { padding: 28px; }.repeat-feature h3 { margin: 14px 0 7px; font-size: 1.6rem; letter-spacing: -.035em; }.repeat-feature p { color: var(--muted); }.mini-progress { height: 9px; margin: 20px 0; overflow: hidden; background: #e7eeee; border-radius: 20px; }.mini-progress span { display: block; width: var(--progress); height: 100%; background: var(--teal); border-radius: inherit; }.repeat-stack { display: grid; gap: 12px; }.small-panel { display: flex; min-height: 92px; padding: 15px; align-items: center; gap: 13px; background: white; border: 1px solid var(--line); border-radius: 16px; }.repeat-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; place-items: center; font-weight: 900; }.repeat-icon.blue { color: #315b9c; background: #e3edff; }.repeat-icon.orange { color: #a54d2d; background: #ffeadf; }.repeat-icon.green { color: #147a64; background: #def7ed; }.repeat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }.small-panel div:nth-child(2) { flex: 1; }.small-panel strong, .small-panel p { display: block; margin: 0; }.small-panel p { color: var(--muted); font-size: .85rem; }

.progress-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 22px; }.skill-profile { padding: 26px; }.level-badge { padding: 7px 10px; color: var(--success); background: #e9f8f1; border-radius: 10px; font-size: .74rem; font-weight: 850; }.skill-row { display: grid; padding: 13px 0; align-items: center; border-bottom: 1px solid #edf1f0; grid-template-columns: 40px minmax(135px, 1fr) minmax(100px, 1.2fr) 25px; gap: 12px; }.skill-symbol { display: grid; width: 35px; height: 35px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 10px; place-items: center; font-weight: 900; }.skill-row strong, .skill-row small { display: block; }.skill-row small { color: var(--muted); }.level-track { height: 10px; overflow: hidden; background: #e8eeed; border-radius: 10px; }.level-track i { display: block; width: var(--level); height: 100%; background: linear-gradient(90deg, var(--amber), var(--coral)); border-radius: inherit; }.skill-row > b { color: var(--navy); font-size: 1.15rem; }.profile-note { margin: 20px 0 0; padding: 15px; color: #395262; background: #f0f7f6; border-radius: 13px; }.progress-side { display: grid; align-content: start; gap: 14px; grid-template-columns: repeat(2, 1fr); }.stat-card { min-height: 140px; padding: 20px; color: white; border-radius: 18px; }.stat-card.coral { background: var(--coral); }.stat-card.teal { background: var(--teal-dark); }.stat-card span, .stat-card strong, .stat-card small { display: block; }.stat-card span { font-size: .75rem; font-weight: 800; text-transform: uppercase; }.stat-card strong { font-size: 2.6rem; line-height: 1.1; }.stat-card small { opacity: .86; }.parent-note { padding: 20px; grid-column: 1 / -1; }.parent-note h3 { margin-top: 0; }.parent-note p { color: #526273; line-height: 1.8; }.parent-note small { color: var(--muted); }

.mobile-nav { display: none; }.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 16px; color: white; background: var(--navy); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  :root { --sidebar: 218px; }
  .sidebar { padding-inline: 12px; }.brand small { display: none; }
  .main-content { padding-inline: 24px; }
  .hero-card { grid-template-columns: 1.35fr .65fr; }.hero-art { width: 39%; opacity: .92; }
  .next-row { grid-template-columns: repeat(2, 1fr); }.translator-topic { grid-column: 1 / -1; }
  .progress-layout { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }.main-content { margin-left: 0; padding: 18px 16px 34px; }
  .topbar { margin-bottom: 18px; }.topbar .eyebrow { display: none; }.topbar h1 { font-size: 1.45rem; }
  .energy { padding: 6px 9px; }.energy small { display: none; }.avatar-button { width: 42px; height: 42px; }
  .hero-card { min-height: 390px; padding: 28px 24px; grid-template-columns: 1fr; }.hero-copy { z-index: 3; }.hero-copy h2 { max-width: 480px; font-size: 2.1rem; }.hero-copy p { max-width: 65%; font-size: .9rem; }.hero-art { right: -2%; width: 53%; height: 78%; }.floating-word { display: none; }
  .content-grid, .word-workspace, .repeat-grid { grid-template-columns: 1fr; }
  .word-visual { min-height: 390px; }.repeat-feature { grid-template-columns: 36% 64%; }
  .mobile-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); backdrop-filter: blur(14px); }
  .mobile-nav [data-view-target] { display: grid; min-height: 54px; padding: 4px 2px; color: #7b8894; text-decoration: none; background: transparent; border: 0; border-radius: 12px; place-items: center; }.mobile-nav [data-view-target].is-active { color: var(--teal-dark); background: var(--teal-soft); }.mobile-nav svg { width: 22px; height: 22px; }.mobile-nav span { font-size: .64rem; font-weight: 800; }
  .section-intro { align-items: start; flex-direction: column; }.rule-layout { grid-template-columns: 1fr; }.rule-list { grid-template-columns: repeat(3, 1fr); }.rule-tab { padding: 12px; }.rule-tab small { display: none; }
}

@media (max-width: 560px) {
  .hero-card { min-height: 440px; }.hero-copy p { max-width: 100%; padding-right: 17%; }.hero-art { right: -9%; width: 68%; height: 66%; opacity: .88; }
  .content-grid { gap: 16px; }.exercise-finder, .practice-card, .word-trainer, .skill-profile { padding: 19px; }.exercise-form { grid-template-columns: 1fr; }.full-width { grid-column: auto; }
  .next-row { grid-template-columns: 1fr; }.translator-topic { grid-column: auto; }
  .rule-list { display: flex; overflow-x: auto; padding-bottom: 5px; }.rule-tab { min-width: 135px; }
  .rule-formula { gap: 6px; }.rule-explainer { padding: 21px; }
  .skill-steps li { font-size: 0; }.skill-steps li span { font-size: .7rem; }
  .choice-grid { grid-template-columns: 1fr; }.word-writing > div, .translator-input { align-items: stretch; flex-direction: column; }.word-writing .button, .translator-input .button { width: 100%; }
  .repeat-feature { grid-template-columns: 1fr; }.repeat-feature img { height: 190px; }.repeat-feature > div { padding: 21px; }
  .progress-side { grid-template-columns: 1fr 1fr; }.stat-card { min-height: 125px; padding: 16px; }.skill-row { grid-template-columns: 35px 1fr 28px; }.skill-row .level-track { grid-column: 2 / 4; }.skill-row > b { grid-column: 3; grid-row: 1; }.skill-row small { font-size: .74rem; }
  .practice-actions .button { flex: 1 1 45%; }.practice-actions .button-primary { margin-left: 0; flex-basis: 100%; }
}

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