/* Google Fonts for Challenge Module */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Challenge Module Styles */
.challenge-module {
    /* Theme-aware colors - set via JS from league theme, with fallbacks */
    --challenge-primary: var(--theme-primary, #3b82f6);
    --challenge-primary-rgb: var(--theme-primary-rgb, 59, 130, 246);
    --challenge-primary-light-rgb: var(--theme-primary-light-rgb, 139, 172, 255);
    --challenge-gradient-end: var(--theme-gradient-end, #1d4ed8);

    /* Semantic colors */
    --challenge-danger: #ef4444;
    --challenge-danger-rgb: 239, 68, 68;
    --challenge-warning: #f59e0b;
    --challenge-warning-rgb: 245, 158, 11;

    /* Surface colors */
    --challenge-bg: var(--surface-2, #f8f9fa);
    --challenge-border: var(--theme-border, rgba(0, 0, 0, 0.1));
    --challenge-text: var(--theme-text-primary, #1f2937);
    --challenge-text-muted: var(--theme-text-secondary, #6b7280);
}

/* Active Battle Alert */
.active-battle-alert {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
}

.battle-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.battle-info {
    flex: 1;
}

.battle-info h5 {
    margin-bottom: 0.75rem;
}

.battle-info h5 .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.battle-info p {
    color: var(--challenge-text);
    margin-bottom: 0.5rem;
}

.opponent-tag {
    font-weight: 700;
    color: var(--challenge-primary);
}

/* ========================================
   BATTLE DOSSIER - Tactical Intel Briefing
   ======================================== */

/* Import Orbitron for military/tactical feel */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&display=swap');

.battle-dossier {
    position: relative;
    background: linear-gradient(145deg, #0a0e17 0%, #0d1117 50%, #0a0e17 100%);
    border: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.battle-dossier.same-card-alert {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow:
        0 0 30px rgba(255, 68, 68, 0.2),
        inset 0 0 60px rgba(255, 68, 68, 0.05);
    animation: danger-pulse 2s ease-in-out infinite;
}

@keyframes danger-pulse {
    0%, 100% { border-color: rgba(255, 68, 68, 0.6); }
    50% { border-color: rgba(255, 68, 68, 0.9); }
}

/* Scanline Effect */
.dossier-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(var(--challenge-primary-light-rgb), 0.03) 2px,
        rgba(var(--challenge-primary-light-rgb), 0.03) 4px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanline-scroll 8s linear infinite;
}

@keyframes scanline-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Hero Background */
.dossier-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.dossier-hero-bg .hero-tag-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: brightness(0.8) saturate(0.5);
}

.dossier-hero-bg .hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(10, 14, 23, 0.7) 50%,
        rgba(10, 14, 23, 0.95) 100%
    );
}

/* Dossier Content */
.dossier-content {
    position: relative;
    z-index: 5;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status Header */
.dossier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--challenge-primary-light-rgb), 0.2);
}

.status-indicator {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    color: #f59e0b;
    font-size: 1rem;
}

.status-indicator .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.status-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(var(--challenge-primary-light-rgb), 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-value {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.05em;
}

.tag-stakes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.stakes-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.stakes-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: rgb(var(--challenge-primary-light-rgb));
    text-shadow: 0 0 10px rgba(var(--challenge-primary-light-rgb), 0.5);
}

/* Same Card Banner */
.same-card-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 68, 68, 0.2) 20%,
        rgba(255, 68, 68, 0.3) 50%,
        rgba(255, 68, 68, 0.2) 80%,
        transparent 100%
    );
    border-top: 1px solid rgba(255, 68, 68, 0.5);
    border-bottom: 1px solid rgba(255, 68, 68, 0.5);
    animation: banner-glow 1.5s ease-in-out infinite alternate;
}

@keyframes banner-glow {
    0% { background-color: rgba(255, 68, 68, 0.1); }
    100% { background-color: rgba(255, 68, 68, 0.2); }
}

.same-card-banner .banner-icon {
    color: #ff4444;
    font-size: 1.25rem;
    animation: fire-flicker 0.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.same-card-banner .banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.same-card-banner .banner-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 900;
    color: #ff4444;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.same-card-banner .banner-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
}

/* Target Profile */
.target-profile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.target-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(var(--challenge-primary-light-rgb), 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.target-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--challenge-primary-light-rgb), 0.2);
    border-radius: 8px;
}

/* Player info stacked vertically */
.target-player-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    text-align: center;
}

.target-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(var(--challenge-primary-light-rgb), 0.4);
    flex-shrink: 0;
}

.target-avatar .player-avatar-popup-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.target-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.target-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.target-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

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

.target-name a:hover {
    color: #8bacff;
}

.target-tag {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #8bacff;
}

.target-tag .tag-hash {
    color: rgba(var(--challenge-primary-light-rgb), 0.5);
    font-weight: 400;
}

/* Opponent Bag Tag Art - Visible & Clickable (9:16 aspect ratio) */
.target-bag-tag-art {
    position: relative;
    width: 90px;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.target-bag-tag-art:hover {
    border-color: rgba(var(--challenge-primary-light-rgb), 0.7);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--challenge-primary-light-rgb), 0.3);
}

.target-bag-tag-art .hand-of-cards__mini-card {
    width: 100%;
    height: 100%;
}

.target-bag-tag-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.target-bag-tag-art:hover img {
    transform: scale(1.1);
}

.target-bag-tag-art .bag-tag-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.target-bag-tag-art:hover .bag-tag-overlay {
    opacity: 1;
}

.target-bag-tag-art .bag-tag-overlay i {
    color: rgb(var(--challenge-primary-light-rgb));
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(var(--challenge-primary-light-rgb), 0.5);
}

/* Intel Grid */
.intel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.intel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.intel-item.intel-positive {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.intel-item.intel-positive .intel-icon {
    color: #10b981;
}

.intel-item.intel-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.intel-item.intel-warning .intel-icon {
    color: #f59e0b;
}

.intel-item.intel-danger {
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
}

.intel-item.intel-danger .intel-icon {
    color: #ff4444;
}

.intel-item.intel-critical {
    border-color: rgba(var(--challenge-primary-light-rgb), 0.4);
    background: rgba(var(--challenge-primary-light-rgb), 0.1);
}

.intel-item.intel-critical .intel-icon {
    color: #8bacff;
}

.intel-item.intel-neutral {
    border-color: rgba(255, 255, 255, 0.15);
}

.intel-item.intel-neutral .intel-icon {
    color: rgba(255, 255, 255, 0.6);
}

.intel-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.intel-data {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.intel-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intel-value {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.intel-value.score-value {
    font-size: 1rem;
    font-weight: 700;
    color: #8bacff;
}

/* Strikes Display */
.intel-value.strikes-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strike-mark {
    font-size: 0.65rem;
    transition: all 0.2s ease;
}

.strike-mark.strike-inactive {
    color: rgba(255, 255, 255, 0.2);
    opacity: 0.5;
}

.strike-mark.strike-active {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
    animation: strike-glow 2s ease-in-out infinite;
}

@keyframes strike-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 68, 68, 0.6); }
    50% { text-shadow: 0 0 12px rgba(255, 68, 68, 0.9); }
}

.strikes-count {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem;
}

/* Strike count color based on severity */
.intel-positive .strikes-count {
    color: rgb(var(--challenge-primary-light-rgb));
}

.intel-warning .strikes-count {
    color: #f59e0b;
}

.intel-danger .strikes-count {
    color: #ff4444;
}

