/* ============================================
   What If Tomorrow? Module Styles
   Series Finale Projection Component

   Aesthetic: "Championship Credential"
   Premium, high-stakes event pass feel
   ============================================ */

/* Import display font for championship numbers */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* === CSS Custom Properties === */
.whatif-tomorrow {
    --whatif-gold: #fbbf24;
    --whatif-gold-glow: rgba(251, 191, 36, 0.4);
    --whatif-success: #22c55e;
    --whatif-success-glow: rgba(34, 197, 94, 0.3);
    --whatif-warning: #f97316;
    --whatif-warning-glow: rgba(249, 115, 22, 0.3);
    --whatif-teal: #14b8a6;
    --whatif-teal-glow: rgba(20, 184, 166, 0.3);
    --whatif-surface-dark: #0c1222;
    --whatif-surface-mid: #141d2e;
    --whatif-surface-light: #1a2744;
    --whatif-border: rgba(255, 255, 255, 0.08);
    --whatif-border-accent: rgba(20, 184, 166, 0.3);
    --whatif-text-primary: #f1f5f9;
    --whatif-text-secondary: #94a3b8;
    --whatif-text-muted: #64748b;
}

/* === Container === */
.whatif-tomorrow {
    background: var(--whatif-surface-dark);
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--whatif-border);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    position: relative;
}

/* === Collapsed State (Summary) === */
.whatif-collapsed-header {
    display: block;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(135deg, var(--whatif-surface-mid) 0%, var(--whatif-surface-dark) 100%);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease;
}

.whatif-collapsed-header::-webkit-details-marker {
    display: none;
}

.whatif-collapsed-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-teal) 20%,
        var(--whatif-teal) 80%,
        transparent 100%);
    opacity: 0.8;
}

.whatif-tomorrow-invited .whatif-collapsed-header::before {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-success) 20%,
        var(--whatif-success) 80%,
        transparent 100%);
}

.whatif-tomorrow-below-cutline .whatif-collapsed-header::before {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-warning) 20%,
        var(--whatif-warning) 80%,
        transparent 100%);
}

.whatif-collapsed-header:hover {
    background:
        linear-gradient(135deg, var(--whatif-surface-light) 0%, var(--whatif-surface-mid) 100%);
}

.whatif-collapsed-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatif-collapsed-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.whatif-tomorrow-invited .whatif-collapsed-rank {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(145deg, #16a34a 0%, #15803d 50%, #166534 100%);
    color: #ffffff;
    box-shadow:
        0 4px 16px rgba(22, 163, 74, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset;
}

.whatif-tomorrow-below-cutline .whatif-collapsed-rank {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        linear-gradient(145deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
    color: #ffffff;
    box-shadow:
        0 4px 16px rgba(234, 88, 12, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset;
}

.whatif-collapsed-rank-number {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
}

.whatif-collapsed-rank-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 1px;
}

.whatif-collapsed-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.whatif-collapsed-title {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--whatif-text-primary);
    text-transform: uppercase;
}

.whatif-collapsed-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
}

.whatif-tomorrow-invited .whatif-collapsed-status i {
    color: #4ade80;
}

.whatif-tomorrow-below-cutline .whatif-collapsed-status i {
    color: #fb923c;
}

.whatif-collapsed-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--whatif-surface-light);
    border: 1px solid var(--whatif-border);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.2s ease;
}

.whatif-collapsed-toggle i {
    font-size: 0.75rem;
    color: var(--whatif-text-secondary);
    transition: transform 0.3s ease;
}

.whatif-tomorrow[open] .whatif-collapsed-toggle i {
    transform: rotate(180deg);
}

.whatif-tomorrow[open] .whatif-collapsed-header {
    border-bottom: 1px solid var(--whatif-border);
}

/* Expanded content wrapper */
.whatif-expanded {
    display: block;
}

/* Subtle grid pattern overlay */
.whatif-tomorrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.5;
}

/* === Header === */
.whatif-header {
    background:
        linear-gradient(135deg, var(--whatif-surface-mid) 0%, var(--whatif-surface-dark) 100%);
    padding: 1.25rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--whatif-border);
}

/* Accent glow line at top */
.whatif-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-teal) 20%,
        var(--whatif-teal) 80%,
        transparent 100%);
    opacity: 0.8;
}

.whatif-title-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.whatif-title {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--whatif-text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-transform: uppercase;
}

.whatif-title i {
    font-size: 1.25rem;
    color: var(--whatif-teal);
    filter: drop-shadow(0 0 8px var(--whatif-teal-glow));
}

.whatif-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--whatif-text-secondary);
    letter-spacing: 0.02em;
}

/* === Body === */
.whatif-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

/* === Section Base === */
.whatif-section {
    background: var(--whatif-surface-mid);
    border-radius: 0.875rem;
    padding: 1.25rem;
    border: 1px solid var(--whatif-border);
    position: relative;
}

/* Your Card Section - Prominent glow */
.whatif-card-section {
    border-color: var(--whatif-teal);
    border-width: 2px;
    box-shadow:
        0 0 30px rgba(20, 184, 166, 0.35),
        0 0 60px rgba(20, 184, 166, 0.15),
        inset 0 0 30px rgba(20, 184, 166, 0.03);
    animation: cardSectionGlow 3s ease-in-out infinite;
}

