@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap");.notification-page {
    min-height: 100vh;
    color: #fff;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    background:
        radial-gradient(1200px 800px at 50% -20%, rgba(158, 20, 46, 0.65), transparent 62%),
        linear-gradient(180deg, #1a070e 0%, #0b0c15 100%);
}

.notification-shell {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    min-height: calc(100vh - max(24px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notice-panel {
    border: 1px solid rgba(231, 157, 255, 0.55);
    border-radius: 24px;
    padding: 22px 18px 18px;
    background:
        radial-gradient(600px 320px at 0% 0%, rgba(252, 121, 182, 0.18), transparent 60%),
        radial-gradient(600px 320px at 100% 0%, rgba(136, 95, 255, 0.2), transparent 62%),
        rgba(10, 11, 22, 0.86);
    backdrop-filter: blur(12px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.notice-alert {
    width: 54px;
    height: 54px;
    color: #ffd84f;
    filter: drop-shadow(0 0 14px rgba(255, 216, 79, 0.5));
}

.notice-title {
    margin: 0;
    font-size: clamp(30px, 6vw, 40px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.notice-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.notice-option {
    min-height: 172px;
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notice-option-off {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.notice-option-on {
    border: 2px solid rgba(117, 255, 171, 0.8);
    background: linear-gradient(180deg, rgba(80, 255, 175, 0.12), rgba(80, 255, 175, 0.04));
    box-shadow: 0 0 26px rgba(84, 255, 164, 0.34);
}

.notice-option-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
}

.notice-option-icon-off {
    color: #c7cbd3;
}

.notice-option-icon-on {
    color: #7bffb8;
    filter: drop-shadow(0 0 12px rgba(113, 255, 175, 0.5));
}

.notice-option-title {
    margin: 0 0 4px;
    font-size: clamp(17px, 3.5vw, 22px);
    line-height: 1.14;
    font-weight: 800;
}

.notice-option-desc {
    margin: 0;
    font-size: clamp(13px, 2.9vw, 18px);
    line-height: 1.22;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 550;
}

.notice-cta-btn {
    width: 100%;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: linear-gradient(90deg, #ff639d 0%, #a95cff 100%);
    color: #fff;
    font-size: clamp(21px, 4.2vw, 27px);
    line-height: 1;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 10px 30px rgba(172, 84, 255, 0.35),
        0 0 18px rgba(255, 96, 159, 0.3);
}

.notice-flow {
    border: 1px solid rgba(231, 157, 255, 0.35);
    border-radius: 20px;
    padding: 18px;
    background: rgba(10, 11, 22, 0.88);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-accent {
    background: linear-gradient(90deg, #ff639d 0%, #a95cff 100%);
}

@media (max-width: 430px) {
    .notice-panel {
        padding: 18px 14px 14px;
        gap: 12px;
    }

    .notice-alert {
        width: 46px;
        height: 46px;
    }

    .notice-title {
        font-size: clamp(26px, 8vw, 34px);
        line-height: 1.05;
    }

    .notice-option {
        min-height: 148px;
        padding: 12px 8px;
    }

    .notice-option-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
    }

    .notice-option-title {
        font-size: clamp(16px, 4.9vw, 20px);
    }

    .notice-option-desc {
        font-size: clamp(12px, 4.1vw, 16px);
    }

    .notice-cta-btn {
        height: 52px;
        font-size: clamp(20px, 5.8vw, 24px);
    }
}
.lcs-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #6B6B70;
    background-color: #0B0B0E;
}

.lcs-root {
    min-height: 100vh;
    background-color: #0B0B0E;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
}

.lcs-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Success Icon */
.lcs-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.lcs-icon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 213, 131, 0.13) 0%, rgba(50, 213, 131, 0.02) 100%);
}

.lcs-icon-circle {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(180deg, #32D583, #059669);
    box-shadow: 0 8px 24px -4px rgba(50, 213, 131, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lcs-icon-check {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

/* Message */
.lcs-message {
    text-align: center;
}

.lcs-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #FAFAF9;
}

.lcs-subtitle {
    font-size: 14px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

.lcs-subtitle strong {
    color: #FAFAF9;
}

/* ===== Web Management Card ===== */
.lcs-web-card {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lcs-web-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lcs-web-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.lcs-web-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.lcs-web-card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #4B5563;
    margin: 0;
}

.lcs-web-card-divider {
    height: 1px;
    background: #E5E7EB;
}

.lcs-web-card-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcs-web-card-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.lcs-web-card-bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lcs-web-card-bullet-green {
    color: #22C55E;
}

.lcs-web-card-bullet-purple {
    color: #6366F1;
}

.lcs-web-card-cta {
    width: 100%;
    height: 50px;
    border-radius: 24px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.25);
    border: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.15s;
}

.lcs-web-card-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.lcs-web-card-bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: #E8E8EC;
    border-radius: 8px;
    align-self: center;
}

.lcs-web-card-bookmark-icon {
    display: flex;
    align-items: center;
    color: #9CA3AF;
}

.lcs-web-card-bookmark-url {
    font-size: 14px;
    font-weight: 600;
    color: #6366F1;
    letter-spacing: 0.3px;
}

.lcs-web-card-bookmark-hint {
    font-size: 12px;
    color: #9CA3AF;
}

/* .lcs-apple-cancel-link styles removed: Apple cancel subscription prompt no longer shown */
.lc2s-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #6B6B70;
    background-color: #0A0A0F;
}

.lc2s-root {
    min-height: 100vh;
    background-color: #0A0A0F;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
}

.lc2s-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Success Icon */
.lc2s-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.lc2s-icon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 213, 131, 0.13) 0%, rgba(50, 213, 131, 0.02) 100%);
}

.lc2s-icon-circle {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(180deg, #32D583, #059669);
    box-shadow: 0 8px 24px -4px rgba(50, 213, 131, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc2s-icon-check {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

/* Message */
.lc2s-message {
    text-align: center;
}

.lc2s-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #FAFAF9;
}

.lc2s-subtitle {
    font-size: 14px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

.lc2s-subtitle strong {
    color: #FAFAF9;
}

/* ===== Web Management Card ===== */
.lc2s-web-card {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lc2s-web-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc2s-web-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.lc2s-web-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.lc2s-web-card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #4B5563;
    margin: 0;
}

.lc2s-web-card-divider {
    height: 1px;
    background: #E5E7EB;
}

.lc2s-web-card-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc2s-web-card-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.lc2s-web-card-bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lc2s-web-card-bullet-green {
    color: #22C55E;
}

.lc2s-web-card-bullet-purple {
    color: #6366F1;
}

.lc2s-web-card-cta {
    width: 100%;
    height: 50px;
    border-radius: 24px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.25);
    border: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.15s;
}

.lc2s-web-card-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.lc2s-web-card-bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: #E8E8EC;
    border-radius: 8px;
    align-self: center;
}

.lc2s-web-card-bookmark-icon {
    display: flex;
    align-items: center;
    color: #9CA3AF;
}

.lc2s-web-card-bookmark-url {
    font-size: 14px;
    font-weight: 600;
    color: #6366F1;
    letter-spacing: 0.3px;
}

.lc2s-web-card-bookmark-hint {
    font-size: 12px;
    color: #9CA3AF;
}

/* .lc2s-apple-cancel-link styles removed: Apple cancel subscription prompt no longer shown */
.lc2-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #6B6B70;
    background-color: #0A0A0F;
}

.lc2-root {
    min-height: 100vh;
    background-color: #0A0A0F;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.lc2-main {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===== Step 1: Intro ===== */
.lc2-intro {
    padding: 44px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.lc2-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lc2-label {
    font-size: 16px;
    font-weight: 600;
    color: #8A8A8E;
    letter-spacing: 0.5px;
}

.lc2-hero-title {
    font-size: 27px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.3;
}

.lc2-explainer {
    font-size: 12px;
    color: #8A8A8E;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Confirm banner */
.lc2-confirm-banner {
    width: 100%;
    padding: 10px 16px;
    background: #2A1215;
    border: 1px solid #5C2A2E;
    border-radius: 10px;
    color: #F0A0A0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Info card */
.lc2-info-card {
    width: 100%;
    background: #161A22;
    border: 1px solid #2A3038;
    border-radius: 16px;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lc2-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lc2-info-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lc2-info-header-label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

.lc2-period-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.lc2-period-badge.monthly {
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.12);
}

.lc2-period-badge.yearly {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.12);
}

.lc2-info-credits {
    font-size: 18px;
    font-weight: 800;
    color: #FAFAF9;
}

.lc2-info-divider {
    height: 1px;
    background: #1E2530;
}

.lc2-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc2-info-label {
    font-size: 13px;
    color: #6B7280;
}

.lc2-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.lc2-info-discount {
    font-size: 18px;
    font-weight: 800;
    color: #FF8C5A;
    letter-spacing: -0.5px;
}

/* Migration offer row (no residual) */
.lc2-offer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 4px;
}

.lc2-offer-badge {
    font-size: 24px;
    line-height: 1;
    animation: lc2-gift-pulse 2s ease-in-out infinite;
}

.lc2-offer-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc2-offer-title {
    font-size: 14px;
    font-weight: 700;
    color: #FF8C5A;
}

.lc2-offer-desc {
    font-size: 12px;
    color: #8A8A8E;
    line-height: 1.4;
}

.lc2-offer-desc strong {
    color: #FF8C5A;
    font-weight: 800;
}

.lc2-info-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lc2-info-amount {
    font-size: 32px;
    font-weight: 800;
    color: #00DC82;
    letter-spacing: -1.5px;
    line-height: 1;
    animation: lc2-glow-pulse 2.5s ease-in-out infinite, lc2-amount-pop 0.5s ease-out 0.3s both;
}

@keyframes lc2-amount-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.lc2-credit-note {
    font-size: 11px;
    font-weight: 500;
    color: rgba(74, 222, 128, 0.4);
    text-align: right;
}

/* CTA group */
.lc2-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lc2-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.lc2-teaser-text {
    font-size: 13px;
    font-weight: 600;
    color: #B0B0B5;
}

.lc2-teaser-pct {
    font-size: 14px;
    font-weight: 800;
    color: #FF8C5A;
}

.lc2-gift-badge {
    font-size: 16px;
    line-height: 1;
    animation: lc2-gift-pulse 2s ease-in-out infinite;
}

@keyframes lc2-gift-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.lc2-cta-red {
    width: 100%;
    height: 54px;
    border-radius: 26px;
    background: linear-gradient(180deg, #E8453C, #D63A5C);
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
}

.lc2-cta-red::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: lc2-shine 3s ease-in-out 1s infinite;
}

.lc2-cta-red:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.lc2-cta-red:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lc2-cta-red:disabled::after {
    display: none;
}

.lc2-cta-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #FFFFFF;
}

.lc2-cta-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.67);
}

.lc2-social-proof {
    font-size: 10px;
    font-weight: 500;
    color: #4A4A50;
    text-align: center;
    margin: 0;
}

/* ===== Step 2: Select ===== */
.lc2-select {
    padding: 16px 20px 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Top bar */
.lc2-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lc2-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #FAFAF9;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.lc2-back:active {
    opacity: 0.6;
}

.lc2-credit-badge {
    padding: 6px 12px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 6px;
    color: #4ADE80;
    font-size: 12px;
    font-weight: 600;
}

/* Tab switcher */
.lc2-tabs {
    display: flex;
    background: #16161F;
    border-radius: 10px;
    padding: 3px;
    height: 36px;
}

.lc2-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    background: none;
    color: #6B6B70;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lc2-tab.active {
    background: #252535;
    color: #FFFFFF;
    font-weight: 600;
}

.lc2-tab-save {
    font-size: 10px;
    font-weight: 800;
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Billing note */
.lc2-billing-note {
    font-size: 12px;
    color: #6B6B70;
    margin-top: -4px;
    line-height: 1.4;
}

.lc2-billing-discount {
    color: #4ADE80;
    font-weight: 600;
}

/* Plan cards */
.lc2-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc2-card {
    position: relative;
    background: #1A1A1F;
    border: 2px solid #1E1E24;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
    cursor: pointer;
}

.lc2-card:active {
    opacity: 0.5;
}

.lc2-card.selected {
    opacity: 1;
    border-color: #FF6B35;
    padding: 14px 16px;
    gap: 8px;
}

/* Card info row */
.lc2-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc2-card-credits {
    font-size: 14px;
    font-weight: 600;
    color: #FAFAF9;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.lc2-card.selected .lc2-card-credits {
    font-size: 15px;
}

.lc2-card-bonus {
    color: #4ADE80;
    font-weight: 700;
}

.lc2-card-credits-unit {
    font-size: 11px;
    font-weight: 500;
    color: #6B6B70;
}

.lc2-card-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    color: #9898A6;
    background: rgba(150, 150, 160, 0.12);
    margin-left: 2px;
}

.lc2-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.lc2-card-discount {
    font-size: 11px;
    font-weight: 800;
    color: #FF8C5A;
    background: #3D1F0F;
    padding: 2px 8px;
    border-radius: 5px;
    align-self: center;
}

.lc2-card-price-value {
    font-size: 16px;
    font-weight: 800;
    color: #4ADE80;
}

.lc2-card.selected .lc2-card-price-value {
    font-size: 18px;
}

.lc2-card-price-period {
    font-size: 11px;
    color: #6B6B70;
}

.lc2-card.selected .lc2-card-price-period {
    font-size: 12px;
}

/* Breakdown */
.lc2-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #1E1E22;
}

.lc2-bd-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6B6B70;
}

.lc2-bd-row.discount {
    color: #4ADE80;
}

.lc2-bd-row.total {
    font-weight: 700;
    color: #FAFAF9;
    font-size: 12px;
    padding-top: 6px;
    border-top: 1px solid #1E1E22;
    margin-top: 2px;
}

/* Sticky bottom */
.lc2-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 28px;
    background: linear-gradient(180deg, rgba(10,10,15,0) 0%, #0A0A0F 15%, #0A0A0F 100%);
}

.lc2-sticky-inner {
    max-width: 430px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lc2-sticky-inner .lc2-cta-btn {
    margin-top: 0;
}

.lc2-sticky-inner .lc2-renew-note {
    margin-top: -4px;
}

/* Bonus pill */
.lc2-bonus-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.lc2-bonus-emoji {
    font-size: 16px;
}

.lc2-bonus-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lc2-bonus-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc2-bonus-num-badge {
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
    background: #D97706;
    padding: 2px 10px;
    border-radius: 6px;
    letter-spacing: -0.5px;
    animation: lc2-bonus-pop 0.35s ease-out;
}

.lc2-bonus-label {
    font-size: 12px;
    font-weight: 600;
    color: #C9943F;
}

.lc2-bonus-sub {
    font-size: 10px;
    font-weight: 500;
    color: #6B6B70;
}

.lc2-bonus-sub .lc2-bonus-limited {
    color: #FF8A80;
    font-weight: 600;
}

/* CTA button (step 2) */
.lc2-cta-btn {
    width: 100%;
    height: 54px;
    border-radius: 26px;
    background: #E8453C;
    border: none;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.lc2-cta-btn::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    animation: lc2-shine 3s ease-in-out 1s infinite;
}

.lc2-cta-btn:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.lc2-cta-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lc2-cta-btn:disabled::after {
    display: none;
}

.lc2-renew-note {
    text-align: center;
    font-size: 11px;
    color: #6B6B70;
}

/* ===== Animations ===== */
@keyframes lc2-shine {
    0% { left: -30%; }
    60% { left: 110%; }
    100% { left: 110%; }
}

@keyframes lc2-glow-pulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 220, 130, 0.15);
    }
    50% {
        text-shadow: 0 0 18px rgba(0, 220, 130, 0.4), 0 0 40px rgba(0, 220, 130, 0.12);
    }
}

/* Fade-in-up */
.lc2-anim-up {
    opacity: 0;
    transform: translateY(18px);
    animation: lc2-fade-up 0.5s ease-out forwards;
}

.lc2-anim-d1 { animation-delay: 0.08s; }
.lc2-anim-d2 { animation-delay: 0.16s; }
.lc2-anim-d3 { animation-delay: 0.24s; }
.lc2-anim-d4 { animation-delay: 0.36s; }

@keyframes lc2-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lc2-bonus-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Skip link (go to picplus.ai) ===== */
.lc2-skip-link {
    display: block;
    margin: 8px auto 0;
    padding: 4px 0;
    background: none;
    border: none;
    color: #A1A1AA;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.lc2-skip-link:hover {
    color: #D4D4D8;
}

.lc2-skip-link-highlight {
    color: #E4E4E7;
}
.lastcall-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #6B6B70;
    background-color: #0B0B0E;
}

.lastcall-root {
    min-height: 100vh;
    background-color: #09090B;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background ambient glow */
.lastcall-root::before,
.lastcall-root::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

.lastcall-root::before {
    width: 200px;
    height: 200px;
    background: rgba(124, 58, 237, 0.08);
    top: -60px;
    right: -40px;
}

.lastcall-root::after {
    width: 160px;
    height: 160px;
    background: rgba(255, 107, 61, 0.05);
    bottom: 100px;
    left: -60px;
}

.lastcall-main {
    position: relative;
    z-index: 1;
}

.lastcall-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 20px 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Warning / Error State */
.lastcall-warning {
    text-align: center;
    padding: 16px 0 4px;
}

.lastcall-warning-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.lastcall-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    color: #FAFAF9;
    line-height: 1.3;
}

.lastcall-subtitle {
    font-size: 13px;
    color: #8A8A8E;
    margin: 0;
    line-height: 1.6;
}

/* CTA Button */
.lastcall-cta {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: linear-gradient(135deg, #FF6B3D, #FF3575);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.lastcall-cta::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    animation: lc-shine 3s ease-in-out 1s infinite;
}

.lastcall-cta:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.lastcall-cta:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lastcall-cta:disabled::after {
    display: none;
}

/* ===== Step 1: Intro ===== */
.lc-intro {
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 44px 24px 32px;
}

/* Title group */
.lc-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lc-label {
    font-size: 16px;
    font-weight: 600;
    color: #8A8A8E;
    letter-spacing: 0.5px;
}

.lc-hero-title {
    font-size: 27px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.3;
}

/* Explainer */
.lc-explainer {
    font-size: 12px;
    color: #8A8A8E;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Warning banner */
.lc-warning-banner {
    width: 100%;
    padding: 10px 16px;
    background: #2A1215;
    border: 1px solid #5C2A2E;
    border-radius: 10px;
    color: #F0A0A0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Subscription info card */
.lc-info-card {
    width: 100%;
    background: #161A22;
    border: 1px solid #2A3038;
    border-radius: 16px;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-info-label {
    font-size: 13px;
    color: #6B7280;
}

.lc-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.lc-info-divider {
    height: 1px;
    background: #1E2530;
}

.lc-credit-note {
    font-size: 11px;
    font-weight: 500;
    color: rgba(74, 222, 128, 0.4);
    text-align: right;
}

/* Discount hero (no-credit variant) */
.lc-discount-hero {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    text-align: center;
    background: linear-gradient(135deg, #FF6B3D, #FF3575);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* CTA group */
.lc-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lc-gift-badge {
    font-size: 16px;
    line-height: 1;
    animation: lc-gift-pulse 2s ease-in-out infinite;
}

.lc-teaser-text {
    font-size: 13px;
    font-weight: 600;
    color: #B0B0B5;
}

.lc-teaser-pct {
    font-size: 14px;
    font-weight: 800;
    color: #FF8C5A;
}

/* Red CTA button — two-level */
.lc-cta-red {
    width: 100%;
    height: 54px;
    border-radius: 26px;
    background: linear-gradient(180deg, #E8453C, #D63A5C);
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
}

.lc-cta-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #FFFFFF;
}

.lc-cta-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.67);
}

.lc-cta-red::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: lc-shine 3s ease-in-out 1s infinite;
}

.lc-cta-red:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.lc-cta-red:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lc-cta-red:disabled::after {
    display: none;
}

/* Social proof */
.lc-social-proof {
    font-size: 10px;
    font-weight: 500;
    color: #4A4A50;
    text-align: center;
    margin: 0;
}

/* Action card — purple (kept for backward compat) */
.lc-action-card {
    width: 100%;
    padding: 22px 28px;
    background: #16132A;
    border: 1.5px solid #4338CA;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.lc-action-icon {
    color: #A78BFA;
    line-height: 1;
}

.lc-action-text {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.55;
}

.lc-action-highlight {
    font-size: 15px;
    font-weight: 700;
    color: #E2D6FF;
    line-height: 1.3;
}

/* ===== Intro Animations ===== */

/* Fade-in-up base */
.lc-anim-up {
    opacity: 0;
    transform: translateY(18px);
    animation: lc-fade-up 0.5s ease-out forwards;
}

.lc-anim-d1 { animation-delay: 0.08s; }
.lc-anim-d2 { animation-delay: 0.16s; }
.lc-anim-d3 { animation-delay: 0.24s; }
.lc-anim-d4 { animation-delay: 0.36s; }

@keyframes lc-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* $45.50 green glow pulse */
@keyframes lc-glow-pulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 220, 130, 0.15);
    }
    50% {
        text-shadow: 0 0 18px rgba(0, 220, 130, 0.4), 0 0 40px rgba(0, 220, 130, 0.12);
    }
}

/* Amount pop-in */
.lc-info-amount {
    font-size: 32px;
    font-weight: 800;
    color: #00DC82;
    letter-spacing: -1.5px;
    line-height: 1;
    animation: lc-glow-pulse 2.5s ease-in-out infinite, lc-amount-pop 0.5s ease-out 0.3s both;
}

@keyframes lc-amount-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* Teaser shimmer */
.lc-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.lc-teaser::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,140,90,0.12), transparent);
    transform: skewX(-15deg);
    animation: lc-teaser-shimmer 4s ease-in-out 2s infinite;
}

@keyframes lc-teaser-shimmer {
    0%   { left: -40%; opacity: 0; }
    15%  { opacity: 1; }
    50%  { left: 110%; opacity: 0; }
    100% { left: 110%; opacity: 0; }
}

/* Intro twinkle dots container */
.lc-intro-dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Gift emoji pulse */
@keyframes lc-gift-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== Step 2: Select ===== */
/* Credit applied badge */
.lc-credit-badge {
    align-self: flex-start;
    padding: 6px 12px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 6px;
    color: #4ADE80;
    font-size: 12px;
    font-weight: 600;
}

/* Top bar */
.lc-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 4px;
}

.lc-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #FAFAF9;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.lc-back:active {
    opacity: 0.6;
}

.lc-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #FAFAF9;
    text-align: center;
    position: relative;
}


