/* static/css/funnel/lead_test.css
   ═══════════════════════════════════════════════════════════════
   PitchFit Funnel Test Modules
   v2: tap feedback, consistent play button, improved RP/PM grids,
       redesigned replay badge, desktop scaling merged in
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. SHARED SHELL ─────────────────────────────────────────── */

.step-ap-module,
.step-rp-module {
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
    padding: 0px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── 2. WAVE ANIMATION ───────────────────────────────────────── */

@keyframes lt-wave-bounce {
    from {
        height: 5px;
        opacity: 0.55;
    }

    to {
        height: 26px;
        opacity: 1;
    }
}

#lt-wave,
#lt-wave-recall,
.rp-cal-wave-shared,
#pm-demo-wave,
#rp-note-intro-wave {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 32px;
    margin: 8px auto;
}

#lt-wave .wave-bar,
#lt-wave-recall .wave-bar,
.rp-cal-wave-shared .wave-bar,
#pm-demo-wave .wave-bar,
#rp-note-intro-wave .wave-bar {
    width: 4px;
    height: 5px;
    background: var(--pf-accent);
    border-radius: 2px;
}

#lt-wave.active .wave-bar,
#lt-wave-recall.active .wave-bar,
.rp-cal-wave-shared.active .wave-bar,
#pm-demo-wave.active .wave-bar,
#rp-note-intro-wave.active .wave-bar {
    animation: lt-wave-bounce 0.45s ease-in-out infinite alternate;
}

#lt-wave.active .wave-bar:nth-child(2),
#lt-wave-recall.active .wave-bar:nth-child(2),
.rp-cal-wave-shared.active .wave-bar:nth-child(2),
#pm-demo-wave.active .wave-bar:nth-child(2) {
    animation-delay: 0.06s;
}

#lt-wave.active .wave-bar:nth-child(3),
#lt-wave-recall.active .wave-bar:nth-child(3),
.rp-cal-wave-shared.active .wave-bar:nth-child(3),
#pm-demo-wave.active .wave-bar:nth-child(3) {
    animation-delay: 0.12s;
}

#lt-wave.active .wave-bar:nth-child(4),
#lt-wave-recall.active .wave-bar:nth-child(4),
.rp-cal-wave-shared.active .wave-bar:nth-child(4),
#pm-demo-wave.active .wave-bar:nth-child(4) {
    animation-delay: 0.18s;
}

#lt-wave.active .wave-bar:nth-child(5),
#lt-wave-recall.active .wave-bar:nth-child(5),
.rp-cal-wave-shared.active .wave-bar:nth-child(5),
#pm-demo-wave.active .wave-bar:nth-child(5) {
    animation-delay: 0.24s;
}

#lt-wave.active .wave-bar:nth-child(6),
#lt-wave-recall.active .wave-bar:nth-child(6) {
    animation-delay: 0.30s;
}

#lt-wave.active .wave-bar:nth-child(7),
#lt-wave-recall.active .wave-bar:nth-child(7) {
    animation-delay: 0.36s;
}

/* ─── 3. PLAY BUTTON ──────────────────────────────────────────── */

.play-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 4px auto 16px;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    justify-content: center;

}

.play-btn:hover {
    transform: scale(1.06);
}

.play-btn:active .play-btn-inner {
    transform: scale(0.91);
    transition: transform 0.08s ease;
}

.play-btn.playing {
    pointer-events: none;
}