@keyframes cardSectionGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(20, 184, 166, 0.35),
            0 0 60px rgba(20, 184, 166, 0.15),
            inset 0 0 30px rgba(20, 184, 166, 0.03);
    }
    50% {
        box-shadow:
            0 0 40px rgba(20, 184, 166, 0.45),
            0 0 80px rgba(20, 184, 166, 0.2),
            inset 0 0 40px rgba(20, 184, 166, 0.05);
    }
}

/* === Cards Navigator === */
.whatif-cards-navigator {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.whatif-cards-nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--whatif-surface-dark);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Footer navigation (below cards) */
.whatif-cards-nav-footer {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.whatif-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--whatif-border);
    background: var(--whatif-surface-mid);
    color: var(--whatif-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatif-nav-btn:hover:not(:disabled) {
    background: var(--whatif-teal);
    border-color: var(--whatif-teal);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}

.whatif-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.whatif-nav-indicator {
    font-size: 0.75rem;
    color: var(--whatif-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.whatif-cards-viewport {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* === Card Dividers (Between Card Sections) === */
.whatif-card-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
}

.whatif-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--whatif-border), transparent);
}

/* Reuse existing stat pill styles from sidebar */
.whatif-card-divider .whatif-divider-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    white-space: nowrap;
}

.whatif-card-divider .whatif-divider-stat i {
    font-size: 0.6875rem;
}

.whatif-section-header {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--whatif-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--whatif-border);
}

.whatif-section-header i {
    color: var(--whatif-teal);
    font-size: 0.875rem;
}

/* === Player Status Section === */
.whatif-status-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
}

.whatif-player-summary {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex: 1;
    min-width: 240px;
}

/* Seed Badge - The Hero Element */
.whatif-rank-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatif-rank-badge:hover {
    transform: scale(1.05);
}

/* Invited state - Premium green glow */
.whatif-rank-badge.whatif-rank-invited {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(145deg, #16a34a 0%, #15803d 50%, #166534 100%);
    color: #ffffff;
    box-shadow:
        0 8px 24px rgba(22, 163, 74, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset,
        0 0 40px rgba(22, 163, 74, 0.2);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Below cutline - Amber urgency */
.whatif-rank-badge.whatif-rank-below-cutline {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        linear-gradient(145deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
    color: #ffffff;
    box-shadow:
        0 8px 24px rgba(234, 88, 12, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1) inset, 0 0 40px rgba(22, 163, 74, 0.2); }
    50% { box-shadow: 0 8px 32px rgba(22, 163, 74, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 0 60px rgba(22, 163, 74, 0.3); }
}

.whatif-rank-number {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
}

.whatif-rank-label {
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 2px;
}

.whatif-player-details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Player Avatar in summary section */
.whatif-player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--whatif-border-accent);
    flex-shrink: 0;
}

.whatif-player-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--whatif-text-primary);
    letter-spacing: -0.01em;
}

.whatif-player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.whatif-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--whatif-text-secondary);
}

.whatif-stat i {
    color: var(--whatif-teal);
    font-size: 0.75rem;
    opacity: 0.8;
}

.whatif-stat strong {
    color: var(--whatif-text-primary);
    font-weight: 600;
}

/* Status Indicator - Right Side */
.whatif-status-indicator {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.whatif-invited-badge,
.whatif-not-invited-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Invited badge - Premium feel */
.whatif-invited-badge {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2) 0%, rgba(22, 163, 74, 0.1) 100%);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.whatif-invited-badge i {
    color: #4ade80;
}

.whatif-not-invited-badge {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.whatif-not-invited-badge i {
    color: #fb923c;
}

.whatif-cutline-info {
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
}

.whatif-cutline-info strong {
    color: var(--whatif-text-primary);
    font-weight: 600;
}

/* === Card Section === */
.whatif-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.whatif-card-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--whatif-surface-light);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--whatif-border-accent);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient shimmer */
.whatif-card-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.whatif-card-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--whatif-text-muted);
    position: relative;
}

.whatif-card-value {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--whatif-teal);
    line-height: 1.1;
    position: relative;
    text-shadow: 0 0 30px var(--whatif-teal-glow);
}

.whatif-card-total {
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
    position: relative;
}

.whatif-cardmates {
    flex: 1;
    min-width: 220px;
}

.whatif-cardmates-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--whatif-text-secondary);
    margin-bottom: 0.625rem;
}

.whatif-cardmate-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.whatif-cardmate {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: var(--whatif-surface-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--whatif-border);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.whatif-cardmate:hover {
    border-color: var(--whatif-border-accent);
}

/* Current player highlight - prominent glow */
.whatif-cardmate.whatif-cardmate-current {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0.08) 100%);
    border-color: var(--whatif-teal);
    border-width: 2px;
    box-shadow:
        0 0 20px rgba(20, 184, 166, 0.4),
        0 0 40px rgba(20, 184, 166, 0.2),
        inset 0 0 20px rgba(20, 184, 166, 0.05);
    animation: currentPlayerGlow 2s ease-in-out infinite;
}

@keyframes currentPlayerGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(20, 184, 166, 0.4),
            0 0 40px rgba(20, 184, 166, 0.2),
            inset 0 0 20px rgba(20, 184, 166, 0.05);
    }
    50% {
        box-shadow:
            0 0 25px rgba(20, 184, 166, 0.5),
            0 0 50px rgba(20, 184, 166, 0.3),
            inset 0 0 25px rgba(20, 184, 166, 0.08);
    }
}

