@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================
   ELITE ACADEMY - GLOBAL DARK SAAS DESIGN SYSTEM
   Shared by: index.html (Hub), math_tug.html, superclever.html
   ========================================================== */
:root {
    --bg-top: #1e1b4b;
    --bg-mid: #0f172a;
    --bg-deep: #020617;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-2: rgba(15, 23, 42, 0.75);
    --hairline: rgba(255, 255, 255, 0.1);
    --hairline-2: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --brand: #6366f1;
    --brand-strong: #4f46e5;
    --blue: #3b82f6;
    --red: #f43f5e;
    --emerald: #10b981;
    --amber: #f59e0b;
    --shadow-glass: 0 25px 50px -12px rgba(2, 6, 23, 0.85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #1e1b4b, #0f172a, #020617);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

button, input { font-family: inherit; }

/* ---------- Glassmorphism ---------- */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glass);
}

.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-soft {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hover-lift { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(99, 102, 241, 0.55);
    border-color: rgba(129, 140, 248, 0.55);
}

/* ---------- Ambient animated orbs ---------- */
.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    animation: float-orb 14s ease-in-out infinite;
}
.orb-indigo { background: #6366f1; }
.orb-violet { background: #a855f7; animation-delay: 3s; }
.orb-cyan { background: #22d3ee; animation-delay: 6s; }

@keyframes float-orb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(22px, -28px, 0) scale(1.12); }
}

/* ---------- Keyframe animations ---------- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.animate-shake { animation: shake 0.4s ease-in-out; }

/* Dynamic Juicy Happy Animation for Correct Answer */
@keyframes happy-bounce {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    20% { transform: translateY(-28px) scale(1.28) rotate(-6deg); }
    40% { transform: translateY(0) scale(0.95) rotate(4deg); }
    60% { transform: translateY(-18px) scale(1.18) rotate(-3deg); }
    80% { transform: translateY(0) scale(1.02) rotate(1deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}
.animate-happy { 
    animation: happy-bounce 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    will-change: transform;
}

@keyframes correct-pop {
    0% { transform: scale(0.9); }
    45% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.animate-correct { animation: correct-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes bounce-in {
    0% { opacity: 0; transform: scale(0.9) translateY(18px); }
    60% { opacity: 1; transform: scale(1.02) translateY(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-bounce-in { animation: bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.45s ease-out both; }

@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.animate-soft-pulse { animation: soft-pulse 1.6s ease-in-out infinite; }

@keyframes crown-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}
.crown-3d {
    display: inline-block;
    font-size: 3.25rem;
    line-height: 1;
    filter: drop-shadow(0 12px 14px rgba(251, 191, 36, 0.65));
    animation: crown-float 2.4s ease-in-out infinite;
}

/* ---------- Neon glows ---------- */
.glow-blue { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); border-color: #3b82f6 !important; }
.glow-red { box-shadow: 0 0 30px rgba(244, 63, 94, 0.5); border-color: #f43f5e !important; }
.glow-emerald { box-shadow: 0 0 30px rgba(16, 185, 129, 0.45); border-color: var(--emerald) !important; }
.glow-amber { box-shadow: 0 0 30px rgba(245, 158, 11, 0.45); border-color: var(--amber) !important; }
.text-glow-blue { text-shadow: 0 0 18px rgba(59, 130, 246, 0.75); }
.text-glow-red { text-shadow: 0 0 18px rgba(244, 63, 94, 0.75); }

/* ---------- Gradient text ---------- */
.math-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-gradient-text {
    background: linear-gradient(120deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ---------- Answer option buttons ---------- */
.option-btn {
    position: relative;
    padding: 1.1rem 1rem;
    border-radius: 1.1rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.option-btn:hover:not(:disabled) {
    background: var(--brand-strong);
    border-color: #818cf8;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(99, 102, 241, 0.95);
}
.option-btn:active:not(:disabled) { transform: scale(0.97); }
.option-btn:disabled { cursor: default; opacity: 0.92; }

.option-correct {
    background: linear-gradient(135deg, #047857, #10b981) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6) !important;
}
.option-wrong {
    background: linear-gradient(135deg, #be123c, #f43f5e) !important;
    border-color: #fb7185 !important;
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.6) !important;
}

/* ---------- Feedback box ---------- */
.feedback-box {
    border-radius: 1.1rem;
    padding: 1rem 1.25rem;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.feedback-correct { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.5); color: #6ee7b7; }
.feedback-wrong { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.5); color: #fda4af; }
.feedback-info { background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.5); color: #a5b4fc; }

/* ---------- Progress bars ---------- */
.progress-track {
    width: 100%;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    transition: width 0.4s ease;
}
.progress-fill-blue { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.progress-fill-red { background: linear-gradient(90deg, #be123c, #fb7185); }
.progress-fill-emerald { background: linear-gradient(90deg, #047857, #34d399); }

/* ---------- Analytics dashboard ---------- */
.stat-tile {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.25rem;
    padding: 1.15rem;
}
.stat-value { font-size: 1.85rem; font-weight: 900; line-height: 1.1; }
.stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.accuracy-ring {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#34d399 var(--accuracy, 0%), rgba(148, 163, 184, 0.18) 0);
    transition: background 0.6s ease;
}
.accuracy-ring-inner {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: #0b1220;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.breakdown-row { display: flex; align-items: center; gap: 0.75rem; }
.breakdown-label { width: 4.5rem; font-size: 0.7rem; font-weight: 800; color: var(--text-muted); }

/* ---------- Scrollbars + motion safety ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b1220; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* Speed Operator Custom Styles */
.operator-btn {
    @apply p-4 rounded-2xl bg-slate-800/90 border border-slate-700/80 text-amber-400 font-black text-xl hover:bg-slate-700 hover:border-amber-500/50 hover:text-amber-300 transition-all active:scale-95 shadow-md flex items-center justify-center;
}

.number-tile {
    @apply p-5 rounded-2xl bg-gradient-to-tr from-indigo-900/80 to-slate-800 border border-indigo-500/40 text-white font-black text-2xl hover:border-indigo-400 hover:shadow-indigo-500/20 transition-all active:scale-95 shadow-lg flex items-center justify-center;
}

.number-tile:disabled, .operator-btn:disabled {
    @apply opacity-30 cursor-not-allowed hover:border-slate-700 hover:shadow-none active:scale-100;
}

.workspace-box {
    @apply min-h-[72px] bg-slate-950/80 border-2 border-slate-700/80 rounded-2xl px-6 py-3 flex items-center justify-between text-2xl font-black text-emerald-400 tracking-wider shadow-inner overflow-x-auto;
}


/* ==========================================
   Vocab Master Specific CSS Extensions
   ========================================== */

/* Glow Effects for 2-Player Cards */
.glow-blue {
    box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.4);
}

.glow-red {
    box-shadow: 0 0 25px -5px rgba(244, 63, 94, 0.4);
}

/* Feedback Box Styling */
.feedback-box {
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.feedback-info {
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #94a3b8;
}

.feedback-success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.feedback-error {
    background-color: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
}
/* ==========================================================
   ENGLISH CONVERSATION GAME — ISOLATED CSS EXTENSION
   Uses the existing Elite Academy dark navy / purple theme.
   All selectors are prefixed with .ec- to avoid affecting games.
   ========================================================== */
.ec-app { min-height: 100vh; display: flex; flex-direction: column; color: var(--text-main); }
.ec-app [hidden] { display: none !important; }
.ec-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; padding: .8rem clamp(1rem, 4vw, 3rem); background: rgba(15,23,42,.92); border-bottom: 1px solid var(--hairline); backdrop-filter: blur(16px); }
.ec-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text-main); text-decoration: none; }
.ec-brand-icon { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg,#a855f7,#4f46e5); box-shadow: 0 10px 25px #7c3aed40; font-size: 1.1rem; }
.ec-brand strong { display: block; font-size: 1.08rem; font-weight: 900; line-height: 1.2; }
.ec-brand strong b { color: #e879f9; }
.ec-brand small { display: block; color: var(--text-muted); font-size: .72rem; margin-top: .15rem; }
.ec-header-actions { display: flex; align-items: center; gap: .6rem; }
.ec-pill,.ec-ghost-btn { border: 1px solid var(--hairline); border-radius: 999px; background: rgba(30,41,59,.75); color: #e2e8f0; padding: .65rem .9rem; font-size: .76rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ec-pill { color: #c4b5fd; }
.ec-ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; transition: .2s ease; }
.ec-ghost-btn:hover,.ec-ghost-btn.is-on { border-color: #818cf8; background: #312e81; }
.ec-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.2rem,3vw,2.8rem) 0 3rem; flex: 1; }
.ec-page-heading { text-align: center; margin: 0 auto 1.5rem; }
.ec-eyebrow { display: inline-block; color: #e879f9; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.ec-page-heading h1 { font-size: clamp(1.8rem,4vw,2.7rem); line-height: 1.15; font-weight: 900; margin: .45rem 0; letter-spacing: -.04em; }
.ec-page-heading h1 span { color: #c084fc; }
.ec-page-heading p { color: var(--text-muted); font-size: .88rem; margin: .55rem auto 0; max-width: 680px; }
.ec-setup-card { width: min(850px,100%); margin: auto; border-radius: 1.5rem; padding: clamp(1rem,3vw,2rem); }
.ec-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.45rem 1.2rem; }
.ec-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.ec-field-wide { grid-column: 1/-1; }
.ec-label { display: block; color: #e2e8f0; font-size: .72rem; font-weight: 900; letter-spacing: .06em; margin-bottom: .65rem; }
.ec-label small { display: inline; color: var(--text-muted); font-size: .72rem; font-weight: 500; letter-spacing: 0; margin-left: .35rem; }
.ec-select { width: 100%; min-height: 48px; padding: .75rem .9rem; color: #f8fafc; background: rgba(15,23,42,.92); border: 1px solid #334155; border-radius: .8rem; outline: none; font: inherit; font-size: .85rem; }
.ec-select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px #6366f133; }
.ec-select option { background: #0f172a; color: #f8fafc; }
.ec-choice-grid { display: grid; gap: .75rem; }
.ec-level-choices { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ec-choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-height: 126px; padding: 1rem; border: 1px solid #334155; border-radius: 1rem; background: rgba(15,23,42,.58); cursor: pointer; transition: .2s ease; }
.ec-choice-card input,.ec-character-card input { position: absolute; opacity: 0; pointer-events: none; }
.ec-choice-card:hover,.ec-character-card:hover { border-color: #818cf8; transform: translateY(-2px); }
.ec-choice-card.is-selected,.ec-character-card.is-selected { border-color: #c026d3; background: linear-gradient(145deg,rgba(126,34,206,.18),rgba(30,41,59,.8)); box-shadow: inset 0 0 0 1px #c026d333,0 8px 24px #7c3aed12; }
.ec-choice-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: #f0abfc; background: #7e22ce30; margin-bottom: .25rem; }
.ec-choice-card strong,.ec-character-card strong { font-size: .83rem; font-weight: 900; }
.ec-choice-card small,.ec-character-card small { color: var(--text-muted); font-size: .7rem; }
.ec-character-choices { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ec-character-card { position: relative; display: flex; align-items: center; gap: .65rem; padding: .85rem; min-width: 0; border: 1px solid #334155; border-radius: 1rem; background: rgba(15,23,42,.58); cursor: pointer; transition: .2s ease; }
.ec-character-card > span:nth-of-type(2) { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ec-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 14px; color: white; }
.ec-avatar-boy { background: linear-gradient(135deg,#3b82f6,#6366f1); }
.ec-avatar-blue { background: linear-gradient(135deg,#0ea5e9,#2563eb); }
.ec-avatar-pink { background: linear-gradient(135deg,#ec4899,#a855f7); }
.ec-selected-check { margin-left: auto; color: #e879f9; font-size: .9rem; opacity: 0; }
.ec-character-card.is-selected .ec-selected-check { opacity: 1; }
.ec-setup-note { display: flex; gap: .55rem; align-items: flex-start; color: var(--text-muted); font-size: .73rem; margin: 1.25rem 0; line-height: 1.6; }
.ec-setup-note i { color: #a5b4fc; margin-top: .2rem; }
.ec-primary-btn { display: flex; justify-content: center; align-items: center; gap: .75rem; width: min(330px,100%); min-height: 52px; margin: .25rem auto 0; padding: .85rem 1.2rem; border: 0; border-radius: .95rem; color: white; background: linear-gradient(110deg,#c026d3,#4f46e5); box-shadow: 0 12px 28px #7c3aed40; font: inherit; font-size: .9rem; font-weight: 900; cursor: pointer; transition: transform .2s,filter .2s; }
.ec-primary-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ec-footer { border-top: 1px solid var(--hairline-2); padding: 1.15rem; text-align: center; color: #64748b; font-size: .7rem; }
.ec-practice-topline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.ec-session-meta { display: flex; align-items: center; gap: .55rem; color: #cbd5e1; font-size: .76rem; font-weight: 800; text-align: center; }
.ec-meta-dot { width: 4px; height: 4px; background: #c084fc; border-radius: 50%; }
.ec-practice-layout { display: grid; grid-template-columns: 275px minmax(0,1fr); gap: 1rem; align-items: start; }
.ec-lesson-sidebar,.ec-dialogue-panel { border-radius: 1.25rem; padding: 1.25rem; min-width: 0; }
.ec-sidebar-title { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline-2); }
.ec-small-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #7c3aed35; color: #c4b5fd; }
.ec-sidebar-title strong,.ec-sidebar-title small { display: block; }
.ec-sidebar-title strong { font-size: .85rem; }
.ec-sidebar-title small { color: var(--text-muted); font-size: .68rem; margin-top: .2rem; }
.ec-lesson-summary { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; }
.ec-scenario-emoji { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: #6366f11c; font-size: 1.4rem; }
.ec-lesson-summary strong { font-size: .8rem; }
.ec-lesson-summary p { margin: .25rem 0 0; color: var(--text-muted); font-size: .7rem; line-height: 1.5; }
.ec-sidebar-stat { display: flex; justify-content: space-between; gap: .5rem; color: var(--text-muted); font-size: .7rem; margin: .5rem 0; }
.ec-sidebar-stat strong { color: #e9d5ff; }
.ec-progress { height: 6px; }
.ec-voice-settings { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--hairline-2); display: grid; gap: .45rem; }
.ec-voice-settings label { margin-top: .25rem; color: #cbd5e1; font-size: .7rem; font-weight: 800; }
.ec-select-small { min-height: 38px; padding: .5rem .6rem; font-size: .72rem; }
.ec-voice-settings p { display: flex; gap: .4rem; color: var(--text-muted); font-size: .65rem; line-height: 1.5; }
.ec-dialogue-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline-2); }
.ec-dialogue-heading h2 { margin: .25rem 0 0; font-size: clamp(1.05rem,2vw,1.35rem); font-weight: 900; }
.ec-level-badge { max-width: 45%; padding: .4rem .65rem; border: 1px solid #a855f766; border-radius: 999px; background: #7e22ce22; color: #e9d5ff; font-size: .62rem; font-weight: 900; text-align: center; }
.ec-dialogue-list { display: flex; flex-direction: column; gap: .7rem; max-height: min(52vh,560px); min-height: 270px; overflow-y: auto; padding: 1rem .2rem; scroll-behavior: smooth; }
.ec-dialogue-row { display: flex; align-items: flex-end; gap: .55rem; width: 100%; opacity: .78; transition: opacity .2s; }
.ec-dialogue-row.is-girl { justify-content: flex-end; }
.ec-dialogue-row.is-active { opacity: 1; }
.ec-dialogue-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 11px; font-size: .8rem; }
.ec-dialogue-bubble { display: flex; flex-direction: column; align-items: flex-start; gap: .38rem; max-width: min(86%,560px); padding: .8rem .9rem; border: 1px solid #334155; border-radius: 1rem 1rem 1rem .3rem; color: #f8fafc; background: rgba(15,23,42,.75); text-align: left; cursor: pointer; font: inherit; transition: .2s ease; }
.ec-dialogue-row.is-girl .ec-dialogue-bubble { align-items: flex-start; border-radius: 1rem 1rem .3rem 1rem; background: rgba(76,29,149,.18); }
.ec-dialogue-row.is-active .ec-dialogue-bubble { border-color: #a855f7; background: linear-gradient(135deg,rgba(126,34,206,.22),rgba(30,41,59,.92)); box-shadow: 0 0 0 2px #a855f71c,0 10px 25px #02061733; }
.ec-speaker-meta { color: #a5b4fc; font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ec-dialogue-row.is-girl .ec-speaker-meta { color: #f0abfc; }
.ec-english-line { font-size: .88rem; line-height: 1.55; font-weight: 700; }
.ec-translation-line { color: #aab8cc; font-size: .75rem; line-height: 1.55; }
.ec-line-play { align-self: flex-end; color: #a78bfa; font-size: .72rem; margin-top: .1rem; }
.ec-player-bar { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--hairline); border-radius: 1rem; background: rgba(15,23,42,.68); padding: .7rem; }
.ec-player-main,.ec-player-control { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: white; cursor: pointer; }
.ec-player-main { border: 0; background: linear-gradient(135deg,#c026d3,#4f46e5); box-shadow: 0 5px 15px #7c3aed35; }
.ec-player-control { border: 1px solid #334155; background: #1e293b; }
.ec-player-control:hover { border-color: #818cf8; background: #312e81; }
.ec-player-status { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; padding: 0 .25rem; }
.ec-player-status strong { font-size: .73rem; }
.ec-player-status small { color: var(--text-muted); font-size: .62rem; }
.ec-speed-control { display: flex; flex-direction: column; gap: .2rem; color: var(--text-muted); font-size: .6rem; font-weight: 800; }
.ec-speed-control select { color: #e2e8f0; background: #0f172a; border: 1px solid #334155; border-radius: .5rem; padding: .35rem; font: inherit; }
.ec-practice-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: .8rem; color: var(--text-muted); font-size: .66rem; }
.ec-practice-footer span { display: inline-flex; align-items: center; gap: .35rem; }
.ec-practice-footer span i { color: #a78bfa; }
.ec-practice-footer button { margin-left: auto; border: 0; background: transparent; color: #fda4af; font: inherit; cursor: pointer; }
@media (max-width: 800px) {
  .ec-main { width: min(100% - 1.1rem,680px); padding-top: 1.2rem; }
  .ec-practice-layout { grid-template-columns: 1fr; }
  .ec-lesson-sidebar { padding: .9rem 1rem; }
  .ec-sidebar-title { padding-bottom: .7rem; }
  .ec-lesson-summary { padding: .65rem 0; }
  .ec-voice-settings { grid-template-columns: 1fr 1.5fr; align-items: center; }
  .ec-voice-settings p { grid-column: 1/-1; margin: .2rem 0 0; }
  .ec-dialogue-list { max-height: 48vh; }
}
@media (max-width: 560px) {
  .ec-header { min-height: 64px; padding: .65rem .75rem; }
  .ec-brand-icon { width: 38px; height: 38px; border-radius: 12px; }
  .ec-brand strong { font-size: .92rem; }
  .ec-brand small { font-size: .62rem; }
  .ec-pill { display: none; }
  .ec-ghost-btn { padding: .55rem .7rem; font-size: .7rem; }
  .ec-page-heading { margin-bottom: 1rem; }
  .ec-page-heading p { font-size: .76rem; line-height: 1.6; }
  .ec-setup-card { padding: .9rem; border-radius: 1.1rem; }
  .ec-form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ec-field-wide { grid-column: auto; }
  .ec-level-choices { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
  .ec-choice-card { min-height: 104px; padding: .65rem .5rem; gap: .25rem; }
  .ec-choice-icon { width: 29px; height: 29px; border-radius: 9px; font-size: .8rem; }
  .ec-choice-card strong { font-size: .7rem; line-height: 1.3; }
  .ec-choice-card small { font-size: .59rem; line-height: 1.35; }
  .ec-character-choices { grid-template-columns: 1fr; gap: .5rem; }
  .ec-character-card { padding: .6rem .7rem; }
  .ec-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .ec-character-card strong { font-size: .78rem; }
  .ec-setup-note { font-size: .67rem; }
  .ec-primary-btn { min-height: 48px; font-size: .82rem; }
  .ec-practice-topline { flex-wrap: wrap; }
  .ec-session-meta { order: 3; width: 100%; justify-content: center; }
  .ec-lesson-sidebar,.ec-dialogue-panel { padding: .85rem; border-radius: 1rem; }
  .ec-dialogue-heading { align-items: flex-start; }
  .ec-dialogue-heading h2 { font-size: 1rem; }
  .ec-level-badge { font-size: .55rem; padding: .35rem .45rem; }
  .ec-dialogue-list { max-height: 46vh; min-height: 220px; gap: .55rem; }
  .ec-dialogue-bubble { max-width: calc(100% - 2.4rem); padding: .65rem .7rem; }
  .ec-english-line { font-size: .8rem; }
  .ec-translation-line { font-size: .7rem; }
  .ec-player-bar { flex-wrap: wrap; gap: .4rem; padding: .55rem; }
  .ec-player-main,.ec-player-control { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  .ec-player-status { flex-basis: calc(100% - 2rem); order: 2; padding-top: .35rem; }
  .ec-speed-control { margin-left: auto; }
  .ec-practice-footer { font-size: .61rem; gap: .6rem; }
}