.lc-title-accent {
    background: linear-gradient(135deg, #FF6B3D, #FF3575);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Plan Card */
.lc-card {
    position: relative;
    background: #1A1A1F;
    border: 2px solid #1E1E24;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
    opacity: 0.55;
}

.lc-card.selected {
    opacity: 1;
    background: #1A1A1F;
    border-color: var(--card-accent, #2A2A2E);
    box-shadow: 0 0 20px -4px var(--card-glow, rgba(255,255,255,0.1)), 0 0 40px -8px var(--card-glow-soft, rgba(255,255,255,0.05));
    animation: lc-card-glow 3s ease-in-out infinite;
}

/* Card Top: icon + name + tag + discount — all one line */
.lc-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-tier-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #2A2A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.lc-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #FAFAF9;
    transition: color 0.2s;
}

.lc-card:not(.selected) .lc-card-name {
    color: #8A8A8E;
}

.lc-card:not(.selected) .lc-card-hero {
    color: #8A8A8E;
}

.lc-card:not(.selected) .lc-discount-tag {
    opacity: 0.6;
}

.lc-card-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.lc-card-tag.current {
    color: #818CF8;
    background: rgba(99, 102, 241, 0.12);
}

.lc-discount-tag {
    font-size: 12px;
    font-weight: 800;
    color: #4ADE80;
    background: #14532D;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Price */
.lc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lc-card-original {
    font-size: 13px;
    color: #8B4444;
    text-decoration: line-through;
}

.lc-card-hero {
    font-size: 26px;
    font-weight: 800;
    color: #FAFAF9;
    letter-spacing: -1px;
    line-height: 1;
}

.lc-card-period {
    font-size: 13px;
    color: #6B6B70;
}

.lc-cycle-note {
    font-size: 11px;
    color: #4A4A50;
}

/* Features */
.lc-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding-top: 10px;
    border-top: 1px solid #1E1E22;
}

.lc-card-feat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #8A8A8E;
}

.lc-feat-check {
    color: #4ADE80;
    font-size: 10px;
}

/* Breakdown */
.lc-card-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #1E1E22;
}

.lc-bd-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6B6B70;
}

.lc-bd-row.discount { color: #4ADE80; }
.lc-bd-row.credit { color: #4ADE80; }

.lc-bd-row.total {
    font-weight: 700;
    color: #FAFAF9;
    font-size: 12px;
    padding-top: 6px;
    border-top: 1px solid #1E1E22;
    margin-top: 2px;
}

/* Card button wrapper */
.lc-card-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    color: inherit;
}

/* Renew note */
.lc-renew-note {
    text-align: center;
    font-size: 11px;
    color: #3A3A40;
    margin: 4px 0 0;
}

/* Sticky bottom bar */
.lc-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #0B0B0E 70%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.lc-sticky-bottom .lastcall-cta {
    max-width: 390px;
}

/* ===== Non-Member Sale Page ===== */
.lc-nm {
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 20px 24px;
    position: relative;
}


/* Sale badge */
/* Badge wrapper — positions floating icons */
.lc-nm-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lc-nm-float-icon {
    position: absolute;
    font-size: 14px;
    animation: lc-float 2.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}
.lc-nm-float-tl { top: -14px; left: -12px; animation-delay: 0s; color: #FBBF24; }
.lc-nm-float-tr { top: -10px; right: -14px; animation-delay: 0.4s; color: #A855F7; }
.lc-nm-float-bl { bottom: -8px; left: 4px; animation-delay: 0.8s; color: #FF6B3D; }

@keyframes lc-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-6px) scale(1.15); opacity: 1; }
}

.lc-nm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(255, 107, 61, 0.25), rgba(255, 53, 117, 0.25));
    border: 1.5px solid rgba(255, 107, 61, 0.5);
    box-shadow: 0 0 20px rgba(255, 107, 61, 0.15), 0 0 40px rgba(255, 53, 117, 0.08);
}

.lc-nm-badge-flame {
    font-size: 13px;
    line-height: 1;
}

.lc-nm-badge-text {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #FF6B3D, #FF3575);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero wrap — stacked layout */
.lc-nm-hero-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lc-nm-hero {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.3;
    color: #FAFAF9;
    text-align: center;
}

.lc-nm-hero-price {
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #FBBF24 0%, #FF6B3D 50%, #FF3575 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: baseline;
}

.lc-nm-hero-period {
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0;
    opacity: 0.7;
    margin-left: 2px;
}

/* Subtitle + FOMO */
.lc-nm-sub-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lc-nm-sub {
    font-size: 13px;
    font-weight: 500;
    color: #A1A1AA;
    margin: 0;
    line-height: 1.5;
}

/* Countdown bar */
.lc-nm-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 100%;
    justify-content: center;
}

.lc-nm-countdown-icon {
    font-size: 16px;
    line-height: 1;
    animation: lc-pulse 1.5s ease-in-out infinite;
}

@keyframes lc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.lc-nm-countdown-label {
    font-size: 12px;
    font-weight: 600;
    color: #FBBF24;
    letter-spacing: 0.3px;
}

.lc-nm-countdown-digits {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lc-nm-cd-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #FB923C;
    min-width: 28px;
    text-align: center;
    letter-spacing: 1px;
}

.lc-nm-cd-sep {
    font-size: 14px;
    font-weight: 800;
    color: #FB923C;
    opacity: 0.6;
}

/* Compact plan cards */
.lc-nm-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Base compact card (weekly / super) */
.lc-nm-card {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #1A1A1F;
    border: 2px solid #1E1E24;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.55;
    text-align: left;
    font-family: inherit;
    color: inherit;
    font-size: inherit;
}

.lc-nm-card.selected {
    opacity: 1;
    box-shadow: 0 0 20px -4px var(--card-glow, rgba(255,255,255,0.1)), 0 0 40px -8px var(--card-glow-soft, rgba(255,255,255,0.05));
    animation: lc-card-glow 3s ease-in-out infinite;
}

@keyframes lc-card-glow {
    0%, 100% { box-shadow: 0 0 20px -4px var(--card-glow, rgba(255,255,255,0.1)), 0 0 40px -8px var(--card-glow-soft, rgba(255,255,255,0.05)); }
    50% { box-shadow: 0 0 28px -2px var(--card-glow, rgba(255,255,255,0.15)), 0 0 52px -6px var(--card-glow-soft, rgba(255,255,255,0.08)); }
}

/* ---- Expanded selected card (any plan) ---- */
.lc-nm-card.lc-nm-card-expanded {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: linear-gradient(160deg, rgba(30, 19, 56, 0.6) 0%, #16132A 50%, rgba(26, 16, 40, 0.6) 100%);
    border-radius: 16px;
    padding: 18px 20px;
}

.lc-nm-card-expanded .lc-nm-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.lc-nm-card-expanded .lc-nm-card-icon svg {
    width: 20px;
    height: 20px;
}

.lc-nm-card-expanded .lc-nm-card-name {
    font-size: 18px;
}

.lc-nm-card-expanded .lc-nm-off-badge {
    margin-left: auto;
}

.lc-nm-card-expanded .lc-nm-off-badge span {
    font-size: 11px;
}

.lc-nm-card-expanded .lc-nm-price {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #FAFAF9;
    margin-left: 0;
}

.lc-nm-card-expanded .lc-nm-orig {
    font-size: 14px;
    color: #6B6B70;
}

.lc-nm-card-expanded .lc-nm-period {
    font-size: 14px;
    color: #6B6B70;
}


/* Compact card inner layout */
.lc-nm-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

/* Price pushed right on compact (unselected) cards */
.lc-nm-card:not(.lc-nm-card-expanded) .lc-nm-price {
    margin-left: auto;
    font-size: 18px;
    font-weight: 800;
}

.lc-nm-card:not(.lc-nm-card-expanded) .lc-nm-period {
    font-size: 11px;
}

.lc-nm-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #2A2A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.lc-nm-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #FAFAF9;
    transition: color 0.2s;
}

.lc-nm-card:not(.selected) .lc-nm-card-name {
    color: #8A8A8E;
}

.lc-nm-card-popular {
    font-size: 10px;
    font-weight: 700;
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.12);
    padding: 2px 7px;
    border-radius: 8px;
}

.lc-nm-off-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 107, 61, 0.15);
    border: 1px solid rgba(255, 107, 61, 0.3);
    flex-shrink: 0;
}

/* On expanded card, push off-badge right */
.lc-nm-card-expanded .lc-nm-off-badge {
    margin-left: auto;
}

.lc-nm-off-badge span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FF8A65;
}

.lc-nm-card:not(.selected) .lc-nm-off-badge {
    opacity: 0.6;
}

.lc-nm-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.lc-nm-price {
    font-size: 24px;
    font-weight: 800;
    color: #FAFAF9;
    letter-spacing: -0.5px;
    line-height: 1;
}

.lc-nm-card:not(.selected) .lc-nm-price {
    font-size: 20px;
    color: #8A8A8E;
}

.lc-nm-period {
    font-size: 12px;
    color: #6B6B70;
}

.lc-nm-orig {
    font-size: 12px;
    color: #6B6B70;
    text-decoration: line-through;
}

.lc-nm-cycle {
    font-size: 10px;
    color: #4A4A50;
}

/* Expanded card feature points */
.lc-nm-feats {
    display: flex;
    gap: 12px;
    padding-top: 4px;
}

.lc-nm-feat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #A1A1AA;
}

.lc-nm-feat-check {
    color: #4ADE80;
    font-size: 11px;
}

/* Feature bar */
.lc-nm-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 2px 0;
}

.lc-nm-feat-item {
    font-size: 11px;
    font-weight: 500;
    color: #6B6B70;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lc-nm-feat-icon {
    font-size: 12px;
    line-height: 1;
}

/* Non-member CTA — golden */
.lc-nm-cta-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.lc-nm-cta-gold {
    width: 100%;
    height: 54px;
    border-radius: 27px;
    background: linear-gradient(180deg, #FBBF24, #F59E0B);
    box-shadow: 0 8px 24px -4px rgba(251, 191, 36, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.1);
    border: none;
    color: #09090B;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.lc-nm-cta-gold::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: lc-shine 3s ease-in-out 1s infinite;
}

.lc-nm-cta-gold:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.lc-nm-cta-gold:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lc-nm-cta-gold:disabled::after {
    display: none;
}

/* Social proof — stars */
.lc-nm-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #4A4A50;
}

.lc-nm-stars {
    color: #FBBF24;
    font-size: 10px;
    letter-spacing: 1px;
}

/* Sparkle container — covers the whole non-member page */
.lc-nm-sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.lc-nm-sparkle {
    position: absolute;
    font-style: normal;
    animation: lc-confetti-fall linear infinite;
    opacity: 0;
    filter: blur(0.3px);
}

@keyframes lc-confetti-fall {
    0%   { transform: translateY(-20px) translateX(0) rotate(0deg) scale(0); opacity: 0; }
    5%   { opacity: 1; transform: translateY(0) translateX(0) rotate(15deg) scale(1); }
    25%  { transform: translateY(25vh) translateX(15px) rotate(120deg) scale(1); opacity: 0.9; }
    50%  { transform: translateY(50vh) translateX(-10px) rotate(240deg) scale(0.85); opacity: 0.7; }
    75%  { transform: translateY(75vh) translateX(12px) rotate(320deg) scale(0.6); opacity: 0.4; }
    100% { transform: translateY(105vh) translateX(-8px) rotate(400deg) scale(0.3); opacity: 0; }
}

/* Stationary twinkle dots */
.lc-nm-sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: lc-twinkle ease-in-out infinite;
}

@keyframes lc-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    50%      { opacity: 0.9; transform: scale(1.5); }
}

/* ===== Animations ===== */
@keyframes lc-shine {
    0% { left: -30%; opacity: 0; }
    20% { opacity: 1; }
    40% { left: 100%; opacity: 0; }
    100% { left: 100%; opacity: 0; }
}

/* ===== Skip link (go to picplus.ai) ===== */
.lc-skip-link {
    display: block;
    margin: 8px auto 0;
    padding: 4px 0;
    background: none;
    border: none;
    color: #A1A1AA;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.lc-skip-link:hover {
    color: #D4D4D8;
}

.lc-skip-link-highlight {
    color: #E4E4E7;
}

/* ===== Expand / collapse more plans ===== */
.lc-nm-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #6B6B70;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px;
    font-family: inherit;
    transition: color 0.2s;
}

.lc-nm-expand-btn:hover {
    color: #A1A1AA;
}

.lc-nm-expand-arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s;
}

.lc-nm-expand-arrow.open {
    transform: rotate(180deg);
}

/* Extra plans that appear on expand */
.lc-nm-extra-cards {
    gap: 8px;
}

/* Compact card style for Annual / Super in expanded area */
.lc-nm-card.lc-nm-card-compact {
    padding: 12px 14px;
    border-radius: 12px;
    opacity: 0.7;
    border-width: 1px;
}

.lc-nm-card.lc-nm-card-compact.selected {
    opacity: 1;
    border-width: 2px;
}
.tap-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #6B6B70;
    background-color: #0B0B0E;
}

.tap-shop-root {
    min-height: 100vh;
    background-color: #0B0B0E;
    padding: 24px 0 40px;
}

.tap-root {
    min-height: 100vh;
    background-color: #0B0B0E;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.tap-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Confetti */
.tap-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tap-confetti-piece {
    position: absolute;
    top: -10px;
    border-radius: 2px;
    animation: tap-confetti-fall linear forwards;
    opacity: 0.9;
}

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

/* Success Icon */
.tap-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.tap-icon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 213, 131, 0.13) 0%, rgba(50, 213, 131, 0.02) 100%);
}

.tap-icon-circle {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(180deg, #32D583, #059669);
    box-shadow: 0 8px 24px -4px rgba(50, 213, 131, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tap-icon-check {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

/* Message */
.tap-message {
    text-align: center;
}

.tap-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #FAFAF9;
}

.tap-subtitle {
    font-size: 14px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

.tap-subtitle strong {
    color: #FAFAF9;
}

/* Notice Card */
.tap-notice-card {
    width: 100%;
    background: rgba(255, 181, 71, 0.07);
    border: 1px solid rgba(255, 181, 71, 0.19);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tap-notice-title {
    font-size: 13px;
    font-weight: 600;
    color: #FFB547;
}

.tap-notice-desc {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 181, 71, 0.8);
    margin: 0;
}

.tap-notice-desc strong {
    color: #FFB547;
}

/* Bind Section */
.tap-bind-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tap-bonus-text {
    font-size: 13px;
    line-height: 1.5;
    color: #6B6B70;
    text-align: center;
    margin: 0;
}

.tap-bonus-text strong {
    color: #FAFAF9;
}

.tap-why-link {
    font-size: 12px;
    line-height: 1.5;
    color: #4A4A50;
    text-align: center;
    margin: 0;
}

.tap-why-link strong {
    color: #6B6B70;
}

.tap-bind-cta {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.3);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    font-family: inherit;
}

.tap-bind-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.tap-already-bound {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(50, 213, 131, 0.08);
    border: 1px solid rgba(50, 213, 131, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    color: #32D583;
    width: 100%;
}

.tap-bound-check {
    font-size: 18px;
    flex-shrink: 0;
}

.tap-web-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #6366F1;
    text-decoration: none;
    cursor: pointer;
}

.tap-web-link:active {
    opacity: 0.7;
}

.tap-web-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tap-back-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    height: 44px;
    padding: 0 24px;
    color: #FAFAF9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.tap-back-btn:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Form */
.tap-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tap-form-back {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #FAFAF9;
    cursor: pointer;
    padding: 4px;
}

.tap-form-back:active {
    opacity: 0.6;
}

.tap-bind-header {
    text-align: center;
    margin-bottom: 4px;
}

.tap-bind-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #FAFAF9;
}

.tap-bind-desc {
    font-size: 13px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

/* Why Bind Card */
.tap-why-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.tap-why-title {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(99, 102, 241, 0.8);
    margin: 0 0 8px;
}

.tap-why-item {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(250, 250, 249, 0.8);
    margin: 0;
}

.tap-why-item strong {
    color: #FAFAF9;
}

.tap-why-note {
    font-size: 11px;
    font-weight: 500;
    color: rgba(99, 102, 241, 0.7);
    margin: 6px 0 0;
}

.tap-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tap-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 250, 249, 0.5);
    margin-left: 4px;
}

.tap-input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    color: #FAFAF9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.tap-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.tap-input:disabled {
    opacity: 0.5;
}

.tap-resend-row {
    display: flex;
    justify-content: flex-end;
}

.tap-resend {
    background: none;
    border: none;
    color: #6366F1;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.tap-resend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tap-form-cta {
    width: 100%;
    height: 52px;
    border-radius: 26px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    font-family: inherit;
}

.tap-form-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.tap-form-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tap-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #6B6B70;
    background-color: #0B0B0E;
}

.tap-shop-root {
    min-height: 100vh;
    background-color: #0B0B0E;
    padding: 24px 0 40px;
}

.tap-root {
    min-height: 100vh;
    background-color: #0B0B0E;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.tap-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Confetti */
.tap-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tap-confetti-piece {
    position: absolute;
    top: -10px;
    border-radius: 2px;
    animation: tap-confetti-fall linear forwards;
    opacity: 0.9;
}

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

/* Success Icon */
.tap-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.tap-icon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 213, 131, 0.13) 0%, rgba(50, 213, 131, 0.02) 100%);
}

.tap-icon-circle {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(180deg, #32D583, #059669);
    box-shadow: 0 8px 24px -4px rgba(50, 213, 131, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tap-icon-check {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

/* Message */
.tap-message {
    text-align: center;
}

.tap-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #FAFAF9;
}

.tap-subtitle {
    font-size: 14px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

.tap-subtitle strong {
    color: #FAFAF9;
}

/* Notice Card */
.tap-notice-card {
    width: 100%;
    background: rgba(255, 181, 71, 0.07);
    border: 1px solid rgba(255, 181, 71, 0.19);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tap-notice-title {
    font-size: 13px;
    font-weight: 600;
    color: #FFB547;
}

.tap-notice-desc {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 181, 71, 0.8);
    margin: 0;
}

.tap-notice-desc strong {
    color: #FFB547;
}

/* Bind Section */
.tap-bind-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tap-bonus-text {
    font-size: 13px;
    line-height: 1.5;
    color: #6B6B70;
    text-align: center;
    margin: 0;
}

.tap-bonus-text strong {
    color: #FAFAF9;
}

.tap-why-link {
    font-size: 12px;
    line-height: 1.5;
    color: #4A4A50;
    text-align: center;
    margin: 0;
}

.tap-why-link strong {
    color: #6B6B70;
}

.tap-bind-cta {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.3);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    font-family: inherit;
}

.tap-bind-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.tap-already-bound {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(50, 213, 131, 0.08);
    border: 1px solid rgba(50, 213, 131, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    color: #32D583;
    width: 100%;
}

.tap-bound-check {
    font-size: 18px;
    flex-shrink: 0;
}

.tap-web-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #6366F1;
    text-decoration: none;
    cursor: pointer;
}

.tap-web-link:active {
    opacity: 0.7;
}

.tap-web-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tap-back-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    height: 44px;
    padding: 0 24px;
    color: #FAFAF9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.tap-back-btn:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Form */
.tap-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tap-form-back {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #FAFAF9;
    cursor: pointer;
    padding: 4px;
}

.tap-form-back:active {
    opacity: 0.6;
}

.tap-bind-header {
    text-align: center;
    margin-bottom: 4px;
}

.tap-bind-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #FAFAF9;
}

.tap-bind-desc {
    font-size: 13px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

/* Why Bind Card */
.tap-why-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.tap-why-title {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(99, 102, 241, 0.8);
    margin: 0 0 8px;
}

.tap-why-item {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(250, 250, 249, 0.8);
    margin: 0;
}

.tap-why-item strong {
    color: #FAFAF9;
}

.tap-why-note {
    font-size: 11px;
    font-weight: 500;
    color: rgba(99, 102, 241, 0.7);
    margin: 6px 0 0;
}

.tap-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tap-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 250, 249, 0.5);
    margin-left: 4px;
}

.tap-input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    color: #FAFAF9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.tap-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.tap-input:disabled {
    opacity: 0.5;
}

.tap-resend-row {
    display: flex;
    justify-content: flex-end;
}

.tap-resend {
    background: none;
    border: none;
    color: #6366F1;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.tap-resend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tap-form-cta {
    width: 100%;
    height: 52px;
    border-radius: 26px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    font-family: inherit;
}

.tap-form-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.tap-form-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Animations used by the email-bind and success steps (self-contained, no dependency on transfer.css) */
@keyframes t3-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes t3-border-glow {
    0%, 100% { opacity: 0.4; filter: blur(20px); transform: scale(0.95); }
    50% { opacity: 0.7; filter: blur(28px); transform: scale(1.05); }
}
@keyframes t3-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.t3-animate-gradient-flow {
    background-size: 200% 200%;
    animation: t3-gradient-flow 3s linear infinite;
}
.t3-animate-border-glow {
    animation: t3-border-glow 3s ease-in-out infinite;
}
.t3-shimmer-effect {
    position: relative;
    overflow: hidden;
}
.t3-shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: t3-shimmer 1.5s infinite;
}

.transfer3-page {
    min-height: 100dvh;
    background: #0a0416 url('/transfer-v2/background.png') center / cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.transfer3-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 75% at 50% -10%, rgba(255, 109, 199, 0.3) 0%, rgba(255, 109, 199, 0) 58%),
        radial-gradient(90% 70% at 10% 100%, rgba(133, 80, 255, 0.22) 0%, rgba(133, 80, 255, 0) 64%);
    pointer-events: none;
    z-index: 0;
}

.transfer3-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(4, 2, 10, 0.34) 100%);
    pointer-events: none;
    z-index: 0;
}

.transfer3-canvas {
    width: min(100vw, 602px);
    aspect-ratio: 602 / 1024;
    position: relative;
    overflow: hidden;
    will-change: transform;
    z-index: 1;
}

.transfer3-gallery {
    position: absolute;
    width: 58%;
    right: 1%;
    top: 18%;
    filter: saturate(1.06) contrast(1.03) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
    will-change: transform, opacity, filter;
    animation: transfer3-enter-gallery 860ms cubic-bezier(0.37, 0, 0.22, 1) both,
        transfer3-float-gallery 6.2s cubic-bezier(0.37, 0, 0.22, 1) 960ms infinite;
    cursor: pointer;
    transition:
        transform 220ms ease,
        filter 220ms ease,
        z-index 160ms ease;
}

.transfer3-hero-image {
    position: absolute;
    width: 65.8%;
    left: 4%;
    top: 6.5%;
    z-index: 2;
    filter: saturate(1.06) contrast(1.05) drop-shadow(0 20px 38px rgba(0, 0, 0, 0.42));
    will-change: transform, opacity, filter;
    animation: transfer3-enter-hero 780ms cubic-bezier(0.37, 0, 0.22, 1) both,
        transfer3-float-hero 4.8s cubic-bezier(0.37, 0, 0.22, 1) 840ms infinite;
    cursor: pointer;
    transition:
        transform 220ms ease,
        filter 220ms ease,
        z-index 160ms ease;
}

