/* ============ Englisch Profi Design System ============ */
:root {
  --bg: #0f1220;
  --bg-soft: #171b2e;
  --card: #1c2138;
  --card-2: #232a47;
  --text: #eef1fb;
  --muted: #9aa3c7;
  --line: #2b3358;
  --primary: #5b8cff;
  --primary-2: #8a5bff;
  --good: #35d0a5;
  --warn: #ffb020;
  --bad: #ff5d73;
  --gold: #ffd24a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --maxw: 560px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f3f5fc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f0f3ff;
  --text: #171a2b;
  --muted: #5c6485;
  --line: #e2e7f5;
  --shadow: 0 12px 30px rgba(30,40,90,.12);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;              /* nur #app scrollt -> Nav wandert nicht mit der Adressleiste */
  overscroll-behavior: none;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(138,91,255,.16), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(91,140,255,.16), transparent 55%),
    var(--bg);
  -webkit-tap-highlight-color: transparent;
}
.app {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;        /* Firefox: Scrollbalken aus */
  -ms-overflow-style: none;     /* alt-Edge */
}
.app::-webkit-scrollbar { width: 0; height: 0; display: none; } /* Chrome/Safari/Edge */
.sb-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.sb-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ---------- Typography ---------- */
h1,h2,h3 { margin: 0; line-height: 1.15; }
h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 20px; letter-spacing: -.01em; }
p { color: var(--muted); line-height: 1.5; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; }
.spacer { flex: 1; }
.pill {
  display:inline-flex; align-items:center; gap:6px;
  background: var(--card); border:1px solid var(--line);
  padding: 7px 11px; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.pill.gold { color: var(--gold); }
.pill.fire { color: #ff8a4a; }

/* ---------- Cards & layout ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--text);
  font-family: inherit;
}
.stack { display:flex; flex-direction: column; gap: 14px; }
.row { display:flex; gap: 12px; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  appearance:none; border:none; cursor:pointer;
  font-family: inherit; font-weight: 800; font-size: 16px;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 15px 18px; border-radius: 14px; width: 100%;
  box-shadow: 0 8px 20px rgba(91,140,255,.35);
  transition: transform .08s ease, filter .15s ease, opacity .15s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity:.5; cursor: default; box-shadow:none; }
.btn.secondary {
  background: var(--card-2); color: var(--text);
  border:1px solid var(--line); box-shadow:none;
}
.btn.ghost { background: transparent; color: var(--muted); box-shadow:none; }
.btn.sm { padding: 10px 14px; font-size: 14px; width:auto; border-radius: 11px; }
.btn.good { background: linear-gradient(135deg,#2fd39f,#1fb98a); box-shadow:0 8px 20px rgba(53,208,165,.3);}
.btn.bad  { background: linear-gradient(135deg,#ff6b7f,#ff4d68); box-shadow:0 8px 20px rgba(255,93,115,.3);}
.btnrow { display:flex; gap:10px; }
.btnrow .btn { width:auto; flex:1; }

/* Rating buttons */
.ratings { display:grid; grid-template-columns: repeat(4,1fr); gap:8px; }
.rate { padding:13px 6px; border-radius:12px; font-weight:800; font-size:14px; border:1px solid var(--line); cursor:pointer; color:#fff; }
.rate small { display:block; font-weight:600; font-size:11px; opacity:.85; margin-top:3px; }
.rate.again { background:#3a2440; border-color:#5a2f4d; }
.rate.hard  { background:#3a3320; border-color:#5a4d2f; }
.rate.good  { background:#1f3a33; border-color:#2f5a4d; }
.rate.easy  { background:#20293a; border-color:#2f415a; }
:root[data-theme="light"] .rate { color: var(--text); }

/* ---------- Progress ---------- */
.bar { height: 12px; border-radius: 999px; background: var(--card-2); overflow:hidden; }
.bar > span { display:block; height:100%; border-radius:999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.ring { --p:0; width:120px; height:120px; border-radius:50%;
  background: conic-gradient(var(--good) calc(var(--p)*1%), var(--card-2) 0);
  display:grid; place-items:center; }
.ring > div { width:92px; height:92px; border-radius:50%; background:var(--card); display:grid; place-items:center; text-align:center; }

/* ---------- Flashcard ---------- */
.flash {
  min-height: 210px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; text-align:center; cursor:pointer; user-select:none;
}
.flash .word { font-size: 34px; font-weight: 800; letter-spacing:-.02em; }
.flash .sub { font-size: 15px; color: var(--muted); }
.flash .hint { font-size: 12px; color: var(--muted); opacity:.8; }
.divider { height:1px; background:var(--line); width:100%; margin:6px 0; }
.reveal-en { animation: pop .25s ease; }

/* Satzbau: Wort-Kärtchen */
.answer-row { min-height:58px; display:flex; flex-wrap:wrap; gap:8px; align-content:flex-start;
  padding:12px; border-radius:14px; border:1.5px dashed var(--line); background:var(--card-2); margin-bottom:16px; }
.pool-row { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.wtile { padding:11px 14px; border-radius:12px; border:1.5px solid var(--line); background:var(--card);
  color:var(--text); font-weight:800; font-size:16px; cursor:pointer; box-shadow:0 3px 9px rgba(0,0,0,.13);
  transition: transform .08s; }
.wtile:active { transform: scale(.95); }
/* Lücke im Wort-Pool: gewähltes Kärtchen bleibt als leerer Platz stehen (nichts rutscht) */
.wtile.wtile-slot { border:1.5px dashed var(--line); background:transparent; box-shadow:none;
  color:transparent; cursor:default; pointer-events:none; }

/* Eigene Eselsbrücke auf der Lernkarte */
.mnemo-box { background: color-mix(in srgb, var(--gold) 10%, var(--card-2));
  border:1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius:12px;
  padding:9px 12px; font-size:14px; line-height:1.45; text-align:left; }
.mnemo-edit { display:flex; gap:8px; align-items:center; }
.mnemo-edit input { flex:1; min-width:0; background:var(--card-2); border:1px solid var(--line);
  border-radius:10px; color:var(--text); font-family:inherit; font-size:16px; padding:10px 12px; }
.mnemo-ex { display:block; width:100%; text-align:left; background:var(--card-2); border:1px solid var(--line);
  border-radius:10px; padding:8px 11px; margin-top:6px; color:var(--text); font-family:inherit; font-size:13px;
  line-height:1.4; cursor:pointer; transition:border-color .15s; }
.mnemo-ex:active, .mnemo-ex:hover { border-color:var(--primary); }

/* Sprech-Urteil + vorgeschlagene Bewertung */
.verdict { padding:11px 13px; border-radius:12px; font-weight:800; text-align:center; margin-bottom:10px; animation: pop .25s ease; }
.verdict.ok { background: rgba(53,208,165,.18); color: var(--good); border:1px solid var(--good); }
.verdict.no { background: rgba(255,93,115,.16); color: var(--bad); border:1px solid var(--bad); }
.rate.suggest { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(91,140,255,.55) } 50%{ box-shadow:0 0 0 7px rgba(91,140,255,0) } }

/* Grün/Rot-Blinken der Karte beim Sprechen */
.flash-green { animation: flashGreen .7s ease; }
.flash-red { animation: flashRed .6s ease; }
.gapinput { font: inherit; text-align:center; color:var(--text); background:var(--card-2);
  border:none; border-bottom:2px solid var(--primary); border-radius:8px 8px 0 0;
  padding:2px 8px; margin:0 4px; min-width:3ch; outline:none; vertical-align:baseline; }
.gapinput:focus { background: color-mix(in srgb, var(--primary) 16%, var(--card-2)); }
@keyframes flashGreen {
  0%{ box-shadow: var(--shadow) }
  30%{ box-shadow:0 0 0 4px var(--good), var(--shadow); background: rgba(53,208,165,.14); border-color: var(--good) }
  100%{ box-shadow: var(--shadow) }
}
@keyframes flashRed {
  0%,100%{ box-shadow: var(--shadow) }
  20%,60%{ box-shadow:0 0 0 4px var(--bad), var(--shadow); background: rgba(255,93,115,.14); border-color: var(--bad) }
  40%,80%{ box-shadow: var(--shadow); background: transparent }
}
.pill.boost { background: rgba(53,208,165,.22); color: var(--good); border-color: var(--good); transition: all .15s; }
.pill.penalty { background: rgba(255,93,115,.22); color: var(--bad); border-color: var(--bad); animation: shake .35s ease; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ---------- Chips / tags ---------- */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:var(--card);
  color:var(--text); font-family:inherit; font-weight:700; font-size:13px; cursor:pointer; }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff; border-color:transparent; }

/* choices (games / placement) */
.choices { display:grid; gap:11px; }
.choice { text-align:left; padding:16px 18px; border-radius:15px; border:1.5px solid var(--line);
  background: var(--card); color:var(--text); font-weight:800; font-size:16.5px; cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
  transition: transform .1s, background .15s, border-color .15s, box-shadow .15s; }
.choice:active { transform: scale(.98); }
.choice:disabled { cursor: default; }
.choice.correct { background: rgba(53,208,165,.20); border-color: var(--good); color: var(--good);
  box-shadow:0 0 0 3px rgba(53,208,165,.22); animation: pop .3s ease; }
.choice.wrong { background: rgba(255,93,115,.18); border-color: var(--bad); animation: shake .35s ease; }

/* matching */
.match-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.match { min-height:66px; display:flex; align-items:center; justify-content:center;
  padding:14px 12px; border-radius:16px; border:1.5px solid var(--line);
  background:var(--card); color:var(--text); font-family:inherit;
  font-weight:800; font-size:16px; line-height:1.25; cursor:pointer; text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,.14); transition: transform .1s, background .15s, border-color .15s, box-shadow .15s; }
@media (hover:hover) { .match:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  transform: translateY(-1px); box-shadow:0 7px 18px rgba(0,0,0,.22); } }
.match:active { transform: scale(.97); }
.match.sel { border-color: var(--primary); color:var(--text);
  background: color-mix(in srgb, var(--primary) 18%, var(--card));
  box-shadow:0 0 0 3px rgba(91,140,255,.32); transform: translateY(-1px); }
.match.correct { background: rgba(53,208,165,.20); border-color: var(--good); color: var(--good); animation: pop .3s ease; }
.match.wrong { background: rgba(255,93,115,.18); border-color: var(--bad); animation: shake .35s ease; }
.match.done { opacity:.4; pointer-events:none; box-shadow:none; }

/* ---------- Badges ---------- */
.badges { display:grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap:12px; }
.badge { text-align:center; padding:14px 8px; border-radius:14px; border:1px solid var(--line); background:var(--card); }
.badge .ico { font-size:30px; }
.badge .nm { font-size:12px; font-weight:700; margin-top:6px; }
.badge.locked { opacity:.4; filter: grayscale(1); }

/* ---------- Stat tiles ---------- */
.tiles { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; }
.tile .n { font-size:26px; font-weight:800; }
.tile .l { font-size:12px; color:var(--muted); }

/* streak calendar */
.cal { display:grid; grid-template-columns: repeat(7,1fr); gap:6px; }
.cal .d { aspect-ratio:1; border-radius:7px; background:var(--card-2); display:grid; place-items:center; font-size:11px; color:var(--muted); }
.cal .d.on { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff; }

/* ---------- Bottom nav ---------- */
.nav {
  flex: 0 0 auto;                /* Layout-Teil unten – nicht viewport-fixiert */
  width: 100%;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin:0 auto; display:grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.nav button { background:none; border:none; color:var(--muted); font-family:inherit; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px; font-size:10px; font-weight:700; white-space:nowrap; }
.nav button .i { font-size:19px; }
.nav button.active { color: var(--primary); }

/* ---------- FX: confetti & toast ---------- */
.fx-layer { position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:50; }
.confetti { position:absolute; width:10px; height:14px; border-radius:2px; will-change: transform, opacity;
  animation: fall linear forwards; }
.toast-layer { position:fixed; left:0; right:0; bottom:calc(84px + env(safe-area-inset-bottom)); z-index:60;
  display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none; }
.toast { background:var(--card); border:1px solid var(--line); color:var(--text); padding:11px 16px;
  border-radius:999px; font-weight:800; box-shadow:var(--shadow); animation: pop .25s ease; }
.toast.xp { color: var(--gold); }
.toast.up { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff; border-color:transparent; }

/* level up overlay */
.levelup { position:fixed; inset:0; z-index:70; display:grid; place-items:center;
  background: rgba(6,8,18,.6); backdrop-filter: blur(6px); animation: fade .2s ease; }
.levelup .box { text-align:center; background:var(--card); border:1px solid var(--line); border-radius:24px;
  padding:28px 26px; box-shadow:var(--shadow); animation: pop .35s cubic-bezier(.2,1.2,.3,1); }
.levelup .big { font-size:64px; }

/* ---------- misc ---------- */
.sound { background:var(--card-2); border:1px solid var(--line); width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; font-size:20px; color:var(--text); }
.hero { text-align:center; padding: 22px 6px; }
.hero .em { font-size:58px; }
.list { display:flex; flex-direction:column; gap:8px; }
.item { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line);
  background:var(--card); border-radius:13px; }
.dot { width:10px; height:10px; border-radius:50%; }
.right { margin-left:auto; }
.link { color: var(--primary); font-weight:700; cursor:pointer; background:none; border:none; font-family:inherit; font-size:14px; }
.hidden { display:none !important; }

/* ---------- animations ---------- */
@keyframes pop { from { transform: scale(.9); opacity:0 } to { transform: scale(1); opacity:1 } }
@keyframes fade { from { opacity:0 } to { opacity:1 } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9 } }
@keyframes shake { 10%,90%{transform:translateX(-1px)} 30%,70%{transform:translateX(3px)} 50%{transform:translateX(-5px)} }
.shake { animation: shake .35s ease; }
.fade-in { animation: fade .25s ease; }

@media (min-width: 600px) { .app { padding-top: 26px; } }

/* Spiel-Kachel-Titel: moderner blauer Akzent, etwas größer */
.tile-title { font-weight: 800; margin-top: 6px; font-size: 17px; color: var(--primary); }

/* XP-Tagesziel-Karte auf der Startseite: dezenter Akzent, damit sie als Ziel heraussticht */
.goalcard { border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  animation: goalPulse 2.4s ease-in-out infinite; }
.goalcard .bar { overflow: hidden; }
.goalcard .bar span {
  background:
    linear-gradient(100deg, transparent 15%, rgba(255,255,255,.45) 50%, transparent 85%),
    linear-gradient(90deg, var(--primary), var(--gold));
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: goalShine 2.1s linear infinite;
}
@keyframes goalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,140,255,0); }
  50%      { box-shadow: 0 0 20px 0 rgba(91,140,255,.5); }
}
@keyframes goalShine {
  0%   { background-position: -160% 0, 0 0; }
  100% { background-position: 260% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .goalcard, .goalcard .bar span { animation: none; }
  .goalcard .bar span { background: linear-gradient(90deg, var(--primary), var(--gold)); }
}

/* Einklappbare Karten (details) in den Einstellungen */
details.card > summary { list-style: none; cursor: pointer; font-weight: 800; display: flex; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 22px; transition: transform .2s; }
details.card[open] > summary::after { transform: rotate(90deg); }
details.card > *:not(summary) { margin-top: 10px; }

/* Einzelne Tipp-Aufklapper innerhalb von „Hilfe & Tipps" */
.help-item { border-top: 1px solid var(--line); }
.help-item:first-child { border-top: none; }
.help-item > summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 14px; padding: 11px 0; display: flex; align-items: center; }
.help-item > summary::-webkit-details-marker { display: none; }
.help-item > summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 18px; transition: transform .2s; }
.help-item[open] > summary::after { transform: rotate(90deg); }
.help-item > p { margin: 0 0 11px; }

