/* English Quest 2 — styles. Everything is scoped to .eq-app / .eq-lb. */

/* ---------- themes (admin chooses one) ---------- */
.eq-app, .eq-lb {
  --bg1: #0b1020; --bg2: #1d0f45;
  --b1: #7c3aed; --b2: #ec4899; --b3: #06b6d4;
  --ink: #f8fafc; --mute: rgba(226, 232, 240, .7);
  --card: rgba(255, 255, 255, .085); --card2: rgba(255, 255, 255, .15); --line: rgba(255, 255, 255, .17);
  --accent: #8b5cf6; --accent2: #ec4899;
  --ok: #34d399; --okbg: rgba(52, 211, 153, .18); --bad: #fb7185; --badbg: rgba(251, 113, 133, .18);
  --gold: #fbbf24; --lc: #8b5cf6; --opt: rgba(255, 255, 255, .09);
}
.eq-theme-sunset { --bg1: #1f0a1d; --bg2: #3d0f2b; --b1: #f97316; --b2: #ec4899; --b3: #facc15; --accent: #f97316; --accent2: #ec4899; }
.eq-theme-ocean { --bg1: #03121c; --bg2: #062a43; --b1: #06b6d4; --b2: #3b82f6; --b3: #10b981; --accent: #06b6d4; --accent2: #3b82f6; }
.eq-theme-forest { --bg1: #04140d; --bg2: #0b2e1f; --b1: #10b981; --b2: #84cc16; --b3: #14b8a6; --accent: #10b981; --accent2: #84cc16; }
.eq-theme-daylight {
  --bg1: #eef2ff; --bg2: #fdf2f8; --b1: #a5b4fc; --b2: #f9a8d4; --b3: #67e8f9;
  --ink: #1e1b4b; --mute: #64748b; --card: rgba(255, 255, 255, .72); --card2: rgba(255, 255, 255, .95); --line: rgba(99, 102, 241, .2);
  --accent: #6366f1; --accent2: #ec4899; --okbg: #dcfce7; --badbg: #fee2e2; --ok: #16a34a; --bad: #dc2626; --opt: #fff;
}

/* ---------- shell ---------- */
.eq-app, .eq-lb {
  box-sizing: border-box; position: relative; isolation: isolate; max-width: 760px; margin: 0 auto; padding: 20px;
  background: linear-gradient(155deg, var(--bg1) 0%, var(--bg2) 100%);
  border-radius: 28px; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 16px; line-height: 1.4; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(76, 29, 149, .55);
}
.eq-app *, .eq-lb * { box-sizing: border-box; }
.eq-app button, .eq-app input, .eq-app select { font-family: inherit; }
.eq-app h2, .eq-app h3, .eq-lb h3 { margin: 0; color: var(--ink); }
.eq-app a { color: inherit; }
.eq-app .eq-view { position: relative; z-index: 2; animation: eq-in .35s ease; }
.eq-app .eq-center { text-align: center; }
.eq-app .eq-note { font-size: 12.5px; color: var(--mute); margin: 8px 0 0; }
.eq-app .eq-glass, .eq-lb .eq-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5);
}

/* animated background */
.eq-app .eq-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.eq-app .eq-blob { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(70px); opacity: .55; animation: eq-drift 18s ease-in-out infinite alternate; }
.eq-app .eq-blob-a { background: var(--b1); top: -120px; left: -90px; }
.eq-app .eq-blob-b { background: var(--b2); bottom: -140px; right: -100px; animation-delay: -6s; }
.eq-app .eq-blob-c { background: var(--b3); top: 38%; left: 55%; width: 280px; height: 280px; opacity: .38; animation-delay: -11s; }
.eq-app .eq-float-e { position: absolute; bottom: -40px; font-size: 26px; opacity: .13; animation: eq-rise linear infinite; }

/* ---------- buttons ---------- */
.eq-app .eq-btn {
  appearance: none; position: relative; overflow: hidden; cursor: pointer; border: 0 !important; border-radius: 16px !important;
  padding: 14px 22px; font-size: 16px; font-weight: 800; line-height: 1.2; text-transform: none; letter-spacing: 0; text-decoration: none;
  display: inline-block; text-align: center; transition: transform .12s, box-shadow .2s, filter .2s;
}
.eq-app .eq-btn:active:not(:disabled) { transform: translateY(2px) scale(.99); }
.eq-app .eq-btn:disabled { opacity: .4; cursor: not-allowed; }
.eq-app .eq-btn-main { background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; color: #fff !important; box-shadow: 0 10px 26px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.eq-app .eq-btn-main::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent); transform: skewX(-20deg); animation: eq-shine 3.2s ease-in-out infinite; }
.eq-app .eq-btn-main:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 14px 32px -8px var(--accent2); }
.eq-app .eq-btn-ghost { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.eq-app .eq-btn-ghost:hover { background: var(--card2) !important; }
.eq-app .eq-btn-round { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; padding: 10px 18px; border-radius: 999px !important; }
.eq-app .eq-btn-round:hover { background: var(--card2) !important; box-shadow: 0 0 18px -4px var(--accent); }
.eq-app .eq-btn-round.slow { font-size: 14px; }
.eq-app .eq-wide { width: 100%; }
.eq-app .eq-grow { flex: 1; }
.eq-app .eq-icon-btn {
  appearance: none; border: 1px solid var(--line) !important; background: var(--card) !important; color: var(--ink) !important;
  width: 42px; height: 42px; border-radius: 14px !important; font-size: 18px; cursor: pointer; padding: 0; line-height: 1; transition: transform .15s, background .15s;
}
.eq-app .eq-icon-btn:hover { background: var(--card2) !important; transform: scale(1.06); }

/* ---------- home ---------- */
.eq-app .eq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.eq-app .eq-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.eq-app .eq-logo-i { font-size: 32px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 18px; width: 56px; height: 56px; display: grid; place-items: center; box-shadow: 0 10px 26px -8px var(--accent); animation: eq-bob 3.6s ease-in-out infinite; }
.eq-app .eq-logo-t { font-size: 24px; font-weight: 900; letter-spacing: -.4px; background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eq-theme-daylight .eq-logo-t { background: linear-gradient(90deg, #4338ca, #db2777); -webkit-background-clip: text; background-clip: text; }
.eq-app .eq-logo-s { font-size: 13px; color: var(--mute); }
.eq-app .eq-tools { display: flex; gap: 8px; align-items: center; }
.eq-app .eq-lang { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 3px; }
.eq-app .eq-lang-b { appearance: none; border: 0 !important; background: transparent !important; color: var(--mute) !important; font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 11px !important; cursor: pointer; transition: all .2s; }
.eq-app .eq-lang-b.on { background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; color: #fff !important; box-shadow: 0 4px 12px -4px var(--accent); }

.eq-app .eq-profile { display: flex; align-items: center; gap: 14px; padding: 16px; flex-wrap: wrap; }
.eq-app .eq-avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 900; font-size: 24px; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 0 28px -4px var(--accent); }
.eq-app .eq-pinfo { flex: 1; min-width: 160px; }
.eq-app .eq-pname { font-weight: 800; font-size: 18px; }
.eq-app .eq-nick { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 16px; font-weight: 700; color: var(--ink); background: rgba(0, 0, 0, .22); transition: border-color .2s, box-shadow .2s; }
.eq-theme-daylight .eq-nick { background: #fff; }
.eq-app .eq-nick::placeholder { color: var(--mute); font-weight: 600; }
.eq-app .eq-nick:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.eq-app .eq-nick.eq-err, .eq-app .eq-input.eq-err { border-color: var(--bad); animation: eq-shake .35s; }
.eq-app .eq-rank { font-size: 13px; color: var(--mute); margin: 2px 0 7px; }
.eq-app .eq-xpbar { height: 9px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; }
.eq-app .eq-xpfill { height: 100%; background: linear-gradient(90deg, var(--gold), #fb7185, var(--accent)); background-size: 200% 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2, .9, .3, 1); animation: eq-flow 3s linear infinite; }
.eq-app .eq-pstats { display: flex; gap: 16px; }
.eq-app .eq-pstat { text-align: center; }
.eq-app .eq-pstat b { display: block; font-size: 18px; }
.eq-app .eq-pstat span { font-size: 11px; color: var(--mute); }
.eq-app .eq-flame { animation: eq-flicker 1.6s ease-in-out infinite; display: inline-block; }
.eq-app .eq-badges { display: flex; gap: 8px; margin: 14px 2px 0; flex-wrap: wrap; }
.eq-app .eq-badge { width: 40px; height: 40px; display: grid; place-items: center; font-size: 21px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); filter: grayscale(1); opacity: .4; cursor: help; transition: transform .2s; }
.eq-app .eq-badge.on { filter: none; opacity: 1; background: var(--card2); box-shadow: 0 0 18px -4px var(--gold); }
.eq-app .eq-badge.on:hover { transform: translateY(-3px) rotate(-6deg); }
.eq-app .eq-h { font-size: 15px; font-weight: 800; margin: 22px 2px 10px; color: var(--ink); letter-spacing: .2px; text-transform: uppercase; opacity: .9; }

.eq-app .eq-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eq-app .eq-level {
  appearance: none; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 14px 6px 12px;
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 20px !important; color: var(--ink) !important;
  transition: transform .18s, box-shadow .25s, border-color .2s;
}
.eq-app .eq-level::before { content: ""; position: absolute; inset: 0; border-radius: 20px; background: radial-gradient(circle at 50% 0%, var(--c), transparent 70%); opacity: .18; transition: opacity .25s; }
.eq-app .eq-level:hover { transform: translateY(-3px); }
.eq-app .eq-level.on { border-color: var(--c) !important; box-shadow: 0 0 0 2px var(--c), 0 14px 30px -10px var(--c); transform: translateY(-3px) scale(1.03); }
.eq-app .eq-level.on::before { opacity: .45; }
.eq-app .eq-level-c { position: relative; font-size: 26px; font-weight: 900; color: var(--c); text-shadow: 0 0 18px var(--c); }
.eq-app .eq-level-n { position: relative; font-size: 13px; font-weight: 800; }
.eq-app .eq-level-d { position: relative; font-size: 11px; color: var(--mute); text-align: center; line-height: 1.2; }

.eq-app .eq-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.eq-app .eq-mode {
  appearance: none; cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px;
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 20px !important; color: var(--ink) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .18s, box-shadow .25s, border-color .2s;
}
.eq-app .eq-mode::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.eq-app .eq-mode:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--accent) !important; box-shadow: 0 16px 34px -14px var(--accent); }
.eq-app .eq-mode:hover::before { transform: translateX(120%); }
.eq-app .eq-mode:active { transform: translateY(0) scale(.98); }
.eq-app .eq-mode-i { font-size: 28px; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 8px 18px -8px var(--accent); }
.eq-app .eq-mode-t b { display: block; font-size: 16px; }
.eq-app .eq-mode-t small { display: block; font-size: 12px; color: var(--mute); line-height: 1.25; }
.eq-app .eq-tag { position: absolute; top: 8px; right: 10px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.eq-app .eq-tag.hot { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; animation: eq-pulse 1.8s ease-in-out infinite; }
.eq-app .eq-mode-test, .eq-app .eq-mode-expert { grid-column: 1 / -1; padding: 18px 16px; }
.eq-app .eq-mode-test { background: linear-gradient(120deg, rgba(34, 211, 238, .25), rgba(139, 92, 246, .3)) !important; }
.eq-app .eq-mode-test .eq-mode-i { background: linear-gradient(135deg, #22d3ee, #6366f1); }
.eq-app .eq-mode-expert { background: linear-gradient(120deg, rgba(239, 68, 68, .28), rgba(124, 58, 237, .32)) !important; border-color: rgba(248, 113, 113, .55) !important; animation: eq-glowred 2.6s ease-in-out infinite; }
.eq-app .eq-mode-expert .eq-mode-i { background: linear-gradient(135deg, #ef4444, #7c3aed); }
.eq-app .eq-mode-mixed { grid-column: 1 / -1; }

/* ---------- game ---------- */
.eq-app .eq-top { display: flex; align-items: center; gap: 12px; }
.eq-app .eq-progress { flex: 1; height: 14px; background: rgba(255, 255, 255, .13); border-radius: 99px; overflow: hidden; }
.eq-app .eq-progress-f { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .5s cubic-bezier(.2, .9, .3, 1); position: relative; }
.eq-app .eq-progress-f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); animation: eq-shine2 1.8s linear infinite; }
.eq-app .eq-hearts { display: flex; gap: 3px; font-size: 22px; }
.eq-app .eq-heart { color: #fb7185; filter: drop-shadow(0 0 6px rgba(251, 113, 133, .7)); animation: eq-beat 1.4s ease-in-out infinite; }
.eq-app .eq-heart.lost { color: rgba(255, 255, 255, .22); filter: none; animation: none; }
.eq-app .eq-meta { display: flex; gap: 10px; align-items: center; margin: 14px 0 10px; flex-wrap: wrap; }
.eq-app .eq-chip { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 99px; }
.eq-app .eq-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.eq-app .eq-combo { font-weight: 900; font-size: 15px; color: var(--mute); margin-left: auto; }
.eq-app .eq-combo.hot { color: #fb923c; text-shadow: 0 0 14px #f97316; animation: eq-pop .4s; }
.eq-app .eq-xp { font-weight: 800; font-size: 15px; }
.eq-app .eq-card { position: relative; padding: 22px 18px; }
.eq-app .eq-card.pulse-ok { animation: eq-okglow .6s ease; }
.eq-app .eq-card.shake { animation: eq-shake .4s; }
.eq-app .eq-ins { font-size: 14px; font-weight: 700; color: var(--mute); margin-bottom: 12px; }
.eq-app .eq-prompt { font-size: 30px; font-weight: 900; margin-bottom: 10px; word-break: break-word; }
.eq-app .eq-prompt.big { font-size: 60px; text-align: center; animation: eq-bob 2.6s ease-in-out infinite; }
.eq-app .eq-prompt.long { font-size: 20px; font-weight: 700; line-height: 1.5; }
.eq-app .eq-passage { background: rgba(0, 0, 0, .2); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 15.5px; line-height: 1.55; }
.eq-theme-daylight .eq-passage { background: rgba(99, 102, 241, .08); }
.eq-app .eq-pic { display: block; margin: 4px auto 12px; font-size: 112px; line-height: 1.1; text-align: center; max-width: 220px; max-height: 220px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); animation: eq-bob 3s ease-in-out infinite; }
.eq-app .eq-speak { display: flex; gap: 10px; justify-content: center; margin: 6px 0 14px; }
.eq-app .eq-hint { text-align: center; color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.eq-app .eq-warn { font-size: 12.5px; color: var(--bad); text-align: center; margin-top: 6px; }
.eq-app .eq-area { margin-top: 10px; }

.eq-app .eq-timer { height: 9px; background: rgba(255, 255, 255, .14); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.eq-app .eq-timer-f { height: 100%; width: 100%; background: linear-gradient(90deg, #34d399, #fbbf24); border-radius: 99px; transition: width .1s linear; }
.eq-app .eq-timer.low .eq-timer-f { background: linear-gradient(90deg, #ef4444, #f97316); }
.eq-app .eq-timer.low { animation: eq-pulse .6s ease-in-out infinite; }

.eq-app .eq-opts { display: grid; gap: 10px; }
.eq-app .eq-opts.pics { grid-template-columns: 1fr 1fr; }
.eq-app .eq-opt {
  appearance: none; cursor: pointer; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--opt) !important; border: 1px solid var(--line) !important; border-radius: 16px !important;
  padding: 14px 15px; font-size: 17px; font-weight: 700; color: var(--ink) !important;
  transition: transform .12s, border-color .15s, background .15s, box-shadow .2s;
}
.eq-app .eq-opt:hover:not(:disabled) { border-color: var(--accent) !important; transform: translateX(4px); box-shadow: 0 8px 22px -10px var(--accent); background: var(--card2) !important; }
.eq-app .eq-opts.pics .eq-opt { justify-content: center; padding: 14px 8px; }
.eq-app .eq-opts.pics .eq-opt:hover:not(:disabled) { transform: translateY(-4px) scale(1.04); }
.eq-app .eq-opt-pic { font-size: 62px; line-height: 1.1; max-width: 100%; max-height: 90px; object-fit: contain; }
.eq-app .eq-key { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--mute); flex: none; }
.eq-app .eq-opt.is-ok { background: var(--okbg) !important; border-color: var(--ok) !important; box-shadow: 0 0 24px -4px var(--ok); animation: eq-pop .35s; }
.eq-app .eq-opt.is-bad { background: var(--badbg) !important; border-color: var(--bad) !important; animation: eq-shake .35s; }
.eq-app .eq-opt.is-pick { background: rgba(139, 92, 246, .3) !important; border-color: var(--accent) !important; }
.eq-app .eq-opt:disabled { cursor: default; }
.eq-app .eq-input { width: 100%; font-size: 24px; font-weight: 800; padding: 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: rgba(0, 0, 0, .22); text-align: center; letter-spacing: .5px; }
.eq-theme-daylight .eq-input { background: #fff; }
.eq-app .eq-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.eq-app .eq-input.is-ok { background: var(--okbg); border-color: var(--ok); }
.eq-app .eq-input.is-bad { background: var(--badbg); border-color: var(--bad); }

.eq-app .eq-answer { min-height: 64px; border-bottom: 2px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 12px; }
.eq-app .eq-answer.is-ok { border-color: var(--ok); }
.eq-app .eq-answer.is-bad { border-color: var(--bad); }
.eq-app .eq-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.eq-app .eq-tok {
  appearance: none; cursor: pointer; background: var(--opt) !important; color: var(--ink) !important; font-size: 17px; font-weight: 800;
  padding: 10px 15px; border: 1px solid var(--line) !important; border-radius: 14px !important; transition: transform .12s, box-shadow .2s;
}
.eq-app .eq-tok:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 18px -8px var(--accent); }
.eq-app .eq-tok.in { animation: eq-pop .25s; background: linear-gradient(135deg, rgba(139, 92, 246, .45), rgba(236, 72, 153, .4)) !important; }
.eq-app .eq-tok.ghost { background: rgba(255, 255, 255, .05) !important; color: transparent !important; border-style: dashed !important; }

.eq-app .eq-foot { margin-top: 14px; }
.eq-app .eq-fb { border-radius: 22px; padding: 15px 17px; animation: eq-up .28s; border: 1px solid; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.eq-app .eq-fb.ok { background: var(--okbg); border-color: var(--ok); }
.eq-app .eq-fb.bad { background: var(--badbg); border-color: var(--bad); }
.eq-app .eq-fb-h { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.eq-app .eq-fb-i { font-size: 24px; }
.eq-app .eq-fb-xp { margin-left: auto; font-weight: 900; color: var(--gold); }
.eq-app .eq-fb-a { margin-top: 6px; font-size: 16px; white-space: pre-line; }
.eq-app .eq-fb-e { margin-top: 6px; font-size: 14px; opacity: .92; }
.eq-app .eq-fb-row { display: flex; gap: 10px; margin-top: 12px; }
.eq-app .eq-fb.ok .eq-btn-main { background: linear-gradient(135deg, #10b981, #22d3ee) !important; }
.eq-app .eq-fb.bad .eq-btn-main { background: linear-gradient(135deg, #f43f5e, #f97316) !important; }

.eq-app .eq-fly { position: absolute; right: 26px; top: 112px; font-weight: 900; font-size: 24px; color: var(--gold); text-shadow: 0 0 16px rgba(251, 191, 36, .8); pointer-events: none; animation: eq-fly 1.1s ease-out forwards; z-index: 6; }
.eq-app .eq-combo-pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-weight: 900; font-size: 54px; color: #fb923c; text-shadow: 0 0 30px #f97316, 0 4px 0 rgba(0, 0, 0, .3); pointer-events: none; animation: eq-combo 0.9s ease-out forwards; z-index: 6; }
.eq-app .eq-burst { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 7; }
.eq-app .eq-burst b { position: absolute; width: 8px; height: 8px; border-radius: 50%; animation: eq-spark .7s ease-out forwards; }
.eq-app.eq-flash-bad::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; box-shadow: inset 0 0 90px 10px rgba(244, 63, 94, .55); animation: eq-fade .45s ease-out forwards; }

/* ---------- memory ---------- */
.eq-app .eq-mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; perspective: 900px; }
.eq-app .eq-mcard { appearance: none; border: 0 !important; background: transparent !important; padding: 0; cursor: pointer; aspect-ratio: 1 / 1.08; }
.eq-app .eq-mcard-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.eq-app .eq-mcard.flipped .eq-mcard-in, .eq-app .eq-mcard.done .eq-mcard-in { transform: rotateY(180deg); }
.eq-app .eq-mface { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 4px; text-align: center; }
.eq-app .eq-mface.front { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 30px; font-weight: 900; box-shadow: 0 8px 20px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .4); }
.eq-app .eq-mface.back { transform: rotateY(180deg); background: var(--card2); border: 1px solid var(--line); color: var(--ink); }
.eq-app .eq-mface.back b { font-size: 15px; line-height: 1.15; word-break: break-word; }
.eq-app .eq-mface.back small { font-size: 11px; color: var(--mute); }
.eq-app .eq-mpic { font-size: 42px; line-height: 1; max-width: 90%; max-height: 80%; object-fit: contain; }
.eq-app .eq-mcard.done .eq-mface.back { background: var(--okbg); border-color: var(--ok); box-shadow: 0 0 22px -6px var(--ok); }
.eq-app .eq-mcard.done { animation: eq-pop .4s .35s both; }

/* ---------- result ---------- */
.eq-app .eq-result { text-align: center; padding: 6px 0; }
.eq-app .eq-res-emoji { font-size: 76px; animation: eq-pop .7s; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.eq-app .eq-res-t { font-size: 27px; font-weight: 900; margin: 4px 0 10px; }
.eq-app .eq-stars { font-size: 54px; letter-spacing: 6px; color: rgba(255, 255, 255, .18); }
.eq-app .eq-star { display: inline-block; }
.eq-app .eq-star.on { color: var(--gold); text-shadow: 0 0 24px rgba(251, 191, 36, .9); animation: eq-star .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.eq-app .eq-bigxp { font-size: 38px; font-weight: 900; margin: 6px 0 16px; text-shadow: 0 0 30px rgba(251, 191, 36, .45); }
.eq-app .eq-bigxp-l { font-size: 15px; font-weight: 700; color: var(--mute); text-shadow: none; }
.eq-app .eq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.eq-app .eq-gcell { padding: 14px 6px; border-radius: 18px; }
.eq-app .eq-gcell b { display: block; font-size: 21px; }
.eq-app .eq-gcell span { font-size: 12px; color: var(--mute); }
.eq-app .eq-bonus { background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(249, 115, 22, .25)); border: 1px solid rgba(251, 191, 36, .5); color: var(--gold); font-weight: 800; border-radius: 16px; padding: 11px; margin-bottom: 10px; animation: eq-up .4s; }
.eq-app .eq-bonus.rank { background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(236, 72, 153, .3)); border-color: rgba(167, 139, 250, .6); color: #fff; }
.eq-app .eq-newbadge { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 15px; margin-bottom: 10px; animation: eq-up .45s; }
.eq-app .eq-newbadge small { display: block; color: var(--mute); }
.eq-app .eq-nb-i { font-size: 34px; }
.eq-app .eq-save { min-height: 22px; font-size: 14px; font-weight: 700; margin: 8px 0 14px; color: var(--mute); }
.eq-app .eq-save.ok { color: var(--ok); }
.eq-app .eq-save.warn { color: var(--bad); }
.eq-app .eq-link { color: var(--gold); text-decoration: underline; font-weight: 800; }
.eq-app .eq-res-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.eq-app .eq-res-row .eq-btn { flex: 1 1 150px; padding: 14px 12px; }

/* test */
.eq-app .eq-intro-card { padding: 18px; text-align: left; margin-bottom: 14px; }
.eq-app .eq-intro-card p { margin: 0 0 8px; }
.eq-app .eq-hero { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 20px; margin: 10px 0 14px; flex-wrap: wrap; }
.eq-app .eq-ring { width: 170px; height: 170px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(0, 0, 0, .35), rgba(0, 0, 0, .1)); box-shadow: 0 0 0 10px var(--c), 0 0 50px 4px var(--c); animation: eq-pop .7s; }
.eq-app .eq-ring small { font-size: 12px; color: var(--mute); }
.eq-app .eq-ring b { font-size: 68px; line-height: 1; font-weight: 900; text-shadow: 0 0 24px var(--c); }
.eq-app .eq-hero-side { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.eq-app .eq-band small { display: block; font-size: 12px; color: var(--mute); }
.eq-app .eq-band b { font-size: 28px; color: var(--gold); }
.eq-app .eq-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 16px 12px 10px; margin-bottom: 12px; }
.eq-app .eq-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eq-app .eq-colbar { width: 70%; height: 110px; background: rgba(255, 255, 255, .08); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.eq-app .eq-colbar i { display: block; width: 100%; border-radius: 10px; transform-origin: bottom; animation: eq-grow .8s cubic-bezier(.2, .9, .3, 1) both; }
.eq-app .eq-col span { font-weight: 800; font-size: 13px; }
.eq-app .eq-col small { font-size: 11px; color: var(--mute); }
.eq-app .eq-sections { display: grid; gap: 8px; margin-bottom: 12px; text-align: left; }
.eq-app .eq-sec { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; }
.eq-app .eq-secbar { height: 10px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; }
.eq-app .eq-secbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; animation: eq-growx .9s ease both; }
.eq-app .eq-advice { padding: 14px 16px; text-align: left; margin-bottom: 12px; font-weight: 600; }
.eq-app .eq-share { padding: 16px; margin-bottom: 12px; }
.eq-app .eq-share h3 { font-size: 16px; margin-bottom: 12px; }
.eq-app .eq-card-img { width: 100%; max-width: 340px; border-radius: 18px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); margin: 0 auto 14px; display: block; animation: eq-up .5s; }
.eq-app .eq-share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.eq-app .eq-share-row .eq-btn { padding: 11px 14px; font-size: 14px; }

/* ---------- leaderboard ---------- */
.eq-app .eq-board-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eq-app .eq-board-t { font-size: 22px; font-weight: 900; }
.eq-app .eq-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.eq-app .eq-tab { appearance: none; cursor: pointer; background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 99px !important; padding: 8px 15px; font-weight: 800; font-size: 14px; transition: all .2s; }
.eq-app .eq-tab.on { background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 6px 16px -6px var(--accent); }
.eq-app .eq-tabs.sm .eq-tab { padding: 5px 11px; font-size: 13px; }
.eq-app .eq-podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 18px 0 14px; }
.eq-app .eq-podium:empty { display: none; }
.eq-app .eq-pod { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; animation: eq-up .5s both; }
.eq-app .eq-pod b { font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-app .eq-pod small { color: var(--gold); font-weight: 800; }
.eq-app .eq-pod-m { font-size: 34px; animation: eq-bob 3s ease-in-out infinite; }
.eq-app .eq-pod .eq-av { width: 54px; height: 54px; font-size: 22px; box-shadow: 0 0 22px -2px var(--gold); }
.eq-app .eq-pod i { display: block; width: 100%; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, var(--accent), transparent); border: 1px solid var(--line); border-bottom: 0; margin-top: 6px; }
.eq-app .eq-pod-1 i { height: 96px; background: linear-gradient(180deg, #fbbf24, transparent); }
.eq-app .eq-pod-2 i { height: 66px; background: linear-gradient(180deg, #cbd5e1, transparent); }
.eq-app .eq-pod-3 i { height: 46px; background: linear-gradient(180deg, #fb923c, transparent); }
.eq-app .eq-pod.me b { color: var(--gold); }
.eq-app .eq-list { display: grid; gap: 8px; }
.eq-app .eq-list.empty { display: block; text-align: center; color: var(--mute); padding: 26px 0; font-weight: 700; }
.eq-app .eq-row, .eq-lb .eq-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; transition: transform .15s; }
.eq-app .eq-row:hover { transform: translateX(3px); }
.eq-app .eq-row.me, .eq-lb .eq-row.me { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px -8px var(--gold); }
.eq-app .eq-row.sticky { margin-top: 6px; }
.eq-app .eq-pos, .eq-lb .eq-pos { width: 38px; text-align: center; font-weight: 900; font-size: 17px; color: var(--mute); }
.eq-app .eq-av, .eq-lb .eq-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 900; display: grid; place-items: center; flex: none; }
.eq-app .eq-nm, .eq-lb .eq-nm { flex: 1; min-width: 0; }
.eq-app .eq-nm b, .eq-lb .eq-nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-app .eq-nm small, .eq-lb .eq-nm small { color: var(--mute); font-size: 12px; }
.eq-app .eq-pts, .eq-lb .eq-pts { font-weight: 900; color: var(--gold); }

/* static leaderboard shortcode */
.eq-lb { padding: 18px; }
.eq-lb .eq-lb-t { font-size: 20px; font-weight: 900; margin: 0 0 12px; }
.eq-lb .eq-list { display: grid; gap: 8px; }
.eq-lb .eq-empty { text-align: center; color: var(--mute); padding: 12px; }

/* ---------- modal ---------- */
.eq-app .eq-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 20, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: eq-fade-in .2s; }
.eq-app .eq-modal-box { width: 100%; max-width: 440px; padding: 20px; background: linear-gradient(160deg, var(--bg2), var(--bg1)); animation: eq-up .25s; }
.eq-app .eq-modal-box h3 { margin-bottom: 14px; }
.eq-app .eq-lbl { display: block; font-size: 13px; font-weight: 800; color: var(--mute); margin-bottom: 6px; }
.eq-app .eq-select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.eq-theme-daylight .eq-select { background: #fff; }
.eq-app .eq-modal-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.eq-app .eq-modal-box .eq-wide { margin-top: 10px; }

/* confetti */
.eq-app .eq-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 12; }
.eq-app .eq-confetti i { position: absolute; top: -16px; height: 14px; border-radius: 2px; animation: eq-fall linear forwards; }

/* ---------- animations ---------- */
@keyframes eq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes eq-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes eq-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes eq-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes eq-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes eq-star { 0% { transform: scale(0) rotate(-120deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes eq-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes eq-fly { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-64px) scale(1.25); } }
@keyframes eq-combo { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
@keyframes eq-spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
@keyframes eq-fall { to { transform: translateY(900px) rotate(720deg); opacity: .9; } }
@keyframes eq-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes eq-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes eq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes eq-flicker { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.1) rotate(-3deg); } 60% { transform: scale(.96) rotate(2deg); } }
@keyframes eq-flow { to { background-position: 200% 0; } }
@keyframes eq-shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
@keyframes eq-shine2 { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes eq-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.2); } }
@keyframes eq-rise { from { transform: translateY(0) rotate(0); } to { transform: translateY(-900px) rotate(40deg); } }
@keyframes eq-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes eq-growx { from { width: 0 !important; } }
@keyframes eq-okglow { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 100% { box-shadow: 0 0 0 26px rgba(52, 211, 153, 0); } }
@keyframes eq-glowred { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .0), 0 10px 30px -14px rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 26px 2px rgba(239, 68, 68, .45), 0 10px 30px -14px rgba(239, 68, 68, .7); } }

@media (max-width: 560px) {
  .eq-app, .eq-lb { padding: 13px; border-radius: 20px; }
  .eq-app .eq-levels { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .eq-app .eq-level-d { display: none; }
  .eq-app .eq-modes { grid-template-columns: 1fr; }
  .eq-app .eq-prompt { font-size: 25px; }
  .eq-app .eq-prompt.big { font-size: 48px; }
  .eq-app .eq-pic { font-size: 92px; }
  .eq-app .eq-pstats { width: 100%; justify-content: space-around; }
  .eq-app .eq-mgrid { gap: 7px; }
  .eq-app .eq-mpic { font-size: 34px; }
  .eq-app .eq-mface.back b { font-size: 12.5px; }
  .eq-app .eq-sec { grid-template-columns: 86px 1fr 40px; }
  .eq-app .eq-logo-t { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .eq-app *, .eq-lb *, .eq-app *::before, .eq-app *::after { animation: none !important; transition: none !important; }
}