.transfer3-feature-active {
    z-index: 3;
    transform: translate3d(0, -2px, 0) scale(1.02);
    filter:
        saturate(1.08)
        contrast(1.05)
        drop-shadow(0 0 0.6px #ef9bff)
        drop-shadow(0 0 4px rgba(228, 112, 255, 0.46))
        drop-shadow(0 24px 46px rgba(0, 0, 0, 0.48));
}

.transfer3-feature-inactive {
    z-index: 1;
    transform: translate3d(0, 0, 0) scale(0.98);
    filter: saturate(1) contrast(1) opacity(0.95) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.transfer3-swap-image.transfer3-feature-inactive {
    filter: saturate(1) contrast(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
    opacity: 1;
}

.transfer3-swap-image.transfer3-feature-active {
    opacity: 1;
}

.transfer3-diagonal-label {
    position: absolute;
    left: 15.2%;
    top: 11.2%;
    z-index: 3;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(18, 12, 34, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: clamp(11px, 2.2vw, 13px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #ffffff;
    -webkit-text-stroke: 0;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.58),
        0 2px 8px rgba(0, 0, 0, 0.42);
    transform: rotate(-12deg);
    pointer-events: none;
}

.transfer3-panel-bg {
    position: absolute;
    left: 0;
    top: 69.1%;
    width: 100%;
    z-index: 3;
    filter: drop-shadow(0 -10px 30px rgba(0, 0, 0, 0.28));
    opacity: 0;
    pointer-events: none;
}

.transfer3-icon-webonly {
    position: absolute;
    left: 0;
    right: 0;
    top: 61.2%;
    width: max-content;
    margin-inline: auto;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    will-change: transform, opacity, filter;
    animation: transfer3-enter-logo 760ms cubic-bezier(0.37, 0, 0.22, 1) 220ms both,
        transfer3-float-logo 3.6s cubic-bezier(0.37, 0, 0.22, 1) 1.12s infinite;
}

.transfer3-logo-img {
    width: clamp(52px, 13vw, 62px);
    height: clamp(52px, 13vw, 62px);
    object-fit: contain;
    flex: 0 0 auto;
}

.transfer3-icon-webonly-text {
    margin: 0;
    font-size: clamp(18px, 4.4vw, 24px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.58),
        0 2px 8px rgba(0, 0, 0, 0.42);
}

.transfer3-title {
    position: absolute;
    width: 73.9%;
    left: 13.0%;
    top: 77.8%;
    z-index: 4;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
    will-change: transform, opacity, filter;
    animation: transfer3-enter-title 820ms cubic-bezier(0.37, 0, 0.22, 1) 120ms both;
}

.transfer3-panel-copy {
    position: absolute;
    left: 10.8%;
    right: 10.8%;
    top: 85.4%;
    z-index: 4;
    text-align: center;
    color: #fff;
    animation: transfer3-enter-title 820ms cubic-bezier(0.37, 0, 0.22, 1) 120ms both;
}

.transfer3-panel-label {
    margin: 0 0 8px;
    text-align: center;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.38em;
    color: rgba(255, 108, 133, 0.9);
}

.transfer3-feature-copy {
    position: relative;
    padding: 2px 2px 1px;
}

.transfer3-panel-card-animated {
    animation: transfer3-feature-fade 320ms ease-out;
}

.transfer3-feature-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: clamp(17px, 3.6vw, 22px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: transparent;
    background-image: linear-gradient(92deg, #b15fff 0%, #ff8a6b 54%, #ffd66e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 18px rgba(186, 117, 255, 0.28);
}

.transfer3-web-only-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(90deg, #ff477e 0%, #ff7a45 70%, #ffb24a 100%);
    vertical-align: middle;
    box-shadow: 0 0 12px rgba(255, 95, 105, 0.36);
}

.transfer3-feature-subtitle {
    margin: 5px auto 0;
    max-width: 88%;
    font-size: clamp(11px, 2vw, 13px);
    line-height: 1.32;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 0 10px rgba(123, 72, 255, 0.22);
}

.transfer3-cta {
    position: absolute;
    left: 9.5%;
    top: calc(80.6% - 60px);
    width: 81%;
    height: 4.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(98deg, #8e4dff 0%, #c95fff 42%, #ff6e56 100%);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition:
        transform 0.24s cubic-bezier(0.37, 0, 0.22, 1),
        opacity 0.2s ease,
        filter 0.14s ease,
        box-shadow 0.2s ease;
    will-change: transform, opacity;
    isolation: isolate;
    animation: transfer3-enter-cta 860ms cubic-bezier(0.37, 0, 0.22, 1) 210ms both;
}

.transfer3-cta::before {
    content: '';
    position: absolute;
    inset: -8%;
    border-radius: 999px;
    background: linear-gradient(95deg, rgba(155, 95, 255, 0.55), rgba(255, 108, 91, 0.7));
    filter: blur(18px);
    opacity: 0.58;
    z-index: -1;
    pointer-events: none;
    animation: transfer3-cta-glow 2.4s cubic-bezier(0.37, 0, 0.22, 1) infinite;
}

.transfer3-cta::after {
    content: '';
    position: absolute;
    left: -26%;
    top: 0;
    width: 40%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.26) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    animation: transfer3-cta-shine 2.6s ease-in-out 0.8s infinite;
}

.transfer3-cta:active {
    transform: scale(0.962);
    filter: brightness(1.08) saturate(1.06);
}

.transfer3-cta:not(:disabled):active .transfer3-cta-text {
    animation: transfer3-cta-press-flash 200ms ease-out;
}

.transfer3-cta:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 26px rgba(102, 38, 255, 0.32), 0 8px 22px rgba(255, 98, 97, 0.24);
}

.transfer3-cta:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.transfer3-cta-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(18px, 4.7vw, 24px);
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    text-align: center;
    pointer-events: none;
}

@keyframes transfer3-enter-hero {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(0.986);
        filter: blur(1.6px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes transfer3-enter-gallery {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.984);
        filter: blur(1.4px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes transfer3-enter-logo {
    from {
        opacity: 0;
        transform: translate3d(0, 9px, 0) scale(0.95);
        filter: blur(1.2px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes transfer3-enter-title {
    from {
        opacity: 0;
        transform: translate3d(0, 7px, 0);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes transfer3-enter-cta {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.985);
        filter: blur(1.2px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes transfer3-float-hero {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -5px, 0);
    }
}

@keyframes transfer3-float-gallery {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, 3px, 0);
    }
}

@keyframes transfer3-float-logo {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -3px, 0);
    }
}

@keyframes transfer3-cta-glow {
    0%,
    100% {
        opacity: 0.42;
    }
    50% {
        opacity: 0.72;
    }
}

@keyframes transfer3-cta-press-flash {
    0% {
        filter: brightness(1.15) saturate(1.04);
    }
    100% {
        filter: brightness(1) saturate(1);
    }
}

@keyframes transfer3-cta-shine {
    0% {
        transform: translateX(0) skewX(-20deg);
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    42% {
        transform: translateX(255%) skewX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateX(255%) skewX(-20deg);
        opacity: 0;
    }
}

@keyframes transfer3-feature-fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .transfer3-gallery,
    .transfer3-hero-image,
    .transfer3-icon-webonly,
    .transfer3-title,
    .transfer3-panel-copy,
    .transfer3-cta,
    .transfer3-cta::before,
    .transfer3-cta::after {
        animation: none !important;
    }
}

@media (min-width: 768px) {
    .transfer3-page {
        align-items: center;
    }

    .transfer3-canvas {
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
    }
}
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes border-glow {
    0%,
    100% {
        opacity: 0.4;
        filter: blur(20px);
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        filter: blur(28px);
        transform: scale(1.05);
    }
}
@keyframes lightning-flicker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}
@keyframes flame-dance {
    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.9;
    }
    50% {
        transform: scaleY(1.1);
        opacity: 1;
    }
}
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-gradient-flow {
    background-size: 200% 200%;
    animation: gradient-flow 3s linear infinite;
}
.animate-border-glow {
    animation: border-glow 3s ease-in-out infinite;
}
.animate-lightning {
    animation: lightning-flicker 1.5s ease-in-out infinite;
}
.animate-flame {
    animation: flame-dance 0.8s ease-in-out infinite;
}
.shimmer-effect {
    position: relative;
    overflow: hidden;
}
.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}
/* Warning icon pulse */
@keyframes warn-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 28px rgba(255, 204, 0, 0.9));
        transform: scale(1.08);
    }
}

/* Green border glow breathe */
@keyframes green-breathe {
    0%, 100% {
        box-shadow: 0 0 18px rgba(0, 255, 85, 0.15), 0 4px 4px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 85, 0.4), 0 0 80px rgba(0, 255, 85, 0.15), 0 4px 4px rgba(0, 0, 0, 0.25);
    }
}

/* CTA button glow pulse */
@keyframes cta-glow {
    0%, 100% {
        box-shadow: 0 4px 24px rgba(139, 61, 255, 0.35), 0 2px 8px rgba(255, 45, 120, 0.3);
    }
    50% {
        box-shadow: 0 4px 40px rgba(139, 61, 255, 0.6), 0 2px 20px rgba(255, 45, 120, 0.5);
    }
}

/* Red X badge shake (subtle) */
@keyframes x-shake {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-6deg); }
    96% { transform: rotate(6deg); }
}

.animate-warn-pulse {
    animation: warn-pulse 2s ease-in-out infinite;
}
.animate-green-breathe {
    animation: green-breathe 2.5s ease-in-out infinite;
}
.animate-cta-glow {
    animation: cta-glow 2s ease-in-out infinite;
}
.animate-x-shake {
    animation: x-shake 4s ease-in-out infinite;
}
.story-cast-mobile-page {
    --story-rose: #ff2a7a;
    --story-hot: #ff5e36;
    --story-pink: #ffb2d4;
    --story-violet: #de9cff;
    --story-gold: #ffb02e;
    --story-ink: #0b040f;
    --story-muted: #a08c9f;
    --story-card-bg: rgba(20, 8, 19, 0.72);
    --story-card-border: rgba(255, 112, 164, 0.42);
    --story-card-copy: rgba(255, 239, 247, 0.7);
    --story-card-muted: rgba(255, 239, 247, 0.5);
    --story-card-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48),
        inset 0 0 34px rgba(255, 101, 166, 0.05);
    --story-serif: "Playfair Display", "Didot", Georgia, "Times New Roman", serif;
    --story-sans: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --story-button: Montserrat, "Plus Jakarta Sans", Inter, sans-serif;
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    background: #07040a;
    color: #fff6fa;
    font-family: var(--story-sans);
}

.story-cast-mobile-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 2, 6, 0.2) 0%, rgba(4, 2, 6, 0.18) 42%, #07040a 100%),
        radial-gradient(circle at 55% 74%, rgba(255, 86, 153, 0.2), transparent 35%);
    pointer-events: none;
}

.story-cast-mobile-page--landing::after {
    background:
        linear-gradient(180deg, rgba(3, 2, 5, 0.22) 0%, rgba(3, 2, 5, 0.08) 42%, rgba(3, 2, 5, 0.88) 100%),
        linear-gradient(90deg, rgba(3, 2, 5, 0.08) 0%, rgba(3, 2, 5, 0.1) 42%, rgba(3, 2, 5, 0.76) 100%);
}

.story-cast-mobile-page--preview_generating::after {
    background:
        linear-gradient(180deg, rgba(7, 4, 10, 0.94) 0%, rgba(7, 4, 10, 0.34) 30%, rgba(7, 4, 10, 0.84) 100%),
        radial-gradient(circle at 55% 42%, rgba(255, 75, 155, 0.22), transparent 32%);
}

.story-cast-mobile-page--preview_ready::after {
    background:
        linear-gradient(180deg, rgba(3, 2, 5, 0.04) 0%, rgba(3, 2, 5, 0.03) 42%, rgba(3, 2, 5, 0.64) 100%),
        linear-gradient(90deg, rgba(3, 2, 5, 0.18) 0%, rgba(3, 2, 5, 0.02) 58%, rgba(3, 2, 5, 0.26) 100%);
}

.story-cast-mobile-page--player-watch::after,
.story-cast-mobile-page--player-end::after,
.story-cast-mobile-page--player-ready::after,
.story-cast-mobile-page--player-episode_generating::after {
    background: none;
}

.story-cast-mobile-media,
.story-cast-mobile-watch-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #09050a;
}

.story-cast-mobile-media img,
.story-cast-mobile-media video,
.story-cast-mobile-watch-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.story-cast-mobile-page--landing .story-cast-mobile-media img,
.story-cast-mobile-page--landing .story-cast-mobile-media video,
.story-cast-mobile-page--preview_ready .story-cast-mobile-media img,
.story-cast-mobile-page--preview_ready .story-cast-mobile-media video {
    object-position: center center;
}

.story-cast-mobile-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: max(14px, env(safe-area-inset-top)) 18px 10px;
}

.story-cast-mobile-page--landing .story-cast-mobile-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: max(16px, env(safe-area-inset-top)) 18px 8px;
}

.story-cast-mobile-landing-logo {
    position: fixed;
    top: max(24px, env(safe-area-inset-top));
    left: 18px;
    z-index: 8;
    display: inline-grid;
    width: fit-content;
    gap: 5px;
    color: #fff4f7;
    font-family: var(--story-serif);
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 0 18px rgba(255, 160, 196, 0.45);
}

.story-cast-mobile-landing-logo span {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
}

.story-cast-mobile-landing-logo small {
    color: rgba(255, 247, 250, 0.72);
    font-family: var(--story-sans);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
}

.story-cast-mobile-landing-logo svg {
    width: 13px;
    height: 13px;
    margin-top: 1px;
    color: var(--story-rose);
    filter: drop-shadow(0 0 8px var(--story-rose));
}

.story-cast-mobile-topbar .story-cast-mobile-landing-logo {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    justify-self: start;
}

.story-cast-mobile-landing-top-actions {
    position: fixed;
    top: max(24px, env(safe-area-inset-top));
    right: 14px;
    z-index: 8;
}

.story-cast-mobile-landing-top-actions > button:not(.story-cast-mobile-credits-button) {
    min-width: 74px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.story-cast-mobile-page--player-watch .story-cast-mobile-topbar,
.story-cast-mobile-page--player-end .story-cast-mobile-topbar,
.story-cast-mobile-page--player-ready .story-cast-mobile-topbar,
.story-cast-mobile-page--player-episode_generating .story-cast-mobile-topbar,
.story-cast-mobile-page--preview_generating .story-cast-mobile-topbar,
.story-cast-mobile-page--preview_ready .story-cast-mobile-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: max(18px, env(safe-area-inset-top)) 18px 8px;
}

.story-cast-mobile-icon-button,
.story-cast-mobile-top-actions button,
.story-cast-mobile-top-actions a {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 206, 225, 0.3);
    border-radius: 999px;
    background: rgba(10, 5, 13, 0.32);
    color: #fff3f8;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.story-cast-mobile-icon-button svg {
    width: 25px;
    height: 25px;
}

.story-cast-mobile-page--landing .story-cast-mobile-icon-button,
.story-cast-mobile-page--landing .story-cast-mobile-top-actions button,
.story-cast-mobile-page--landing .story-cast-mobile-top-actions a {
    min-width: 48px;
    min-height: 48px;
    border-color: rgba(255, 142, 169, 0.45);
    background: rgba(9, 8, 17, 0.55);
    box-shadow: 0 0 16px rgba(255, 94, 146, 0.18);
}

.story-cast-mobile-brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #fff6fa;
    font-family: var(--story-serif);
    font-size: 29px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 0 18px rgba(255, 193, 220, 0.42);
}

.story-cast-mobile-page--landing .story-cast-mobile-brand {
    font-size: clamp(30px, 8vw, 40px);
}

.story-cast-mobile-page--player-watch .story-cast-mobile-brand,
.story-cast-mobile-page--player-end .story-cast-mobile-brand,
.story-cast-mobile-page--player-episode_generating .story-cast-mobile-brand,
.story-cast-mobile-page--preview_generating .story-cast-mobile-brand,
.story-cast-mobile-page--preview_ready .story-cast-mobile-brand {
    font-family: var(--story-sans);
    font-size: 25px;
    font-weight: 700;
}

.story-cast-mobile-brand svg {
    width: 14px;
    height: 14px;
    color: var(--story-pink);
}

.story-cast-mobile-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.story-cast-mobile-top-actions button,
.story-cast-mobile-top-actions a {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
}

.story-cast-mobile-top-actions .story-cast-mobile-credits-button {
    display: inline-flex;
    min-width: auto;
    min-height: 40px;
    gap: 6px;
    padding: 0 12px;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: #8a7bff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.story-cast-mobile-top-actions .story-cast-mobile-assets-button {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.story-cast-mobile-top-actions .story-cast-mobile-assets-button svg {
    width: 19px;
    height: 19px;
}

.story-cast-mobile-page--player-watch .story-cast-mobile-top-actions a,
.story-cast-mobile-page--player-end .story-cast-mobile-top-actions a,
.story-cast-mobile-page--player-episode_generating .story-cast-mobile-top-actions a,
.story-cast-mobile-page--preview_generating .story-cast-mobile-top-actions a,
.story-cast-mobile-page--preview_ready .story-cast-mobile-top-actions a {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 10px;
}

.story-cast-mobile-page--player-watch .story-cast-mobile-top-actions .story-cast-mobile-assets-button,
.story-cast-mobile-page--player-end .story-cast-mobile-top-actions .story-cast-mobile-assets-button,
.story-cast-mobile-page--player-episode_generating
    .story-cast-mobile-top-actions
    .story-cast-mobile-assets-button,
.story-cast-mobile-page--preview_generating
    .story-cast-mobile-top-actions
    .story-cast-mobile-assets-button,
.story-cast-mobile-page--preview_ready .story-cast-mobile-top-actions .story-cast-mobile-assets-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
}

.story-cast-mobile-page--player-watch .story-cast-mobile-top-actions a svg,
.story-cast-mobile-page--player-end .story-cast-mobile-top-actions a svg,
.story-cast-mobile-page--player-episode_generating .story-cast-mobile-top-actions a svg,
.story-cast-mobile-page--preview_generating .story-cast-mobile-top-actions a svg,
.story-cast-mobile-page--preview_ready .story-cast-mobile-top-actions a svg {
    width: 16px;
    height: 16px;
}

.story-cast-mobile-coin {
    width: 14px;
    height: 14px;
    margin-right: 0;
    border-radius: 999px;
}

.story-cast-mobile-landing,
.story-cast-mobile-preview-ready,
.story-cast-mobile-preview-copy,
.story-cast-mobile-player-overlay,
.story-cast-mobile-assets {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 92px 24px calc(22px + env(safe-area-inset-bottom));
}

.story-cast-mobile-landing {
    min-height: 100svh;
    padding: 0;
}

.story-cast-mobile-story-copy span,
.story-cast-mobile-character-card > span,
.story-cast-mobile-landing-action > span,
.story-cast-mobile-ready-copy > span,
.story-cast-mobile-scene-labels span,
.story-cast-mobile-player-title span,
.story-cast-mobile-customize > span {
    color: #ff9fc9;
    font-size: 13px;
    font-weight: 700;
}

.story-cast-mobile-story-copy h1,
.story-cast-mobile-character-card h1,
.story-cast-mobile-landing-action h2,
.story-cast-mobile-ready-copy h1,
.story-cast-mobile-player-title h1,
.story-cast-mobile-customize h1 {
    margin: 8px 0 12px;
    color: #fff6fa;
    font-family: var(--story-serif);
    font-size: clamp(44px, 13vw, 64px);
    font-weight: 500;
    line-height: 0.98;
    text-shadow:
        0 0 18px rgba(255, 194, 219, 0.55),
        0 12px 34px rgba(0, 0, 0, 0.48);
}

.story-cast-mobile-story-copy p,
.story-cast-mobile-character-card p,
.story-cast-mobile-landing-action p,
.story-cast-mobile-ready-copy p,
.story-cast-mobile-status-list p,
.story-cast-mobile-player-title p {
    margin: 0;
    color: rgba(255, 226, 238, 0.82);
    font-size: 15px;
    line-height: 1.35;
}

.story-cast-mobile-character-card {
    display: contents;
}

.story-cast-mobile-character-card > span {
    position: absolute;
    top: 210px;
    right: 15px;
    z-index: 2;
    display: inline-flex;
    width: 135px;
    height: 18px;
    align-items: center;
    gap: 7px;
    color: #ffb5ca;
    font-size: 11px;
    font-weight: 700;
}

.story-cast-mobile-character-card > span::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 127, 168, 0.67);
}

.story-cast-mobile-character-card > span i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--story-rose);
    box-shadow: 0 0 12px var(--story-rose);
}

.story-cast-mobile-character-card h1 {
    position: absolute;
    top: 238px;
    right: 14px;
    z-index: 2;
    display: block;
    width: 210px;
    margin: 0;
    color: #fff6f8;
    font-family: var(--story-serif);
    font-size: 48px;
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.02em;
    text-align: right;
    text-shadow:
        0 0 17px rgba(255, 221, 231, 0.35),
        0 9px 27px rgba(0, 0, 0, 0.45);
}

.story-cast-mobile-character-card strong {
    position: absolute;
    top: 342px;
    right: 14px;
    z-index: 2;
    display: flex;
    width: 210px;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: #fff5f7;
    font-family: var(--story-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.story-cast-mobile-character-card strong svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--story-pink);
    stroke-width: 1.8;
}

.story-cast-mobile-character-card p {
    position: absolute;
    top: 372px;
    right: 14px;
    z-index: 2;
    display: block;
    width: 210px;
    margin: 0;
    color: rgba(255, 248, 250, 0.86);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
}

.story-cast-mobile-character-card p span {
    color: var(--story-rose);
}

.story-cast-mobile-landing-action {
    position: absolute;
    right: clamp(14px, 4vw, 20px);
    top: clamp(134px, 18svh, 164px);
    bottom: auto;
    left: auto;
    display: none;
    width: min(48vw, 180px);
    justify-items: end;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.story-cast-mobile-landing-action h2 {
    margin: 0;
    max-width: 180px;
    color: #fff7f9;
    font-family: var(--story-sans);
    font-size: clamp(35px, 10vw, 42px);
    font-weight: 800;
    line-height: 0.92;
    text-align: right;
    text-shadow:
        0 0 12px rgba(255, 116, 156, 0.82),
        0 0 28px rgba(255, 94, 141, 0.36),
        0 12px 30px rgba(0, 0, 0, 0.5);
}

.story-cast-mobile-landing-action p {
    position: relative;
    padding-top: 8px;
    color: #ffb5ca;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.24;
    text-align: right;
}

.story-cast-mobile-landing-action p::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 246, 250, 0.9));
}

.story-cast-mobile-landing > .story-cast-mobile-cast-card--landing {
    position: absolute;
    top: auto;
    right: 18px;
    bottom: calc(140px + env(safe-area-inset-bottom));
    left: auto;
    width: 188px;
}

.story-cast-mobile-landing-details {
    position: absolute;
    right: 22px;
    bottom: 124px;
    left: 22px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(160px, 1fr);
    align-items: end;
    gap: 12px;
}

