/**
 * ============================================
 * COMPARE PAGE - PREMIUM PS3-ERA HUD DESIGN
 * ============================================
 * 
 * Clean, dark, premium design with depth and hierarchy.
 * Minimal glow, maximum readability.
 * 
 * DESIGN SYSTEM:
 * - Border radius: 4px (small), 8px (medium), 12px (large)
 * - Border weight: 1px (subtle), 2px (accent)
 * - Spacing: 4px, 8px, 12px, 16px, 24px
 * - Shadows: layered for depth
 */

/* ==========================
   DESIGN TOKENS
   ========================== */
#compare-view {
    /* Backgrounds */
    --cv-bg-dark: #080a10;
    --cv-bg-panel: #0d1118;
    --cv-bg-module: #121820;
    --cv-bg-elevated: #181f28;
    
    /* Team Colors - Purple (left) and Green (right) to match menu indicators */
    --cv-team-left: #a855f7;        /* Purple - matches left indicator */
    --cv-team-left-dim: rgba(168, 85, 247, 0.15);
    --cv-team-left-glow: rgba(168, 85, 247, 0.4);
    --cv-team-right: #22c55e;       /* Green - matches right indicator */
    --cv-team-right-dim: rgba(34, 197, 94, 0.15);
    --cv-team-right-glow: rgba(34, 197, 94, 0.4);
    
    /* Accent Colors */
    --cv-accent: #22d3ee;           /* Cyan - UI accent */
    --cv-accent-dim: rgba(34, 211, 238, 0.12);
    --cv-cta: #facc15;              /* Yellow - Fight/VS only */
    --cv-cta-dim: rgba(250, 204, 21, 0.15);
    --cv-cta-glow: rgba(250, 204, 21, 0.5);
    --cv-win: #22c55e;              /* Green - winner indicator */
    --cv-win-dim: rgba(34, 197, 94, 0.15);
    
    /* Text */
    --cv-text-primary: #f1f5f9;
    --cv-text-secondary: #94a3b8;
    --cv-text-muted: #64748b;
    --cv-text-dim: #475569;
    
    /* Borders & Surfaces */
    --cv-border: rgba(255, 255, 255, 0.08);
    --cv-border-subtle: rgba(255, 255, 255, 0.05);
    --cv-border-accent: rgba(34, 211, 238, 0.3);
    
    /* Shadows */
    --cv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --cv-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --cv-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --cv-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    
    /* Consistent sizing */
    --cv-radius-sm: 4px;
    --cv-radius-md: 8px;
    --cv-radius-lg: 12px;
    
    /* Transitions */
    --cv-transition: 0.2s ease;
    --cv-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy variable mappings for JS compatibility */
    --c-gold: #facc15;
    --c-cyan: #0ea5e9;
    --c-orange: #f97316;
    --c-green: #22c55e;
    --c-purple: #a78bfa;
    --c-text-primary: #f1f5f9;
    --c-text-secondary: #94a3b8;
    --c-text-muted: #64748b;
    --c-glass-border: rgba(255, 255, 255, 0.08);
    --t-gold: #facc15;
    --t-cyan: #0ea5e9;
    --t-orange: #f97316;
    --t-green: #22c55e;
}

/* ==========================
   ANIMATIONS
   ========================== */
@keyframes cv-slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cv-slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cv-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cv-barFill {
    from { width: 0; }
}

@keyframes cv-ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--cv-cta-glow); }
    50% { box-shadow: 0 6px 30px var(--cv-cta-glow), 0 0 40px var(--cv-cta-dim); }
}

@keyframes cv-vsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ==========================
   VIEWPORT SHELL
   ========================== */
#compare-view.active-view {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    height: 100%;
    background: transparent;
}

/* ==========================
   FIGHT SCREEN GRID
   ========================== */
#compare-view .fight-screen {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr clamp(200px, 20vw, 300px) 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px;
    align-items: stretch;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    background: transparent;
}

/* ==========================
   FIGHTER PANELS (LEFT/RIGHT)
   ========================== */
#compare-view .fighter-section {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    background: linear-gradient(165deg, var(--cv-bg-panel) 0%, var(--cv-bg-dark) 100%);
    border-radius: var(--cv-radius-lg);
    border: 1px solid var(--cv-border);
    overflow: hidden;
    position: relative;
    box-shadow: 
        var(--cv-shadow-lg),
        var(--cv-shadow-inset),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    transition: all var(--cv-transition-slow);
}

/* Rim light effect */
#compare-view .fighter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* LEFT PANEL - PURPLE */
#compare-view .fighter-section.fighter-left {
    grid-template-columns: 1fr auto;
    border-left: 3px solid #a855f7;
    animation: cv-slideInLeft 0.4s ease-out;
}

#compare-view .fighter-section.fighter-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), transparent);
    pointer-events: none;
    opacity: 0.6;
}

/* RIGHT PANEL - GREEN */
#compare-view .fighter-section.fighter-right {
    grid-template-columns: auto 1fr;
    border-right: 3px solid #22c55e;
    animation: cv-slideInRight 0.4s ease-out;
}

#compare-view .fighter-section.fighter-right::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(-90deg, rgba(34, 197, 94, 0.15), transparent);
    pointer-events: none;
    opacity: 0.6;
}

/* Hover states - subtle lift only */
#compare-view .fighter-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--cv-shadow-lg),
        0 12px 40px rgba(0, 0, 0, 0.4),
        var(--cv-shadow-inset);
}

/* SELECTING STATE - Clear visual indicator when selecting an animal */
#compare-view .fighter-display.selecting {
    animation: cv-selectingPulse 1.2s ease-in-out infinite;
    position: relative;
}

#compare-view .fighter-display.selecting::after {
    content: 'SELECT AN ANIMAL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--cv-cta);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 12px 20px;
    border-radius: var(--cv-radius-md);
    border: 2px solid var(--cv-cta);
    box-shadow: 0 0 30px var(--cv-cta-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 100;
    text-shadow: 0 0 10px var(--cv-cta-glow);
    animation: cv-selectTextPulse 1s ease-in-out infinite;
}

#compare-view .fighter-section.fighter-left .fighter-display.selecting {
    box-shadow: inset 0 0 40px rgba(168, 85, 247, 0.4), 0 0 30px rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.8);
}

#compare-view .fighter-section.fighter-right .fighter-display.selecting {
    box-shadow: inset 0 0 40px rgba(34, 197, 94, 0.4), 0 0 30px rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.8);
}

@keyframes cv-selectingPulse {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.85;
    }
}

@keyframes cv-selectTextPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px var(--cv-cta-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.02);
        box-shadow: 0 0 40px var(--cv-cta-glow), 0 4px 25px rgba(0, 0, 0, 0.7);
    }
}

/* Hide old elements */
#compare-view .fighter-info-overlay,
#compare-view .compare-stats-panel {
    display: none !important;
}

/* ==========================
   IDENTITY TOP SECTION
   ========================== */
#compare-view .c-identity-top {
    grid-column: 1 / -1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--cv-border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

/* Animal Name - strongest hierarchy */
#compare-view .c-fighter-name {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--cv-text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#compare-view .fighter-left .c-fighter-name {
    color: var(--cv-team-left);
    text-shadow: 0 0 15px var(--cv-team-left-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
}

#compare-view .fighter-right .c-fighter-name {
    color: var(--cv-team-right);
    text-shadow: 0 0 15px var(--cv-team-right-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Scientific Name - more readable */
#compare-view .c-scientific {
    font-size: 0.8rem;
    color: var(--cv-text-secondary);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Battle Record Badge - SINGLE ROW */
#compare-view .c-record-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--cv-bg-module);
    border-radius: var(--cv-radius-sm);
    padding: 5px 10px;
    border: 1px solid var(--cv-border-subtle);
    margin-top: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

#compare-view .c-record-badge .record-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

#compare-view .c-record-badge .record-item i {
    font-size: 0.55rem;
    color: var(--cv-text-muted);
}

#compare-view .c-record-badge .record-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cv-text-primary);
    font-variant-numeric: tabular-nums;
}

#compare-view .c-record-badge .record-label {
    font-size: 0.45rem;
    color: var(--cv-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#compare-view .c-record-badge .record-divider {
    width: 1px;
    height: 12px;
    background: var(--cv-border);
    align-self: center;
    flex-shrink: 0;
}

/* ==========================
   HERO SECTION (ANIMAL IMAGE)
   ========================== */
#compare-view .c-hero-section {
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    position: relative;
}

#compare-view .fighter-left .c-hero-section {
    grid-column: 2;
    border-left: 1px solid var(--cv-border-subtle);
}

#compare-view .fighter-right .c-hero-section {
    grid-column: 1;
    border-right: 1px solid var(--cv-border-subtle);
}

#compare-view .fighter-display {
    width: clamp(70px, 12vh, 150px);
    height: clamp(70px, 12vh, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border-radius: var(--cv-radius-md);
    overflow: hidden;
    transition: all var(--cv-transition);
    background: var(--cv-bg-module);
    border: 2px solid var(--cv-border);
    box-shadow: var(--cv-shadow-md), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

#compare-view .fighter-left .fighter-display {
    border-color: #a855f7;
    box-shadow: var(--cv-shadow-md), inset 0 0 30px rgba(168, 85, 247, 0.2), 0 0 15px rgba(168, 85, 247, 0.3);
}

#compare-view .fighter-right .fighter-display {
    border-color: #22c55e;
    box-shadow: var(--cv-shadow-md), inset 0 0 30px rgba(34, 197, 94, 0.2), 0 0 15px rgba(34, 197, 94, 0.3);
}

#compare-view .fighter-display:hover {
    transform: scale(1.05);
    border-color: var(--cv-accent);
}

#compare-view .fighter-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform var(--cv-transition);
}

#compare-view .fighter-display:hover .fighter-image {
    transform: scale(1.08);
}

#compare-view .fighter-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--cv-text-dim);
    padding: 1rem;
    text-align: center;
}