.whatif-cardmate-seed {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--whatif-teal);
    min-width: 36px;
    letter-spacing: 0.02em;
}

/* Cardmate Avatar */
.whatif-cardmate-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--whatif-border-accent);
    flex-shrink: 0;
}

.whatif-cardmate-name {
    flex: 1;
    color: var(--whatif-text-primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Current player name styling */
.whatif-cardmate-name-current {
    font-weight: 600;
}

.whatif-you-tag {
    font-size: 0.75rem;
    color: var(--whatif-teal);
    margin-left: 0.25rem;
    font-weight: 500;
}

.whatif-cardmate-points {
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* === Skins Section === */
.whatif-skins-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.whatif-skins-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--whatif-surface-light);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.25);
    position: relative;
}

.whatif-skins-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.whatif-skins-value {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--whatif-success);
    line-height: 1.1;
    position: relative;
    text-shadow: 0 0 24px var(--whatif-success-glow);
    letter-spacing: 0.02em;
}

.whatif-skins-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--whatif-text-muted);
    position: relative;
}

.whatif-skins-detail {
    flex: 1;
    min-width: 150px;
    font-size: 0.9rem;
    color: var(--whatif-text-secondary);
}

.whatif-skins-breakdown {
    display: flex;
    gap: 1.25rem;
}

.whatif-skins-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
}

.whatif-skins-stat i {
    color: var(--whatif-teal);
    opacity: 0.8;
}

/* === Points Targets Section === */
.whatif-targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
}

.whatif-target-item {
    background: var(--whatif-surface-light);
    border-radius: 0.625rem;
    padding: 1rem 0.75rem;
    text-align: center;
    border: 1px solid var(--whatif-border);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.whatif-target-item:hover {
    border-color: var(--whatif-border-accent);
    transform: translateY(-2px);
}

.whatif-target-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--whatif-teal);
    opacity: 0.5;
}

.whatif-target-value {
    display: block;
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--whatif-teal);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.whatif-target-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--whatif-text-muted);
    margin-top: 0.25rem;
    text-transform: lowercase;
}

/* Cutline target - Amber accent */
.whatif-target-cutline::before {
    background: var(--whatif-warning);
}

.whatif-target-cutline .whatif-target-value {
    color: #fb923c;
    text-shadow: 0 0 20px var(--whatif-warning-glow);
}

/* Buffer target - Green accent */
.whatif-target-buffer::before {
    background: var(--whatif-success);
}

.whatif-target-buffer .whatif-target-value {
    color: #4ade80;
    text-shadow: 0 0 20px var(--whatif-success-glow);
}

/* === Info/Details Section === */
.whatif-info-section {
    background: transparent;
    border: none;
    padding: 0;
}

.whatif-details {
    background: var(--whatif-surface-mid);
    border-radius: 0.625rem;
    border: 1px solid var(--whatif-border);
}

.whatif-details summary {
    padding: 0.875rem 1rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--whatif-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    transition: color 0.2s ease;
}

.whatif-details summary:hover {
    color: var(--whatif-text-primary);
}

.whatif-details summary::-webkit-details-marker {
    display: none;
}

.whatif-details summary::after {
    content: '+';
    margin-left: auto;
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--whatif-text-muted);
    transition: transform 0.2s ease;
}

.whatif-details[open] summary::after {
    content: '−';
}

.whatif-details summary i {
    color: var(--whatif-teal);
    opacity: 0.8;
}

.whatif-details-content {
    padding: 0 1rem 1rem;
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
    line-height: 1.7;
}

.whatif-details-content p {
    margin: 0 0 0.75rem;
}

.whatif-details-content p:last-child {
    margin-bottom: 0;
}

.whatif-details-content strong {
    color: var(--whatif-text-primary);
    font-weight: 600;
}

.whatif-disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--whatif-border);
}

.whatif-disclaimer i {
    color: var(--whatif-text-muted);
}

/* === Footer === */
.whatif-footer {
    padding: 1.25rem 1.5rem;
    background: var(--whatif-surface-mid);
    border-top: 1px solid var(--whatif-border);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.whatif-action-btn {
    min-width: 200px;
    background: transparent;
    border: 1px solid var(--whatif-teal);
    color: var(--whatif-teal);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.whatif-action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
    transform: translateY(-1px);
}

/* === Sign-In & No Standing States === */
.whatif-tomorrow-signin .whatif-header,
.whatif-tomorrow-no-standing .whatif-header {
    background: linear-gradient(135deg, var(--whatif-surface-mid) 0%, var(--whatif-surface-dark) 100%);
}

.whatif-tomorrow-signin .whatif-header::before,
.whatif-tomorrow-no-standing .whatif-header::before {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-text-muted) 20%,
        var(--whatif-text-muted) 80%,
        transparent 100%);
    opacity: 0.3;
}

.whatif-signin-prompt,
.whatif-no-standing-prompt {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.whatif-signin-icon,
.whatif-no-standing-icon {
    width: 80px;
    height: 80px;
    background: var(--whatif-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--whatif-border);
}

.whatif-signin-icon i,
.whatif-no-standing-icon i {
    font-size: 2rem;
    color: var(--whatif-text-muted);
}

.whatif-signin-title,
.whatif-no-standing-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--whatif-text-primary);
    margin-bottom: 0.625rem;
}