.play-btn-inner {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    /* Unified gradient matching the loading animations */
    background: linear-gradient(135deg, #6C5CE7 0%, #00CEC9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(108, 92, 231, 0.5);
    transition: box-shadow 0.2s ease, transform 0.1s ease, filter 0.15s;
}

.play-btn:hover .play-btn-inner {
    box-shadow: 0 8px 36px rgba(0, 206, 201, 0.55);
    filter: brightness(1.08);
}

.play-btn.playing .play-btn-inner {
    animation: pf-play-pulse 0.85s ease-in-out infinite alternate;
}

.play-btn.vc-play-btn {
    justify-content: center;
    gap: 1rem;
}

@keyframes pf-play-pulse {
    from {
        box-shadow: 0 6px 28px rgba(108, 92, 231, 0.5);
    }

    to {
        box-shadow: 0 8px 44px rgba(0, 206, 201, 0.65);
    }
}

.play-icon {
    width: 32px;
    height: 32px;
    color: #fff;
    margin-left: 4px;
}

.play-label {
    font-size: 0.72rem;
    color: var(--pf-text-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ─── 4. REPLAY BADGE — subtle inline indicator ───────────────── */

.ap-replay-badge,
#ap-replay-badge,
#rp-replay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pf-text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 4px 12px;
    margin: 0 auto 12px;
    letter-spacing: 0.02em;
}

/* Dot indicator */
.ap-replay-badge::before,
#ap-replay-badge::before,
#rp-replay-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pf-primary-light);
    flex-shrink: 0;
}

@keyframes replayBump {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }
}

.replay-bump {
    animation: replayBump 0.35s ease;
}

/* ─── 5. PROMPT TEXT ──────────────────────────────────────────── */

.lt-prompt,
#lt-prompt,
#ap-assign-prompt,
#lt-recall-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pf-text);
    text-align: center;
    letter-spacing: -0.01em;
    margin: 10px 0 14px;
    line-height: 1.4;
}

/* ─── 6. ANSWER GRIDS ─────────────────────────────────────────── */

.lt-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

@media (max-width: 400px) {
    .lt-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

.lt-grid-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: 10px;
    color: var(--pf-text);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, transform 0.07s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lt-grid-btn:hover:not(:disabled) {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.12);
    transform: translateY(-2px);
}

.lt-grid-btn:active:not(:disabled) {
    transform: scale(0.89) !important;
    opacity: 0.8;
    transition: transform 0.07s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lt-grid-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.lt-grid-btn.chosen {
    border-color: var(--pf-accent) !important;
    background: rgba(0, 206, 201, 0.15) !important;
    box-shadow: 0 0 14px rgba(0, 206, 201, 0.3);
    transform: scale(1.06);
}

.lt-grid-btn.correct {
    border-color: var(--pf-success) !important;
    background: rgba(0, 184, 148, 0.18) !important;
    color: var(--pf-success);
}

.lt-grid-btn.wrong {
    border-color: var(--pf-error) !important;
    background: rgba(225, 112, 85, 0.14) !important;
    color: var(--pf-error);
}

/* Note-name 4-column variant */
.lt-grid.lt-grid-notes {
    grid-template-columns: repeat(4, 1fr);
}

.lt-grid.lt-grid-notes .lt-grid-btn {
    aspect-ratio: unset;
    padding: 13px 6px;
    font-family: var(--pf-font-display);
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 54px;
    border-radius: 12px;
    letter-spacing: -0.01em;
}

/* ─── 7. AP MODULE ────────────────────────────────────────────── */

.ap-stage-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.ap-stage-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(108, 92, 231, 0.14);
    color: var(--pf-primary-light);
    border: 1px solid rgba(108, 92, 231, 0.28);
}

.ap-stage-pill-muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--pf-text-dim);
    border-color: rgba(255, 255, 255, 0.10);
}

.ap-phase-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pf-primary-light);
    margin: 0 0 12px;
    text-align: center;
}

#ap-masking-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
}

.ap-masking-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ap-masking-icon {
    font-size: 3rem;
}

.ap-masking-label {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--pf-text-dim);
    margin: 0;
}

.ap-masking-wave {
    margin: 0 auto;
}

.ap-countdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 20px;
}

.ap-countdown-number {
    font-family: var(--pf-font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pf-accent);
    min-width: 2.5rem;
    text-align: center;
    transition: color 0.3s;
}

.ap-countdown-number.ap-countdown-urgent {
    color: var(--pf-error);
}

