:root {
  --ink: #173c36;
  --ink-soft: #526b66;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --mint: #d7eee4;
  --sage: #9fc9b4;
  --coral: #ef795e;
  --coral-dark: #d95f47;
  --gold: #f3c867;
  --line: #dfe6df;
  --shadow: 0 18px 50px rgba(28, 66, 58, .1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.auth-locked { overflow: hidden; }
body.auth-locked .app-shell { display: none; }
.auth-screen { min-height: 100vh; display: none; grid-template-columns: 1.08fr .92fr; background: var(--cream); }
.auth-screen.open { display: grid; }
.auth-showcase { display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: clamp(45px, 7vw, 105px); background: radial-gradient(circle at 45% 35%, #416b63, var(--ink) 58%); color: white; }
.auth-showcase::after { content: ""; position: absolute; width: 380px; height: 380px; right: -130px; bottom: -150px; border: 70px solid rgba(243, 200, 103, .12); border-radius: 50%; }
.auth-showcase img { width: 112px; height: 112px; margin-bottom: 32px; border: 2px solid rgba(255,255,255,.3); border-radius: 27px; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.auth-showcase .eyebrow { color: var(--gold); }.auth-showcase h1 { max-width: 650px; font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -2.6px; }
.auth-showcase > p:not(.eyebrow) { max-width: 580px; margin: 20px 0 30px; color: #c8d8d4; line-height: 1.7; }
.auth-features { display: flex; flex-wrap: wrap; gap: 9px; }.auth-features span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 700; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(470px, calc(100% - 40px)); margin: auto; padding: 35px 0; }
.auth-brand { margin-bottom: 28px; font: 800 19px "Manrope"; }.auth-brand span { color: var(--coral-dark); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #e7e9e3; }
.auth-tabs button { padding: 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: #6e807b; font-size: 11px; font-weight: 800; }.auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 4px 12px rgba(25,58,51,.08); }
.auth-form { display: none; gap: 16px; margin-top: 28px; }.auth-form.active { display: grid; }.auth-form h2 { font-size: 29px; }.auth-form div > p:last-child { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.auth-form label { display: grid; gap: 6px; color: #536b65; font-size: 10px; font-weight: 800; }.auth-form input { width: 100%; padding: 13px 14px; border: 1px solid #d5ddd7; border-radius: 10px; outline: none; background: white; color: var(--ink); }.auth-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,121,94,.1); }
.auth-submit, .andrew-login { padding: 13px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; }.auth-submit { background: var(--coral); color: white; }.andrew-login { border: 1px solid var(--line); background: white; color: var(--ink); }
.auth-error { min-height: 14px; margin: -5px 0; color: #c54e3a; font-size: 10px; font-weight: 700; }.auth-note { margin-top: 20px; color: #879590; line-height: 1.5; text-align: center; font-size: 9px; }
.auth-install-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid #efce78; border-radius: 14px; background: #fff8df; }.auth-install-card img { width: 46px; height: 46px; border-radius: 11px; }.auth-install-card strong, .auth-install-card span { display: block; }.auth-install-card strong { font-size: 12px; }.auth-install-card span { margin-top: 3px; color: #776b4d; font-size: 9px; line-height: 1.4; }.auth-install-card button { padding: 10px 13px; border: 0; border-radius: 9px; background: var(--ink); color: white; cursor: pointer; font-size: 10px; font-weight: 800; }.auth-install-card button:disabled { background: #5e967f; cursor: default; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20;
  width: 244px; display: flex; flex-direction: column;
  padding: 28px 20px 22px; background: var(--ink); color: white;
}
.brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font: 800 19px "Manrope"; }
.brand > span:last-child span, .mobile-brand span { color: var(--gold); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--gold); }
.brand-mark svg { width: 29px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { margin-top: 42px; display: grid; gap: 7px; }
.nav-item {
  width: 100%; display: grid; grid-template-columns: 27px 1fr auto; align-items: center;
  min-height: 48px; padding: 0 13px; border: 0; border-radius: 12px;
  background: transparent; color: #c3d3cf; text-align: left; cursor: pointer; font-weight: 600;
}
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item.active { box-shadow: inset 3px 0 var(--gold); }
.nav-icon { font-size: 19px; text-align: center; }
.nav-badge { min-width: 22px; padding: 3px 7px; border-radius: 20px; background: var(--coral); color: white; font-size: 11px; text-align: center; }
.sidebar-card { margin-top: auto; padding: 18px; border-radius: 17px; background: #214b44; }
.sidebar-card-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 10px; color: var(--ink); background: var(--gold); }
.sidebar-card strong { display: block; font-size: 14px; }
.sidebar-card p { margin: 6px 0 13px; color: #bdd0cb; font-size: 12px; line-height: 1.45; }
.sidebar-card button { padding: 8px 12px; border: 1px solid #5e7c76; border-radius: 8px; background: transparent; color: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.profile { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; margin-top: 23px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.13); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border: 2px solid #b9d8ca; border-radius: 50%; background: #26302f; color: var(--ink); font-weight: 800; font-size: 12px; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile strong, .profile span { display: block; }
.profile strong { font-size: 12px; }.profile span { margin-top: 2px; color: #9fb5b0; font-size: 10px; }
.profile button { border: 0; background: none; color: #9fb5b0; cursor: pointer; }
.profile-menu { position: absolute; z-index: 40; left: 0; right: 0; bottom: 54px; display: none; padding: 7px; border: 1px solid #dce4df; border-radius: 13px; background: var(--paper); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.profile-menu.open { display: grid; }
.profile-menu button { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; width: 100%; padding: 9px 8px; border-radius: 8px; color: var(--ink); text-align: left; font-size: 11px; font-weight: 700; }
.profile-menu button b { font: inherit; }
.profile-menu button:hover { background: #edf3ef; }
.profile-menu button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #e1eee8; color: #477b69; font-size: 9px; }
.profile-menu button .menu-profile-image { overflow: hidden; padding: 0; background: #26302f; }
.menu-profile-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-menu button.danger { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: #bd5440; }
.profile-menu button.danger span { background: #fde5df; color: #bd5440; }
main { grid-column: 2; min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: flex-end; padding: 0 4.5%; background: var(--paper); border-bottom: 1px solid #e9e7df; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.install-app-button { height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #efce78; border-radius: 10px; background: #fff8df; color: #765718; cursor: pointer; font-size: 10px; font-weight: 800; }.install-app-button:hover { border-color: #d3a63b; background: #fff2c9; }.install-app-button.installed { border-color: #cfe3d8; background: #edf6f1; color: #326b58; cursor: default; }
.language-select, .icon-button, .streak-pill, .points-pill {
  height: 39px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: white;
}
.language-select { padding: 0 12px; cursor: pointer; font-size: 12px; font-weight: 700; }
.flag { width: 24px; height: 19px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: linear-gradient(135deg, #2447a4 50%, #cf3e3e 50%); font-size: 7px; }
.icon-button { position: relative; width: 39px; justify-content: center; cursor: pointer; }
.notification-dot { position: absolute; width: 6px; height: 6px; right: 8px; top: 7px; border-radius: 50%; background: var(--coral); }
.base-language-toggle { width: 48px; gap: 0; border-color: #cfdcd5; background: #f9fcfa; }
.base-language-toggle strong { font: 800 11px "Manrope"; letter-spacing: .5px; }
.language-toggle-dot { position: absolute; width: 7px; height: 7px; right: 7px; top: 6px; border-radius: 50%; background: var(--coral); }
.base-language-toggle:hover { border-color: var(--coral); background: #fff7f4; }
.streak-pill { padding: 0 13px; background: #fff8e5; border-color: #f3dfae; color: #805b16; font-size: 11px; cursor: pointer; }
.streak-pill > span { color: var(--coral); }.streak-pill strong { font-size: 14px; }
.streak-pill b { font: inherit; }.streak-pill:hover { border-color: #d9b255; background: #fff3d1; }
.points-pill { padding: 0 13px; cursor: pointer; background: #edf6f1; border-color: #cfe3d8; color: #326b58; font-size: 11px; }
.points-pill span { color: #d79b25; font-size: 15px; }.points-pill strong { font-size: 14px; }
.mobile-menu, .mobile-brand { display: none; }
.page { width: min(1180px, 91%); margin: 0 auto; padding: 42px 0 60px; }
.home-install-banner { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid #efce78; border-radius: 16px; background: linear-gradient(100deg, #fff8df, #edf6f1); box-shadow: 0 8px 28px rgba(91,72,23,.06); }.home-install-banner[hidden] { display: none; }.home-install-banner img { width: 52px; height: 52px; border-radius: 13px; }.home-install-banner .eyebrow { margin-bottom: 3px; color: #a06b15; }.home-install-banner strong, .home-install-banner small { display: block; }.home-install-banner strong { font: 800 15px "Manrope"; }.home-install-banner small { margin-top: 3px; color: #637872; font-size: 10px; }.home-install-banner button { padding: 11px 16px; border: 0; border-radius: 10px; background: var(--coral); color: white; cursor: pointer; font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(239,121,94,.2); }.home-install-banner button:disabled { background: #5e967f; box-shadow: none; cursor: default; }
.view { display: none; animation: fade .28s ease; }.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: #70837e; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.eyebrow.coral { color: var(--coral-dark); }
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; }
.welcome-row h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; }
.welcome-row > div > p:last-child, .simple-header > p:last-child, .lesson-header > div > p:last-child { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }
.daily-goal { display: flex; align-items: center; gap: 12px; }
.daily-goal strong, .daily-goal span { display: block; }.daily-goal strong { font-size: 13px; }.daily-goal span { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
.goal-ring {
  --p: calc(var(--progress) * 1%);
  width: 58px; height: 58px; display: grid; place-items: center; position: relative; border-radius: 50%;
  background: conic-gradient(var(--coral) var(--p), #e0e5de 0);
}
.goal-ring::before { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); }
.goal-ring span { position: relative; margin: 0; color: var(--ink); font-size: 10px; }.goal-ring strong { display: inline; font-size: 17px; }
.lesson-hero {
  min-height: 344px; position: relative; display: grid; grid-template-columns: 53% 47%;
  overflow: hidden; border-radius: 27px; background: var(--mint); box-shadow: var(--shadow);
}
.hero-copy { z-index: 2; padding: 43px 0 40px 48px; }
.lesson-meta { display: flex; align-items: center; gap: 9px; color: #617b74; font-size: 10px; font-weight: 700; }
.pill { display: inline-block; padding: 6px 9px; border-radius: 7px; background: var(--ink); color: white; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.hero-copy h2 { max-width: 520px; margin-top: 18px; font-size: clamp(35px, 4.7vw, 58px); line-height: 1.02; letter-spacing: -2px; }
.hero-copy > p { max-width: 530px; margin: 15px 0 23px; color: #4d6a63; line-height: 1.55; font-size: 13px; }
.hero-actions { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.primary-button, .secondary-button {
  border: 0; border-radius: 11px; cursor: pointer; font-weight: 800; transition: transform .2s, box-shadow .2s;
}
.primary-button { padding: 13px 18px; background: var(--coral); color: white; box-shadow: 0 9px 20px rgba(229, 103, 76, .22); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button span { margin-right: 7px; font-size: 10px; }
.audio-preview { border: 0; background: none; cursor: pointer; color: #41625a; font-size: 11px; font-weight: 800; }
.sound-bars { margin-right: 7px; color: var(--coral); letter-spacing: -2px; }
.hero-art { position: relative; min-height: 344px; }
.sun { position: absolute; width: 78px; height: 78px; right: 52px; top: 40px; border-radius: 50%; background: var(--gold); opacity: .75; }
.store { position: absolute; width: 255px; height: 210px; right: 58px; bottom: 0; background: #f4dca2; border: 4px solid var(--ink); border-bottom: 0; }
.store-awning { position: absolute; z-index: 2; right: 44px; bottom: 191px; display: flex; }
.store-awning i { width: 56px; height: 39px; background: var(--coral); border: 3px solid var(--ink); border-radius: 0 0 20px 20px; }
.store-awning i:nth-child(even) { background: var(--paper); }
.store-sign { width: 142px; margin: 28px auto 10px; padding: 5px; text-align: center; border: 2px solid var(--ink); background: var(--paper); font: 800 12px "Manrope"; letter-spacing: 1.4px; }
.window { position: absolute; left: 18px; bottom: 21px; width: 145px; height: 102px; border: 4px solid var(--ink); background: #9fcfc1; }
.window::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid var(--ink); }
.jar { position: absolute; bottom: 7px; width: 25px; border: 2px solid var(--ink); background: var(--gold); }.jar::before { content: ""; position: absolute; left: -2px; right: -2px; top: -7px; height: 6px; border: 2px solid var(--ink); background: var(--coral); }
.jar.one { left: 10px; height: 34px; }.jar.two { left: 56px; height: 42px; background: #f9f1d8; }.jar.three { left: 102px; height: 30px; background: var(--coral); }
.door { position: absolute; right: 14px; bottom: 0; width: 61px; height: 118px; border: 4px solid var(--ink); border-bottom: 0; background: #6aa695; }.door::after { content: ""; position: absolute; right: 8px; top: 56px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.counter { position: absolute; left: -18px; bottom: 0; width: 190px; height: 30px; border: 4px solid var(--ink); background: #e9b85f; }
.person { position: absolute; z-index: 4; right: 285px; bottom: 0; width: 78px; height: 170px; }
.person .head { position: absolute; width: 45px; height: 50px; left: 17px; top: 2px; border: 4px solid var(--ink); border-radius: 50% 50% 45% 45%; background: #d99265; }
.person .head::before { content: ""; position: absolute; left: -4px; right: -4px; top: -4px; height: 21px; border-radius: 50% 50% 20% 20%; background: var(--ink); }
.person .body { position: absolute; width: 72px; height: 122px; bottom: -14px; border: 4px solid var(--ink); border-radius: 30px 30px 0 0; background: #397f74; }
.person .arm { position: absolute; z-index: -1; width: 70px; height: 24px; right: -44px; top: 73px; border: 4px solid var(--ink); border-radius: 20px; background: #d99265; transform: rotate(-9deg); }
.speech-bubble { position: absolute; z-index: 5; right: 252px; top: 47px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 18px 18px 18px 4px; background: white; font: 800 12px "Manrope"; transform: rotate(-2deg); }
.plant { position: absolute; right: 12px; bottom: -10px; color: #3c7c5e; font-size: 86px; transform: rotate(-20deg); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; margin-top: 22px; }
.panel { padding: 25px 27px; border: 1px solid #e4e7e0; border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 28px rgba(27, 64, 56, .05); }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel h3, .quick-phrases h3 { font-size: 19px; }
.text-button { border: 0; background: none; color: #55716a; cursor: pointer; font-size: 11px; font-weight: 800; }
.week-chart { height: 124px; display: grid; grid-template-columns: 25px 1fr; margin-top: 14px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 20px; color: #9aaaa5; font-size: 9px; }
.bars { display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, transparent 49%, #edf0eb 50%, transparent 51%); }
.bar-wrap { width: 10%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; color: #889a95; font-size: 9px; }
.bar { width: 100%; max-width: 27px; min-height: 4px; border-radius: 7px 7px 2px 2px; background: #b9d7c9; transition: height .5s; }.bar.today { background: var(--coral); }
.progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.progress-stats > div { display: flex; align-items: center; gap: 10px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; font-weight: 800; }
.stat-icon.learned { background: #e2f0e9; color: #397963; }.stat-icon.accuracy { background: #fff0db; color: #bd7d2a; }.stat-icon.minutes { background: #fde6df; color: var(--coral-dark); }
.progress-stats p { margin: 0; }.progress-stats strong, .progress-stats span { display: block; }.progress-stats strong { font: 800 16px "Manrope"; }.progress-stats p span { color: #83928e; font-size: 9px; }
.review-panel { position: relative; }
.review-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fce1d9; color: var(--coral); font-size: 23px; }
.review-panel > p { max-width: 390px; margin: 14px 0; color: var(--ink-soft); line-height: 1.55; font-size: 12px; }
.review-preview { display: flex; margin: 17px 0 19px; }
.review-preview span { margin-right: -5px; padding: 7px 11px; border: 2px solid var(--paper); border-radius: 20px; background: #dbece4; font-size: 9px; font-weight: 700; }
.review-preview span:nth-child(2) { background: #fae2b6; }.review-preview span:nth-child(3) { background: #f6d6cd; }.review-preview span:last-child { background: var(--ink); color: white; }
.secondary-button { display: flex; justify-content: space-between; width: 100%; padding: 12px 15px; background: var(--ink); color: white; font-size: 11px; }
.review-panel small { display: block; margin-top: 8px; color: #94a29f; text-align: center; font-size: 9px; }
.daily-reward-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 22px; padding: 22px 25px; border: 1px solid #edd8a3; border-radius: 20px; background: linear-gradient(110deg, #fff8df, #fffdf7 58%, #e8f3ed); box-shadow: 0 8px 28px rgba(91, 72, 23, .06); }
.reward-medal { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--gold); color: #805b16; box-shadow: inset 0 -5px 0 rgba(129, 90, 21, .12); font-size: 28px; }
.reward-copy h3 { font-size: 18px; }.reward-copy > p:not(.eyebrow) { margin: 4px 0 11px; color: var(--ink-soft); font-size: 10px; }
.reward-progress, .level-progress { height: 8px; overflow: hidden; border-radius: 10px; background: #e7e4d8; }
.reward-progress i, .level-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .35s ease; }
.reward-copy small { display: block; margin-top: 5px; color: #7a8985; font-size: 9px; }
.reward-action { min-width: 125px; text-align: center; }.reward-action span { display: block; margin-bottom: 8px; color: #7b8b86; font-size: 9px; font-weight: 800; }
.reward-action button { width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: var(--ink); color: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.reward-action button:disabled { background: #ccd4cf; cursor: not-allowed; }.reward-action button.claimed { background: #559078; }
.quick-phrases { margin-top: 34px; }.quick-phrases .section-heading { margin-bottom: 14px; }
.phrase-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.phrase-card { padding: 17px 18px; border: 1px solid #e1e5df; border-radius: 16px; background: var(--paper); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.phrase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.phrase-card header { display: flex; justify-content: space-between; align-items: center; }
.phrase-card small { color: var(--coral-dark); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.phrase-card button, .round-audio { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #e4f0ea; color: var(--ink); cursor: pointer; font-size: 9px; }
.phrase-card strong { display: block; margin: 11px 0 5px; font: 700 14px "Manrope"; }.phrase-card p { margin: 3px 0; color: #607972; font-size: 11px; }
.lesson-header { display: grid; grid-template-columns: 130px 1fr auto; align-items: end; gap: 20px; margin-bottom: 28px; }
.lesson-header h1, .simple-header h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1.4px; }
.back-button { align-self: start; border: 0; background: none; cursor: pointer; color: #58726c; font-size: 11px; font-weight: 800; }
.lesson-progress { min-width: 170px; font-size: 10px; font-weight: 700; }.lesson-progress > div { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 10px; background: #dce3dc; }.lesson-progress i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--coral); transition: width .3s; }
.lesson-layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; }
.word-list { display: grid; gap: 8px; align-self: start; }
.word-item { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #e2e6df; border-radius: 13px; background: var(--paper); cursor: pointer; text-align: left; }
.word-item.active { border-color: var(--coral); box-shadow: 0 6px 18px rgba(238, 121, 94, .12); }.word-item.learned .word-number { background: #d6ede2; color: #37745f; }
.word-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #edf0eb; font-size: 10px; font-weight: 800; }
.word-item strong, .word-item small { display: block; }.word-item strong { font-size: 12px; }.word-item small { margin-top: 2px; color: #7a8d88; font-size: 9px; }.word-state { color: #76918a; font-size: 11px; }
.study-card { min-height: 600px; padding: 38px 42px; border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); }
.study-top { display: flex; justify-content: space-between; align-items: flex-start; }
.word-category { color: var(--coral-dark); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.study-card h2 { margin: 9px 0 3px; font-size: clamp(38px, 6vw, 64px); letter-spacing: -2.5px; }.phonetic { color: #738982; font-size: 12px; }
.audio-controls { display: flex; gap: 8px; }.audio-controls button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.translations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 23px; }
.translation-box { padding: 17px; border-radius: 15px; background: #edf5f0; }.translation-box:nth-child(2) { background: #fff3dc; }
.translation-box small, .translation-box strong { display: block; }.translation-box small { color: #748982; font-size: 9px; font-weight: 800; letter-spacing: 1px; }.translation-box strong { margin-top: 6px; font: 700 20px "Manrope"; }
.example-block { padding: 22px; border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; background: #faf6ec; }
.example-block > small, .phrases-block > small { font-size: 9px; font-weight: 800; letter-spacing: 1px; }.example-row { display: grid; grid-template-columns: 73px 1fr auto; gap: 10px; align-items: center; margin-top: 13px; font-size: 12px; }.example-row span { color: #788c86; font-size: 9px; font-weight: 700; text-transform: uppercase; }.example-row button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: color .2s, background .2s, transform .2s; }.example-row button:hover { background: #e4f0ea; transform: scale(1.08); }.example-row button:focus-visible { outline: 3px solid rgba(239,121,94,.25); outline-offset: 2px; }.example-row button.speaking { background: var(--coral); color: white; animation: audioPulse 1s ease-in-out infinite; }
@keyframes audioPulse { 50% { box-shadow: 0 0 0 7px rgba(239,121,94,.15); } }
.phrases-block { margin-top: 24px; }.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }.chip { padding: 8px 12px; border: 0; border-radius: 18px; background: #e4f0ea; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; transition: transform .2s, background .2s; }.chip:hover { transform: translateY(-2px); background: #cfe6dc; }.chip::after { content: " ›"; color: var(--coral-dark); }
.study-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }.learn-button { padding: 12px 18px; border: 0; border-radius: 10px; background: var(--ink); color: white; cursor: pointer; font-weight: 800; }.learn-button.learned { background: #4f8a74; }.next-button { border: 0; background: none; cursor: pointer; color: var(--coral-dark); font-weight: 800; }
.bonus-study { margin-top: 28px; overflow: hidden; border: 1px solid #dfdfd4; border-radius: 24px; background: var(--paper); box-shadow: 0 8px 28px rgba(27, 64, 56, .05); }
.bonus-intro { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 30px 34px; background: linear-gradient(120deg, #fff7dc, #e5f2eb); }
.bonus-intro h2 { font-size: clamp(23px, 3vw, 31px); }
.bonus-intro > div:first-child > p:last-child { max-width: 670px; margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.bonus-summary { min-width: 185px; text-align: center; }
.bonus-summary strong, .bonus-summary small { display: block; }
.bonus-summary strong { font: 800 25px "Manrope"; }.bonus-summary small { margin: 2px 0 13px; color: #71847e; font-size: 9px; }
.bonus-summary .primary-button { width: 100%; }
.bonus-content { display: none; grid-template-columns: 260px 1fr; gap: 20px; padding: 24px; }
.bonus-content.open { display: grid; }
.bonus-word-list { display: grid; align-content: start; gap: 8px; }
.bonus-word-item { width: 100%; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; text-align: left; }
.bonus-word-item.active { border-color: var(--gold); box-shadow: 0 5px 15px rgba(194, 144, 40, .13); }
.bonus-word-item.learned .word-number { background: #d6ede2; color: #37745f; }
.bonus-word-item strong, .bonus-word-item small { display: block; }.bonus-word-item strong { font-size: 11px; }.bonus-word-item small { margin-top: 2px; color: #7a8d88; font-size: 8px; }
.bonus-card { min-height: 560px; box-shadow: none; border: 1px solid var(--line); background: #fffefa; }
.simple-header { max-width: 700px; margin-bottom: 31px; }
.review-schedule { display: grid; grid-template-columns: 130px 1fr 130px 1fr 130px 1fr 130px; align-items: center; margin-bottom: 35px; }
.schedule-step { padding: 4px; border: 0; border-radius: 14px; background: transparent; color: #81918d; text-align: center; cursor: pointer; transition: color .2s, background .2s, transform .2s; }.schedule-step:hover { color: var(--ink); background: rgba(255,255,255,.5); transform: translateY(-2px); }.schedule-step:focus-visible { outline: 3px solid rgba(239,121,94,.25); outline-offset: 3px; }.schedule-step > span { width: 43px; height: 43px; display: grid; place-items: center; margin: 0 auto 8px; border: 2px solid #ced7d1; border-radius: 50%; background: var(--paper); font-weight: 800; }.schedule-step strong, .schedule-step small { display: block; }.schedule-step strong { font-size: 11px; }.schedule-step small { min-height: 12px; margin-top: 3px; font-size: 9px; }.schedule-step.done > span { border-color: #5e967f; background: #5e967f; color: white; }.schedule-step.active { color: var(--coral-dark); background: rgba(255,255,255,.55); }.schedule-step.active > span { border-color: var(--coral); background: #fde5df; }.schedule-line { height: 2px; background: #dbe2dc; transition: background .2s; }.schedule-line.active { background: #72a18e; }
.review-deck { min-height: 370px; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 45px 45px 84px; border-radius: 25px; background: var(--ink); color: white; }.review-deck .pill { background: var(--gold); color: var(--ink); }.prompt-label { margin: 27px 0 2px; color: #a9c1ba; font-size: 12px; }.review-deck h2 { display: inline-block; margin-right: 12px; font-size: 52px; }.round-audio { vertical-align: middle; background: var(--gold); }.answer-grid { display: grid; gap: 10px; }.answer-grid button { padding: 16px 18px; border: 1px solid #55716a; border-radius: 12px; background: #214a43; color: white; cursor: pointer; text-align: left; }.answer-grid button:hover { border-color: var(--gold); }.answer-grid button.correct { border-color: #7ec7a6; background: #326d5c; }.answer-grid button.wrong { border-color: var(--coral); background: #6d4038; }
.review-deck-nav { position: absolute; right: 30px; bottom: 24px; left: 30px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }.review-deck-nav button { min-width: 112px; padding: 10px 14px; border: 1px solid #66847d; border-radius: 10px; background: #214a43; color: white; cursor: pointer; font-size: 10px; font-weight: 800; pointer-events: auto; transition: border-color .2s, background .2s, transform .2s, opacity .2s; }.review-deck-nav button:hover:not(:disabled) { border-color: var(--gold); background: #2b5a51; transform: translateY(-2px); }.review-deck-nav button:focus-visible, .round-audio:focus-visible { outline: 3px solid rgba(243,200,103,.45); outline-offset: 3px; }.review-deck-nav button:disabled { opacity: .35; cursor: not-allowed; }
.review-empty { padding: 24px; border: 1px solid #55716a; border-radius: 16px; background: #214a43; }.review-empty strong { display: block; font: 700 19px "Manrope"; }.review-empty p { margin: 9px 0 20px; color: #c3d5d0; line-height: 1.55; font-size: 12px; }.review-empty .primary-button { width: auto; color: white; text-align: center; }
.phrase-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }.phrase-filters button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); cursor: pointer; font-size: 10px; font-weight: 700; }.phrase-filters button.active { border-color: var(--ink); background: var(--ink); color: white; }
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.library-card { display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 23px; border: 1px solid #e1e5df; border-radius: 18px; background: var(--paper); }.library-card .category { color: var(--coral-dark); font-size: 8px; font-weight: 800; letter-spacing: 1px; }.library-card h3 { margin: 8px 0 12px; font-size: 17px; }.language-line { display: grid; grid-template-columns: 58px 1fr; margin-top: 5px; color: #567069; font-size: 11px; }.language-line span { color: #93a19e; font-size: 9px; font-weight: 700; text-transform: uppercase; }.library-card button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e1eee8; cursor: pointer; }
.game-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.game-mode-card { display: grid; justify-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s; }
.game-mode-card:hover, .game-mode-card.active { transform: translateY(-3px); border-color: var(--coral); box-shadow: var(--shadow); }
.game-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; background: #e1eee8; color: #397963; font: 800 17px "Manrope"; }
.game-icon.blank { background: #fff0d0; color: #a87723; }.game-icon.match { background: #fde4dd; color: var(--coral-dark); }
.game-mode-card strong { font: 800 15px "Manrope"; }.game-mode-card small { margin-top: 6px; color: #72847f; line-height: 1.4; }.game-mode-card em { margin-top: 16px; color: var(--coral-dark); font-size: 9px; font-style: normal; font-weight: 800; }
.game-stage { min-height: 390px; padding: 34px; border-radius: 23px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.game-welcome { display: grid; place-items: center; min-height: 320px; text-align: center; }.game-welcome > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--gold); color: var(--ink); font-size: 28px; }.game-welcome h2 { margin: 17px 0 5px; }.game-welcome p { margin: 0; color: #afc4be; font-size: 12px; }
.game-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #42635d; }.game-header h2 { font-size: 22px; }.game-header p { margin: 4px 0 0; color: #a9c0ba; font-size: 10px; }.game-score { padding: 8px 12px; border-radius: 9px; background: #254e46; color: var(--gold); font-size: 10px; font-weight: 800; }
.game-question { max-width: 740px; margin: 35px auto 0; text-align: center; }.game-question .eyebrow { color: var(--gold); }.game-question h3 { margin: 9px 0 23px; color: white; font-size: clamp(25px, 4vw, 36px); }.game-question h3 span { color: var(--gold); }
.game-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.game-options button { min-height: 55px; padding: 13px 16px; border: 1px solid #52716b; border-radius: 12px; background: #214a43; color: white; cursor: pointer; font-weight: 700; }.game-options button:hover { border-color: var(--gold); }.game-options button.correct { border-color: #81cba9; background: #34715f; }.game-options button.wrong { border-color: var(--coral); background: #6d4038; }.game-options button:disabled { cursor: default; }
.game-feedback { min-height: 35px; margin-top: 16px; color: #b8cdc7; font-size: 11px; font-weight: 700; }.game-feedback.correct { color: #8ed7b7; }.game-feedback.wrong { color: #ffac98; }
.game-next { display: none; margin: 8px auto 0; padding: 11px 18px; border: 0; border-radius: 10px; background: var(--gold); color: var(--ink); cursor: pointer; font-weight: 800; }.game-next.show { display: block; }
.game-result { display: grid; place-items: center; min-height: 315px; text-align: center; }.game-result .result-ring { width: 100px; height: 100px; display: grid; place-items: center; border: 8px solid var(--gold); border-radius: 50%; font: 800 30px "Manrope"; }.game-result h2 { margin: 20px 0 5px; }.game-result p { margin: 0; color: #b4c8c2; font-size: 11px; }.game-result .primary-button { margin-top: 20px; }.game-result small { margin-top: 10px; color: var(--gold); font-weight: 700; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }.stat-cards > div { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }.stat-cards span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #e1eee8; color: #427963; }.stat-cards div:nth-child(2) span { background: #fff0d0; color: #a87723; }.stat-cards div:nth-child(3) span { background: #fde4dd; color: var(--coral-dark); }.stat-cards strong, .stat-cards small { display: block; }.stat-cards strong { margin-top: 18px; font: 800 23px "Manrope"; }.stat-cards small { margin-top: 3px; color: #7c8e89; font-size: 10px; }
.rewards-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 20px; }
.level-card, .reward-history { display: flex; align-items: center; gap: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.level-card > div:last-child { flex: 1; }.level-card h3 { margin-bottom: 11px; font-size: 18px; }
.level-badge { width: 60px; height: 60px; display: grid; place-items: center; flex: none; border: 5px solid #f0c663; border-radius: 50%; background: var(--ink); color: white; font: 800 22px "Manrope"; }
.level-card small { display: block; margin-top: 7px; color: #7f918c; font-size: 9px; }
.reward-history > span { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; background: #fff0c9; color: #bd8321; font-size: 23px; }
.reward-history > div { flex: 1; }.reward-history strong, .reward-history small { display: block; }.reward-history strong { font: 800 14px "Manrope"; }.reward-history small { margin-top: 3px; color: #84948f; font-size: 9px; }
.trend { padding: 7px 10px; border-radius: 8px; background: #e2f0e9; color: #3d8067; font-size: 10px; font-weight: 800; }.activity-bars { height: 230px; display: flex; align-items: end; justify-content: space-around; gap: 10px; padding-top: 25px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, #edf0eb 0 1px, transparent 1px 55px); }.activity-column { flex: 1; max-width: 70px; position: relative; border-radius: 10px 10px 0 0; background: linear-gradient(#ef795e, #f3a18d); }.activity-column span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: #83928e; font-size: 9px; white-space: nowrap; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; padding: 11px 17px; border-radius: 10px; background: var(--ink); color: white; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .25s; box-shadow: var(--shadow); font-size: 12px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.points-feedback { position: fixed; z-index: 110; right: 28px; top: 91px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid #efce78; border-radius: 12px; background: #fff8df; color: #6f5118; opacity: 0; transform: translateY(-12px) scale(.96); pointer-events: none; transition: .25s; box-shadow: 0 15px 35px rgba(91, 72, 23, .18); }
.points-feedback.show { opacity: 1; transform: none; }.points-feedback strong { color: var(--coral-dark); font: 800 18px "Manrope"; }.points-feedback span { font-size: 10px; font-weight: 700; }
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(18, 48, 43, .62); backdrop-filter: blur(5px); }.modal-backdrop.open { display: grid; }.quiz-modal { width: min(500px, 100%); position: relative; padding: 34px; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.2); }.modal-close { position: absolute; right: 17px; top: 14px; border: 0; background: none; cursor: pointer; font-size: 24px; }.quiz-modal h2 { font-size: 30px; }.quiz-question { margin: 24px 0 16px; color: var(--ink-soft); }.quiz-options { display: grid; gap: 9px; }.quiz-options button { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; text-align: left; font-weight: 700; }.quiz-options button:hover { border-color: var(--coral); }.quiz-result { padding: 28px 0 8px; text-align: center; }.quiz-result strong { display: block; font: 800 42px "Manrope"; }.quiz-result button { margin-top: 20px; }
.phrase-practice-modal { width: min(590px, 100%); position: relative; overflow: hidden; border-radius: 25px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.phrase-practice-head { padding: 30px 34px 25px; background: var(--mint); }
.phrase-practice-count { display: flex; align-items: center; justify-content: space-between; padding-right: 28px; color: #657c76; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.phrase-practice-modal h2 { max-width: 470px; margin: 18px 0 8px; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; letter-spacing: -1.2px; }
.phrase-practice-body { display: grid; gap: 12px; padding: 27px 34px 32px; }
.practice-translation { padding: 17px 19px; border-radius: 14px; background: #edf5f0; }
.practice-translation:nth-child(2) { background: #fff3dc; }
.practice-translation small, .practice-translation strong { display: block; }
.practice-translation small { margin-bottom: 6px; color: #748982; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.practice-translation strong { font: 700 18px "Manrope"; }
.practice-audio { width: 100%; padding: 13px 18px; border: 0; border-radius: 11px; background: var(--coral); color: white; cursor: pointer; font-weight: 800; }
.phrase-practice-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.phrase-practice-nav button { padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; font-weight: 800; }
.phrase-practice-nav button:last-child { border-color: var(--ink); background: var(--ink); color: white; }
.phrase-practice-nav button:disabled { opacity: .4; cursor: not-allowed; }
.settings-modal { width: min(540px, 100%); position: relative; padding: 34px; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.settings-modal h2 { font-size: 31px; }
.settings-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-section > strong { font: 800 15px "Manrope"; }
.settings-section > p { margin: 5px 0 13px; color: var(--ink-soft); font-size: 11px; }
.setting-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.setting-options.two-options { grid-template-columns: repeat(2, 1fr); }
.setting-options button { padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.setting-options button.active { border-color: var(--ink); background: var(--ink); color: white; }
.sound-setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; cursor: pointer; }
.sound-setting span strong, .sound-setting span small { display: block; }
.sound-setting span strong { font-size: 12px; }.sound-setting span small { margin-top: 3px; color: #83938e; font-size: 9px; }
.sound-setting input { position: absolute; opacity: 0; pointer-events: none; }
.sound-setting i { width: 42px; height: 24px; position: relative; flex: none; border-radius: 20px; background: #ccd6d0; transition: .2s; }
.sound-setting i::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.sound-setting input:checked + i { background: var(--coral); }
.sound-setting input:checked + i::after { transform: translateX(18px); }
.history-modal { width: min(680px, 100%); position: relative; padding: 34px; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.history-modal h2 { font-size: 30px; }.history-summary { margin: 7px 0 22px; color: var(--ink-soft); font-size: 12px; }
.history-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.history-day { display: grid; justify-items: center; gap: 7px; padding: 12px 5px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.history-day:hover, .history-day.active { border-color: var(--coral); background: #fff7f4; }.history-day.today { box-shadow: inset 0 -3px var(--gold); }
.history-day small { color: #71847e; font-size: 8px; font-weight: 800; text-transform: uppercase; }.history-day strong { font: 800 14px "Manrope"; }
.history-day i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e4e9e5; color: #899792; font-style: normal; font-size: 10px; }
.history-day.studied i { background: #d9eee4; color: #3c7b64; }.history-day.missed i { background: #fde5df; color: var(--coral-dark); }
.history-details { min-height: 85px; margin-top: 16px; padding: 18px; border-radius: 14px; background: #edf5f0; }
.history-details header { display: flex; justify-content: space-between; gap: 15px; }.history-details h3 { font-size: 15px; }.history-details header span { color: var(--coral-dark); font-size: 10px; font-weight: 800; }
.history-activity-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.history-activity-list span { padding: 7px 10px; border-radius: 16px; background: white; color: #587069; font-size: 9px; font-weight: 700; }
.history-suggestion { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; margin-top: 15px; padding: 17px 18px; border: 1px solid #efdaa4; border-radius: 14px; background: #fff8e5; }
.history-suggestion strong, .history-suggestion small { display: block; }.history-suggestion strong { font-size: 12px; }.history-suggestion small { margin-top: 3px; color: #7e7153; font-size: 9px; }
.history-suggestion button { padding: 10px 13px; border: 0; border-radius: 9px; background: var(--ink); color: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.install-modal { width: min(480px, 100%); position: relative; padding: 34px; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.2); }.install-modal > img { width: 72px; height: 72px; display: block; margin-bottom: 22px; border-radius: 18px; box-shadow: 0 12px 28px rgba(23,60,54,.16); }.install-modal h2 { font-size: 28px; line-height: 1.15; }.install-modal > p:not(.eyebrow) { margin: 10px 0 18px; color: var(--ink-soft); line-height: 1.55; font-size: 12px; }.install-modal ol { display: grid; gap: 10px; margin: 0 0 22px; padding-left: 22px; color: #526b66; font-size: 12px; line-height: 1.45; }.install-modal .primary-button { width: 100%; }.install-modal .primary-button[hidden] { display: none; }
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 82px 1fr; }.sidebar { width: 82px; align-items: center; padding-inline: 12px; }.brand > span:last-child, .nav-item span:not(.nav-icon):not(.nav-badge), .sidebar-card, .profile > div:not(.avatar), .profile button { display: none; }.main-nav { width: 100%; }.nav-item { grid-template-columns: 1fr; place-items: center; padding: 0; }.nav-badge { position: absolute; margin: -25px 0 0 24px; display: block !important; }.profile { display: block; }.brand { gap: 0; } main { grid-column: 2; }.hero-copy { padding-left: 38px; }.store { right: 20px; }.store-awning { right: 6px; }.person { right: 240px; }.speech-bubble { right: 200px; }
}
@media (max-width: 760px) {
  .install-app-button strong { display: none; }
  .install-app-button { width: 39px; justify-content: center; padding: 0; }
  .auth-screen { grid-template-columns: 1fr; overflow-y: auto; }.auth-showcase { min-height: 320px; padding: 42px 28px; }.auth-showcase img { width: 72px; height: 72px; margin-bottom: 20px; }.auth-showcase h1 { font-size: 37px; }.auth-showcase > p:not(.eyebrow) { margin: 13px 0 19px; }.auth-panel { padding: 35px 0 50px; }
  .home-install-banner { grid-template-columns: 45px 1fr; gap: 12px; }.home-install-banner img { width: 45px; height: 45px; }.home-install-banner button { grid-column: 1 / -1; width: 100%; }
  .app-shell { display: block; }.sidebar { width: 260px; align-items: stretch; transform: translateX(-102%); transition: transform .25s; box-shadow: 15px 0 40px rgba(0,0,0,.18); }.sidebar.open { transform: none; }.brand > span:last-child, .nav-item span:not(.nav-icon):not(.nav-badge), .profile > div:not(.avatar), .profile button { display: block; }.sidebar-card { display: block; }.nav-item { grid-template-columns: 27px 1fr auto; place-items: initial; }.nav-badge { position: static; margin: 0; }.profile { display: grid; } main { display: block; }.topbar { justify-content: space-between; height: 64px; padding: 0 20px; }.mobile-menu { display: block; border: 0; background: none; cursor: pointer; font-size: 20px; }.mobile-brand { display: block; font: 800 16px "Manrope"; }.language-select #selectedLanguage, .streak-pill { display: none; }.page { width: calc(100% - 30px); padding-top: 25px; }.welcome-row { align-items: flex-end; }.daily-goal > div:last-child { display: none; }.lesson-hero { grid-template-columns: 1fr; }.hero-copy { padding: 34px 26px 225px; }.hero-art { position: absolute; inset: auto 0 0; height: 220px; min-height: 0; transform: scale(.76); transform-origin: right bottom; width: 520px; right: -10px; }.dashboard-grid, .lesson-layout, .library-grid, .bonus-content, .rewards-overview { grid-template-columns: 1fr; }.phrase-cards { grid-template-columns: 1fr; }.lesson-header { grid-template-columns: 1fr; }.lesson-progress { width: 100%; }.word-list { grid-template-columns: repeat(2, 1fr); }.study-card { padding: 27px 22px; }.review-schedule { grid-template-columns: repeat(4, 1fr); }.schedule-line { display: none; }.review-deck { grid-template-columns: 1fr; padding: 30px; }.stat-cards { grid-template-columns: repeat(2, 1fr); }.bonus-intro { grid-template-columns: 1fr; }.bonus-summary { text-align: left; }.bonus-summary .primary-button { width: auto; }.bonus-word-list { grid-template-columns: repeat(2, 1fr); }.daily-reward-card { grid-template-columns: auto 1fr; }.reward-action { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }.reward-action span { margin: 0; }.reward-action button { width: auto; }.points-pill { padding: 0 9px; }.points-pill { font-size: 0; }.game-picker { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-install-card { grid-template-columns: 42px 1fr; }.auth-install-card img { width: 42px; height: 42px; }.auth-install-card button { grid-column: 1 / -1; width: 100%; }
  .top-actions { gap: 6px; }.language-select { padding: 0 7px; }.welcome-row h1 { font-size: 26px; }.goal-ring { width: 50px; height: 50px; }.goal-ring::before { width: 40px; height: 40px; }.hero-copy h2 { font-size: 38px; }.progress-stats { grid-template-columns: 1fr; gap: 14px; }.word-list, .bonus-word-list { grid-template-columns: 1fr; }.translations { grid-template-columns: 1fr; }.study-top { gap: 15px; }.audio-controls { flex-direction: column; }.example-row { grid-template-columns: 55px 1fr auto; }.review-schedule { gap: 5px; }.schedule-step strong { font-size: 9px; }.schedule-step small { display: none; }.stat-cards { grid-template-columns: 1fr 1fr; }.stat-cards > div { padding: 16px; }.library-card { padding: 18px; }.bonus-intro, .bonus-content { padding: 21px; }.game-stage { padding: 24px 18px; }.game-options { grid-template-columns: 1fr; }
  .history-modal { padding: 27px 18px; }.history-week { gap: 4px; }.history-day { padding: 9px 2px; }.history-day small { font-size: 7px; }.history-suggestion { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .review-deck { padding: 30px 30px 82px; }
  .review-deck-nav { right: 20px; bottom: 20px; left: 20px; }
  .review-deck-nav button { min-width: 100px; }
}
