/* PromptPlay Center Modal - Clean Mobile App Promotion */

@media (min-width: 769px) {
    #promptplay-overlay {
        display: none !important;
    }
}

#promptplay-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#promptplay-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#promptplay-overlay .promptplay-card {
    background: #FFFFFF;
    border-radius: 28px;
    width: 100%;
    max-width: 335px;
    box-sizing: border-box;
    padding: 30px 22px 20px 22px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.28), 0 0 1px rgba(15, 23, 42, 0.12);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#promptplay-overlay.active .promptplay-card {
    transform: scale(1);
}

/* Close button - Top Right */
.promptplay-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.promptplay-close-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
}

.promptplay-close-btn:hover,
.promptplay-close-btn:focus-visible {
    background: #E2E8F0;
    outline: none;
}

.promptplay-close-btn:active {
    transform: scale(0.92);
}

.promptplay-close-btn svg {
    width: 14px;
    height: 14px;
    stroke: #334155;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* App Icon - Center Top Squircle */
.promptplay-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px auto;
    box-shadow: 0 8px 18px -4px rgba(58, 78, 251, 0.32);
}

/* Title & Subtitle */
.promptplay-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #252943;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.promptplay-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    color: #64748B;
    margin: 0 0 20px 0;
    line-height: 1.45;
    padding: 0 4px;
}

/* Primary Button */
.promptplay-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3A4EFB 0%, #33A4FA 100%);
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(58, 78, 251, 0.45);
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.promptplay-open-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px -2px rgba(58, 78, 251, 0.4);
}

/* Continue in browser Link */
.promptplay-continue-btn {
    display: inline-block;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-top: 14px;
    padding: 6px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.promptplay-continue-btn:hover,
.promptplay-continue-btn:focus-visible {
    color: #64748B;
    outline: none;
}

.promptplay-continue-btn:active {
    color: #475569;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #promptplay-overlay,
    #promptplay-overlay .promptplay-card,
    .promptplay-open-btn,
    .promptplay-close-btn {
        transition: none !important;
        transform: none !important;
    }
}