.ap-countdown-label {
    font-size: 0.78rem;
    color: var(--pf-text-dim);
}

.ap-review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
}

.ap-review-btn {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.ap-review-btn:hover {
    border-color: var(--pf-primary);
    transform: translateY(-2px);
}

.ap-review-btn:active {
    transform: scale(0.91);
}

.ap-review-btn.ap-review-playing {
    border-color: var(--pf-accent);
    background: rgba(0, 206, 201, 0.12);
    box-shadow: 0 0 14px rgba(0, 206, 201, 0.3);
}

.ap-review-sym {
    font-size: 1.3rem;
    line-height: 1;
}

.ap-review-play {
    font-size: 0.52rem;
    color: var(--pf-text-dim);
    margin-top: 2px;
}

.ap-review-btn.ap-review-playing .ap-review-play {
    color: var(--pf-accent);
}

.ap-ready-btn {
    margin: 8px auto 0;
    max-width: 220px;
    padding: 12px 24px;
}

#ap-transition-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 16px;
    text-align: center;
}

.ap-transition-icon {
    font-size: 3rem;
}

.ap-transition-title {
    font-family: var(--pf-font-display);
    font-size: 1.3rem;
    margin: 0;
}

.ap-transition-sub {
    color: var(--pf-text-dim);
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0;
}

.lt-masking-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    margin: 6px auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    color: var(--pf-text-dim);
    font-style: italic;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    max-width: 220px;
}

.masking-icon {
    font-size: 0.9rem;
}

.step-ap-module {
    max-width: min(900px, 100%);
    width: 100%;
}

.step-ap-module .funnel-piano-wrap {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

.step-ap-module .funnel-piano {
    max-width: 100%;
    height: 100px;
}

.step-ap-module .funnel-key.white {
    font-size: 0.62rem;
}

.step-ap-module>#ap-assign-phase,
.step-ap-module>#ap-review-phase,
.step-ap-module>#ap-recall-phase,
.step-ap-module>#ap-transition-screen,
.step-ap-module>#ap-masking-screen {
    width: 100%;
    align-self: stretch;
}

@media (min-width: 700px) {
    .step-ap-module .funnel-piano {
        height: 180px;
    }
}

/* ─── 8. RP MODULE — CALIBRATION ──────────────────────────────── */

.rp-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.rp-cal-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
}

.rp-cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.rp-cal-dot.active {
    background: var(--pf-accent);
}

.rp-cal-dot.done {
    background: rgba(0, 206, 201, 0.35);
}

.rp-cal-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rp-cal-big-icon {
    font-size: 3rem;
    margin: 8px 0;
}

.rp-cal-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.rp-cal-body {
    font-size: 0.88rem;
    color: var(--pf-text-dim);
    text-align: center;
    line-height: 1.65;
    max-width: 320px;
    margin: 0;
}

.rp-cal-next-btn {
    width: 100%;
    max-width: 240px;
    margin-top: 8px;
}

.rp-cal-skip-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: var(--pf-text-dim);
    cursor: pointer;
    padding: 8px 16px;
    margin-top: 4px;
    transition: color 0.15s;
}

.rp-cal-skip-btn:hover {
    color: var(--pf-text-muted);
}

.rp-cal-examples {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.rp-cal-examples-3 {
    gap: 8px;
}

.rp-cal-ex-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    min-width: 90px;
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--pf-text);
    transition: border-color 0.12s, background 0.12s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
}

.rp-cal-ex-card:hover:not(:disabled) {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.10);
    transform: translateY(-2px);
}

.rp-cal-ex-card:active:not(:disabled) {
    transform: scale(0.93);
}

.rp-cal-ex-card:disabled {
    opacity: 0.4;
    cursor: default;
}

.rp-cal-ex-card.rp-cal-ex-playing {
    border-color: var(--pf-accent);
    background: rgba(0, 206, 201, 0.12);
    box-shadow: 0 0 16px rgba(0, 206, 201, 0.25);
    transform: scale(1.05);
}

