/* ─────────────────────────────────────────────────────────────────────────
   SCENARIO THEATRE (Two Futures) Styles
   ───────────────────────────────────────────────────────────────────────── */

.scenario-user-watermark:not(.d-none) {
    animation: scenario-watermark-pulse 2s ease-in-out 3;
}

/* Loading state */
.scenario-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Cards stagger animation */
.scenario-card {
    opacity: 0;
    transform: translateY(12px);
}

.scenario-card.loaded {
    animation: scenario-card-in .35s ease forwards;
}

@keyframes scenario-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scenario-cards .col-md-4:nth-child(1) .scenario-card.loaded {
    animation-delay: 0s;
}

.scenario-cards .col-md-4:nth-child(2) .scenario-card.loaded {
    animation-delay: .08s;
}

.scenario-cards .col-md-4:nth-child(3) .scenario-card.loaded {
    animation-delay: .16s;
}

/* Tooltip for slider labels */
.slider-label {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

/* Engine/industry info (power user) */
.scenario-engine-key,
.scenario-industry-key {
    font-size: .7rem;
    background: color-mix(in oklch, var(--highlight) 12%, transparent);
    padding: .1rem .3rem;
    border-radius: .25rem;
}

.scenario-theatre {
    position: relative;
}

/* Slider group styling */
.scenario-sliders {
    transition: box-shadow .2s ease;
}

.scenario-sliders:focus-within {
    box-shadow: var(--shadow-m), 0 0 0 2px color-mix(in oklch, var(--primary) 30%, transparent);
}

.scenario-slider-group {
    padding: .5rem;
    border-radius: .65rem;
    transition: background .15s ease;
}

.scenario-slider-group:hover {
    background: color-mix(in oklch, var(--highlight) 8%, transparent);
}

.scenario-slider {
    height: .6rem;
}

.scenario-slider::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    background: var(--bs-primary);
    border: 2px solid var(--bg-light);
    box-shadow: var(--shadow-s);
}

.scenario-slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background: var(--bs-primary);
    border: 2px solid var(--bg-light);
    box-shadow: var(--shadow-s);
}

.slider-bounds {
    font-size: .7rem;
    opacity: .65;
}

/* Scenario Cards */
.scenario-card {
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-m);
}

.scenario-card-base {
    border-width: 2px !important;
}

.scenario-card .scenario-fv-mid {
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.scenario-upside-badge {
    font-size: .8rem;
    padding: .35rem .7rem;
    border-radius: 50rem;
}

.scenario-assumptions-pill {
    font-size: .72rem;
    opacity: .75;
}

/* Narrative box */
.scenario-narrative {
    font-size: .92rem;
    line-height: 1.5;
    background: color-mix(in oklch, var(--primary) 5%, var(--bg-light));
    border-color: color-mix(in oklch, var(--primary) 20%, transparent) !important;
}

/* Range band visualization */
.scenario-range-band {
    position: relative;
}

.range-bar-container {
    border-radius: 50rem;
    overflow: visible;
}

.range-bar {
    left: 0;
    width: 100%;
    opacity: .25;
}

.range-marker {
    z-index: 2;
    transition: left .3s ease;
}

.range-marker-price {
    z-index: 3;
}

/* User watermark badge (pulse animation when shown) */
@keyframes scenario-watermark-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

/* Paywall blur treatment */
.scenario-paywalled .scenario-blur-target {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.scenario-cta-anchor {
    position: relative;
}

.scenario-paywall-cta {
    position: static;
    max-width: 520px;
    margin: .75rem auto 0;
    background: color-mix(in oklch, var(--bg-light) 92%, transparent);
    border: 1px solid color-mix(in oklch, var(--bs-primary) 18%, var(--bs-border-color));
    box-shadow: var(--shadow-m);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    z-index: 2;
}

.scenario-paywall-cta .btn {
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.scenario-paywalled .scenario-card {
    opacity: 1;
    transform: none;
}