#compare-view .fighter-placeholder i {
    font-size: 1.5rem;
    opacity: 0.4;
}

#compare-view .fighter-placeholder p {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Click hint */
#compare-view .c-click-hint {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--cv-text-muted);
    font-size: 0.55rem;
    padding: 3px 6px;
    border-radius: var(--cv-radius-sm);
    opacity: 0;
    transition: opacity var(--cv-transition);
    pointer-events: none;
    white-space: nowrap;
}

#compare-view .fighter-display:hover .c-click-hint {
    opacity: 1;
}

/* ==========================
   BOTTOM INFO SECTION
   ========================== */
#compare-view .c-bottom-info {
    grid-row: 2;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    overflow: hidden;
    justify-content: space-evenly;
}

#compare-view .fighter-left .c-bottom-info {
    grid-column: 1;
    border-right: 1px solid var(--cv-border-subtle);
}

#compare-view .fighter-right .c-bottom-info {
    grid-column: 2;
    border-left: 1px solid var(--cv-border-subtle);
}

/* Quick Info Pills */
#compare-view .c-quick-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

#compare-view .quick-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--cv-text-secondary);
    font-weight: 600;
    padding: 4px 8px;
    background: var(--cv-bg-module);
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-sm);
    transition: all var(--cv-transition);
    font-variant-numeric: tabular-nums;
}

#compare-view .quick-info-item:hover {
    background: var(--cv-bg-elevated);
    border-color: var(--cv-border-accent);
}

#compare-view .quick-info-item i {
    color: var(--cv-accent);
    font-size: 0.6rem;
}

#compare-view .quick-info-item.clickable {
    cursor: pointer;
}

#compare-view .quick-info-item.clickable:hover {
    background: var(--cv-bg-elevated);
    border-color: var(--cv-accent);
}

#compare-view .quick-info-item.clickable:hover .toggle-icon {
    color: var(--cv-accent);
}

#compare-view .quick-info-item .toggle-icon {
    display: inline-block;
    font-size: 0.5rem;
    color: var(--cv-text-dim);
    margin-left: 2px;
    transition: transform 0.3s ease;
}

#compare-view .quick-info-item.clickable:hover .toggle-icon {
    animation: cv-rotateToggle 0.6s ease-in-out;
}

@keyframes cv-rotateToggle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* Tags Section */
#compare-view .c-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    justify-content: space-evenly;
    width: 100%;
}

#compare-view .c-abilities-section,
#compare-view .c-traits-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

/* Section Labels */
#compare-view .abilities-label,
#compare-view .traits-label {
    font-size: 0.55rem;
    color: var(--cv-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

#compare-view .abilities-label i {
    color: var(--cv-team-left);
    font-size: 0.5rem;
}

#compare-view .traits-label i {
    color: var(--cv-text-muted);
    font-size: 0.5rem;
}

#compare-view .abilities-tags-compact,
#compare-view .traits-tags-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* Ability Tags - "Moves" style, slightly louder */
#compare-view .ability-tag-sm {
    background: linear-gradient(135deg, var(--cv-team-left-dim), rgba(14, 165, 233, 0.08));
    color: var(--cv-team-left);
    padding: 3px 8px;
    border-radius: var(--cv-radius-sm);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid rgba(14, 165, 233, 0.25);
    transition: all var(--cv-transition);
}

#compare-view .ability-tag-sm:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
}

/* Trait Tags - "Passives" style, quieter/neutral */
#compare-view .trait-tag-sm {
    background: var(--cv-bg-module);
    color: var(--cv-text-secondary);
    padding: 3px 8px;
    border-radius: var(--cv-radius-sm);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid var(--cv-border);
    transition: all var(--cv-transition);
}

#compare-view .trait-tag-sm:hover {
    background: var(--cv-bg-elevated);
    border-color: var(--cv-border-accent);
}

/* ==========================
   TOURNAMENT DASHBOARD (MEDALS)
   ========================== */
#compare-view .c-tournament-dashboard {
    grid-column: 1 / -1;
    grid-row: 3;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 var(--cv-radius-lg) var(--cv-radius-lg);
    padding: 8px 12px;
    border-top: 1px solid var(--cv-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#compare-view .dashboard-title {
    font-size: 0.6rem;
    color: var(--cv-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

#compare-view .dashboard-title i {
    color: var(--cv-cta);
    font-size: 0.55rem;
}

#compare-view .medal-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

#compare-view .medal-card {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--cv-radius-sm);
    background: var(--cv-bg-module);
    border: 1px solid var(--cv-border);
    transition: all var(--cv-transition);
}

#compare-view .medal-card:hover {
    background: var(--cv-bg-elevated);
    transform: translateY(-1px);
}

#compare-view .medal-icon-wrap {
    font-size: 0.7rem;
}

#compare-view .medal-card.gold .medal-icon-wrap i { color: #fbbf24; }
#compare-view .medal-card.silver .medal-icon-wrap i { color: #9ca3af; }
#compare-view .medal-card.bronze .medal-icon-wrap i { color: #d97706; }

#compare-view .medal-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cv-text-primary);
    font-variant-numeric: tabular-nums;
}

#compare-view .medal-label {
    display: none;
}

/* ==========================
   FIGHT CENTER
   ========================== */
#compare-view .fight-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 10px;
    gap: 8px;
    background: linear-gradient(180deg, var(--cv-bg-panel) 0%, var(--cv-bg-dark) 100%);
    border-radius: var(--cv-radius-lg);
    border: 1px solid var(--cv-border);
    box-shadow: var(--cv-shadow-lg), var(--cv-shadow-inset);
    animation: cv-fadeIn 0.5s ease-out 0.15s both;
    overflow: hidden;
}

/* Hide radar chart */
#compare-view .radar-chart-container {
    display: none;
}

/* ==========================
   VS SECTION
   ========================== */
#compare-view .c-vs-section {
    position: relative;
    width: clamp(28px, 4vh, 40px);
    height: clamp(28px, 4vh, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#compare-view .c-vs-burst {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--cv-cta-dim) 0%, transparent 70%);
    opacity: 0.6;
}

#compare-view .c-vs-diamond {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--cv-cta-dim), rgba(250, 204, 21, 0.08));
    transform: rotate(45deg);
    border-radius: 4px;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

#compare-view .c-vs-badge {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--cv-cta), #f59e0b);
    width: clamp(26px, 3.5vh, 36px);
    height: clamp(26px, 3.5vh, 36px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px var(--cv-cta-glow);
    animation: cv-vsFloat 3s ease-in-out infinite;
}

#compare-view .c-vs-badge span {
    font-size: clamp(0.55rem, 1vh, 0.75rem);
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: 0.05em;
}

/* ==========================
   FIGHT BUTTON - CTA ONLY GETS GLOW
   ========================== */
#compare-view .c-fight-btn {
    padding: clamp(6px, 1vh, 10px) clamp(18px, 3vw, 28px);
    font-size: clamp(0.7rem, 1.3vh, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--cv-cta), #f59e0b);
    color: #1a1a2e;
    border: none;
    border-radius: var(--cv-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--cv-transition);
    box-shadow: 0 4px 20px var(--cv-cta-glow);
    animation: cv-ctaPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

#compare-view .c-fight-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 32px var(--cv-cta-glow), 0 0 40px var(--cv-cta-dim);
    animation: none;
}

#compare-view .c-fight-btn i {
    font-size: 0.85em;
}

/* ==========================
   STAT BARS - CLEAN READABLE DESIGN
   ========================== */
#compare-view .t-stats-compact {
    width: 100%;
    padding: 6px 8px;
    gap: 4px;
    background: var(--cv-bg-module);
    border-radius: var(--cv-radius-md);
    border: 1px solid var(--cv-border);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 0;
}

#compare-view .t-stat-row-compact {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    transition: background var(--cv-transition);
    padding: 2px 4px;
    border-radius: var(--cv-radius-sm);
    min-height: 28px;
}

#compare-view .t-stat-row-compact:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Stat Center Cluster */
#compare-view .t-stat-center-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: clamp(70px, 10vw, 100px);
    padding: 2px 6px;
    background: var(--cv-bg-elevated);
    border-radius: var(--cv-radius-sm);
    border: 1px solid var(--cv-border-subtle);
}

/* Stat Values - LARGER & READABLE */
#compare-view .t-stat-center-cluster .t-val {
    font-size: clamp(0.9rem, 1.6vh, 1.2rem);
    font-weight: 900;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: all var(--cv-transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
}

#compare-view .t-stat-center-cluster .t-val.left {
    color: var(--cv-team-left);
    text-shadow: 0 0 8px var(--cv-team-left-glow), 0 1px 3px rgba(0, 0, 0, 0.7);
}

#compare-view .t-stat-center-cluster .t-val.right {
    color: var(--cv-team-right);
    text-shadow: 0 0 8px var(--cv-team-right-glow), 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Winner highlight - just add brightness, keep team colors */
#compare-view .t-stat-row-compact.left-wins .t-val.left,
#compare-view .t-stat-row-compact.right-wins .t-val.right {
    filter: brightness(1.3);
    text-shadow: 0 0 12px currentColor, 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Stat Icon & Label */
#compare-view .t-stat-icon-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

#compare-view .t-stat-icon-label i {
    font-size: clamp(0.7rem, 1.2vh, 0.9rem);
    color: var(--cv-text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#compare-view .t-stat-abbr {
    font-size: clamp(0.55rem, 0.85vh, 0.7rem);
    color: var(--cv-text-secondary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Stat Bar Tracks - THICK RECTANGLE bars like stats page */
#compare-view .t-stat-bar-left,
#compare-view .t-stat-bar-right {
    height: 18px !important;
    min-height: 18px !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
}

#compare-view .t-stat-bar-left .stat-bar,
#compare-view .t-stat-bar-right .stat-bar {
    height: 100% !important;
    min-height: 18px !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%) !important;
}