.story-cast-mobile-keyword-list {
    position: absolute;
    top: 450px;
    bottom: auto;
    right: 12px;
    left: auto;
    display: grid;
    gap: 10px;
    justify-items: end;
    width: 166px;
    margin-top: 0;
}

.story-cast-mobile-keyword-list span {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255, 119, 166, 0.36);
    border-radius: 999px;
    background: rgba(12, 7, 14, 0.34);
    box-shadow:
        inset 0 0 10px rgba(255, 120, 171, 0.05),
        0 0 12px rgba(255, 42, 122, 0.12);
    color: rgba(255, 247, 250, 0.93);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.story-cast-mobile-keyword-list span:nth-child(1) {
    width: 96px;
}

.story-cast-mobile-keyword-list span:nth-child(2) {
    width: 120px;
}

.story-cast-mobile-keyword-list span:nth-child(3) {
    width: 132px;
}

.story-cast-mobile-keyword-list span:nth-child(4) {
    width: 166px;
}

.story-cast-mobile-keyword-list svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    filter: none;
    stroke-width: 1.9;
}

.story-cast-mobile-page--landing .story-cast-mobile-bottom-actions {
    right: 39px;
    bottom: calc(60px + env(safe-area-inset-bottom));
    left: 45px;
    gap: 8px;
}

.story-cast-mobile-page--landing .story-cast-mobile-primary {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    min-height: 66px;
    justify-items: center;
    padding: 0 20px;
    border-color: rgba(255, 159, 201, 0.96);
    background: rgba(90, 27, 42, 0.86);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 24px rgba(255, 110, 168, 0.64);
    font-family: var(--story-sans);
    font-size: 19px;
    font-weight: 800;
}

.story-cast-mobile-page--landing .story-cast-mobile-primary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-cast-mobile-page--landing .story-cast-mobile-primary svg:last-child {
    margin-left: 0;
}

.story-cast-mobile-page--landing .story-cast-mobile-sample-link {
    display: none;
}

.story-cast-mobile-keyword--gold svg {
    color: var(--story-gold);
}

.story-cast-mobile-keyword--violet svg {
    color: var(--story-violet);
}

.story-cast-mobile-keyword--rose svg {
    color: var(--story-rose);
}

.story-cast-mobile-bottom-actions {
    position: fixed;
    right: clamp(22px, 7.4vw, 32px);
    bottom: calc(clamp(22px, 8.3vw, 54px) + env(safe-area-inset-bottom));
    left: clamp(22px, 7.4vw, 32px);
    z-index: 9;
    display: grid;
    gap: 10px;
}

.story-cast-mobile-primary,
.story-cast-mobile-secondary {
    display: inline-flex;
    min-height: 54px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    color: #fff7fb;
    font: 700 16px / 1 var(--story-sans);
    text-decoration: none;
}

.story-cast-mobile-primary {
    min-height: clamp(60px, 15.2vw, 72px);
    padding: 0 clamp(20px, 7vw, 34px);
    border: 1px solid rgba(255, 217, 232, 0.78);
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.2), transparent 35%),
        linear-gradient(90deg, rgba(255, 92, 72, 0.95), rgba(242, 45, 126, 0.98));
    box-shadow:
        0 0 24px rgba(255, 105, 172, 0.72),
        0 18px 58px rgba(255, 45, 103, 0.38);
    font-family: var(--story-serif);
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 500;
}

.story-cast-mobile-primary svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.story-cast-mobile-primary span {
    min-width: 0;
}

.story-cast-mobile-primary:disabled {
    opacity: 0.58;
}

.story-cast-mobile-secondary {
    padding: 0 18px;
    border: 1px solid rgba(255, 142, 190, 0.44);
    background: rgba(17, 7, 20, 0.56);
    backdrop-filter: blur(16px);
}

.story-cast-mobile-sample-link {
    display: inline-flex;
    width: max-content;
    min-height: 34px;
    align-items: center;
    justify-self: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px dotted rgba(255, 142, 190, 0.7);
    background: transparent;
    color: #ff9fc9;
    font-family: var(--story-serif);
    font-size: 18px;
}

.story-cast-mobile-sample-link svg {
    width: 22px;
    height: 22px;
}

.story-cast-mobile-bottom-actions small,
.story-cast-mobile-bottom-actions em {
    justify-self: center;
    color: rgba(255, 226, 238, 0.74);
    font-size: 12px;
    font-style: normal;
}

.story-cast-mobile-scene-labels {
    display: grid;
    gap: 13px;
    margin-top: 48px;
}

.story-cast-mobile-scene-labels span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff0f6;
    font-family: var(--story-serif);
    font-size: 23px;
    font-weight: 500;
}

.story-cast-mobile-scene-labels i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--story-rose);
    box-shadow: 0 0 14px var(--story-rose);
}

.story-cast-mobile-scene-labels svg {
    width: 22px;
    height: 22px;
}

