/* ==========================================================================
   Jarvis-Lernapp – Design-System
   5 Themes über [data-theme] auf <html>. Lernfreundlich: ruhige Flächen,
   große Lesebreite-Begrenzung, klare Hierarchie, deutliche Fokus-Zustände.
   ========================================================================== */

:root {
  --radius: 16px;
  --radius-sm: 10px;
  --gap: 16px;
  --read: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-read: var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs: 17px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: .22s;
}

/* 1 · Fokus (Standard, hell & ruhig) */
html[data-theme="fokus"] {
  --bg: #f5f6fa; --surface: #ffffff; --surface-2: #eef0f7; --border: #e2e5ef;
  --text: #1b2033; --muted: #5d6479; --accent: #4f46e5; --accent-ink: #ffffff;
  --accent-soft: #eceafe; --accent-2: #0ea5e9; --ok: #15803d; --ok-soft: #e7f6ec;
  --warn: #b45309; --warn-soft: #fdf3e2; --bad: #c62828; --bad-soft: #fdecec;
  --shadow: 0 1px 2px rgba(20,24,40,.05), 0 6px 24px rgba(20,24,40,.06);
  color-scheme: light;
}
/* 2 · Nacht (dunkel, warme Akzente – schont die Augen abends) */
html[data-theme="nacht"] {
  --bg: #0e1016; --surface: #161922; --surface-2: #1d212c; --border: #272c3a;
  --text: #e7e9f0; --muted: #9ba2b5; --accent: #f3c552; --accent-ink: #1a1405;
  --accent-soft: #2b2617; --accent-2: #6cc4ff; --ok: #5ad48a; --ok-soft: #15291e;
  --warn: #f0a94b; --warn-soft: #2d2213; --bad: #ff7a7a; --bad-soft: #321a1c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  color-scheme: dark;
}
/* 3 · Papier (Sepia, Serifen-Lesetext – für lange Lesephasen) */
html[data-theme="papier"] {
  --bg: #f3ead6; --surface: #fbf6ea; --surface-2: #f1e7d1; --border: #e1d4b7;
  --text: #3a3025; --muted: #6e624e; --accent: #a4500f; --accent-ink: #fff8ee;
  --accent-soft: #f4e2cc; --accent-2: #2f6f62; --ok: #3d7a33; --ok-soft: #e6eed6;
  --warn: #9a5b00; --warn-soft: #f6e6c6; --bad: #a83232; --bad-soft: #f5dcd3;
  --shadow: 0 1px 2px rgba(80,60,20,.08), 0 6px 22px rgba(80,60,20,.08);
  --font-read: Charter, "Iowan Old Style", Georgia, Cambria, serif;
  color-scheme: light;
}
/* 4 · Kontrast (barrierearm, maximal klar) */
html[data-theme="kontrast"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f2f2; --border: #111111;
  --text: #000000; --muted: #262626; --accent: #0038b8; --accent-ink: #ffffff;
  --accent-soft: #e3ebff; --accent-2: #7a1fa2; --ok: #0a6b1f; --ok-soft: #e2f4e6;
  --warn: #8a4b00; --warn-soft: #fff0d6; --bad: #b00020; --bad-soft: #ffe3e7;
  --shadow: none;
  color-scheme: light;
}
html[data-theme="kontrast"] .card, html[data-theme="kontrast"] .btn, html[data-theme="kontrast"] .opt { border-width: 2px; }
/* 5 · Flow (frisch, motivierend) */
html[data-theme="flow"] {
  --bg: #ecf6f2; --surface: #ffffff; --surface-2: #e2f1eb; --border: #d3e7df;
  --text: #11302a; --muted: #4f6b64; --accent: #0d9474; --accent-ink: #ffffff;
  --accent-soft: #dcf3ea; --accent-2: #7c3aed; --ok: #0d9474; --ok-soft: #dcf3ea;
  --warn: #c2620a; --warn-soft: #fdf0e1; --bad: #d23b3b; --bad-soft: #fde8e8;
  --shadow: 0 1px 2px rgba(10,60,45,.05), 0 8px 26px rgba(10,60,45,.08);
  color-scheme: light;
}

