:root {
  --bg: #0f1630;
  --bg2: #182248;
  --card: #1f2b5a;
  --line: #2c3a72;
  --text: #f2f4ff;
  --muted: #a8b0d6;
  --blue: #3d6bff;
  --blue2: #5b84ff;
  --red: #ef4565;
  --gold: #ffd23f;
  --green: #21c07a;
  --orange: #ff8a3d;
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 60% at 50% 0%, #22306a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-size: 16px;
  overscroll-behavior-y: none;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: .4em 0; line-height: 1.15; }
h3 { margin-top: 1.6em; font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.boot { display: grid; place-items: center; height: 100vh; font-size: 4rem; animation: spin 1.2s linear infinite; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px;
  padding: 14px 20px; border-radius: 16px; font-weight: 800; font-size: 1rem;
  background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line);
  transition: transform .08s, box-shadow .08s, filter .2s;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn.primary { background: var(--blue); border-color: var(--blue); box-shadow: 0 5px 0 #2448c4; color: #fff; }
.btn.primary:active:not(:disabled) { box-shadow: 0 2px 0 #2448c4; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); box-shadow: 0 4px 0 #8a2238; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 18px; font-size: 1.15rem; }
.btn.wide { width: 100%; margin: 28px 0 10px; }
.btn small { font-weight: 600; font-size: .8rem; opacity: .85; }
.btn:disabled { filter: grayscale(.8) brightness(.7); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,.06); flex: none; }
.icon-btn.sm { width: 30px; height: 30px; font-size: .95rem; }
.icon-btn.playing, .vbtn.playing { animation: pulse .7s ease-in-out infinite; }
.row-btns { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.row-btns > * { flex: 1; }

/* login */
.login { padding: calc(30px + var(--safe-t)) 22px 40px; }
.login-hero { text-align: center; margin-bottom: 24px; }
.login-hero h1 { font-size: 2.6rem; font-weight: 900; letter-spacing: -1px; }
.login-hero h1 span { color: var(--red); }
.logo-cards { position: relative; height: 130px; margin: 10px auto 6px; width: 240px; }
.lc { position: absolute; width: 110px; height: 120px; border-radius: 18px; display: grid; place-items: center; font-weight: 900; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lc1 { left: 0; top: 10px; background: var(--blue); transform: rotate(-12deg); animation: float 4s ease-in-out infinite; }
.lc2 { left: 65px; top: 0; background: #fff; color: var(--red); font-size: 3rem; z-index: 2; animation: float 4s ease-in-out -1.3s infinite; }
.lc3 { right: 0; top: 10px; background: var(--red); transform: rotate(12deg); animation: float 4s ease-in-out -2.6s infinite; }
.tabs { display: flex; background: var(--bg2); border-radius: 16px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; padding: 12px; border-radius: 12px; font-weight: 800; color: var(--muted); transition: background .2s; }
.tabs button.on { background: var(--card); color: var(--text); }
.login-form, .settings { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
input, select {
  font: inherit; color: var(--text); background: var(--bg2); border: 2px solid var(--line);
  border-radius: 14px; padding: 13px 14px; font-size: 1rem; outline: none; width: 100%;
}
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--blue); }
input[type=range] { padding: 0; accent-color: var(--blue); }
input:focus, select:focus { border-color: var(--blue); }
.form-error { color: var(--red); margin: 0; font-weight: 700; }

/* topo e navegação */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(15,22,48,.88); backdrop-filter: blur(10px);
}
.me { display: flex; align-items: center; gap: 10px; }
.me b { display: block; }
.me small { color: var(--muted); font-size: .78rem; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.5rem; background: var(--card); border-radius: 50%; border: 2px solid var(--line); flex: none; }
.avatar.xl { width: 72px; height: 72px; font-size: 2.6rem; }
.pills { display: flex; gap: 8px; }
.pill { padding: 6px 10px; border-radius: 999px; background: var(--card); font-size: .9rem; white-space: nowrap; }
.pill.streak { filter: grayscale(1); opacity: .7; }
.pill.streak.lit { filter: none; opacity: 1; animation: glow 2s ease-in-out infinite; }
.page { padding: 8px 16px calc(96px + var(--safe-b)); }
.page.center { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; min-height: 100vh; padding-bottom: 40px; }
.page-title { margin-top: 12px; }
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20;
  display: flex; background: rgba(15,22,48,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b));
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); font-weight: 700; padding: 4px 0; border-radius: 12px; }
.bottom-nav a span { font-size: 1.35rem; transition: transform .2s; }
.bottom-nav a.on { color: var(--text); background: rgba(61,107,255,.18); }
.bottom-nav a.on span { transform: translateY(-2px) scale(1.12); }
.back { color: var(--muted); display: inline-block; margin: 10px 0; font-weight: 700; }

