.compression-training-page {
    --ct-bg: #0f1512;
    --ct-card: rgba(255, 255, 255, 0.03);
    --ct-border: rgba(255, 255, 255, 0.1);
    --ct-text: #f4f8f6;
    --ct-muted: #8aaa98;
    --ct-green: #00e68a;
    --ct-green-soft: rgba(0, 230, 138, 0.13);
    --ct-amber: #fbbf24;
    --ct-red: #f87171;
}

.compression-training-page .container {
    max-width: 1200px;
}

.compression-training-header {
    margin-bottom: 22px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 1000;
    background: #06110b;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
}

.top-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 16px;
}

.top-stats span {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    font: 700 0.8rem/1.1 'Inter', sans-serif;
}

.eq-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.eq-subnav a {
    color: var(--gray);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 999px;
    font: 700 0.75rem/1 'Inter', sans-serif;
    letter-spacing: 0.03em;
    transition: 0.2s ease;
}

.eq-subnav a:hover,
.eq-subnav a.active {
    color: #03110b;
    background: var(--green);
    border-color: var(--green);
}

.app-view {
    min-height: 560px;
    opacity: 1;
    transform: translateY(0);
}

.app-view.view-enter {
    animation: viewEnter 0.28s ease;
}

@keyframes viewEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eq-grid {
    display: grid;
    gap: 14px;
}

.eq-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-hero-card,
.daily-challenge-card,
.training-view,
.leaderboard-card,
.auth-card,
.profile-card,
.skill-tree,
.leaderboard-mini,
.result-card,
.card {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 16px;
    padding: 18px;
}

.greeting-line {
    margin: 0 0 14px;
    font-size: 1.06rem;
    color: #c8d0cb;
}

.greeting-line strong {
    color: #fff;
}

.dashboard-hero-card {
    background: linear-gradient(135deg, var(--ct-green-soft), rgba(0, 180, 200, 0.08));
    border-color: rgba(0, 230, 138, 0.28);
}

.dashboard-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dashboard-streak-badge {
    font: 700 0.76rem/1 'Inter', sans-serif;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f7ef;
    white-space: nowrap;
}

.dashboard-streak-badge.hot {
    border-color: rgba(0, 230, 138, 0.5);
    background: rgba(0, 230, 138, 0.14);
}

.daily-challenge-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.daily-desc,
.muted {
    color: var(--ct-muted);
    font-size: 0.9rem;
}

.daily-reward {
    font-size: 0.84rem;
    color: var(--ct-amber);
    font-weight: 600;
    margin-bottom: 12px;
}

.daily-play-btn {
    width: 100%;
}

.daily-timer {
    margin-top: 10px;
    text-align: center;
    font-size: 0.78rem;
}

.daily-completed {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 138, 0.28);
    background: rgba(0, 230, 138, 0.09);
    color: #dbfff0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.progress-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.xp-bar,
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00e68a, #69ffba);
    transition: width 0.35s ease;
}

.xp-bar.xp-up {
    animation: xpPulse 0.9s ease;
}

@keyframes xpPulse {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.35);
    }

    100% {
        filter: brightness(1);
    }
}

.skill-tree .module-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 700 0.92rem/1.2 'Inter', sans-serif;
    margin-bottom: 10px;
}

.module-lesson-progress {
    margin: 0 0 10px;
}

.module-lesson-progress-text {
    font: 700 0.72rem/1.1 'Inter', sans-serif;
    color: var(--ct-muted);
    margin-bottom: 5px;
}

.module-lesson-progress-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.module-lesson-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00e68a, #69ffba);
}

.lesson-list {
    display: grid;
    gap: 8px;
}

.lesson-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-card-main {
    display: grid;
    gap: 4px;
}

.lesson-title-line {
    font: 700 0.88rem/1.2 'Inter', sans-serif;
}

.lesson-meta {
    font-size: 0.79rem;
    color: #93b6a4;
}

.lesson-best {
    margin-top: 2px;
    font: 700 0.74rem/1.2 'Inter', sans-serif;
    color: #fcd34d;
}