/* Antippbare "Diese kannst du üben"-Zeile (zum Anhören) */
.miss-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; font-family: inherit; font-size: 15px;
  transition: transform .08s ease, background .15s ease;
}
.miss-row:active { transform: scale(.98); background: var(--bg-soft); }

/* ---------- Gründerdenkmal-Teaser (goldenes 5. Kästchen) ---------- */
.founder-teaser {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  border: 1px solid rgba(245,197,66,.55);
  color: #3a2c00;
  background: linear-gradient(115deg, #caa42a 0%, #f5c542 38%, #fff6c2 50%, #f5c542 62%, #caa42a 100%);
  background-size: 220% 100%;
  animation: founderShimmer 9s linear infinite, founderGlow 5s ease-in-out infinite;
}
.founder-teaser::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120px 60px at 85% 0%, rgba(255,255,255,.5), transparent 70%);
}
.founder-teaser .ft-ico { font-size: 32px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.founder-teaser .ft-title { font-weight: 900; font-size: 16px; letter-spacing: .01em; }
.founder-teaser .ft-sub { font-size: 12.5px; font-weight: 700; opacity: .85; }
.founder-teaser .ft-pill {
  background: rgba(0,0,0,.22); color: #fff; font-weight: 800; font-size: 11px;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
@keyframes founderShimmer { from { background-position: 220% 0; } to { background-position: -220% 0; } }
@keyframes founderGlow {
  0%, 100% { box-shadow: 0 8px 26px -10px rgba(245,197,66,.55); }
  50%      { box-shadow: 0 12px 40px -6px rgba(245,197,66,.9); }
}
@media (prefers-reduced-motion: reduce) {
  .founder-teaser { animation: none; background-position: 50% 0; }
}

/* ---------- GOAT: goldener Schriftzug (Rangliste/Profil) + Regelzeilen ---------- */
.goat-tag {
  display: inline-block; font-weight: 900; letter-spacing: .6px; font-size: 11px; vertical-align: middle;
  background: linear-gradient(100deg, #7a5800 0%, #ffcf5b 20%, #fff6c8 40%, #ffcf5b 60%, #7a5800 85%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: background-position; animation: goatShine 3s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255,207,91,.4));
}
@keyframes goatShine { from { background-position: 0% center; } to { background-position: 250% center; } }
@keyframes goatPulse { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes goatGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,207,91,0); } 50% { box-shadow: 0 0 22px 2px rgba(255,207,91,.55); } }
@keyframes goatFlash { 0% { opacity: 0; } 10% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.goat-ln { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; margin-bottom: 9px; }
.goat-ln > span:first-child { font-size: 16px; flex: 0 0 auto; width: 20px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .goat-tag { animation: none; } }

/* ---------- Streak-Flammen-Effekt ---------- */
.flame-burst { position: fixed; inset: 0; z-index: 66; pointer-events: none; display: grid; place-items: center; }
.flame-big { font-size: 130px; filter: drop-shadow(0 0 24px rgba(255,140,0,.6)); animation: flamePop 1.25s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes flamePop {
  0%   { transform: scale(.3) translateY(30px); opacity: 0; }
  22%  { transform: scale(1.15) translateY(0);  opacity: 1; }
  60%  { transform: scale(1) translateY(-10px); opacity: 1; }
  100% { transform: scale(1.2) translateY(-70px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .flame-big { animation: none; opacity: 0; } }
