:root {
  --bg: #cdeef8;
  --card-bg: #ffffff;
  --coral: #ff6b5b;
  --coral-dark: #e8503f;
  --coral-tint: #ffe3de;
  --gold: #f5a623;
  --navy: #1f2a44;
  --muted: #6b7a90;
  --border: #e3edf3;
  --good: #1e8e5a;
  --good-tint: #e3f7ec;
  --bad: #d64545;
  --bad-tint: #fde7e5;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
}

h1, h2, .brand, .lang-card strong, .stat-card span, .mode-card strong, .prompt-word {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
}

#app {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.hidden { display: none !important; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 20px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-pill {
  background: var(--card-bg);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.lang-pill .arrow { color: var(--muted); margin: 0 2px; }

.badge-row { display: flex; gap: 8px; }
.badge {
  background: var(--card-bg);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  color: var(--navy);
}

h2 { font-size: 19px; margin: 26px 0 12px; font-weight: 700; }
.hint { color: var(--muted); font-size: 14px; margin-top: -6px; }

/* Buttons */
.primary-btn, .ghost-btn, .option-btn, .mode-card, .lang-card {
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  border-radius: 14px;
  border: none;
  font-size: 15px;
}

.primary-btn {
  background: var(--coral);
  color: white;
  padding: 13px 24px;
  font-weight: 800;
  border-radius: 999px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(255, 107, 91, 0.35);
}
.primary-btn:hover:not(:disabled) { background: var(--coral-dark); }
.primary-btn:active:not(:disabled) { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.5; cursor: default; }