.mastery-stars {
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.lesson-cta {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 120px;
}

.module-card-locked {
    border-color: rgba(251, 191, 36, 0.18) !important;
    background: rgba(20, 16, 5, 0.32) !important;
}

.lesson-card-locked {
    opacity: 0.72;
}

.module-lock-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.08);
    color: #f5d47d;
    font: 600 0.78rem/1.45 'Inter', sans-serif;
}

.leaderboard-mini h3,
.skill-tree h2,
.leaderboard-card h2 {
    margin-top: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.leaderboard-mini-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin: 6px 0 14px;
}

.podium-slot {
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    min-width: 92px;
    font-size: 0.8rem;
}

.podium-slot.first {
    padding: 18px 20px 24px;
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.1);
}

.podium-medal {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.podium-streak {
    font-size: 0.76rem;
    color: #fcd34d;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-row.me {
    background: rgba(0, 230, 138, 0.09);
}

.leaderboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
}

.lb-tab {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: 700 0.8rem/1 'Inter', sans-serif;
    cursor: pointer;
}

.lb-tab.active {
    color: #032016;
    border-color: rgba(0, 230, 138, 0.72);
    background: linear-gradient(180deg, rgba(0, 230, 138, 0.95), rgba(0, 197, 118, 0.95));
}

.leaderboard-me-box {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 138, 0.2);
    background: rgba(0, 230, 138, 0.06);
}

.leaderboard-streak {
    color: #fcd34d;
    font-size: 0.78rem;
}

.leaderboard-separator {
    text-align: center;
    color: var(--ct-muted);
    padding: 8px 0;
    letter-spacing: 0.3em;
}

.lb-rank {
    min-width: 44px;
    height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 800 0.74rem/1 'Inter', sans-serif;
    color: #03110b;
    background: #6b7280;
}

.lb-rank.rank-1 {
    background: #facc15;
}

.lb-rank.rank-2 {
    background: #cbd5e1;
}

.lb-rank.rank-3 {
    background: #f59e0b;
}

.lb-rank.rank-4,
.lb-rank.rank-5 {
    background: #86efac;
    color: #052414;
}

.training-view .lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lesson-top-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.round-pill {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font: 700 0.75rem/1 'Inter', sans-serif;
}

.lesson-audio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    margin: 12px 0;
}

.lesson-response-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: stretch;
    margin: 12px 0 4px;
}

.audio-controls {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    padding: 12px;
}

.play-row,
.mode-row,
.answer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.mode-row {
    margin-bottom: 0;
}

.gr-meter-wrap {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 230, 138, 0.08), rgba(0, 0, 0, 0.24));
    padding: 10px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
}

.gr-meter-label {
    font: 800 0.8rem/1 'Inter', sans-serif;
    letter-spacing: 0.06em;
    color: #dbfff0;
}

#grMeter {
    width: 40px;
    height: 200px;
    display: block;
}

.gr-meter-value {
    font: 800 0.9rem/1 'Space Grotesk', sans-serif;
    color: #fff;
}

.gr-meter-wrap.is-unavailable {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.04);
}

.question-box {
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 138, 0.2);
    background: rgba(0, 230, 138, 0.06);
    padding: 12px;
    margin-bottom: 10px;
}

.answer-row {
    margin: 14px 0 12px;
}

.answer-row-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slider-answer-card {
    display: grid;
    gap: 10px;
    align-content: start;
    margin-top: 14px;
}

.dual-slider-answer-card {
    gap: 14px;
}

.dual-slider-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dual-slider-field {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.slider-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slider-value-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 230, 138, 0.12);
    border: 1px solid rgba(0, 230, 138, 0.22);
    color: #dbfff0;
    font: 700 0.78rem/1.1 'Inter', sans-serif;
}

.slider-answer-label {
    font: 700 0.84rem/1.3 'Inter', sans-serif;
    color: #eef8f2;
}

.lesson-slider {
    width: 100%;
    accent-color: var(--ct-green);
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    color: var(--ct-muted);
}

.compression-training-page .btn {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 14px;
    font: 700 0.84rem/1.15 'Inter', sans-serif;
    transition: all 0.15s ease;
    cursor: pointer;
}

.compression-training-page .btn:hover {
    border-color: rgba(0, 230, 138, 0.6);
    background: rgba(0, 230, 138, 0.1);
}

.compression-training-page .btn:active {
    transform: scale(0.98);
}