#compare-view .t-stat-bar-left .stat-bar-fill,
#compare-view .t-stat-bar-right .stat-bar-fill {
    height: 100% !important;
    min-height: 16px !important;
    border-radius: 0 !important;
}

#compare-view .t-stat-bar-left .stat-bar-fill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, #a855f7 15%, #9333ea 85%, rgba(0, 0, 0, 0.3) 100%) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6) !important;
}

#compare-view .t-stat-bar-right .stat-bar-fill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, #22c55e 15%, #16a34a 85%, rgba(0, 0, 0, 0.3) 100%) !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6) !important;
}

/* Segment lines overlay for segmented look */
#compare-view .t-stat-bar-left::before,
#compare-view .t-stat-bar-right::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 8px,
        rgba(0, 0, 0, 0.6) 8px,
        rgba(0, 0, 0, 0.6) 10px
    ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* LEFT bar - grows from RIGHT to LEFT (mirrored from center) */
#compare-view .t-stat-bar-left {
    transform: scaleX(-1) !important;
}

/* High stat animation - subtle pulse for bars with high values */
#compare-view .t-stat-bar-left .stat-bar-fill.high-stat,
#compare-view .t-stat-bar-right .stat-bar-fill.high-stat {
    animation: cv-highStatPulse 1.5s ease-in-out infinite;
}

@keyframes cv-highStatPulse {
    0%, 100% { 
        filter: brightness(1) saturate(1.2);
    }
    50% { 
        filter: brightness(1.2) saturate(1.5);
    }
}

/* Winner bar highlight - brighter glow */
#compare-view .t-stat-row-compact.left-wins .t-stat-bar-left .stat-bar-fill {
    filter: brightness(1.15) saturate(1.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

#compare-view .t-stat-row-compact.right-wins .t-stat-bar-right .stat-bar-fill {
    filter: brightness(1.15) saturate(1.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
}

/* ==========================
   INTRO OVERLAY - Uses tournament-v4.css styles via .match-intro-overlay class
   The compare intro now uses the same HTML structure and CSS as the tournament
   ========================== */
#matchupIntroOverlay {
    /* Base styles - rest inherited from .match-intro-overlay in tournament-v4.css */
    z-index: 10000;
}

#matchupIntroOverlay .intro-skip-hint {
    position: absolute;
    bottom: 2rem;
    color: var(--cv-text-dim, rgba(255, 255, 255, 0.5));
    font-size: 0.75rem;
}

/* Legacy styles below - kept for compatibility but main styling from tournament-v4.css */
.intro-light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--cv-cta-dim), transparent);
    opacity: 0;
}

.intro-light-sweep.animate {
    animation: lightSweep 0.6s ease-out forwards;
}

.intro-matchup-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.intro-fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-80px);
}

.intro-fighter.right {
    transform: translateX(80px);
}

.intro-fighter.animate-in {
    animation: fighterSlideIn 0.4s ease-out forwards;
}

.intro-fighter.right.animate-in {
    animation: fighterSlideInRight 0.4s ease-out forwards;
}

.intro-fighter-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px var(--cv-cta-glow));
}

.intro-fighter-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--cv-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 16px var(--cv-cta-glow);
}

.intro-fighter.left .intro-fighter-name {
    color: var(--cv-team-left);
}

.intro-fighter.right .intro-fighter-name {
    color: var(--cv-team-right);
}

/* Scoped to compare overlay only - don't affect tournament intro */
#compareIntroOverlay .intro-vs-badge {
    opacity: 0;
    transform: scale(0);
}

#compareIntroOverlay .intro-vs-badge.animate-in {
    animation: vsPop 0.3s ease-out forwards;
}

.intro-vs-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cv-cta);
    text-shadow: 0 0 24px var(--cv-cta-glow);
    transform: rotate(-45deg); /* Counteract parent's 45deg rotation */
}

.intro-skip-hint {
    position: absolute;
    bottom: 2rem;
    color: var(--cv-text-dim);
    font-size: 0.75rem;
}

/* ==========================
   ⚔️ METALLIC FORGE RESULT OVERLAY ⚔️
   Industrial Metal Champion Showcase
   ========================== */
#fightResultOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10001;
    display: none;
    overflow: hidden;
}

#fightResultOverlay.active {
    display: block;
}

/* Explosion Flash - Initial burst */
.explosion-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center 40%, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 215, 100, 0.9) 20%, 
        rgba(255, 140, 0, 0.6) 40%, 
        transparent 70%);
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
}

.explosion-flash.active {
    animation: explosionBurst 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes explosionBurst {
    0% {
        opacity: 1;
        transform: scale(0.3);
    }
    20% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* Metallic Backdrop with Forge Glow */
.result-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Center forge glow */
        radial-gradient(ellipse 70% 50% at center 40%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
        /* Subtle metallic sheen */
        linear-gradient(135deg, rgba(60, 60, 70, 0.3) 0%, transparent 50%, rgba(60, 60, 70, 0.2) 100%),
        /* Base dark metal */
        linear-gradient(180deg, #1a1a22 0%, #0d0d12 50%, #0a0a0f 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#fightResultOverlay.reveal .result-backdrop {
    opacity: 1;
}

/* ==========================
   LARGE METAL RAYS - Center Outward Loop
   ========================== */
.metal-rays-container {
    display: none; /* Replaced with new debris system */
}

/* ==========================
   ATMOSPHERIC FOG LAYER - Cinematic depth
   ========================== */
.atmosphere-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 2s ease;
}

#fightResultOverlay.reveal .fog-layer {
    opacity: 1;
}

.fog-1 {
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse 80% 60% at 30% 70%, 
        rgba(20, 20, 30, 0.7) 0%, 
        rgba(15, 15, 25, 0.4) 40%, 
        transparent 70%);
    animation: fogDrift1 45s ease-in-out infinite;
}

.fog-2 {
    top: -30%;
    left: -30%;
    background: radial-gradient(ellipse 70% 50% at 70% 30%, 
        rgba(25, 25, 35, 0.6) 0%, 
        rgba(20, 20, 30, 0.3) 50%, 
        transparent 80%);
    animation: fogDrift2 55s ease-in-out infinite;
    animation-delay: -15s;
}

.fog-3 {
    top: -40%;
    left: -40%;
    background: radial-gradient(ellipse 90% 70% at 50% 50%, 
        rgba(30, 30, 40, 0.5) 0%, 
        rgba(20, 20, 30, 0.2) 60%, 
        transparent 85%);
    animation: fogDrift3 65s ease-in-out infinite;
    animation-delay: -30s;
}

@keyframes fogDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, 3%) scale(1.05); }
    50% { transform: translate(10%, 0) scale(1.1); }
    75% { transform: translate(5%, -3%) scale(1.05); }
}

@keyframes fogDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-8%, 5%) scale(1.08); }
    66% { transform: translate(-3%, -5%) scale(1.03); }
}

@keyframes fogDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(7%, 7%) scale(1.12); }
}

/* ==========================
   FLOATING METAL DEBRIS - Subtle, Slow, 3D
   Large broken chunks drifting in space
   ========================== */
.metal-debris-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.floating-debris {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    
    /* 3D metallic surface */
    background: 
        linear-gradient(135deg, 
            rgba(90, 90, 100, 0.9) 0%, 
            rgba(60, 60, 70, 0.85) 25%,
            rgba(80, 80, 90, 0.9) 50%,
            rgba(50, 50, 60, 0.85) 75%,
            rgba(70, 70, 80, 0.9) 100%);
    
    /* Irregular broken shape */
    clip-path: var(--shape);
    
    /* 3D depth and lighting */
    box-shadow: 
        inset 3px 3px 8px rgba(255, 255, 255, 0.15),
        inset -3px -3px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Initial state */
    opacity: 0;
    transform: rotate(var(--rotation)) scale(calc(var(--depth)));
    filter: blur(calc((1 - var(--depth)) * 2px));
    
    /* Very slow drift animation */
    animation: debrisDrift var(--duration) ease-in-out var(--delay) infinite;
    
    /* GPU acceleration for smoothness */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Metallic highlight edge */
.floating-debris::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 40%;
    height: 20%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(2px);
}

/* Subtle edge glow */
.floating-debris::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: var(--shape);
    border: 1px solid rgba(100, 100, 120, 0.3);
    box-shadow: inset 0 0 15px rgba(255, 200, 100, 0.05);
}

@keyframes debrisDrift {
    0% {
        opacity: 0;
        transform: rotate(var(--rotation)) scale(calc(var(--depth))) 
                   translate(0, 0);
    }
    10% {
        opacity: calc(var(--depth) * 0.4);
    }
    50% {
        transform: rotate(calc(var(--rotation) + 15deg)) scale(calc(var(--depth))) 
                   translate(var(--drift-x), var(--drift-y));
    }
    90% {
        opacity: calc(var(--depth) * 0.4);
    }
    100% {
        opacity: 0;
        transform: rotate(calc(var(--rotation) + 30deg)) scale(calc(var(--depth))) 
                   translate(calc(var(--drift-x) * 2), calc(var(--drift-y) * 2));
    }
}

/* ==========================
   DUST PARTICLES - Floating specs with light catch
   ========================== */
.dust-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle, 
        rgba(255, 230, 180, var(--opacity)) 0%, 
        rgba(200, 180, 140, calc(var(--opacity) * 0.5)) 50%,
        transparent 100%);
    border-radius: 50%;
    animation: dustFloat var(--duration) ease-in-out var(--delay) infinite;
    will-change: transform, opacity;
}

@keyframes dustFloat {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: var(--opacity);
        transform: translate(calc(var(--drift) * 0.2), -10px) scale(1);
    }
    80% {
        opacity: var(--opacity);
        transform: translate(calc(var(--drift) * 0.8), -30px) scale(1);
    }
}

/* ==========================
   AMBIENT LIGHT RAYS - Volumetric lighting
   ========================== */