.rp-cal-ex-wide {
    min-width: 180px;
}

.rp-cal-ex-icon {
    font-size: 1.8rem;
}

.rp-cal-ex-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.rp-cal-ex-hint {
    font-size: 0.68rem;
    color: var(--pf-text-dim);
}

/* ─── 9. RP MODULE — TEST PHASE ───────────────────────────────── */

#rp-phase-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 16px;
    text-align: center;
    width: 100%;
}

.rp-phase-icon {
    font-size: 3rem;
}

.rp-phase-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.rp-phase-body {
    font-size: 14px;
    color: var(--pf-text-dim);
    line-height: 1.65;
    max-width: 300px;
    margin: 10px 0;
}

.rp-phase-continue {
    width: 100%;
    max-width: 240px;
    margin-top: 8px;
}

/* Note-mode interval grid */
.rp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 500px) {
    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rp-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
        padding: 8px 8px;
    min-height: 54px;

    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    color: var(--pf-text);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
}

.rp-grid-btn:hover:not(:disabled) {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.10);
    transform: translateY(-2px);
}

.rp-grid-btn:active:not(:disabled) {
    transform: scale(0.92) !important;
    opacity: 0.82;
    transition: transform 0.07s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rp-grid-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.rp-grid-btn.chosen {
    border-color: var(--pf-accent) !important;
    background: rgba(0, 206, 201, 0.12) !important;
    box-shadow: 0 0 14px rgba(0, 206, 201, 0.2);
}

.rp-grid-btn.correct {
    border-color: var(--pf-success) !important;
    background: rgba(0, 184, 148, 0.18) !important;
    color: var(--pf-success);
}

.rp-grid-btn.wrong {
    border-color: var(--pf-error) !important;
    background: rgba(225, 112, 85, 0.14) !important;
    color: var(--pf-error);
}

.interval-short {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pf-accent);
    font-family: var(--pf-font-display);
}

.interval-name {
    font-size: 0.72rem;
    color: var(--pf-text-dim);
    margin-top: 2px;
}

/* Symbol grids */
.rp-symbol-grid-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.rp-dir-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.rp-dir-btn {
    padding: 22px 16px;
    min-height: 96px;
}

.rp-dir-btn .rp-sym-icon {
    font-size: 2.2rem;
}

.rp-dir-btn .rp-sym-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.rp-dir-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pf-primary-light);
    margin: 12px 0 6px;
    text-align: center;
}

.rp-sym-section {
    margin-bottom: 8px;
}

.rp-size-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rp-size-btns-harmonic {
    max-width: 360px;
    margin: 0 auto;
}

.rp-symbol-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    min-height: 72px;
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    color: var(--pf-text);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
}

.rp-symbol-btn:hover:not(:disabled) {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.10);
    transform: translateY(-2px);
}

.rp-symbol-btn:active:not(:disabled) {
    transform: scale(0.91) !important;
    opacity: 0.82;
    transition: transform 0.07s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rp-symbol-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.rp-symbol-btn.chosen {
    border-color: var(--pf-accent) !important;
    background: rgba(0, 206, 201, 0.12) !important;
    box-shadow: 0 0 14px rgba(0, 206, 201, 0.2);
}

.rp-symbol-btn.correct {
    border-color: var(--pf-success) !important;
    background: rgba(0, 184, 148, 0.18) !important;
    color: var(--pf-success);
}

.rp-symbol-btn.wrong {
    border-color: var(--pf-error) !important;
    background: rgba(225, 112, 85, 0.14) !important;
    color: var(--pf-error);
}

.rp-sym-icon {
    font-size: 1.5rem;
}

.rp-sym-label {
    font-size: 0.74rem;
    color: var(--pf-text-dim);
    font-weight: 600;
}

.rp-harmonic-hint {
    font-size: 0.82rem;
    color: var(--pf-text-dim);
    text-align: center;
    margin: 0 0 12px;
}

#rp-note-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-note-intro-header {
    text-align: center;
    margin-bottom: 1rem;
}

