:root {
  /* ===== Pastel gradient background ===== */
  --bg-1: #f3e6ff;   /* lavender */
  --bg-2: #ffe2ee;   /* pink */
  --bg-3: #e2ecff;   /* sky */
  --bg-4: #d8f3ec;   /* mint */

  /* ===== Legacy aliases (kept so any inline / future refs still work) ===== */
  --bg: #f1ecfa;
  --panel: rgba(255, 255, 255, .65);
  --panel2: rgba(255, 255, 255, .82);

  /* ===== Text ===== */
  --ink: #2a2548;
  --muted: #8b86ad;
  --line: rgba(120, 110, 170, .14);

  /* ===== Accent colors (names kept for app.js compatibility) ===== */
  --red: #ef5a6f;
  --green: #4dc7a0;
  --gold: #f0b34a;
  --blue: #5b8cf0;
  --purple: #9a7cf0;
  --accent: #6c63ff;
  --green-btn: #4dc7a0;
  --red-btn: #ef5a6f;
  --gold-deep: #c98a2e;

  /* ===== Glass / shape ===== */
  --radius: 18px;
  --glass: rgba(255, 255, 255, .65);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .9);
  --shadow-sm: 0 4px 14px rgba(80, 60, 140, .10);
  --shadow-md: 0 10px 28px rgba(80, 60, 140, .13);
  --shadow-lg: 0 18px 44px rgba(80, 60, 140, .18);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(60% 50% at 0% 0%,   var(--bg-1) 0%, transparent 60%),
    radial-gradient(55% 45% at 100% 0%, var(--bg-2) 0%, transparent 60%),
    radial-gradient(55% 50% at 100% 100%, var(--bg-4) 0%, transparent 60%),
    radial-gradient(60% 55% at 0% 100%, var(--bg-3) 0%, transparent 60%),
    #f1ecfa;
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 48px;
}
#app { max-width: 760px; margin: 0 auto; padding: 14px; }

/* =====================================================
   Launcher (index.html)
   ===================================================== */