.ambient-light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 3s ease;
}

#fightResultOverlay.reveal .ambient-light-rays {
    opacity: 1;
}

.ambient-ray {
    position: absolute;
    left: var(--x);
    top: -20%;
    width: var(--width);
    height: 140%;
    background: linear-gradient(180deg,
        rgba(255, 220, 150, 0.03) 0%,
        rgba(255, 200, 100, 0.06) 30%,
        rgba(255, 180, 80, 0.04) 60%,
        transparent 100%);
    transform: rotate(var(--angle)) translateX(-50%);
    transform-origin: top center;
    animation: rayPulse var(--duration) ease-in-out var(--delay) infinite;
    filter: blur(20px);
}

@keyframes rayPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Metal Grate Background Pattern */
.metal-grate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(40, 40, 50, 0.2) 40px, rgba(40, 40, 50, 0.2) 41px),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(40, 40, 50, 0.2) 40px, rgba(40, 40, 50, 0.2) 41px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

#fightResultOverlay.reveal .metal-grate {
    opacity: 1;
}

/* Metal Pillars - Industrial Columns */
.metal-pillar {
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, 
        #1a1a1f 0%, 
        #3a3a45 15%, 
        #5a5a65 30%,
        #4a4a55 50%, 
        #3a3a45 70%, 
        #2a2a35 85%, 
        #1a1a1f 100%);
    z-index: 2;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.metal-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 200, 100, 0.1) 0%, 
        rgba(255, 200, 100, 0.3) 50%, 
        rgba(255, 200, 100, 0.1) 100%);
    animation: pillarGlow 3s ease-in-out infinite;
}

@keyframes pillarGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.pillar-left {
    left: 0;
    transform: translateX(-100%);
}

.pillar-right {
    right: 0;
    transform: translateX(100%);
}

#fightResultOverlay.reveal .pillar-left {
    opacity: 1;
    transform: translateX(0);
}

#fightResultOverlay.reveal .pillar-right {
    opacity: 1;
    transform: translateX(0);
}

/* Metal Beams - Top and Bottom - SMALLER */
.metal-beam {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, 
        #2a2a35 0%, 
        #4a4a55 20%, 
        #5a5a65 50%, 
        #4a4a55 80%, 
        #2a2a35 100%);
    z-index: 3;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.metal-beam::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 200, 100, 0.4) 20%, 
        rgba(255, 200, 100, 0.6) 50%, 
        rgba(255, 200, 100, 0.4) 80%, 
        transparent 100%);
    animation: beamShine 4s ease-in-out infinite;
}

@keyframes beamShine {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.beam-top {
    top: 0;
    transform: translateY(-100%);
}

.beam-top::before {
    bottom: 0;
}

.beam-bottom {
    bottom: 0;
    transform: translateY(100%);
}

.beam-bottom::before {
    top: 0;
}

#fightResultOverlay.reveal .beam-top,
#fightResultOverlay.reveal .beam-bottom {
    opacity: 1;
    transform: translateY(0);
}

/* Metal Corner Brackets - Smaller */
.metal-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 4;
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.metal-corner::before,
.metal-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #5a5a65 0%, #3a3a45 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.metal-corner::before {
    width: 100%;
    height: 6px;
}

.metal-corner::after {
    width: 6px;
    height: 100%;
}

.corner-tl {
    top: 30px;
    left: 50px;
    transform: scale(0) rotate(-45deg);
}

.corner-tr {
    top: 30px;
    right: 50px;
    transform: scale(0) rotate(45deg);
}

.corner-tr::before { right: 0; }
.corner-tr::after { right: 0; }

.corner-bl {
    bottom: 30px;
    left: 50px;
    transform: scale(0) rotate(-45deg);
}

.corner-bl::before { bottom: 0; }
.corner-bl::after { bottom: 0; }

.corner-br {
    bottom: 30px;
    right: 50px;
    transform: scale(0) rotate(45deg);
}

.corner-br::before { right: 0; bottom: 0; }
.corner-br::after { right: 0; bottom: 0; }

#fightResultOverlay.reveal .metal-corner {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Particles Container */
.result-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* Metallic Shards - Forge sparks rising */
.metallic-shard {
    position: absolute;
    left: var(--x);
    bottom: -20px;
    width: var(--size);
    height: var(--size);
    background: linear-gradient(135deg, var(--color) 0%, rgba(255, 255, 255, 0.95) 50%, var(--color) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: shardRise var(--duration) ease-out var(--delay) infinite;
    opacity: 0;
    box-shadow: 
        0 0 15px var(--color), 
        0 0 30px rgba(255, 200, 100, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes shardRise {
    0% { 
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0);
    }
    15% {
        opacity: 1;
        transform: rotate(90deg) scale(1.2);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-100vh) rotate(1080deg) scale(0.2);
    }
}

/* Explosion Debris Container */
.result-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 6;
}

/* Explosion Debris - Metallic fragments with slow-mo */
.explosion-debris {
    position: absolute;
    left: var(--startX);
    top: var(--startY);
    width: 10px;
    height: 16px;
    background: linear-gradient(180deg, 
        var(--color) 0%, 
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 1) 50%, 
        var(--color) 100%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 30%, 90% 100%, 10% 100%, 0% 30%);
    animation: debrisExplode var(--duration) cubic-bezier(0.25, 0.1, 0.25, 1) var(--delay) forwards;
    opacity: 0;
    box-shadow: 
        0 0 12px var(--color),
        0 0 25px rgba(255, 200, 100, 0.6);
}

@keyframes debrisExplode {
    0% { 
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1.5);
    }
    20% {
        opacity: 1;
        transform: translate(calc(var(--endX) * 0.3), calc(var(--endY) * 0.3)) rotate(calc(var(--rotation) * 0.3)) scale(1.2);
    }
    100% { 
        opacity: 0; 
        transform: translate(var(--endX), var(--endY)) rotate(var(--rotation)) scale(0.1);
    }
}

/* Metallic Sparks - orbiting champion */
.metallic-spark {
    position: absolute;
    width: var(--sparkSize, 5px);
    height: var(--sparkSize, 5px);
    background: radial-gradient(circle, var(--color) 0%, rgba(255, 255, 255, 0.9) 50%, var(--color) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: sparkOrbit 3.5s ease-in-out infinite var(--delay);
    box-shadow: 
        0 0 20px var(--color), 
        0 0 40px var(--color),
        0 0 60px rgba(255, 200, 100, 0.5);
}

@keyframes sparkOrbit {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(70px) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(110px) scale(1.8);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + 200deg)) translateX(130px) scale(0.8);
    }
}

/* Main Arena - Proper Laptop Layout */
.result-arena {
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 25px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 10;
    gap: 6px;
    /* Metallic inner frame */
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%, rgba(255, 255, 255, 0.01) 100%),
        radial-gradient(ellipse 70% 50% at center 40%, rgba(255, 200, 100, 0.06) 0%, transparent 60%);
    border: 1px solid rgba(80, 80, 90, 0.4);
    border-radius: 4px;
}

/* Close Button - Metallic */
.result-close-x {
    position: fixed;
    top: 48px;
    right: 70px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a45 0%, #2a2a35 50%, #3a3a45 100%);
    border: 2px solid #4a4a55;
    color: rgba(255, 200, 100, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.5);
}

#fightResultOverlay.reveal .result-close-x {
    opacity: 1;
    transition-delay: 0.5s;
}

.result-close-x:hover {
    background: linear-gradient(145deg, #4a4a55 0%, #3a3a45 50%, #4a4a55 100%);
    border-color: rgba(255, 200, 100, 0.5);
    color: #ffd700;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 200, 100, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Victory Header - With solid background, always above animal */
.victory-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    z-index: 50;
    padding: 8px 30px 12px;
}

/* Solid background behind victory header */
.victory-header-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(15, 15, 20, 0.95) 0%,
        rgba(20, 20, 28, 0.9) 50%,
        rgba(15, 15, 20, 0.7) 80%,
        transparent 100%);
    border-radius: 0 0 50% 50%;
    z-index: -1;
}

#fightResultOverlay.reveal .victory-header {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.victory-crown-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: conic-gradient(from 0deg, 
        transparent, rgba(255, 200, 100, 0.25), 
        transparent, rgba(255, 200, 100, 0.25), 
        transparent, rgba(255, 200, 100, 0.25), 
        transparent);
    border-radius: 50%;
    animation: raysRotate 15s linear infinite;
    filter: blur(2px);
}

@keyframes raysRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Metal Crown Frame */
.metal-crown-frame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    border: 3px solid transparent;
    border-top: 3px solid #5a5a65;
    border-radius: 50% 50% 0 0;
    opacity: 0.5;
}