.story-cast-mobile-ready-copy {
    margin-top: 39svh;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-preview-ready {
    padding: 0 20px calc(20px + env(safe-area-inset-bottom));
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-scene-labels {
    display: none;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-ready-copy {
    position: absolute;
    right: 120px;
    bottom: calc(286px + env(safe-area-inset-bottom));
    left: 20px;
    margin: 0;
}

.story-cast-mobile-ready-copy h1 {
    max-width: 330px;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-ready-copy h1 {
    max-width: 270px;
    margin: 0;
    font-family: var(--story-sans);
    font-size: clamp(40px, 11vw, 46px);
    font-weight: 650;
    line-height: 0.96;
    text-shadow: 0 0 18px rgba(255, 184, 214, 0.5);
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-ready-copy p {
    margin-top: 10px;
    color: #ffe2ee;
    font-size: 15px;
    font-weight: 650;
}

.story-cast-mobile-ready-row {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(160px, 1fr);
    align-items: end;
    gap: 12px;
    margin-top: 16px;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-ready-row {
    position: absolute;
    right: 34px;
    bottom: calc(128px + env(safe-area-inset-bottom));
    display: block;
    width: 188px;
    margin: 0;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-checklist {
    display: none;
}

.story-cast-mobile-checklist {
    display: grid;
    gap: 10px;
}

.story-cast-mobile-checklist span {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: rgba(255, 238, 245, 0.92);
    font-family: var(--story-serif);
    font-size: 18px;
}

.story-cast-mobile-checklist svg {
    width: 28px;
    height: 28px;
    padding: 5px;
    border: 1px solid rgba(255, 183, 215, 0.76);
    border-radius: 50%;
    color: #fff4fa;
    filter: drop-shadow(0 0 8px rgba(255, 105, 172, 0.82));
}

.story-cast-mobile-cast-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 211, 228, 0.26);
    border-radius: 22px;
    background: rgba(255, 242, 248, 0.12);
    backdrop-filter: blur(18px);
}

.story-cast-mobile-cast-card div,
.story-cast-mobile-cast-card button {
    position: relative;
    display: grid;
    gap: 7px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff6fa;
    cursor: pointer;
    font: 500 13px / 1 var(--story-serif);
}

.story-cast-mobile-cast-card img {
    width: 64px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}

.story-cast-mobile-cast-card button img {
    box-shadow: 0 0 0 2px rgba(255, 166, 205, 0.72), 0 0 20px rgba(255, 105, 172, 0.68);
}

.story-cast-mobile-cast-switch {
    position: absolute;
    top: -6px;
    right: calc(50% - 38px);
    z-index: 2;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 211, 228, 0.72);
    border-radius: 50%;
    background: rgba(255, 105, 172, 0.92);
    box-shadow: 0 0 14px rgba(255, 105, 172, 0.42);
    color: #fff6fa;
}

.story-cast-mobile-cast-switch svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    stroke-width: 2.4;
}

.story-cast-mobile-cast-card--landing {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: clamp(8px, 2.8vw, 12px);
    padding: clamp(12px, 3.4vw, 16px);
    border-color: rgba(255, 206, 225, 0.54);
    border-radius: 18px;
    background: rgba(19, 11, 18, 0.72);
    box-shadow: 0 0 24px rgba(255, 91, 142, 0.24);
}

.story-cast-mobile-cast-card--landing img {
    width: clamp(52px, 14vw, 66px);
    border-radius: 13px;
}

.story-cast-mobile-cast-card--landing div,
.story-cast-mobile-cast-card--landing button {
    gap: 8px;
    font-size: clamp(12px, 3.05vw, 14px);
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-cast-card {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border-color: rgba(255, 184, 214, 0.4);
    border-radius: 20px;
    background: rgba(180, 136, 163, 0.46);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-cast-card img {
    width: 58px;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-cast-card div,
.story-cast-mobile-page--preview_ready .story-cast-mobile-cast-card button {
    font-family: var(--story-sans);
    font-size: 11px;
    font-weight: 650;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-cast-switch {
    top: -6px;
    right: calc(50% - 35px);
    width: 23px;
    height: 23px;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-bottom-actions {
    right: 20px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 20px;
    gap: 7px;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-primary {
    min-height: 64px;
    justify-content: flex-start;
    padding: 0 20px;
    border-color: rgba(255, 159, 201, 0.92);
    background: rgba(126, 40, 54, 0.86);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 24px rgba(255, 110, 168, 0.7);
    font-family: var(--story-sans);
    font-size: 18px;
    font-weight: 800;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-primary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-primary svg:last-child {
    margin-left: auto;
}

.story-cast-mobile-page--preview_ready .story-cast-mobile-bottom-actions small,
.story-cast-mobile-page--preview_ready .story-cast-mobile-bottom-actions em {
    font-size: 11px;
}

.story-cast-mobile-preview-copy {
    display: grid;
    align-items: end;
    padding-bottom: 160px;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-preview-copy {
    align-content: start;
    align-items: start;
    padding: clamp(198px, 25.5svh, 218px) 14px calc(28px + env(safe-area-inset-bottom));
}

.story-cast-mobile-status-list {
    display: grid;
    gap: 14px;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-status-list {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
        "kicker kicker"
        "title title"
        "ring steps"
        "note note";
    gap: 12px 16px;
    min-height: 244px;
    box-sizing: border-box;
    padding: 20px 18px 18px;
    border: 1px solid rgba(255, 142, 190, 0.32);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 95, 150, 0.16), transparent 44%),
        linear-gradient(135deg, rgba(255, 74, 143, 0.06), transparent 46%),
        rgba(18, 8, 18, 0.86);
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.5),
        0 0 34px rgba(255, 73, 148, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-status-list > span {
    grid-area: kicker;
    color: #ff9fc9;
    font-size: 12px;
    font-weight: 800;
}

.story-cast-mobile-status-list > strong {
    max-width: 300px;
    font-family: var(--story-serif);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-status-list > strong {
    grid-area: title;
    max-width: 310px;
    font-family: var(--story-serif);
    font-size: 31px;
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: 0;
}

.story-cast-mobile-status-list p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.story-cast-mobile-progress-ring {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            #ff9fc9 0 var(--story-cast-mobile-ring-progress, 1%),
            rgba(255, 145, 192, 0.2) var(--story-cast-mobile-ring-progress, 1%) 100%
        );
    color: #fff6fa;
    font-family: var(--story-sans);
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 0 22px rgba(255, 105, 172, 0.34);
}

.story-cast-mobile-progress-ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(87, 32, 58, 0.96);
}

.story-cast-mobile-progress-ring span {
    position: relative;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-progress-ring {
    grid-area: ring;
    overflow: hidden;
    width: 80px;
    height: 80px;
    align-self: center;
    background: radial-gradient(circle at center, rgba(32, 14, 26, 0.96) 0 55%, transparent 56%);
    box-shadow:
        0 0 24px rgba(255, 78, 143, 0.32),
        inset 0 0 30px rgba(0, 0, 0, 0.42);
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-progress-ring::before {
    inset: 8px;
    z-index: 1;
    border: 1px solid rgba(255, 120, 170, 0.28);
    background: transparent;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-progress-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: conic-gradient(
        var(--story-pink) var(--story-cast-mobile-ring-progress, 1%),
        rgba(255, 116, 172, 0.14) 0
    );
    animation: story-cast-progress-spin 1.35s linear infinite;
    -webkit-mask: radial-gradient(circle at center, transparent 0 55%, #000 56%);
    mask: radial-gradient(circle at center, transparent 0 55%, #000 56%);
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-progress-ring span {
    z-index: 2;
    color: #ffd5e7;
    font-family: var(--story-serif);
    font-size: 25px;
    font-weight: 500;
}

.story-cast-mobile-page--player-episode_generating .story-cast-mobile-progress-ring {
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(32, 14, 26, 0.96) 0 55%, transparent 56%);
}

.story-cast-mobile-page--player-episode_generating .story-cast-mobile-progress-ring::before {
    z-index: 1;
    border: 1px solid rgba(255, 120, 170, 0.28);
    background: transparent;
}

.story-cast-mobile-page--player-episode_generating .story-cast-mobile-progress-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: conic-gradient(
        var(--story-pink) var(--story-cast-mobile-ring-progress, 1%),
        rgba(255, 116, 172, 0.14) 0
    );
    animation: story-cast-progress-spin 1.35s linear infinite;
    -webkit-mask: radial-gradient(circle at center, transparent 0 55%, #000 56%);
    mask: radial-gradient(circle at center, transparent 0 55%, #000 56%);
}

.story-cast-mobile-page--player-episode_generating .story-cast-mobile-progress-ring span {
    z-index: 2;
}

.story-cast-mobile-preview-steps {
    grid-area: steps;
    display: grid;
    align-content: center;
    gap: 7px;
}

.story-cast-mobile-preview-steps p {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 32px;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 246, 250, 0.9);
    font-size: 11px;
    font-weight: 650;
}

.story-cast-mobile-preview-steps p:not(.is-complete) {
    color: rgba(255, 226, 238, 0.72);
}

.story-cast-mobile-preview-steps p > span {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px dashed rgba(255, 118, 169, 0.34);
    border-radius: 50%;
    background: rgba(22, 10, 20, 0.62);
}

.story-cast-mobile-preview-steps p > span svg {
    width: 13px;
    height: 13px;
}

.story-cast-mobile-preview-steps p em {
    min-width: 0;
    font-style: normal;
    white-space: nowrap;
}

.story-cast-mobile-preview-steps p strong {
    color: rgba(255, 247, 250, 0.48);
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
    text-transform: capitalize;
    white-space: nowrap;
}

.story-cast-mobile-preview-steps p.is-complete > span {
    border-style: solid;
    border-color: rgba(122, 240, 91, 0.66);
    color: #90ff78;
}

.story-cast-mobile-preview-steps p.is-active {
    border-color: rgba(255, 89, 149, 0.36);
    background: rgba(255, 75, 142, 0.09);
    color: #fff6fb;
}

.story-cast-mobile-preview-steps p.is-active > span {
    border-style: solid;
    border-color: rgba(255, 105, 160, 0.64);
    background: rgba(255, 82, 148, 0.12);
    box-shadow:
        inset 0 0 0 6px rgba(255, 82, 148, 0.12),
        0 0 0 rgba(255, 82, 148, 0);
}

.story-cast-mobile-preview-steps p.is-active > span::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--story-pink);
    box-shadow: 0 0 12px rgba(255, 105, 172, 0.78);
}

.story-cast-mobile-preview-steps p.is-active.has-next > span::before {
    content: "";
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    width: 0;
    height: 15px;
    border-left: 1px dashed rgba(255, 137, 184, 0.54);
    transform: translateX(-50%);
}

.story-cast-mobile-preview-steps p.is-active strong {
    color: var(--story-pink);
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-status-list small {
    grid-area: note;
    display: inline-flex;
    margin-top: 4px;
    align-items: center;
    gap: 8px;
    color: rgba(255, 247, 250, 0.58);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-status-list small svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--story-pink);
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-bottom-actions {
    position: static;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-secondary {
    min-height: 54px;
    justify-content: flex-start;
    padding: 0 16px;
    border-color: rgba(255, 142, 190, 0.36);
    border-radius: 22px;
    background: rgba(10, 5, 13, 0.56);
    font-size: 14px;
    font-weight: 800;
}

.story-cast-mobile-page--preview_generating .story-cast-mobile-secondary svg:last-child {
    margin-left: auto;
}

.story-cast-mobile-watch-video::after {
    content: none;
}

.story-cast-mobile-page--player-end .story-cast-mobile-watch-video video {
    opacity: 1;
}

.story-cast-mobile-play-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.34);
    color: #fff6fa;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}

.story-cast-mobile-play-toggle svg {
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

.story-cast-mobile-scrubber {
    position: absolute;
    right: 18px;
    bottom: calc(128px + env(safe-area-inset-bottom));
    left: 18px;
    z-index: 3;
    display: grid;
    gap: 7px;
    padding: 8px 4px 0;
    color: rgba(255, 246, 250, 0.92);
    pointer-events: auto;
}

.story-cast-mobile-scrubber-track {
    position: relative;
    display: block;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 18px rgba(255, 92, 150, 0.24);
}

.story-cast-mobile-scrubber-track::before {
    content: "";
    display: block;
    width: var(--story-cast-mobile-video-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9fc9, #f52d82);
}

.story-cast-mobile-scrubber-track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--story-cast-mobile-video-progress, 0%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff6fa;
    box-shadow: 0 0 14px rgba(255, 159, 201, 0.8);
    transform: translate(-50%, -50%);
}

.story-cast-mobile-scrubber input {
    position: absolute;
    top: -6px;
    right: 0;
    left: 0;
    width: 100%;
    height: 32px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.story-cast-mobile-scrubber small {
    justify-self: end;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.52);
}

.story-cast-mobile-now-playing-card {
    position: fixed;
    right: 16px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 7;
    display: grid;
    min-height: 114px;
    box-sizing: border-box;
    gap: 13px;
    padding: 16px 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(8, 4, 11, 0.72);
    color: #fff6fa;
    text-align: left;
    backdrop-filter: blur(16px);
}

.story-cast-mobile-now-playing-card span {
    color: rgba(255, 226, 238, 0.6);
    font-size: 12px;
    font-weight: 800;
}

.story-cast-mobile-now-playing-card strong {
    display: block;
    margin-top: 6px;
    color: #fff6fa;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.story-cast-mobile-now-playing-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 226, 238, 0.58);
    font-size: 12px;
    font-weight: 600;
}

.story-cast-mobile-now-playing-track {
    overflow: hidden;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.story-cast-mobile-now-playing-track span {
    display: block;
    width: var(--story-cast-mobile-play-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff744b, #f52d82);
}

.story-cast-mobile-now-playing-track i {
    display: none;
}

.story-cast-mobile-video-controls {
    position: absolute;
    right: 18px;
    bottom: 150px;
    left: 18px;
    z-index: 3;
    display: grid;
    gap: 9px;
}

.story-cast-mobile-video-controls input {
    width: 100%;
    accent-color: var(--story-pink);
}

.story-cast-mobile-video-controls div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
}

.story-cast-mobile-video-controls button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
}

.story-cast-mobile-player-overlay {
    pointer-events: none;
}

.story-cast-mobile-player-title {
    position: absolute;
    right: 24px;
    bottom: 228px;
    left: 24px;
}

.story-cast-mobile-player-title h1 {
    max-width: 330px;
    font-size: clamp(36px, 10vw, 54px);
}

.story-cast-mobile-generating-card {
    position: absolute;
    right: 24px;
    bottom: 210px;
    left: 24px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(255, 142, 190, 0.34);
    border-radius: 24px;
    background: rgba(18, 8, 19, 0.66);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.story-cast-mobile-generating-card strong {
    font-family: var(--story-serif);
    font-size: 28px;
    font-weight: 500;
}

.story-cast-mobile-generating-card span {
    color: rgba(255, 226, 238, 0.72);
}

.story-cast-mobile-finished-progress-shortcut {
    position: fixed;
    right: 28px;
    bottom: calc(255px + env(safe-area-inset-bottom));
    left: 28px;
    z-index: 9;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(255, 142, 190, 0.3);
    border-radius: 17px;
    background: rgba(0, 0, 0, 0.34);
    color: #fff6fa;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.story-cast-mobile-finished-progress-shortcut span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-cast-mobile-finished-progress-shortcut svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.story-cast-mobile-finished-panel {
    position: fixed;
    right: 16px;
    bottom: calc(210px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 9;
    display: grid;
    min-height: 212px;
    box-sizing: border-box;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 184, 214, 0.31);
    border-radius: 28px;
    background: rgba(18, 8, 18, 0.91);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(22px);
}

.story-cast-mobile-finished-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.story-cast-mobile-finished-header > span {
    color: #ff9fc9;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.story-cast-mobile-finished-header button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 184, 214, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 246, 250, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.story-cast-mobile-finished-header button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.story-cast-mobile-finished-panel h2,
.story-cast-mobile-finished-panel p {
    margin: 0;
}

.story-cast-mobile-finished-panel h2 {
    color: #fff6fa;
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
}

.story-cast-mobile-finished-panel p {
    color: rgba(255, 226, 238, 0.66);
    font-size: 13px;
    font-weight: 600;
}

.story-cast-mobile-finished-panel .story-cast-mobile-primary,
.story-cast-mobile-finished-panel .story-cast-mobile-secondary {
    min-height: 62px;
    margin-top: 8px;
    padding: 0 18px;
    font-family: var(--story-sans);
    font-size: 17px;
    font-weight: 800;
}

.story-cast-mobile-finished-panel .story-cast-mobile-primary {
    justify-content: flex-start;
}

.story-cast-mobile-finished-panel .story-cast-mobile-primary small {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 800;
}

.story-cast-mobile-finished-panel .story-cast-mobile-primary svg:last-child {
    display: none;
}

.story-cast-mobile-finished-panel .story-cast-auto-next {
    min-height: 56px;
    margin-top: 6px;
    padding: 8px 12px;
    border-color: rgba(255, 142, 190, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.story-cast-mobile-finished-panel .story-cast-auto-next span {
    color: rgba(255, 226, 238, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.story-cast-mobile-finished-panel .story-cast-countdown-ring {
    width: 42px;
    height: 42px;
}

.story-cast-mobile-finished-panel .story-cast-countdown-ring::before {
    inset: 5px;
}

.story-cast-mobile-finished-panel .story-cast-countdown-ring strong {
    font-size: 18px;
}

.story-cast-mobile-ready-panel .story-cast-mobile-finished-header {
    justify-content: flex-start;
}

.story-cast-mobile-customize {
    height: 100svh;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 96px 22px calc(132px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 92, 150, 0.18), transparent 38%),
        #08040a;
    overscroll-behavior: contain;
    scroll-padding: 120px 0 calc(180px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}

.story-cast-mobile-customize.is-keyboard-active {
    padding-bottom: calc(220px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(240px + env(safe-area-inset-bottom));
}

.story-cast-mobile-customize-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.story-cast-mobile-customize-kicker .story-cast-mobile-icon-button {
    min-width: 46px;
    min-height: 46px;
    border-color: rgba(255, 180, 214, 0.42);
    background: rgba(12, 6, 15, 0.5);
    box-shadow: 0 0 18px rgba(255, 105, 172, 0.16);
}

.story-cast-mobile-customize-kicker .story-cast-mobile-icon-button svg {
    width: 24px;
    height: 24px;
}

.story-cast-mobile-customize-kicker span {
    color: #ff9fc9;
    font-size: 13px;
    font-weight: 800;
}

.story-cast-mobile-twist-grid,
.story-cast-mobile-duration-row {
    display: grid;
    gap: 10px;
}

.story-cast-mobile-twist-grid button,
.story-cast-mobile-duration-row button,
.story-cast-mobile-customize textarea {
    box-sizing: border-box;
    border: 1px solid rgba(255, 142, 190, 0.3);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff5fa;
    font: 600 15px / 1.2 var(--story-sans);
}

.story-cast-mobile-twist-grid button {
    min-height: 48px;
    color: rgba(255, 246, 250, 0.78);
    font-weight: 800;
}

.story-cast-mobile-twist-grid button.is-selected,
.story-cast-mobile-duration-row button.is-selected {
    border-color: var(--story-pink);
    background:
        linear-gradient(90deg, rgba(255, 92, 72, 0.2), rgba(245, 45, 130, 0.22)),
        rgba(255, 255, 255, 0.07);
    color: #fff7fb;
    box-shadow:
        0 0 0 1px rgba(255, 194, 220, 0.2) inset,
        0 0 22px rgba(255, 105, 172, 0.28);
}

.story-cast-mobile-customize textarea {
    width: 100%;
    min-height: 120px;
    margin: 12px 0;
    padding: 16px;
    resize: vertical;
}

.story-cast-mobile-duration-row {
    grid-template-columns: repeat(3, 1fr);
}

.story-cast-mobile-duration-row button {
    min-height: 46px;
    color: rgba(255, 246, 250, 0.54);
    font-size: 15px;
    font-weight: 800;
}

.story-cast-mobile-customize .story-cast-mobile-bottom-actions {
    right: 28px;
    bottom: calc(26px + env(safe-area-inset-bottom));
    left: 28px;
    transition:
        opacity 160ms ease,
        transform 180ms ease;
}

.story-cast-mobile-customize.is-keyboard-active .story-cast-mobile-bottom-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 36px + env(safe-area-inset-bottom)));
}

.story-cast-mobile-customize .story-cast-mobile-primary {
    min-height: 66px;
    justify-content: flex-start;
    padding: 0 18px;
    font-family: var(--story-sans);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
}

.story-cast-mobile-customize .story-cast-mobile-primary svg:first-child {
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.story-cast-mobile-customize .story-cast-mobile-primary span {
    flex: 1;
    white-space: nowrap;
}

.story-cast-mobile-customize .story-cast-mobile-primary svg:last-child:not(:first-child) {
    width: 24px;
    height: 24px;
}

.story-cast-mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.story-cast-mobile-sheet--expanded {
    pointer-events: auto;
}

.story-cast-mobile-progress-peek {
    position: absolute;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 1;
    display: grid;
    min-height: 74px;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    border: 1px solid rgba(255, 142, 190, 0.38);
    border-radius: 24px;
    background: rgba(15, 7, 16, 0.92);
    box-shadow:
        0 -14px 36px rgba(255, 52, 134, 0.14),
        0 16px 34px rgba(0, 0, 0, 0.48);
    color: #fff6fa;
    text-align: left;
    pointer-events: auto;
    backdrop-filter: blur(20px);
}

.story-cast-mobile-progress-peek-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 58px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-50%);
}

.story-cast-mobile-progress-peek div {
    min-width: 0;
}

.story-cast-mobile-progress-peek span,
.story-cast-mobile-progress-peek small {
    display: block;
    color: rgba(255, 194, 220, 0.78);
    font-size: 11px;
    font-weight: 800;
}

.story-cast-mobile-progress-peek strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    margin-top: 4px;
    color: #fff6fa;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-cast-mobile-progress-peek small {
    margin-top: 4px;
    color: rgba(255, 246, 250, 0.66);
}

.story-cast-mobile-progress-peek > svg {
    width: 24px;
    height: 24px;
    justify-self: end;
    color: #ff9fc9;
}

.story-cast-mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.54);
    pointer-events: auto;
}

.story-cast-mobile-progress-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 62svh;
    box-sizing: border-box;
    overflow: auto;
    padding: 32px 18px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 142, 190, 0.36);
    border-radius: 26px 26px 0 0;
    background: rgba(17, 8, 17, 0.96);
    pointer-events: auto;
    backdrop-filter: blur(20px);
}

.story-cast-mobile-sheet-handle {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 68px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.story-cast-mobile-sheet-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 142, 190, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.story-cast-mobile-progress-sheet h2 {
    margin: 0 52px 6px 0;
    font-family: var(--story-sans);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.story-cast-mobile-progress-sheet > p {
    max-width: 300px;
    margin: 0 52px 18px 0;
    color: rgba(255, 226, 238, 0.6);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.story-cast-mobile-progress-list,
.story-cast-mobile-assets {
    display: grid;
    gap: 12px;
}

.story-cast-mobile-progress-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 10px;
    border: 1px solid rgba(255, 142, 190, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff5fa;
    text-align: left;
}

.story-cast-mobile-progress-download-slot {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.story-cast-mobile-progress-download {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 159, 201, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff6fa;
}

.story-cast-mobile-progress-download:disabled {
    opacity: 0.68;
}

.story-cast-mobile-progress-download svg {
    width: 17px;
    height: 17px;
}

.story-cast-mobile-progress-item.is-unlocked,
.story-cast-mobile-progress-item.is-customize {
    border-color: rgba(255, 159, 201, 0.63);
    background: rgba(42, 16, 32, 0.8);
    box-shadow: 0 0 18px rgba(255, 110, 168, 0.2);
}

.story-cast-mobile-progress-item.is-locked {
    opacity: 0.62;
    background: rgba(255, 255, 255, 0.03);
}

.story-cast-mobile-progress-thumb {
    display: grid;
    width: 66px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42)),
        var(--story-cast-mobile-progress-thumb, url("/story-cast-hero.png")) center / cover;
}

.story-cast-mobile-progress-item span,
.story-cast-mobile-selected-cast span {
    color: rgba(255, 194, 220, 0.84);
    font-size: 13px;
}

.story-cast-mobile-progress-item strong,
.story-cast-mobile-selected-cast h2 {
    display: block;
    margin-top: 4px;
    color: #fff6fa;
    font-size: 17px;
}

.story-cast-mobile-progress-item em {
    display: block;
    margin-top: 4px;
    color: #ff9fc9;
    font-size: 12px;
    font-style: normal;
}

.story-cast-mobile-progress-item small {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    color: rgba(255, 246, 250, 0.82);
    font-size: 11px;
    font-weight: 800;
}

.story-cast-mobile-progress-item.is-unlocked small {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f52d82;
    color: #fff;
}

.story-cast-mobile-progress-item.is-actionable {
    cursor: pointer;
}

.story-cast-mobile-progress-item.is-customize small {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f52d82;
    color: #fff;
}

.story-cast-mobile-progress-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 142, 190, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff6fa;
    text-align: left;
}

.story-cast-mobile-progress-note > svg:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(245, 45, 130, 0.2);
    color: #ff9fc9;
}

.story-cast-mobile-progress-note strong {
    display: block;
    color: #fff6fa;
    font-size: 15px;
    font-weight: 800;
}

.story-cast-mobile-progress-note span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 226, 238, 0.62);
    font-size: 12px;
    font-weight: 600;
}

.story-cast-mobile-progress-note > svg:last-child {
    color: #ff9fc9;
}

.story-cast-mobile-page .story-cast-change-cast-backdrop {
    z-index: 40;
    align-items: end;
    justify-items: stretch;
    padding: 0 14px max(14px, env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.7)),
        rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.story-cast-mobile-page .story-cast-change-cast-dialog {
    width: 100%;
    max-height: min(84svh, 720px);
    overflow: auto;
    padding: 26px 20px 20px;
    border-color: rgba(255, 142, 190, 0.42);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 105, 172, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(57, 20, 43, 0.96), rgba(13, 6, 15, 0.97));
    box-shadow:
        0 -18px 52px rgba(255, 47, 137, 0.16),
        0 28px 72px rgba(0, 0, 0, 0.64);
}

.story-cast-mobile-page .story-cast-change-cast-close {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
}

.story-cast-mobile-page .story-cast-change-cast-kicker {
    max-width: calc(100% - 58px);
    padding: 8px 13px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.story-cast-mobile-page .story-cast-change-cast-dialog h2 {
    max-width: 300px;
    margin: 22px 0 10px;
    font-size: clamp(32px, 9.4vw, 40px);
    line-height: 0.98;
}

.story-cast-mobile-page .story-cast-change-cast-dialog p {
    max-width: 310px;
    color: rgba(255, 226, 238, 0.74);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.story-cast-mobile-page .story-cast-change-cast-summary {
    gap: 11px;
    margin: 20px 0 18px;
    padding: 15px;
    border-color: rgba(255, 142, 190, 0.3);
    border-radius: 20px;
    background: rgba(7, 3, 9, 0.5);
}

.story-cast-mobile-page .story-cast-change-cast-summary div {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.story-cast-mobile-page .story-cast-change-cast-actions {
    gap: 12px;
}

.story-cast-mobile-page .story-cast-change-cast-primary {
    min-height: 66px;
    padding: 12px 17px;
    gap: 10px;
}

.story-cast-mobile-page .story-cast-change-cast-primary > svg:first-child {
    width: 24px;
    height: 24px;
}

.story-cast-mobile-page .story-cast-change-cast-primary > svg:last-child {
    width: 20px;
    height: 20px;
}

.story-cast-mobile-page .story-cast-change-cast-primary span {
    min-width: 0;
    font-family: var(--story-sans);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.08;
    white-space: nowrap;
}

.story-cast-mobile-page .story-cast-change-cast-primary small {
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-cast-mobile-page .story-cast-change-cast-secondary {
    min-height: 48px;
    font-size: 14px;
}

.story-cast-mobile-page--assets::after {
    background:
        linear-gradient(180deg, rgba(7, 4, 10, 0.88) 0%, rgba(7, 4, 10, 0.86) 52%, #07040a 100%),
        linear-gradient(0deg, #07040a 0%, rgba(7, 4, 10, 0.68) 42%, rgba(7, 4, 10, 0.04) 100%);
}

.story-cast-mobile-page--assets .story-cast-mobile-media img,
.story-cast-mobile-page--assets .story-cast-mobile-media video {
    object-position: center center;
}

.story-cast-mobile-page--assets .story-cast-mobile-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: max(18px, env(safe-area-inset-top)) 18px 8px;
}

.story-cast-mobile-page--assets .story-cast-mobile-brand {
    font-family: var(--story-sans);
    font-size: 25px;
    font-weight: 700;
}

.story-cast-mobile-page--assets .story-cast-mobile-top-actions a {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 10px;
}

.story-cast-mobile-page--assets .story-cast-mobile-top-actions a svg {
    width: 19px;
    height: 19px;
}

.story-cast-mobile-assets {
    display: block;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 92px 18px calc(28px + env(safe-area-inset-bottom));
}

.story-cast-mobile-assets-copy {
    display: grid;
    gap: 6px;
    margin: 0 4px 14px;
}

.story-cast-mobile-assets-copy span {
    color: #ff9fc9;
    font-size: 13px;
    font-weight: 800;
}

.story-cast-mobile-assets-copy h1 {
    margin: 0;
    color: #fff6fa;
    font-family: var(--story-sans);
    font-size: 42px;
    font-weight: 650;
    line-height: 1.02;
    text-shadow: 0 0 18px rgba(255, 194, 219, 0.42);
}

.story-cast-mobile-assets-copy p {
    width: min(330px, 100%);
    margin: 0;
    color: rgba(255, 226, 238, 0.7);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.story-cast-mobile-cast-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 0 14px;
    scrollbar-width: none;
}

.story-cast-mobile-cast-rail::-webkit-scrollbar {
    display: none;
}

.story-cast-mobile-cast-rail button,
.story-cast-mobile-cast-rail-action {
    display: grid;
    flex: 0 0 78px;
    justify-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: rgba(255, 235, 244, 0.86);
    cursor: pointer;
    font: 700 12px / 1 var(--story-sans);
    text-decoration: none;
}

.story-cast-mobile-cast-rail button:not(.is-selected):not(.is-loading):not(.is-failed) {
    color: rgba(255, 226, 238, 0.8);
    font-weight: 600;
}

.story-cast-mobile-cast-avatar-frame {
    display: grid;
    width: 72px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

.story-cast-mobile-cast-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-cast-mobile-cast-avatar-frame svg {
    width: 24px;
    height: 24px;
    color: #ff9fc9;
}

.story-cast-mobile-cast-rail button.is-selected .story-cast-mobile-cast-avatar-frame {
    border-color: var(--story-pink);
    box-shadow: 0 0 20px rgba(255, 105, 172, 0.48);
}

.story-cast-mobile-cast-rail button.is-loading {
    opacity: 0.78;
}

.story-cast-mobile-cast-rail button.is-loading .story-cast-mobile-cast-avatar-frame {
    border-color: rgba(255, 142, 190, 0.24);
    background: rgba(255, 255, 255, 0.07);
}

.story-cast-mobile-cast-rail button.is-loading svg {
    animation: story-cast-spin 1.1s linear infinite;
}

@keyframes story-cast-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes story-cast-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.story-cast-mobile-cast-rail button.is-failed .story-cast-mobile-cast-avatar-frame {
    border-color: rgba(255, 116, 75, 0.52);
}

.story-cast-mobile-cast-rail-action .story-cast-mobile-cast-avatar-frame {
    border-color: rgba(255, 142, 190, 0.36);
    background: rgba(0, 0, 0, 0.25);
}

.story-cast-mobile-cast-rail-action .story-cast-mobile-cast-avatar-frame svg {
    color: #fff6fa;
}

.story-cast-mobile-selected-cast {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px 18px;
    align-items: start;
    margin-top: 2px;
    padding: 14px;
    border: 1px solid rgba(255, 142, 190, 0.28);
    border-radius: 24px;
    background: rgba(20, 8, 23, 0.78);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-mobile-selected-cast > img,
.story-cast-mobile-empty-media {
    width: 116px;
    height: 162px;
    border-radius: 16px;
    object-fit: cover;
}

.story-cast-mobile-empty-media {
    background: rgba(255, 255, 255, 0.05);
}

.story-cast-mobile-selected-cast-copy {
    min-width: 0;
}

.story-cast-mobile-selected-cast-copy > span {
    color: #ff9fc9;
    font-size: 12px;
    font-weight: 800;
}

.story-cast-mobile-selected-cast-copy h2 {
    margin: 7px 0 5px;
    color: #fff6fa;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.08;
}

.story-cast-mobile-selected-cast-copy p {
    margin: 0;
    color: rgba(255, 226, 238, 0.66);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.story-cast-mobile-selected-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 0 10px;
    border: 1px solid rgba(255, 142, 190, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.story-cast-mobile-selected-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9fc9;
    box-shadow: 0 0 12px rgba(255, 110, 168, 0.72);
}

.story-cast-mobile-selected-status span {
    color: #fff6fa;
    font-size: 11px;
    font-weight: 800;
}

.story-cast-mobile-selected-cast-copy em {
    display: block;
    margin-top: 10px;
    color: rgba(255, 226, 238, 0.44);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
}

.story-cast-mobile-assets-actions {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
    margin: 0 -8px -4px;
}

.story-cast-mobile-assets-primary,
.story-cast-mobile-assets-secondary {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-family: var(--story-sans);
    text-decoration: none;
}

.story-cast-mobile-assets-primary {
    min-height: 62px;
    padding: 0 20px;
    border: 1px solid rgba(255, 217, 232, 0.78);
    background: linear-gradient(90deg, rgba(255, 116, 75, 0.98), rgba(245, 45, 130, 0.98));
    box-shadow:
        0 0 22px rgba(255, 105, 172, 0.58),
        0 18px 42px rgba(255, 45, 103, 0.32);
    font-size: 18px;
    font-weight: 800;
}

.story-cast-mobile-assets-primary svg,
.story-cast-mobile-assets-secondary svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.story-cast-mobile-assets-primary span,
.story-cast-mobile-assets-secondary span {
    min-width: 0;
}

.story-cast-mobile-assets-primary svg:last-child {
    margin-left: auto;
}

.story-cast-mobile-assets-secondary {
    min-height: 48px;
    justify-content: center;
    border: 1px solid rgba(255, 142, 190, 0.4);
    background: rgba(17, 7, 20, 0.58);
    font-size: 14px;
    font-weight: 800;
}

.story-cast-mobile-assets-empty-panel {
    display: grid;
    min-height: 326px;
    box-sizing: border-box;
    align-content: center;
    gap: 8px;
    margin: 20px 2px 0;
    padding: 38px;
    border: 1px solid rgba(255, 142, 190, 0.28);
    border-radius: 28px;
    background: rgba(18, 8, 18, 0.85);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.story-cast-mobile-assets-empty-panel h1 {
    margin: 0;
    color: #fff6fa;
    font-family: var(--story-sans);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 0 14px rgba(255, 194, 219, 0.45);
}

.story-cast-mobile-assets-empty-panel p {
    width: min(274px, 100%);
    margin: 0;
    color: rgba(255, 226, 238, 0.66);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.story-cast-mobile-assets-empty-panel .story-cast-mobile-assets-secondary {
    width: max-content;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 18px;
}

.story-cast-mobile-assets-empty-primary {
    width: calc(100% - 8px);
    margin: 30px 4px 0;
}

@media (max-width: 380px) {
    .story-cast-mobile-ready-copy {
        margin-top: 34svh;
    }

    .story-cast-mobile-ready-row {
        grid-template-columns: 1fr;
    }

    .story-cast-mobile-landing-copy {
        bottom: 295px;
    }

    .story-cast-mobile-landing-details {
        grid-template-columns: 1fr;
        bottom: 118px;
    }

    .story-cast-mobile-keyword-list span {
        font-size: 11px;
    }

    .story-cast-mobile-cast-card {
        max-width: 220px;
    }

    .story-cast-mobile-primary {
        min-height: 66px;
        font-size: 24px;
    }
}


.story-cast-page {
    --story-rose: #ff2a7a;
    --story-hot: #ff5e36;
    --story-pink: #ffb2d4;
    --story-violet: #de9cff;
    --story-gold: #ffb02e;
    --story-ink: #0b040f;
    --story-muted: #a08c9f;
    --story-card-bg: rgba(20, 8, 19, 0.72);
    --story-card-border: rgba(255, 112, 164, 0.42);
    --story-card-copy: rgba(255, 239, 247, 0.7);
    --story-card-muted: rgba(255, 239, 247, 0.5);
    --story-card-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48),
        inset 0 0 34px rgba(255, 101, 166, 0.05);
    --story-serif: "Playfair Display", "Didot", Georgia, "Times New Roman", serif;
    --story-sans: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --story-button: Montserrat, "Plus Jakarta Sans", Inter, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--story-ink);
    color: #fff;
    font-family: var(--story-sans);
    isolation: isolate;
}

.story-cast-page button {
    font-family: inherit;
}

@media (max-width: 767px), (pointer: coarse) and (max-width: 900px) {
    .story-cast-page {
        display: none;
    }
}

.story-cast-scene {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.004);
    animation: story-cast-scene-breathe 12s ease-in-out infinite alternate;
    filter: saturate(1.08) contrast(1.02);
    pointer-events: none;
}

.story-cast-vignette {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 50%, rgba(0, 0, 0, 0.68) 71%, rgba(0, 0, 0, 0.48)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 55%, rgba(0, 0, 0, 0.36)),
        radial-gradient(circle at 80% 30%, rgba(253, 45, 101, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 44% 18%, rgba(255, 92, 143, 0.13), transparent 28%);
}

.story-cast-page--ready .story-cast-scene,
.story-cast-page--episode_generating .story-cast-scene,
.story-cast-page--watch .story-cast-scene,
.story-cast-page--end .story-cast-scene,
.story-cast-page--customize .story-cast-scene {
    display: none;
}

.story-cast-page--ready,
.story-cast-page--episode_generating,
.story-cast-page--watch,
.story-cast-page--end,
.story-cast-page--customize {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 78, 143, 0.12), transparent 34%),
        radial-gradient(circle at 78% 18%, rgba(112, 80, 255, 0.11), transparent 32%),
        linear-gradient(135deg, #08040b 0%, #120913 46%, #060306 100%);
}

.story-cast-page--customize {
    overflow-y: auto;
}

.story-cast-page--assets {
    min-height: 100vh;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 74, 140, 0.12), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(255, 176, 46, 0.1), transparent 32%),
        linear-gradient(135deg, #08040b 0%, #150914 48%, #060306 100%);
}

.story-cast-page--paywall {
    overflow-y: auto;
}

.story-cast-page--assets .story-cast-scene {
    opacity: 0.2;
    filter: saturate(0.92) contrast(1.03) blur(1px);
}

.story-cast-page--customize .story-cast-shell {
    height: auto;
    min-height: 100vh;
    padding-bottom: 72px;
}

.story-cast-page--customize .story-cast-watch-layout {
    height: auto;
    min-height: calc(100vh - 82px);
    padding-bottom: 48px;
}

.story-cast-page--ready .story-cast-vignette,
.story-cast-page--episode_generating .story-cast-vignette,
.story-cast-page--watch .story-cast-vignette,
.story-cast-page--end .story-cast-vignette,
.story-cast-page--customize .story-cast-vignette {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 48%, rgba(0, 0, 0, 0.38)),
        radial-gradient(circle at 50% 52%, rgba(255, 54, 131, 0.08), transparent 58%);
}

.story-cast-file-input {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.story-cast-shell {
    display: flex;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    padding: 24px clamp(72px, 5.6vw, 108px) 36px 52px;
}

.story-cast-shell--assets {
    height: auto;
    min-height: 100vh;
    padding-bottom: 64px;
}

.story-cast-header {
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.story-cast-header--workspace {
    grid-template-columns: minmax(0, 1fr) auto;
}

.story-cast-logo {
    display: inline-grid;
    width: fit-content;
    gap: 7px;
    color: #fff4f7;
    font-family: var(--story-serif);
    font-size: 41px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 0 18px rgba(255, 160, 196, 0.45);
}

.story-cast-logo span {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
}

.story-cast-logo small {
    color: rgba(255, 247, 250, 0.72);
    font-family: var(--story-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
}

.story-cast-logo svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: var(--story-rose);
    filter: drop-shadow(0 0 8px var(--story-rose));
}

.story-cast-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.story-cast-credit-balance {
    appearance: none;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(255, 118, 169, 0.34);
    border-radius: 999px;
    background: rgba(17, 7, 20, 0.46);
    box-shadow: inset 0 0 14px rgba(255, 76, 151, 0.08);
    color: #fff6fb;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.story-cast-credit-balance:hover,
.story-cast-credit-balance:focus-visible {
    border-color: rgba(255, 178, 212, 0.76);
    box-shadow:
        inset 0 0 14px rgba(255, 76, 151, 0.13),
        0 0 18px rgba(255, 80, 151, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.story-cast-credit-balance-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
}

.story-cast-credit-balance strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.story-cast-credit-balance span {
    color: rgba(255, 247, 250, 0.66);
    font-size: 12px;
    font-weight: 600;
}

.story-cast-sign-in,
.story-cast-assets-action,
.story-cast-sample {
    appearance: none;
    border: 0;
    color: inherit;
    font: inherit;
}

.story-cast-sign-in {
    padding: 10px 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.story-cast-assets-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 118, 169, 0.34);
    border-radius: 999px;
    background: rgba(17, 7, 20, 0.46);
    box-shadow: inset 0 0 14px rgba(255, 76, 151, 0.08);
    color: rgba(255, 247, 250, 0.9);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.story-cast-assets-action:hover,
.story-cast-assets-action.is-active {
    border-color: rgba(255, 178, 212, 0.76);
    color: #fff;
    box-shadow:
        inset 0 0 14px rgba(255, 76, 151, 0.13),
        0 0 18px rgba(255, 80, 151, 0.22);
}

.story-cast-hero {
    display: grid;
    grid-template-columns: minmax(560px, 1fr) max-content;
    flex: 1 1 auto;
    min-height: max(680px, calc(100vh - 92px));
    min-height: max(680px, calc(100dvh - 92px));
    justify-content: space-between;
}

.story-cast-left,
.story-cast-upload-panel {
    box-sizing: border-box;
    height: auto;
    min-height: inherit;
}

.story-cast-left {
    position: relative;
}

.story-cast-character-info {
    z-index: 2;
    width: 348px;
    padding-top: clamp(82px, 11.8vh, 114px);
}

.story-cast-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--story-rose);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.story-cast-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--story-rose);
    box-shadow: 0 0 14px var(--story-rose);
}

.story-cast-waveform {
    display: flex;
    align-items: center;
    gap: 2.2px;
    width: 186px;
    height: 20px;
    margin-left: 14px;
}

.story-cast-waveform span {
    width: 1.5px;
    height: calc(5px + var(--wave, 1) * 5px);
    border-radius: 999px;
    background: rgba(255, 97, 151, 0.82);
    box-shadow: 0 0 8px rgba(255, 97, 151, 0.5);
}

.story-cast-waveform span:nth-child(3n) {
    --wave: 2;
}

.story-cast-waveform span:nth-child(4n) {
    --wave: 4;
}

.story-cast-waveform span:nth-child(7n) {
    --wave: 1;
}

.story-cast-character-info h2 {
    margin: 14px 0 9px;
    color: #fff6f8;
    font-family: var(--story-serif);
    font-size: clamp(48px, 3.35vw, 55px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.02em;
    text-shadow:
        0 0 17px rgba(255, 221, 231, 0.35),
        0 9px 27px rgba(0, 0, 0, 0.45);
}

.story-cast-role {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #fff5f7;
    font-family: var(--story-serif);
    font-size: clamp(22px, 1.42vw, 25px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
}

.story-cast-role svg {
    width: 13px;
    height: 13px;
    color: var(--story-pink);
    stroke-width: 1.8;
}

.story-cast-control {
    margin: 23px 0 24px;
    color: rgba(255, 248, 250, 0.86);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.story-cast-control span {
    color: var(--story-rose);
}

.story-cast-tags {
    display: flex;
    width: 348px;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.story-cast-tag {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255, 119, 166, 0.36);
    border-radius: 999px;
    background: rgba(12, 7, 14, 0.34);
    box-shadow:
        inset 0 0 10px rgba(255, 120, 171, 0.05),
        0 0 12px rgba(255, 42, 122, 0.12);
    color: rgba(255, 247, 250, 0.93);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.story-cast-tag:nth-child(1) {
    width: 96px;
}

.story-cast-tag:nth-child(2) {
    width: 120px;
}

.story-cast-tag:nth-child(3) {
    width: 132px;
}

.story-cast-tag:nth-child(4) {
    width: 166px;
}

.story-cast-tag svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke-width: 1.9;
}

.story-cast-tag--gold svg {
    color: var(--story-gold);
}

.story-cast-tag--violet svg {
    color: var(--story-violet);
}

.story-cast-tag--rose svg {
    color: var(--story-rose);
}

.story-cast-speech-layer {
    position: absolute;
    left: clamp(330px, 24.2vw, 405px);
    bottom: clamp(128px, 17vh, 174px);
    width: clamp(408px, 26vw, 520px);
    height: 140px;
}

.story-cast-speech {
    width: clamp(302px, 19.4vw, 372px);
    min-height: 92px;
    box-sizing: border-box;
    padding: 20px 36px;
    border: 1.5px solid rgba(255, 117, 166, 0.9);
    border-radius: 21px;
    background: linear-gradient(180deg, rgba(22, 10, 16, 0.58), rgba(6, 3, 8, 0.68));
    box-shadow:
        inset 0 0 18px rgba(255, 196, 218, 0.08),
        0 0 0 1px rgba(255, 224, 236, 0.08),
        0 0 12px rgba(255, 93, 146, 0.52),
        0 0 28px rgba(255, 93, 146, 0.28),
        0 12px 30px rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.93);
    font-size: clamp(22px, 1.5vw, 28px);
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-speech::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 48px;
    width: 27px;
    height: 27px;
    border-top: 1.5px solid rgba(255, 117, 166, 0.9);
    border-right: 1.5px solid rgba(255, 117, 166, 0.9);
    background: rgba(10, 4, 10, 0.66);
    box-shadow: 8px -8px 15px -10px rgba(255, 93, 146, 0.75);
    transform: rotate(45deg);
}

.story-cast-speech p {
    margin: 0;
}

.story-cast-voice-orb {
    position: absolute;
    left: clamp(342px, 21.3vw, 416px);
    top: 49px;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 1px solid rgba(255, 139, 179, 0.65);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 105, 154, 0.96), rgba(139, 38, 74, 0.72) 58%, rgba(57, 12, 28, 0.48));
    box-shadow:
        0 0 0 8px rgba(255, 97, 151, 0.13),
        0 0 0 17px rgba(255, 97, 151, 0.08),
        0 0 0 29px rgba(255, 97, 151, 0.035),
        0 0 22px rgba(255, 97, 151, 0.5),
        0 10px 22px rgba(0, 0, 0, 0.34);
}

.story-cast-voice-orb svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.story-cast-speaking {
    position: absolute;
    left: clamp(342px, 21.3vw, 416px);
    top: 126px;
    margin: 0;
    color: rgba(255, 112, 159, 0.92);
    font-size: 20px;
    font-weight: 400;
    white-space: nowrap;
}

.story-cast-speaking::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--story-rose);
    box-shadow: 0 0 12px var(--story-rose);
    vertical-align: 2px;
}

.story-cast-preview-card {
    position: absolute;
    left: 0;
    bottom: clamp(18px, 3.2vh, 36px);
    display: grid;
    grid-template-columns: minmax(76px, 4.8vw) minmax(20px, 1.25vw) minmax(76px, 4.8vw) 1fr;
    align-items: center;
    gap: clamp(14px, 0.9vw, 18px);
    width: clamp(420px, 25vw, 520px);
    min-height: unset;
    padding: clamp(14px, 0.85vw, 18px);
    border: 1px solid var(--story-card-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 92, 150, 0.12), transparent 46%),
        var(--story-card-bg);
    box-shadow:
        var(--story-card-shadow),
        0 0 18px rgba(253, 45, 101, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.story-cast-thumb {
    display: flex;
    position: relative;
    width: 100%;
    aspect-ratio: 0.79;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: url("/story-cast-hero.png") center / cover no-repeat;
}

.story-cast-thumb--original {
    background-image: url("/story-cast-original.png");
    background-position: center;
    background-size: cover;
}

.story-cast-thumb--cast {
    border: 1px dashed rgba(253, 45, 101, 0.3);
    background:
        linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.6) 100%),
        var(--story-cast-image, url("/story-cast-your-cast.png")) center / cover no-repeat;
    box-shadow:
        inset 0 0 18px rgba(253, 45, 101, 0.1),
        0 0 10px rgba(253, 45, 101, 0.2);
}

.story-cast-thumb > span {
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 6px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.2px;
}

.story-cast-preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.story-cast-preview-arrow svg {
    width: clamp(20px, 1.25vw, 25px);
    height: clamp(20px, 1.25vw, 25px);
}

.story-cast-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 116px;
    margin-left: 4px;
}

.story-cast-preview-copy p {
    margin: 0;
    color: #fff4fa;
    font-family: var(--story-serif);
    font-size: clamp(15px, 0.86vw, 18px);
    font-weight: 500;
    line-height: 1.2;
}

.story-cast-preview-copy > svg {
    display: block;
    width: 14px;
    height: 14px;
    margin-top: 6px;
    color: var(--story-rose);
    filter: drop-shadow(0 0 3px rgba(253, 45, 101, 0.8));
}

.story-cast-preview-switch {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0 10px;
    border: 1px solid rgba(255, 182, 214, 0.48);
    border-radius: 999px;
    background: rgba(15, 5, 14, 0.5);
    color: #fff4fa;
    cursor: pointer;
    font: 700 11px / 1 var(--story-sans);
    letter-spacing: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.story-cast-preview-switch svg {
    width: 13px;
    height: 13px;
    color: var(--story-pink);
    filter: none;
}

.story-cast-preview-switch:hover {
    border-color: rgba(255, 219, 234, 0.86);
    box-shadow:
        0 0 16px rgba(255, 73, 151, 0.34),
        inset 0 0 10px rgba(255, 105, 172, 0.1);
}

.story-cast-preview-card--generating,
.story-cast-preview-card--ready,
.story-cast-preview-card--paywall {
    position: relative;
    left: auto;
    bottom: auto;
}

.story-cast-preview-card--generating {
    position: absolute;
    left: 0;
    bottom: clamp(18px, 3.2vh, 36px);
    margin-top: 0;
}

.story-cast-preview-card--ready {
    width: 100%;
    grid-template-columns: 84px 30px 84px 1fr;
    gap: 14px;
    margin: 10px 0 8px;
    padding: 12px 16px;
}

.story-cast-preview-card--paywall {
    width: 100%;
    grid-template-columns: 82px 34px 82px 1fr;
    margin-top: 28px;
}

.story-cast-upload-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 1.8vh, 18px);
    width: clamp(500px, 29vw, 560px);
    padding-top: clamp(52px, 7vh, 82px);
    padding-left: 0;
    background-image: radial-gradient(
        circle at 80% 30%,
        rgba(253, 45, 101, 0.08) 0%,
        transparent 55%
    );
}

.story-cast-flow-panel {
    display: flex;
    box-sizing: border-box;
    width: clamp(500px, 29vw, 560px);
    min-height: inherit;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 2vh, 22px);
    padding-top: clamp(52px, 7vh, 82px);
    padding-left: 0;
}

.story-cast-flow-panel--ready {
    gap: clamp(10px, 1.45vh, 16px);
    padding-top: clamp(42px, 6.4vh, 72px);
}

.story-cast-flow-heading {
    margin: 0;
    color: #fff7fa;
    font-family: var(--story-serif);
    font-size: clamp(48px, 4vw, 72px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 0 22px rgba(255, 210, 226, 0.14);
}

.story-cast-flow-subcopy {
    margin: -8px 0 4px;
    color: rgba(255, 246, 250, 0.62);
    font-size: clamp(18px, 1.28vw, 24px);
    line-height: 1.55;
}

.story-cast-progress-card {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 132px 1fr;
    align-items: center;
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--story-card-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 95, 150, 0.16), transparent 44%),
        linear-gradient(135deg, rgba(255, 74, 143, 0.05), transparent 46%),
        var(--story-card-bg);
    box-shadow:
        var(--story-card-shadow),
        0 0 34px rgba(255, 73, 148, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-progress-ring {
    display: grid;
    position: relative;
    overflow: hidden;
    width: 112px;
    height: 112px;
    isolation: isolate;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(32, 14, 26, 0.96) 0 55%, transparent 56%);
    box-shadow:
        0 0 24px rgba(255, 78, 143, 0.32),
        inset 0 0 30px rgba(0, 0, 0, 0.42);
}

.story-cast-progress-ring::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 10px;
    border: 1px solid rgba(255, 120, 170, 0.28);
    border-radius: 50%;
}

.story-cast-progress-ring::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--story-pink) var(--story-progress),
        rgba(255, 116, 172, 0.14) 0
    );
    animation: story-cast-progress-spin 1.35s linear infinite;
    -webkit-mask: radial-gradient(circle at center, transparent 0 55%, #000 56%);
    mask: radial-gradient(circle at center, transparent 0 55%, #000 56%);
}

.story-cast-progress-ring div {
    display: grid;
    position: relative;
    z-index: 2;
    place-items: center;
}

.story-cast-progress-ring strong {
    color: #ffd5e7;
    font-family: var(--story-serif);
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.story-cast-step-list {
    display: grid;
    width: 100%;
    gap: 10px;
}

.story-cast-progress-step {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(255, 249, 252, 0.72);
}

.story-cast-progress-step span {
    display: grid;
    position: relative;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px dashed rgba(255, 118, 169, 0.34);
    border-radius: 50%;
    background: rgba(22, 10, 20, 0.62);
}

.story-cast-progress-step span svg {
    width: 16px;
    height: 16px;
}

.story-cast-progress-step p,
.story-cast-progress-step strong {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.story-cast-progress-step strong {
    color: rgba(255, 247, 250, 0.5);
    text-transform: capitalize;
}

.story-cast-progress-step.is-complete span {
    border-style: solid;
    border-color: rgba(122, 240, 91, 0.7);
    color: #90ff78;
}

.story-cast-progress-step.is-active {
    border-color: rgba(255, 89, 149, 0.36);
    background: rgba(255, 75, 142, 0.09);
    color: #fff6fb;
}

.story-cast-progress-step.is-active span {
    border-style: solid;
    border-color: rgba(255, 105, 160, 0.64);
    animation: story-cast-step-breathe 1.8s ease-in-out infinite;
    background: rgba(255, 82, 148, 0.12);
    box-shadow:
        inset 0 0 0 7px rgba(255, 82, 148, 0.12),
        0 0 0 rgba(255, 82, 148, 0);
}

.story-cast-progress-step.is-active span::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--story-pink);
    box-shadow: 0 0 12px rgba(255, 105, 172, 0.78);
}

.story-cast-progress-step.is-active.has-next span::before {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    width: 0;
    height: 30px;
    border-left: 1px dashed rgba(255, 137, 184, 0.54);
    transform: translateX(-50%);
}

.story-cast-progress-step.is-active strong {
    color: var(--story-pink);
}

.story-cast-private-note {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    border: 1px solid rgba(255, 112, 164, 0.24);
    border-radius: 18px;
    background: rgba(18, 10, 19, 0.66);
    color: rgba(255, 247, 250, 0.58);
}

.story-cast-private-note svg {
    width: 22px;
    height: 22px;
    color: var(--story-pink);
}

.story-cast-private-note span + span::before {
    content: "·";
    margin-right: 18px;
    color: var(--story-rose);
}

.story-cast-ready-heading {
    font-size: clamp(50px, 4.35vw, 74px);
    line-height: 1.02;
}

.story-cast-step--soft {
    color: var(--story-pink);
    letter-spacing: 0.3px;
    text-transform: none;
}

.story-cast-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: rgba(255, 246, 250, 0.76);
    font-size: 13px;
}

.story-cast-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.story-cast-check-pill svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border: 1px solid var(--story-rose);
    border-radius: 50%;
    color: var(--story-pink);
}

.story-cast-generate-button {
    min-height: 66px;
    justify-content: space-between;
    padding: 12px 24px;
    text-align: left;
}

.story-cast-generate-button:disabled {
    cursor: wait;
    opacity: 0.76;
}

.story-cast-generate-button span {
    display: grid;
    gap: 3px;
    font-family: var(--story-serif);
    font-size: 22px;
    font-weight: 500;
}

.story-cast-generate-button small {
    font-family: var(--story-sans);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.72;
}

.story-cast-sample--left {
    align-self: flex-start;
    margin-top: 0;
    color: var(--story-pink);
    border-bottom-color: rgba(255, 127, 179, 0.62);
}

.story-cast-mini-bubble {
    position: absolute;
    left: clamp(170px, 16vw, 270px);
    top: clamp(175px, 27vh, 270px);
    padding: 12px 22px;
    border: 1px solid rgba(255, 115, 166, 0.8);
    border-radius: 20px;
    background: rgba(26, 9, 20, 0.56);
    box-shadow: 0 0 24px rgba(255, 70, 142, 0.38);
    color: #fff5fa;
}

.story-cast-trust-rail {
    position: absolute;
    left: clamp(46px, 8vw, 132px);
    bottom: clamp(34px, 7vh, 76px);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 28px;
    border: 1px solid rgba(255, 153, 190, 0.24);
    border-radius: 999px;
    background: rgba(22, 13, 21, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-trust-rail div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 247, 250, 0.68);
    font-size: 13px;
}

.story-cast-trust-rail svg {
    width: 26px;
    height: 26px;
    padding: 9px;
    border: 1px solid rgba(255, 107, 172, 0.56);
    border-radius: 50%;
    color: var(--story-pink);
}

.story-cast-change-cast-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vh, 40px);
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.story-cast-change-cast-dialog {
    position: relative;
    width: min(560px, calc(100vw - 36px));
    box-sizing: border-box;
    padding: 40px 42px 34px;
    border: 1px solid rgba(255, 112, 164, 0.38);
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 92, 150, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(255, 117, 166, 0.1), transparent 44%),
        rgba(17, 8, 17, 0.95);
    box-shadow:
        var(--story-card-shadow),
        0 30px 90px rgba(0, 0, 0, 0.62);
    color: #fff4fa;
}

.story-cast-change-cast-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 150, 188, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff4fa;
    cursor: pointer;
}

.story-cast-change-cast-close svg {
    width: 18px;
    height: 18px;
}

.story-cast-change-cast-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 93, 159, 0.34);
    border-radius: 999px;
    color: var(--story-pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-cast-change-cast-kicker svg {
    width: 15px;
    height: 15px;
}

.story-cast-change-cast-dialog h2 {
    margin: 22px 0 12px;
    font-family: var(--story-serif);
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 500;
    line-height: 1;
}

.story-cast-change-cast-dialog p {
    margin: 0;
    color: rgba(255, 247, 250, 0.7);
    font-size: 16px;
    line-height: 1.55;
}

.story-cast-change-cast-summary {
    display: grid;
    gap: 12px;
    margin: 26px 0;
    padding: 18px;
    border: 1px solid rgba(255, 112, 164, 0.22);
    border-radius: 16px;
    background: rgba(11, 5, 13, 0.54);
}

.story-cast-change-cast-summary div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: rgba(255, 247, 250, 0.84);
    font-size: 14px;
}