.launch {
  max-width: 460px; margin: 16vh auto 0; padding: 36px 30px 32px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border); border-radius: 28px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.launch h1 {
  font-size: 30px; font-weight: 800; margin: 0 0 8px;
  background: linear-gradient(135deg, #7c5cff, #3f6ff0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.launch .muted { margin: 0 0 4px; }
.launch-btns { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.launch-btn {
  display: block; padding: 18px; border-radius: 18px; font-size: 17px; font-weight: 800;
  text-decoration: none; color: #fff; border: none;
  box-shadow: var(--shadow-md); transition: transform .12s;
}
.launch-btn:active { transform: scale(.97); }
.launch-btn.parent { background: linear-gradient(135deg, #8b6cff, #4d7af2); }
.launch-btn.kaola  { background: linear-gradient(135deg, #34d4c0, #1fae8a); }
.launch-btn.ruirui { background: linear-gradient(135deg, #ff9a50, #ef5a5a); }

/* =====================================================
   Topbar
   ===================================================== */
.topbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 12px 16px; box-shadow: var(--shadow-sm);
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-3));
  border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.title { font-size: 19px; font-weight: 800; color: var(--ink); }
.subtitle { color: var(--muted); font-size: 13px; }
.points-pill {
  margin-left: auto;
  background: linear-gradient(135deg, #8b6cff, #4d7af2); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}

/* =====================================================
   Cards / utilities
   ===================================================== */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* =====================================================
   Tabs (glass pills)
   ===================================================== */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.tab {
  padding: 9px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--muted);
  white-space: nowrap; font-size: 14px; font-weight: 700; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tab.active {
  background: linear-gradient(135deg, #8b6cff, #4d7af2); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-sm);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  border-radius: 14px; padding: 11px 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; background: var(--glass-strong); color: var(--ink);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, #8b6cff, #4d7af2); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.btn.gold    { background: linear-gradient(135deg, #f5c25a, #e89a3a); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.btn.green   { background: linear-gradient(135deg, #5cd6ad, #34b88a); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.btn.red     { background: linear-gradient(135deg, #ff7a8e, #ef4a64); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.btn.ghost   { background: transparent; border-color: transparent; box-shadow: none; }
.btn.sm  { padding: 8px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.mini-btn { border: 1px solid var(--line); background: rgba(255,255,255,.6); color: var(--ink); border-radius: 10px; padding: 3px 10px; font-size: 12px; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.mini-btn:hover { background: #fff; }

/* =====================================================
   Inputs
   ===================================================== */
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .7);
  color: var(--ink); font-size: 14px; font-family: inherit; margin: 6px 0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, .18);
}
label { font-size: 13px; color: var(--muted); display: block; margin-top: 8px; font-weight: 600; }

/* =====================================================
   Progress bars
   ===================================================== */
.bar-label { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.hunger-bar { height: 10px; border-radius: 999px; background: rgba(120, 110, 170, .12); overflow: hidden; }
.hunger-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--accent)); }
.hunger-bar.life i { background: linear-gradient(90deg, var(--red), var(--gold)); }
.hunger-bar.sm { height: 6px; }

/* =====================================================
   Pet card
   ===================================================== */
.pet-card {
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pet-emoji { font-size: 40px; text-align: center; }
.pet-img {
  width: 100%; max-width: 150px; height: 130px; object-fit: contain;
  border-radius: 16px; background: rgba(255,255,255,.55);
  border: 1px solid var(--glass-border); display: inline-block;
}
.pet-img.pet-3d { animation: spin 6s linear infinite; box-shadow: 0 0 18px 2px rgba(255, 209, 102, .65); }
.pet-name { font-weight: 800; text-align: center; margin: 4px 0; }
.pet-3d { animation: spin 6s linear infinite; display: inline-block; }
@keyframes spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.pet-aura { box-shadow: 0 0 0 2px var(--glass-border); border-radius: 50%; padding: 6px; }

/* =====================================================
   Task row
   ===================================================== */
.task {
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.task .head { display: flex; align-items: center; gap: 8px; }
.task .badge {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: rgba(108, 99, 255, .12); color: var(--accent); font-weight: 700;
}
.task .content { margin: 8px 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.task .thumb {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--glass-border); cursor: pointer;
}
.status-tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.status-pending  { background: rgba(240, 179, 74, .18); color: #b87a1e; border: 1px solid rgba(240, 179, 74, .30); }
.status-approved { background: rgba(77, 199, 160, .18); color: #2a8a6a; border: 1px solid rgba(77, 199, 160, .30); }
.status-denied   { background: rgba(239, 90, 111, .18); color: #c0385a; border: 1px solid rgba(239, 90, 111, .30); }

/* =====================================================
   Kid overview card
   ===================================================== */
.kid-card {
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.kid-head { display: flex; align-items: center; gap: 10px; }
.pets-mini { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.foot-pet {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 5px 10px;
}
.foot-pet-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1px solid var(--glass-border); }
.pe-s { font-size: 12px; font-weight: 800; color: var(--accent); }

/* 领养弹窗：图片 + 名称 */
.adopt-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; }
.adopt-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; border: 1px solid var(--glass-border); flex: 0 0 auto; }
.adopt-txt { display: flex; flex-direction: column; line-height: 1.3; }
.adopt-txt .muted { font-size: 11px; }

/* =====================================================
   Modal
   ===================================================== */
.modal-hidden { display: none; }
#modal.modal-hidden { display: none; }
#modal {
  position: fixed; inset: 0;
  background: rgba(42, 37, 72, .42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-box {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 20px; max-width: 480px; width: 100%; max-height: 86vh; overflow: auto;
  box-shadow: var(--shadow-lg);
}
.modal-box img:not(.adopt-img) { width: 100%; border-radius: 14px; margin: 8px 0; }
.modal-close { float: right; cursor: pointer; color: var(--muted); font-size: 20px; }

/* =====================================================
   Toast / PIN
   ===================================================== */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: rgba(42, 37, 72, .85); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 11px 20px; border-radius: 999px; font-size: 14px; z-index: 99;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

.pin-screen {
  max-width: 360px; margin: 16vh auto; text-align: center;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 30px 26px; box-shadow: var(--shadow-lg);
}

/* =====================================================
   Parent layout (sidebar + main)
   ===================================================== */
.parent-layout { display: flex; gap: 14px; align-items: flex-start; margin-top: 4px; }
.side-nav {
  flex: 0 0 140px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 14px;
  max-height: calc(100vh - 28px); overflow-y: auto;
  padding: 12px 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border); border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.nav-date {
  padding: 10px 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-3));
  border-radius: 14px; line-height: 1.45; margin-bottom: 4px;
}
.side-item {
  display: flex; align-items: center; gap: 9px; padding: 12px 12px; border-radius: 14px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s, transform .12s;
}
.side-item .si-ic { font-size: 18px; line-height: 1; }
.side-item.active {
  background: #fff; color: var(--ink);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.side-item:active { transform: scale(.97); }
.parent-main { flex: 1; min-width: 0; }

@media (max-width: 560px) {
  .side-nav { flex: 0 0 92px; gap: 4px; padding: 8px 6px; }
  .side-item { flex-direction: column; gap: 4px; padding: 9px 4px; font-size: 12px; text-align: center; }
  .side-item .si-ic { font-size: 20px; }
}

.countdown {
  background: linear-gradient(135deg, rgba(108, 99, 255, .12), rgba(91, 140, 240, .12));
  border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 12px; text-align: center; margin-top: 10px; font-weight: 700;
}
.countdown b {
  background: linear-gradient(135deg, #8b6cff, #4d7af2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 20px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 0; }

/* =====================================================
   Overdue
   ===================================================== */
.status-overdue {
  background: rgba(239, 90, 111, .18); color: #c0385a;
  border: 1px solid rgba(239, 90, 111, .30); font-weight: 800;
  animation: odpulse 1.4s ease-in-out infinite;
}
@keyframes odpulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.task-overdue { border-color: rgba(239, 90, 111, .5); box-shadow: 0 0 0 1px rgba(239, 90, 111, .3) inset; }
.overdue-banner {
  background: rgba(239, 90, 111, .12); border: 1px solid rgba(239, 90, 111, .25); color: #c0385a;
  border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.55; margin-bottom: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* =====================================================
   Help FAB / code
   ===================================================== */
.help-fab {
  position: fixed; right: 16px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #9a7cf0, #6c63ff); color: #fff; border: 2px solid #fff;
  font-size: 22px; font-weight: 800; cursor: pointer; z-index: 40;
  box-shadow: var(--shadow-md); line-height: 1;
}
.help-fab:active { transform: scale(.94); }
code { background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-border); border-radius: 8px; padding: 2px 8px; font-size: 12px; }

/* =====================================================
   Exam (教资)
   ===================================================== */
.exam-subj {
  border: 1px solid var(--glass-border); border-radius: 14px; margin-top: 10px;
  overflow: hidden; background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.exam-subj-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer;
  background: linear-gradient(135deg, rgba(108, 99, 255, .08), rgba(91, 140, 240, .08));
}
.exam-subj-head .caret { width: 14px; color: var(--muted); font-size: 12px; }
.exam-subj-head b { font-size: 15px; }
.exam-subj-body { padding: 12px 14px 14px; }
.exam-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.exam-row:last-child { border-bottom: none; }
.exam-txt { flex: 1; font-size: 14px; }
.x-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: #fff; color: var(--muted);
  font-size: 15px; line-height: 1; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.x-btn:active { background: var(--red-btn); color: #fff; border-color: transparent; }
.sub-h { font-size: 13px; font-weight: 700; color: var(--ink); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.q-thumb { position: relative; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .6); }
.q-thumb img { width: 100%; height: 92px; object-fit: cover; display: block; cursor: pointer; }
.q-thumb .x-btn { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .92); }

/* =====================================================
   Child picker / grant / stats / quiz
   ===================================================== */
.child-picker { display: flex; gap: 10px; margin: 6px 0 4px; }
.child-pick {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--muted);
  font-weight: 800; font-size: 14px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.child-pick .pe-emoji { font-size: 24px; margin-bottom: 4px; line-height: 1; }
.child-pick.active {
  background: linear-gradient(135deg, #8b6cff, #4d7af2); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-sm);
}
.grant-row { display: flex; gap: 8px; align-items: flex-end; }
.grant-row label { margin-top: 0; }

.stat-cards { display: flex; gap: 10px; }
.stat-card {
  flex: 1; background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 16px 6px; text-align: center; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stat-num {
  font-size: 30px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #8b6cff, #4d7af2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== Quiz ===== */
.quiz-card { text-align: center; }
.quiz-prog { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.quiz-badge {
  display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 8px; background: rgba(255, 160, 122, 0.18); color: #e8743b; border: 1px solid rgba(232, 116, 59, 0.35);
}
.quiz-badge.grade {
  background: rgba(108, 99, 255, 0.14); color: #6c63ff; border: 1px solid rgba(108, 99, 255, 0.3);
}
.quiz-char {
  font-size: 96px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px;
  background: linear-gradient(135deg, #5b8cf0, #6c63ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quiz-py { font-size: 22px; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.quiz-sec { text-align: left; margin: 10px 0; }
.quiz-label {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--muted);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 6px;
}
.quiz-words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cword {
  display: inline-block; background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700;
}
.quiz-sentence {
  font-size: 15px; line-height: 1.65; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 12px; text-align: left;
}
.quiz-actions { display: flex; gap: 12px; margin-top: 18px; }
.quiz-actions .btn { flex: 1; padding: 16px 0; font-size: 18px; border-radius: 16px; }
.btn.big.ok  { background: linear-gradient(135deg, #5cd6ad, #34b88a); color: #fff; border-color: transparent; }
.btn.big.bad { background: linear-gradient(135deg, #ff7a8e, #ef4a64); color: #fff; border-color: transparent; }
.quiz-speak { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 4px; }
.quiz-meaning {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, #f0b34a, #ef5a6f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quiz-word { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 2px 0; letter-spacing: .5px; }
.quiz-unit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.quiz-ex {
  font-size: 15px; line-height: 1.7; background: var(--glass);
  border: 1px solid var(--glass-border); border-left: 4px solid var(--blue);
  border-radius: 12px; padding: 12px 14px; text-align: left; margin: 4px 0 10px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.quiz-opt { padding: 16px 0; font-size: 18px; border-radius: 16px; }
.quiz-opt.ok  { background: linear-gradient(135deg, #5cd6ad, #34b88a); color: #fff; border-color: transparent; }
.quiz-opt.bad { background: linear-gradient(135deg, #ff7a8e, #ef4a64); color: #fff; border-color: transparent; }
.quiz-fb { min-height: 22px; font-size: 15px; font-weight: 800; margin-top: 10px; }
.quiz-fb.ok  { color: #2a8a6a; }
.quiz-fb.bad { color: #c0385a; }
.quiz-done { font-size: 20px; font-weight: 800; padding: 20px 0; }

@media (max-width: 560px) {
  .quiz-char { font-size: 72px; }
  .quiz-meaning { font-size: 32px; }
  .stat-cards { flex-direction: column; }
}