.victory-crown {
    font-size: 1.8rem;
    color: #ffd700;
    filter: drop-shadow(0 0 30px rgba(255, 200, 100, 0.9)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
    animation: crownBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.victory-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    /* Metallic gold text */
    background: linear-gradient(180deg, 
        #fff 0%, 
        #ffe680 20%,
        #ffd700 40%, 
        #ffb300 60%,
        #ffd700 80%,
        #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 20px rgba(255, 200, 100, 0.6));
    position: relative;
    z-index: 2;
    line-height: 1;
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { filter: drop-shadow(0 3px 20px rgba(255, 200, 100, 0.6)); }
    50% { filter: drop-shadow(0 3px 30px rgba(255, 215, 0, 0.9)); }
}

.victory-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    color: rgba(255, 200, 100, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ==========================
   CHAMPION SHOWCASE - Interactive with Zoom
   ========================== */
.champion-showcase {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    z-index: 20;
}

#fightResultOverlay.reveal .champion-showcase {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

/* HOVER STATE - Zoom & Focus */
.champion-showcase:hover {
    transform: scale(1.12);
}

.champion-showcase:hover .champion-image {
    transform: translate(-50%, -50%) scale(1.2) !important;
    filter: 
        drop-shadow(0 0 60px rgba(255, 200, 100, 0.8)) 
        drop-shadow(0 0 100px rgba(255, 140, 0, 0.5))
        drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)) !important;
}

.champion-showcase:hover .champion-spotlight {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        inset 0 0 60px rgba(255, 200, 100, 0.6),
        0 0 80px rgba(255, 200, 100, 0.5);
}

/* Show click hint on showcase hover */
.champion-showcase:hover ~ .champion-click-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Click Hint - View Details - Now outside showcase */
.champion-click-hint {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    margin-top: 8px;
    background: linear-gradient(145deg, rgba(60, 60, 70, 0.95), rgba(40, 40, 50, 0.98));
    border: 1px solid rgba(255, 200, 100, 0.4);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    color: rgba(255, 200, 100, 0.9);
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 60;
    transform: translateX(-50%) translateY(10px);
    cursor: pointer;
}

.champion-click-hint i {
    font-size: 0.55rem;
}

/* Always show hint on touch devices */
@media (hover: none) {
    .champion-click-hint {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.champion-aura {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    /* Forge fire glow */
    background: radial-gradient(circle, 
        rgba(255, 140, 0, 0.4) 0%, 
        rgba(255, 100, 0, 0.2) 40%, 
        transparent 70%);
    border-radius: 50%;
    animation: auraPulse 2.5s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.champion-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    /* Metallic ring style */
    border: 2px solid rgba(200, 180, 140, 0.4);
    border-radius: 50%;
    animation: ringExpand 3s ease-in-out infinite;
    box-shadow: 
        inset 0 0 10px rgba(255, 200, 100, 0.2),
        0 0 15px rgba(255, 200, 100, 0.1);
}

.ring-1 { width: 90%; height: 90%; animation-delay: 0s; border-color: rgba(255, 200, 100, 0.3); }
.ring-2 { width: 100%; height: 100%; animation-delay: 0.5s; border-color: rgba(200, 180, 140, 0.35); }
.ring-3 { width: 110%; height: 110%; animation-delay: 1s; border-color: rgba(150, 140, 120, 0.3); }

@keyframes ringExpand {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.champion-spotlight {
    position: absolute;
    inset: -10%;
    margin: auto;
    width: 120%;
    height: 120%;
    /* Metallic gold spotlight circle */
    background: radial-gradient(ellipse at center, 
        rgba(255, 200, 100, 0.25) 0%, 
        rgba(255, 180, 80, 0.12) 40%, 
        transparent 70%);
    border: 3px solid rgba(255, 200, 100, 0.45);
    border-radius: 50%;
    animation: spotlightPulse 3s ease-in-out infinite;
    box-shadow: 
        inset 0 0 25px rgba(255, 200, 100, 0.25),
        0 0 35px rgba(255, 200, 100, 0.2);
    transition: all 0.4s ease;
}

@keyframes spotlightPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Champion Image - MUST be in front of all decorations */
#fightResultOverlay .champion-showcase .champion-image {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 280px !important;
    height: 280px !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: translate(-50%, -50%);
    object-fit: contain !important;
    /* Metallic glow filter */
    filter: 
        drop-shadow(0 0 40px rgba(255, 180, 80, 0.5)) 
        drop-shadow(0 0 70px rgba(255, 140, 0, 0.25))
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    animation: championFloat 4s ease-in-out infinite;
    z-index: 30;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

@keyframes championFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
    50% { transform: translate(-50%, -50%) translateY(-10px) scale(1.02); }
}

.champion-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.champion-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    /* Hot metal spark gradient */
    background: radial-gradient(circle, #ffd700 0%, #ff8c00 50%, #ff4500 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: championParticle 3s ease-in-out infinite var(--delay);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.9), 0 0 30px rgba(255, 200, 100, 0.5);
}

@keyframes championParticle {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(80px) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(140px) scale(1.2);
        opacity: 1;
    }
}

/* ==========================
   CHAMPION INFO - Name with Stable Glow
   ========================== */
.champion-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

#fightResultOverlay.reveal .champion-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Name Wrapper with Glow Behind */
.champion-name-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stable Radial Glow Behind Name */
.champion-name-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 80px;
    /* Stable radial glow - not moving */
    background: radial-gradient(ellipse at center, 
        rgba(255, 215, 100, 0.5) 0%, 
        rgba(255, 180, 60, 0.3) 30%,
        rgba(255, 140, 0, 0.15) 50%,
        transparent 70%);
    filter: blur(8px);
    animation: nameGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nameGlowPulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.champion-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    /* Metallic chrome text */
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #e0e0e0 20%,
        #ffffff 40%,
        #c0c0c0 60%,
        #ffffff 80%,
        #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 200, 100, 0.4));
    line-height: 1;
    padding: 4px 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover Focus Effect on Name */
.champion-name:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.8));
    transform: scale(1.05);
}