/* início */
.mascot-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.mascot { font-size: 3rem; }
.bubble { position: relative; background: #fff; color: #1a2250; padding: 10px 14px; border-radius: 16px; font-weight: 800; font-size: .95rem; animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.bubble::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.level-card, .goal-card { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; border: 2px solid var(--line); }
.level-badge { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #3b2600; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; transform: rotate(-4deg); box-shadow: 0 6px 0 #a35a15; }
.level-badge small { font-size: .7rem; font-weight: 800; }
.level-badge b { font-size: 1.6rem; line-height: 1; }
.level-info { flex: 1; }
.xpbar { position: relative; height: 22px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-top: 8px; width: 100%; }
.xpbar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--orange)); border-radius: 999px; transition: width .8s cubic-bezier(.2,.9,.3,1); }
.xpbar-fill::after { content: ""; position: absolute; inset: 3px 8px auto 8px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.45); }
.xpbar span { position: relative; display: block; text-align: center; font-size: .75rem; font-weight: 800; line-height: 22px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ring { width: 110px; height: 110px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: var(--bg2); }
.ring-fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.9,.3,1); }
.ring text { transform: rotate(90deg); transform-origin: 60px 60px; fill: var(--text); }
.ring-num { font-size: 30px; font-weight: 900; }
.ring-sub { font-size: 12px; fill: var(--muted) !important; }
.goal-text { flex: 1; position: relative; }
.goal-text p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; padding-right: 54px; }
.chest { position: absolute; right: -4px; top: 50%; margin-top: -26px; font-size: 2.6rem; filter: grayscale(1) opacity(.5); }
.chest.ready { filter: none; animation: wiggle 1.2s ease-in-out infinite; }
.chest.open { filter: none; opacity: .6; }
.chest.opening { animation: shakeHard .6s ease-in-out; }
.cta { margin: 6px 0 12px; }
.cta:not(:disabled) { animation: breathe 2.5s ease-in-out infinite; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.tile { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; transition: transform .15s; }
.tile:active { transform: scale(.96); }
.tile span { font-size: 1.8rem; }
.tile small { color: var(--muted); font-size: .8rem; }
.quiz-tile { background: linear-gradient(135deg, #5b3dff, #a23dff); border-color: #7b5bff; }
.quiz-tile small { color: #e3dbff; }

/* temas */
.theme-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.theme-row { display: flex; align-items: center; gap: 12px; background: var(--card); padding: 12px; border-radius: 16px; border: 2px solid var(--line); }
.theme-row:active { transform: scale(.98); }
.theme-icon { font-size: 1.8rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--bg2); border-radius: 14px; flex: none; }
.theme-icon.big { width: 64px; height: 64px; font-size: 2.4rem; }
.theme-body { flex: 1; min-width: 0; }
.theme-body small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.mini-bar { position: relative; height: 6px; background: var(--bg2); border-radius: 9px; margin-top: 6px; overflow: hidden; }
.mini-bar i { position: absolute; inset: 0 auto 0 0; background: var(--blue2); border-radius: 9px; }
.mini-bar i.m { background: var(--gold); }
.fav { font-size: 1.4rem; padding: 6px; color: var(--muted); }
.fav.on { animation: popIn .3s; }
.theme-head { display: flex; gap: 14px; align-items: center; }
.word-list { list-style: none; padding: 0; margin: 10px 0; }
.word-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.word-list li div { flex: 1; }
.word-list b { display: block; }
.word-list small { color: var(--muted); }
.word-list em { display: block; color: var(--blue2); font-size: .85rem; margin-top: 2px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.new { background: var(--line); } .dot.learn { background: var(--blue2); } .dot.ok { background: var(--gold); }
.legend { color: var(--muted); font-size: .8rem; display: flex; gap: 6px; align-items: center; }

/* estudo */
.study, .quiz { padding: calc(10px + var(--safe-t)) 16px calc(20px + var(--safe-b)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.study-top, .quiz-top { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 16px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6be3a9); border-radius: 999px; transition: width .4s; }
.combo { min-width: 54px; text-align: right; font-weight: 900; color: var(--orange); }
.combo.hot { animation: pulse .6s ease-in-out infinite; color: var(--gold); }
.card-wrap { perspective: 1200px; margin: 18px 0 14px; flex: 1; display: flex; min-height: 280px; max-height: 420px; }
.card { position: relative; width: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,1.3,.5,1); cursor: pointer; }
.card.enter { animation: cardIn .4s cubic-bezier(.2,1.3,.4,1); }
.card.flipped { transform: rotateY(180deg); }
.card.out-right { animation: outRight .3s ease-in forwards; }
.card.out-left { animation: outLeft .3s ease-in forwards; }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 20px;
  background: #fff; color: #1a2250; box-shadow: 0 8px 0 #c8d0f0, 0 20px 40px rgba(0,0,0,.35);
}
.face.back { transform: rotateY(180deg); background: linear-gradient(160deg, #ffffff, #eef2ff); }
.card.flipped.out-right { animation: outRightFlipped .3s ease-in forwards; }
.card.flipped.out-left { animation: outLeftFlipped .3s ease-in forwards; }
.tag { position: absolute; top: 16px; left: 16px; right: 16px; font-size: .78rem; font-weight: 800; color: #5a6596; text-align: left; }
.tag .new { color: var(--red); }
.main { font-size: clamp(1.5rem, 7vw, 2.3rem); font-weight: 900; line-height: 1.2; word-break: break-word; }
.main.fr { color: #1d3cc4; }
.trans { font-size: 1.25rem; font-weight: 700; margin-top: 12px; color: #2b3260; }
.example { margin-top: 16px; font-style: italic; color: #4c5687; font-size: .95rem; display: flex; align-items: center; gap: 6px; justify-content: center; }
.example .icon-btn { background: #e3e8ff; }
.hint { position: absolute; bottom: 16px; font-size: .8rem; color: #8a93bf; font-weight: 700; }
.voice { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.vbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: .78rem; color: var(--muted); transition: opacity .2s; }
.vbtn span { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 50%; background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.vbtn:active span { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.vbtn.mic span { width: 72px; height: 72px; font-size: 2rem; background: var(--red); border-color: var(--red); box-shadow: 0 5px 0 #a3243f; }
.vbtn.mic.rec span { animation: recPulse 1s ease-in-out infinite; }
.vbtn:disabled, .vbtn.dim { opacity: .4; }
.pron { min-height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; text-align: center; }
.pron p { margin: 0; }
.listening { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.listening i { width: 5px; height: 20px; background: var(--red); border-radius: 4px; animation: eq .8s ease-in-out infinite; }
.listening i:nth-child(2) { animation-delay: .1s; } .listening i:nth-child(3) { animation-delay: .2s; }
.listening i:nth-child(4) { animation-delay: .3s; } .listening i:nth-child(5) { animation-delay: .4s; }
.listening span { margin-left: 10px; font-style: italic; }
.pron-result { display: flex; gap: 14px; align-items: center; text-align: left; animation: popIn .35s cubic-bezier(.2,1.6,.4,1); background: var(--card); padding: 10px 14px; border-radius: 16px; width: 100%; }
.pron-result small { color: var(--muted); display: block; margin-top: 4px; }
.score-ring { --p: 0; --c: var(--red); width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg2) 0); }
.score-ring b { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 1.05rem; }
.pron-result.great .score-ring { --c: var(--green); } .pron-result.good .score-ring { --c: var(--blue2); } .pron-result.mid .score-ring { --c: var(--orange); }
.pron-result.great > div > b { color: var(--green); }
.words { margin-top: 4px; font-weight: 800; }
.words .ok { color: var(--green); } .words .miss { color: var(--red); text-decoration: underline wavy; }
.actions { margin-top: auto; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; animation: slideUp .3s ease-out; }
.grade { padding: 12px 4px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; font-weight: 800; color: #fff; transition: transform .08s; }
.grade small { font-weight: 600; font-size: .72rem; opacity: .9; }
.grade:active { transform: translateY(3px); }
.g1 { background: var(--red); box-shadow: 0 4px 0 #a3243f; }
.g2 { background: var(--orange); box-shadow: 0 4px 0 #b55a1c; }
.g3 { background: var(--green); box-shadow: 0 4px 0 #148552; }
.g4 { background: var(--blue); box-shadow: 0 4px 0 #2448c4; }

/* resumo */
.summary h2 { font-size: 2rem; }
.stars { display: flex; gap: 6px; margin-bottom: 4px; }
.star { font-size: 3.4rem; color: var(--bg2); -webkit-text-stroke: 2px var(--line); }
.star.on { color: var(--gold); -webkit-text-stroke: 0; animation: starIn .6s cubic-bezier(.2,1.8,.4,1) both; }
.sum-grid, .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 16px 0; }
.stat-grid { grid-template-columns: repeat(3, 1fr); }
.sum-grid div, .stat-grid div { background: var(--card); border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; border: 2px solid var(--line); }
.sum-grid b, .stat-grid b { font-size: 1.6rem; font-weight: 900; }
.sum-grid small, .stat-grid small { color: var(--muted); font-size: .78rem; }
.big-emoji { font-size: 5rem; }

/* quiz */
.quiz-score { display: flex; justify-content: space-between; margin: 14px 4px 0; font-weight: 900; font-size: 1.1rem; }
.qtime { font-weight: 900; font-size: 1.1rem; min-width: 50px; text-align: right; }
.qtime.low { color: var(--red); animation: pulse .5s ease-in-out infinite; }
.quiz-q { background: #fff; color: #1a2250; border-radius: 26px; padding: 36px 20px; margin: 18px 0; text-align: center; position: relative; box-shadow: 0 8px 0 #c8d0f0; }
.quiz-q .icon-btn { position: absolute; top: 10px; right: 10px; background: #e3e8ff; }
.opts { display: grid; gap: 10px; }
.opt { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 16px; font-weight: 800; text-align: left; box-shadow: 0 4px 0 var(--line); transition: background .15s; animation: slideUp .25s ease-out both; }
.opt:nth-child(2) { animation-delay: .04s; } .opt:nth-child(3) { animation-delay: .08s; } .opt:nth-child(4) { animation-delay: .12s; }
.opt.right { background: var(--green); border-color: var(--green); box-shadow: 0 4px 0 #148552; animation: popIn .3s; }
.opt.wrong { background: var(--red); border-color: var(--red); box-shadow: 0 4px 0 #a3243f; animation: shake .4s; }
.countdown { font-size: 8rem; font-weight: 900; color: var(--gold); animation: countPop .7s ease-out; }

/* conquistas e loja */
.award-grid, .shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.award, .shop-item { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: popIn .35s both; }
.award span, .shop-item span { font-size: 2.2rem; }
.award b, .shop-item b { font-size: .78rem; line-height: 1.15; }
.award small, .shop-item small { color: var(--muted); font-size: .7rem; line-height: 1.2; }
.award:not(.got) { opacity: .5; }
.award.got { border-color: var(--gold); background: linear-gradient(160deg, #2d3a75, #3a3260); }
.shop-item { cursor: pointer; }
.shop-item.poor { opacity: .55; }
.shop-item.owned { border-color: var(--blue2); }
.shop-item.equipped { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,63,.25); }
.shop-item .desc { font-size: .66rem; }

/* perfil */
.profile-head { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.ranking { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ranking li { display: grid; grid-template-columns: 34px 40px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: var(--card); padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); }
.ranking li.me { border-color: var(--blue2); }
.ranking .pos { grid-row: span 2; font-size: 1.3rem; text-align: center; font-weight: 900; }
.ranking .avatar { grid-row: span 2; }
.ranking small { color: var(--muted); font-size: .75rem; grid-column: 3; }
.ranking .xp { grid-row: 1 / span 2; grid-column: 4; font-weight: 900; color: var(--gold); }
.support { list-style: none; padding: 0; margin: 0; line-height: 1.8; }

/* modal, toast, efeitos */
.modal-back { position: fixed; inset: 0; background: rgba(5,8,20,.7); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.modal-back.out { animation: fadeOut .2s forwards; }
.modal { background: var(--bg2); border: 2px solid var(--line); border-radius: 24px; padding: 24px; width: 100%; max-width: 380px; text-align: center; animation: popIn .35s cubic-bezier(.2,1.6,.4,1); }
.reward-icon { font-size: 5rem; }
.reward h2 { font-size: 2rem; color: var(--gold); }
.reward-line { font-size: 1.3rem; font-weight: 900; margin: 6px 0; }
.reward .btn { margin-top: 14px; width: 100%; }
#toast-root { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60; width: calc(100% - 24px); max-width: 420px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: toastIn .4s cubic-bezier(.2,1.5,.4,1); font-weight: 700; }
.toast.out { animation: toastOut .4s forwards; }
.toast.gold { border-color: var(--gold); }
.toast.bad { border-color: var(--red); }
.toast small { color: var(--muted); font-weight: 600; }
.t-icon { font-size: 1.8rem; }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.float-text { position: fixed; z-index: 80; transform: translateX(-50%); font-weight: 900; font-size: 1.3rem; pointer-events: none; animation: floatUp 1.3s ease-out forwards; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.float-text.xp { color: var(--gold); }
.float-text.combo-txt { color: var(--orange); font-size: 1.6rem; }
.shake { animation: shake .45s; }
.bounce { animation: bounce 2s ease-in-out infinite; }
.pop { animation: popIn .5s cubic-bezier(.2,1.6,.4,1); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } 50% { box-shadow: 0 0 14px 2px rgba(255,138,61,.55); } }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg) scale(1.1); } 30% { transform: rotate(12deg) scale(1.1); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(0); } }
@keyframes shakeHard { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-10deg); } 40% { transform: translateX(8px) rotate(10deg); } 60% { transform: translateX(-6px) rotate(-6deg) scale(1.2); } 80% { transform: scale(1.5); opacity: .5; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px) rotate(-5deg); } }
@keyframes cardIn { 0% { transform: translateY(40px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes outRight { to { transform: translateX(120%) rotate(18deg); opacity: 0; } }
@keyframes outLeft { to { transform: translateX(-120%) rotate(-18deg); opacity: 0; } }
@keyframes outRightFlipped { from { transform: rotateY(180deg); } to { transform: translateX(120%) rotate(18deg) rotateY(180deg); opacity: 0; } }
@keyframes outLeftFlipped { from { transform: rotateY(180deg); } to { transform: translateX(-120%) rotate(-18deg) rotateY(180deg); opacity: 0; } }
@keyframes recPulse { 0%, 100% { box-shadow: 0 5px 0 #a3243f, 0 0 0 0 rgba(239,69,101,.6); } 50% { box-shadow: 0 5px 0 #a3243f, 0 0 0 16px rgba(239,69,101,0); } }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1.2); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes starIn { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes countPop { 0% { transform: scale(2); opacity: 0; } 40% { transform: scale(1); opacity: 1; } 100% { transform: scale(.8); opacity: .3; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes toastIn { from { transform: translateY(-30px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-30px); opacity: 0; } }
@keyframes floatUp { 0% { transform: translate(-50%, 0) scale(.8); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { transform: translate(-50%, -80px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-height: 640px) {
  .card-wrap { min-height: 220px; }
  .vbtn span { width: 50px; height: 50px; }
  .vbtn.mic span { width: 60px; height: 60px; }
}