.whatif-signin-message,
.whatif-no-standing-message {
    font-size: 0.9rem;
    color: var(--whatif-text-secondary);
    max-width: 340px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* === Status-based Header Colors === */
.whatif-tomorrow-invited .whatif-header::before {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-success) 20%,
        var(--whatif-success) 80%,
        transparent 100%);
}

.whatif-tomorrow-below-cutline .whatif-header::before {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--whatif-warning) 20%,
        var(--whatif-warning) 80%,
        transparent 100%);
}

/* === Responsive === */
@media (max-width: 640px) {
    .whatif-header {
        padding: 1rem 1.25rem;
    }

    .whatif-title {
        font-size: 1.5rem;
    }

    .whatif-body {
        padding: 1.25rem;
        gap: 1rem;
    }

    .whatif-section {
        padding: 1rem;
    }

    .whatif-status-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .whatif-player-summary {
        min-width: unset;
        width: 100%;
    }

    .whatif-status-indicator {
        text-align: left;
        width: 100%;
        align-items: flex-start;
    }

    .whatif-card-info {
        flex-direction: column;
        gap: 1rem;
    }

    .whatif-card-number {
        align-self: flex-start;
    }

    .whatif-cardmates {
        min-width: unset;
        width: 100%;
    }

    .whatif-skins-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .whatif-targets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .whatif-footer {
        padding: 1rem 1.25rem;
    }

    .whatif-action-btn {
        width: 100%;
    }

    /* Collapsed state mobile */
    .whatif-collapsed-header {
        padding: 0.875rem 1rem;
    }

    .whatif-collapsed-content {
        gap: 0.75rem;
    }

    .whatif-collapsed-rank {
        width: 44px;
        height: 44px;
    }

    .whatif-collapsed-rank-number {
        font-size: 1rem;
    }

    .whatif-collapsed-rank-label {
        font-size: 0.4375rem;
    }

    .whatif-collapsed-title {
        font-size: 1rem;
    }

    .whatif-collapsed-status {
        font-size: 0.75rem;
    }

    .whatif-collapsed-toggle {
        width: 28px;
        height: 28px;
    }

    .whatif-collapsed-toggle i {
        font-size: 0.625rem;
    }
}

/* === Light Mode Overrides === */
/* Note: This component is designed dark-first for the "credential" aesthetic */
/* Light mode gets a subdued treatment that still feels premium */

[data-theme="light"] .whatif-tomorrow {
    --whatif-surface-dark: #f8fafc;
    --whatif-surface-mid: #ffffff;
    --whatif-surface-light: #f1f5f9;
    --whatif-border: rgba(0, 0, 0, 0.08);
    --whatif-border-accent: rgba(20, 184, 166, 0.4);
    --whatif-text-primary: #0f172a;
    --whatif-text-secondary: #475569;
    --whatif-text-muted: #64748b;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .whatif-tomorrow::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

[data-theme="light"] .whatif-invited-badge {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0.06) 100%);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.3);
}

[data-theme="light"] .whatif-not-invited-badge {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(234, 88, 12, 0.06) 100%);
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.3);
}

[data-theme="light"] .whatif-cardmate.whatif-cardmate-current {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.04) 100%);
}

[data-theme="light"] .whatif-target-cutline .whatif-target-value {
    color: #ea580c;
}

[data-theme="light"] .whatif-target-buffer .whatif-target-value {
    color: #16a34a;
}

[data-theme="light"] .whatif-skins-value {
    color: #16a34a;
}

[data-theme="light"] .whatif-action-btn {
    border-color: var(--whatif-teal);
    color: #0f766e;
}

[data-theme="light"] .whatif-action-btn:hover {
    background: rgba(20, 184, 166, 0.08);
}

/* Light mode collapsed state */
[data-theme="light"] .whatif-tomorrow-invited .whatif-collapsed-status i {
    color: #15803d;
}

[data-theme="light"] .whatif-tomorrow-below-cutline .whatif-collapsed-status i {
    color: #c2410c;
}

/* ============================================
   Skins Stakes Ladder & Badges
   Visual comparison of stakes across cards
   ============================================ */

/* === Inline Skins Badges === */
.whatif-skins-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: auto;
    white-space: nowrap;
}

.whatif-skins-badge i {
    font-size: 0.625rem;
}

.whatif-skins-badge-unit {
    opacity: 0.7;
    font-weight: 400;
}

/* Up badge - Green glow */
.whatif-skins-badge-up {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.whatif-skins-badge-up i {
    color: #4ade80;
}

/* Down badge - Orange/warning */
.whatif-skins-badge-down {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.08) 100%);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.whatif-skins-badge-down i {
    color: #fb923c;
}

/* === Card Below Section === */
.whatif-card-below-section {
    border-color: rgba(249, 115, 22, 0.15);
}

.whatif-card-below-section .whatif-section-header i {
    color: var(--whatif-warning);
}

.whatif-card-below-hint {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--whatif-text-muted);
    margin-left: 0.5rem;
}

.whatif-card-above-hint {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--whatif-text-muted);
    margin-left: 0.5rem;
}