#rp-note-intro-wave {
    margin: 0.75rem 0 1.25rem;
}

.rp-note-intro-grid {
    visibility: visible !important;
    margin-bottom: 1.5rem;
}

.rp-note-intro-btn.chosen {
    transform: scale(0.98);
}

/* ─── 10. PM MODULE ───────────────────────────────────────────── */

.step-pm-module {
    align-self: stretch;
    min-height: 0;
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

#pm-test-content {
    width: 100%;
}

#pm-demo-screen,
#pm-live-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pm-stage-slot {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 6px auto 0;
    overflow: visible;
}

#pm-demo-answer-block,
#pm-answer-block {
    width: 100%;
}

#pm-demo-answer-block .lt-prompt,
#pm-answer-block .lt-prompt {
    margin: 0 0 14px;
    text-align: center;
}

/* PM Same/Different buttons — large card style */
.pm-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

/* Override base .choice-btn for PM specifically */
.pm-buttons .choice-btn,
#pm-buttons .choice-btn,
#pm-demo-buttons .choice-btn {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    max-width: none;
    padding: 22px 12px;
    border-radius: 16px;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.pm-buttons .choice-btn .choice-icon,
#pm-buttons .choice-btn .choice-icon,
#pm-demo-buttons .choice-btn .choice-icon {
    font-size: 2rem;
}

.pm-buttons .choice-btn .choice-label,
#pm-buttons .choice-btn .choice-label,
#pm-demo-buttons .choice-btn .choice-label {
    font-size: 1rem;
    font-weight: 700;
}

#pm-demo-screen .lt-play-btn,
#pm-live-screen .lt-play-btn {
    margin: 0;
}

#pm-demo-screen .rp-phase-body {
    margin-bottom: 6px;
    max-width: 340px;
}

#pm-demo-continue {
    width: 100%;
    max-width: 240px;
    margin-top: 12px;
}

#pm-demo-wave,
#lt-wave,
#pm-demo-countdown-wrap,
#pm-countdown-wrap {
    margin: 0 auto;
}

/* ─── 11. CHOICE BUTTONS (base — overrides steps.css in test context) */

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: var(--pf-radius-md);
    color: var(--pf-text);
    font-family: var(--pf-font);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.12s, background 0.12s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.choice-btn:hover:not(:disabled) {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.10);
    transform: translateY(-2px);
}

.choice-btn:active:not(:disabled) {
    transform: scale(0.92) !important;
    opacity: 0.82;
    transition: transform 0.07s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.choice-btn.selected {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.15);
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.25);
}

.choice-btn.correct {
    border-color: var(--pf-success) !important;
    background: rgba(0, 184, 148, 0.18) !important;
    color: var(--pf-success);
}

.choice-btn.wrong {
    border-color: var(--pf-error) !important;
    background: rgba(225, 112, 85, 0.14) !important;
    color: var(--pf-error);
}

.choice-icon {
    font-size: 1.6rem;
}

.choice-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.choice-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.choice-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {

    .choice-grid-2,
    .choice-grid-3 {
        grid-template-columns: 1fr;
    }
}

.choice-lg {
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.choice-lg .choice-icon {
    font-size: 1.8rem;
}

.choice-lg .choice-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.choice-lg .choice-desc {
    font-size: 0.8rem;
    color: var(--pf-text-dim);
}

/* Symbol set picker */
.symbol-set-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .symbol-set-grid {
        grid-template-columns: 1fr;
    }
}

.symbol-set-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--pf-text);
    transition: border-color 0.12s, background 0.12s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
}

.symbol-set-btn:hover {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.08);
    transform: translateY(-2px);
}

.symbol-set-btn:active {
    transform: scale(0.94);
}

.symbol-set-btn.selected {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.18);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.25);
}