.champion-name:hover + .champion-name-glow,
.champion-name-wrapper:hover .champion-name-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
    background: radial-gradient(ellipse at center, 
        rgba(255, 215, 100, 0.7) 0%, 
        rgba(255, 180, 60, 0.4) 30%,
        rgba(255, 140, 0, 0.2) 50%,
        transparent 70%);
}
/* Battle Summary Cards - Metallic Plates */
.battle-summary {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

#fightResultOverlay.reveal .battle-summary {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    /* Metallic card background */
    background: linear-gradient(145deg, 
        rgba(60, 60, 70, 0.9) 0%, 
        rgba(40, 40, 50, 0.95) 50%, 
        rgba(50, 50, 60, 0.9) 100%);
    border: 1px solid rgba(100, 100, 110, 0.5);
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Card Shine Effect on Hover */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.summary-card:hover .card-shine {
    left: 150%;
}

.summary-card:hover {
    background: linear-gradient(145deg, 
        rgba(70, 70, 80, 0.95) 0%, 
        rgba(50, 50, 60, 0.98) 50%, 
        rgba(60, 60, 70, 0.95) 100%);
    border-color: rgba(255, 200, 100, 0.4);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 25px rgba(255, 200, 100, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.5);
}

.summary-card .card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Metallic icon background */
    background: linear-gradient(145deg, 
        var(--card-color, #ffd700) 0%, 
        color-mix(in srgb, var(--card-color, #ffd700) 60%, #000) 100%);
    border-radius: 6px;
    font-size: 0.75rem;
    color: white;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.summary-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 15px var(--card-color, #ffd700),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.difficulty-card { --card-color: #ffd700; }
.dominance-card { --card-color: #22c55e; }
.margin-card { --card-color: #3b82f6; }

.summary-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-card .card-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.summary-card .card-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    /* Metallic text */
    background: linear-gradient(180deg, #fff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Statistical Analysis Section - Metal Data Panel */
.stat-analysis {
    width: 100%;
    max-width: 420px;
    /* Metallic panel */
    background: linear-gradient(145deg, 
        rgba(45, 45, 55, 0.95) 0%, 
        rgba(30, 30, 40, 0.98) 50%, 
        rgba(40, 40, 50, 0.95) 100%);
    border: 1px solid rgba(80, 80, 90, 0.6);
    border-radius: 10px;
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    flex-shrink: 0;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 6px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.stat-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.4), transparent);
}

#fightResultOverlay.reveal .stat-analysis {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

.analysis-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    /* Metallic gold title */
    background: linear-gradient(90deg, rgba(255, 200, 100, 0.6), #ffd700, rgba(255, 200, 100, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 6px;
}

/* Stat Analysis Table Layout */
.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Header Row - Metallic */
.analysis-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(145deg, rgba(50, 50, 60, 0.8) 0%, rgba(35, 35, 45, 0.9) 100%);
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(255, 200, 100, 0.2);
}

.analysis-col {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-col.stat-col {
    color: rgba(255, 255, 255, 0.5);
}

.analysis-col.winner-col {
    /* Gold metallic */
    background: linear-gradient(180deg, #ffd700 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.analysis-col.winner-col i {
    font-size: 0.55rem;
    -webkit-text-fill-color: #ffd700;
}

.analysis-col.loser-col {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Stat Rows - Interactive */
.analysis-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.analysis-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

.analysis-row:hover {
    background: rgba(255, 200, 100, 0.1);
    transform: scale(1.02) translateX(3px);
    box-shadow: 
        -3px 0 0 rgba(255, 200, 100, 0.5),
        0 0 15px rgba(255, 200, 100, 0.1);
}

.analysis-row .analysis-col {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: none;
}

.analysis-row .stat-col {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.analysis-row:hover .stat-col {
    color: rgba(255, 255, 255, 0.95);
}

.analysis-row .winner-col,
.analysis-row .loser-col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-num {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Winning stat highlight - Green metallic */
.analysis-row .winner-col.winning .stat-num {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-row:hover .winner-col.winning .stat-num {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
}

.analysis-row .loser-col.losing-better .stat-num {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-row .winner-col:not(.winning) .stat-num {
    color: rgba(255, 255, 255, 0.5);
}

.analysis-row .loser-col:not(.losing-better) .stat-num {
    color: rgba(255, 255, 255, 0.4);
}

/* Win/Lose indicators */
.win-indicator {
    color: #22c55e;
    font-size: 0.5rem;
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}

.lose-indicator {
    color: #ef4444;
    font-size: 0.5rem;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

/* Defeated Section - Metallic Loser Badge */
.defeated-section {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

#fightResultOverlay.reveal .defeated-section {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

.defeated-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
}

.defeated-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    /* Dark metallic plate */
    background: linear-gradient(145deg, 
        rgba(50, 50, 60, 0.9) 0%, 
        rgba(35, 35, 45, 0.95) 50%, 
        rgba(45, 45, 55, 0.9) 100%);
    border: 1px solid rgba(80, 80, 90, 0.5);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.defeated-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.defeated-card:hover::before {
    left: 150%;
}

.defeated-card:hover {
    background: linear-gradient(145deg, 
        rgba(60, 60, 70, 0.95) 0%, 
        rgba(45, 45, 55, 0.98) 50%, 
        rgba(55, 55, 65, 0.95) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 20px rgba(239, 68, 68, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.5);
}

.defeated-image {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) grayscale(30%);
    transition: all 0.35s ease;
}

.defeated-card:hover .defeated-image {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) grayscale(0%);
}

.defeated-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem;
    /* Silver metallic text */
    background: linear-gradient(180deg, #d0d0d0 0%, #909090 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
}

.defeated-card:hover .defeated-name {
    background: linear-gradient(180deg, #ffffff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.defeated-x {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.4) 100%);
    border-radius: 50%;
    font-size: 0.45rem;
    color: #ef4444;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.defeated-card:hover .defeated-x {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.5) 0%, rgba(185, 28, 28, 0.6) 100%);
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Cage Fight Badge - Metallic Accent */
.cage-fight-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.45rem;
    /* Subtle metallic */
    background: linear-gradient(90deg, rgba(150, 150, 160, 0.6), rgba(200, 200, 200, 0.7), rgba(150, 150, 160, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

#fightResultOverlay.reveal .cage-fight-badge {
    opacity: 1;
    transition-delay: 0.7s;
}

.badge-dot {
    width: 3px;
    height: 3px;
    background: linear-gradient(145deg, rgba(255, 200, 100, 0.6), rgba(200, 160, 80, 0.8));
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 200, 100, 0.4);
}

/* Action Buttons - Metallic Industrial */
.result-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

#fightResultOverlay.reveal .result-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.75s;
}

.result-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.1em;
}

/* Button Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.result-btn:hover .btn-shine {
    left: 150%;
}

.primary-btn {
    /* Metallic gold/bronze gradient */
    background: linear-gradient(145deg, 
        #c9a227 0%, 
        #a67c00 30%,
        #c9a227 50%,
        #8b6914 70%,
        #c9a227 100%);
    color: #1a1a1f;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(201, 162, 39, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(145deg, 
        #d4af37 0%, 
        #b8860b 30%,
        #ffd700 50%,
        #b8860b 70%,
        #d4af37 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 8px 25px rgba(201, 162, 39, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.share-btn {
    /* Steel blue metallic */
    background: linear-gradient(145deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(37, 99, 235, 0.35) 50%, 
        rgba(59, 130, 246, 0.25) 100%);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn:hover {
    background: linear-gradient(145deg, 
        rgba(59, 130, 246, 0.35) 0%, 
        rgba(37, 99, 235, 0.5) 50%, 
        rgba(59, 130, 246, 0.35) 100%);
    border-color: rgba(96, 165, 250, 0.6);
    color: #93c5fd;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 25px rgba(59, 130, 246, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

.ghost-btn {
    /* Dark chrome metallic */
    background: linear-gradient(145deg, 
        rgba(60, 60, 70, 0.8) 0%, 
        rgba(40, 40, 50, 0.9) 50%, 
        rgba(50, 50, 60, 0.8) 100%);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(100, 100, 110, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.ghost-btn:hover {
    background: linear-gradient(145deg, 
        rgba(70, 70, 80, 0.9) 0%, 
        rgba(50, 50, 60, 0.95) 50%, 
        rgba(60, 60, 70, 0.9) 100%);
    color: #fff;
    border-color: rgba(255, 200, 100, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px rgba(255, 200, 100, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================
   RESULT OVERLAY - HEIGHT-BASED RESPONSIVE
   For laptop screens with limited vertical space
   ========================== */
@media (max-height: 800px) {
    .result-arena {
        top: 35px;
        bottom: 35px;
        padding: 10px 20px;
        gap: 5px;
    }
    
    .victory-header {
        padding: 6px 25px 10px;
    }
    
    .victory-header-bg {
        width: 200px;
    }
    
    .victory-crown {
        font-size: 1.6rem;
    }
    
    .victory-title {
        font-size: 1.8rem;
    }
    
    .champion-showcase {
        width: 130px;
        height: 130px;
    }
    
    #fightResultOverlay .champion-showcase .champion-image {
        width: 250px !important;
        height: 250px !important;
    }
    
    .champion-click-hint {
        padding: 5px 12px;
        font-size: 0.45rem;
        margin-top: 6px;
    }
    
    .champion-name {
        font-size: 1.5rem;
    }
    
    .summary-card {
        padding: 6px 12px;
    }
    
    .stat-analysis {
        padding: 6px 10px;
        max-width: 400px;
    }
}

@media (max-height: 700px) {
    .result-arena {
        top: 30px;
        bottom: 30px;
        left: 50px;
        right: 50px;
        gap: 4px;
        padding: 8px 15px;
    }
    
    .metal-beam {
        height: 25px;
    }
    
    .metal-pillar {
        width: 40px;
    }
    
    .metal-corner {
        width: 50px;
        height: 50px;
    }
    
    .result-close-x {
        top: 35px;
        right: 58px;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .victory-header {
        padding: 4px 20px 8px;
    }
    
    .victory-header-bg {
        width: 180px;
    }
    
    .victory-crown {
        font-size: 1.4rem;
    }
    
    .victory-title {
        font-size: 1.5rem;
        letter-spacing: 0.35em;
    }
    
    .victory-crown-rays {
        width: 120px;
        height: 120px;
    }
    
    .champion-showcase {
        width: 110px;
        height: 110px;
    }
    
    #fightResultOverlay .champion-showcase .champion-image {
        width: 220px !important;
        height: 220px !important;
    }
    
    .champion-click-hint {
        padding: 4px 10px;
        font-size: 0.4rem;
        margin-top: 4px;
    }
    
    .champion-name {
        font-size: 1.3rem;
    }
    
    .champion-name-glow {
        width: 200px;
        height: 50px;
    }
    
    .battle-summary {
        gap: 6px;
    }
    
    .summary-card {
        padding: 5px 10px;
    }
    
    .summary-card .card-icon {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .stat-analysis {
        padding: 5px 8px;
        max-width: 360px;
    }
    
    .analysis-header-row,
    .analysis-row {
        padding: 3px 6px;
    }
    
    .defeated-card {
        padding: 4px 10px;
    }
    
    .result-btn {
        padding: 6px 12px;
        font-size: 0.5rem;
    }
}

/* ==========================
   RESULT OVERLAY - RESPONSIVE METALLIC
   ========================== */
@media (max-width: 768px) {
    /* Adjust for tablet */
    .metal-pillar {
        width: 30px;
    }
    
    .metal-beam {
        height: 25px;
    }
    
    .result-arena {
        top: 25px;
        left: 30px;
        right: 30px;
        bottom: 25px;
        padding: 10px 15px;
        gap: 5px;
        justify-content: flex-start;
    }
    
    .result-close-x {
        top: 30px;
        right: 38px;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .metal-corner {
        width: 45px;
        height: 45px;
    }
    
    .corner-tl { top: 25px; left: 30px; }
    .corner-tr { top: 25px; right: 30px; }
    .corner-bl { bottom: 25px; left: 30px; }
    .corner-br { bottom: 25px; right: 30px; }
    
    /* Reduce atmospheric effects on tablet */
    .floating-debris {
        --size: calc(var(--size) * 0.7) !important;
    }
    
    .victory-header {
        padding: 6px 20px 10px;
    }
    
    .victory-header-bg {
        width: 180px;
    }
    
    .victory-crown-rays {
        width: 120px;
        height: 120px;
    }
    
    .victory-crown {
        font-size: 1.5rem;
    }
    
    .victory-title {
        font-size: 1.6rem;
        letter-spacing: 0.3em;
    }
    
    .champion-showcase {
        width: 120px;
        height: 120px;
    }
    
    #fightResultOverlay .champion-showcase .champion-image {
        width: 240px !important;
        height: 240px !important;
    }
    
    .champion-click-hint {
        padding: 5px 12px;
        font-size: 0.45rem;
        margin-top: 6px;
    }
    
    .champion-name-glow {
        width: 220px;
        height: 55px;
    }
    
    .champion-name {
        font-size: 1.4rem;
    }
    
    .battle-summary {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .summary-card {
        padding: 6px 12px;
    }
    
    .summary-card .card-icon {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    .summary-card .card-label {
        font-size: 0.48rem;
    }
    
    .summary-card .card-value {
        font-size: 0.68rem;
    }
    
    .stat-analysis {
        padding: 6px 10px;
        max-width: 380px;
    }
    
    .analysis-title {
        font-size: 0.48rem;
        margin-bottom: 4px;
    }
    
    .analysis-header-row,
    .analysis-row {
        padding: 4px 8px;
        gap: 5px;
    }
    
    .analysis-col {
        font-size: 0.42rem;
    }
    
    .analysis-row .analysis-col {
        font-size: 0.48rem;
    }
    
    .stat-num {
        font-size: 0.48rem;
    }
    
    .defeated-card {
        padding: 5px 12px;
    }
    
    .defeated-image {
        width: 24px;
        height: 24px;
    }
    
    .defeated-name {
        font-size: 0.75rem;
    }
    
    .cage-fight-badge {
        font-size: 0.4rem;
    }
    
    .result-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .result-btn {
        padding: 8px 14px;
        font-size: 0.52rem;
    }
}

@media (max-width: 480px) {
    /* Mobile - optimized layout */
    .metal-pillar {
        width: 15px;
    }
    
    .metal-beam {
        height: 15px;
    }
    
    .result-arena {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 8px 10px;
        gap: 5px;
        justify-content: flex-start;
    }
    
    .result-close-x {
        top: 18px;
        right: 20px;
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .metal-corner {
        width: 25px;
        height: 25px;
    }
    
    .corner-tl { top: 15px; left: 15px; }
    .corner-tr { top: 15px; right: 15px; }
    .corner-bl { bottom: 15px; left: 15px; }
    .corner-br { bottom: 15px; right: 15px; }
    
    /* Reduce fog on mobile for performance */
    .fog-layer {
        opacity: 0.5 !important;
    }
    
    .metal-debris-container,
    .dust-particles-container,
    .ambient-light-rays {
        display: none;
    }
    
    .metal-grate {
        background-image: 
            repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(40, 40, 50, 0.2) 20px, rgba(40, 40, 50, 0.2) 21px),
            repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(40, 40, 50, 0.2) 20px, rgba(40, 40, 50, 0.2) 21px);
    }
    
    /* Victory header needs to stay above animal on mobile */
    .victory-header {
        padding: 6px 15px 8px;
        margin-bottom: 5px;
    }
    
    .victory-header-bg {
        width: 160px;
        background: linear-gradient(180deg, 
            rgba(15, 15, 20, 0.98) 0%,
            rgba(20, 20, 28, 0.95) 60%,
            rgba(15, 15, 20, 0.85) 90%,
            transparent 100%);
    }
    
    .victory-crown-rays {
        width: 100px;
        height: 100px;
    }
    
    .victory-crown {
        font-size: 1.4rem;
    }
    
    .victory-title {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }
    
    .metal-crown-frame {
        width: 60px;
        height: 30px;
        top: -10px;
    }
    
    .champion-showcase {
        width: 100px;
        height: 100px;
    }
    
    #fightResultOverlay .champion-showcase .champion-image {
        width: 190px !important;
        height: 190px !important;
    }
    
    .champion-click-hint {
        opacity: 1;
        transform: none;
        padding: 5px 10px;
        font-size: 0.4rem;
        margin-top: 5px;
    }
    
    .champion-name-glow {
        width: 180px;
        height: 50px;
    }
    
    .champion-name {
        font-size: 1.2rem;
        padding: 2px 10px;
    }
    
    .battle-summary {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .summary-card {
        padding: 5px 10px;
        gap: 6px;
    }
    
    .summary-card .card-icon {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }
    
    .summary-card .card-label {
        font-size: 0.4rem;
    }
    
    .summary-card .card-value {
        font-size: 0.55rem;
    }
    
    .stat-analysis {
        padding: 5px 8px;
        max-width: 300px;
    }
    
    .analysis-grid {
        gap: 1px;
    }
    
    .analysis-header-row,
    .analysis-row {
        padding: 3px 6px;
        gap: 4px;
    }
    
    .analysis-col {
        font-size: 0.38rem;
    }
    
    .analysis-row .analysis-col {
        font-size: 0.42rem;
    }
    
    .analysis-row:hover {
        transform: scale(1.01) translateX(2px);
    }
    
    .defeated-section {
        gap: 4px;
    }
    
    .defeated-label {
        font-size: 0.42rem;
    }
    
    .defeated-card {
        padding: 4px 10px;
        gap: 6px;
    }
    
    .defeated-image {
        width: 20px;
        height: 20px;
    }
    
    .defeated-name {
        font-size: 0.65rem;
    }
    
    .defeated-x {
        width: 14px;
        height: 14px;
        font-size: 0.38rem;
    }
    
    .cage-fight-badge {
        font-size: 0.35rem;
        gap: 4px;
    }
    
    .badge-dot {
        width: 2px;
        height: 2px;
    }
    
    .result-actions {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .result-btn {
        padding: 7px 12px;
        font-size: 0.48rem;
    }
}

/* ==========================
   ANIMATIONS
   ========================== */
@keyframes lightSweep {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes fighterSlideIn {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fighterSlideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes vsPop {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================
   RESPONSIVE: Large Desktop
   ========================== */
@media (min-width: 1600px) {
    #compare-view .fight-screen {
        padding: 16px 24px;
        gap: 16px;
    }
    
    #compare-view .c-fighter-name {
        font-size: 1.4rem;
    }
    
    #compare-view .fighter-display {
        width: clamp(100px, 14vh, 180px);
        height: clamp(100px, 14vh, 180px);
    }
}

/* ==========================
   RESPONSIVE: Small Desktop/Laptop (1366x768, 1440x900)
   ========================== */
@media (max-width: 1199px) and (min-width: 1024px) {
    #compare-view .fight-screen {
        grid-template-columns: 1fr clamp(180px, 18vw, 240px) 1fr;
        gap: 10px;
        padding: 10px 12px;
    }
    
    #compare-view .c-identity-top {
        padding: 8px 10px;
    }
    
    #compare-view .c-fighter-name {
        font-size: 0.95rem;
    }
    
    #compare-view .fighter-display {
        width: clamp(60px, 10vh, 110px);
        height: clamp(60px, 10vh, 110px);
    }
    
    /* Result Overlay - Good size for laptop screens */
    .result-arena {
        top: 35px;
        left: 50px;
        right: 50px;
        bottom: 35px;
        padding: 10px 20px;
        gap: 5px;
    }
    
    .result-close-x {
        top: 42px;
        right: 58px;
    }
    
    .victory-header {
        padding: 6px 25px 10px;
    }
    
    .victory-header-bg {
        width: 190px;
    }
    
    .victory-crown {
        font-size: 1.6rem;
    }
    
    .victory-title {
        font-size: 1.7rem;
    }
    
    .champion-showcase {
        width: 130px;
        height: 130px;
    }
    
    #fightResultOverlay .champion-showcase .champion-image {
        width: 260px !important;
        height: 260px !important;
    }
    
    .champion-click-hint {
        padding: 5px 12px;
        font-size: 0.48rem;
    }
    
    .champion-name-glow {
        width: 230px;
        height: 55px;
    }
    
    .champion-name {
        font-size: 1.4rem;
    }
    
    .summary-card {
        padding: 6px 10px;
    }
    
    .summary-card .card-icon {
        width: 26px;
        height: 26px;
    }
    
    .stat-analysis {
        max-width: 380px;
        padding: 6px 10px;
    }
}

/* ==========================
   RESPONSIVE: Tablet
   ========================== */
@media (max-width: 1023px) and (min-width: 768px) {
    #compare-view .fight-screen {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 8px;
        max-width: 100%;
        overflow: hidden;
    }
    
    #compare-view .fighter-section {
        max-width: 100%;
        overflow: hidden;
    }
    
    #compare-view .fight-center {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        order: -1;
        padding: 12px;
    }
    
    #compare-view .t-stats-compact {
        max-width: 280px;
    }
}

/* ==========================
   RESPONSIVE: Mobile
   ========================== */
@media (max-width: 767px) {
    #compare-view .fight-screen {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    #compare-view .fighter-section {
        display: flex;
        flex-direction: row;
        padding: 0;
    }
    
    #compare-view .fighter-section.fighter-left,
    #compare-view .fighter-section.fighter-right {
        border-left: none;
        border-right: none;
        border-top: 2px solid var(--cv-team-left);
    }
    
    #compare-view .fighter-section.fighter-right {
        border-top-color: var(--cv-team-right);
    }
    
    #compare-view .fighter-section::after {
        display: none;
    }
    
    #compare-view .c-identity-top {
        display: none;
    }
    
    #compare-view .c-hero-section {
        width: 90px;
        min-height: 90px;
        padding: 8px;
        border: none !important;
    }
    
    #compare-view .fighter-image {
        max-height: 70px;
    }
    
    #compare-view .c-bottom-info {
        flex: 1;
        padding: 8px;
        border: none !important;
    }
    
    #compare-view .c-bottom-info::before {
        content: attr(data-name);
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--cv-text-primary);
        display: block;
        margin-bottom: 4px;
    }
    
    #compare-view .c-tournament-dashboard {
        display: none;
    }
    
    #compare-view .fight-center {
        order: -1;
        padding: 8px;
        flex-direction: row;
        gap: 8px;
    }
    
    #compare-view .c-vs-section {
        width: 44px;
        height: 44px;
    }
    
    #compare-view .c-vs-badge {
        width: 32px;
        height: 32px;
    }
    
    #compare-view .t-stats-compact {
        display: none;
    }
    
    /* Result overlay mobile */
    .result-container {
        width: 95%;
        max-height: calc(100vh - 16px);
    }
    
    .result-winner-image {
        width: 100px;
        height: 100px;
    }
    
    .intro-fighter-image {
        width: 100px;
        height: 100px;
    }
    
    .intro-fighter-name {
        font-size: 1rem;
    }
    
    .intro-vs-text {
        font-size: 2rem;
        transform: rotate(-45deg); /* Keep rotation fix on mobile */
    }
}