html[data-font="0"] { --fs: 15px; }
html[data-font="1"] { --fs: 17px; }
html[data-font="2"] { --fs: 19px; }
html[data-font="3"] { --fs: 21px; }
html[data-motion="off"] { --dur: 0s; }
html[data-motion="off"] *, html[data-motion="off"] *::before { animation: none !important; transition: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: var(--fs); line-height: 1.6;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75em; } h2 { font-size: 1.3em; } h3 { font-size: 1.08em; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Layout ─────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--surface) 247px, var(--border) 247px, var(--border) 248px, var(--bg) 248px); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px;
  border-right: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 750; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.brand small { display: block; font-weight: 500; font-size: .72em; color: var(--muted); }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .95em;
  transition: background var(--dur) var(--ease);
}
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.nav-ico { width: 22px; text-align: center; font-size: 1.1em; }
.nav-badge { margin-left: auto; font-size: .72em; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 10px 12px; font-size: .78em; color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: middle; }
.status-dot.on { background: var(--ok); }

main { padding: 28px clamp(16px, 4vw, 48px) 120px; min-width: 0; }
.page { max-width: 980px; margin: 0 auto; animation: fadeIn .28s var(--ease); }
.page.narrow { max-width: 760px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.eyebrow { font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }

.bottom-nav { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { display: none; }
  main { padding: 18px 14px 110px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .66em; font-weight: 600; padding: 6px 2px; border-radius: 10px; position: relative; }
  .bottom-nav a .nav-ico { font-size: 1.35em; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav .nav-badge { position: absolute; top: 0; right: 18%; margin: 0; padding: 0 6px; font-size: .9em; }
  h1 { font-size: 1.45em; }
}

/* ── Cards & Grid ───────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card + .card { margin-top: var(--gap); }
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.accent { background: var(--accent-soft); border-color: transparent; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: var(--gap); }
.grid > .card + .card { margin-top: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 760px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: var(--gap); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 650; font-size: .93em; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 1.2;
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur);
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.small { padding: 7px 12px; font-size: .84em; border-radius: 10px; }
.btn.big { padding: 14px 22px; font-size: 1em; border-radius: 14px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ── Chips, Pills, Tags ─────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78em; font-weight: 650; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
button.chip { cursor: pointer; font-family: inherit; }
button.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ── Stats ─────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.35em; line-height: 1.2; }
.stat span { font-size: .78em; color: var(--muted); font-weight: 600; }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
.progress.ok > i { background: var(--ok); }

.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring > div { width: 74px; height: 74px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; font-weight: 800; line-height: 1.1; }
.ring small { display: block; font-size: .62em; font-weight: 600; color: var(--muted); }

/* ── Heute: Plan-Schritte ──────────────────────────────── */
.plan { display: grid; gap: 10px; }
.plan-step { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; text-decoration: none; color: inherit; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.plan-step:hover { border-color: var(--accent); }
.plan-step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface); border: 2px solid var(--border); flex-shrink: 0; }
.plan-step.done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.plan-step .txt { flex: 1; min-width: 0; }
.plan-step .txt b { display: block; }
.plan-step .txt small { display: block; }
.plan-step .go { color: var(--accent); font-weight: 800; }

.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); }
.heat i.l1 { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }
.heat i.l2 { background: color-mix(in srgb, var(--accent) 65%, var(--surface-2)); }
.heat i.l3 { background: var(--accent); }
.heat i.today { outline: 2px solid var(--text); outline-offset: 1px; }

/* ── Lernpfad ──────────────────────────────────────────── */
.module { padding: 0; overflow: hidden; }
.module-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.module-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.4em; flex-shrink: 0; }
.lesson-list { list-style: none; margin: 0; padding: 0 10px 10px; }
.lesson-item a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.lesson-item a:hover { background: var(--surface-2); }
.lesson-item .state { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: .75em; flex-shrink: 0; font-weight: 800; color: var(--muted); }
.lesson-item.done .state { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-item.next .state { border-color: var(--accent); color: var(--accent); }
.lesson-item.next a { background: var(--accent-soft); }
.lesson-item .lt { flex: 1; min-width: 0; }
.lesson-item .lt small { display: block; }

/* ── Lektion ───────────────────────────────────────────── */
.stepper { display: flex; gap: 6px; margin: 4px 0 18px; }
.stepper button { flex: 1; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--muted); font-size: .72em; font-weight: 700; text-align: left; }
.stepper button i { display: block; height: 5px; border-radius: 99px; background: var(--surface-2); margin-bottom: 6px; transition: background var(--dur); }
.stepper button.done i { background: var(--ok); }
.stepper button.cur i { background: var(--accent); }
.stepper button.cur { color: var(--accent); }
@media (max-width: 520px) { .stepper button span { display: none; } }