.symbol-preview {
    font-size: 1.4rem;
    letter-spacing: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.symbol-set-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-text-dim);
}

.color-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* ─── 12. PIANO KEYBOARD ──────────────────────────────────────── */

.funnel-piano-wrap {
    width: 100%;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.funnel-piano-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pf-text-dim);
    margin-bottom: 10px;
    text-align: center;
    display: block;
}

.funnel-piano {
    position: relative;
    height: 130px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    user-select: none;
    background: #130d28;
    border-radius: 4px 4px 8px 8px;
    padding: 0 3px 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.funnel-key {
    position: absolute;
    cursor: pointer;
    transition: background 0.07s, filter 0.07s;
    border: none;
    outline: none;
    padding: 0;
}

.funnel-key.white {
    top: 0;
    bottom: 0;
    width: calc(7.143% - 2px);
    background: linear-gradient(180deg, #eee8ff 0%, #d8cfef 70%, #c8bfe0 100%);
    border-left: 1px solid rgba(108, 92, 231, 0.15);
    border-right: 1px solid rgba(108, 92, 231, 0.15);
    border-bottom: 3px solid rgba(80, 60, 180, 0.25);
    border-radius: 0 0 5px 5px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    font-size: 0.56rem;
    color: rgba(80, 60, 180, 0.65);
    font-weight: 700;
    font-family: var(--pf-font);
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.funnel-key.white:hover {
    background: linear-gradient(180deg, #fff 0%, #ede5ff 70%, #ddd4f5 100%);
    filter: brightness(1.05);
}

.funnel-key.white:active {
    background: linear-gradient(180deg, #ccc5e8 0%, #bbb4d8 70%, #aaa3c8 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scaleY(0.985);
    transform-origin: top;
}

.funnel-key.black {
    top: 0;
    height: 56%;
    width: calc(4.286% - 1px);
    background: linear-gradient(180deg, #2a1f4a 0%, #1a1035 50%, #0e0820 100%);
    border: 1px solid rgba(0, 0, 0, 0.7);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 2;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.funnel-key.black:hover {
    background: linear-gradient(180deg, #3a2f5e 0%, #2a1f4a 50%, #1a1035 100%);
}

.funnel-key.black:active {
    background: linear-gradient(180deg, #120b25 0%, #0e0820 100%);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
    transform: scaleY(0.97);
    transform-origin: top;
}

.funnel-key.key-correct {
    background: linear-gradient(180deg, #00e8c8 0%, #00b894 100%) !important;
    box-shadow: 0 0 14px rgba(0, 184, 148, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
    color: #fff !important;
}

.funnel-key.key-wrong {
    background: linear-gradient(180deg, #ff6b6b 0%, #e17055 100%) !important;
    box-shadow: 0 0 10px rgba(225, 112, 85, 0.5) !important;
}

.funnel-key.key-highlight {
    background: linear-gradient(180deg, #74efc8 0%, #00cec9 100%) !important;
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.4) !important;
}

/* ─── 13. EMAIL STEP ──────────────────────────────────────────── */

.step-email {
    max-width: 480px;
    padding: 32px 20px;
    margin: 0 auto;
}

.step-email .step-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--pf-text);
    text-align: center;
}

.step-email .step-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--pf-text-muted);
    margin: 0 0 32px;
    text-align: center;
}

.email-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.email-stat-card {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-lg);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.email-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--pf-text-dim);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    line-height: 1.3;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pf-text);
    line-height: 1.2;
}

.step-email .input-group-music {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
}

.step-email .input-email-large {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    padding: 16px 18px;
    text-align: center;
}

.step-email .input-email-large::placeholder {
    text-align: center;
}

.email-terms {
    margin: 20px 0 24px;
}

.terms-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--pf-text-dim);
    text-align: center;
    margin: 0;
}

.terms-text a {
    color: var(--pf-primary-light);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

.step-email .email-cta-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1.05rem;
    padding: 16px;
}

@media (max-width: 480px) {
    .step-email {
        padding: 24px 16px;
    }

    .email-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .email-stat-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 14px 16px;
        gap: 14px;
    }

    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .stat-content {
        align-items: flex-start;
        text-align: left;
    }
}

/* ─── 14. SCORE SUMMARY ───────────────────────────────────────── */

.step-score-summary {
    padding: 20px 16px;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-progress {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.75rem;
    color: var(--pf-text-dim);
    font-weight: 600;
}

.summary-heading {
    font-family: var(--pf-font-display);
    font-size: 1.4rem;
    text-align: center;
    margin: 0;
    color: var(--pf-text);
}

.summary-hero {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 8px 0 32px;
}

.summary-hero-img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: var(--pf-radius-lg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.summary-level-badge {
    position: absolute;
    bottom: -52px;
    transform: translateX(-50%);
    background: rgba(26, 18, 48, 0.97);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid var(--pf-primary);
    box-shadow: var(--pf-shadow-glow);
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pf-primary-light);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-pointer {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--pf-primary);
}

.summary-score-bar {
    position: relative;
    padding: 12px 0 32px;
}

.score-bar-track {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.score-bar-segment {
    flex: 1;
    transition: opacity 0.3s;
}

.segment-baseline {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
}

.segment-developing {
    background: linear-gradient(90deg, #e67e22, #d35400);
}

.segment-moderate {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.segment-strong {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.segment-exceptional {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.score-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--pf-text-dim);
    font-weight: 600;
    padding: 0 4px;
}

.score-bar-indicator {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-value-bubble {
    background: var(--pf-primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
    border: 3px solid var(--pf-bg);
}

.summary-level-box {
    display: flex;
    gap: 12px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.28);
    border-radius: var(--pf-radius-md);
    padding: 16px;
    align-items: flex-start;
    text-align: left;
}

.summary-level-box[data-level="exceptional"],
.summary-level-box[data-level="strong"] {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.28);
}

.summary-level-box[data-level="moderate"] {
    background: rgba(241, 196, 15, 0.08);
    border-color: rgba(241, 196, 15, 0.28);
}

.level-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.level-content {
    flex: 1;
    text-align: left;
}

.level-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--pf-text);
}

.level-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--pf-text-muted);
    margin: 0;
}

.summary-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.module-card {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-card-primary {
    border-color: var(--pf-primary);
    background: rgba(108, 92, 231, 0.08);
}

.module-card-primary .module-icon {
    background: var(--pf-primary);
    color: white;
}

.module-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.14);
    border-radius: 10px;
    flex-shrink: 0;
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.module-name {
    font-size: 0.78rem;
    color: var(--pf-text-dim);
    font-weight: 500;
}

.module-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pf-text);
}