.compression-training-page .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.compression-training-page .btn-primary {
    border-color: rgba(0, 230, 138, 0.76);
    background: linear-gradient(180deg, rgba(0, 230, 138, 0.95), rgba(0, 197, 118, 0.95));
    color: #032016;
    font-weight: 800;
}

.compression-training-page .btn-primary:hover {
    filter: brightness(1.05);
    border-color: rgba(105, 255, 186, 0.9);
}

.answer-btn {
    flex: 1;
    min-width: 180px;
    min-height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    font-weight: 600;
}

.answer-btn:hover {
    border-color: var(--ct-green);
    background: rgba(0, 230, 138, 0.08);
}

.answer-btn.is-selected {
    border-color: rgba(255, 255, 255, 0.3);
}

.answer-btn.answer-btn--success {
    border-color: rgba(0, 230, 138, 0.9);
    background: rgba(0, 230, 138, 0.16);
    box-shadow: 0 0 0 4px rgba(0, 230, 138, 0.12);
    animation: answerPulse 0.34s ease;
}

.answer-btn.answer-btn--wrong {
    border-color: rgba(248, 113, 113, 0.9);
    background: rgba(248, 113, 113, 0.12);
    animation: answerShake 0.34s ease;
}

@keyframes answerPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes answerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

.feedback-box {
    min-height: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(4px);
    transition: 0.2s ease;
}

.feedback-box.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-box.good {
    color: #24e08d;
    background: rgba(0, 230, 138, 0.12);
    border-color: rgba(0, 230, 138, 0.35);
}

.feedback-box.bad {
    color: #ffb0b0;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
}

.training-view.flash-correct {
    animation: lessonFlashGood 0.35s ease;
}

.training-view.flash-wrong {
    animation: lessonFlashBad 0.35s ease;
}

@keyframes lessonFlashGood {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(0, 230, 138, 0.65);
        border-color: rgba(0, 230, 138, 0.85);
    }
}

@keyframes lessonFlashBad {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(255, 121, 121, 0.7);
        border-color: rgba(255, 121, 121, 0.85);
    }
}

.result-card {
    text-align: center;
}

.result-card--success {
    border-color: rgba(0, 230, 138, 0.38);
    box-shadow: 0 0 0 1px rgba(0, 230, 138, 0.1), 0 18px 40px rgba(0, 230, 138, 0.08);
}

.result-score-frame {
    max-width: 420px;
    margin: 0 auto 16px;
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.result-score-frame--success {
    border: 2px solid rgba(0, 230, 138, 0.65);
    background: linear-gradient(180deg, rgba(0, 230, 138, 0.12), rgba(0, 0, 0, 0.12));
    box-shadow: 0 0 22px rgba(0, 230, 138, 0.14);
}

.result-score {
    font: 800 clamp(2.4rem, 8vw, 3.8rem)/1 'Space Grotesk', sans-serif;
    color: var(--ct-green);
    margin: 0 0 6px;
}

.result-score-headline {
    margin: 0 0 6px;
    color: #fff;
    font: 700 1rem/1.2 'Inter', sans-serif;
}

.result-subline {
    margin-bottom: 12px;
}

.score-float {
    position: fixed;
    z-index: 120;
    transform: translate(-50%, -8px);
    color: var(--ct-green);
    font: 800 1rem/1 'Space Grotesk', sans-serif;
    text-shadow: 0 0 18px rgba(0, 230, 138, 0.22);
    animation: scoreFloat 0.9s ease forwards;
    pointer-events: none;
}

@keyframes scoreFloat {
    0% { opacity: 0; transform: translate(-50%, 0); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -42px); }
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto 14px;
    max-width: 420px;
}

