:root {
  --blue: #0264D9; --blue-d: #014ba3; --blue-l: #e6f0fd;
  --ink: #13294B; --ink-2: #4a5872; --line: #dfe5ee; --bg: #f5f7fb; --card: #fff;
  --green: #12813d; --green-l: #e3f6ea; --yellow: #8a6500; --yellow-l: #fff4cc; --calm: #1d4f91; --calm-l: #e4eefc;
  --gold: #f5b800; --radius: 18px; --shadow: 0 2px 0 rgba(19,41,75,.08), 0 6px 18px rgba(19,41,75,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef2f8; --ink-2: #b4bfd1; --line: #2c3a52; --bg: #0e1726; --card: #17233a; --blue-l: #13325c;
    --green-l: #123d26; --green: #6fdc9b; --yellow-l: #3d3210; --yellow: #ffd667; --calm-l: #173257; --calm: #a9cbff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-size: 18px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
[lang="ar"], [lang="fa-AF"], [lang="ps"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.screen { flex: 1; padding: 20px 18px 110px; display: flex; flex-direction: column; gap: 18px; }
.splash { flex: 1; display: grid; place-items: center; }
.splash img { border-radius: 22px; }
h1 { font-size: 30px; margin: 0; line-height: 1.2; }
h2 { font-size: 22px; margin: 0; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0; }
.small { font-size: 15px; color: var(--ink-2); }
.eyebrow { font-size: 14px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* Norsk + hjelpespråk */
.bi { display: inline-flex; flex-direction: column; gap: 1px; align-items: flex-start; }
.bi .nb { font-weight: inherit; }
.help, .tr { display: block; text-align: match-parent; font-size: .78em; color: var(--ink-2); font-weight: 400; }
.btn .help { color: inherit; opacity: .82; }
.tr-prompt, .tr-intro { font-size: 20px; text-align: center; }

/* Knapper */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 20px; border-radius: 16px;
  border: 0; font-weight: 700; font-size: 19px; cursor: pointer; text-align: center; text-decoration: none; width: 100%; }
.btn .bi, .tab .bi, .rs .bi, .big-count .bi, .intro-card .bi, .mic-help .bi, .speak-status .bi, .pill .bi, .letter-group .bi { align-items: center; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-d); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--blue-d); }
.btn-primary:disabled { background: #b9c6d8; box-shadow: none; color: #fff; cursor: default; }
.btn-secondary { background: var(--card); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:disabled { color: var(--ink-2); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-big { min-height: 64px; font-size: 21px; }
.link-btn { background: none; border: 0; color: var(--blue); padding: 10px; cursor: pointer; font-size: 16px; min-height: 44px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon { width: 24px; height: 24px; flex: none; }
.topbar { display: flex; align-items: center; margin: -8px 0 -6px -8px; }

/* Velkommen og innlogging */
.welcome { align-items: center; text-align: center; justify-content: center; padding-bottom: 40px; }
.logo { border-radius: 24px; box-shadow: var(--shadow); }
.lang-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.lang-btn { min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-size: 22px; font-weight: 600; cursor: pointer; }
.lang-btn:hover { border-color: var(--blue); }
.lang-nb { border-style: dashed; }
.lang-pictures { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--blue-l); border-color: var(--blue); }
.pic-mode-icons { font-size: 30px; }
.field-icon { margin-inline-end: 6px; }
.field label { display: flex; align-items: flex-start; }
.auth { padding-bottom: 40px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 16px; padding: 4px; border: 1px solid var(--line); }
.tab { border: 0; background: transparent; border-radius: 12px; min-height: 56px; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--blue); color: #fff; }
.tab.active .help { color: #fff; opacity: .85; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select { min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); padding: 0 14px; font-size: 20px; }
#pin, #pin2 { letter-spacing: .5em; font-size: 26px; }
.form-error { color: #b42318; min-height: 1px; }
.username { font-weight: 800; }

/* Hjem */
.home-head { display: flex; justify-content: space-between; align-items: center; }
.hello { font-size: 26px; font-weight: 800; }
.chips { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--card); font-weight: 700; box-shadow: var(--shadow); }
.chip .icon { width: 20px; height: 20px; color: var(--gold); }
.chip.fire .icon { color: #ff7a1a; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 26px; }
.stat-label { font-size: 13px; color: var(--ink-2); align-items: center; }
.path { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.path::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 4px; background: var(--line); border-radius: 2px; }
.station { position: relative; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 6px 0; }
.st-dot { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 3px solid var(--line);
  font-weight: 800; font-size: 20px; color: var(--ink-2); z-index: 1; }
.station.done .st-dot { background: var(--green); border-color: var(--green); color: #fff; }
.station.current .st-dot { background: var(--blue); border-color: var(--blue); color: #fff; width: 64px; height: 64px; margin-left: -4px; animation: pulse 2.4s infinite; }
.station.locked { opacity: .55; }
.station.locked .st-dot .icon { width: 20px; height: 20px; }
.st-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.station.current .st-body { background: var(--card); padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.st-level { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; }
.st-title { font-weight: 700; }
.st-cur { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.st-soon { font-size: 13px; color: var(--ink-2); }
.ch-dots { display: flex; gap: 6px; }
.ch-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.ch-dot.on { background: var(--green); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(2,100,217,.35); } 50% { box-shadow: 0 0 0 10px rgba(2,100,217,0); } }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring-text { font-size: 22px; font-weight: 800; fill: var(--ink); }
.ios-hint { background: var(--blue-l); border-radius: 16px; padding: 12px 14px; }

/* Navigasjon */
.navbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 64px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav-item.active { color: var(--blue); font-weight: 700; }
.nav-label { align-items: center; text-align: center; }
.nav-label .help { font-size: 11px; }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 8px); background: #ff7a1a; color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }

/* Nivå */
.level-head { display: flex; gap: 16px; align-items: center; }
.level-title { font-size: 24px; font-weight: 800; }
.chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.chapter { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.chapter.locked { opacity: .6; }
.ch-head { display: flex; gap: 12px; align-items: center; }
.ch-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.chapter.passed .ch-num { background: var(--green); color: #fff; }
.ch-title { font-weight: 700; font-size: 19px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--blue); background: var(--card); color: var(--blue); font-weight: 700; cursor: pointer; font-size: 16px; }
.pill .icon { width: 18px; height: 18px; }
.pill.done { background: var(--green-l); border-color: var(--green); color: var(--green); }
.pill:disabled { border-color: var(--line); color: var(--ink-2); cursor: default; }
.pill.test .bi { flex-direction: row; gap: 6px; }
.pill.test .help { font-size: 13px; }
.pill .best { font-size: 13px; opacity: .8; }
.demo-chip { display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; background: #ffe7b3; color: #7a4d00; font-size: 12px; font-weight: 800; text-transform: none; vertical-align: middle; }
.rule-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.rule-text { font-size: 21px; font-weight: 600; margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.rule-examples { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 19px; }
.rule-examples li { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ex-left { align-items: stretch; }
.question { font-size: 21px; font-weight: 700; margin: 0; display: flex; gap: 10px; align-items: center; }
.hint { margin: 0; color: var(--ink-2); font-size: 17px; }
.gap-sentence, .quote { font-size: 24px; font-weight: 600; text-align: center; margin: 8px 0; line-height: 1.5; }
.gap { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--blue); color: transparent; }
.quote mark { background: #fff1b8; padding: 0 4px; border-radius: 4px; color: #13294B; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.choices.sentences .choice, .choices.list .choice { font-size: 20px; text-align: start; }
.type-area { min-height: 90px; font-family: inherit; font-size: 20px; font-weight: 600; text-align: start; padding: 12px; resize: vertical; }
.token-line { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 0; }
.token { min-height: 56px; font-size: 22px; padding: 6px 14px; width: auto; }
.transcript { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 18px; margin: 0; width: 100%; }
.speech { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; }
.place, .place-line { font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 0; }
.bubble, .chat-msg { background: var(--blue); color: #fff; font-size: 26px; font-weight: 700; padding: 14px 18px; border-radius: 22px 22px 22px 6px; }
.chat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.chat-from { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.chat-msg { font-size: 21px; font-weight: 600; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.demo-note { margin: 0; font-size: 15px; color: #7a4d00; background: #fff4d6; border-radius: 12px; padding: 6px 10px; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.match-col { display: flex; flex-direction: column; gap: 10px; }
.choice.match { font-size: 19px; min-height: 56px; }
.shake { animation: shake .35s; border-color: #e5484d !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.model { margin-top: 6px; font-size: 18px; color: var(--ink); flex-basis: 100%; }
.feedback.correct:has(.model) { flex-wrap: wrap; }

/* Bokstaver */
.letter-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.letter-group { min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.letter-group.done { border-color: var(--green); background: var(--green-l); }
.letter-group .icon { color: var(--green); }

/* Øving og meg */
.big-count { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; background: var(--card); border-radius: var(--radius); text-align: center; }
.big-count strong { font-size: 56px; color: var(--blue); }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.me-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.avatar .icon { width: 34px; height: 34px; }
.me-head .username { font-size: 26px; }
.note { font-size: 14px; color: var(--ink-2); }
.switch-row { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 600; gap: 12px; }
.switch-row input { width: 28px; height: 28px; accent-color: var(--blue); }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg); font-size: 15px; opacity: .55; }
.badge.got { opacity: 1; background: #fff6d6; color: #13294B; }
.badge-icon .icon { color: var(--gold); width: 22px; height: 22px; }
.about summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.about p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Økt */
.run { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.run-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 4px; }
.progress-bar { flex: 1; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .35s; }
.counter { font-size: 15px; font-weight: 700; color: var(--ink-2); min-width: 44px; text-align: end; }
.run-body { flex: 1; padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.run-foot { position: sticky; bottom: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.instruction { font-size: 21px; flex: 1; }
.instruction-row { display: flex; align-items: center; gap: 10px; }
.ex-icons { font-size: 24px; white-space: nowrap; }
.feedback.simple { flex-direction: row; align-items: center; gap: 12px; font-size: 26px; }
.fb-simple { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.fb-emoji { font-size: 34px; line-height: 1; }
.fb-emoji.big { font-size: 46px; }
.result-emoji { font-size: 96px; line-height: 1; animation: pop .4s ease-out; }
.reveal { min-height: 44px; }
.reveal-btn { border: 2px dashed var(--line); background: transparent; border-radius: 14px; min-height: 48px; padding: 6px 14px; cursor: pointer; color: var(--ink-2); font-size: 16px; display: inline-flex; align-items: center; }
.ex { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ex-listen { padding-top: 10px; }

.pic { display: grid; place-items: center; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); user-select: none; }
.pic-md { width: 100%; aspect-ratio: 1; font-size: 64px; max-height: 150px; }
.pic-lg { width: 180px; height: 180px; font-size: 104px; }
.pic-xl { width: 200px; height: 200px; font-size: 120px; }
.pic-sm { width: 52px; height: 52px; font-size: 32px; border-radius: 12px; box-shadow: none; }
.pic img { width: 80%; height: 80%; object-fit: contain; }
.pic-color span { width: 62%; height: 62%; border-radius: 50%; border: 3px solid var(--line); }
.pic-text { font-weight: 800; color: var(--blue); }
.pic-md.pic-text { font-size: 54px; } .pic-lg.pic-text, .pic-xl.pic-text { font-size: 88px; }
.pic-none { color: var(--line); font-weight: 800; }

.choices { width: 100%; display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.list { grid-template-columns: 1fr; }
.choice { border: 3px solid var(--line); background: var(--card); border-radius: 18px; padding: 8px; min-height: 64px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.grid-2 .choice { padding: 6px; }
.grid-2 .choice .pic { box-shadow: none; }
.choice.selected { border-color: var(--blue); background: var(--blue-l); }
.choice.is-correct { border-color: var(--green); background: var(--green-l); }
.choice.is-wrong { border-color: var(--calm); background: var(--calm-l); }
.choice-text { display: flex; align-items: center; gap: 10px; }
.letter-choice { font-size: 36px; font-weight: 800; }
.big-letter { font-size: 96px; font-weight: 800; color: var(--blue); line-height: 1; }
.lw-emoji { font-size: 30px; }
.lw-num { font-weight: 800; color: var(--blue); }
.prompt-word { font-size: 40px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.prompt-meaning { font-size: 32px; font-weight: 700; text-align: center; padding: 18px; background: var(--card); border-radius: 18px; width: 100%; box-shadow: var(--shadow); }

.speaker { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue-l); color: var(--blue); cursor: pointer; flex: none; }
.speaker svg { width: 24px; height: 24px; }
.speaker-row { display: flex; gap: 12px; align-items: center; }
.speaker-big { width: 88px; height: 88px; background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-d); }
.speaker-big svg { width: 44px; height: 44px; }
.speaker-slow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--blue); background: var(--card); color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.speaker-slow svg { width: 28px; height: 28px; }

.slots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 58px; }
.slot { width: 44px; height: 54px; border-radius: 10px; border-bottom: 4px solid var(--line); display: grid; place-items: center; font-size: 28px; font-weight: 800; background: transparent; border-top: 0; border-left: 0; border-right: 0; }
.slot.filled { background: var(--blue-l); border-bottom-color: var(--blue); cursor: pointer; color: var(--ink); }
.slot.given { background: var(--line); }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tile, .wtile { min-width: 54px; min-height: 58px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 5px; background: var(--card); font-size: 28px; font-weight: 800; cursor: pointer; padding: 0 12px; }
.wtile { font-size: 22px; font-weight: 700; }
.tile:disabled, .wtile:disabled { visibility: hidden; }
.sentence-line { min-height: 70px; width: 100%; border-bottom: 3px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 8px; }
.wtile.placed { background: var(--blue-l); border-color: var(--blue); }
.end { font-size: 26px; font-weight: 800; }
.type-input { width: 100%; min-height: 64px; font-size: 30px; text-align: center; border-radius: 16px; border: 3px solid var(--line); background: var(--card); font-weight: 700; }
.type-input:focus { border-color: var(--blue); outline: none; }
.special-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 12px; border: 2px dashed var(--line); border-radius: 14px; margin-top: 4px; }
.special-label { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; }
.special-keys { display: flex; gap: 8px; }
.key { width: 52px; height: 48px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card); font-size: 26px; font-weight: 800; cursor: pointer; }
.mic { width: 110px; height: 110px; border-radius: 50%; border: 0; background: var(--blue); font-size: 48px; cursor: pointer; touch-action: none; }
.mic.recording { background: #e5484d; animation: pulse 1s infinite; }
.mic-help { margin: 0; text-align: center; }

.feedback { border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 19px; animation: pop .25s ease-out; }
.feedback.correct { background: var(--green-l); color: var(--green); flex-direction: row; align-items: center; gap: 10px; }
.feedback.correct .fb-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.feedback.streak .fb-icon { background: var(--gold); }
.feedback.almost { background: var(--yellow-l); color: var(--yellow); }
.feedback.wrong { background: var(--calm-l); color: var(--calm); }
.fb-answer { display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--ink); }
.letter-hint { font-size: 26px; font-weight: 800; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.intro-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 8px; }
.intro-word { font-size: 42px; font-weight: 800; }
.intro-emoji { font-size: 56px; }
.plural { color: var(--ink-2); font-size: 17px; }

.result { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 24px; overflow: hidden; }
.result h1 .bi { align-items: center; }
.result-icon { width: 104px; height: 104px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; animation: pop .4s ease-out; }
.result.retry .result-icon { background: var(--blue); }
.result-icon .icon { width: 58px; height: 58px; }
.result-stats { display: flex; gap: 14px; }
.rs { background: var(--card); border-radius: 16px; padding: 12px 18px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow); }
.rs strong { font-size: 30px; }
.new-badge { display: flex; gap: 10px; align-items: center; background: #fff6d6; color: #13294B; border-radius: 16px; padding: 10px 16px; font-weight: 700; }
.new-badge > div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.new-badge .icon { color: var(--gold); width: 32px; height: 32px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span { position: absolute; top: -10px; width: 10px; height: 14px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(420px) rotate(540deg); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 16px;
  max-width: 92vw; width: 520px; z-index: 20; transition: .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .help { color: inherit; opacity: .8; }
.toast-btn { background: none; border: 0; color: inherit; font-weight: 700; cursor: pointer; width: 100%; text-align: start; min-height: 44px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 600px) { .app { padding-top: 12px; } }