.whatif-cutline-target-hint {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--whatif-warning);
    margin-left: 0.5rem;
}

.whatif-card-below-number {
    border-color: rgba(249, 115, 22, 0.25);
}

.whatif-card-below-number .whatif-card-value {
    color: var(--whatif-warning);
    text-shadow: 0 0 30px var(--whatif-warning-glow);
}

.whatif-cardmate-below {
    border-color: rgba(249, 115, 22, 0.15);
}

.whatif-cardmate-below:hover {
    border-color: rgba(249, 115, 22, 0.35);
}

.whatif-cardmate-below .whatif-cardmate-seed {
    color: var(--whatif-warning);
}

/* === Skins Stakes Ladder === */
.whatif-skins-ladder-section {
    background: var(--whatif-surface-mid);
    border: 1px solid var(--whatif-border);
    overflow: hidden;
}

.whatif-skins-ladder {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.whatif-ladder-rung {
    display: grid;
    grid-template-columns: 140px 90px 1fr 80px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--whatif-surface-light);
    border-radius: 0.625rem;
    border: 1px solid var(--whatif-border);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.whatif-ladder-rung:hover {
    transform: translateX(4px);
}

/* Ladder Meta (icon + label + YOU tag) */
.whatif-ladder-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatif-ladder-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: var(--whatif-surface-mid);
    border: 1px solid var(--whatif-border);
}

.whatif-ladder-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--whatif-text-primary);
}

.whatif-ladder-you {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--whatif-teal);
    color: #ffffff;
}

/* Ladder Value */
.whatif-ladder-value {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--whatif-text-primary);
}

.whatif-ladder-value span {
    font-size: 0.75rem;
    opacity: 0.6;
    font-family: system-ui, sans-serif;
    font-weight: 400;
}

.whatif-ladder-value-highlight {
    color: var(--whatif-teal);
    text-shadow: 0 0 20px var(--whatif-teal-glow);
}

/* Ladder Bar */
.whatif-ladder-bar-container {
    height: 8px;
    background: var(--whatif-surface-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.whatif-ladder-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Bar shimmer animation */
.whatif-ladder-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: barShimmer 2s ease-in-out infinite;
}

@keyframes barShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Gold bar for Card 1 */
.whatif-ladder-bar-gold {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* Green bar for Card Above */
.whatif-ladder-bar-up {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* Teal bar for Current */
.whatif-ladder-bar-current {
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #0d9488 100%);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
    animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(20, 184, 166, 0.4); }
    50% { box-shadow: 0 0 20px rgba(20, 184, 166, 0.6); }
}

/* Orange bar for Card Below */
.whatif-ladder-bar-down {
    background: linear-gradient(90deg, #c2410c 0%, #ea580c 50%, #c2410c 100%);
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.25);
}

/* Ladder Pot */
.whatif-ladder-pot {
    font-size: 0.75rem;
    color: var(--whatif-text-secondary);
    text-align: right;
    white-space: nowrap;
}

/* === Rung Variants === */

/* Card 1 - Gold crown treatment */
.whatif-ladder-card1 {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--whatif-surface-light) 100%);
}

.whatif-ladder-card1 .whatif-ladder-icon {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(251, 191, 36, 0.5);
    color: #ffffff;
}

.whatif-ladder-card1 .whatif-ladder-value {
    color: var(--whatif-gold);
    text-shadow: 0 0 20px var(--whatif-gold-glow);
}

/* Card Above - Green upward */
.whatif-ladder-above {
    border-color: rgba(34, 197, 94, 0.2);
}

.whatif-ladder-above .whatif-ladder-icon {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.whatif-ladder-above .whatif-ladder-value {
    color: var(--whatif-success);
}

/* Current Card - Highlighted */
.whatif-ladder-current {
    border-color: var(--whatif-teal);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, var(--whatif-surface-light) 100%);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

.whatif-ladder-current .whatif-ladder-icon {
    background: var(--whatif-teal);
    border-color: rgba(20, 184, 166, 0.5);
    color: #ffffff;
}

/* Card Below - Orange warning */
.whatif-ladder-below {
    border-color: rgba(249, 115, 22, 0.2);
}

.whatif-ladder-below .whatif-ladder-icon {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: #fb923c;
}

.whatif-ladder-below .whatif-ladder-value {
    color: var(--whatif-warning);
}

/* Skins Context */
.whatif-skins-context {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--whatif-border);
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
}

.whatif-skins-context span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.whatif-skins-context i {
    color: var(--whatif-teal);
    opacity: 0.8;
}