@media (max-width: 400px) {
    #compare-view .c-hero-section {
        width: 70px;
    }
    
    #compare-view .fighter-image {
        max-height: 55px;
    }
    
    .result-container {
        max-width: 100%;
        border-radius: var(--cv-radius-lg) var(--cv-radius-lg) 0 0;
    }
}

/* ==========================
   RESPONSIVE: Height-constrained
   ========================== */
@media (max-height: 800px) {
    #compare-view .fight-screen {
        padding: 8px 12px;
        gap: 10px;
    }
    
    #compare-view .c-identity-top {
        padding: 6px 10px;
    }
    
    #compare-view .c-fighter-name {
        font-size: clamp(0.85rem, 1.8vh, 1rem);
    }
    
    #compare-view .c-scientific {
        font-size: 0.55rem;
    }
    
    #compare-view .c-record-badge {
        padding: 4px 8px;
    }
    
    #compare-view .fighter-display {
        width: clamp(70px, 11vw, 120px);
        height: clamp(70px, 11vw, 120px);
    }
    
    #compare-view .c-bottom-info {
        padding: 6px 8px;
        gap: 6px;
    }
    
    #compare-view .c-tournament-dashboard {
        padding: 6px 10px;
    }
    
    #compare-view .fight-center {
        padding: 10px;
        gap: 10px;
    }
    
    #compare-view .c-vs-section {
        width: 36px;
        height: 36px;
    }
    
    #compare-view .c-vs-badge {
        width: 28px;
        height: 28px;
    }
    
    #compare-view .t-stats-compact {
        padding: 8px 10px;
        gap: 6px;
    }
    
    #compare-view .t-stat-bar-left,
    #compare-view .t-stat-bar-right {
        height: 14px !important;
        min-height: 14px !important;
    }
    
    #compare-view .c-fight-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

