/* VocabQuest styles: no external fonts or libraries */
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f0f1f8;
  --text: #1b1d2e;
  --muted: #646a86;
  --line: #e2e4ef;
  --primary: #5b4cf0;
  --primary-2: #7c6cff;
  --primary-soft: #ecebff;
  --gold: #f5a524;
  --gold-soft: #fff4dc;
  --green: #16a34a;
  --green-soft: #e3f8ea;
  --red: #dc2626;
  --red-soft: #fde8e8;
  --amber: #d97706;
  --teal: #0891b2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 22, 50, .06), 0 4px 16px rgba(20, 22, 50, .06);
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11121c; --surface: #1b1d2b; --surface-2: #242739; --text: #eceef8; --muted: #9aa0bd; --line: #2e3248;
    --primary: #8b7dff; --primary-2: #a497ff; --primary-soft: #2a2752; --gold-soft: #3a2f16; --green-soft: #13321f; --red-soft: #3a1a1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
mark.vw { background: var(--primary-soft); color: var(--primary); font-weight: 700; padding: 0 .2em; border-radius: 6px; }
.pos { color: var(--muted); font-style: italic; font-weight: 400; font-size: .9em; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #b14cf0); color: #fff; font-size: .85rem; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.hdr-stats { margin-left: auto; display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; white-space: nowrap; }
.pill.xp b { color: var(--gold); }
.pill.lvl { background: var(--primary); color: #fff; border-color: transparent; }
.pill.dim { opacity: .55; }

@media (max-width: 720px) {
  .brand-name { display: none; }
  /* backdrop-filter would trap the fixed bottom nav inside the header */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .nav a { flex-direction: column; gap: 0; font-size: .75rem; padding: 6px 14px; }
  .nav a span:first-child { font-size: 1.3rem; }
  body.playing .nav { display: none; }
  body.playing { padding-bottom: 24px; }
}
@media (min-width: 721px) { body { padding-bottom: 40px; } }

.container { max-width: 760px; margin: 0 auto; padding: 16px; outline: none; }
.container > section, .container > .card { margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 10px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.banner { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.banner.warn { background: var(--gold-soft); border: 1px solid var(--gold); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 700; transition: transform .08s, background .15s, box-shadow .15s; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.success { background: var(--green); color: #fff; border-color: transparent; }
.btn.warn { background: var(--gold-soft); border-color: var(--gold); }
.btn.danger { color: var(--red); border-color: var(--red); background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.big { width: 100%; padding: 14px 18px; font-size: 1.05rem; border-radius: 14px; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 1rem; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; }

/* ── home hero ── */
.hero { padding: 18px; background: linear-gradient(160deg, var(--surface) 55%, var(--primary-soft)); }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-main { flex: 1; min-width: 0; }
.hero-title { font-weight: 800; font-size: 1.25rem; margin-bottom: 6px; }
.lvl-badge { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; align-content: center; background: linear-gradient(135deg, var(--primary), #b14cf0); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.lvl-badge small { font-size: .6rem; letter-spacing: .1em; opacity: .85; line-height: 1; }
.lvl-badge b { font-size: 1.7rem; line-height: 1.1; }
.lvl-badge.sm { width: 46px; height: 46px; border-radius: 13px; }
.lvl-badge.sm b { font-size: 1.2rem; }
.bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #ffcf5c); transition: width .5s ease; }
.bar.thin { height: 10px; flex: 1; }
.bar.thin span { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.stat b { font-size: 1.25rem; }
.stat small { color: var(--muted); font-size: .75rem; }
.stat.goal { flex-direction: row; justify-content: center; gap: 8px; text-align: left; }
.stat.goal > div { display: flex; flex-direction: column; }
@media (max-width: 480px) { .stat.goal { flex-direction: column; gap: 2px; text-align: center; } .stat.goal .ring { width: 34px; height: 34px; } .stat b { font-size: 1.1rem; } }
.big-emoji { font-size: 1.3rem; line-height: 1.2; }
.ring { width: 44px; height: 44px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.hero .btn.ghost { margin-top: 6px; width: 100%; }

.callout { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-color: var(--gold); background: var(--gold-soft); }
.callout-icon { font-size: 1.8rem; }
.callout .arrow { margin-left: auto; font-size: 1.6rem; color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; line-height: 1.2; }
.chip small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; transition: transform .12s, box-shadow .12s, border-color .12s; }
.mode:hover { transform: translateY(-2px); border-color: var(--primary); }
.mode-icon { font-size: 1.7rem; }
.mode-name { font-weight: 800; }
.mode-desc { color: var(--muted); font-size: .85rem; line-height: 1.3; }
@media (max-width: 420px) { .modes { grid-template-columns: 1fr 1fr; gap: 10px; } .mode { padding: 12px; } }

/* ── play ── */
.play-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pill.streak.hot { background: #fff1e6; border-color: #fb923c; animation: pulse 1.2s infinite; }
@media (prefers-color-scheme: dark) { .pill.streak.hot { background: #3b2412; } }
@keyframes pulse { 50% { transform: scale(1.06); } }
.qcard { padding: 20px; transition: border-color .2s, box-shadow .2s; }
.qcard.good { border-color: var(--green); }
.qcard.bad { border-color: var(--red); }
.qmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.tag { background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.sentence { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.sentence.passage { font-size: 1.08rem; border-left: 4px solid var(--primary); }
.blank { display: inline-block; min-width: 4.5em; border-bottom: 3px solid var(--primary); color: transparent; line-height: 1; }
.prompt { font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.prompt .term { color: var(--primary); font-size: 1.15em; overflow-wrap: anywhere; }
.opt-text, .w-main strong, .defline { overflow-wrap: anywhere; }
.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 1rem; line-height: 1.35; transition: border-color .12s, background .12s, transform .08s; }
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.opt:active:not(:disabled) { transform: scale(.99); }
.opt .key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: .85rem; }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.right .key { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-soft); animation: shake .4s; }
.opt.wrong .key { background: var(--red); color: #fff; }
.opt.faded { opacity: .5; }
.opt:disabled { cursor: default; }
@media (hover: none) { .opt .key { display: none; } }
.typeform { display: flex; gap: 8px; }
.typeform input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-size: 1.1rem; }
.typeform input:focus { border-color: var(--primary); outline: none; }
.typeform input.right { border-color: var(--green); background: var(--green-soft); }
.typeform input.wrong { border-color: var(--red); background: var(--red-soft); }
.hint { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); }
#hintbtn { margin-top: 8px; }

.feedback { margin-top: 14px; border-radius: var(--radius); padding: 16px; border: 2px solid; animation: rise .25s ease; }
.feedback.good { background: var(--green-soft); border-color: var(--green); }
.feedback.bad { background: var(--red-soft); border-color: var(--red); }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-title { font-weight: 800; font-size: 1.15rem; }
.fb-xp { font-weight: 800; color: var(--amber); }
.fb-body p { margin: 6px 0; }
.fb-body .muted { color: inherit; opacity: .8; }
.feedback .btn { margin-top: 10px; }
.defline { margin: 6px 0; }
.parts { font-size: .92rem; color: var(--teal); }
.example { font-family: var(--serif); font-style: italic; color: var(--muted); }
.note { font-size: .9rem; background: var(--gold-soft); padding: 8px 10px; border-radius: 8px; }
.mastered-note { font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ── flashcards ── */
.flashcard { display: block; width: 100%; perspective: 1200px; border: 0; padding: 0; background: none; margin: 12px 0 16px; text-align: center; }
.fc-inner { position: relative; min-height: 300px; transition: transform .5s; transform-style: preserve-3d; }
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-front, .fc-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fc-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--surface), var(--primary-soft)); }
.fc-word { font-size: clamp(1.4rem, 7vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; max-width: 100%; }
.fc-word.small-word { font-size: 1.3rem; }
.fc-def { font-size: 1.2rem; font-weight: 600; max-width: 520px; }
.fc-sentence { font-family: var(--serif); color: var(--muted); max-width: 520px; }
.fc-tap { color: var(--primary); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.fc-status { position: absolute; top: 14px; right: 14px; }
.flash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .fc-inner { transition: none; } }

/* ── match ── */
.match-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 12px; }
.timer { margin-left: auto; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.match-col { display: grid; gap: 10px; align-content: start; }
.m-item { text-align: left; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); line-height: 1.3; transition: all .15s; }
.m-word { font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; hyphens: auto; }
.m-def { font-size: .92rem; }
.m-item:hover:not(:disabled) { border-color: var(--primary); }
.m-item.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.m-item.done { border-color: var(--green); background: var(--green-soft); opacity: .55; cursor: default; }
.m-item.shake { animation: shake .4s; border-color: var(--red); background: var(--red-soft); }
@media (max-width: 560px) {
  .match { grid-template-columns: 1fr; }
  .match-col.words { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 4px 0 8px; }
  .m-word { text-align: center; padding: 10px 8px; font-size: .95rem; }
}

/* ── results ── */
.results { text-align: center; padding: 24px 18px; }
.res-icon { font-size: 3.2rem; }
.results h1 { margin: 6px 0 2px; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 12px; }
.res-stats div { background: var(--surface-2); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; }
.res-stats b { font-size: 1.5rem; }
.res-stats small { color: var(--muted); font-size: .78rem; }
.xp-gold b, .xp-gold { color: var(--amber); font-weight: 800; }
.res-level { display: flex; align-items: center; gap: 12px; text-align: left; margin-top: 12px; }
.res-badges { display: grid; gap: 10px; margin-top: 16px; }
.res-actions { display: grid; gap: 10px; margin: 18px 0; }
.review-list { display: grid; gap: 10px; }
.review-item { padding: 12px 14px; }
.review-item p { margin: 4px 0; }

/* ── word bank ── */
.tabs { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.filters { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select, .settings select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; } }
.wlist { display: grid; gap: 8px; }
.witem { padding: 0; }
.witem summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; }
.witem summary::-webkit-details-marker { display: none; }
.w-main { min-width: 0; }
.w-short { display: block; color: var(--muted); font-size: .88rem; }
.w-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.w-body { padding: 0 14px 12px; border-top: 1px dashed var(--line); }
.w-def { font-weight: 600; }
.st { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.s-new { background: var(--surface-2); color: var(--muted); }
.s-learning { background: var(--red-soft); color: var(--red); }
.s-familiar { background: var(--gold-soft); color: var(--amber); }
.s-mastered { background: var(--green-soft); color: var(--green); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--green); }
.warn-text { color: var(--amber); }
.empty { text-align: center; color: var(--muted); padding: 24px; }

/* ── progress ── */
.hero.compact .hero-top { margin-bottom: 14px; }
.grid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; text-align: center; }
.grid-stats b { font-size: 1.25rem; }
.grid-stats small { color: var(--muted); font-size: .75rem; }
.ubar { margin-bottom: 14px; }
.ubar:last-child { margin-bottom: 0; }
.ubar-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.stack { display: flex; height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.stack span { height: 100%; transition: width .5s; }
.stack .s-mastered { background: var(--green); }
.stack .s-familiar { background: var(--gold); }
.stack .s-learning { background: #f87171; }
.legend { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .s-mastered { background: var(--green); } .legend .s-familiar { background: var(--gold); } .legend .s-learning { background: #f87171; }
.weak-list { display: grid; gap: 8px; }
.weak-row { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.weak-row:last-child { border-bottom: 0; padding-bottom: 0; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 10px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface); opacity: .55; filter: grayscale(1); }
.badge span { font-size: 1.8rem; }
.badge b { font-size: .9rem; }
.badge small { font-size: .74rem; color: var(--muted); line-height: 1.25; }
.badge.on { opacity: 1; filter: none; border: 1px solid var(--gold); background: var(--gold-soft); }
.res-badges .badge { flex-direction: row; text-align: left; gap: 10px; }
.res-badges .badge b { display: block; }
.hist { display: grid; gap: 8px; }
.hist-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; }
.settings { display: grid; gap: 16px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.set-row.col { flex-direction: column; align-items: flex-start; }
.set-row.col p { margin: 0; }
.set-row > label { font-weight: 700; }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

/* ── toasts & confetti ── */
.toasts { position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: drop .3s ease; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast.gold { border-color: var(--gold); background: var(--gold-soft); }
.toast.green { border-color: var(--green); background: var(--green-soft); }
.toast.purple { border-color: var(--primary); background: var(--primary-soft); }
.t-icon { font-size: 1.7rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