.summary-cta {
    margin-top: 8px;
    width: 100%;
}

@media (max-width: 400px) {
    .summary-heading {
        font-size: 1.2rem;
    }

    .summary-hero-img {
        max-width: 200px;
    }

    .summary-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 740px) {
    .step-score-summary {
        gap: 16px;
        padding: 16px 12px;
    }

    .summary-hero-img {
        max-width: 180px;
    }

    .summary-score-bar {
        padding: 8px 0 20px;
    }

    .summary-level-box {
        padding: 12px;
    }

    .module-card {
        padding: 10px;
    }
}

/* ─── 15. AP→RP BRIDGE ────────────────────────────────────────── */

.rp-explainer-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1rem;
    text-align: left;
}

.rp-explainer-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.rp-explainer-card--highlight {
    background: rgba(108, 92, 231, .10);
    border-color: rgba(108, 92, 231, .28);
}

.rp-explainer-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.rp-explainer-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-text);
    margin-bottom: .2rem;
}

.rp-explainer-desc {
    font-size: 0.75rem;
    color: var(--pf-text-dim);
    line-height: 1.4;
}

.rp-explainer-desc em {
    font-style: italic;
    color: var(--pf-primary-light);
}

.rp-explainer-divider {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pf-text-dim);
    text-align: center;
    letter-spacing: .1em;
}