@media (max-height: 700px) {
    #compare-view .fight-screen {
        padding: 6px 10px;
        gap: 8px;
    }
    
    #compare-view .c-identity-top {
        padding: 4px 8px;
    }
    
    #compare-view .fighter-display {
        width: clamp(60px, 10vw, 100px);
        height: clamp(60px, 10vw, 100px);
    }
    
    #compare-view .c-hero-section {
        padding: 6px;
    }
    
    #compare-view .c-bottom-info {
        padding: 4px 6px;
    }
    
    #compare-view .c-tournament-dashboard {
        padding: 4px 8px;
    }
    
    #compare-view .fight-center {
        padding: 8px;
        gap: 8px;
    }
    
    #compare-view .t-stats-compact {
        padding: 6px 8px;
        gap: 4px;
    }
    
    #compare-view .t-stat-bar-left,
    #compare-view .t-stat-bar-right {
        height: 12px !important;
        min-height: 12px !important;
    }
    
    #compare-view .c-fight-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* ==========================
   MOBILE COMPARE PAGE (480px and below)
   Side-by-side fighter layout with stat bars in center
   ========================== */
@media (max-width: 480px) {
    /* Main fight screen - 3 column grid for mobile */
    #compare-view .fight-screen {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-rows: auto 1fr !important;
        gap: 4px !important;
        padding: 4px !important;
        flex-direction: row !important;
        min-height: 0 !important;
        max-height: calc(100vh - 65px - 60px - 130px - 36px) !important;
        overflow: hidden !important;
    }
    
    /* Fighter sections - compact side panels */
    #compare-view .fighter-section {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        background: linear-gradient(165deg, var(--cv-bg-panel) 0%, var(--cv-bg-dark) 100%) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }
    
    #compare-view .fighter-section.fighter-left {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
        border-left: 2px solid var(--cv-team-left) !important;
        border-right: none !important;
        border-top: none !important;
    }
    
    #compare-view .fighter-section.fighter-right {
        grid-column: 3 !important;
        grid-row: 1 / -1 !important;
        border-right: 2px solid var(--cv-team-right) !important;
        border-left: none !important;
        border-top: none !important;
    }
    
    #compare-view .fighter-section::after {
        display: none !important;
    }
    
    /* Identity top - compact name and record */
    #compare-view .c-identity-top {
        display: flex !important;
        flex-direction: column !important;
        padding: 6px 4px !important;
        gap: 2px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        text-align: center !important;
    }
    
    #compare-view .c-fighter-name {
        font-size: 0.65rem !important;
        letter-spacing: 0.03em !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    #compare-view .c-scientific {
        display: none !important;
    }
    
    #compare-view .c-record-badge {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 4px 6px !important;
        background: var(--cv-bg-module) !important;
        border: 1px solid var(--cv-border-subtle) !important;
        border-radius: 4px !important;
        margin-top: 3px !important;
    }
    
    #compare-view .c-record-badge .record-item {
        flex-direction: row !important;
        gap: 2px !important;
        align-items: center !important;
    }
    
    #compare-view .c-record-badge .record-item i {
        font-size: 0.45rem !important;
        color: var(--cv-text-muted) !important;
    }
    
    #compare-view .c-record-badge .record-value {
        font-size: 0.55rem !important;
        font-weight: 700 !important;
        color: var(--cv-text-primary) !important;
    }
    
    #compare-view .c-record-badge .record-label {
        display: none !important;
    }
    
    #compare-view .c-record-badge .record-divider {
        display: none !important;
    }
    
    /* Hero section - animal image */
    #compare-view .c-hero-section {
        padding: 4px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        min-height: 70px !important;
    }
    
    /* Left hero section - push to right (toward center) */
    #compare-view .fighter-left .c-hero-section {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    /* Right hero section - push to left (toward center) */
    #compare-view .fighter-right .c-hero-section {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    #compare-view .fighter-display {
        width: 65px !important;
        height: 65px !important;
        border-radius: 6px !important;
    }
    
    /* Left fighter - image pushed to right (toward center within the box) */
    #compare-view .fighter-left .fighter-display {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    /* Right fighter - image pushed to left (toward center within the box) */
    #compare-view .fighter-right .fighter-display {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    #compare-view .fighter-image {
        max-height: 60px !important;
        max-width: 60px !important;
    }
    
    #compare-view .fighter-placeholder {
        padding: 8px !important;
    }
    
    #compare-view .fighter-placeholder i {
        font-size: 1.2rem !important;
    }
    
    #compare-view .fighter-placeholder p {
        font-size: 0.5rem !important;
    }
    
    /* Click hint - smaller */
    #compare-view .c-click-hint {
        font-size: 0.4rem !important;
        padding: 2px 4px !important;
    }
    
    /* Selecting state text - smaller */
    #compare-view .fighter-display.selecting::after {
        font-size: 0.5rem !important;
        padding: 6px 8px !important;
    }
    
    /* Bottom info - quick stats and abilities/traits */
    #compare-view .c-bottom-info {
        display: flex !important;
        flex-direction: column !important;
        padding: 4px !important;
        gap: 4px !important;
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border: none !important;
    }
    
    /* Quick info - weight/speed/bite */
    #compare-view .c-quick-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
    
    #compare-view .c-quick-info .quick-info-item {
        font-size: 0.5rem !important;
        padding: 2px 4px !important;
        gap: 2px !important;
        justify-content: center !important;
    }
    
    #compare-view .c-quick-info .quick-info-item i {
        font-size: 0.45rem !important;
    }
    
    #compare-view .c-quick-info .quick-info-item span {
        font-size: 0.5rem !important;
    }
    
    #compare-view .c-quick-info .toggle-icon {
        display: none !important;
    }
    
    /* Abilities and traits - compact */
    #compare-view .c-tags {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    #compare-view .c-abilities-section,
    #compare-view .c-traits-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
    
    #compare-view .abilities-label,
    #compare-view .traits-label {
        font-size: 0.4rem !important;
        padding: 0 !important;
    }
    
    #compare-view .abilities-tags-compact,
    #compare-view .traits-tags-compact {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px !important;
    }
    
    #compare-view .abilities-tags-compact .ability-tag-sm,
    #compare-view .traits-tags-compact .trait-tag-sm {
        font-size: 0.4rem !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: #fff !important;
        border: none !important;
        font-weight: 600 !important;
    }
    
    /* Left fighter abilities/traits - subtle purple tint */
    #compare-view .fighter-left .abilities-tags-compact .ability-tag-sm,
    #compare-view .fighter-left .traits-tags-compact .trait-tag-sm {
        background-color: rgba(168, 85, 247, 0.08) !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    #compare-view .fighter-left .abilities-tags-compact .ability-tag-sm i,
    #compare-view .fighter-left .traits-tags-compact .trait-tag-sm i {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    /* Right fighter abilities/traits - subtle green tint */
    #compare-view .fighter-right .abilities-tags-compact .ability-tag-sm,
    #compare-view .fighter-right .traits-tags-compact .trait-tag-sm {
        background-color: rgba(34, 197, 94, 0.08) !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    #compare-view .fighter-right .abilities-tags-compact .ability-tag-sm i,
    #compare-view .fighter-right .traits-tags-compact .trait-tag-sm i {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    /* Tournament dashboard - medals row */
    #compare-view .c-tournament-dashboard {
        display: none !important;
    }
    
    /* ========================== */
    /* FIGHT CENTER - Stats + VS + Button */
    /* ========================== */
    #compare-view .fight-center {
        grid-column: 2 !important;
        grid-row: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 4px 2px !important;
        gap: 6px !important;
        min-width: 100px !important;
        max-width: 120px !important;
        order: 0 !important;
    }
    
    /* VS Badge */
    #compare-view .c-vs-section {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }
    
    #compare-view .c-vs-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.55rem !important;
    }
    
    /* Fight button - compact */
    #compare-view .c-fight-btn {
        padding: 6px 12px !important;
        font-size: 0.65rem !important;
        min-width: 70px !important;
    }
    
    /* Stat bars container */
    #compare-view .t-stats-compact {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        padding: 4px !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 6px !important;
    }
    
    /* Stat row */
    #compare-view .t-stat-row {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        gap: 2px !important;
        align-items: center !important;
    }
    
    /* Stat label in center */
    #compare-view .t-stat-label {
        font-size: 0.4rem !important;
        padding: 0 2px !important;
        min-width: 24px !important;
        text-align: center !important;
    }
    
    #compare-view .t-stat-label i {
        display: none !important;
    }
    
    /* Stat bars - compact height */
    #compare-view .t-stat-bar-left,
    #compare-view .t-stat-bar-right {
        height: 10px !important;
        min-height: 10px !important;
        border-radius: 2px !important;
    }
    
    #compare-view .t-stat-bar-inner {
        border-radius: 2px !important;
    }
    
    #compare-view .t-stat-val {
        font-size: 0.4rem !important;
        padding: 0 2px !important;
    }
    
    /* Radar chart - hide on mobile */
    #compare-view .radar-chart-container {
        display: none !important;
    }
    
    /* Result overlay adjustments */
    #compare-view .result-container {
        width: 95% !important;
        max-height: calc(100vh - 80px) !important;
        padding: 16px !important;
    }
    
    #compare-view .result-winner-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    #compare-view .result-winner-name {
        font-size: 1.2rem !important;
    }
    
    /* Intro overlay adjustments */
    #compare-view .intro-fighter-image {
        width: 70px !important;
        height: 70px !important;
    }
    
    #compare-view .intro-fighter-name {
        font-size: 0.8rem !important;
    }
    
    #compare-view .intro-vs-text {
        font-size: 1.5rem !important;
        transform: rotate(-45deg) !important; /* Keep rotation fix on small screens */
    }
}