/* === Events to Card 1 Callout === */
.whatif-events-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Crown pattern watermark */
.whatif-events-callout::before {
    content: '\f521'; /* crown icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--whatif-gold);
    opacity: 0.06;
    pointer-events: none;
}

.whatif-events-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.whatif-events-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.whatif-events-headline {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.whatif-events-number {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--whatif-gold);
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px var(--whatif-gold-glow);
}

.whatif-events-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--whatif-text-primary);
}

.whatif-events-detail {
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
    margin-top: 0.25rem;
}

.whatif-events-detail strong {
    color: var(--whatif-text-primary);
}

/* === Card 1 Target Item === */
.whatif-target-card1::before {
    background: var(--whatif-gold);
}

.whatif-target-card1 .whatif-target-value {
    color: var(--whatif-gold);
    text-shadow: 0 0 20px var(--whatif-gold-glow);
}

/* === Responsive Ladder === */
@media (max-width: 640px) {
    .whatif-ladder-rung {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .whatif-ladder-meta {
        grid-column: 1;
    }

    .whatif-ladder-value {
        grid-column: 2;
        text-align: right;
        font-size: 1.25rem;
    }

    .whatif-ladder-bar-container {
        grid-column: 1 / -1;
        height: 6px;
    }

    .whatif-ladder-pot {
        display: none;
    }

    .whatif-skins-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .whatif-section-header {
        flex-wrap: wrap;
    }

    .whatif-events-callout {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .whatif-events-callout::before {
        display: none;
    }

    .whatif-events-headline {
        justify-content: center;
    }
}

/* === Light Mode Ladder Overrides === */
[data-theme="light"] .whatif-skins-badge-up {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0.04) 100%);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.25);
}

[data-theme="light"] .whatif-skins-badge-down {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(234, 88, 12, 0.04) 100%);
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.25);
}

[data-theme="light"] .whatif-ladder-card1 .whatif-ladder-value {
    color: #d97706;
}

[data-theme="light"] .whatif-ladder-above .whatif-ladder-value {
    color: #15803d;
}

[data-theme="light"] .whatif-ladder-below .whatif-ladder-value {
    color: #c2410c;
}

[data-theme="light"] .whatif-events-number {
    color: #d97706;
}

[data-theme="light"] .whatif-target-card1 .whatif-target-value {
    color: #d97706;
}

/* ============================================
   Sidebar Compact Stakes (Clean Card Style)
   No bars - just clean rows with values
   ============================================ */

.whatif-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatif-sidebar-stakes,
.whatif-sidebar-targets {
    --whatif-gold: #fbbf24;
    --whatif-gold-glow: rgba(251, 191, 36, 0.4);
    --whatif-success: #22c55e;
    --whatif-success-glow: rgba(34, 197, 94, 0.3);
    --whatif-warning: #f97316;
    --whatif-teal: #14b8a6;
    --whatif-teal-glow: rgba(20, 184, 166, 0.3);
    --whatif-surface-dark: #0c1222;
    --whatif-surface-mid: #141d2e;
    --whatif-surface-light: #1a2744;
    --whatif-border: rgba(255, 255, 255, 0.08);
    --whatif-text-primary: #f1f5f9;
    --whatif-text-secondary: #94a3b8;
    --whatif-text-muted: #64748b;
}

/* Stakes List Container */
.whatif-stakes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual Stakes Row */
.whatif-stakes-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--whatif-surface-light);
    border-radius: 0.5rem;
    border: 1px solid var(--whatif-border);
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Colored background bar using ::after */
.whatif-stakes-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--bar-width, 0%);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure content is above the bar */
.whatif-stakes-row > * {
    position: relative;
    z-index: 1;
}

.whatif-stakes-row:hover {
    transform: translateX(2px);
}

/* Card 1 Row - Gold accent */
.whatif-stakes-row.whatif-stakes-card1 {
    border-color: rgba(251, 191, 36, 0.3);
}

.whatif-stakes-row.whatif-stakes-card1::after {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    opacity: 0.18;
}

/* Card Above Row - Green accent */
.whatif-stakes-row.whatif-stakes-above {
    border-color: rgba(34, 197, 94, 0.25);
}

.whatif-stakes-row.whatif-stakes-above::after {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

/* Current Player Row - Teal highlight */
.whatif-stakes-row.whatif-stakes-current {
    border-color: var(--whatif-teal);
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.15);
}

.whatif-stakes-row.whatif-stakes-current::after {
    background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%);
    opacity: 0.18;
}

/* Card Below Row - Orange/warning accent */
.whatif-stakes-row.whatif-stakes-below {
    border-color: rgba(249, 115, 22, 0.2);
}

.whatif-stakes-row.whatif-stakes-below::after {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

/* Meta (icon + label + you badge) */
.whatif-stakes-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.whatif-stakes-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: var(--whatif-surface-mid);
    border: 1px solid var(--whatif-border);
    color: var(--whatif-text-muted);
}

.whatif-stakes-icon-gold {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(251, 191, 36, 0.5);
    color: #ffffff;
}

.whatif-stakes-icon-current {
    background: var(--whatif-teal);
    border-color: rgba(20, 184, 166, 0.5);
    color: #ffffff;
}

.whatif-stakes-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--whatif-text-primary);
    white-space: nowrap;
}

.whatif-stakes-you {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--whatif-teal);
    color: #ffffff;
}

/* Value (per hole) */
.whatif-stakes-value {
    text-align: right;
    white-space: nowrap;
}

.whatif-stakes-amount {
    font-family: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--whatif-text-primary);
    letter-spacing: 0.02em;
}

.whatif-stakes-row.whatif-stakes-card1 .whatif-stakes-amount {
    color: var(--whatif-gold);
    text-shadow: 0 0 12px var(--whatif-gold-glow);
}

.whatif-stakes-row.whatif-stakes-above .whatif-stakes-amount {
    color: var(--whatif-success);
}

.whatif-stakes-row.whatif-stakes-current .whatif-stakes-amount {
    color: var(--whatif-teal);
    text-shadow: 0 0 12px var(--whatif-teal-glow);
}