.rp-stat-row {
    display: flex;
    gap: .75rem;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.rp-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    background: rgba(108, 92, 231, .08);
    border: 1px solid rgba(108, 92, 231, .2);
    border-radius: 12px;
    padding: .75rem .5rem;
}

.rp-stat-num {
    font-family: var(--pf-font-display);
    font-size: 1.2rem;
    color: var(--pf-primary-light);
    line-height: 1;
}

.rp-stat-label {
    font-size: 0.68rem;
    color: var(--pf-text-dim);
    line-height: 1.3;
    text-align: center;
}

/* ─── 16. DEV SKIP BAR ────────────────────────────────────────── */

#dev-skip-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(15, 10, 30, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 200, 0, 0.22);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.4);
}

#dev-skip-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 4px;
    padding: 2px 7px;
    text-transform: uppercase;
    flex-shrink: 0;
}

#dev-skip-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: rgba(241, 196, 15, 0.16);
    border: 1px solid rgba(241, 196, 15, 0.45);
    border-radius: 8px;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}

#dev-skip-btn:hover {
    background: rgba(241, 196, 15, 0.28);
    border-color: #f1c40f;
}

#dev-skip-btn:active {
    transform: scale(0.97);
}

/* ══════════════════════════════════════════════════════════
   DESKTOP SCALING (≥640px)
   ══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {

    /* Play button */
    .play-btn-inner {
        width: 96px;
        height: 96px;
    }

    .play-icon {
        width: 38px;
        height: 38px;
    }

    /* Prompt */
    .lt-prompt,
    #lt-prompt,
    #ap-assign-prompt,
    #lt-recall-prompt {
        font-size: 1.2rem;
        margin: 14px 0 18px;
    }

    /* AP note grid */
    .lt-grid.lt-grid-notes .lt-grid-btn {
        font-size: 1.0rem;
        min-height: 62px;
        padding: 15px 8px;
    }

    .lt-grid-btn {
        font-size: 1.5rem;
    }

    .lt-grid {
        gap: 10px;
    }

    /* RP grid */
    .rp-grid-btn {
        min-height: 86px;
    }

    .interval-short {
        font-size: 1.3rem;
    }

    .interval-name {
        font-size: 0.78rem;
    }

    /* RP symbol buttons */
    .rp-symbol-btn {
        min-height: 82px;
        padding: 18px 12px;
    }

    .rp-sym-icon {
        font-size: 1.7rem;
    }

    .rp-sym-label {
        font-size: 0.82rem;
    }

    .rp-dir-btn {
        min-height: 110px;
    }

    .rp-dir-btn .rp-sym-icon {
        font-size: 2.5rem;
    }

    /* PM buttons */
    .pm-buttons {
        max-width: 420px;
    }

    .pm-buttons .choice-btn,
    #pm-buttons .choice-btn {
        min-height: 130px;
        padding: 26px 16px;
    }

    .pm-buttons .choice-btn .choice-icon {
        font-size: 2.4rem;
    }

    .pm-buttons .choice-btn .choice-label {
        font-size: 1.1rem;
    }

    /* PM live test — vertically centre the wave/prompt/buttons on desktop */
    .step-pm-module {
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Give the live screen a minimum height so it feels anchored */
    #pm-live-screen {
        justify-content: center;
        min-height: 340px;
    }

    /* Phase transitions */
    .rp-phase-title {
        font-size: 1.3rem;
    }

    .rp-phase-body {
        font-size: 0.95rem;
        max-width: 380px;
    }

    /* Cal screens */
    .rp-cal-title {
        font-size: 1.2rem;
    }

    .rp-cal-body {
        font-size: 0.95rem;
        max-width: 380px;
    }

    .rp-cal-next-btn {
        max-width: 280px;
    }
}