.ghost-btn {
  background: var(--card-bg);
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.ghost-btn:hover { background: #f4faff; }

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

/* Language setup */
.wizard { margin-top: 6px; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 560px) { .lang-grid { grid-template-columns: 1fr; } }

.lang-card {
  background: var(--card-bg);
  border: 2px solid transparent;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.12s, border-color 0.12s;
  text-decoration: none;
  cursor: pointer;
}
.lang-card:hover { transform: translateY(-2px); border-color: var(--coral); }
.lang-flag { font-size: 34px; }
.lang-card strong { font-size: 16px; color: var(--navy); }
.lang-card span { font-size: 12.5px; color: var(--muted); }

.landing-grid { margin-top: 20px; }
.landing-grid .lang-card { padding: 32px 20px; }
.landing-grid .lang-flag { font-size: 44px; }
.landing-grid strong { font-size: 19px; }
.landing-grid span { font-size: 13.5px; }

.brand a { color: inherit; text-decoration: none; }

/* Modern Dutch-first landing page */
.feature-disabled { display: none !important; }
.landing-page {
  background: #f7faf9;
  color: #173b38;
}
.landing-page #app { max-width: 1180px; padding: 0 30px 40px; }
.landing-topbar { padding: 25px 0; border-bottom: 1px solid rgba(23,59,56,.09); }
.landing-brand { color: #173b38; text-decoration: none; font-size: 24px; }
.brand-mark {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px;
  background: #173b38; color: #f7faf9; font: 800 20px 'Baloo 2', sans-serif;
  transform: rotate(-4deg);
}
.landing-nav { display: flex; align-items: center; gap: 22px; }
.landing-login, .landing-text-link { color: #244c48; font-size: 14px; font-weight: 800; text-decoration: none; }
.landing-page .primary-btn { border-radius: 11px; background: #ee684f; box-shadow: none; text-decoration: none; }
.landing-page .primary-btn:hover { background: #d9543d; }
.landing-hero { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 62px; min-height: 610px; padding: 60px 0 70px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 9px; color: #50706d; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.landing-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #ee684f; box-shadow: 0 0 0 5px rgba(238,104,79,.12); }
.landing-hero h1 { margin: 19px 0 20px; color: #173b38; font: 800 68px/.95 'Baloo 2', sans-serif; letter-spacing: -.045em; }
.landing-hero h1 em { color: #ee684f; font-style: normal; }
.landing-hero-copy > p { max-width: 570px; margin: 0; color: #617673; font-size: 18px; line-height: 1.65; }
.landing-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 31px; }
.landing-main-cta { padding: 15px 25px; }
.landing-main-cta span { margin-left: 14px; }
.landing-page .landing-drink-cta {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex;
  align-items: center; justify-content: center; max-width: 100%; padding: 28px 34px;
  background: #303f53; color: #fff; border: 1px solid #53647b; border-radius: 16px;
  font-size: 20px; line-height: 1.35; text-align: center;
  box-shadow: 0 10px 24px rgba(35,49,68,.18);
}
.landing-page .landing-drink-cta:hover { background: #3a4e66; box-shadow: 0 12px 28px rgba(35,49,68,.24); }
.landing-page .landing-drink-cta:focus-visible { outline: 3px solid #ee684f; outline-offset: 5px; }
.drink-cta-label { position: relative; z-index: 1; }
.drink-cta-stars { position: absolute; inset: 0; pointer-events: none; }
.drink-cta-stars span { position: absolute; line-height: 1; animation: drink-star-twinkle 3.6s ease-in-out infinite; }
.drink-cta-stars span:nth-child(1) { top: 7px; left: 14px; color: #ffd26b; font-size: 19px; }
.drink-cta-stars span:nth-child(2) { bottom: 8px; left: 24%; color: #ff9dba; font-size: 10px; }
.drink-cta-stars span:nth-child(3) { top: 5px; right: 26%; color: #bdb0ff; font-size: 17px; }
.drink-cta-stars span:nth-child(4) { bottom: 8px; right: 16px; color: #8be2d1; font-size: 20px; }
.drink-cta-stars span:nth-child(5) { top: 10px; right: 10px; color: #91c9ff; font-size: 9px; }
.drink-cta-stars span:nth-child(2) { animation-delay: -1.4s; animation-duration: 4.2s; }
.drink-cta-stars span:nth-child(3) { animation-delay: -2.6s; animation-duration: 3.9s; }
.drink-cta-stars span:nth-child(4) { animation-delay: -.8s; animation-duration: 4.7s; }
.drink-cta-stars span:nth-child(5) { animation-delay: -3.1s; animation-duration: 4.4s; }
@keyframes drink-star-twinkle {
  0%, 100% { opacity: .12; transform: scale(.8); }
  45%, 60% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .drink-cta-stars span { animation: none; opacity: 1; transform: none; }
}
.landing-trust-row { display: flex; gap: 26px; margin-top: 39px; }
.landing-trust-row span { padding-right: 24px; border-right: 1px solid #dce7e4; color: #79908d; font-size: 11px; }
.landing-trust-row span:last-child { border: 0; }
.landing-trust-row b { display: block; color: #244c48; font-size: 18px; }
.landing-visual { position: relative; min-height: 470px; border-radius: 42% 58% 48% 52% / 55% 38% 62% 45%; background: #dbeee8; }
.landing-visual::before { content: ''; position: absolute; inset: 32px; border: 1px dashed rgba(23,59,56,.18); border-radius: inherit; }
.visual-orbit { position: absolute; border-radius: 50%; background: #f2c84b; }
.orbit-one { width: 16px; height: 16px; top: 65px; left: 45px; }
.orbit-two { width: 10px; height: 10px; right: 65px; bottom: 58px; background: #ee684f; }
.visual-card { position: absolute; border: 1px solid rgba(23,59,56,.08); background: rgba(255,255,255,.96); box-shadow: 0 24px 60px rgba(24,64,59,.13); }
.visual-card-main { top: 92px; right: 60px; left: 60px; padding: 34px; border-radius: 24px; transform: rotate(-2deg); }
.visual-label { color: #7d918f; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.visual-speaker { float: right; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9f6f1; color: #286b62; }
.visual-card-main > strong { display: block; margin: 29px 0 0; color: #173b38; font: 800 42px 'Baloo 2', sans-serif; }
.visual-card-main > p { margin: -5px 0 28px; color: #758784; }
.visual-progress { height: 7px; overflow: hidden; border-radius: 8px; background: #e8efed; }
.visual-progress i { display: block; width: 72%; height: 100%; border-radius: inherit; background: #ee684f; }
.visual-card-main small { display: block; margin-top: 8px; color: #93a3a1; font-size: 9px; }
.visual-card-small { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-radius: 15px; }
.visual-card-small > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #f7f0d1; color: #9d7711; font-weight: 900; }
.visual-card-small strong, .visual-card-small small { display: block; }
.visual-card-small strong { font-size: 12px; }.visual-card-small small { color: #899a97; font-size: 9px; }
.visual-card-top { z-index: 2; top: 54px; right: 3px; transform: rotate(4deg); }
.visual-card-bottom { z-index: 2; bottom: 53px; left: 6px; transform: rotate(-4deg); }
.visual-card-bottom > span { background: #fee8e2; color: #d6543e; font-size: 12px; }
.landing-paths { padding: 75px 0 90px; border-top: 1px solid #e0e9e7; }
.section-intro { max-width: 650px; margin-bottom: 31px; }
.section-intro h2 { margin: 14px 0 0; color: #173b38; font: 800 38px/1.08 'Baloo 2', sans-serif; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card { position: relative; min-height: 390px; padding: 31px; overflow: hidden; border-radius: 24px; color: #173b38; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.path-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(23,59,56,.1); }
.path-vocabulary { background: #dcefe9; }.path-numbers { background: #f5e7d7; }
.path-card-top { display: flex; justify-content: space-between; color: #78908c; font-size: 12px; font-weight: 900; }
.path-arrow { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: rgba(255,255,255,.65); color: #173b38; font-size: 18px; }
.path-icon { display: grid; place-items: center; width: 67px; height: 67px; margin-top: 18px; border-radius: 19px; background: #173b38; color: white; font: 800 25px 'Baloo 2', sans-serif; transform: rotate(-3deg); }
.path-numbers .path-icon { background: #ee684f; transform: rotate(3deg); }
.path-card h3 { margin: 22px 0 7px; font: 800 27px 'Baloo 2', sans-serif; }
.path-card p { max-width: 470px; margin: 0; color: #5d7470; line-height: 1.55; }
.path-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 0; padding: 0; list-style: none; }
.path-card li { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.62); color: #526a66; font-size: 11px; font-weight: 800; }
.landing-account-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 75px; padding: 38px 43px; border-radius: 24px; background: #173b38; color: white; }
.landing-account-strip span { color: #8fb4af; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.landing-account-strip h2 { margin: 4px 0 0; font: 700 27px 'Baloo 2', sans-serif; }
.landing-account-strip > div:last-child { display: flex; align-items: center; gap: 20px; }.landing-account-strip .landing-text-link { color: #d8e9e6; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 0; border-top: 1px solid #dfe8e6; color: #859692; font-size: 12px; }
.landing-footer-links { display: flex; align-items: center; gap: 18px; }.landing-footer-links a { color: #486d67; font-weight: 800; text-decoration: none; }.landing-footer-links a:hover { text-decoration: underline; }
.tourist-route-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin: 4px 0 75px; padding: 28px 31px; border-radius: 24px; background: linear-gradient(120deg,#173b38,#255c55); color: white; box-shadow: 0 20px 45px rgba(23,59,56,.14); }
.tourist-promo-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 19px; background: #f5c84b; font-size: 30px; transform: rotate(-3deg); }
.tourist-route-promo span { color: #a7d4cc; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.tourist-route-promo h2 { margin: 3px 0 4px; font: 800 25px/1.1 'Baloo 2',sans-serif; }
.tourist-route-promo p { margin: 0; color: #cbe1dd; font-size: 13px; }
.tourist-route-promo .primary-btn { white-space: nowrap; text-decoration: none; }
@media (max-width: 800px) {
  .landing-hero { grid-template-columns: 1fr; padding-top: 50px; }.landing-hero h1 { font-size: 56px; }.landing-visual { min-height: 410px; }.path-grid { grid-template-columns: 1fr; }
  .landing-account-strip { align-items: flex-start; flex-direction: column; }.landing-account-strip > div:last-child { align-items: flex-start; flex-direction: column; }
  .tourist-route-promo { grid-template-columns: auto 1fr; }.tourist-route-promo .primary-btn { grid-column: 1 / -1; width: 100%; text-align: center; }
}

/* Tourist terrace mission */
.tourist-course-page { background: radial-gradient(circle at 88% 8%,rgba(245,200,75,.28),transparent 270px),radial-gradient(circle at 5% 42%,rgba(238,104,79,.16),transparent 260px),#f7faf9; }
.tourist-course-page #app { max-width: 980px; padding: 0 28px 70px; }
.tourist-topbar { position: sticky; z-index: 20; top: 0; margin: 0 -28px 22px; padding: 18px 28px; border: 0; background: rgba(247,250,249,.88); backdrop-filter: blur(18px); }
.tourist-time { padding: 8px 12px; border-radius: 999px; background: #f7e9ae; color: #695619; font-size: 11px; font-weight: 900; }
.tourist-course-main { max-width: 840px; margin: 0 auto; }
.tourist-progress-shell { margin-bottom: 20px; padding: 16px 20px; border: 1px solid rgba(23,59,56,.08); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 12px 32px rgba(23,59,56,.06); }
.tourist-progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; }.tourist-progress-copy span { color: var(--muted); font-weight: 800; }.tourist-progress-copy strong { color: #173b38; }
.tourist-progress-track { height: 7px; overflow: hidden; border-radius: 8px; background: #e4ecea; }.tourist-progress-track i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ee684f,#f5c84b); transition: width .3s ease; }
.tourist-screen { padding: 38px; border: 1px solid rgba(23,59,56,.07); border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: 0 22px 60px rgba(23,59,56,.08); animation: screen-enter .25s ease both; }
.tourist-hero-copy { max-width: 650px; }.tourist-hero-copy .lesson-eyebrow,.tourist-screen>.lesson-eyebrow { color: #d6543e; }.tourist-hero-copy h1 { margin: 5px 0 10px; color: #173b38; font: 800 49px/.95 'Baloo 2',sans-serif; }.tourist-hero-copy h1 em { color: #ee684f; font-style: normal; }.tourist-hero-copy>p:last-child { color: #637a76; line-height: 1.6; }
.tourist-screen h2 { margin: 5px 0 3px; color: #173b38; font: 800 33px/1.05 'Baloo 2',sans-serif; }.tourist-screen>.hint { margin-top: 0; }
.terrace-phrase-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; margin-top: 27px; }
.terrace-phrase-card { position: relative; display: flex; min-height: 150px; flex-direction: column; padding: 21px; border: 1px solid #dce8e5; border-radius: 19px; background: #f8fbfa; }.terrace-phrase-card:nth-child(2),.terrace-phrase-card:nth-child(3) { background: #fff8e4; }.terrace-phrase-number { color: #97aaa6; font-size: 10px; font-weight: 900; }.terrace-phrase-card strong { margin-top: 17px; color: #173b38; font: 800 23px 'Baloo 2',sans-serif; }.terrace-phrase-card>span:not(.terrace-phrase-number) { color: #536d68; }.terrace-phrase-card small { margin-top: auto; padding-top: 9px; color: #91a19e; }.phrase-audio-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #dcefe9; color: #205f57; cursor: pointer; }.terrace-phrase-card .phrase-audio-btn { position: absolute; top: 16px; right: 16px; }
.tourist-tip { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; padding: 15px 17px; border-radius: 15px; background: #e5f3ef; color: #45635e; }.tourist-tip>span { font-size: 20px; }.tourist-tip p { margin: 0; font-size: 13px; line-height: 1.5; }.tourist-tip.challenge { background: #fff1ed; }.tourist-actions { justify-content: flex-end; margin-top: 24px; }
.terrace-scene { margin-top: 24px; overflow: hidden; border: 1px solid #dce8e5; border-radius: 22px; background: #f8fbfa; }.terrace-scene-heading { display: flex; gap: 13px; align-items: center; padding: 17px 20px; background: #173b38; color: white; }.terrace-scene-heading>span { font-size: 25px; }.terrace-scene-heading strong,.terrace-scene-heading small { display: block; }.terrace-scene-heading small { color: #a8cac4; }
.dialogue-line { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 17px 20px; border-bottom: 1px solid #e2ebe9; }.dialogue-line:last-child { border: 0; }.dialogue-line.visitor { background: #fff8e4; }.dialogue-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dcefe9; color: #235f56; font-weight: 900; }.visitor .dialogue-avatar { background: #ee684f; color: white; }.dialogue-line small { color: #8a9d99; font-size: 9px; font-weight: 900; letter-spacing: .08em; }.dialogue-line p { margin: 1px 0; color: #173b38; font-weight: 900; }.dialogue-line div>span { color: #728783; font-size: 12px; }.terrace-play-all { display: block; margin: 14px auto 0; }
.terrace-quiz-card { margin-top: 23px; padding: 28px; border-radius: 22px; background: #f6faf9; }.terrace-situation { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #f7e9ae; color: #695619; font-size: 10px; font-weight: 900; }.terrace-quiz-card h3 { margin: 16px 0 18px; color: #173b38; font: 800 24px 'Baloo 2',sans-serif; }.terrace-quiz-options { display: grid; gap: 9px; }.terrace-quiz-options button { padding: 14px 16px; border: 1.5px solid #d7e4e1; border-radius: 13px; background: white; color: #264b46; font: 800 14px 'Nunito',sans-serif; text-align: left; cursor: pointer; }.terrace-quiz-options button:hover:not(:disabled) { border-color: #4a978b; background: #eef8f5; }.terrace-quiz-options button.correct { border-color: #2b9866; background: #e3f7ec; }.terrace-quiz-options button.incorrect { border-color: #d85c55; background: #fde7e5; }.terrace-quiz-card .quiz-feedback { margin-top: 14px; }
.terrace-builder { display: grid; gap: 10px; margin-top: 24px; }.terrace-builder label { color: #536b67; font-size: 12px; font-weight: 900; }.terrace-builder select { width: 100%; padding: 14px; border: 1.5px solid #d6e5e1; border-radius: 13px; background: white; color: #173b38; font: 800 15px 'Nunito',sans-serif; }.terrace-order-ticket { display: flex; align-items: center; flex-direction: column; margin-top: 10px; padding: 30px; border-radius: 22px; background: linear-gradient(135deg,#173b38,#286a60); color: white; text-align: center; }.terrace-order-ticket small { color: #a6cec7; font-weight: 900; letter-spacing: .1em; }.terrace-order-ticket strong { margin: 11px 0 2px; font: 800 29px 'Baloo 2',sans-serif; }.terrace-order-ticket>span { color: #c7dfdb; }.terrace-order-ticket .primary-btn { margin-top: 20px; }
.terrace-complete { text-align: center; }.terrace-complete-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #e3f7ec; color: #21845a; font-size: 35px; font-weight: 900; }.terrace-complete>p:not(.lesson-eyebrow) { color: #687d79; }.terrace-final-phrase { position: relative; display: flex; align-items: center; flex-direction: column; max-width: 680px; margin: 18px auto 14px; padding: 18px 62px; border-radius: 16px; background: #fff8e4; }.terrace-final-phrase small { color: #8f7b39; font-size: 10px; font-weight: 900; }.terrace-final-phrase strong { margin-top: 5px; color: #173b38; font: 800 21px 'Baloo 2',sans-serif; }.terrace-final-phrase .phrase-audio-btn { position: absolute; top: 16px; right: 17px; }.terrace-reward-preview { display: flex; gap: 15px; align-items: center; padding: 18px; border: 1px dashed #e5b93a; border-radius: 17px; background: #fffbef; text-align: left; }.terrace-reward-preview>span { font-size: 30px; }.terrace-reward-preview p { margin: 2px 0 0; color: #756b4e; font-size: 12px; }.complete-actions { align-items: center; justify-content: center; flex-wrap: wrap; }.complete-actions a { text-decoration: none; }
.course-terrace { background: linear-gradient(145deg,#fff5d7,#f9e3a0); }.course-terrace .course-icon { background: #f1bd32; color: #173b38; }
@media (max-width: 650px) { .tourist-time { display: none; }.tourist-course-page #app { padding: 0 16px 45px; }.tourist-topbar { margin: 0 -16px 16px; padding: 14px 16px; }.tourist-screen { padding: 25px 20px; border-radius: 23px; }.tourist-hero-copy h1 { font-size: 40px; }.terrace-phrase-grid { grid-template-columns: 1fr; }.tourist-actions { align-items: stretch; flex-direction: column-reverse; }.tourist-actions button,.tourist-actions a { width: 100%; text-align: center; }.tourist-actions .save-progress-link { align-self: center; width: auto; }.dialogue-line { grid-template-columns: auto 1fr; }.dialogue-line .phrase-audio-btn { grid-column: 2; }.terrace-order-ticket strong { font-size: 23px; }.terrace-final-phrase { padding: 18px 48px 18px 16px; }.terrace-final-phrase strong { font-size: 19px; } }

/* Structured tourist vocabulary route */
.terrace-word-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-top: 26px; }
.terrace-word-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-height: 82px; padding: 15px 17px; border: 1px solid #dce8e5; border-radius: 17px; background: #f8fbfa; }
.terrace-word-card:nth-child(4n+2),.terrace-word-card:nth-child(4n+3) { background: #fff8e4; }
.terrace-word-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: white; font-size: 21px; box-shadow: 0 5px 16px rgba(23,59,56,.08); }
.terrace-word-card div { display: flex; min-width: 0; flex-direction: column; }
.terrace-word-card strong { color: #173b38; font: 800 19px 'Baloo 2',sans-serif; line-height: 1.05; }
.terrace-word-card div span { color: #738783; font-size: 12px; }
.terrace-quiz-status { display: flex; justify-content: space-between; margin-top: 16px; color: #718581; font-size: 12px; font-weight: 800; }
.terrace-quiz-status strong { color: #173b38; }
.terrace-result>p:not(.lesson-eyebrow) { max-width: 570px; margin-right: auto; margin-left: auto; color: #687d79; text-align: center; }
.terrace-result .terrace-complete-icon.needs-practice { background: #fff1ed; color: #d6543e; }
.terrace-score-card { display: flex; align-items: center; flex-direction: column; max-width: 280px; margin: 24px auto; padding: 25px; border-radius: 20px; background: linear-gradient(135deg,#173b38,#286a60); color: white; }
.terrace-score-card strong { font: 800 45px 'Baloo 2',sans-serif; line-height: 1; }.terrace-score-card span { margin-top: 5px; color: #bbd8d3; font-size: 12px; }
.terrace-sentence-list { display: grid; gap: 10px; margin-top: 24px; }
.terrace-sentence-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 17px 19px; border: 1px solid #dce8e5; border-radius: 17px; background: #f3faf7; }
.terrace-sentence-card.waiter { background: #fff8e4; }
.sentence-index { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #173b38; color: white; font-size: 11px; font-weight: 900; }.terrace-sentence-card.waiter .sentence-index { background: #e8b631; color: #173b38; }
.terrace-sentence-card div { display: flex; flex-direction: column; }.terrace-sentence-card small { color: #91a19e; font-size: 8px; font-weight: 900; letter-spacing: .1em; }.terrace-sentence-card strong { color: #173b38; font: 800 18px 'Baloo 2',sans-serif; }.terrace-sentence-card div>span { color: #718581; font-size: 12px; }
.ordering-heading { margin-top: 24px; border-radius: 19px 19px 0 0; }
.ordering-list { display: grid; gap: 9px; margin: 0; padding: 14px; border: 1px solid #dce8e5; border-top: 0; border-radius: 0 0 19px 19px; background: #f8fbfa; list-style: none; }
.ordering-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid #dce8e5; border-radius: 14px; background: white; cursor: grab; transition: opacity .15s,transform .15s; }.ordering-list li.dragging { opacity: .45; transform: scale(.98); }
.ordering-position { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e5f3ef; color: #245f56; font-weight: 900; }.ordering-list li>div:nth-child(2) { display: flex; flex-direction: column; }.ordering-list small { color: #9aaaa7; font-size: 8px; font-weight: 900; }.ordering-list strong { color: #173b38; font-size: 13px; }.ordering-list li>div:nth-child(2)>span { color: #748884; font-size: 11px; }
.ordering-controls { display: flex; gap: 5px; }.ordering-controls button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #d8e5e2; border-radius: 9px; background: #f6faf9; color: #315f58; font-weight: 900; cursor: pointer; }.ordering-controls button:disabled { opacity: .3; cursor: default; }
.ordering-list+.quiz-feedback { margin-top: 13px; }
.waiter-interaction { margin-top: 24px; overflow: hidden; border: 1px solid #dce8e5; border-radius: 20px; background: #f8fbfa; }
.waiter-interaction .ordering-heading { margin-top: 0; border-radius: 0; }
.waiter-question { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 21px; background: #fff8e4; }
.waiter-question>div { display: flex; flex-direction: column; }.waiter-question small { color: #907d41; font-size: 9px; font-weight: 900; letter-spacing: .09em; }.waiter-question strong { margin: 3px 0; color: #173b38; font: 800 21px 'Baloo 2',sans-serif; }.waiter-question div>span { color: #756d54; font-size: 12px; }
.interaction-instruction { display: block; padding: 18px 20px 8px; color: #81928f; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.interaction-options { padding: 0 20px 20px; }
.interaction-options button.selected { border-color: #4a978b; background: #eaf6f3; box-shadow: 0 0 0 3px rgba(74,151,139,.14); }
.interaction-options button.chosen-response { border-color: #21845a; background: #dff5e9; box-shadow: 0 0 0 3px rgba(33,132,90,.14); }
.waiter-interaction+.quiz-feedback { margin-top: 13px; }
.terrace-signup-card { display: grid; grid-template-columns: 220px minmax(0,1fr); column-gap: 38px; row-gap: 22px; align-items: center; margin-top: 18px; padding: 38px 44px; border-radius: 24px; background: linear-gradient(135deg,#143d39,#286a60); color: white; text-align: left; }
.terrace-signup-card>div>small { color: #a7d4cc; font-size: 10px; font-weight: 900; letter-spacing: .1em; }.terrace-signup-card h3 { margin: 4px 0 6px; font: 800 29px 'Baloo 2',sans-serif; }.terrace-signup-copy>p { margin: 0; color: #cae0dc; font-size: 14px; line-height: 1.55; }.terrace-signup-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }.terrace-signup-card li { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #e6f1ef; font-size: 11px; font-weight: 800; }.terrace-signup-card>.primary-btn { grid-column: 2; justify-self: start; min-width: 310px; padding: 15px 24px; white-space: nowrap; text-align: center; text-decoration: none; }
.terrace-reward-illustration { position: relative; width: 160px; height: 150px; }.reward-path { position: absolute; top: 72px; left: 28px; width: 105px; height: 2px; background: rgba(255,255,255,.28); transform: rotate(-16deg); }.reward-lock { position: absolute; z-index: 2; top: 51px; left: 61px; display: grid; place-items: center; width: 42px; height: 42px; border: 6px solid #143d39; border-radius: 50%; background: #e8b631; color: #173b38; font-size: 20px; font-weight: 900; }.reward-bubble { position: absolute; display: flex; align-items: center; flex-direction: column; justify-content: center; width: 76px; height: 76px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.12); box-shadow: 0 12px 25px rgba(0,0,0,.14); backdrop-filter: blur(5px); }.reward-bubble b { font-size: 29px; }.reward-bubble small { color: #d9ece8; font-size: 8px; font-weight: 900; letter-spacing: .1em; }.reward-bubble.speech { top: 0; left: 0; transform: rotate(-5deg); }.reward-bubble.coupon { right: 0; bottom: 0; transform: rotate(5deg); }
.terrace-signup-copy { min-width: 0; max-width: 100%; }.terrace-account-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 100%; margin-top: 17px; }.terrace-account-benefits>div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 11px; min-width: 0; min-height: 76px; padding: 14px 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.08); }.terrace-account-benefits>div>span { font-size: 23px; }.terrace-account-benefits p { display: flex; min-width: 0; flex-direction: column; margin: 0; overflow-wrap: anywhere; }.terrace-account-benefits strong { color: white; font-size: 14px; line-height: 1.25; }.terrace-account-benefits p small { margin-top: 4px; color: #bcd8d3; font-size: 11px; line-height: 1.4; }
.terrace-login-link { display: inline-block; margin-top: 12px; color: white; font-size: 11px; font-weight: 800; }
.terrace-signup-icon { font-size: 42px; }
.terrace-unlocked-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 20px; text-align: left; }
.terrace-unlocked-actions article { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 22px; border: 1px solid #dce8e5; border-radius: 20px; background: #f8fbfa; }
.terrace-unlocked-actions article>span { font-size: 30px; }.terrace-unlocked-actions small { color: #d6543e; font-size: 9px; font-weight: 900; letter-spacing: .1em; }.terrace-unlocked-actions h3 { margin: 3px 0; color: #173b38; font: 800 21px 'Baloo 2',sans-serif; }.terrace-unlocked-actions p { margin: 0; color: #687d79; font-size: 12px; line-height: 1.45; }.terrace-unlocked-actions .primary-btn { grid-column: 1/-1; justify-self: stretch; }
.terrace-pronunciation-card { display: flex; align-items: center; flex-direction: column; margin-top: 24px; padding: 32px; border-radius: 22px; background: #f6faf9; text-align: center; }.terrace-pronunciation-card>small { color: #d6543e; font-weight: 900; }.terrace-pronunciation-card>strong { margin-top: 14px; color: #173b38; font: 800 27px 'Baloo 2',sans-serif; }.terrace-pronunciation-card>span { color: #718581; }.tourist-speech-buttons { display: flex; gap: 10px; margin-top: 22px; }.tourist-speech-result.good { color: #21845a; }.tourist-speech-result.bad { color: #c94c45; }
.terrace-coupon-pending { max-width: 600px; margin: 24px auto; padding: 25px; border: 2px dashed #e5b93a; border-radius: 20px; background: #fffbef; }.terrace-coupon-pending strong { color: #173b38; font: 800 22px 'Baloo 2',sans-serif; }.terrace-coupon-pending p { margin-bottom: 0; color: #756b4e; line-height: 1.55; }
.save-progress-link { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 0; border-radius: 999px; background: #e8b631; box-shadow: 0 4px 14px rgba(232,182,49,.3); color: #173b38; font: 800 15px 'Nunito',sans-serif; text-decoration: none; transition: background .15s,transform .1s; }.save-progress-link:hover { background: #d5a524; }.save-progress-link:active { transform: scale(.98); }
@media (max-width: 900px) { .terrace-signup-card { grid-template-columns: 130px minmax(0,1fr); padding: 32px; }.terrace-reward-illustration { width: 125px; transform: scale(.82); transform-origin: left center; }.terrace-account-benefits { grid-template-columns: 1fr; }.terrace-signup-card>.primary-btn { grid-column: 1/-1; justify-self: stretch; min-width: 0; text-align: center; } }
@media (max-width: 700px) { .terrace-word-grid,.terrace-unlocked-actions { grid-template-columns: 1fr; }.terrace-signup-card { grid-template-columns: 1fr; padding: 27px 22px; }.terrace-reward-illustration { width: 160px; height: 120px; margin: 0 auto; transform: scale(.8); transform-origin: center; }.terrace-account-benefits { grid-template-columns: 1fr; }.terrace-signup-card>.primary-btn { grid-column: auto; justify-self: stretch; text-align: center; }.ordering-list li { grid-template-columns: auto 1fr; }.ordering-controls { grid-column: 2; }.terrace-quiz-status { align-items: flex-start; flex-direction: column; gap: 4px; }.waiter-question { grid-template-columns: auto 1fr; }.waiter-question .phrase-audio-btn { grid-column: 2; }.interaction-options { padding: 0 14px 15px; } }
@media (max-width: 520px) {
  .landing-page #app { padding: 0 18px 30px; }.landing-nav .landing-login { display: none; }.landing-nav .primary-btn { padding: 10px 14px; font-size: 12px; }
  .landing-hero { gap: 35px; padding: 42px 0 55px; }.landing-hero h1 { font-size: 45px; }.landing-hero-copy > p { font-size: 16px; }
  .landing-hero-actions { align-items: flex-start; flex-direction: column; }.landing-trust-row { gap: 12px; }.landing-trust-row span { padding-right: 12px; }
  .landing-visual { min-height: 350px; }.visual-card-main { top: 72px; right: 25px; left: 25px; padding: 25px; }.visual-card-main > strong { font-size: 34px; }
  .visual-card-top { top: 38px; right: 0; }.visual-card-bottom { bottom: 32px; }.landing-paths { padding: 55px 0; }.section-intro h2 { font-size: 31px; }
  .path-card { padding: 25px; }.landing-account-strip { padding: 29px 25px; }.landing-footer > span { display: none; }
}

/* Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card span { display: block; font-size: 24px; font-weight: 800; color: var(--coral); }
.stat-card label { font-size: 12px; color: var(--muted); font-weight: 700; }

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .mode-grid { grid-template-columns: 1fr; } }

.mode-card {
  background: var(--card-bg);
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.12s;
}
.mode-card:hover:not(.disabled) { transform: translateY(-2px); }
.mode-icon { font-size: 22px; margin-bottom: 4px; }
.mode-card strong { font-size: 15px; color: var(--navy); }
.mode-card span { font-size: 12.5px; color: var(--muted); }
.special-card { border: 2px solid #ae1c28; background: linear-gradient(180deg, #fff 0%, #fdf1f0 100%); }
.mode-card.disabled { opacity: 0.55; cursor: default; }
.mode-note { font-size: 11.5px; color: var(--bad); font-style: normal; margin-top: 2px; }

/* Accountability partner */
.accountability-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.accountability-form { display: flex; flex-direction: column; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.optional { font-weight: 400; color: var(--muted); }
.accountability-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: white;
}
.registration-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.9) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 82%, rgba(255,214,196,.45) 0 150px, transparent 151px),
    linear-gradient(145deg, #e7f7fb 0%, #cdeef8 50%, #d8f2f5 100%);
}
.registration-page #app { max-width: 1040px; }
.registration-screen { max-width: 980px; margin: 0 auto; }
.registration-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 28px 80px rgba(31,42,68,.14);
  backdrop-filter: blur(16px);
}
.registration-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: 46px 40px;
  overflow: hidden;
  background: linear-gradient(155deg, #1f2a44 0%, #29476a 100%);
  color: white;
}
.registration-hero::after {
  content: '';
  position: absolute;
  right: -85px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,107,91,.24);
}
.registration-hero-icon { font-size: 40px; }
.registration-hero .lesson-eyebrow { margin-top: 22px; color: #8fd8e8; }
.registration-hero h1 {
  max-width: 360px;
  margin: 8px 0 12px;
  font: 800 38px/1.08 'Baloo 2', 'Nunito', sans-serif;
  letter-spacing: -.02em;
}
.registration-hero > p:not(.lesson-eyebrow) { margin: 0; color: #d9e4ef; line-height: 1.65; }
.registration-benefits { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.registration-benefits li { display: flex; gap: 10px; align-items: flex-start; color: #eef5fa; font-size: 14px; }
.registration-benefits li span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(143,216,232,.18);
  color: #8fd8e8;
  font-weight: 900;
}
.registration-card {
  padding: 44px 42px;
  background: var(--card-bg);
}
.registration-heading .lesson-eyebrow { margin-top: 0; }
.registration-heading h2 { margin: 4px 0 4px; font-size: 28px; line-height: 1.15; }
.registration-heading > p:last-child { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.registration-card .field { display: block; margin-bottom: 17px; }
.registration-card .field-label {
  display: block;
  margin-bottom: 7px;
  color: #34425c;
  font-size: 13px;
  font-weight: 800;
}
.registration-card input[type='text'],
.registration-card input[type='email'],
.registration-card input[type='password'],
.registration-card select {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid #dce7ee;
  border-radius: 12px;
  outline: none;
  background: #f9fbfc;
  color: var(--navy);
  font: 600 15px 'Nunito', sans-serif;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.registration-card input::placeholder { color: #9aa8b8; font-weight: 500; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.auth-switch { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a, .auth-link { color: #287f94; font-weight: 800; }
.registration-privacy-note, .auth-policy-link { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }.registration-privacy-note a, .auth-policy-link a { color: #287f94; font-weight: 800; }

/* Privacy and cookie policy */
.privacy-page { background: #f4f8f6; color: #173b38; }.privacy-page #app { max-width: 1180px; margin: 0 auto; padding: 0 30px 50px; }.privacy-topbar { padding-top: 20px; }.privacy-main { padding-top: 24px; }.privacy-hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 55px; min-height: 460px; padding: 65px 68px; overflow: hidden; border-radius: 34px; background: #173f3b; color: white; box-shadow: 0 25px 70px rgba(23,63,59,.16); }.privacy-hero h1 { margin: 8px 0 18px; font: 800 66px/.92 'Baloo 2',sans-serif; letter-spacing: -.035em; }.privacy-hero h1 em { color: #ff7662; font-style: normal; }.privacy-lead { max-width: 650px; margin: 0; color: #c8dbd7; font-size: 18px; line-height: 1.65; }.privacy-updated { margin: 24px 0 0; color: #8fb5ae; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.privacy-status-card { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }.privacy-status-card > span { color: #9fd2c9; font-size: 10px; font-weight: 900; letter-spacing: .12em; }.privacy-status-card ul { display: grid; gap: 15px; margin: 20px 0 0; padding: 0; list-style: none; }.privacy-status-card li { display: grid; grid-template-columns: 24px 1fr; align-items: center; color: #f5fbfa; font-size: 13px; font-weight: 700; }.privacy-status-card b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #daf2e9; color: #18825d; }
.privacy-contents { position: sticky; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; width: fit-content; max-width: calc(100% - 40px); margin: -19px auto 45px; padding: 8px; border: 1px solid #e0e9e6; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(23,63,59,.09); backdrop-filter: blur(12px); }.privacy-contents a { padding: 8px 13px; border-radius: 999px; color: #52716c; font-size: 11px; font-weight: 800; text-decoration: none; }.privacy-contents a:hover { background: #e8f3ef; color: #173f3b; }
.privacy-section { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 28px; max-width: 980px; margin: 0 auto; padding: 62px 0; border-bottom: 1px solid #dce7e3; scroll-margin-top: 85px; }.privacy-section-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #dcefe9; color: #2b6d63; font: 800 15px 'Baloo 2',sans-serif; transform: rotate(-3deg); }.privacy-section h2 { margin: 5px 0 18px; color: #173f3b; font: 800 38px/1.08 'Baloo 2',sans-serif; }.privacy-section h3 { color: #173f3b; }.privacy-section p { color: #5d746f; font-size: 15px; line-height: 1.75; }.privacy-section a { color: #217d8e; font-weight: 800; }.privacy-summary { padding-top: 35px; }.privacy-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 24px; }.privacy-data-grid article { padding: 24px; border: 1px solid #dce6e3; border-radius: 20px; background: white; box-shadow: 0 7px 25px rgba(23,63,59,.04); }.privacy-data-grid article > span { color: #df5f4a; font-size: 9px; font-weight: 900; letter-spacing: .1em; }.privacy-data-grid h3 { margin: 6px 0 7px; font: 800 21px 'Baloo 2',sans-serif; }.privacy-data-grid p { margin: 0; font-size: 13px; line-height: 1.65; }.privacy-legal-bases { margin-top: 15px; padding: 24px 27px; border-radius: 19px; background: #fff4d8; }.privacy-legal-bases h3 { margin: 0 0 5px; }.privacy-legal-bases p { margin: 0; }
.privacy-speech-section { max-width: 1080px; padding: 64px 50px; border: 0; border-radius: 29px; background: #e6f3ef; }.privacy-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; margin: 28px 0; }.privacy-flow > div { min-height: 135px; padding: 20px; border-radius: 18px; background: white; }.privacy-flow b { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: #ff7662; color: white; }.privacy-flow strong, .privacy-flow span { display: block; }.privacy-flow strong { font: 800 17px 'Baloo 2',sans-serif; }.privacy-flow span { margin-top: 5px; color: #718681; font-size: 11px; line-height: 1.5; }.privacy-flow i { color: #679b92; font-style: normal; font-weight: 900; }
.privacy-provider-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.privacy-provider-list a { display: grid; gap: 6px; padding: 22px; border: 1px solid #dce6e3; border-radius: 18px; background: white; color: inherit; text-decoration: none; transition: transform .15s,box-shadow .15s; }.privacy-provider-list a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,63,59,.08); }.privacy-provider-list strong { font: 800 20px 'Baloo 2',sans-serif; }.privacy-provider-list span { color: #687f7a; font-size: 12px; line-height: 1.55; }.privacy-provider-list b { color: #de624e; font-size: 10px; }.privacy-note { padding: 16px 20px; border-left: 3px solid #edb830; background: #fff9e8; }.privacy-check-list { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }.privacy-check-list li { padding: 15px 18px; border-left: 3px solid #83b9ae; border-radius: 0 12px 12px 0; background: white; color: #5c736e; font-size: 13px; line-height: 1.6; }.privacy-check-list strong { color: #173f3b; }
.privacy-cookie-section { max-width: 1080px; padding: 64px 50px; border: 0; border-radius: 29px; background: #fff5dc; }.privacy-table-wrap { margin: 25px 0; overflow-x: auto; border: 1px solid #eadfbe; border-radius: 18px; background: white; }.privacy-table { width: 100%; border-collapse: collapse; font-size: 12px; }.privacy-table th, .privacy-table td { padding: 15px 17px; border-bottom: 1px solid #eee8d6; text-align: left; vertical-align: top; }.privacy-table th { color: #765f2b; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }.privacy-table tr:last-child td { border-bottom: 0; }.privacy-table td { color: #61746f; line-height: 1.55; }.privacy-table code { color: #173f3b; font-weight: 800; }.privacy-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 980px; margin: 58px auto 20px; padding: 38px 44px; border-radius: 25px; background: #173f3b; color: white; }.privacy-contact-card h2 { margin: 4px 0; color: white; font: 800 32px 'Baloo 2',sans-serif; }.privacy-contact-card p:last-child { margin: 0; color: #b9d0cc; }.privacy-footer { max-width: 980px; margin: 55px auto 0; }.course-policy-footer { padding: 12px 0 35px; text-align: center; }.course-policy-footer a { color: #607974; font-size: 11px; font-weight: 800; }
html[data-theme='dark'] .privacy-page { background: #101b1a; color: #edf7f5; }html[data-theme='dark'] .privacy-section { border-color: #2a403b; }html[data-theme='dark'] .privacy-section h2,html[data-theme='dark'] .privacy-section h3,html[data-theme='dark'] .privacy-check-list strong { color: #edf7f5; }html[data-theme='dark'] .privacy-section p,html[data-theme='dark'] .privacy-data-grid p,html[data-theme='dark'] .privacy-provider-list span,html[data-theme='dark'] .privacy-check-list li { color: #b5c9c5; }html[data-theme='dark'] .privacy-data-grid article,html[data-theme='dark'] .privacy-provider-list a,html[data-theme='dark'] .privacy-flow > div,html[data-theme='dark'] .privacy-check-list li,html[data-theme='dark'] .privacy-table-wrap { border-color: #304640; background: #1c2d2a; }html[data-theme='dark'] .privacy-legal-bases,html[data-theme='dark'] .privacy-cookie-section { background: #382f20; }html[data-theme='dark'] .privacy-speech-section { background: #18342f; }html[data-theme='dark'] .privacy-table th,html[data-theme='dark'] .privacy-table td { border-color: #3a4437; }html[data-theme='dark'] .privacy-table td { color: #b9cbc7; }html[data-theme='dark'] .privacy-table code { color: #edf7f5; }html[data-theme='dark'] .privacy-contents { border-color: #30453f; background: rgba(23,38,35,.95); }html[data-theme='dark'] .privacy-contents a { color: #b7cbc6; }html[data-theme='dark'] .privacy-note { background: #2d2b21; }
@media (max-width: 760px) { .privacy-page #app { padding: 0 16px 35px; }.privacy-hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 43px 25px; border-radius: 25px; }.privacy-hero h1 { font-size: 47px; }.privacy-lead { font-size: 15px; }.privacy-contents { position: static; margin: 16px auto 20px; border-radius: 21px; }.privacy-section,.privacy-speech-section,.privacy-cookie-section { grid-template-columns: 1fr; gap: 14px; padding: 42px 3px; border-radius: 0; }.privacy-speech-section,.privacy-cookie-section { margin-top: 18px; padding: 38px 22px; border-radius: 23px; }.privacy-section h2 { font-size: 31px; }.privacy-data-grid,.privacy-provider-list { grid-template-columns: 1fr; }.privacy-flow { grid-template-columns: 1fr; }.privacy-flow i { text-align: center; transform: rotate(90deg); }.privacy-flow > div { min-height: 0; }.privacy-contact-card { align-items: stretch; flex-direction: column; padding: 30px 25px; }.privacy-contact-card .primary-btn { text-align: center; }.landing-footer-links { align-items: flex-end; flex-direction: column; gap: 5px; }.privacy-footer > span { display: none; } }
.auth-simple-card { max-width: 470px; margin: 48px auto 0; border-radius: 28px; box-shadow: 0 28px 80px rgba(31,42,68,.14); }
.auth-simple-card .registration-heading { text-align: center; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.registration-card input:focus, .registration-card select:focus {
  border-color: #3ca7bd;
  background: white;
  box-shadow: 0 0 0 4px rgba(60,167,189,.13);
}
.student-choice {
  margin: 2px 0 18px;
  padding: 0;
  border: 0;
}
.student-choice legend { margin-bottom: 8px; padding: 0; color: #34425c; font-size: 13px; font-weight: 800; }
.student-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.student-choice label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border: 1.5px solid #dce7ee;
  border-radius: 13px;
  background: #f9fbfc;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.student-choice label:hover { border-color: #a8d4dd; background: white; }
.student-choice label:has(input:checked) { border-color: #3ca7bd; background: #eef9fb; box-shadow: 0 0 0 3px rgba(60,167,189,.1); }
.student-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-icon { font-size: 23px; }
.choice-copy { display: flex; min-width: 0; flex-direction: column; }
.choice-copy strong { color: var(--navy); font-size: 13px; }
.choice-copy small { color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.registration-submit { margin-top: 8px; }
.registration-submit .primary-btn { display: flex; justify-content: center; width: 100%; border-radius: 12px; }
.registration-submit .primary-btn span { margin-left: 8px; }
.registration-card .primary-btn { text-decoration: none; }
.registration-success-card { max-width: 620px; margin: 50px auto 0; border-radius: 28px; box-shadow: 0 28px 80px rgba(31,42,68,.14); text-align: center; }
.registration-success-card .wizard-actions { justify-content: center; }
.danger-zone { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.danger-zone > .danger { font-size: 13px; }
.danger-zone #delete-account-panel { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--bad-tint); text-align: left; }
.danger-zone #delete-account-panel > p:first-child { margin-top: 0; color: var(--bad); font-size: 13px; font-weight: 700; }
.admin-page { background: #f3f7f9; }
.admin-page #app { max-width: 1320px; }
.admin-screen { max-width: 1240px; margin: 0 auto; }
.admin-heading { margin: 28px 0 22px; }
.admin-heading h1 { margin: 3px 0; font-size: 38px; }
.admin-heading > p:last-child { margin: 0; color: var(--muted); }
.admin-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.admin-metrics article, .admin-card { padding: 22px; border: 1px solid #e1e9ee; border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(31,42,68,.06); }
.admin-metrics strong { display: block; color: var(--navy); font: 800 30px 'Baloo 2', sans-serif; }
.admin-metrics span { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-grid { display: grid; grid-template-columns: 310px 1fr; gap: 16px; margin-top: 16px; }
.admin-card h2 { margin: 0 0 14px; font-size: 20px; }
.institution-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1f4; font-size: 13px; }
.institution-row span { color: #455269; }
.admin-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-table-heading h2 { margin-bottom: 0; }
.admin-table-heading p { margin: 2px 0 14px; color: var(--muted); font-size: 12px; }
.admin-table-heading input { width: 220px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.admin-table-wrap { overflow-x: auto; }
.admin-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-card th, .admin-card td { padding: 11px 9px; border-bottom: 1px solid #edf1f4; text-align: left; vertical-align: top; white-space: pre-line; }
.admin-card th { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.admin-user-cell { min-width: 180px; font-weight: 700; }
@media (max-width: 900px) { .admin-metrics { grid-template-columns: repeat(2, 1fr); } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .field-row { flex-direction: column; gap: 0; }
  .registration-layout { display: block; margin-top: 10px; }
  .registration-hero { min-height: auto; padding: 30px 24px; }
  .registration-hero h1 { font-size: 30px; }
  .registration-benefits { display: none; }
  .registration-card { padding: 30px 22px; }
  .student-choice-grid { grid-template-columns: 1fr; }
}

/* Shared modern application shell and colour themes */
html { color-scheme: light; }
body:not(.landing-page):not(.registration-page):not(.admin-page) {
  background:
    radial-gradient(circle at 8% 4%, rgba(238,104,79,.12), transparent 260px),
    radial-gradient(circle at 94% 18%, rgba(65,151,137,.13), transparent 320px),
    #f4f8f7;
}
body:not(.landing-page):not(.registration-page):not(.admin-page) #app { max-width: 960px; padding: 0 28px 70px; }
body:not(.landing-page):not(.registration-page):not(.admin-page) .topbar {
  position: sticky; z-index: 20; top: 0; margin: 0 -28px 24px; padding: 18px 28px;
  border-bottom: 0; background: rgba(244,248,247,.84); backdrop-filter: blur(18px);
}
body:not(.landing-page):not(.registration-page):not(.admin-page) .brand { font-size: 20px; }
body:not(.landing-page):not(.registration-page):not(.admin-page) .screen:not(.hidden) { animation: screen-enter .25s ease both; }
body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-menu,
body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-dashboard,
body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-setup {
  padding: 32px; border: 1px solid rgba(23,59,56,.07); border-radius: 28px; background: rgba(255,255,255,.76);
  box-shadow: 0 18px 50px rgba(23,59,56,.07); backdrop-filter: blur(12px);
}
@keyframes screen-enter { from { opacity: 0; transform: translateY(5px); } }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--navy);
  font: 800 12px 'Nunito', sans-serif; cursor: pointer; box-shadow: var(--shadow);
}
.theme-toggle span:first-child { font-size: 16px; line-height: 1; }
.theme-toggle:hover { border-color: #9bb6b2; transform: translateY(-1px); }
.mode-card, .stat-card, .number-learning-card, .sentence-card, .quiz-card { border: 1px solid rgba(23,59,56,.06); }
.mode-card { min-height: 104px; padding: 21px; border-radius: 17px; }
.mode-card:hover:not(.disabled) { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23,59,56,.1); }
.featured-guided-mode {
  position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto; align-items: center; column-gap: 20px; min-height: 180px;
  padding: 29px 31px; overflow: hidden; border: 0; background: linear-gradient(125deg,#173b38 0%,#245c55 100%);
  color: white; box-shadow: 0 18px 42px rgba(23,59,56,.2); text-align: left;
}
.featured-guided-mode::after { content: ''; position: absolute; right: -35px; bottom: -75px; width: 210px; height: 210px; border-radius: 50%; background: rgba(238,104,79,.28); }
.featured-guided-mode:hover:not(.disabled) { box-shadow: 0 24px 52px rgba(23,59,56,.27); }
.featured-guided-mode .recommended-label { grid-column: 1 / -1; width: max-content; margin-bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.13); color: #b9ded8; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.featured-guided-mode .mode-icon { grid-row: 2 / 4; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 19px; background: #ee684f; font-size: 31px; }
.featured-guided-mode strong { grid-column: 2; align-self: end; color: white; font-size: 25px; }
.featured-guided-mode > span:not(.mode-icon):not(.recommended-label):not(.guided-mode-cta) { grid-column: 2; align-self: start; color: #b9cfcc; font-size: 13px; }
.guided-mode-cta { position: relative; z-index: 1; grid-column: 3; grid-row: 2 / 4; display: flex; align-items: center; gap: 18px; padding: 13px 16px; border-radius: 11px; background: white; color: #173b38 !important; font-size: 12px !important; font-weight: 900; }
.guided-mode-cta b { font-size: 17px; }
.stat-card { padding: 21px 10px; border-radius: 17px; box-shadow: 0 8px 24px rgba(23,59,56,.06); }
.quiz-card { padding: 38px 32px; border-radius: 26px; box-shadow: 0 18px 50px rgba(23,59,56,.08); }
.option-btn { border-width: 1.5px; border-radius: 14px; transition: background .15s, border-color .15s, transform .15s; }
.option-btn:hover:not(:disabled) { transform: translateY(-1px); }
.registration-page .topbar, .admin-page .topbar { position: relative; z-index: 3; }
.registration-page .theme-toggle, .admin-page .theme-toggle { box-shadow: none; }

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #142321;
  --card-bg: #1c2d2a;
  --navy: #edf7f5;
  --muted: #9db1ad;
  --border: #314641;
  --coral: #ff8068;
  --coral-dark: #ff9a87;
  --coral-tint: #492b27;
  --good: #6ed3a3;
  --good-tint: #173b2d;
  --bad: #ff8a83;
  --bad-tint: #432725;
  --shadow: 0 10px 28px rgba(0,0,0,.22);
}
html[data-theme='dark'] body { background-color: #101b1a; color: var(--navy); }
html[data-theme='dark'] body:not(.landing-page):not(.registration-page):not(.admin-page) {
  background:
    radial-gradient(circle at 8% 4%, rgba(255,128,104,.1), transparent 260px),
    radial-gradient(circle at 94% 18%, rgba(65,151,137,.1), transparent 320px), #101b1a;
}
html[data-theme='dark'] body:not(.landing-page):not(.registration-page):not(.admin-page) .topbar { background: rgba(16,27,26,.86); border-color: #263a36; }
html[data-theme='dark'] .featured-guided-mode { background: linear-gradient(125deg,#23534d,#173b38); border-color: transparent; }
html[data-theme='dark'] body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-menu,
html[data-theme='dark'] body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-dashboard,
html[data-theme='dark'] body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-setup { background: rgba(27,44,41,.82); border-color: #2b403c; }
html[data-theme='dark'] .landing-page { background: #101b1a; color: #edf7f5; }
html[data-theme='dark'] .landing-topbar, html[data-theme='dark'] .landing-paths, html[data-theme='dark'] .landing-footer { border-color: #293d39; }
html[data-theme='dark'] .landing-brand, html[data-theme='dark'] .landing-hero h1, html[data-theme='dark'] .section-intro h2 { color: #edf7f5; }
html[data-theme='dark'] .brand-mark { background: #edf7f5; color: #173b38; }
html[data-theme='dark'] .landing-login, html[data-theme='dark'] .landing-text-link { color: #bcd1cd; }
html[data-theme='dark'] .landing-hero-copy > p, html[data-theme='dark'] .path-card p { color: #9db1ad; }
html[data-theme='dark'] .landing-trust-row span { border-color: #314641; color: #91a6a2; }
html[data-theme='dark'] .landing-trust-row b { color: #dceae7; }
html[data-theme='dark'] .landing-visual { background: #1a3934; }
html[data-theme='dark'] .visual-card { background: rgba(28,45,42,.97); border-color: #344b46; }
html[data-theme='dark'] .visual-card-main > strong { color: #edf7f5; }
html[data-theme='dark'] .visual-progress { background: #344944; }
html[data-theme='dark'] .path-vocabulary { background: #193833; }
html[data-theme='dark'] .path-numbers { background: #3b3026; }
html[data-theme='dark'] .path-card { color: #edf7f5; }
html[data-theme='dark'] .path-arrow, html[data-theme='dark'] .path-card li { background: rgba(255,255,255,.09); color: #dceae7; }
html[data-theme='dark'] .registration-page {
  background: radial-gradient(circle at 10% 10%, rgba(53,120,111,.2), transparent 300px), linear-gradient(145deg,#101b1a,#142724);
}
html[data-theme='dark'] .registration-layout { border-color: #314641; background: rgba(22,38,35,.75); }
html[data-theme='dark'] .registration-card, html[data-theme='dark'] .admin-card, html[data-theme='dark'] .admin-metrics article { background: #1c2d2a; border-color: #314641; }
html[data-theme='dark'] .registration-card input, html[data-theme='dark'] .registration-card select,
html[data-theme='dark'] .admin-table-heading input, html[data-theme='dark'] .text-answer { background: #142421; border-color: #344a45; color: #edf7f5; }
html[data-theme='dark'] .registration-card .field-label, html[data-theme='dark'] .student-choice legend { color: #dce9e6; }
html[data-theme='dark'] .student-choice label { background: #172824; border-color: #344a45; }
html[data-theme='dark'] .student-choice label:has(input:checked) { background: #193833; }
html[data-theme='dark'] .choice-copy strong { color: #edf7f5; }
html[data-theme='dark'] .admin-page { background: #101b1a; }
html[data-theme='dark'] .admin-heading h1, html[data-theme='dark'] .admin-metrics strong { color: #edf7f5; }
html[data-theme='dark'] .admin-card th, html[data-theme='dark'] .admin-card td, html[data-theme='dark'] .institution-row { border-color: #30443f; }
html[data-theme='dark'] .institution-row span { color: #b2c4c0; }
html[data-theme='dark'] .option-btn { background: #172724; border-color: #344943; color: #edf7f5; }
html[data-theme='dark'] .option-btn:hover:not(:disabled) { background: #213632; }
html[data-theme='dark'] .option-letter { background: #2a403b; color: #edf7f5; }
html[data-theme='dark'] .pass-rule { border-color: #755f28; background: #332c1b; color: #edf7f5; }
html[data-theme='dark'] .sentence-focus { background: #1b3851; color: #9bc8ef; }
html[data-theme='dark'] .sentence-dutch, html[data-theme='dark'] .prompt-word { color: #edf7f5; }
html[data-theme='dark'] .quiz-feedback.almost { background: #3a321d; color: #f4ce76; }
html[data-theme='dark'] .special-card { border-color: #a84d57; background: linear-gradient(180deg,#1c2d2a,#342526); }
@media (max-width: 600px) {
  body:not(.landing-page):not(.registration-page):not(.admin-page) #app { padding: 0 16px 45px; }
  body:not(.landing-page):not(.registration-page):not(.admin-page) .topbar { position: relative; margin: 0 -16px 15px; padding: 16px; }
  body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-menu,
  body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-dashboard,
  body:not(.landing-page):not(.registration-page):not(.admin-page) #screen-setup { padding: 22px 18px; border-radius: 21px; }
  .theme-toggle span:last-child { display: none; }
  .theme-toggle { width: 38px; justify-content: center; padding: 8px; }
  .featured-guided-mode { display: flex; align-items: flex-start; min-height: 245px; padding: 24px; }
  .featured-guided-mode .recommended-label { margin-bottom: 3px; }
  .featured-guided-mode .mode-icon { width: 56px; height: 56px; margin-top: 10px; }
  .featured-guided-mode strong { font-size: 23px; }
  .guided-mode-cta { align-self: stretch; justify-content: space-between; margin-top: 9px; }
}
@media (min-width: 561px) and (max-width: 820px) {
  .registration-layout { grid-template-columns: .75fr 1.25fr; }
  .registration-hero { padding: 36px 26px; }
  .registration-hero h1 { font-size: 32px; }
  .registration-card { padding: 38px 30px; }
  .student-choice-grid { grid-template-columns: 1fr; }
}
.accountability-status .wizard-actions { margin-top: 12px; flex-wrap: wrap; }
.accountability-summary, #accountability-summary { font-size: 14.5px; color: var(--navy); margin: 0; }
.accountability-message {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.accountability-message.good { background: var(--good-tint); color: var(--good); }
.accountability-message.bad { background: var(--bad-tint); color: var(--bad); }
.ghost-btn.danger { color: var(--bad); }

/* Quiz */
.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.progress-track {
  flex: 1;
  height: 10px;
  background: #e3edf3;
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--coral); width: 0%; transition: width 0.2s; border-radius: 6px; }
#quiz-progress-label { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }

.quiz-meta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.quiz-meta span {
  background: var(--card-bg);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.quiz-streak b { color: var(--coral); }
.quiz-earned b { color: var(--gold); }

.quiz-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 32px 26px;
  margin-top: 16px;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}

.prompt-instruction {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.prompt-word { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.prompt-romanization { color: var(--muted); font-size: 16px; margin-top: 6px; font-style: italic; }

.quiz-question { width: 100%; }

.quiz-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.option-btn {
  background: #f6fafd;
  border: 2px solid var(--border);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.option-btn:hover:not(:disabled) { border-color: var(--coral); background: #fff; }
.option-letter {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.option-btn.correct { background: var(--good-tint); border-color: var(--good); color: var(--good); }
.option-btn.correct .option-letter { background: var(--good); color: white; }
.option-btn.incorrect { background: var(--bad-tint); border-color: var(--bad); color: var(--bad); }
.option-btn.incorrect .option-letter { background: var(--bad); color: white; }
.option-btn:disabled { cursor: default; }

.text-answer {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  outline: none;
}
.text-answer:focus { border-color: var(--coral); }
.text-answer.correct { border-color: var(--good); background: var(--good-tint); color: var(--good); }
.text-answer.incorrect { border-color: var(--bad); background: var(--bad-tint); color: var(--bad); }
.quiz-controls .primary-btn { align-self: center; margin-top: 4px; }

.quiz-feedback {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz-feedback.good { background: var(--good-tint); color: var(--good); }
.quiz-feedback.almost { background: #fff7df; color: #8a6414; }
.quiz-feedback.bad { background: var(--bad-tint); color: var(--bad); }

.speak-btn { margin-top: 10px; font-size: 13.5px; padding: 8px 14px; }
.quiz-feedback .speak-btn { margin-top: 0; }

.quiz-footer { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Guided Dutch number lessons */
.lesson-eyebrow {
  margin: 24px 0 4px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pass-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #f0c86e;
  border-radius: 14px;
  background: #fff8e7;
  color: var(--navy);
  font-size: 14px;
}
.pass-rule strong { white-space: nowrap; }
.number-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.number-learning-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
.number-learning-digit {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  color: var(--coral);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}
.number-learning-word { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.combination-word { display: flex; flex-wrap: wrap; font-size: 17px; font-weight: 800; }
.combination-unit { color: #2563a8; }
.combination-connector { color: #d05a3f; }
.combination-ten { color: #628329; }
.combination-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
}
.combination-key span::before { content: '●'; margin-right: 5px; }
.sentence-grid { display: grid; gap: 12px; margin: 20px 0; }
.sentence-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
.sentence-focus {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #2563a8;
  font-size: 12px;
  font-weight: 800;
}
.sentence-dutch { margin: 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.sentence-english { margin: 8px 0 0; color: var(--muted); }
.number-audio-btn { padding: 8px 11px; font-size: 16px; }
.guided-actions { justify-content: space-between; align-items: center; }
.result-icon { margin-top: 44px; font-size: 48px; text-align: center; }
.guided-stat-grid { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
.guided-result-actions { flex-wrap: wrap; }
.guest-complete-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(238,104,79,.28);
  border-radius: 16px;
  background: rgba(238,104,79,.08);
}
.guest-complete-banner strong { color: var(--navy); font-size: 15px; }
.guest-complete-banner span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.guest-complete-banner .primary-btn { margin-top: 6px; text-decoration: none; }
html[data-theme='dark'] .guest-complete-banner { border-color: rgba(238,104,79,.4); background: rgba(238,104,79,.14); }
.text-btn {
  margin-top: 18px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 13px 'Nunito', sans-serif;
  cursor: pointer;
  text-decoration: underline;
}
@media (max-width: 560px) {
  .number-learning-grid { grid-template-columns: 1fr; }
  .number-learning-card { grid-template-columns: 40px 1fr auto; }
  .guided-actions { align-items: stretch; flex-direction: column-reverse; }
  .guided-actions .primary-btn, .guided-actions .ghost-btn { width: 100%; }
  .pass-rule { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Keep component colours dark after all component-specific declarations. */
html[data-theme='dark'] .quiz-card,
html[data-theme='dark'] .stat-card,
html[data-theme='dark'] .mode-card,
html[data-theme='dark'] .number-learning-card,
html[data-theme='dark'] .sentence-card,
html[data-theme='dark'] .quiz-meta span,
html[data-theme='dark'] .accountability-card { background: #1c2d2a; border-color: #314641; }
html[data-theme='dark'] .option-btn { background: #172724; border-color: #344943; color: #edf7f5; }
html[data-theme='dark'] .option-btn:hover:not(:disabled) { background: #213632; }
html[data-theme='dark'] .option-letter { background: #2a403b; color: #edf7f5; }
html[data-theme='dark'] .text-answer { background: #142421; border-color: #344a45; color: #edf7f5; }
html[data-theme='dark'] .pass-rule { border-color: #755f28; background: #332c1b; color: #edf7f5; }
html[data-theme='dark'] .sentence-focus { background: #1b3851; color: #9bc8ef; }
html[data-theme='dark'] .sentence-dutch,
html[data-theme='dark'] .prompt-word { color: #edf7f5; }
html[data-theme='dark'] .quiz-feedback.almost { background: #3a321d; color: #f4ce76; }
html[data-theme='dark'] .progress-track { background: #2b403c; }
html[data-theme='dark'] .mode-card.featured-guided-mode {
  background: linear-gradient(125deg,#23534d,#173b38); border-color: transparent;
}

/* Three-quiz guest access */
.guest-signup-overlay {
  position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(9,24,22,.62); opacity: 0; visibility: hidden; backdrop-filter: blur(8px);
  transition: opacity .18s, visibility .18s;
}
.guest-signup-overlay.visible { opacity: 1; visibility: visible; }
.guest-signup-dialog {
  position: relative; width: min(100%, 470px); padding: 39px 38px 34px; border: 1px solid rgba(23,59,56,.09);
  border-radius: 26px; background: var(--card-bg); box-shadow: 0 30px 90px rgba(4,20,18,.28); text-align: center;
  transform: translateY(8px) scale(.98); transition: transform .18s;
}
.guest-signup-overlay.visible .guest-signup-dialog { transform: translateY(0) scale(1); }
.guest-dialog-close { position: absolute; top: 13px; right: 15px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.guest-dialog-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 19px; background: var(--coral-tint); font-size: 29px; transform: rotate(-3deg); }
.guest-signup-dialog .lesson-eyebrow { margin-top: 0; }
.guest-signup-dialog h2 { margin: 7px 0 9px; color: var(--navy); font-size: 28px; line-height: 1.1; }
.guest-signup-dialog > p:not(.lesson-eyebrow) { margin: 0 auto 25px; color: var(--muted); line-height: 1.6; }
.guest-signup-dialog .primary-btn { display: block; width: 100%; border-radius: 12px; text-decoration: none; }
.guest-login-link { display: inline-block; margin-top: 17px; color: var(--muted); font-size: 13px; font-weight: 800; }
html[data-theme='dark'] .guest-signup-dialog { border-color: #344943; background: #1c2d2a; }
@media (max-width: 520px) { .guest-signup-dialog { padding: 34px 23px 27px; }.guest-signup-dialog h2 { font-size: 24px; } }

/* Personal learning dashboard */
.dashboard-page { background: #f4f8f7; }
.dashboard-page #app { max-width: 1120px; padding: 0 28px 60px; }
.dashboard-topbar { padding: 22px 0; border-bottom: 0; }
.dashboard-main { padding-top: 28px; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 36px 39px; border-radius: 25px; background: #173b38; color: white; overflow: hidden; }
.dashboard-welcome .lesson-eyebrow { margin: 0 0 4px; color: #83b8b0; }
.dashboard-welcome h1 { margin: 0; font: 800 40px/1.1 'Baloo 2', sans-serif; }
.dashboard-welcome h1 span { color: #ff8068; }
.dashboard-welcome p:last-child { margin: 6px 0 0; color: #b7ceca; }
.dashboard-streak-badge { display: grid; grid-template-columns: auto auto; align-items: center; min-width: 125px; padding: 14px 18px; border-radius: 17px; background: rgba(255,255,255,.09); }
.dashboard-streak-badge > span { grid-row: 1 / 3; margin-right: 10px; font-size: 26px; }.dashboard-streak-badge strong { font-size: 23px; line-height: 1; }.dashboard-streak-badge small { color: #a9c2be; }
.dashboard-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 18px 0 40px; }
.dashboard-overview article { padding: 22px 24px; border: 1px solid #e0e9e7; border-radius: 17px; background: white; box-shadow: 0 8px 25px rgba(23,59,56,.05); }
.dashboard-overview span, .dashboard-overview small { display: block; }.dashboard-overview span { color: #6f8581; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }.dashboard-overview strong { display: block; margin: 4px 0 0; color: #173b38; font: 800 30px 'Baloo 2',sans-serif; }.dashboard-overview small { color: #91a19e; font-size: 10px; }
.dashboard-section-heading h2 { margin: 4px 0 18px; color: #173b38; font: 800 30px 'Baloo 2',sans-serif; }.dashboard-section-heading .lesson-eyebrow { margin-bottom: 0; }
.dashboard-course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dashboard-course { min-height: 390px; padding: 29px; border-radius: 23px; color: #173b38; text-decoration: none; transition: transform .2s,box-shadow .2s; }.dashboard-course:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(23,59,56,.12); }
.course-words { background: #dcefe9; }.course-numbers { background: #f5e7d7; }.course-top { display: flex; align-items: center; justify-content: space-between; }.course-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 17px; background: #173b38; color: white; font: 800 23px 'Baloo 2',sans-serif; transform: rotate(-3deg); }.course-numbers .course-icon { background: #ee684f; transform: rotate(3deg); }
.course-label { display: block; margin-top: 24px; color: #708681; font-size: 9px; font-weight: 900; letter-spacing: .1em; }.dashboard-course h3 { margin: 5px 0 7px; font: 800 28px 'Baloo 2',sans-serif; }.dashboard-course > p { margin: 0; color: #607570; line-height: 1.55; }.course-progress { margin-top: 25px; }.course-progress > span { display: block; height: 7px; overflow: hidden; border-radius: 8px; background: rgba(23,59,56,.12); }.course-progress i { display: block; height: 100%; border-radius: inherit; background: #ee684f; }.course-progress small { display: block; margin-top: 7px; color: #718580; }
.course-features { display: flex; gap: 7px; margin-top: 25px; }.course-features span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.56); color: #657872; font-size: 10px; font-weight: 800; }.course-action { display: block; margin-top: 26px; font-size: 13px; }
html[data-theme='dark'] .dashboard-page { background: #101b1a; }.dashboard-page .theme-toggle { box-shadow: none; }
html[data-theme='dark'] .dashboard-overview article { border-color: #314641; background: #1c2d2a; }.dashboard-overview strong { color: #173b38; }html[data-theme='dark'] .dashboard-overview strong,html[data-theme='dark'] .dashboard-section-heading h2 { color: #edf7f5; }
html[data-theme='dark'] .course-words { background: #193833; }html[data-theme='dark'] .course-numbers { background: #3b3026; }html[data-theme='dark'] .dashboard-course { color: #edf7f5; }html[data-theme='dark'] .dashboard-course > p { color: #a7bbb7; }html[data-theme='dark'] .course-features span { background: rgba(255,255,255,.08); color: #c1d1ce; }
@media (max-width: 700px) { .dashboard-page #app { padding: 0 17px 45px; }.dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 29px 25px; }.dashboard-welcome h1 { font-size: 32px; }.dashboard-overview { grid-template-columns: 1fr; }.dashboard-course-grid { grid-template-columns: 1fr; }.dashboard-topbar .ghost-btn { padding: 8px 10px; font-size: 11px; } }
.privacy-choice-panel { position:fixed; z-index:10000; right:18px; bottom:18px; left:18px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; max-width:920px; margin:auto; padding:22px; border:1px solid #b8cbc7; border-radius:16px; background:#fff; color:#173b38; box-shadow:0 14px 45px rgba(17,45,42,.2); }
.privacy-choice-copy strong { display:block; margin-bottom:4px; font:800 1.25rem 'Baloo 2',sans-serif; }
.privacy-choice-copy p { margin:0; font-size:.9rem; line-height:1.5; }
.privacy-choice-copy a { display:inline-block; margin-top:6px; color:#244c48; font-size:.875rem; font-weight:800; }
.privacy-choice-copy .privacy-signal-note { margin-top:7px; font-weight:800; }
.privacy-choice-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; min-width:350px; }
.privacy-choice-button { min-height:46px; padding:10px 15px; border:2px solid #244c48; border-radius:10px; background:#f7faf9; color:#173b38; font:800 .9rem 'Nunito',sans-serif; cursor:pointer; }
.privacy-choice-button:hover { background:#e5f1ee; }
.privacy-choice-button:focus-visible,.privacy-choice-close:focus-visible,#change-privacy-choice:focus-visible { outline:3px solid #ee684f; outline-offset:3px; }
.privacy-choice-button:disabled { cursor:not-allowed; opacity:.5; }
.privacy-choice-close { grid-column:1/-1; padding:5px; border:0; background:transparent; color:inherit; text-decoration:underline; cursor:pointer; }
[data-theme="dark"] .privacy-choice-panel { background:#193b38; color:#eff8f6; border-color:#547873; }
[data-theme="dark"] .privacy-choice-copy a { color:#b9e3dc; }
[data-theme="dark"] .privacy-choice-button { background:#234844; color:#fff; border-color:#b9e3dc; }
[data-theme="dark"] .privacy-choice-button:hover { background:#2e5a55; }
@media(max-width:720px) { .privacy-choice-panel { grid-template-columns:1fr; gap:15px; padding:18px; }.privacy-choice-actions { min-width:0; }.privacy-choice-button { min-height:50px; } }