/* Season Record Display */
.intel-value.season-record {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.intel-positive .season-record {
    color: rgb(var(--challenge-primary-light-rgb));
    text-shadow: 0 0 8px rgba(var(--challenge-primary-light-rgb), 0.5);
}

.intel-warning .season-record {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.intel-danger .season-record {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

/* Mission Objective */
.mission-objective {
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(var(--challenge-primary-light-rgb), 0.1) 0%, rgba(var(--challenge-primary-light-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    border-radius: 8px;
}

.objective-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(var(--challenge-primary-light-rgb), 0.8);
    letter-spacing: 0.1em;
}

.objective-header i {
    color: rgb(var(--challenge-primary-light-rgb));
}

.objective-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.objective-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.objective-score {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: rgb(var(--challenge-primary-light-rgb));
    text-shadow:
        0 0 10px rgba(var(--challenge-primary-light-rgb), 0.5),
        0 0 20px rgba(var(--challenge-primary-light-rgb), 0.3);
    animation: score-glow 2s ease-in-out infinite alternate;
}

@keyframes score-glow {
    0% { text-shadow: 0 0 10px rgba(var(--challenge-primary-light-rgb), 0.5), 0 0 20px rgba(var(--challenge-primary-light-rgb), 0.3); }
    100% { text-shadow: 0 0 15px rgba(var(--challenge-primary-light-rgb), 0.7), 0 0 30px rgba(var(--challenge-primary-light-rgb), 0.5); }
}

/* Dossier Footer */
.dossier-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dossier-footer .rule-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.dossier-footer .rule-item i {
    color: rgba(245, 158, 11, 0.7);
    font-size: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .battle-dossier {
        min-height: auto;
    }

    .dossier-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .dossier-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .status-indicator {
        width: 36px;
        height: 36px;
    }

    .stakes-value {
        font-size: 1.25rem;
    }

    .intel-grid {
        grid-template-columns: 1fr;
    }

    .same-card-banner {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .same-card-banner .banner-title {
        font-size: 0.85rem;
    }

    .target-card {
        padding: 0.5rem;
    }

    .target-avatar {
        width: 48px;
        height: 48px;
    }

    .target-tag {
        font-size: 1.25rem;
    }

    .objective-score {
        font-size: 1.5rem;
    }

    .dossier-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Challenge CTA */
.challenge-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-description {
    color: var(--challenge-text);
    margin: 0;
    padding: 1rem;
    background: var(--surface-1, #ffffff);
    border-radius: 8px;
    border-left: 4px solid var(--challenge-primary);
}

.challenge-description i {
    color: var(--challenge-warning);
}

.challenge-description strong {
    color: var(--challenge-danger);
}

.btn-issue-challenge {
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(var(--challenge-primary-rgb), 0.3);
    transition: all 0.2s ease;
}

.btn-issue-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--challenge-primary-rgb), 0.4);
}

.btn-issue-challenge:active {
    transform: translateY(0);
}

.challenge-help-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--challenge-text-muted);
}

.help-item i {
    font-size: 0.875rem;
}

/* No Tag Message */
.no-tag-message {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--challenge-text-muted);
}

.no-tag-message .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-tag-message p {
    margin: 0;
    font-size: 1rem;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .challenge-module {
        --challenge-bg: var(--surface-2, #1f2937);
        --challenge-border: rgba(255, 255, 255, 0.1);
        --challenge-text: var(--theme-text-primary, #e5e7eb);
        --challenge-text-muted: var(--theme-text-secondary, #9ca3af);
    }

    .challenge-module:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .active-battle-alert {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
        border-color: rgba(245, 158, 11, 0.4);
    }

    .challenge-description {
        background: var(--surface-1, #111827);
    }

    .btn-issue-challenge {
        box-shadow: 0 4px 12px rgba(var(--challenge-primary-rgb), 0.2);
    }

    .btn-issue-challenge:hover {
        box-shadow: 0 6px 16px rgba(var(--challenge-primary-rgb), 0.3);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .challenge-module .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .current-tag-badge {
        align-self: stretch;
        justify-content: center;
    }

    .challenge-module .card-body {
        padding: 1.25rem;
    }

    .active-battle-alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .btn-issue-challenge {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .challenge-help-text {
        font-size: 0.875rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .challenge-module,
    .btn-issue-challenge {
        transition: none;
    }

    .btn-issue-challenge:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .challenge-module {
        border: 2px solid CanvasText;
    }

    .active-battle-alert {
        border: 2px solid CanvasText;
    }

    .challenge-description {
        border-left: 4px solid CanvasText;
    }
}

/* ========================================
   Tier Picker Modal Styles
   ======================================== */
    /* Tier Picker Modal Styling */
    .tier-picker-modal {
        background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
        border: 1px solid rgba(var(--challenge-primary-light-rgb), 0.2);
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        font-family: 'DM Sans', sans-serif;
        color: #e8eaf0;
    }

    .tier-picker-header {
        background: linear-gradient(90deg, #2d3548 0%, #1f2533 100%);
        border-bottom: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
        padding: 1.5rem 2rem;
    }

    .header-content {
        flex: 1;
    }

    .tier-picker-header .modal-title {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.5rem;
        font-weight: 700;
        color: #8bacff;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
    }

    .tactical-icon {
        font-size: 1.75rem;
        filter: drop-shadow(0 0 8px rgba(var(--challenge-primary-light-rgb), 0.4));
    }

    .title-text {
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .header-subtitle {
        margin: 0.5rem 0 0 0;
        font-size: 0.9rem;
        color: #c8d0e8;
        font-weight: 400;
    }

    .tier-picker-body {
        padding: 2rem;
        background: #1a1f2e;
        min-height: 400px;
    }

    /* Loading State */
    .tier-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        gap: 1.5rem;
    }

    .loading-spinner {
        width: 48px;
        height: 48px;
        border: 4px solid rgba(var(--challenge-primary-light-rgb), 0.2);
        border-top-color: #8bacff;
        border-radius: 50%;
        animation: tier-spin 0.8s linear infinite;
    }

    @keyframes tier-spin {
        to { transform: rotate(360deg); }
    }

    .tier-loading p {
        font-family: 'JetBrains Mono', monospace;
        color: #8bacff;
        font-size: 0.875rem;
        letter-spacing: 0.05em;
    }

    /* Tier Structure */
    .tier-structure {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .tier-band {
        opacity: 0;
        animation: tier-reveal 0.4s ease-out forwards;
    }

    .tier-band:nth-child(1) { animation-delay: 0.1s; }
    .tier-band:nth-child(2) { animation-delay: 0.2s; }
    .tier-band:nth-child(3) { animation-delay: 0.3s; }

    @keyframes tier-reveal {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .tier-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(var(--challenge-primary-light-rgb), 0.2);
    }

    .tier-indicator {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.25rem;
        font-weight: 700;
        padding: 0.25rem 0.75rem;
        border-radius: 6px;
        letter-spacing: 0.05em;
    }

    .tier-band[data-tier="1"] .tier-indicator {
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
        color: #1a1f2e;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    }

    .tier-band[data-tier="2"] .tier-indicator {
        background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
        color: #1a1f2e;
        box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
    }

    .tier-band[data-tier="3"] .tier-indicator {
        background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
        color: #1a1f2e;
        box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
    }

    .tier-range {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.875rem;
        color: #a0a8c0;
        letter-spacing: 0.05em;
    }

    /* Player Grid */
    .tier-players {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .player-card {
        background: linear-gradient(135deg, #252b3d 0%, #2d3548 100%);
        border: 2px solid rgba(var(--challenge-primary-light-rgb), 0.2);
        border-radius: 8px;
        padding: 1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }

    .player-card:hover {
        border-color: #8bacff;
        box-shadow: 0 4px 16px rgba(var(--challenge-primary-light-rgb), 0.3);
        transform: translateY(-2px);
    }

    .player-card:active {
        transform: translateY(0);
    }

    .player-card.locked {
        background: linear-gradient(135deg, #3d2f28 0%, #2d2420 100%);
        border-color: rgba(255, 179, 71, 0.3);
        cursor: not-allowed;
        opacity: 0.6;
    }

    .player-card.locked:hover {
        border-color: rgba(255, 179, 71, 0.3);
        box-shadow: none;
        transform: none;
    }

    .player-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }

    .player-tag-number {
        font-family: 'JetBrains Mono', monospace;
        font-size: 2rem;
        font-weight: 700;
        color: #8bacff;
        line-height: 1;
        text-shadow: 0 2px 8px rgba(var(--challenge-primary-light-rgb), 0.3);
    }

    .locked-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .locked-badge i {
        font-size: 0.65rem;
    }

    .player-card-body {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .player-card-info {
        flex: 1;
        min-width: 0;
    }

    .player-card-name {
        font-weight: 600;
        font-size: 0.95rem;
        color: #e8eaf0;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-tier-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        color: #a0a8c0;
        letter-spacing: 0.05em;
    }

    /* ========================================
       Fighter Select Cards - Character Select Style
       ======================================== */
    .fighter-select-card {
        position: relative;
        background: linear-gradient(145deg, #1a1f2e 0%, #0d1117 100%);
        border: 2px solid rgba(var(--challenge-primary-light-rgb), 0.15);
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 3 / 4;
        min-height: 280px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .fighter-select-card:hover:not(.locked) {
        border-color: rgba(var(--challenge-primary-light-rgb), 0.6);
        transform: translateY(-8px) scale(1.02);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(var(--challenge-primary-light-rgb), 0.2),
            inset 0 0 60px rgba(var(--challenge-primary-light-rgb), 0.05);
    }

    .fighter-select-card:hover:not(.locked) .tag-art-glow {
        opacity: 0.6;
    }

    .fighter-select-card:hover:not(.locked) .select-flash {
        animation: select-flash 0.4s ease-out;
    }

    .fighter-select-card:active:not(.locked) {
        transform: translateY(-4px) scale(1.01);
    }

    /* Bag Tag Art - Hero Visual */
    .fighter-tag-art {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    .tag-art-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        filter: brightness(0.7) saturate(1.1);
        transition: filter 0.3s ease;
    }

    .fighter-select-card:hover:not(.locked) .tag-art-img {
        filter: brightness(0.85) saturate(1.2);
    }

    .tag-art-glow {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at center bottom, rgba(var(--challenge-primary-light-rgb), 0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* Placeholder when no bag tag art */
    .fighter-tag-art-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #252b3d 0%, #1a1f2e 100%);
    }

    .tag-art-number {
        font-family: 'Orbitron', 'JetBrains Mono', monospace;
        font-size: 4rem;
        font-weight: 900;
        color: rgba(var(--challenge-primary-light-rgb), 0.15);
        text-shadow: 0 0 40px rgba(var(--challenge-primary-light-rgb), 0.1);
    }

    /* Card Overlay */
    .fighter-card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            transparent 30%,
            transparent 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }

    /* Top Section - Tag Number & Badges */
    .fighter-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .fighter-tag-badge {
        font-family: 'Orbitron', 'JetBrains Mono', monospace;
        font-size: 1.75rem;
        font-weight: 900;
        color: #fff;
        text-shadow:
            0 0 20px rgba(var(--challenge-primary-light-rgb), 0.8),
            0 2px 10px rgba(0, 0, 0, 0.9);
        letter-spacing: 0.05em;
    }

    /* Friend Indicator */
    .friend-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-radius: 50%;
        color: #fff;
        font-size: 0.875rem;
        box-shadow:
            0 0 15px rgba(16, 185, 129, 0.5),
            0 2px 8px rgba(0, 0, 0, 0.4);
        animation: friend-pulse 2s ease-in-out infinite;
    }

    @keyframes friend-pulse {
        0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4); }
        50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4); }
    }

    /* Friend Card Accent */
    .fighter-select-card.is-friend {
        border-color: rgba(16, 185, 129, 0.3);
    }

    .fighter-select-card.is-friend:hover:not(.locked) {
        border-color: rgba(16, 185, 129, 0.6);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(16, 185, 129, 0.2),
            inset 0 0 60px rgba(16, 185, 129, 0.05);
    }

    /* Locked Badge Enhancement */
    .fighter-select-card .locked-badge {
        position: relative;
        top: auto;
        right: auto;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
        letter-spacing: 0.08em;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    }

    .fighter-select-card.locked {
        border-color: rgba(239, 68, 68, 0.3);
    }

    .fighter-select-card.locked .tag-art-img {
        filter: brightness(0.4) saturate(0.5) grayscale(0.3);
    }

    .fighter-select-card.locked .fighter-card-overlay {
        background: linear-gradient(
            to bottom,
            rgba(30, 10, 10, 0.8) 0%,
            rgba(30, 10, 10, 0.4) 30%,
            rgba(30, 10, 10, 0.4) 50%,
            rgba(30, 10, 10, 0.9) 100%
        );
    }

    /* Bottom Section - Avatar & Name */
    .fighter-card-bottom {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .fighter-avatar-container {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .fighter-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .avatar-initials {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
    }

    .fighter-info {
        flex: 1;
        min-width: 0;
    }

    .fighter-name-text {
        font-family: 'Teko', 'DM Sans', sans-serif;
        font-size: 1.25rem;
        font-weight: 600;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        line-height: 1.1;
    }

    .fighter-tier-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        font-weight: 500;
        color: rgba(var(--challenge-primary-light-rgb), 0.8);
        letter-spacing: 0.1em;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    /* Select Flash Effect */
    .select-flash {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(var(--challenge-primary-light-rgb), 0.4) 0%, transparent 100%);
        opacity: 0;
        pointer-events: none;
        z-index: 3;
    }

    @keyframes select-flash {
        0% { opacity: 0.6; }
        100% { opacity: 0; }
    }

    /* Tier Grid for Fighter Cards */
    .tier-players {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }

    /* Light Mode Adjustments for Fighter Cards */
    @media (prefers-color-scheme: light) {
        .fighter-select-card {
            background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
            border-color: rgba(37, 43, 61, 0.2);
        }

        .fighter-select-card:hover:not(.locked) {
            border-color: rgba(37, 43, 61, 0.5);
            box-shadow:
                0 20px 40px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(37, 43, 61, 0.1);
        }

        .fighter-tag-art-placeholder {
            background: linear-gradient(145deg, #e9ecef 0%, #dee2e6 100%);
        }

        .tag-art-number {
            color: rgba(37, 43, 61, 0.15);
        }

        .fighter-tag-badge {
            color: #fff;
            text-shadow: 0 0 20px rgba(37, 43, 61, 0.6), 0 2px 10px rgba(0, 0, 0, 0.8);
        }

        .fighter-name-text {
            color: #fff;
        }

        .fighter-tier-label {
            color: rgba(var(--challenge-primary-light-rgb), 0.9);
        }
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .fighter-select-card {
            min-height: 240px;
        }

        .tier-players {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
        }

        .fighter-tag-badge {
            font-size: 1.5rem;
        }

        .fighter-avatar-container {
            width: 40px;
            height: 40px;
        }

        .fighter-name-text {
            font-size: 1.1rem;
        }

        .tag-art-number {
            font-size: 3rem;
        }
    }

    @media (max-width: 480px) {
        .tier-players {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .fighter-select-card {
            min-height: 200px;
        }

        .fighter-card-overlay {
            padding: 0.75rem;
        }

        .fighter-tag-badge {
            font-size: 1.25rem;
        }

        .friend-indicator {
            width: 26px;
            height: 26px;
            font-size: 0.75rem;
        }

        .fighter-avatar-container {
            width: 36px;
            height: 36px;
        }

        .fighter-name-text {
            font-size: 1rem;
        }

        .fighter-tier-label {
            font-size: 0.65rem;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .fighter-select-card,
        .friend-indicator,
        .tag-art-glow,
        .select-flash {
            animation: none !important;
            transition: none !important;
        }
    }

    /* ========================================
       TARGET DOSSIER CARDS - Player-Focused Intel
       ======================================== */

    .target-dossier-card {
        position: relative;
        background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
        border: 1px solid rgba(48, 54, 61, 0.8);
        border-radius: 8px;
        overflow: hidden;
        min-height: 100px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .target-dossier-card:hover:not(.locked) {
        border-color: rgba(88, 166, 255, 0.6);
        transform: translateY(-4px);
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.4),
            0 0 24px rgba(88, 166, 255, 0.15);
    }

    .target-dossier-card:active:not(.locked) {
        transform: translateY(-2px);
    }

    /* Scanlines for dossier feel */
    .target-dossier-card .dossier-scanlines {
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(88, 166, 255, 0.02) 3px,
            rgba(88, 166, 255, 0.02) 6px
        );
        pointer-events: none;
        z-index: 10;
    }

    /* Subtle bag tag art background */
    .dossier-bg-art {
        position: absolute;
        right: -20%;
        top: -20%;
        width: 80%;
        height: 140%;
        background-size: cover;
        background-position: center;
        opacity: 0.08;
        filter: blur(1px) saturate(0.5);
        pointer-events: none;
        z-index: 1;
        mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 70%);
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 70%);
    }

    .target-dossier-card:hover:not(.locked) .dossier-bg-art {
        opacity: 0.12;
    }

    /* Main content wrapper */
    .target-dossier-card .dossier-content {
        position: relative;
        z-index: 5;
        padding: 0.875rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    /* Header row - tag number and badges */
    .target-dossier-card .dossier-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dossier-tag-number {
        font-family: 'Orbitron', 'JetBrains Mono', monospace;
        font-size: 1.25rem;
        font-weight: 700;
        color: #58a6ff;
        text-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
        letter-spacing: 0.02em;
    }

    .dossier-friend-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background: rgba(56, 189, 248, 0.2);
        border-radius: 50%;
        color: #38bdf8;
        font-size: 0.625rem;
    }

    .dossier-locked-badge {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.25rem 0.625rem;
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.15));
        border: 1px solid rgba(239, 68, 68, 0.4);
        border-radius: 4px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.625rem;
        font-weight: 600;
        color: #fca5a5;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    /* Profile section - avatar + info */
    .dossier-profile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .dossier-avatar {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #21262d, #30363d);
        border: 2px solid rgba(88, 166, 255, 0.3);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dossier-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .dossier-avatar .avatar-initials {
        font-family: 'DM Sans', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        color: #8b949e;
    }

    .dossier-info {
        flex: 1;
        min-width: 0;
    }

    .dossier-name {
        font-family: 'DM Sans', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        color: #e6edf3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.25rem;
    }

    .dossier-tier {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        color: #8b949e;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    /* Stats row */
    .dossier-stats {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .dossier-stat {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .dossier-stat .stat-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        font-weight: 500;
        color: #6e7681;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .dossier-stat .stat-value {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.8rem;
        font-weight: 600;
        color: #c9d1d9;
    }

    .dossier-stat .stat-value.stat-good {
        color: #3fb950;
    }

    .dossier-stat .stat-value.stat-even {
        color: #f0c674;
    }

    .dossier-stat .stat-value.stat-over {
        color: #f87171;
    }

    .dossier-stat .stat-rounds {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        color: #6e7681;
    }

    /* Bag tag thumbnail - subtle corner accent */
    .dossier-tag-thumb {
        position: absolute;
        bottom: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 48px;
        border-radius: 4px;
        overflow: hidden;
        opacity: 0.5;
        border: 1px solid rgba(88, 166, 255, 0.2);
        z-index: 8;
        transition: opacity 0.2s ease;
    }

    .target-dossier-card:hover:not(.locked) .dossier-tag-thumb {
        opacity: 0.8;
    }

    .dossier-tag-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Selection flash effect */
    .dossier-select-flash {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(88, 166, 255, 0.3), transparent);
        opacity: 0;
        pointer-events: none;
        z-index: 15;
    }

    @keyframes dossier-flash {
        0% { opacity: 0.8; }
        100% { opacity: 0; }
    }

    .target-dossier-card:hover:not(.locked) .dossier-select-flash {
        animation: dossier-flash 0.3s ease-out;
    }

    /* Locked state */
    .target-dossier-card.locked {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .target-dossier-card.locked .dossier-avatar {
        filter: grayscale(0.5);
    }

    /* Friend highlight */
    .target-dossier-card.is-friend {
        border-color: rgba(56, 189, 248, 0.3);
    }

    .target-dossier-card.is-friend:hover:not(.locked) {
        border-color: rgba(56, 189, 248, 0.6);
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.4),
            0 0 24px rgba(56, 189, 248, 0.2);
    }

    /* Grid layout for dossier cards */
    .tier-players {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    /* Responsive adjustments for dossier cards */
    @media (max-width: 768px) {
        .target-dossier-card .dossier-content {
            padding: 0.75rem;
        }

        .dossier-avatar {
            width: 40px;
            height: 40px;
        }

        .dossier-name {
            font-size: 0.9rem;
        }

        .tier-players {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 0.75rem;
        }
    }

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

        .dossier-tag-thumb {
            display: none;
        }
    }

    /* Empty State */
    .tier-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        text-align: center;
        padding: 2rem;
    }

    .empty-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.4;
    }

    .empty-message {
        font-size: 1.125rem;
        font-weight: 600;
        color: #a0a8c0;
        margin-bottom: 0.5rem;
    }

    .empty-hint {
        font-size: 0.875rem;
        color: #6b7280;
        max-width: 400px;
    }

    /* Footer */
    .tier-picker-footer {
        background: linear-gradient(90deg, #1f2533 0%, #2d3548 100%);
        border-top: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
        padding: 1rem 2rem;
    }

    .footer-legend {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .legend-indicator {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 2px solid;
    }

    .legend-indicator.available {
        background: linear-gradient(135deg, #252b3d 0%, #2d3548 100%);
        border-color: #8bacff;
    }

    .legend-indicator.locked {
        background: linear-gradient(135deg, #3d2f28 0%, #2d2420 100%);
        border-color: rgba(255, 179, 71, 0.6);
    }

    .legend-indicator.registered {
        background: transparent;
        border: none;
        color: #22c55e;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .legend-label {
        font-size: 0.875rem;
        color: #a0a8c0;
        font-weight: 500;
    }

    /* Confirmation Modal */
    .confirm-modal {
        background: #1a1f2e;
        border: 1px solid rgba(var(--challenge-primary-light-rgb), 0.2);
        border-radius: 12px;
        color: #e8eaf0;
    }

    .confirm-header {
        background: linear-gradient(90deg, #2d3548 0%, #1f2533 100%);
        border-bottom: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    }

    .confirm-header .modal-title {
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        color: #8bacff;
    }

    .confirm-body {
        padding: 2rem;
    }

    .confirm-content {
        text-align: center;
    }

    .confirm-question {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
        color: #e8eaf0;
    }

    .confirm-tag-number {
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        font-size: 1.25rem;
        color: #8bacff;
        text-shadow: 0 2px 8px rgba(var(--challenge-primary-light-rgb), 0.3);
    }

    .confirm-warning {
        background: rgba(255, 179, 71, 0.1);
        border: 1px solid rgba(255, 179, 71, 0.3);
        border-radius: 8px;
        padding: 1rem;
        color: #ffb347;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .confirm-footer {
        background: linear-gradient(90deg, #1f2533 0%, #2d3548 100%);
        border-top: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    }

    /* Dark Mode Overrides */
    @media (prefers-color-scheme: light) {
        .tier-picker-modal {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-color: rgba(37, 43, 61, 0.2);
            color: #1a1f2e;
        }

        .tier-picker-header,
        .tier-picker-footer,
        .confirm-header,
        .confirm-footer {
            background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
            border-color: rgba(37, 43, 61, 0.3);
        }

        .tier-picker-header .modal-title,
        .confirm-header .modal-title {
            color: #2d3548;
        }

        .header-subtitle,
        .tier-range,
        .player-tier-label,
        .legend-label {
            color: #6c757d;
        }

        .tier-picker-body,
        .confirm-modal {
            background: #f8f9fa;
            color: #1a1f2e;
        }

        .tier-header {
            border-color: rgba(37, 43, 61, 0.2);
        }

        .player-card {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            border-color: rgba(37, 43, 61, 0.2);
        }

        .player-card:hover {
            border-color: #2d3548;
            box-shadow: 0 4px 16px rgba(37, 43, 61, 0.2);
        }

        .player-card.locked {
            background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
            border-color: rgba(255, 179, 71, 0.4);
        }

        .player-tag-number {
            color: #2d3548;
            text-shadow: 0 2px 8px rgba(37, 43, 61, 0.2);
        }

        .player-card-name {
            color: #1a1f2e;
        }

        .confirm-tag-number {
            color: #2d3548;
            text-shadow: 0 2px 8px rgba(37, 43, 61, 0.2);
        }

        .confirm-question {
            color: #1a1f2e;
        }

        .legend-indicator.available {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            border-color: #2d3548;
        }

        .loading-spinner {
            border-color: rgba(37, 43, 61, 0.2);
            border-top-color: #2d3548;
        }

        .tier-loading p {
            color: #2d3548;
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .tier-picker-modal .modal-dialog {
            margin: 0.5rem;
        }

        .tier-picker-header,
        .tier-picker-footer {
            padding: 1rem 1.5rem;
        }

        .tier-picker-body {
            padding: 1.5rem;
        }

        .tier-players {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 0.75rem;
        }

        .player-tag-number {
            font-size: 1.5rem;
        }

        .footer-legend {
            gap: 1rem;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .tier-band,
        .player-card,
        .loading-spinner {
            animation: none;
            transition: none;
        }
    }

/* ========================================
   Challenge Issued VS Reveal Styles
   ======================================== */
    @import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Orbitron:wght@700;900&family=Bebas+Neue&display=swap');

    /* VS Reveal Modal - Full Takeover */
    .vs-reveal-modal {
        background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 100%);
        overflow: hidden;
        position: relative;
        animation: screen-shake 0.5s ease-out 0.3s;
    }

    @keyframes screen-shake {
        0%, 100% { transform: translate(0, 0); }
        10%, 30%, 50%, 70%, 90% { transform: translate(-4px, 4px); }
        20%, 40%, 60%, 80% { transform: translate(4px, -4px); }
    }

    /* Radial Background Effect */
    .vs-reveal-modal::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
                    radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
        background-position: 20% 50%, 80% 50%;
        background-size: 50% 100%, 50% 100%;
        background-repeat: no-repeat;
        transform: translate(-50%, -50%);
        animation: pulse-glow 2s ease-in-out infinite;
        pointer-events: none;
    }

    @keyframes pulse-glow {
        0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
        50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
    }

    /* Tier Stakes Badge */
    .tier-stakes-badge {
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
        border: 2px solid rgba(255, 215, 0, 0.5);
        border-radius: 50px;
        padding: 0.75rem 2rem;
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3),
                    inset 0 0 20px rgba(255, 215, 0, 0.1);
        animation: stakes-reveal 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
    }

    @keyframes stakes-reveal {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-50px) scale(0.5);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }

    .stakes-icon {
        font-size: 2rem;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }

    .stakes-text {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.5rem;
        letter-spacing: 0.15em;
        color: #ffd700;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 2px 10px rgba(0, 0, 0, 0.8);
    }

    /* VS Arena (scoped to VS Reveal modal) */
    .vs-reveal-modal .vs-arena {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        height: 100vh;
        align-items: center;
        gap: 4rem;
        padding: 0 4rem;
    }

    /* Fighter Sides */
    .fighter-side {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        z-index: 1;
    }

    .side-glow {
        position: absolute;
        top: 50%;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.4;
        pointer-events: none;
    }

    .challenger-glow {
        left: 0;
        transform: translateY(-50%);
        background: radial-gradient(circle, #ff4444 0%, transparent 70%);
        animation: glow-pulse-left 2s ease-in-out infinite;
    }

    .defender-glow {
        right: 0;
        transform: translateY(-50%);
        background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
        animation: glow-pulse-right 2s ease-in-out infinite;
    }

    @keyframes glow-pulse-left {
        0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
        50% { opacity: 0.5; transform: translateY(-50%) scale(1.1); }
    }

    @keyframes glow-pulse-right {
        0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
        50% { opacity: 0.5; transform: translateY(-50%) scale(1.1); }
    }

    .challenger-side {
        animation: slide-in-left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    }

    .defender-side {
        animation: slide-in-right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    }

    @keyframes slide-in-left {
        from {
            opacity: 0;
            transform: translateX(-200px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slide-in-right {
        from {
            opacity: 0;
            transform: translateX(200px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .fighter-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .fighter-label {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.25rem;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.5);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .challenger-side .fighter-label {
        color: rgba(255, 107, 53, 0.8);
    }

    .defender-side .fighter-label {
        color: rgba(0, 212, 255, 0.8);
    }

    .fighter-avatar {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }

    .challenger-side .fighter-avatar {
        border: 4px solid #ff6b35;
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.6),
                    0 10px 40px rgba(0, 0, 0, 0.6);
    }

    .defender-side .fighter-avatar {
        border: 4px solid #00d4ff;
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6),
                    0 10px 40px rgba(0, 0, 0, 0.6);
    }

    .fighter-name {
        font-family: 'Teko', sans-serif;
        font-size: 3.5rem;
        font-weight: 700;
        line-height: 0.9;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        max-width: 400px;
        color: #ffffff;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9),
                     0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .challenger-side .fighter-name {
        text-shadow: 0 4px 20px rgba(255, 68, 68, 0.8),
                     0 2px 10px rgba(0, 0, 0, 0.9);
    }

    .defender-side .fighter-name {
        text-shadow: 0 4px 20px rgba(0, 212, 255, 0.8),
                     0 2px 10px rgba(0, 0, 0, 0.9);
    }

    .fighter-tag-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tag-label {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1rem;
        letter-spacing: 0.15em;
        color: rgba(255, 255, 255, 0.4);
    }

    .tag-number {
        font-family: 'Orbitron', monospace;
        font-size: 5rem;
        font-weight: 900;
        line-height: 1;
        background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8));
        position: relative;
    }

    .challenger-tag {
        background: linear-gradient(180deg, #ff6b35 0%, #ff4444 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 30px rgba(255, 68, 68, 0.8))
                drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9));
        animation: tag-glow-red 2s ease-in-out infinite;
    }

    .defender-tag {
        background: linear-gradient(180deg, #00d4ff 0%, #0099ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8))
                drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9));
        animation: tag-glow-blue 2s ease-in-out infinite;
    }

    @keyframes tag-glow-red {
        0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 68, 68, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9)); }
        50% { filter: drop-shadow(0 0 50px rgba(255, 68, 68, 1)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9)); }
    }

    @keyframes tag-glow-blue {
        0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9)); }
        50% { filter: drop-shadow(0 0 50px rgba(0, 212, 255, 1)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9)); }
    }

    /* VS Centerpiece */
    .vs-centerpiece {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 300px;
        height: 300px;
        z-index: 5;
        animation: vs-reveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s both;
    }

    @keyframes vs-reveal {
        0% {
            opacity: 0;
            transform: scale(0.3) rotate(-180deg);
        }
        60% {
            transform: scale(1.2) rotate(10deg);
        }
        100% {
            opacity: 1;
            transform: scale(1) rotate(0deg);
        }
    }

    .vs-ring {
        position: absolute;
        width: 280px;
        height: 280px;
        border: 8px solid;
        border-image: linear-gradient(135deg, #ff4444 0%, #00d4ff 100%) 1;
        border-radius: 50%;
        box-shadow: 0 0 60px rgba(255, 68, 68, 0.5),
                    0 0 60px rgba(0, 212, 255, 0.5),
                    inset 0 0 40px rgba(255, 215, 0, 0.2);
        animation: ring-pulse 2s ease-in-out infinite;
    }

    @keyframes ring-pulse {
        0%, 100% { transform: scale(1); opacity: 0.8; }
        50% { transform: scale(1.05); opacity: 1; }
    }

    .vs-text {
        font-family: 'Orbitron', monospace;
        font-size: 8rem;
        font-weight: 900;
        line-height: 1;
        background: linear-gradient(135deg, #ffd700 0%, #ffffff 50%, #ffd700 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 200%;
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8))
                drop-shadow(0 10px 30px rgba(0, 0, 0, 1));
        animation: vs-pulse 1.5s ease-in-out infinite,
                   metallic-shine 3s linear infinite;
        position: relative;
        z-index: 2;
    }

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

    @keyframes metallic-shine {
        0% { background-position: 0% 50%; }
        100% { background-position: 200% 50%; }
    }

    .vs-lightning {
        position: absolute;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, transparent 0%, #ffd700 50%, transparent 100%);
        opacity: 0;
        animation: lightning-strike 3s ease-in-out infinite;
    }

    .vs-lightning-1 {
        left: -40px;
        transform: rotate(-15deg);
        animation-delay: 0s;
    }

    .vs-lightning-2 {
        right: -40px;
        transform: rotate(15deg);
        animation-delay: 1.5s;
    }

    @keyframes lightning-strike {
        0%, 90%, 100% { opacity: 0; }
        91%, 93%, 95% { opacity: 1; }
        92%, 94% { opacity: 0.3; }
    }

    /* Battle Locked Banner */
    .battle-locked-banner {
        position: absolute;
        bottom: 8rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        animation: locked-reveal 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s both;
    }

    @keyframes locked-reveal {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(50px) scale(0.8);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }

    .locked-icon {
        font-size: 3rem;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: locked-pulse 1.5s ease-in-out infinite;
    }

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

    .locked-text {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 3rem;
        letter-spacing: 0.2em;
        color: #ffd700;
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                     0 4px 20px rgba(0, 0, 0, 0.9);
    }

    .locked-subtitle {
        font-family: 'Teko', sans-serif;
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        max-width: 500px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    /* Dismiss Hint */
    .dismiss-hint {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        animation: hint-fade-in 0.6s ease-out 2s both;
    }

    @keyframes hint-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .dismiss-text {
        font-family: 'Teko', sans-serif;
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.5);
        letter-spacing: 0.1em;
        animation: hint-pulse 2s ease-in-out infinite;
    }

    @keyframes hint-pulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.8; }
    }

    .dismiss-countdown {
        font-family: 'Orbitron', monospace;
        font-size: 1rem;
        color: rgba(255, 215, 0, 0.6);
    }

    /* Tap to Dismiss Interaction */
    .vs-reveal-modal {
        cursor: pointer;
    }

    /* Responsive */
    @media (max-width: 1400px) {
        .vs-arena {
            gap: 2rem;
            padding: 0 2rem;
        }

        .fighter-name {
            font-size: 2.5rem;
        }

        .tag-number {
            font-size: 3.5rem;
        }

        .vs-text {
            font-size: 6rem;
        }
    }

    @media (max-width: 1024px) {
        .vs-arena {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr auto 1fr;
            gap: 1rem;
            padding: 2rem 1rem;
        }

        .vs-centerpiece {
            grid-row: 2;
            width: 200px;
            height: 200px;
        }

        .vs-ring {
            width: 180px;
            height: 180px;
        }

        .vs-text {
            font-size: 5rem;
        }

        .fighter-side {
            height: auto;
        }

        .fighter-avatar {
            width: 150px;
            height: 150px;
        }

        .fighter-name {
            font-size: 2rem;
        }

        .tag-number {
            font-size: 2.5rem;
        }

        .side-glow {
            width: 400px;
            height: 400px;
        }

        .battle-locked-banner {
            bottom: 6rem;
        }

        .locked-text {
            font-size: 2rem;
        }

        .locked-icon {
            font-size: 2rem;
        }
    }

    @media (max-width: 768px) {
        .tier-stakes-badge {
            top: 1rem;
            padding: 0.5rem 1.5rem;
        }

        .stakes-icon {
            font-size: 1.5rem;
        }

        .stakes-text {
            font-size: 1.125rem;
        }

        .fighter-avatar {
            width: 120px;
            height: 120px;
        }

        .fighter-name {
            font-size: 1.75rem;
        }

        .tag-number {
            font-size: 2rem;
        }

        .vs-centerpiece {
            width: 150px;
            height: 150px;
        }

        .vs-ring {
            width: 130px;
            height: 130px;
        }

        .vs-text {
            font-size: 3.5rem;
        }

        .locked-text {
            font-size: 1.5rem;
        }

        .locked-subtitle {
            font-size: 1rem;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .vs-reveal-modal,
        .challenger-side,
        .defender-side,
        .vs-centerpiece,
        .tier-stakes-badge,
        .battle-locked-banner,
        .vs-text,
        .tag-number,
        .locked-icon,
        .vs-ring,
        .side-glow,
        .dismiss-text {
            animation: none !important;
        }

        .vs-reveal-modal::before {
            animation: none;
        }
    }

/* ========================================
   VS Confirmation Modal - Mortal Kombat Style
   ======================================== */

/* Modal Container */
.vs-modal-dialog {
    max-width: 800px;
}

.vs-modal-content {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    border: 2px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    border-radius: 16px;
    box-shadow:
        0 0 60px rgba(var(--challenge-primary-light-rgb), 0.15),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Header */
.vs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, rgba(var(--challenge-primary-light-rgb), 0.1) 0%, transparent 50%, rgba(239, 68, 68, 0.1) 100%);
    border-bottom: 2px solid rgba(var(--challenge-primary-light-rgb), 0.2);
}

.vs-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vs-title-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(var(--challenge-primary-light-rgb), 0.2) 100%);
    border-radius: 10px;
    color: #ef4444;
    font-size: 1.25rem;
}

.vs-title {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8eaf0;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: 0 0 20px rgba(var(--challenge-primary-light-rgb), 0.3);
}

.vs-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #a0a8c0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vs-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Modal Body */
.vs-modal-body {
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(var(--challenge-primary-light-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
}

/* VS Arena - The Battle Stage */
.vs-arena {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Fighter Cards */
.vs-fighter {
    flex: 0 0 auto;
    width: 200px;
}

.fighter-card-frame {
    position: relative;
    aspect-ratio: 390 / 698;
    background: linear-gradient(145deg, #1a1f2e 0%, #0d1117 100%);
    border: 3px solid rgba(var(--challenge-primary-light-rgb), 0.3);
    border-radius: 12px;
    overflow: visible;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
}

.vs-challenger .fighter-card-frame {
    border-color: rgba(var(--challenge-primary-light-rgb), 0.5);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(var(--challenge-primary-light-rgb), 0.2),
        inset 0 0 60px rgba(var(--challenge-primary-light-rgb), 0.05);
}

.vs-defender .fighter-card-frame {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(239, 68, 68, 0.2),
        inset 0 0 60px rgba(239, 68, 68, 0.05);
}

/* Tag Hero Image */
.fighter-tag-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 9px; /* Match parent's inner radius (12px - 3px border) */
}

.tag-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.75) saturate(1.1);
}

.tag-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #252b3d 0%, #1a1f2e 100%);
}

.placeholder-number {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(var(--challenge-primary-light-rgb), 0.15);
    text-shadow: 0 0 40px rgba(var(--challenge-primary-light-rgb), 0.1);
}

/* Card Info Overlay */
.fighter-card-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 25%,
        transparent 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.fighter-tag-number {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 30px rgba(var(--challenge-primary-light-rgb), 0.8),
        0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
}

.vs-defender .fighter-tag-number {
    text-shadow:
        0 0 30px rgba(239, 68, 68, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.9);
}

.fighter-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fighter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vs-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-avatar-initials {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.fighter-name {
    font-family: 'Teko', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Role Labels */
.fighter-role-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    background: linear-gradient(135deg, var(--challenge-primary) 0%, var(--challenge-gradient-end) 100%);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(var(--challenge-primary-rgb), 0.4);
}

.fighter-role-target {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Friend Badge in Defender Card */
.friend-badge-slot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.vs-friend-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* VS Emblem - Center */
.vs-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80px;
    flex-shrink: 0;
    align-self: center;
}

.vs-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: vs-pulse 2s ease-in-out infinite;
}

@keyframes vs-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.vs-text {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        2px 2px 0 #b8860b;
    z-index: 1;
    letter-spacing: 0.1em;
}

.vs-lightning {
    position: absolute;
    color: #ffd700;
    font-size: 1rem;
    opacity: 0.7;
    animation: lightning-flicker 0.5s ease-in-out infinite alternate;
}

.vs-lightning-left {
    left: -5px;
    top: -20px;
    transform: rotate(-15deg);
}

.vs-lightning-right {
    right: -5px;
    bottom: -20px;
    transform: rotate(15deg);
}

@keyframes lightning-flicker {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Stakes Panel */
.vs-stakes-panel {
    background: linear-gradient(135deg, rgba(var(--challenge-primary-light-rgb), 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(var(--challenge-primary-light-rgb), 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.stakes-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8bacff;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.stakes-rules {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stake-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a8c0;
    font-size: 0.875rem;
}

.stake-item i {
    color: #ffd700;
    font-size: 0.875rem;
}

/* Footer Buttons */
.vs-modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    border-top: 1px solid rgba(var(--challenge-primary-light-rgb), 0.1);
}

.vs-btn {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #a0a8c0;
}

.vs-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.vs-btn-fight {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.vs-btn-fight:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.vs-btn-fight:active {
    transform: translateY(0);
}

.vs-btn-fight:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border-color: rgba(107, 114, 128, 0.5);
    box-shadow: none;
    cursor: not-allowed;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .vs-modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    .vs-arena {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .vs-fighter {
        max-width: 180px;
    }

    .fighter-card-frame {
        aspect-ratio: 390 / 500;
    }

    .vs-emblem {
        width: 60px;
        margin: 0.5rem 0;
    }

    .vs-text {
        font-size: 1.5rem;
    }

    .vs-glow {
        width: 70px;
        height: 70px;
    }

    .fighter-tag-number {
        font-size: 1.75rem;
    }

    .fighter-name {
        font-size: 1.1rem;
    }

    .fighter-avatar {
        width: 36px;
        height: 36px;
    }

    .fighter-role-label {
        font-size: 0.6rem;
        padding: 0.25rem 0.75rem;
    }

    .stakes-rules {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vs-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vs-btn {
        width: 100%;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .vs-glow,
    .vs-lightning {
        animation: none !important;
    }
}

/* ========================================
   NOW CHALLENGED - Incoming Threat Alert
   Defender-side alert when challenged
   ======================================== */

.now-challenged-module {
    /* Module container styling */
}

/* Dismiss button for NowChallenged module */
.now-challenged-dismiss {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.now-challenged-dismiss:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fff;
    opacity: 1;
}

.now-challenged-dismiss:active {
    transform: scale(0.9);
}

/* Incoming Challenge - Red/Danger theme variant of battle-dossier */
.battle-dossier.incoming-challenge {
    border-color: rgba(255, 68, 68, 0.5);
    box-shadow:
        0 0 30px rgba(255, 68, 68, 0.15),
        inset 0 0 60px rgba(255, 68, 68, 0.03);
}

.battle-dossier.incoming-challenge .dossier-scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 68, 68, 0.03) 2px,
        rgba(255, 68, 68, 0.03) 4px
    );
}

/* Danger pulse animation for status indicator */
.battle-dossier.incoming-challenge .status-indicator.danger-pulse {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
}

.battle-dossier.incoming-challenge .status-indicator.danger-pulse i {
    color: #ff4444;
}

.battle-dossier.incoming-challenge .status-indicator.danger-pulse .pulse-ring {
    background: rgba(255, 68, 68, 0.4);
}

/* Danger text styling */
.battle-dossier.incoming-challenge .danger-text {
    color: #ff4444 !important;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Stakes value with red glow for incoming challenge */
.battle-dossier.incoming-challenge .stakes-value {
    color: #ff4444;
    text-shadow:
        0 0 10px rgba(255, 68, 68, 0.5),
        0 0 20px rgba(255, 68, 68, 0.3);
}

/* Could be same card variant */
.battle-dossier.could-be-same-card {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow:
        0 0 25px rgba(245, 158, 11, 0.15),
        inset 0 0 50px rgba(245, 158, 11, 0.03);
}

/* Could be same card banner */
.could-be-same-card-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(90deg,
        rgba(245, 158, 11, 0.1) 0%,
        rgba(245, 158, 11, 0.2) 50%,
        rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { border-color: rgba(245, 158, 11, 0.4); }
    50% { border-color: rgba(245, 158, 11, 0.7); }
}

.could-be-same-card-banner .banner-icon {
    color: #f59e0b;
    font-size: 1rem;
    animation: bolt-flash 1.5s ease-in-out infinite;
}

@keyframes bolt-flash {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.could-be-same-card-banner .banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.could-be-same-card-banner .banner-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.could-be-same-card-banner .banner-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(245, 158, 11, 0.8);
    letter-spacing: 0.1em;
}

/* Challenge Registration CTA - THE MOST IMPORTANT ELEMENT */
.challenge-registration-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15) 0%, rgba(255, 136, 0, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 68, 68, 0.4);
    animation: cta-attention 3s ease-in-out infinite;
}

@keyframes cta-attention {
    0%, 100% {
        border-color: rgba(255, 68, 68, 0.4);
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.1);
    }
    50% {
        border-color: rgba(255, 68, 68, 0.7);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.25);
    }
}

.challenge-registration-cta .cta-join-card {
    background: linear-gradient(135deg, #ff4444 0%, #ff2222 50%, #cc0000 100%);
    border: none;
    color: #fff !important; /* Ensure white text on red background */
    box-shadow:
        0 4px 20px rgba(255, 68, 68, 0.5),
        0 0 40px rgba(255, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 20px rgba(255, 68, 68, 0.5),
            0 0 40px rgba(255, 68, 68, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow:
            0 6px 30px rgba(255, 68, 68, 0.6),
            0 0 60px rgba(255, 68, 68, 0.3);
    }
}

.challenge-registration-cta .cta-join-card:hover {
    transform: scale(1.05) !important;
    box-shadow:
        0 8px 40px rgba(255, 68, 68, 0.7),
        0 0 80px rgba(255, 68, 68, 0.4) !important;
    animation: none;
}

.challenge-registration-cta .cta-join-card .btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.challenge-registration-cta .cta-help-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.challenge-registration-cta .cta-help-text .text-warning {
    color: #f59e0b !important;
    animation: fire-flicker 1s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Already registered notice */
.challenge-registration-cta .already-registered-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #10b981;
}

/* Showdown Confirmed State */
.showdown-confirmed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(255, 68, 68, 0.15) 0%,
        rgba(255, 136, 0, 0.15) 100%);
    border: 2px solid rgba(255, 68, 68, 0.4);
    border-radius: 8px;
    animation: showdown-glow 2s ease-in-out infinite;
}

@keyframes showdown-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.4);
    }
}

.showdown-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff4444 0%, #ff8800 100%);
    border-radius: 6px;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.showdown-details {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.showdown-details strong {
    color: rgb(var(--challenge-primary-light-rgb));
}

/* Responsive adjustments for NowChallenged */
@media (max-width: 576px) {
    .challenge-registration-cta {
        padding: 0.5rem;
    }

    .could-be-same-card-banner {
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .could-be-same-card-banner .banner-title {
        font-size: 0.65rem;
    }

    .showdown-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Accessibility - Reduced Motion for NowChallenged */
@media (prefers-reduced-motion: reduce) {
    .battle-dossier.incoming-challenge .status-indicator.danger-pulse .pulse-ring,
    .could-be-same-card-banner,
    .showdown-confirmed {
        animation: none !important;
    }
}

/* ========================================
   TACTICAL ROSTER LIST - Player Intel (List View)
   ======================================== */

/* Roster list container - vertical list instead of card grid */
.tier-players {
    display: flex !important;
    flex-direction: column;
    gap: 1px; /* Tight spacing for list aesthetic */
    background: rgba(48, 54, 61, 0.3); /* Separator between rows */
    border-radius: 6px;
    overflow: hidden;
}

/* Individual roster row */
.roster-row {
    position: relative;
    display: flex;
    background: linear-gradient(90deg, #0d1117 0%, #161b22 100%);
    border-left: 3px solid rgba(88, 166, 255, 0.2);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.roster-row:hover:not(.locked) {
    background: linear-gradient(90deg, #141b24 0%, #1c2430 100%);
    border-left-color: rgba(88, 166, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.15);
}

.roster-row:active:not(.locked) {
    background: linear-gradient(90deg, #1a2332 0%, #24303f 100%);
}

/* Bag tag art stripe - 50px wide, pure artwork */
.roster-tag-stripe {
    flex-shrink: 0;
    width: 50px;
    background-size: cover;
    background-position: center;
    background-color: rgba(30, 35, 45, 0.9);
}

/* Main content wrapper */
.roster-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Row 1: Tag, Avatar, Name, Action */
.roster-row-1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
}

/* Row 2: Stats or Battle info */
.roster-row-2 {
    padding: 0 0.5rem 0.25rem 0.5rem;
}

/* Tag number */
.roster-tag-num {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #58a6ff;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

/* Avatar column */
.roster-avatar-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(88, 166, 255, 0.25);
    overflow: hidden;
    background: linear-gradient(135deg, #21262d, #30363d);
    transition: border-color 0.15s ease;
}

.roster-row:hover:not(.locked) .roster-avatar-wrap {
    border-color: rgba(88, 166, 255, 0.4);
}

.roster-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Player name - flexible width */
.roster-name {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.roster-friend-icon {
    color: #38bdf8;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.roster-registered-badge {
    color: #22c55e;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.roster-registered-badge i {
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.5));
}

/* ===== ROW 2: STATS ROW (Available players) ===== */
.roster-stats-row {
    display: flex;
    gap: 1rem;
    padding-left: 58px;
    padding-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.roster-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.roster-stat-lbl {
    font-size: 0.7rem;
    color: #8b949e;
    text-transform: uppercase;
}

.roster-division {
    color: #a371f7;
}

.roster-rating {
    color: #ffa657;
}

.roster-avg {
    font-weight: 700;
}

.roster-avg.stat-good {
    color: #3fb950;
}

.roster-avg.stat-even {
    color: #58a6ff;
}

.roster-avg.stat-over {
    color: #f85149;
}

/* ===== ROW 2: BATTLE ROW (Locked players) ===== */
.roster-battle-row {
    padding-left: 44px; /* Align with name */
}

.battle-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.battle-swords {
    color: #f59e0b;
    font-size: 0.9rem;
}

.battle-vs {
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.battle-opponent {
    color: #fbbf24;
    font-weight: 600;
}

/* Locked badge - just icon, battle info shown in row 2 */
.roster-locked-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Target button - far right, shootable */
.roster-target-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), rgba(88, 166, 255, 0.05));
    border: 2px solid rgba(88, 166, 255, 0.3);
    color: rgba(88, 166, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.roster-row:hover:not(.locked) .roster-target-btn {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.25), rgba(88, 166, 255, 0.1));
    border-color: rgba(88, 166, 255, 0.5);
    color: #58a6ff;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.3);
}

/* Shooting animation - physics-based push and spring back */
.roster-row:active:not(.locked) .roster-target-btn {
    animation: target-shoot 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes target-shoot {
    0% {
        transform: scale(1);
        background: linear-gradient(135deg, rgba(88, 166, 255, 0.25), rgba(88, 166, 255, 0.1));
        border-color: rgba(88, 166, 255, 0.5);
        box-shadow: 0 0 12px rgba(88, 166, 255, 0.3);
    }
    /* BANG - fast compression with flash */
    12% {
        transform: scale(0.6);
        background: linear-gradient(135deg, rgba(255, 90, 90, 0.8), rgba(255, 150, 50, 0.6));
        border-color: rgba(255, 100, 100, 0.9);
        box-shadow: 0 0 20px rgba(255, 100, 100, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.3);
    }
    /* Spring back - overshoot */
    35% {
        transform: scale(1.2);
        background: linear-gradient(135deg, rgba(255, 200, 50, 0.5), rgba(255, 150, 50, 0.3));
        border-color: rgba(255, 180, 50, 0.7);
        box-shadow: 0 0 16px rgba(255, 180, 50, 0.5);
    }
    /* Damped oscillation */
    55% {
        transform: scale(0.92);
        background: linear-gradient(135deg, rgba(88, 166, 255, 0.3), rgba(88, 166, 255, 0.15));
        border-color: rgba(88, 166, 255, 0.5);
    }
    75% {
        transform: scale(1.05);
    }
    90% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), rgba(88, 166, 255, 0.05));
        border-color: rgba(88, 166, 255, 0.3);
        box-shadow: none;
    }
}

/* Select flash animation */
.roster-select-flash {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.15), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.roster-row:active:not(.locked) .roster-select-flash {
    animation: roster-flash 0.4s ease-out;
}

@keyframes roster-flash {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

/* Locked state - amber border, full opacity to show battle info */
.roster-row.locked {
    cursor: not-allowed;
    border-left-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, #161b22 100%);
}

.roster-row.locked:hover {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, #161b22 100%);
    border-left-color: rgba(245, 158, 11, 0.5);
    box-shadow: none;
}

.roster-row.locked .roster-name {
    opacity: 0.7;
}

/* Friend row subtle accent */
.roster-row.is-friend {
    border-left-color: rgba(56, 189, 248, 0.3);
}

.roster-row.is-friend:hover:not(.locked) {
    border-left-color: rgba(56, 189, 248, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .roster-tag-stripe {
        width: 40px;
    }

    .roster-row-1 {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .roster-tag-num {
        font-size: 0.8rem;
        width: 36px;
    }

    .roster-avatar-wrap {
        width: 32px;
        height: 32px;
    }

    .roster-name {
        font-size: 0.85rem;
    }

    .roster-target-btn,
    .roster-locked-badge {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .roster-row-2 {
        padding: 0 0.5rem 0.2rem 0.5rem;
    }

    .roster-stats-row {
        padding-left: 50px;
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .roster-battle-row {
        padding-left: 50px;
    }

    .roster-stat-lbl {
        font-size: 0.75rem;
    }

    .battle-indicator {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}
/* ================================================
   CHALLENGE DISCOVERY - Arena Entry Point
   Progressive disclosure for bag tag challenges
   ================================================ */

/* Font import for tactical/military feel */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');

/* ============================================
   DISCOVERY WRAPPER
   ============================================ */
.challenge-discovery {
    /* Theme-aware colors - inherit from parent .challenge-module or use fallbacks */
    --arena-primary: rgb(var(--challenge-primary-light-rgb, 0, 255, 136));
    --arena-primary-rgb: var(--challenge-primary-light-rgb, 0, 255, 136);
    /* Contrast color for readable text on dark backgrounds - falls back to bright cyan */
    --arena-contrast: rgb(var(--challenge-contrast-rgb, 0, 212, 255));
    --arena-secondary: #00d4ff;
    --arena-danger: #ff4444;
    --arena-warning: #f59e0b;
    --arena-dark: #0a0e17;
    --arena-darker: #060a10;
    --arena-glow: rgba(var(--challenge-primary-light-rgb, 0, 255, 136), 0.4);
    --arena-border: rgba(var(--challenge-primary-light-rgb, 0, 255, 136), 0.3);

    position: relative;
    margin: 1.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   COLLAPSED STATE - The Arena Gates
   ============================================ */
.challenge-discovery__trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--arena-dark) 0%, var(--arena-darker) 100%);
    border: 2px solid var(--arena-border);
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;

    /* Reset button styles */
    font-family: inherit;
    color: inherit;
    text-align: left;
}

.challenge-discovery__trigger:hover {
    border-color: var(--arena-primary);
    box-shadow:
        0 0 30px var(--arena-glow),
        inset 0 0 60px rgba(var(--arena-primary-rgb), 0.05);
    transform: translateY(-2px);
}

.challenge-discovery__trigger:focus-visible {
    outline: 2px solid var(--arena-primary);
    outline-offset: 3px;
}

/* Animated scan line effect */
.challenge-discovery__trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--arena-primary-rgb), 0.08) 50%,
        transparent 100%
    );
    animation: arena-scan 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes arena-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Corner brackets for tactical feel */
.challenge-discovery__trigger::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid transparent;
    border-image: linear-gradient(
        135deg,
        var(--arena-primary) 0%,
        transparent 15%,
        transparent 85%,
        var(--arena-primary) 100%
    ) 1;
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   ICON SECTION - Crossed Swords
   ============================================ */
.challenge-discovery__icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.challenge-discovery__icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--arena-primary-rgb), 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 12px;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.challenge-discovery__icon {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    color: var(--arena-contrast);
    filter: drop-shadow(0 0 8px rgba(var(--challenge-contrast-rgb, 0, 212, 255), 0.4));
    transition: transform 0.3s ease;
}

.challenge-discovery__trigger:hover .challenge-discovery__icon {
    transform: scale(1.15) rotate(5deg);
}

/* Player avatar in collapsed state */
.challenge-discovery__avatar {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--arena-primary);
    box-shadow:
        0 0 12px var(--arena-glow),
        inset 0 0 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.challenge-discovery__trigger:hover .challenge-discovery__avatar {
    transform: scale(1.1);
    border-color: var(--arena-warning);
    box-shadow:
        0 0 20px rgba(245, 158, 11, 0.5),
        inset 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Avatar wrapper from PlayerAvatar component - ensure proper sizing */
.challenge-discovery__icon-wrap .player-avatar-wrapper {
    width: 48px;
    height: 48px;
}

.challenge-discovery__icon-wrap .player-avatar-wrapper img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--arena-primary);
    box-shadow:
        0 0 12px var(--arena-glow),
        inset 0 0 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.challenge-discovery__trigger:hover .player-avatar-wrapper img {
    transform: scale(1.1);
    border-color: var(--arena-warning);
    box-shadow:
        0 0 20px rgba(245, 158, 11, 0.5),
        inset 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Active challenge state - warning background */
.challenge-discovery--active .challenge-discovery__icon-bg {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(255, 68, 68, 0.2) 100%);
}

.challenge-discovery--active .challenge-discovery__icon {
    color: var(--arena-warning);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

@keyframes active-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* ============================================
   TEXT CONTENT
   ============================================ */
.challenge-discovery__content {
    flex: 1;
    min-width: 0;
}

.challenge-discovery__label {
    display: block;
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--arena-contrast);
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.challenge-discovery--active .challenge-discovery__label {
    color: var(--arena-warning);
}

.challenge-discovery__title {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.challenge-discovery__hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Status badge for active challenges */
.challenge-discovery__status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(255, 68, 68, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 100px;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--arena-warning);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.375rem;
}

.challenge-discovery__status-dot {
    width: 6px;
    height: 6px;
    background: var(--arena-warning);
    border-radius: 50%;
    animation: status-blink 1s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   CHEVRON INDICATOR
   ============================================ */
.challenge-discovery__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(var(--challenge-contrast-rgb, 0, 212, 255), 0.1);
    border-radius: 8px;
    color: var(--arena-contrast);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.challenge-discovery__chevron i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-discovery__trigger:hover .challenge-discovery__chevron {
    background: rgba(var(--challenge-contrast-rgb, 0, 212, 255), 0.2);
}

.challenge-discovery[aria-expanded="true"] .challenge-discovery__chevron i {
    transform: rotate(180deg);
}

/* ============================================
   EXPANDED STATE - The Arena Floor
   ============================================ */
.challenge-discovery__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-discovery[aria-expanded="true"] .challenge-discovery__panel {
    grid-template-rows: 1fr;
}

.challenge-discovery__panel-inner {
    overflow: hidden;
}

.challenge-discovery__arena {
    padding: 1.25rem;
    padding-top: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.challenge-discovery[aria-expanded="true"] .challenge-discovery__arena {
    opacity: 1;
    transform: translateY(0);
}

/* Arena floor styling */
.challenge-discovery__arena::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--arena-border) 20%,
        var(--arena-primary) 50%,
        var(--arena-border) 80%,
        transparent 100%
    );
    margin-bottom: 1.25rem;
}

/* Override challenge module container styles when inside discovery */
.challenge-discovery .challenge-module {
    margin-bottom: 0;
    background: transparent;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 575px) {
    .challenge-discovery__trigger {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .challenge-discovery__icon-wrap {
        width: 48px;
        height: 48px;
    }

    .challenge-discovery__icon {
        font-size: 1.5rem;
    }

    .challenge-discovery__title {
        font-size: 1rem;
    }

    .challenge-discovery__hint {
        font-size: 0.75rem;
    }

    .challenge-discovery__chevron {
        width: 28px;
        height: 28px;
    }

    .challenge-discovery__arena {
        padding: 1rem;
        padding-top: 0;
    }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */
[data-bs-theme="dark"] .challenge-discovery__trigger {
    background: linear-gradient(135deg, #0d1117 0%, #0a0e17 100%);
}

[data-bs-theme="dark"] .challenge-discovery__hint {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .challenge-discovery__trigger::before,
    .challenge-discovery__icon-bg,
    .challenge-discovery__status-dot {
        animation: none;
    }

    .challenge-discovery__panel {
        transition-duration: 0.15s;
    }
}

/* ============================================
   CAN CHALLENGE STATE - Ready to Battle
   ============================================ */
.challenge-discovery--can-challenge .challenge-discovery__icon-bg {
    background: linear-gradient(135deg, rgba(var(--arena-primary-rgb), 0.25) 0%, rgba(0, 212, 255, 0.15) 100%);
}

.challenge-discovery--can-challenge .challenge-discovery__trigger {
    border-color: rgba(var(--arena-primary-rgb), 0.4);
}

/* ============================================
   NO TAG STATE - Awaiting Assignment
   ============================================ */
.challenge-discovery--no-tag .challenge-discovery__icon-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    animation: none;
}

.challenge-discovery--no-tag .challenge-discovery__icon {
    color: rgba(255, 255, 255, 0.5);
    filter: none;
}

.challenge-discovery--no-tag .challenge-discovery__label {
    color: rgba(255, 255, 255, 0.5);
}

.challenge-discovery--no-tag .challenge-discovery__trigger {
    border-color: rgba(255, 255, 255, 0.15);
}

.challenge-discovery--no-tag .challenge-discovery__trigger:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* ============================================
   ARENA FLOOR CONTENT - Tactical CTA Styling
   Override challenge-module styles for seamless integration
   ============================================ */

/* Challenge CTA - Dark tactical styling */
.challenge-discovery .challenge-cta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

/* Description card - Tactical briefing style */
.challenge-discovery .challenge-description {
    position: relative;
    margin: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--arena-primary-rgb), 0.08) 0%, rgba(0, 212, 255, 0.04) 100%);
    border: 1px solid rgba(var(--arena-primary-rgb), 0.2);
    border-left: 3px solid var(--arena-primary);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.challenge-discovery .challenge-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(var(--arena-primary-rgb), 0.02) 3px,
        rgba(var(--arena-primary-rgb), 0.02) 6px
    );
    pointer-events: none;
    border-radius: 8px;
}

.challenge-discovery .challenge-description i {
    color: var(--arena-contrast);
    filter: drop-shadow(0 0 4px rgba(var(--challenge-contrast-rgb, 0, 212, 255), 0.4));
}

.challenge-discovery .challenge-description strong {
    color: var(--arena-contrast);
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Issue Challenge Button - Battle-ready dramatic styling */
.challenge-discovery .btn-issue-challenge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--arena-primary) 0%, #00d4ff 50%, var(--arena-primary) 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0e17;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 30px rgba(var(--arena-primary-rgb), 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: button-gradient-shift 3s ease-in-out infinite;
}

@keyframes button-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Button glow ring */
.challenge-discovery .btn-issue-challenge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--arena-primary), #00d4ff, var(--arena-primary));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

/* Button scan effect */
.challenge-discovery .btn-issue-challenge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: button-scan 2s ease-in-out infinite;
}

@keyframes button-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.challenge-discovery .btn-issue-challenge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 50px rgba(var(--arena-primary-rgb), 0.6),
        0 8px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.challenge-discovery .btn-issue-challenge:hover::before {
    opacity: 0.9;
    filter: blur(12px);
}

.challenge-discovery .btn-issue-challenge:active {
    transform: translateY(-1px) scale(0.99);
}

.challenge-discovery .btn-issue-challenge .btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-discovery .btn-issue-challenge .btn-text i {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 4px rgba(10, 14, 23, 0.5));
}

