/* "Bunny" theme preview: mint/teal + navy, rounded cards, friendly mascot.
   Loaded after style.css; only overrides tokens and shapes, no layout logic. */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap");

:root {
  --bg: #eef8f5; --panel: #ffffff; --panel-2: #e6f5f1; --line: #d3ebe5;
  --ink: #1b2f57; --ink-2: #4f6282; --ink-3: #8497b0;
  --navy: #1f3a68;
  --accent: #17917c; --accent-2: #3fc2aa; --accent-ink: #ffffff; --accent-soft: #daf4ee;
  --ok: #1e8f6a; --ok-soft: #d8f3e8; --warn: #b77a00; --warn-soft: #fdf0d3; --bad: #d4483b; --bad-soft: #fde3e0;
  --shadow: 0 2px 4px rgba(31,58,104,.04), 0 10px 28px rgba(31,58,104,.07);
  --r: 20px;
  --series: #2fb39c; --m-done: #1f8f7c; --m-learn: #9fe0d2;
  --hm0: #e2efec; --hm1: #9fe0d2; --hm2: #5fc9b4; --hm3: #2a9d88; --hm4: #17685b;
  --prog-fill: #c9efe5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1c24; --panel: #16262f; --panel-2: #1d313b; --line: #284350;
    --ink: #e6f1f4; --ink-2: #a3bac4; --ink-3: #718b97; --navy: #cfe3f7;
    --accent: #45c9b1; --accent-2: #2e9e8a; --accent-ink: #062520; --accent-soft: #173d3a;
    --ok: #5fd3a3; --ok-soft: #173a2e; --warn: #e6b64f; --warn-soft: #382c12; --bad: #f08a80; --bad-soft: #3d1f1c;
    --shadow: none;
    --series: #45c9b1; --m-done: #45c9b1; --m-learn: #1f5f56;
    --hm0: #1f3039; --hm1: #1b5a50; --hm2: #25857a; --hm3: #3fb3a0; --hm4: #8fe3d2;
    --prog-fill: #1d4d45;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1c24; --panel: #16262f; --panel-2: #1d313b; --line: #284350;
  --ink: #e6f1f4; --ink-2: #a3bac4; --ink-3: #718b97; --navy: #cfe3f7;
  --accent: #45c9b1; --accent-2: #2e9e8a; --accent-ink: #062520; --accent-soft: #173d3a;
  --ok: #5fd3a3; --ok-soft: #173a2e; --warn: #e6b64f; --warn-soft: #382c12; --bad: #f08a80; --bad-soft: #3d1f1c;
  --shadow: none;
  --series: #45c9b1; --m-done: #45c9b1; --m-learn: #1f5f56;
  --hm0: #1f3039; --hm1: #1b5a50; --hm2: #25857a; --hm3: #3fb3a0; --hm4: #8fe3d2;
  --prog-fill: #1d4d45;
}

body { font-family: "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 500;
  background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), var(--bg); background-attachment: fixed; }
h1, h2, h3 { color: var(--navy); font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.15; }
h1::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--accent-2); margin: 12px 0 4px; }
h2 { font-size: 1.25rem; }
h2::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

/* sidebar */
.side { background: var(--panel); border-right: 0; box-shadow: 4px 0 24px rgba(31,58,104,.05); padding: 22px 16px; }
.brand b { color: var(--navy); font-weight: 900; font-size: 1.08rem; }
.logo { width: 44px; height: 44px; border-radius: 13px; background: none; box-shadow: 0 6px 14px rgba(47,179,156,.25); }
.lesson-pick select { border-radius: 12px; background: var(--panel-2); border-color: transparent; font-weight: 700; color: var(--navy); }
nav { gap: 4px; }
nav button { border-radius: 14px; padding: 10px 12px; font-weight: 700; }
nav button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px rgba(47,179,156,.3); }
nav button.on .ico { filter: brightness(1.1); }
.theme-btn { border-radius: 999px; font-weight: 700; }

/* mascot greeting in the sidebar (preview only) */
.mascot-card { position: relative; background: linear-gradient(160deg, var(--accent-soft), var(--panel-2)); border-radius: 20px; padding: 12px 12px 10px; text-align: center; }
.mascot-card img { width: 96px; height: 96px; display: block; margin: 0 auto 2px; animation: bob 3.2s ease-in-out infinite; }
.mascot-card b { color: var(--navy); display: block; font-size: .95rem; }
.mascot-card span { color: var(--ink-2); font-size: .8rem; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .mascot-card img { animation: none; } }

/* cards and controls */
.card { border: 0; box-shadow: var(--shadow); padding: 20px 22px; }
:root[data-theme="dark"] .card { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card { border: 1px solid var(--line); } }
.btn { border-radius: 999px; padding: 9px 18px; font-weight: 700; border-color: var(--line); }
.btn.sm { border-radius: 999px; padding: 6px 13px; }
.btn.primary { background: var(--accent); border-color: transparent; box-shadow: 0 6px 14px rgba(47,179,156,.3); }
.btn.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { color: var(--accent); }
.chip { border-radius: 999px; font-weight: 700; padding: 6px 14px; }
input[type=text] { border-radius: 14px; border-width: 2px; }
input[type=text]:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pill { font-weight: 800; }
.notice { border-radius: 16px; }
.feedback { border-radius: 16px; }
.opt { border-radius: 16px; border-width: 2px; font-weight: 600; padding: 13px 16px; }
.opt .k { color: var(--accent); }
.bar { height: 8px; }
.bar > i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.toast { border-radius: 999px; background: var(--navy); }

/* home tiles: icon-like accent strip */
.stat { position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; background: var(--accent-soft); }
.stat .big { color: var(--navy); font-weight: 900; font-size: 1.9rem; position: relative; }
.stat > span { position: relative; }
.mode-card:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), var(--shadow); transform: translateY(-2px); }
.mode-card { transition: transform .15s, box-shadow .15s; }
.mode-card .ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); font-size: 1.4rem; }
.lesson-card.current { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.badge.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.who.A { background: var(--accent-soft); color: var(--accent); }
.line.active { border-radius: 14px; }
.transcript b { color: var(--accent); }
.hm-stats b { color: var(--hm3); }
@media (max-width: 760px) { .mascot-card { display: none; } h1 { font-size: 1.6rem; } }

/* use the full width on wide screens (style.css caps main at 980px) */
main { max-width: 1560px; padding: 32px 40px 60px; }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 760px) { main { padding: 18px 16px 48px; } }

/* Online app: the signed-in learner above the theme button (showAccount in app.js). */
.acct { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--panel-2); }
.acct + .theme-btn { margin-top: 8px; }
.acct > img, .acct-init { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.acct-init { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.acct > .lbl { min-width: 0; flex: 1; line-height: 1.2; }
.acct > .lbl b { display: block; color: var(--navy); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct > .lbl small { display: block; color: var(--ink-3); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-out { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); }
.acct-out:hover { background: var(--accent-soft); }
.acct-out .ic { width: 22px; height: 22px; }
.side-min .acct { flex-direction: column; padding: 8px 4px; gap: 6px; }