.read { font-family: var(--font-read); }
.plan-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
@media (max-width: 640px) {
  .ring { width: 66px; height: 66px; }
  .ring > div { width: 52px; height: 52px; font-size: .82em; }
  .plan-head { gap: 12px; }
  .plan-head p { display: none; }
  .hide-sm { display: none; }
}
.core-list { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.core-list li { position: relative; padding: 12px 0 12px 46px; border-bottom: 1px dashed var(--border); font-family: var(--font-read); }
.core-list li:last-child { border-bottom: 0; }
.core-list li::before { counter-increment: c; content: counter(c); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-family: var(--font); font-size: .85em; }

.transfer { border-left: 4px solid var(--accent-2); background: var(--surface-2); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.transfer b { color: var(--accent-2); }
.src { font-size: .78em; color: var(--muted); word-break: break-all; }

/* Quiz */
.q { font-weight: 700; font-size: 1.05em; margin-bottom: 12px; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: border-color var(--dur), background var(--dur); }
.opt:hover:not([disabled]) { border-color: var(--accent); }
.opt .key { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-size: .78em; font-weight: 800; flex-shrink: 0; color: var(--muted); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .key { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .key { background: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }
.feedback { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: .95em; }
.feedback.ok { background: var(--ok-soft); color: var(--text); border-left: 4px solid var(--ok); }
.feedback.bad { background: var(--bad-soft); color: var(--text); border-left: 4px solid var(--bad); }
.feedback.neutral { background: var(--surface-2); border-left: 4px solid var(--accent); }

/* Flashcards */
.flash { min-height: 230px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 28px 22px; cursor: pointer; position: relative; }
.flash .front { font-size: 1.15em; font-weight: 700; }
.flash .back { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); font-family: var(--font-read); animation: fadeIn .25s var(--ease); }
.flash .meta { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: .72em; color: var(--muted); font-weight: 600; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.grades .btn { flex-direction: column; justify-content: center; gap: 2px; padding: 10px 6px; }
.grades .btn small { font-weight: 500; font-size: .76em; }
.grades .g0 { border-color: var(--bad); color: var(--bad); }
.grades .g1 { border-color: var(--warn); color: var(--warn); }
.grades .g2 { border-color: var(--ok); color: var(--ok); }
.grades .g3 { border-color: var(--accent); color: var(--accent); }
.kbd { font-family: var(--mono); font-size: .75em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); }

/* Forms */
textarea, input[type="text"], input[type="password"], select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; line-height: 1.5;
}
textarea { min-height: 140px; resize: vertical; font-size: .95em; }
textarea.code { font-family: var(--mono); font-size: .85em; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.lbl { display: block; font-weight: 650; font-size: .88em; margin: 0 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.check.done span { text-decoration: line-through; color: var(--muted); }

pre.prompt { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-family: var(--mono); font-size: .82em; line-height: 1.55; margin: 0; max-height: 420px; overflow: auto; }
.ai-out { white-space: pre-wrap; font-family: var(--font-read); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--accent-2); }
.ai-out.loading { color: var(--muted); }
.ai-out.loading::after { content: " ▍"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Missions */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 12px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); }
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.cur::before { border-color: var(--accent); background: var(--accent-soft); }
.tl-item a { text-decoration: none; color: inherit; display: block; }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); opacity: .45; filter: grayscale(1); }
.badge.on { opacity: 1; filter: none; background: var(--surface); }
.badge .ico { font-size: 1.7em; }
.badge b { display: block; font-size: .82em; margin-top: 4px; }
.badge small { display: block; font-size: .7em; line-height: 1.3; }

/* Themes picker */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-opt { border: 2px solid var(--border); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--surface); font: inherit; color: var(--text); text-align: left; }
.theme-opt.on { border-color: var(--accent); }
.theme-prev { height: 54px; border-radius: 9px; margin-bottom: 8px; display: flex; gap: 5px; padding: 8px; }
.theme-prev i { flex: 1; border-radius: 5px; }
.theme-opt b { display: block; font-size: .9em; }
.theme-opt small { font-size: .74em; }

/* Notes */
.note { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: flex; gap: 10px; align-items: flex-start; }
.note + .note { margin-top: 8px; }
.note .body { flex: 1; white-space: pre-wrap; font-size: .95em; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .9em; box-shadow: var(--shadow); animation: toastIn .3s var(--ease); pointer-events: auto; }
.toast.xp { background: var(--accent); color: var(--accent-ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) { .toast-wrap { bottom: 28px; } }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font-size: 2.4em; }
.tip { font-size: .88em; color: var(--muted); }
.tip b { color: var(--text); }
.celebrate { text-align: center; padding: 30px 16px; }
.celebrate .big { font-size: 3em; animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