/* Help text - Tactical intel styling */
.challenge-discovery .challenge-help-text {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--arena-primary-rgb), 0.03);
    border-radius: 8px;
    border: 1px solid rgba(var(--arena-primary-rgb), 0.1);
}

.challenge-discovery .help-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.challenge-discovery .help-item i {
    color: var(--arena-primary);
    font-size: 0.875rem;
    filter: drop-shadow(0 0 3px rgba(var(--arena-primary-rgb), 0.4));
}

.challenge-discovery .help-item small {
    font-size: inherit;
}

/* No Tag Message - Tactical awaiting assignment */
.challenge-discovery .no-tag-message {
    text-align: center;
    padding: 1.5rem 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.challenge-discovery .no-tag-message .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.challenge-discovery .no-tag-message p {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FLIPPY'S WWE-STYLE ANNOUNCEMENT
   Dramatic ring announcer commentary section
   ============================================ */
.flippy-announcement {
    margin-top: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Subtle animated border glow */
.flippy-announcement::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg,
        rgba(245, 158, 11, 0) 0%,
        rgba(245, 158, 11, 0.6) 50%,
        rgba(245, 158, 11, 0) 100%);
    background-size: 200% 100%;
    animation: announcement-glow 3s ease-in-out infinite;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
}

@keyframes announcement-glow {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.9);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.announcement-header i {
    color: #f59e0b;
    font-size: 0.85rem;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
}

.announcement-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Style markdown elements within announcement */
.announcement-content p {
    margin: 0 0 0.5rem 0;
}

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

.announcement-content strong {
    color: #f59e0b;
    font-weight: 600;
}

.announcement-content em {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Flippy action asterisks styling */
.announcement-content em:first-child,
.announcement-content p em:first-child {
    display: block;
    color: rgba(245, 158, 11, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Now Challenged module specific adjustments */
.now-challenged-module .flippy-announcement {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}

.now-challenged-module .flippy-announcement::before {
    background: linear-gradient(90deg,
        rgba(239, 68, 68, 0) 0%,
        rgba(239, 68, 68, 0.6) 50%,
        rgba(239, 68, 68, 0) 100%);
    background-size: 200% 100%;
}

.now-challenged-module .announcement-header {
    color: rgba(239, 68, 68, 0.9);
}

.now-challenged-module .announcement-header i {
    color: #ef4444;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.now-challenged-module .announcement-content strong {
    color: #ef4444;
}

/* Mobile adjustments for announcement */
@media (max-width: 576px) {
    .flippy-announcement {
        padding: 0.75rem;
    }

    .announcement-header {
        font-size: 0.6rem;
    }

    .announcement-content {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .flippy-announcement::before {
        animation: none;
        opacity: 0.3;
    }
}

/* ============================================
   BATTLE DOSSIER - FLIPPY SAYS SIMPLE VARIANT
   Dark tactical styling for _FlippySaysSimple partial
   ============================================ */
.battle-dossier-flippy.flippy-says-simple {
    margin: 0;
    padding: 1rem;
    background: linear-gradient(
        135deg,
        rgba(15, 20, 30, 0.95) 0%,
        rgba(20, 25, 35, 0.9) 50%,
        rgba(25, 30, 40, 0.85) 100%
    );
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    animation: none;
    position: relative;
    overflow: hidden;
}

/* Subtle scan line effect */
.battle-dossier-flippy.flippy-says-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(245, 158, 11, 0.02) 2px,
        rgba(245, 158, 11, 0.02) 4px
    );
    pointer-events: none;
    z-index: 0;
}

/* Larger, glowing avatar for Flippy */
.battle-dossier-flippy .flippy-says-simple__avatar {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(245, 158, 11, 0.6);
    border-radius: 50%;
    box-shadow:
        0 0 12px rgba(245, 158, 11, 0.4),
        0 0 24px rgba(245, 158, 11, 0.2);
    position: relative;
    z-index: 1;
    opacity: 1;
}

.battle-dossier-flippy .flippy-says-simple__content {
    position: relative;
    z-index: 1;
}

.battle-dossier-flippy .flippy-says-simple__label {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 1;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    margin-bottom: 0.5rem;
}

.battle-dossier-flippy .flippy-says-simple__message {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

/* Action text in asterisks - styled as stage directions */
.battle-dossier-flippy .flippy-says-simple__message em {
    color: rgba(245, 158, 11, 0.75);
    font-style: italic;
    opacity: 0.9;
}

/* Regular paragraphs */
.battle-dossier-flippy .flippy-says-simple__message p {
    margin: 0 0 0.75rem 0;
}

.battle-dossier-flippy .flippy-says-simple__message p:last-child {
    margin-bottom: 0;
}

/* Bold/emphasized text - key announcements */
.battle-dossier-flippy .flippy-says-simple__message strong {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .battle-dossier-flippy.flippy-says-simple {
        padding: 0.875rem;
    }

    .battle-dossier-flippy .flippy-says-simple__avatar {
        width: 36px;
        height: 36px;
    }

    .battle-dossier-flippy .flippy-says-simple__label {
        font-size: 0.6rem;
    }

    .battle-dossier-flippy .flippy-says-simple__message {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* ============================================
   FLIPPY ANNOUNCEMENT - Progressive Disclosure
   Collapsible wrapper with "Read more" toggle
   ============================================ */
.flippy-announcement-wrapper {
    position: relative;
    margin-top: 1rem;
}

.flippy-announcement-content {
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.flippy-announcement-wrapper[data-expanded="true"] .flippy-announcement-content {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

/* Gradient fade overlay when collapsed - matches flippy background */
.flippy-announcement-fade {
    position: absolute;
    bottom: 40px;
    left: 1px;
    right: 1px;
    height: 80px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(18, 23, 32, 0.85) 50%,
        rgba(18, 23, 32, 1) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 0 0 9px 9px;
}

.flippy-announcement-wrapper[data-expanded="true"] .flippy-announcement-fade {
    opacity: 0;
}

/* Toggle button - integrated into the dossier */
.flippy-announcement-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    margin-top: 0;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 0;
    color: rgba(245, 158, 11, 0.9);
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flippy-announcement-toggle:hover {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.flippy-announcement-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.flippy-announcement-wrapper[data-expanded="true"] .flippy-announcement-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile adjustments for progressive disclosure */
@media (max-width: 576px) {
    .flippy-announcement-content {
        max-height: 160px;
    }

    .flippy-announcement-toggle {
        font-size: 0.65rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   EXPANDED PANEL BACKGROUND
   ============================================ */
.challenge-discovery[aria-expanded="true"] {
    background: linear-gradient(180deg, var(--arena-dark) 0%, var(--arena-darker) 100%);
    border: 2px solid var(--arena-border);
    border-radius: 16px;
}

.challenge-discovery[aria-expanded="true"] .challenge-discovery__trigger {
    border: none;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(var(--arena-primary-rgb), 0.15);
}

/* ============================================
   RESPONSIVE - Mobile refinements
   ============================================ */
@media (max-width: 575px) {
    .challenge-discovery .challenge-description {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    .challenge-discovery .btn-issue-challenge {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .challenge-discovery .challenge-help-text {
        padding: 0.625rem 0.875rem;
    }

    .challenge-discovery .help-item {
        font-size: 0.7rem;
    }
}

/* ============================================
   REDUCED MOTION - Disable animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .challenge-discovery .btn-issue-challenge {
        animation: none;
    }

    .challenge-discovery .btn-issue-challenge::after {
        animation: none;
    }

    .challenge-discovery .challenge-description::before {
        background: none;
    }
}