.story-cast-change-cast-summary svg,
.story-cast-change-cast-coin {
    width: 20px;
    height: 20px;
    color: var(--story-pink);
}

.story-cast-change-cast-actions {
    display: grid;
    gap: 14px;
}

.story-cast-change-cast-primary {
    min-height: 74px;
    justify-content: space-between;
    margin-top: 0;
    padding: 13px 22px;
    text-align: left;
}

.story-cast-change-cast-primary span {
    display: grid;
    gap: 3px;
    font-family: var(--story-serif);
    font-size: 22px;
    font-weight: 500;
}

.story-cast-change-cast-primary small {
    color: rgba(255, 247, 250, 0.74);
    font-family: var(--story-sans);
    font-size: 13px;
    font-weight: 500;
}

.story-cast-change-cast-secondary {
    appearance: none;
    min-height: 44px;
    border: 1px solid rgba(255, 118, 169, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 247, 250, 0.82);
    font: 600 14px / 1 var(--story-sans);
    cursor: pointer;
}

.story-cast-change-cast-secondary:hover {
    border-color: rgba(255, 178, 212, 0.68);
    color: #fff;
}

.story-cast-paywall-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: start;
    justify-items: center;
    overflow-y: auto;
    padding: clamp(16px, 3vh, 28px);
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overscroll-behavior: contain;
}

.story-cast-paywall {
    position: relative;
    width: min(940px, calc(100vw - 32px));
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    box-sizing: border-box;
    margin-block: auto;
    overflow-y: auto;
    padding: 52px 56px 44px;
    border: 1px solid var(--story-card-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 92, 150, 0.16), transparent 45%),
        linear-gradient(135deg, rgba(255, 74, 143, 0.05), transparent 46%),
        rgba(17, 8, 17, 0.94);
    box-shadow:
        var(--story-card-shadow),
        0 30px 90px rgba(0, 0, 0, 0.64);
    scrollbar-gutter: stable;
    text-align: center;
}

.story-cast-paywall-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 150, 188, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff4fa;
    cursor: pointer;
}

.story-cast-paywall-close svg {
    width: 20px;
    height: 20px;
}

.story-cast-paywall h2 {
    margin: 0;
    color: #fff4fa;
    font-family: var(--story-serif);
    font-size: clamp(54px, 5vw, 74px);
    font-weight: 500;
    line-height: 1;
}

.story-cast-paywall > p {
    margin: 14px 0 34px;
    color: var(--story-card-copy);
    font-size: 18px;
}

.story-cast-balance-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: -8px auto 32px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 112, 164, 0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 50%, rgba(222, 156, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 117, 166, 0.08), transparent 44%),
        rgba(13, 7, 16, 0.7);
    box-shadow:
        inset 0 0 24px rgba(255, 83, 154, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.22);
    text-align: left;
}

.story-cast-balance-coin {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255, 178, 212, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 22px rgba(255, 80, 151, 0.2);
}

.story-cast-balance-coin-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.story-cast-balance-panel span,
.story-cast-balance-panel small,
.story-cast-balance-panel strong {
    display: inline-block;
}

.story-cast-balance-panel span {
    width: 100%;
    color: rgba(255, 247, 250, 0.58);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.story-cast-balance-panel strong {
    margin-top: 4px;
    color: #fff4fa;
    font-family: var(--story-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: 0.95;
}

.story-cast-balance-panel small {
    margin-left: 8px;
    color: var(--story-pink);
    font-size: 13px;
    font-weight: 600;
}

.story-cast-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    gap: 20px;
}

.story-cast-plan-state {
    display: grid;
    min-height: 220px;
    grid-column: 1 / -1;
    place-items: center;
    gap: 16px;
    padding: 26px;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 22px;
    background: rgba(15, 9, 17, 0.72);
    color: rgba(255, 247, 250, 0.72);
    font-size: 15px;
}

.story-cast-plan-state p {
    margin: 0;
}

.story-cast-plan-state button {
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(255, 112, 164, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff7fb;
    cursor: pointer;
}

.story-cast-plan-card {
    position: relative;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 34px 28px 26px;
    border: 1px solid var(--story-card-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 92, 150, 0.12), transparent 46%),
        linear-gradient(135deg, rgba(255, 117, 166, 0.06), transparent 42%),
        var(--story-card-bg);
    box-shadow: var(--story-card-shadow);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.story-cast-plan-card.is-selected {
    border-color: var(--story-pink);
    box-shadow:
        0 0 24px rgba(255, 83, 154, 0.28),
        inset 0 0 18px rgba(255, 83, 154, 0.06);
}

.story-cast-plan-card.is-featured {
    min-height: 380px;
    padding: 38px 30px 28px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 98, 168, 0.22), transparent 46%),
        linear-gradient(135deg, rgba(255, 117, 166, 0.1), transparent 42%),
        rgba(19, 8, 20, 0.9);
}