.result-pill {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.result-pill strong {
    display: block;
    font: 800 1.7rem/1 'Space Grotesk', sans-serif;
    margin-bottom: 4px;
}

.result-stars-wrap {
    margin: 10px auto 14px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.result-stars-wrap--upgraded {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
}

.result-stars {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin: 0 0 6px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.auth-row {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-row input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #fff;
    padding: 12px;
}

.feedback-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    transform: translateY(120%);
    transition: 0.25s ease;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    z-index: 99;
}

.feedback-toast.show {
    transform: translateY(0);
}

.feedback-toast.good {
    border-color: rgba(0, 230, 138, 0.5);
}

.feedback-toast.bad {
    border-color: rgba(255, 121, 121, 0.6);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
    z-index: 300;
    padding: 18px;
}

.modal.show {
    display: flex;
}

.modal-card {
    width: min(480px, 100%);
    background: #111814;
    border: 1px solid rgba(0, 230, 138, 0.22);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.onboarding-card {
    text-align: center;
}

.onboarding-step {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fcd34d;
    font: 700 0.74rem/1 'Inter', sans-serif;
    margin-bottom: 12px;
}

.onboarding-emoji {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.onboarding-card h2 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.onboarding-list {
    display: grid;
    gap: 10px;
    text-align: left;
    margin: 16px 0 18px;
}

.onboarding-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d5e2da;
    font-size: 0.9rem;
    line-height: 1.45;
}

@keyframes confetti-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confetti-fall 2s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

/* Hint po odpowiedzi */
.lesson-hint {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--ct-amber);
    background: rgba(251, 191, 36, 0.08);
    color: #f5d47d;
    font: 600 0.84rem/1.5 'Inter', sans-serif;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Play button active state */
.play-btn.playing {
    border-color: var(--ct-green);
    background: rgba(0, 230, 138, 0.12);
    color: var(--ct-green);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}

.table th,
.table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.lesson-card .btn,
.training-view .btn {
    min-height: 48px;
}

.answer-btn,
.range-btn,
.compression-training-page .btn {
    min-height: 48px;
}

.compression-training-page .btn:focus-visible,
.answer-btn:focus-visible {
    outline: 2px solid #00e68a;
    outline-offset: 2px;
}

@media (max-width: 920px) {
    .eq-grid.cols-2,
    .lesson-audio-layout,
    .lesson-response-layout {
        grid-template-columns: 1fr;
    }

    .gr-meter-wrap {
        justify-self: stretch;
        width: 100%;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: stretch;
        gap: 10px;
    }

    .gr-meter-label,
    .gr-meter-value {
        align-self: center;
    }

    #grMeter {
        width: 100%;
        height: 48px;
    }

    .lesson-card {
        flex-direction: column;
        align-items: stretch;
    }

    .lesson-cta {
        justify-items: stretch;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .compression-training-page .container {
        padding: 24px 14px;
    }

    .eq-subnav {
        gap: 6px;
    }

    .eq-subnav a {
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    .top-stats {
        flex-wrap: wrap;
    }

    .dashboard-top-grid,
    .result-grid {
        grid-template-columns: 1fr !important;
    }

    .leaderboard-mini-head {
        flex-direction: column;
        align-items: stretch;
    }

    .answer-row {
        flex-direction: column;
    }

    .answer-row-grid,
    .dual-slider-grid {
        grid-template-columns: 1fr;
    }

    .answer-btn,
    .mode-row .btn,
    .play-row .btn,
    .result-actions .btn {
        width: 100%;
    }

    #grMeter {
        width: 100%;
        height: 48px;
    }

    .training-view .lesson-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (hover: hover) and (pointer: fine) {
    .lesson-card:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 230, 138, 0.72);
        box-shadow: 0 8px 22px rgba(0, 230, 138, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.guest-warning-card,
.post-lesson-banner,
.leaderboard-gate,
.lead-capture-card,
.cross-sell-banner {
    border: 1px solid rgba(0, 230, 138, 0.2);
    border-radius: 16px;
    background: rgba(0, 230, 138, 0.08);
}

.guest-warning-card,
.post-lesson-banner,
.cross-sell-banner {
    padding: 16px 18px;
}

.guest-warning-actions,
.post-lesson-banner-actions,
.lead-capture-actions,
.leaderboard-gate-actions,
.cross-sell-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.post-lesson-banner {
    margin-bottom: 16px;
    color: #e8fff4;
}

.post-lesson-banner--strong {
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(251, 191, 36, 0.09);
}

.guest-warning-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.leaderboard-gate {
    margin-top: 14px;
    padding: 16px 18px;
    text-align: center;
}

.cross-sell-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-color: rgba(59, 130, 246, 0.28);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(0, 230, 138, 0.08));
}

.lead-capture-card h2 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
}

@media (max-width: 720px) {
    .guest-warning-card,
    .cross-sell-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