.whatif-stakes-row.whatif-stakes-below .whatif-stakes-amount {
    color: var(--whatif-warning);
}

.whatif-stakes-unit {
    font-size: 0.75rem;
    color: var(--whatif-text-muted);
    font-family: system-ui, sans-serif;
}

/* Pot */
.whatif-stakes-pot {
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* === Additional Icon Variants === */
.whatif-stakes-icon-up {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.whatif-stakes-icon-down {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: #fb923c;
}

/* Context Footer */
.whatif-stakes-context {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--whatif-border);
    font-size: 0.8125rem;
    color: var(--whatif-text-secondary);
}

.whatif-stakes-context span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.whatif-stakes-context i {
    color: var(--whatif-teal);
    opacity: 0.8;
}

/* === Stakes Dividers (Point Differentials Between Cards) === */
.whatif-stakes-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0;
    margin: 0.125rem 0;
    position: relative;
}

.whatif-stakes-divider::before,
.whatif-stakes-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--whatif-border), transparent);
}

.whatif-divider-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    white-space: nowrap;
}

.whatif-divider-stat i {
    font-size: 0.625rem;
}

/* Move up - green */
.whatif-divider-up {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Buffer - teal/safe */
.whatif-divider-buffer {
    background: rgba(20, 184, 166, 0.12);
    color: var(--whatif-teal);
    border: 1px solid rgba(20, 184, 166, 0.25);
}

/* Drop zone - warning */
.whatif-divider-down {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

/* Neutral/tied - gray */
.whatif-divider-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Light mode divider overrides */
[data-theme="light"] .whatif-divider-up {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .whatif-divider-buffer {
    background: rgba(20, 184, 166, 0.1);
    color: #0d9488;
    border-color: rgba(20, 184, 166, 0.3);
}

[data-theme="light"] .whatif-divider-down {
    background: rgba(249, 115, 22, 0.1);
    color: #c2410c;
    border-color: rgba(249, 115, 22, 0.3);
}

/* Compact Targets Grid */
.whatif-targets-compact {
    grid-template-columns: repeat(2, 1fr);
}

/* Compact Events Callout */
.whatif-events-compact {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
}

.whatif-events-compact .whatif-events-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.whatif-events-compact .whatif-events-number {
    font-size: 1.5rem;
}

.whatif-events-compact .whatif-events-text {
    font-size: 0.875rem;
}

/* Light Mode Sidebar Overrides */
[data-theme="light"] .whatif-sidebar-stakes,
[data-theme="light"] .whatif-sidebar-targets {
    --whatif-surface-dark: #f8fafc;
    --whatif-surface-mid: #ffffff;
    --whatif-surface-light: #f1f5f9;
    --whatif-border: rgba(0, 0, 0, 0.08);
    --whatif-text-primary: #0f172a;
    --whatif-text-secondary: #475569;
    --whatif-text-muted: #64748b;
}

[data-theme="light"] .whatif-stakes-row.whatif-stakes-card1 .whatif-stakes-amount {
    color: #d97706;
}

[data-theme="light"] .whatif-stakes-row.whatif-stakes-above .whatif-stakes-amount {
    color: #15803d;
}

[data-theme="light"] .whatif-stakes-row.whatif-stakes-current .whatif-stakes-amount {
    color: #0d9488;
}

[data-theme="light"] .whatif-stakes-row.whatif-stakes-below .whatif-stakes-amount {
    color: #c2410c;
}

/* ==========================================================================
   What-If Hand Component - Fanned Card Display
   ========================================================================== */

.whatif-hand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Fanned Row - Matches hand-of-cards style */
.whatif-hand__row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 0.5rem;
    min-height: 160px; /* Taller for rectangular cards */
}

.whatif-hand__card {
    position: relative;
    margin-left: -18px; /* Tighter overlap for rectangular cards */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.whatif-hand__card:first-child {
    margin-left: 0;
}

/* Fan rotation for cards - matching hand-of-cards */
.whatif-hand__row > .whatif-hand__card:nth-child(1) { transform: rotate(-6deg); z-index: 5; }
.whatif-hand__row > .whatif-hand__card:nth-child(2) { transform: rotate(-3deg); z-index: 4; }
.whatif-hand__row > .whatif-hand__card:nth-child(3) { transform: rotate(0deg); z-index: 3; }
.whatif-hand__row > .whatif-hand__card:nth-child(4) { transform: rotate(3deg); z-index: 2; }
.whatif-hand__row > .whatif-hand__card:nth-child(5) { transform: rotate(6deg); z-index: 1; }

/* Hover: lift and straighten */
.whatif-hand__row > .whatif-hand__card:hover {
    transform: translateY(-4px) rotate(0deg) scale(1.1) !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 166, 156, 0.4);
}

/* Card Inner - Rectangular bag tag card (matches hand-of-cards style) */
.whatif-hand__card-inner {
    position: relative;
    width: 72px;
    height: 126px; /* Bag tag aspect ratio ~390:698 */
    border-radius: 8px;
    background: var(--whatif-surface-mid);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatif-hand__row > .whatif-hand__card:hover .whatif-hand__card-inner {
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
    border-color: var(--whatif-teal);
}

/* Avatar fallback in card (when no bag tag) - centered in card */
.whatif-hand__avatar {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bag Tag in card (fanned display) - full rectangular */
.whatif-hand__bagtag {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 6px;
}

/* Small profile photo overlay in corner (when bag tag is shown) */
.whatif-hand__photo-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--whatif-surface-dark);
    border: 2px solid var(--whatif-surface-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2;
}

.whatif-hand__photo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Handle PlayerAvatar popup button wrapper */
.whatif-hand__photo-overlay .player-avatar-popup-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
}

.whatif-hand__photo-overlay .player-avatar-popup-trigger::before {
    display: none; /* Hide the animated ring on mini photos */
}

/* Seed badge */
.whatif-hand__seed {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--whatif-surface-dark);
    color: var(--whatif-text-muted);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--whatif-surface-mid);
    z-index: 2;
}