.story-cast-plan-card.is-selected {
    border-color: var(--story-pink);
    box-shadow:
        0 0 24px rgba(255, 83, 154, 0.28),
        inset 0 0 18px rgba(255, 83, 154, 0.06);
    transform: translateY(-8px);
}

.story-cast-plan-card.is-featured.is-selected {
    box-shadow:
        0 0 36px rgba(255, 83, 154, 0.34),
        0 22px 60px rgba(255, 45, 122, 0.16),
        inset 0 0 28px rgba(255, 83, 154, 0.1);
}

.story-cast-plan-card.is-featured:not(.is-selected) {
    border-color: rgba(255, 112, 164, 0.42);
    box-shadow: var(--story-card-shadow);
}

.story-cast-plan-badge {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 178, 212, 0.48);
    background: rgba(31, 12, 29, 0.9);
    box-shadow: 0 0 18px rgba(255, 78, 149, 0.55);
    color: var(--story-pink);
    font-size: 14px;
}

.story-cast-plan-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--story-serif);
    color: #fff4fa;
    font-size: 31px;
    font-weight: 500;
    line-height: 1.1;
}

.story-cast-plan-card h3 svg {
    width: 16px;
    height: 16px;
    color: var(--story-pink);
}

.story-cast-plan-price {
    display: grid;
    gap: 4px;
}

.story-cast-plan-price span {
    color: rgba(255, 247, 250, 0.44);
    font-size: 15px;
    text-decoration: line-through;
}

.story-cast-plan-card strong {
    color: #ffd2e6;
    font-family: var(--story-serif);
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
}

.story-cast-plan-card p {
    margin: 0;
    color: var(--story-card-copy);
    font-size: 15px;
    line-height: 1.45;
}

.story-cast-plan-card ul {
    display: grid;
    gap: 13px;
    width: 100%;
    margin: 8px 0 8px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 127, 179, 0.18);
    list-style: none;
}

.story-cast-plan-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--story-card-copy);
    font-size: 14px;
    line-height: 1.35;
}

.story-cast-plan-card li svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    padding: 2px;
    border: 1px solid rgba(255, 126, 181, 0.56);
    border-radius: 50%;
    color: var(--story-pink);
}

.story-cast-plan-button {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: auto;
    padding: 16px 22px;
    border: 1px solid rgba(255, 112, 164, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff7fb;
    cursor: pointer;
    font-weight: 500;
}

.story-cast-plan-card.is-selected .story-cast-plan-button {
    border-color: transparent;
    background: linear-gradient(90deg, var(--story-hot), var(--story-rose), #b11172);
    box-shadow: 0 0 24px rgba(255, 80, 151, 0.44);
    min-height: 58px;
    font-size: 16px;
}

.story-cast-watch-layout {
    --story-cast-player-height: min(62vh, 620px);
    --story-cast-player-min-height: 470px;
    --story-cast-progress-extra-height: 216px;

    display: grid;
    box-sizing: border-box;
    grid-template-columns: minmax(680px, 1fr) minmax(410px, 540px);
    gap: 44px;
    min-height: calc(100vh - 82px);
    align-items: start;
    padding-bottom: 48px;
    padding-top: clamp(52px, 7vh, 82px);
}

.story-cast-watch-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.story-cast-watch-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.story-cast-watch-topline > div {
    display: flex;
    align-items: baseline;
    gap: 22px;
}

.story-cast-watch-topline h1 {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: var(--story-pink);
    font-family: var(--story-serif);
    font-size: 31px;
    font-weight: 500;
    text-shadow: 0 0 18px rgba(255, 144, 193, 0.34);
}

.story-cast-watch-topline h1 svg {
    width: 16px;
    height: 16px;
}

.story-cast-watch-topline span {
    color: var(--story-pink);
    font-size: 14px;
}

.story-cast-watch-topline strong {
    color: rgba(255, 247, 250, 0.9);
    font-size: 17px;
    font-weight: 500;
}

.story-cast-watch-topline button,
.story-cast-watch-topline a,
.story-cast-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 112, 164, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 247, 250, 0.84);
    cursor: pointer;
    text-decoration: none;
}

.story-cast-player-card {
    position: relative;
    overflow: hidden;
    height: var(--story-cast-player-height);
    min-height: var(--story-cast-player-min-height);
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 117, 166, 0.04), transparent 40%),
        #09060b;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.story-cast-player-card video,
.story-cast-player-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-cast-player-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 105, 176, 0.14), transparent 36%),
        #09060b;
}

.story-cast-player-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.58)),
        radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.story-cast-replay-button {
    position: absolute;
    top: 26px;
    left: 26px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.44);
    color: #fff7fb;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.story-cast-replay-button svg {
    width: 18px;
    height: 18px;
}

.story-cast-player-meta {
    position: absolute;
    left: 30px;
    bottom: 28px;
    z-index: 2;
    display: grid;
    gap: 7px;
}

.story-cast-video-controls {
    position: absolute;
    right: 26px;
    bottom: 24px;
    left: 26px;
    z-index: 4;
    display: grid;
    gap: 12px;
}

.story-cast-video-progress {
    position: relative;
    display: block;
    height: 18px;
    cursor: pointer;
}

.story-cast-video-progress::before,
.story-cast-video-progress-fill {
    content: "";
    position: absolute;
    top: 7px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
}

.story-cast-video-progress::before {
    background: rgba(255, 255, 255, 0.23);
}

.story-cast-video-progress-fill {
    right: auto;
    z-index: 1;
    width: var(--story-cast-video-progress, 0%);
    background: linear-gradient(90deg, #ff8fc6, #ff4aa4);
    pointer-events: none;
}

.story-cast-video-progress input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.story-cast-video-control-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(255, 247, 250, 0.88);
}

.story-cast-video-control-row > div {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.story-cast-video-control-button {
    display: inline-grid;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    place-items: center;
}

.story-cast-video-control-button:disabled {
    cursor: default;
    opacity: 0.56;
}

.story-cast-video-control-row svg {
    width: 20px;
    height: 20px;
}

.story-cast-generation-overlay {
    position: absolute;
    top: 62px;
    right: 42px;
    z-index: 5;
    display: grid;
    width: min(260px, 30%);
    gap: 16px;
    justify-items: center;
    padding: 28px 28px 24px;
    border: 1px solid var(--story-card-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 92, 150, 0.16), transparent 44%),
        linear-gradient(135deg, rgba(255, 74, 143, 0.05), transparent 46%),
        var(--story-card-bg);
    box-shadow: var(--story-card-shadow);
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-generation-overlay .story-cast-progress-ring {
    width: 96px;
    height: 96px;
}

.story-cast-generation-overlay .story-cast-progress-ring strong {
    font-size: 24px;
}

.story-cast-generation-overlay h2 {
    margin: 0;
    color: #fff7fb;
    font-family: var(--story-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.12;
}

.story-cast-generation-overlay h2::first-line {
    color: #fff7fb;
}

.story-cast-generation-overlay p {
    margin: 0;
    color: var(--story-card-copy);
    line-height: 1.45;
}

.story-cast-generation-steps {
    display: grid;
    gap: 12px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 194, 218, 0.22);
    text-align: left;
}

.story-cast-generation-steps span {
    color: var(--story-card-muted);
    font-size: 14px;
}

.story-cast-generation-steps span::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 12px;
    border-radius: 50%;
    background: rgba(255, 247, 250, 0.34);
}

.story-cast-generation-steps span.is-active {
    color: var(--story-pink);
}

.story-cast-generation-steps span.is-active::before {
    background: var(--story-pink);
    box-shadow: 0 0 14px rgba(255, 105, 172, 0.76);
}

.story-cast-watch-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.story-cast-watch-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.story-cast-download-button {
    border-color: rgba(255, 112, 164, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 92, 151, 0.18), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.035);
    color: #fff7fb;
}

.story-cast-details-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.story-cast-button-spinner {
    animation: story-cast-progress-spin 1s linear infinite;
}

.story-cast-episode-summary h2,
.story-cast-episode-summary p {
    margin: 0;
}

.story-cast-episode-summary h2 {
    color: #fff7fb;
    font-family: var(--story-serif);
    font-size: 30px;
    font-weight: 500;
}

.story-cast-episode-summary p {
    margin-top: 10px;
    color: rgba(255, 247, 250, 0.62);
}

.story-cast-player-meta span {
    color: var(--story-pink);
    font-size: 14px;
}

.story-cast-player-meta strong {
    color: #fff7fb;
    font-family: var(--story-serif);
    font-size: 42px;
    font-weight: 500;
}

.story-cast-player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 22px;
    background: rgba(8, 4, 10, 0.28);
    text-align: center;
}

.story-cast-player-overlay h1,
.story-cast-player-overlay p {
    margin: 0;
}

.story-cast-player-overlay h1 {
    font-family: var(--story-serif);
    font-size: 52px;
    font-weight: 500;
}

.story-cast-player-overlay p {
    color: rgba(255, 247, 250, 0.7);
    font-size: 20px;
}

.story-cast-player-overlay--bottom {
    place-items: start;
    align-content: end;
    padding: 42px;
    text-align: left;
}

.story-cast-player-overlay--bottom span {
    color: var(--story-pink);
}

.story-cast-watch-panel {
    display: grid;
    gap: 22px;
    align-content: center;
    padding: 28px;
    border: 1px solid var(--story-card-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 92, 150, 0.12), transparent 46%),
        linear-gradient(135deg, rgba(255, 117, 166, 0.05), transparent 42%),
        var(--story-card-bg);
    box-shadow: var(--story-card-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-progress-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-self: start;
    box-sizing: border-box;
    gap: 22px;
    height: calc(var(--story-cast-player-height) + var(--story-cast-progress-extra-height));
    min-height: calc(
        var(--story-cast-player-min-height) + var(--story-cast-progress-extra-height)
    );
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--story-card-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 92, 150, 0.12), transparent 46%),
        linear-gradient(135deg, rgba(255, 117, 166, 0.05), transparent 42%),
        var(--story-card-bg);
    box-shadow: var(--story-card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.story-cast-progress-panel > h2 {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #fff4fa;
    font-family: var(--story-serif);
    font-size: 33px;
    font-weight: 500;
}

.story-cast-progress-panel > h2 svg {
    width: 16px;
    height: 16px;
    color: var(--story-pink);
}

.story-cast-progress-list {
    display: grid;
    gap: 12px;
    min-height: 0;
    margin-right: -10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-color: rgba(255, 112, 164, 0.42) transparent;
    scrollbar-width: thin;
}

.story-cast-progress-list::-webkit-scrollbar {
    width: 6px;
}

.story-cast-progress-list::-webkit-scrollbar-track {
    background: transparent;
}

.story-cast-progress-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 112, 164, 0.42);
}

.story-cast-progress-item {
    display: grid;
    grid-template-columns: 118px 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 96px;
    padding: 0 18px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 112, 164, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font: inherit;
    text-align: left;
}

.story-cast-progress-item.is-actionable {
    cursor: pointer;
}

.story-cast-progress-item.is-actionable:hover {
    border-color: rgba(255, 112, 164, 0.34);
    background: rgba(255, 255, 255, 0.055);
}

.story-cast-progress-item.is-current {
    border-color: rgba(255, 112, 164, 0.58);
    background: rgba(255, 112, 164, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 112, 164, 0.18),
        0 0 22px rgba(255, 71, 150, 0.12);
}

.story-cast-progress-item.is-generating {
    border-color: rgba(255, 101, 171, 0.75);
    box-shadow: 0 0 18px rgba(255, 75, 151, 0.18);
}

.story-cast-progress-item.is-unlocked {
    border-color: rgba(255, 112, 164, 0.34);
    background: rgba(255, 255, 255, 0.045);
}

.story-cast-progress-item.is-unlocked .story-cast-progress-thumb {
    filter: saturate(0.82) brightness(0.78);
}

.story-cast-progress-item.is-unlocked .story-cast-progress-thumb > svg {
    background: rgba(12, 5, 15, 0.7);
    color: rgba(255, 214, 232, 0.92);
}

.story-cast-progress-item.is-unlocked:hover {
    border-color: rgba(255, 112, 164, 0.52);
    background: rgba(255, 112, 164, 0.075);
}

.story-cast-progress-thumb {
    display: grid;
    position: relative;
    height: 96px;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)),
        var(
            --story-cast-progress-thumb,
            radial-gradient(circle at 50% 42%, rgba(255, 105, 176, 0.2), rgba(9, 6, 11, 0.95))
        )
        center / cover no-repeat;
}

.story-cast-progress-item.is-locked .story-cast-progress-thumb {
    filter: grayscale(1) brightness(0.45);
}

.story-cast-progress-thumb > svg {
    width: 31px;
    height: 31px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 103, 169, 0.88);
    color: #fff;
    box-shadow: 0 0 16px rgba(255, 80, 151, 0.55);
}

.story-cast-progress-item.is-locked .story-cast-progress-thumb > svg {
    background: rgba(0, 0, 0, 0.58);
    color: rgba(255, 255, 255, 0.76);
}

.story-cast-progress-item span,
.story-cast-progress-item strong,
.story-cast-progress-item em {
    display: block;
}

.story-cast-progress-item span {
    color: rgba(255, 205, 226, 0.82);
    font-size: 14px;
}

.story-cast-progress-item strong {
    margin-top: 5px;
    color: rgba(255, 247, 250, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.story-cast-progress-item em {
    margin-top: 5px;
    color: var(--story-pink);
    font-size: 12px;
    font-style: normal;
}

.story-cast-progress-item small {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: rgba(255, 247, 250, 0.56);
}

.story-cast-progress-item small svg {
    width: 19px;
    height: 19px;
}

.story-cast-mini-progress {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(30, 17, 28, 0.95) 0 55%, transparent 56%),
        conic-gradient(var(--story-pink) var(--story-progress), rgba(255, 255, 255, 0.22) 0);
    animation: story-cast-progress-spin 1.1s linear infinite;
}

.story-cast-progress-thumb .story-cast-mini-progress {
    width: 32px;
    height: 32px;
}

.story-cast-progress-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    font: inherit;
    text-align: left;
}

.story-cast-progress-note > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--story-pink);
}

.story-cast-progress-note strong,
.story-cast-progress-note span {
    display: block;
}

.story-cast-progress-note strong {
    color: rgba(255, 247, 250, 0.86);
    font-weight: 500;
}

.story-cast-progress-note span {
    margin-top: 4px;
    color: rgba(255, 247, 250, 0.58);
}

.story-cast-progress-note--action {
    width: 100%;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.story-cast-progress-note--action:hover {
    border-color: rgba(255, 112, 164, 0.58);
    background: rgba(255, 112, 164, 0.08);
    box-shadow: 0 0 22px rgba(255, 71, 150, 0.12);
}

.story-cast-progress-note--action > svg:last-child {
    margin-left: auto;
}

.story-cast-progress-note--action strong {
    color: #fff4fa;
}

.story-cast-progress-note--action span {
    color: var(--story-pink);
}

.story-cast-watch-panel h2,
.story-cast-watch-panel p {
    margin: 0;
}

.story-cast-watch-panel h2 {
    font-family: var(--story-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: 1.12;
}

.story-cast-watch-panel p {
    color: var(--story-card-copy);
    line-height: 1.65;
}

.story-cast-end-overlay {
    position: absolute;
    top: 62px;
    right: 42px;
    z-index: 5;
    display: grid;
    width: min(260px, 30%);
    gap: 16px;
    justify-items: center;
    padding: 28px 26px 24px;
    border: 1px solid var(--story-card-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 92, 150, 0.16), transparent 44%),
        linear-gradient(135deg, rgba(255, 74, 143, 0.05), transparent 46%),
        var(--story-card-bg);
    box-shadow: var(--story-card-shadow);
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-cast-end-overlay h2,
.story-cast-end-overlay p {
    margin: 0;
}

.story-cast-end-overlay h2 {
    font-family: var(--story-serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.12;
}

.story-cast-end-overlay p {
    color: var(--story-card-copy);
    font-size: 15px;
    line-height: 1.45;
}

.story-cast-end-overlay .story-cast-upload-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
}

.story-cast-ready-overlay {
    top: 50%;
    width: min(320px, 34%);
    transform: translateY(-50%);
}

.story-cast-auto-next {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 13px;
    padding: 2px 0 0;
    color: rgba(255, 247, 250, 0.7);
    font-size: 13px;
    line-height: 1.35;
}

.story-cast-countdown-ring {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    box-shadow:
        0 0 22px rgba(255, 78, 143, 0.28),
        inset 0 0 22px rgba(0, 0, 0, 0.42);
}

.story-cast-countdown-ring::before {
    inset: 6px;
}

.story-cast-countdown-ring strong {
    font-size: 25px;
}

.story-cast-end-status {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 112, 164, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 247, 250, 0.82);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.story-cast-end-status .story-cast-mini-progress {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.story-cast-secondary-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 112, 164, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 247, 250, 0.78);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.story-cast-secondary-action:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.story-cast-secondary-action--inline {
    width: fit-content;
    margin-top: 18px;
}

.story-cast-secondary-action svg {
    width: 18px;
    height: 18px;
    color: var(--story-pink);
}

.story-cast-customize-panel {
    align-content: stretch;
}

.story-cast-assets-layout {
    display: grid;
    max-width: 1180px;
    margin: 52px auto 0;
    gap: 28px;
}

.story-cast-assets-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.story-cast-assets-heading span,
.story-cast-selected-copy > span {
    color: var(--story-pink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-cast-assets-heading h1 {
    margin: 8px 0 0;
    color: #fff7fb;
    font-family: var(--story-serif);
    font-size: clamp(42px, 4.4vw, 72px);
    font-weight: 500;
    line-height: 0.95;
}

.story-cast-assets-preview-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid rgba(255, 112, 164, 0.38);
    border-radius: 999px;
    background: rgba(12, 5, 15, 0.48);
    color: rgba(255, 247, 250, 0.88);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.story-cast-assets-preview-link svg {
    width: 17px;
    height: 17px;
    color: var(--story-pink);
}

.story-cast-assets-state,
.story-cast-assets-empty {
    display: grid;
    min-height: 330px;
    place-items: center;
    gap: 14px;
    padding: 34px;
    border: 1px solid rgba(255, 112, 164, 0.22);
    border-radius: 18px;
    background: rgba(12, 5, 15, 0.58);
    box-shadow: var(--story-card-shadow);
    text-align: center;
}

.story-cast-assets-state p,
.story-cast-assets-empty p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 239, 247, 0.7);
    line-height: 1.6;
}

.story-cast-assets-state button {
    padding: 11px 18px;
    border: 1px solid rgba(255, 112, 164, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff7fb;
}

.story-cast-assets-empty h2 {
    margin: 0;
    color: #fff7fb;
    font-family: var(--story-serif);
    font-size: 40px;
    font-weight: 500;
}

.story-cast-cast-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 14px;
}

.story-cast-cast-avatar {
    appearance: none;
    display: grid;
    min-width: 88px;
    gap: 9px;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 247, 250, 0.76);
    cursor: pointer;
    font: inherit;
}

.story-cast-cast-avatar img,
.story-cast-cast-avatar > svg {
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255, 112, 164, 0.28);
    border-radius: 50%;
    background: rgba(15, 7, 17, 0.86);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
    object-fit: cover;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.story-cast-cast-avatar > svg {
    padding: 19px;
    color: rgba(255, 178, 212, 0.78);
}

.story-cast-cast-avatar.is-selected img,
.story-cast-cast-avatar.is-selected > svg {
    border-color: var(--story-rose);
    box-shadow:
        0 0 0 4px rgba(255, 42, 122, 0.16),
        0 16px 34px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.story-cast-cast-avatar.is-failed img,
.story-cast-cast-avatar.is-failed > svg {
    border-color: rgba(255, 176, 46, 0.58);
}

.story-cast-cast-avatar span {
    font-size: 13px;
    white-space: nowrap;
}

.story-cast-selected-asset {
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(340px, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.story-cast-selected-media {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 18px;
    background: #08040b;
    box-shadow: var(--story-card-shadow);
    text-decoration: none;
}

.story-cast-selected-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-cast-selected-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.54)),
        radial-gradient(circle at 50% 52%, transparent 48%, rgba(0, 0, 0, 0.22));
    pointer-events: none;
}

.story-cast-selected-media-status {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 112, 164, 0.26);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 247, 250, 0.9);
    backdrop-filter: blur(10px);
}

.story-cast-selected-media-status svg {
    width: 17px;
    height: 17px;
}

.story-cast-selected-copy {
    display: grid;
    align-content: center;
    gap: 22px;
    padding: 34px;
    border: 1px solid rgba(255, 112, 164, 0.24);
    border-radius: 18px;
    background: rgba(12, 5, 15, 0.68);
    box-shadow: var(--story-card-shadow);
}

.story-cast-selected-copy h2 {
    margin: 0;
    color: #fff7fb;
    font-family: var(--story-serif);
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 500;
    line-height: 0.98;
}

.story-cast-selected-copy dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.story-cast-selected-copy dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 247, 250, 0.1);
}

.story-cast-selected-copy dt {
    color: rgba(255, 239, 247, 0.58);
    font-size: 14px;
}

.story-cast-selected-copy dd {
    margin: 0;
    color: rgba(255, 247, 250, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.story-cast-selected-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.story-cast-customize-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.story-cast-customize-heading button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 247, 250, 0.9);
    cursor: pointer;
    place-items: center;
}

.story-cast-customize-heading button:hover {
    border-color: rgba(255, 112, 164, 0.48);
    background: rgba(255, 112, 164, 0.1);
}

.story-cast-customize-heading svg {
    width: 20px;
    height: 20px;
}

.story-cast-twist-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--story-card-copy);
}

.story-cast-twist-option input {
    accent-color: var(--story-rose);
}

.story-cast-custom-input {
    box-sizing: border-box;
    width: 100%;
    resize: none;
    padding: 16px;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff7fb;
    font: inherit;
}

.story-cast-duration-group {
    display: grid;
    gap: 10px;
}

.story-cast-duration-group > span {
    color: var(--story-card-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.story-cast-duration-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.story-cast-duration-option {
    display: grid;
    min-height: 68px;
    place-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 112, 164, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--story-card-copy);
    cursor: pointer;
    font: inherit;
}

.story-cast-duration-option strong,
.story-cast-duration-option small {
    line-height: 1.1;
}

.story-cast-duration-option strong {
    color: #fff7fb;
    font-size: 18px;
    font-weight: 700;
}

.story-cast-duration-option small {
    color: var(--story-card-muted);
    font-size: 12px;
}

.story-cast-duration-option.is-selected {
    border-color: var(--story-pink);
    background: rgba(255, 84, 153, 0.12);
    box-shadow: 0 0 18px rgba(255, 83, 154, 0.18);
}

.story-cast-upload-panel::before {
    content: "";
    position: absolute;
    top: 58px;
    right: calc(-1 * clamp(102px, 7.6vw, 138px));
    bottom: 28px;
    left: -28px;
    z-index: -1;
    border-radius: 34px 0 0 34px;
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 92, 143, 0.12), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.76) 34%, rgba(0, 0, 0, 0.56));
    filter: blur(0.2px);
}

.story-cast-upload-panel::after {
    content: "";
    position: absolute;
    top: -50px;
    left: -100px;
    z-index: -2;
    width: 450px;
    height: 450px;
    background: radial-gradient(
        circle,
        rgba(236, 63, 153, 0.12) 0%,
        rgba(236, 63, 153, 0) 70%
    );
    filter: blur(60px);
    pointer-events: none;
}

.story-cast-step {
    padding: 5px 14px;
    border: 1px solid rgba(255, 42, 122, 0.3);
    border-radius: 20px;
    background: rgba(255, 42, 122, 0.03);
    box-shadow: 0 0 10px rgba(255, 42, 122, 0.2);
    color: var(--story-rose);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.story-cast-heading {
    margin: 0 0 16px;
    font-family: var(--story-serif);
    font-size: clamp(52px, 3.45vw, 62px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.story-cast-title-glow {
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 42, 122, 0.6))
        drop-shadow(0 0 25px rgba(255, 42, 122, 0.35));
}

.story-cast-story-word {
    display: inline-flex;
    align-items: flex-start;
    white-space: nowrap;
}

.story-cast-gradient-text {
    display: inline-block;
    background: linear-gradient(180deg, #ff78c0 0%, #ff5eb3 45%, #d81b75 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--story-serif);
    font-weight: 700;
    -webkit-text-fill-color: transparent;
}

.story-cast-glowing-star {
    width: 38px;
    height: 38px;
    margin-left: 7px;
    color: var(--story-rose);
    filter: drop-shadow(0 0 5px rgba(255, 42, 122, 0.8))
        drop-shadow(0 0 13px rgba(255, 42, 122, 0.48));
    vertical-align: 0.42em;
}

.story-cast-subcopy {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.story-cast-dropzone {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    min-height: clamp(210px, 25vh, 274px);
    place-items: center;
    padding: clamp(34px, 4vh, 54px) 30px;
    border: 1px solid var(--story-card-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 92, 150, 0.13), transparent 46%),
        linear-gradient(135deg, rgba(255, 74, 143, 0.05), transparent 46%),
        var(--story-card-bg);
    box-shadow: var(--story-card-shadow);
    text-align: center;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.story-cast-dropzone:hover {
    border-color: rgba(255, 178, 212, 0.68);
    box-shadow:
        var(--story-card-shadow),
        0 0 26px rgba(255, 80, 151, 0.18);
}

.story-cast-dropzone-inner {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    text-align: center;
}

.story-cast-upload-icon {
    display: grid;
    width: clamp(54px, 5.9vh, 62px);
    height: clamp(54px, 5.9vh, 62px);
    place-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    margin-bottom: clamp(14px, 1.8vh, 20px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: #fff4fa;
    box-shadow: inset 0 0 8px rgba(255, 42, 122, 0.05);
}

.story-cast-upload-icon svg {
    width: 31px;
    height: 31px;
}

.story-cast-drop-title {
    max-width: 84%;
    margin-top: 0;
    overflow: hidden;
    color: #fff4fa;
    font-family: var(--story-serif);
    font-size: clamp(26px, 3.2vh, 30px);
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-cast-drop-copy,
.story-cast-drop-format {
    color: var(--story-card-copy);
    font-size: 16px;
    line-height: 1.4;
}

.story-cast-drop-format {
    font-size: 15px;
    font-weight: 500;
    color: var(--story-card-muted);
}

.story-cast-upload-button {
    display: inline-flex;
    width: 100%;
    height: auto;
    min-height: clamp(70px, 8vh, 92px);
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    padding: 16px 0;
    border: 0;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--story-hot) 0%, #fc2d67 50%, #f6297e 100%);
    box-shadow:
        0 4px 10px rgba(252, 45, 103, 0.2),
        0 12px 28px rgba(252, 45, 103, 0.4),
        0 25px 60px rgba(252, 45, 103, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: clamp(20px, 2.45vh, 24px);
    font-family: var(--story-button);
    font-weight: 700;
    letter-spacing: 0;
    transition:
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.3s ease,
        box-shadow 0.25s ease;
}

.story-cast-upload-button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow:
        0 4px 15px rgba(252, 45, 103, 0.3),
        0 15px 35px rgba(252, 45, 103, 0.5),
        0 30px 70px rgba(252, 45, 103, 0.3);
}

.story-cast-upload-button:disabled,
.story-cast-upload-button:disabled:hover {
    transform: none;
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
}

.story-cast-upload-button svg {
    width: 12px;
    height: 12px;
    color: #fff4fa;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.72));
}

.story-cast-upload-button-icon {
    width: 28px;
    height: 28px;
    margin-top: -1px;
    filter: none;
}

.story-cast-button-sparkles {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7))
        drop-shadow(0 0 9px rgba(236, 63, 153, 0.58));
}

.story-cast-button-sparkles svg:nth-child(2) {
    margin-top: -8px;
}

.story-cast-sample {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    margin: 16px 0 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
    transition:
        color 0.2s ease,
        border-bottom-color 0.2s ease;
}

.story-cast-sample svg {
    width: 20px;
    height: 20px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.story-cast-sample:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.story-cast-sample:hover svg {
    color: var(--story-rose);
    border-color: var(--story-rose);
}

.story-cast-dropzone,
.story-cast-upload-button,
.story-cast-sample,
.story-cast-sign-in {
    cursor: pointer;
}

@keyframes story-cast-scene-breathe {
    from {
        transform: scale(1.004) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.018) translate3d(-0.16%, -0.12%, 0);
    }
}

@keyframes story-cast-progress-spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes story-cast-step-breathe {
    0%,
    100% {
        box-shadow:
            inset 0 0 0 7px rgba(255, 82, 148, 0.1),
            0 0 0 0 rgba(255, 82, 148, 0);
    }

    50% {
        box-shadow:
            inset 0 0 0 6px rgba(255, 82, 148, 0.18),
            0 0 18px 3px rgba(255, 82, 148, 0.34);
    }
}

@media (max-width: 1400px) {
    .story-cast-shell {
        padding: 24px 40px 24px 24px;
    }

    .story-cast-header {
        grid-template-columns: 1fr auto;
    }

    .story-cast-hero {
        grid-template-columns: minmax(500px, 1fr) max-content;
    }

    .story-cast-character-info {
        padding-top: 80px;
    }

    .story-cast-upload-panel {
        gap: 10px;
        padding-top: clamp(38px, 6vh, 58px);
        padding-left: 0;
    }

    .story-cast-flow-panel,
    .story-cast-flow-panel--ready {
        width: clamp(460px, 36vw, 520px);
        gap: 12px;
        padding-top: clamp(38px, 6vh, 58px);
        padding-left: 0;
    }

    .story-cast-upload-panel::before {
        right: -64px;
    }

    .story-cast-heading {
        font-size: clamp(48px, 4.4vw, 58px);
    }

    .story-cast-ready-heading {
        font-size: clamp(44px, 4.8vw, 60px);
    }

    .story-cast-subcopy {
        font-size: 15px;
        line-height: 1.4;
    }

    .story-cast-dropzone {
        min-height: clamp(178px, 24vh, 220px);
        padding: 28px 24px;
    }

    .story-cast-upload-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .story-cast-drop-title {
        font-size: 27px;
    }

    .story-cast-upload-button {
        min-height: 64px;
        padding: 12px 0;
        font-size: 20px;
    }

    .story-cast-preview-card--ready {
        grid-template-columns: 72px 28px 72px 1fr;
        gap: 12px;
        margin: 6px 0 4px;
        padding: 10px 14px;
    }

    .story-cast-generate-button {
        min-height: 62px;
        padding: 10px 20px;
    }

    .story-cast-generate-button span {
        font-size: 21px;
    }
}

@media (max-height: 820px) and (min-width: 981px) {
    .story-cast-paywall-backdrop {
        padding: 16px 24px;
    }

    .story-cast-paywall {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 34px 46px 30px;
    }

    .story-cast-paywall h2 {
        font-size: clamp(46px, 4.6vw, 62px);
    }

    .story-cast-paywall > p {
        margin: 10px 0 22px;
        font-size: 16px;
    }

    .story-cast-plan-grid {
        gap: 16px;
    }

    .story-cast-plan-card,
    .story-cast-plan-card.is-featured {
        min-height: 318px;
        gap: 10px;
        padding: 28px 24px 22px;
    }

    .story-cast-plan-card.is-selected {
        transform: translateY(-4px);
    }

    .story-cast-plan-card h3 {
        font-size: 28px;
    }

    .story-cast-plan-card strong {
        font-size: 46px;
    }

    .story-cast-plan-card p {
        font-size: 14px;
        line-height: 1.35;
    }

    .story-cast-plan-card ul {
        gap: 9px;
        margin: 4px 0;
        padding-top: 14px;
    }

    .story-cast-plan-card li {
        font-size: 13px;
    }

    .story-cast-plan-button {
        padding: 12px 18px;
    }

    .story-cast-plan-card.is-selected .story-cast-plan-button {
        min-height: 52px;
    }
}

@media (max-width: 980px) {
    .story-cast-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .story-cast-shell {
        height: auto;
        min-height: 100vh;
        padding: 19px 16px 30px;
    }

    .story-cast-header {
        display: flex;
        justify-content: space-between;
    }

    .story-cast-logo {
        font-size: 31px;
    }

    .story-cast-sign-in {
        display: none;
    }

    .story-cast-actions {
        gap: 10px;
    }

    .story-cast-credit-balance {
        min-height: 34px;
        padding: 0 10px;
    }

    .story-cast-assets-action {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .story-cast-credit-balance span {
        display: none;
    }

    .story-cast-hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .story-cast-left,
    .story-cast-upload-panel {
        height: auto;
        min-height: auto;
    }

    .story-cast-left {
        order: 2;
        padding-bottom: 24px;
    }

    .story-cast-upload-panel {
        order: 1;
    }

    .story-cast-character-info {
        width: 100%;
        padding-top: 34px;
    }

    .story-cast-tags {
        width: min(100%, 338px);
    }

    .story-cast-character-info h2 {
        font-size: 52px;
    }

    .story-cast-speech-layer {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(100%, 520px);
        height: 150px;
        margin-top: 24px;
    }

    .story-cast-speech {
        width: min(326px, calc(100vw - 94px));
        min-height: 92px;
        padding: 20px 25px;
        font-size: 22px;
    }

    .story-cast-voice-orb {
        left: min(342px, calc(100vw - 96px));
        top: 50px;
        width: 64px;
        height: 64px;
    }

    .story-cast-speaking {
        left: min(342px, calc(100vw - 112px));
        top: 122px;
        font-size: 19px;
    }

    .story-cast-preview-card {
        position: relative;
        width: clamp(420px, 25vw, 520px);
        grid-template-columns: 76px 22px 76px 1fr;
        gap: 12px;
        margin-top: 20px;
        padding: 14px;
    }

    .story-cast-thumb {
        width: 76px;
        height: auto;
        aspect-ratio: 0.79;
    }

    .story-cast-preview-copy {
        min-width: 88px;
        margin-left: 0;
    }

    .story-cast-preview-copy p {
        font-size: 15px;
    }

    .story-cast-upload-panel {
        width: 100%;
        padding: 44px 0 34px;
    }

    .story-cast-flow-panel,
    .story-cast-flow-panel--ready {
        width: 100%;
        padding: 44px 0 34px;
    }

    .story-cast-progress-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
        padding: 28px 20px;
    }

    .story-cast-step-list {
        width: 100%;
    }

    .story-cast-progress-step {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        padding: 0 12px;
    }

    .story-cast-progress-step p {
        overflow-wrap: anywhere;
    }

    .story-cast-upload-panel::before {
        inset: 24px -16px 20px -16px;
        border-radius: 24px;
    }

    .story-cast-heading {
        font-size: clamp(54px, 15vw, 68px);
    }

    .story-cast-dropzone,
    .story-cast-upload-button {
        width: 100%;
    }

    .story-cast-dropzone {
        min-height: 220px;
    }

    .story-cast-upload-button {
        min-height: 72px;
        font-size: 20px;
    }

    .story-cast-paywall-backdrop {
        align-items: start;
        overflow-y: auto;
        padding: 18px 12px;
    }

    .story-cast-paywall {
        max-height: calc(100vh - 36px);
        max-height: calc(100dvh - 36px);
        padding: 42px 18px 24px;
    }

    .story-cast-paywall h2 {
        font-size: clamp(42px, 13vw, 56px);
    }

    .story-cast-balance-panel {
        gap: 14px;
        margin-bottom: 24px;
        padding: 16px;
    }

    .story-cast-plan-grid {
        grid-template-columns: 1fr;
    }

    .story-cast-plan-card,
    .story-cast-plan-card.is-featured {
        min-height: auto;
        padding: 30px 24px 24px;
        transform: none;
    }

    .story-cast-assets-layout {
        margin-top: 34px;
        gap: 22px;
    }

    .story-cast-assets-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-cast-assets-heading h1 {
        font-size: clamp(44px, 13vw, 60px);
    }

    .story-cast-assets-preview-link {
        min-height: 42px;
    }

    .story-cast-cast-rail {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .story-cast-selected-asset {
        grid-template-columns: 1fr;
    }

    .story-cast-selected-media {
        min-height: 360px;
        aspect-ratio: 0.82;
    }

    .story-cast-selected-copy {
        padding: 24px 18px;
    }

    .story-cast-selected-copy h2 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .story-cast-selected-copy dl > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .story-cast-selected-copy dd {
        text-align: left;
    }

    .story-cast-selected-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .story-cast-watch-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-cast-watch-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .story-cast-watch-actions .story-cast-details-button {
        flex: 1 1 190px;
    }
}
.pms-root {
    min-height: 100vh;
    background-color: #0B0B0E;
    color: #FAFAF9;
    font-family: system-ui, -apple-system, sans-serif;
}

.pms-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ===== Success Icon ===== */
.pms-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.pms-icon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 213, 131, 0.13) 0%, rgba(50, 213, 131, 0.02) 100%);
}

.pms-icon-circle {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(180deg, #32D583, #059669);
    box-shadow: 0 8px 24px -4px rgba(50, 213, 131, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pms-icon-check {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

/* ===== Message ===== */
.pms-message {
    text-align: center;
}

.pms-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #FAFAF9;
}

.pms-subtitle {
    font-size: 14px;
    color: #6B6B70;
    margin: 0;
    line-height: 1.5;
}

.pms-subtitle strong {
    color: #FAFAF9;
}

/* ===== Unified Card ===== */
.pms-card {
    width: 100%;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 16px;
    overflow: hidden;
}

/* Apple cancel section removed: subscription already cancelled post-migration */

/* -- Web management section -- */
.pms-card-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pms-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pms-info-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818CF8;
    flex-shrink: 0;
}

.pms-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #A1A1AA;
}

.pms-info-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pms-info-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #A1A1AA;
}

.pms-info-bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pms-bullet-green {
    color: #22C55E;
}

.pms-bullet-purple {
    color: #818CF8;
}

/* ===== Main CTA ===== */
.pms-cta {
    width: 100%;
    height: 50px;
    border-radius: 24px;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.25);
    border: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.15s;
}

.pms-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}
.design-page li {
  margin-right: 8px;
  cursor: pointer;
}

.fip {
  grid-auto-rows: 50px;
  grid-template-columns: repeat(6, 1fr);
  /* grid-template-columns: repeat(6, 50px); */
}
.fip h2 {
  font-weight: 600;
  grid-column: span 6;
  margin-top: 12px;
  margin-bottom: 6px;
  padding-left: 6px;
  font-size: 20px;
}
.fip > div {
  cursor: pointer;
  border-radius: 36px;
  padding: 14px;
}

.fp .tabs {
  position: sticky;
}

.img-results img {
  cursor: pointer;
}

#muscle_modal .bg-grid {
  background-image: linear-gradient(white 0.1em, transparent 0.1em), linear-gradient(90deg, white 0.1em, transparent 0.1em);
  background-size: 3em 3em;
}@layer base {
  :root {
    /* Landing page specific tokens (copied from tender-links) */
    --lp-gradient-start: 330 100% 50%;
    --lp-gradient-end: 271 76% 53%;
    --lp-glow: 330 100% 50%;
    --lp-surface: 270 12% 14%;
    --lp-surface-hover: 270 12% 18%;
  }
}

@layer components {
  /* imagetovideo LP theme: match welcome-popup colors */
  .lp-imagetovideo {
    /* copy from welcome-popup/src/index.css (HSL) */
    --background: hsl(260 20% 8%);
    --foreground: hsl(270 15% 92%);

    --card: hsl(260 18% 12%);
    --card-foreground: hsl(270 15% 92%);

    --popover: hsl(260 18% 14%);
    --popover-foreground: hsl(270 15% 92%);

    --primary: hsl(330 80% 60%);
    --primary-foreground: hsl(0 0% 100%);

    --secondary: hsl(260 16% 16%);
    --secondary-foreground: hsl(270 15% 85%);

    --muted: hsl(260 14% 18%);
    --muted-foreground: hsl(260 10% 50%);

    --accent: hsl(270 50% 55%);
    --accent-foreground: hsl(0 0% 100%);

    --destructive: hsl(0 84.2% 60.2%);
    --destructive-foreground: hsl(210 40% 98%);

    --border: hsl(260 14% 20%);
    --input: hsl(260 14% 20%);
    --ring: hsl(330 80% 60%);

    /* map welcome-popup sidebar tokens into this project's sidebar variables */
    --sidebar: hsl(260 20% 10%);
    --sidebar-foreground: hsl(260 10% 50%);
    --sidebar-primary: hsl(330 80% 60%);
    --sidebar-primary-foreground: hsl(0 0% 100%);
    --sidebar-accent: hsl(260 16% 16%);
    --sidebar-accent-foreground: hsl(270 15% 92%);
    --sidebar-border: hsl(260 14% 16%);
    --sidebar-ring: hsl(330 80% 60%);

    /* match welcome-popup typography */
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
  }

  .lp-gradient-text {
    background: linear-gradient(
      135deg,
      hsl(var(--lp-gradient-start)),
      hsl(var(--lp-gradient-end))
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .lp-gradient-bg {
    background: linear-gradient(
      135deg,
      hsl(var(--lp-gradient-start)),
      hsl(var(--lp-gradient-end))
    );
  }

  .lp-gradient-border {
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
  }

  .lp-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
      135deg,
      hsl(var(--lp-gradient-start)),
      hsl(var(--lp-gradient-end))
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .lp-glow {
    box-shadow:
      0 0 40px -10px hsl(var(--lp-glow) / 0.4),
      0 0 80px -20px hsl(var(--lp-gradient-end) / 0.2);
  }

  .lp-pulse-glow {
    animation: lp-pulse 2s ease-in-out infinite;
  }

  @keyframes lp-pulse {
    0%,
    100% {
      box-shadow: 0 0 20px -5px hsl(var(--lp-glow) / 0.3);
    }
    50% {
      box-shadow: 0 0 40px -5px hsl(var(--lp-glow) / 0.6);
    }
  }

  @keyframes lp-shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

  .lp-shimmer {
    background: linear-gradient(
      90deg,
      transparent 0%,
      hsl(var(--lp-gradient-start) / 0.4) 50%,
      transparent 100%
    );
    background-size: 200% 100%;
    animation: lp-shimmer 1.5s ease-in-out infinite;
  }

  .lp-floating-heart {
    position: absolute;
    bottom: 100%;
    animation: lp-float-up 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 20;
  }

  @keyframes lp-float-up {
    0% {
      opacity: 1;
      transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% {
      opacity: 1;
      transform: translateY(-40px) scale(1.3) rotate(15deg);
    }
    100% {
      opacity: 0;
      transform: translateY(-80px) scale(0.8) rotate(-10deg);
    }
  }

  .lp-heart-bounce {
    animation: lp-heart-pop 0.6s cubic-bezier(0.17, 0.67, 0.21, 1.69) forwards;
  }

  @keyframes lp-heart-pop {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(2.2) rotate(-15deg);
    }
    50% {
      transform: scale(1.8) rotate(10deg);
    }
    70% {
      transform: scale(2) rotate(-5deg);
    }
    100% {
      transform: scale(1);
    }
  }

  .lp-label-pop {
    animation: lp-label-scale 0.8s cubic-bezier(0.17, 0.67, 0.21, 1.69) forwards;
  }

  @keyframes lp-label-scale {
    0% {
      transform: scale(1);
    }
    40% {
      transform: scale(1.6);
    }
    100% {
      transform: scale(1);
    }
  }

  .lp-bar-flash {
    animation: lp-bar-glow 0.8s ease-out;
  }

  @keyframes lp-bar-glow {
    0% {
      box-shadow: 0 0 0 0 hsl(var(--lp-gradient-start) / 0.6);
    }
    50% {
      box-shadow:
        0 0 30px 8px hsl(var(--lp-gradient-start) / 0.5),
        0 0 60px 16px hsl(var(--lp-gradient-end) / 0.3);
    }
    100% {
      box-shadow: 0 0 0 0 transparent;
    }
  }

  .lp-tip-explode {
    animation: lp-tip-pop 0.6s ease-out;
  }

  @keyframes lp-tip-pop {
    0% {
      transform: translateY(-50%) scale(1);
    }
    40% {
      transform: translateY(-50%) scale(2.5);
    }
    100% {
      transform: translateY(-50%) scale(1);
    }
  }

  .lp-score-popup {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    animation: lp-popup 1.2s cubic-bezier(0.17, 0.67, 0.21, 1.69) forwards;
    background: linear-gradient(135deg, hsl(var(--lp-gradient-start)), hsl(var(--lp-gradient-end)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px hsl(var(--lp-gradient-start) / 0.5));
    z-index: 30;
  }

  @keyframes lp-popup {
    0% {
      opacity: 0;
      transform: translate(-50%, 0) scale(0.5);
    }
    30% {
      opacity: 1;
      transform: translate(-50%, -16px) scale(1.4);
    }
    70% {
      opacity: 1;
      transform: translate(-50%, -24px) scale(1.1);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -40px) scale(0.8);
    }
  }

  .bg-lp-surface {
    background-color: hsl(var(--lp-surface));
  }

  .bg-lp-surface-hover:hover {
    background-color: hsl(var(--lp-surface-hover));
  }
}