/* Name below card */
.whatif-hand__name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--whatif-text-secondary);
    margin-top: 0.375rem;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Points below card (legacy) */
.whatif-hand__points {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--whatif-text-secondary);
    margin-top: 0.375rem;
    text-align: center;
}

/* You badge */
.whatif-hand__you-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--whatif-teal);
    color: white;
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

/* Current player card styling */
.whatif-hand__card--you .whatif-hand__card-inner {
    border-color: var(--whatif-teal);
    box-shadow:
        0 4px 16px rgba(20, 184, 166, 0.3),
        0 0 20px rgba(20, 184, 166, 0.2);
}

.whatif-hand__card--you .whatif-hand__points {
    color: var(--whatif-teal);
}

/* ==========================================================================
   What-If Hand Roster (Player List)
   ========================================================================== */

.whatif-hand__roster {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
    padding: 0.5rem 0;
}

.whatif-hand__roster-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.whatif-hand__roster-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Seed */
.whatif-hand__roster-seed {
    flex-shrink: 0;
    width: 28px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--whatif-text-muted);
    text-align: center;
}

/* Avatar */
.whatif-hand__roster-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

/* Bag Tag in roster */
.whatif-hand__roster-bagtag {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Info */
.whatif-hand__roster-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.whatif-hand__roster-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--whatif-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatif-hand__roster-name a {
    color: inherit;
    text-decoration: none;
}

.whatif-hand__roster-name a:hover {
    color: var(--whatif-teal);
}

.whatif-hand__you-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--whatif-teal);
    margin-left: 0.25rem;
}

/* Points */
.whatif-hand__roster-points {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--whatif-text-secondary);
}

/* Current player roster item */
.whatif-hand__roster-item--you {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.2);
}

.whatif-hand__roster-item--you .whatif-hand__roster-name {
    color: var(--whatif-teal);
}

.whatif-hand__roster-item--you .whatif-hand__roster-points {
    color: var(--whatif-teal);
}

/* Target (above) roster item */
.whatif-hand__roster-item--target {
    border-left: 3px solid #22c55e;
}

.whatif-hand__roster-item--target .whatif-hand__roster-points {
    color: #4ade80;
}

/* Below roster item */
.whatif-hand__roster-item--below {
    border-left: 3px solid #f97316;
    opacity: 0.85;
}

.whatif-hand__roster-item--below .whatif-hand__roster-points {
    color: #fb923c;
}

/* Light Mode Roster Overrides */
[data-theme="light"] .whatif-hand__roster-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .whatif-hand__roster-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .whatif-hand__roster-item--you {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.15);
}

[data-theme="light"] .whatif-hand__roster-item--target .whatif-hand__roster-points {
    color: #15803d;
}

[data-theme="light"] .whatif-hand__roster-item--below .whatif-hand__roster-points {
    color: #c2410c;
}

/* ==========================================================================
   Pace Tracker Section Styles
   ========================================================================== */

/* Pace section styling - extends base section */
.whatif-pace-section {
    background: var(--whatif-surface-mid);
    border: 1px solid var(--whatif-border);
}

/* Target hint text (e.g., "(at your avg)") */
.whatif-targets-grid .whatif-target-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--whatif-text-muted);
    margin-top: 0.125rem;
    font-weight: 400;
}

/* Callout base styles for pace status */
.whatif-callout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.whatif-callout i {
    flex-shrink: 0;
}

/* Success callout - green/on track */
.whatif-callout-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Warning callout - amber/needs more */
.whatif-callout-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Danger callout - red/at risk */
.whatif-callout-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Info callout - blue/informational */
.whatif-callout-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Muted callout - gray/unlikely */
.whatif-callout-muted {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Pace summary footer */
.whatif-pace-summary {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--whatif-border);
    font-size: 0.8125rem;
    color: var(--whatif-text-muted);
    text-align: center;
}

.whatif-pace-summary strong {
    color: var(--whatif-teal);
}

/* Light mode overrides for pace tracker */
[data-theme="light"] .whatif-callout-success {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.25);
}

[data-theme="light"] .whatif-callout-warning {
    background: rgba(251, 191, 36, 0.08);
    color: #b45309;
    border-color: rgba(251, 191, 36, 0.25);
}

[data-theme="light"] .whatif-callout-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .whatif-callout-info {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .whatif-callout-muted {
    background: rgba(107, 114, 128, 0.08);
    color: #4b5563;
    border-color: rgba(107, 114, 128, 0.25);
}

[data-theme="light"] .whatif-pace-summary strong {
    color: #0d9488;
}

