/* ============================================
   TOURNAMENT V4 - Premium Game UI
   Designed to fit 1366x768 minimum viewport
   ============================================ */

/* CSS Variables for Tournament */
:root {
    --t-gold: #ffd700;
    --t-gold-dark: #cc9900;
    --t-cyan: #00d4ff;
    --t-orange: #ff6b00;
    --t-red: #ff2d2d;
    --t-green: #00ff88;
    --t-purple: #9966ff;
    --t-bg-dark: rgba(10, 14, 26, 0.98);
    --t-bg-darker: rgba(5, 8, 16, 0.98);
    --t-border: rgba(255, 255, 255, 0.1);
    --t-glow: 0 0 20px;
    --t-radius: 8px;
    --t-spacing: clamp(8px, 1.5vh, 16px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== MODAL CONTAINER ========== */
.tournament-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    overflow: hidden;
}

.tournament-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== SETUP SCREEN ========== */
.tournament-setup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--t-spacing);
}

.t-setup-container {
    background: linear-gradient(135deg, var(--t-bg-dark), var(--t-bg-darker));
    border: 2px solid var(--t-gold);
    border-radius: var(--t-radius);
    padding: clamp(12px, 2vh, 24px);
    width: min(580px, 95vw);
    max-height: calc(100vh - 40px);
    position: relative;
    box-shadow: var(--t-glow) rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.t-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.t-close-btn:hover {
    color: var(--t-red);
    transform: scale(1.1);
}

/* Header */
.t-setup-header {
    text-align: center;
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

.t-crown-icon {
    font-size: clamp(1.5rem, 3vh, 2rem);
    color: var(--t-gold);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.t-title-banner {
    display: inline-block;
    background: linear-gradient(90deg, var(--t-gold), var(--t-gold-dark));
    padding: clamp(4px, 1vh, 8px) clamp(20px, 4vw, 40px);
    transform: skewX(-5deg);
    margin-top: 6px;
}

.t-title-banner span {
    display: block;
    transform: skewX(5deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.3rem, 2.5vh, 1.8rem);
    letter-spacing: 4px;
    color: #000;
}

/* Two-Column Grid */
.t-setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 1.5vh, 16px);
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

.t-setup-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--t-border);
    border-left: 3px solid var(--t-cyan);
    border-radius: var(--t-radius);
    padding: clamp(10px, 1.5vh, 16px);
}

.t-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(8px, 1.2vh, 12px);
}

.t-step-badge {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--t-cyan), #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
}

.t-panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.85rem, 1.5vh, 1rem);
    letter-spacing: 2px;
    color: var(--t-cyan);
}

.t-optional {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}

/* Bracket Cards */
.t-bracket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(6px, 1vh, 10px);
}

.t-bracket-card {
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: clamp(8px, 1.2vh, 14px) 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

.t-bracket-card:hover {
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.t-bracket-card.selected {
    border-color: var(--t-gold);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: var(--t-glow) rgba(255, 215, 0, 0.3);
}

.t-bracket-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 3vh, 2.2rem);
    color: #fff;
    line-height: 1;
}

.t-bracket-card.selected .t-bracket-num {
    color: var(--t-gold);
}

.t-bracket-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.t-bracket-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--t-orange), #ff4400);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s;
}

.t-bracket-card:hover .t-bracket-tag,
.t-bracket-card.selected .t-bracket-tag {
    opacity: 1;
    transform: scale(1);
}

/* Filter Section */
.t-filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--t-border);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: clamp(6px, 1vh, 10px);
}

.t-filter-search i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.t-filter-search input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
}

.t-filter-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.t-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: clamp(80px, 12vh, 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--t-cyan) transparent;
}

.t-filter-chips::-webkit-scrollbar {
    width: 4px;
}

.t-filter-chips::-webkit-scrollbar-thumb {
    background: var(--t-cyan);
    border-radius: 2px;
}

.t-chip {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.t-chip i {
    font-size: 0.75rem;
}

.t-chip:hover {
    border-color: rgba(0, 212, 255, 0.5);
    color: #fff;
}

.t-chip.active {
    border-color: var(--t-gold);
    background: rgba(255, 215, 0, 0.15);
    color: var(--t-gold);
}

/* Footer */
.t-setup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(10px, 1.5vh, 16px);
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(255, 215, 0, 0.08));
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    margin-bottom: clamp(6px, 1vh, 10px);
}

.t-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.t-summary-item i {
    color: var(--t-cyan);
    font-size: 0.75rem;
}

.t-summary-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.t-start-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 1.2vh, 12px) clamp(16px, 3vw, 28px);
    background: linear-gradient(90deg, var(--t-gold), var(--t-gold-dark));
    border: none;
    border-radius: 4px;
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.9rem, 1.5vh, 1.1rem);
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.t-start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.t-start-btn:disabled {
    background: linear-gradient(90deg, #555, #444);
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.t-login-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.t-login-note i {
    color: var(--t-cyan);
    margin-right: 4px;
}

/* ========== BATTLE SCREEN - Sketch Layout ========== */
.tournament-battle {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at center, rgba(10, 20, 40, 0.98), rgba(0, 0, 0, 0.99));
    overflow: hidden;
}

/* Battle Header */
.t-battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px clamp(12px, 2vw, 24px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
    height: 44px;
}

.t-battle-progress {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 16px);
}

.t-round-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.85rem, 1.5vh, 1.1rem);
    letter-spacing: 2px;
    color: var(--t-gold);
}

.t-progress-bar {
    width: clamp(80px, 10vw, 140px);
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.t-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--t-cyan), var(--t-gold));
    transition: width 0.3s;
}

.t-match-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.t-quit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 4px;
    color: #ff6666;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.t-quit-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: #ff6666;
}

/* ========== MAIN BATTLE AREA - Upper Section ========== */
.t-battle-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(10px, 1.5vw, 20px);
    padding: clamp(8px, 1vh, 16px) clamp(12px, 2vw, 24px);
    min-height: 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Fighter Cards */
.t-fighter-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.95), rgba(10, 15, 25, 0.98));
    border: 2px solid rgba(0, 212, 255, 0.35);
    border-radius: 8px;
    padding: clamp(10px, 1.5vh, 16px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.t-fighter-card.left {
    border-color: rgba(0, 212, 255, 0.4);
}

.t-fighter-card.right {
    border-color: rgba(255, 107, 0, 0.4);
}

.t-fighter-card:hover {
    transform: scale(1.01);
}

.t-fighter-card.left:hover {
    border-color: var(--t-cyan);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.t-fighter-card.right:hover {
    border-color: var(--t-orange);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.4);
}

/* Winner/Loser Animation States */
.t-fighter-card.winner {
    border-color: var(--t-green) !important;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.6) !important;
    animation: winnerPulse 0.6s ease-out;
}

.t-fighter-card.loser {
    filter: grayscale(0.3) brightness(0.85);
    transform: scale(0.98);
    opacity: 0.85;
    animation: loserShake 0.4s ease-out;
}

@keyframes winnerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes loserShake {
    0%, 100% { transform: translateX(0) scale(0.97); }
    25% { transform: translateX(-4px) scale(0.97); }
    75% { transform: translateX(4px) scale(0.97); }
}

/* Pre-entrance state - cards hidden before slide-in animation */
.t-fighter-card.entrance-ready {
    opacity: 0;
    transform: translateX(0) scale(0.95);
}

.t-fighter-card.left.entrance-ready {
    transform: translateX(-30px) scale(0.95);
}

.t-fighter-card.right.entrance-ready {
    transform: translateX(30px) scale(0.95);
}

/* Entrance Slide-In Animations */
.t-fighter-card.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.t-fighter-card.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Guess Mode States */
.t-fighter-card.guess-selected {
    border-color: var(--t-purple) !important;
    box-shadow: 0 0 30px rgba(153, 102, 255, 0.5) !important;
}

.t-fighter-card.guess-selected::after {
    content: 'YOUR GUESS';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--t-purple);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 5;
}

/* ========== FIGHTER CARD - TOP IDENTITY SECTION ========== */
.t-identity-top {
    text-align: center;
    padding-bottom: clamp(6px, 1vh, 10px);
    flex-shrink: 0;
}

.t-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.2rem, 2.2vh, 1.6rem);
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 2px;
    text-transform: uppercase;
}

.t-scientific {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.65rem, 1vh, 0.8rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: clamp(6px, 1vh, 10px);
}

/* Battle Record Badge - REUSE Stats Page Component */
.t-record-badge {
    max-width: 220px;
    margin: 0 auto;
}

.t-record-badge .record-item {
    padding: 4px 10px;
}

.t-record-badge .record-value {
    font-size: 0.8rem;
}

.t-record-badge .record-label {
    font-size: 0.4rem;
}

/* Hero Image - NO rectangular frame, transparent background */
.t-hero-image {
    position: relative;
    flex: 1;
    min-height: clamp(120px, 24vh, 220px);
    max-height: clamp(160px, 30vh, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove the dark background frame */
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    margin: clamp(4px, 0.5vh, 8px) 0;
}

.t-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.t-fighter-card:hover .t-hero-image img {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8)) brightness(1.1);
}

/* Click hint - subtle, doesn't block the animal */
.t-click-hint {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all 0.2s;
    pointer-events: none;
}

.t-fighter-card:hover .t-click-hint {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--t-gold);
    color: var(--t-gold);
}

/* ========== FIGHTER CARD - BOTTOM INFO SECTION ========== */
.t-bottom-info {
    flex-shrink: 0;
    padding-top: clamp(6px, 1vh, 10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.6vh, 8px);
}

/* Quick Info Bar - REUSE Stats Page Component */
.t-quick-info {
    gap: 6px;
    padding: 4px;
    margin: 0;
}

.t-quick-info .quick-info-item {
    padding: 3px 6px;
    font-size: 0.65rem;
    min-width: auto;
}

.t-quick-info .quick-info-item i {
    font-size: 0.7rem;
}

/* Tags Area - Abilities & Traits with Labels (matching Stats page) */
.t-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-abilities-section,
.t-traits-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.t-tags .abilities-label,
.t-tags .traits-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.t-tags .abilities-label {
    color: #ff6b00;
}

.t-tags .abilities-label i {
    color: #ff6b00;
    font-size: 0.5rem;
}

.t-tags .traits-label {
    color: #ffd700;
}

.t-tags .traits-label i {
    color: #ffd700;
    font-size: 0.5rem;
}

.t-tags .abilities-tags-compact,
.t-tags .traits-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
}

/* Full text chips - no truncation */
.t-tags .ability-tag-sm,
.t-tags .trait-tag-sm {
    font-size: 0.55rem;
    padding: 2px 6px;
    white-space: nowrap;
}

/* Rating Change Display - DESKTOP: positioned at bottom of hero image */
.t-rating-change {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

.t-rating-change.show {
    display: flex;
    animation: ratingFadeIn 0.4s ease-out;
}

@keyframes ratingFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.t-rating-delta {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.4rem, 2.5vh, 2rem);
    font-weight: bold;
}

.t-rating-delta.positive {
    color: var(--t-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.t-rating-delta.negative {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.t-rating-calc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.t-rating-calc .old {
    text-decoration: line-through;
    opacity: 0.6;
}

.t-rating-calc .new {
    font-weight: bold;
    color: #fff;
}

/* ========== BATTLE CENTER - Guess ΓåÆ Vote ΓåÆ VS ========== */
.t-battle-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vh, 16px);
    padding: clamp(10px, 1.5vh, 16px);
    min-width: clamp(160px, 18vw, 220px);
}

/* ====== GUESS + VOTE SECTION - Clean Vertical Stack ====== */
.t-guess-vote-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.9) 0%, rgba(15, 18, 30, 0.95) 100%);
    border: 1px solid rgba(100, 120, 180, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.t-guess-vote-row:hover {
    border-color: rgba(100, 150, 255, 0.35);
    box-shadow: 0 4px 25px rgba(50, 100, 200, 0.15);
}

.t-guess-vote-row.active {
    background: linear-gradient(180deg, rgba(40, 35, 20, 0.9) 0%, rgba(30, 25, 15, 0.95) 100%);
    border-color: rgba(255, 200, 100, 0.4);
    box-shadow: 0 0 25px rgba(255, 180, 50, 0.15);
}

.t-guess-vote-row.active .t-guess-toggle {
    color: #ffc832;
}

.t-guess-vote-row.active .t-guess-toggle i {
    color: #ffd700;
}

/* Guess Section - Top row label */
.t-guess-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-guess-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    pointer-events: none;
}

.t-guess-toggle i {
    font-size: 0.9rem;
    color: rgba(150, 150, 200, 0.7);
    transition: color 0.2s;
}

/* Hide the toggle switch and prompt - not needed */
.t-toggle-switch,
.t-guess-prompt {
    display: none !important;
}

/* Community Vote Section - Below label */
.t-community-vote {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-vote-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
}

.t-vote-pct {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 36px;
    letter-spacing: -0.5px;
}

.t-vote-pct:first-child {
    color: var(--neon-blue, #00d4ff);
    text-align: left;
}

.t-vote-pct:last-child {
    color: var(--neon-orange, #ff6b35);
    text-align: right;
}

.t-vote-total {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Vote Bar */
.t-vote-bar {
    display: flex;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.t-vote-fill {
    height: 100%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-vote-fill.left {
    background: linear-gradient(90deg, #0088cc, #00c8ff);
}

.t-vote-fill.right {
    background: linear-gradient(90deg, #ff5500, #ff8844);
}

/* ====== GUESS RESULT FEEDBACK - Clean Toast ====== */
.t-guess-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    z-index: 10200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.t-guess-result.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.t-guess-result.correct {
    background: linear-gradient(135deg, #1a5c3a, #0d3d25);
    border: 2px solid #2ed573;
    color: #7bed9f;
    box-shadow: 
        0 0 30px rgba(46, 213, 115, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.t-guess-result.correct i {
    color: #2ed573;
    font-size: 1.3rem;
}

.t-guess-result.incorrect {
    background: linear-gradient(135deg, #5c1a1a, #3d0d0d);
    border: 2px solid #ff4757;
    color: #ff6b7a;
    box-shadow: 
        0 0 30px rgba(255, 71, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.t-guess-result.incorrect i {
    color: #ff4757;
    font-size: 1.3rem;
}

/* ====== VOTE BAR WIN/LOSE ANIMATIONS ====== */
.t-vote-bar {
    position: relative;
}

.t-vote-bar.guess-win {
    animation: voteBarWin 0.8s ease-out forwards;
}

.t-vote-bar.guess-lose {
    animation: voteBarLose 0.5s ease-out forwards;
}

/* Win celebration burst effect */
.t-vote-bar.guess-win::before {
    content: '✓ CORRECT!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #2ed573, #1abc9c);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: 25px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 
        0 0 30px rgba(46, 213, 115, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.3);
    animation: winBurst 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Lose shake effect */
.t-vote-bar.guess-lose::before {
    content: '✗ WRONG';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: 25px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 
        0 0 30px rgba(255, 71, 87, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.3);
    animation: loseBurst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes winBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes loseBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    55% {
        transform: translate(-50%, -50%) translateX(-5px) scale(1);
    }
    70% {
        transform: translate(-50%, -50%) translateX(5px) scale(1);
    }
    85% {
        transform: translate(-50%, -50%) translateX(-3px) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes voteBarWin {
    0% {
        box-shadow: 0 0 0 rgba(46, 213, 115, 0);
    }
    30% {
        box-shadow: 0 0 25px rgba(46, 213, 115, 0.8), 0 0 50px rgba(46, 213, 115, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(46, 213, 115, 0.3);
    }
}

@keyframes voteBarLose {
    0%, 100% {
        transform: translateX(0);
        box-shadow: 0 0 0 rgba(255, 71, 87, 0);
    }
    20% {
        transform: translateX(-3px);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    }
    40% {
        transform: translateX(3px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(2px);
        box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
    }
}

/* Guess section glow on result */
.t-guess-vote-row.guess-win-section {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(39, 174, 96, 0.15)) !important;
    border-color: rgba(46, 213, 115, 0.5) !important;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.3), inset 0 0 15px rgba(46, 213, 115, 0.1) !important;
    transition: all 0.3s ease;
}

.t-guess-vote-row.guess-lose-section {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(192, 57, 43, 0.15)) !important;
    border-color: rgba(255, 71, 87, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3), inset 0 0 15px rgba(255, 71, 87, 0.1) !important;
    transition: all 0.3s ease;
}

/* Tournament Radar Chart - Compact Version BELOW VS */
.t-radar-container {
    width: clamp(120px, 15vh, 180px);
    height: clamp(120px, 15vh, 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4px 0;
}

.t-radar-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ========== VS SECTION - Premium Anime Style ========== */
.t-vs-section {
    position: relative;
    width: clamp(80px, 12vh, 110px);
    height: clamp(80px, 12vh, 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Pulsing burst glow behind VS */
.t-vs-burst {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 0, 0.4) 0%,
        rgba(255, 45, 45, 0.2) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: vsBurstPulse 2s ease-in-out infinite;
}

@keyframes vsBurstPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Diamond outline behind badge */
.t-vs-diamond-outer {
    position: absolute;
    width: 95%;
    height: 95%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    transform: rotate(45deg);
    animation: diamondRotate 8s linear infinite;
}

@keyframes diamondRotate {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Diagonal accent stripes */
.t-vs-stripes {
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 8px,
        rgba(255, 215, 0, 0.03) 8px,
        rgba(255, 215, 0, 0.03) 10px
    );
    pointer-events: none;
    animation: stripesMove 3s linear infinite;
}

@keyframes stripesMove {
    from { transform: translate(-20px, -20px); }
    to { transform: translate(20px, 20px); }
}

/* VS Badge - 3D Diamond with depth */
.t-vs-badge {
    position: relative;
    width: clamp(60px, 9vh, 80px);
    height: clamp(60px, 9vh, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4400 0%, #ff6b00 50%, #ffd700 100%);
    transform: rotate(45deg);
    box-shadow: 
        0 4px 0 rgba(200, 50, 0, 0.8),
        0 8px 20px rgba(255, 107, 0, 0.5),
        0 0 40px rgba(255, 107, 0, 0.6),
        inset 0 -3px 10px rgba(0, 0, 0, 0.3),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
    z-index: 5;
    animation: vsFloat 2s ease-in-out infinite;
}

@keyframes vsFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0px);
    }
    50% {
        transform: rotate(45deg) translateY(-3px);
    }
}

/* Inner highlight */
.t-vs-badge::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Corner accents */
.t-vs-badge::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid rgba(255, 215, 0, 0.6);
}

.t-vs-badge span {
    transform: rotate(-45deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.4rem, 2.2vh, 1.8rem);
    letter-spacing: 2px;
    color: #fff;
    font-weight: bold;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
}

/* Reduced motion - disable animations */
@media (prefers-reduced-motion: reduce) {
    .t-vs-burst,
    .t-vs-diamond-outer,
    .t-vs-stripes,
    .t-vs-badge {
        animation: none;
    }
    .t-vs-burst {
        opacity: 0.5;
        transform: scale(1);
    }
    .t-vs-badge {
        transform: rotate(45deg);
    }
}

/* ========== BOTTOM BAND - Info Panels + Stat Bars Side by Side ========== */
.t-bottom-band {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 400px) 1fr;
    gap: clamp(10px, 1.5vw, 20px);
    padding: clamp(8px, 1vh, 12px) clamp(12px, 2vw, 24px);
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Info Panels - Left and Right */
.t-info-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vh, 10px);
    padding: clamp(8px, 1vh, 12px);
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.9), rgba(10, 15, 25, 0.95));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.t-info-panel.left {
    border-color: rgba(0, 212, 255, 0.3);
}

.t-info-panel.right {
    border-color: rgba(255, 107, 0, 0.3);
}

/* Quick Info Bar in Info Panel */
.t-info-panel .t-quick-info {
    gap: 4px;
    padding: 4px;
    margin: 0;
    background: rgba(0, 20, 40, 0.4);
    border-radius: 4px;
}

.t-info-panel .quick-info-item {
    padding: 3px 6px;
    font-size: 0.6rem;
    min-width: auto;
    position: relative;
}

.t-info-panel .quick-info-item.clickable {
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.t-info-panel .quick-info-item.clickable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.t-info-panel .quick-info-item.clickable:active {
    background: rgba(0, 212, 255, 0.2);
}

.t-info-panel .quick-info-item i {
    font-size: 0.65rem;
}

.t-info-panel .quick-info-item .toggle-icon {
    font-size: 0.5rem;
    opacity: 0.4;
    margin-left: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.t-info-panel .quick-info-item.clickable:hover .toggle-icon {
    opacity: 0.8;
    transform: rotate(180deg);
}

/* Tags in Info Panel */
.t-info-panel .t-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t-info-panel .abilities-tags-compact,
.t-info-panel .traits-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
}

.t-info-panel .ability-tag-sm,
.t-info-panel .trait-tag-sm {
    font-size: 0.55rem;
    padding: 2px 6px;
}

/* Tournament Dashboard in Info Panel */
.t-tournament-dashboard {
    margin: 0;
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.95), rgba(10, 15, 30, 0.98));
}

.t-tournament-dashboard .dashboard-header {
    padding: 2px 6px;
}

.t-tournament-dashboard .dashboard-title {
    font-size: 0.65rem;
}

.t-tournament-dashboard .dashboard-content {
    padding: 4px;
}

.t-tournament-dashboard .medal-row {
    gap: 4px;
}

.t-tournament-dashboard .medal-card {
    min-width: 36px;
    padding: 3px 4px;
}

.t-tournament-dashboard .medal-icon-wrap {
    width: 14px;
    height: 14px;
}

.t-tournament-dashboard .medal-icon-wrap i {
    font-size: 0.55rem;
}

.t-tournament-dashboard .medal-count {
    font-size: 0.75rem;
}

.t-tournament-dashboard .medal-label {
    font-size: 0.4rem;
}

/* Action Row - Reuses Rankings Page Button Styles */
.t-action-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.t-action-row .row-vote-btn,
.t-action-row .row-comments-btn {
    padding: 3px 6px;
    font-size: 0.65rem;
}

.t-action-row .row-vote-btn i,
.t-action-row .row-comments-btn i {
    font-size: 0.6rem;
}

.t-action-row .vote-count,
.t-action-row .comment-count {
    font-size: 0.7rem;
}

.t-details-btn {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.t-details-btn:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

/* ========== DETAILS OVERLAY PANEL ========== */
.t-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.98), rgba(5, 10, 20, 0.99));
    border-radius: 8px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.t-details-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.t-info-panel.left .t-details-overlay {
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 60px rgba(0, 212, 255, 0.05);
}

.t-info-panel.right .t-details-overlay {
    border: 1px solid rgba(255, 107, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2), inset 0 0 60px rgba(255, 107, 0, 0.05);
}

.t-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.t-info-panel.left .t-details-header {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), transparent);
}

.t-info-panel.right .t-details-header {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.15), transparent);
}

.t-details-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #fff;
}

.t-info-panel.left .t-details-title {
    color: var(--t-cyan);
}

.t-info-panel.right .t-details-title {
    color: var(--t-orange);
}

.t-details-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.t-details-close:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
    color: #ff6666;
    transform: rotate(90deg);
}

.t-details-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--t-gold) rgba(0, 0, 0, 0.3);
}

.t-details-content::-webkit-scrollbar {
    width: 6px;
}

.t-details-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.t-details-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--t-gold), var(--t-gold-dark));
    border-radius: 3px;
}

.t-details-content::-webkit-scrollbar-thumb:hover {
    background: var(--t-gold);
}

.t-details-description {
    font-size: 0.7rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 2px solid rgba(255, 215, 0, 0.5);
}

.t-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.t-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.t-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.t-detail-item i {
    font-size: 0.75rem;
    color: var(--t-gold);
    opacity: 0.8;
}

.t-detail-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.t-detail-value {
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.t-details-combat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 107, 0, 0.05));
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.t-combat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--t-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.t-combat-label i {
    font-size: 0.6rem;
}

.t-combat-value {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* ========== COMPACT STAT BARS - Center Column ========== */
.t-stats-compact {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.5vh, 6px);
    padding: clamp(6px, 0.8vh, 10px) clamp(8px, 1vw, 12px);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.t-stat-row-compact {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(4px, 0.6vw, 8px);
    align-items: center;
}

.t-stat-row-compact.left-wins .t-val.left,
.t-stat-row-compact.left-wins .t-stat-bar-left .stat-bar-fill {
    filter: brightness(1.3);
}

.t-stat-row-compact.right-wins .t-val.right,
.t-stat-row-compact.right-wins .t-stat-bar-right .stat-bar-fill {
    filter: brightness(1.3);
}

/* Center Cluster - Values + Icon + Abbreviation */
.t-stat-center-cluster {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 12px);
    padding: clamp(4px, 0.5vh, 6px) clamp(8px, 1vw, 14px);
    background: rgba(255, 215, 0, 0.08);
    border-radius: 6px;
    min-width: clamp(90px, 12vw, 120px);
    justify-content: center;
}

/* Icon + Label container */
.t-stat-icon-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 28px;
}

.t-stat-center-cluster .t-stat-icon-label i {
    font-size: clamp(0.75rem, 1.2vh, 0.95rem);
    color: var(--t-gold);
}

.t-stat-abbr {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.5rem, 0.7vh, 0.6rem);
    letter-spacing: 1px;
    color: rgba(255, 215, 0, 0.7);
}

.t-stat-center-cluster .t-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.9rem, 1.4vh, 1.1rem);
    font-weight: 600;
    min-width: clamp(24px, 3vw, 32px);
    text-align: center;
}

.t-stat-center-cluster .t-val.left {
    color: var(--t-cyan);
}

.t-stat-center-cluster .t-val.right {
    color: var(--t-orange);
}

/* Stat Bars - Compact Version - THICK RECTANGULAR BARS */
.t-stats-compact .t-stat-bar-left,
.t-stats-compact .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;
    position: relative !important;
}

.t-stats-compact .t-stat-bar-left .stat-bar,
.t-stats-compact .t-stat-bar-right .stat-bar {
    height: 100% !important;
    min-height: 16px !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%) !important;
}

/* Left bars fill from right to left (toward center using mirror transform) */
.t-stats-compact .t-stat-bar-left {
    transform: scaleX(-1) !important;
}

/* Left fighter color - PURPLE */
.t-stats-compact .t-stat-bar-left .stat-bar-fill {
    height: 100% !important;
    min-height: 14px !important;
    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;
    border-radius: 0 !important;
}

/* Right fighter color - GREEN */
.t-stats-compact .t-stat-bar-right .stat-bar-fill {
    height: 100% !important;
    min-height: 14px !important;
    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;
    border-radius: 0 !important;
}

/* Guess Result Overlay */
.t-guess-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 100;
    animation: guessResultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.t-guess-result.correct {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 200, 100, 0.9));
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.t-guess-result.incorrect {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.9), rgba(200, 50, 50, 0.9));
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 100, 100, 0.5);
}

@keyframes guessResultPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ========== RESULTS SCREEN - PREMIUM CHAMPION CELEBRATION ========== */
.tournament-results {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== EPIC BACKGROUND LAYERS ===== */
.t-results-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.t-backdrop-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Central golden glow */
        radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255, 180, 0, 0.15) 0%, transparent 50%),
        /* Side glows */
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        /* Base dark gradient */
        linear-gradient(180deg, #0f0f18 0%, #0a0a12 40%, #050508 100%);
    animation: backdropPulse 8s ease-in-out infinite;
}

@keyframes backdropPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Atmospheric Fog */
.t-atmosphere-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.t-fog {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.6;
}

.t-fog-1 {
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse 70% 50% at 30% 70%, 
        rgba(255, 200, 50, 0.06) 0%, 
        rgba(15, 15, 25, 0.4) 40%, 
        transparent 70%);
    animation: fogDriftT1 40s ease-in-out infinite;
}

.t-fog-2 {
    top: -30%;
    left: -30%;
    background: radial-gradient(ellipse 60% 60% at 70% 30%, 
        rgba(255, 215, 0, 0.04) 0%, 
        rgba(20, 20, 30, 0.3) 50%, 
        transparent 80%);
    animation: fogDriftT2 50s ease-in-out infinite;
    animation-delay: -12s;
}

.t-fog-3 {
    top: -40%;
    left: -40%;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, 
        rgba(255, 180, 0, 0.03) 0%, 
        rgba(20, 20, 30, 0.2) 60%, 
        transparent 85%);
    animation: fogDriftT3 60s ease-in-out infinite;
    animation-delay: -25s;
}

@keyframes fogDriftT1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(4%, 2%) scale(1.03); }
    50% { transform: translate(8%, 0) scale(1.06); }
    75% { transform: translate(4%, -2%) scale(1.03); }
}

@keyframes fogDriftT2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-6%, 4%) scale(1.05); }
    66% { transform: translate(-2%, -4%) scale(1.02); }
}

@keyframes fogDriftT3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.08); }
}

/* Light Burst from Champion */
.t-light-burst {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 180, 0, 0.1) 30%, 
        rgba(255, 140, 0, 0.05) 50%,
        transparent 70%);
    animation: lightBurstPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightBurstPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateX(-50%) scale(1.15); 
        opacity: 1;
    }
}

/* Golden Particles Container */
.t-golden-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.t-golden-particle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.9) 0%, 
        rgba(255, 180, 0, 0.6) 50%, 
        transparent 100%);
    border-radius: 50%;
    animation: goldenFloat var(--duration) ease-in-out var(--delay) infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes goldenFloat {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(0, -20px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translate(var(--drift), -200px) scale(0.8);
        opacity: 0.8;
    }
}

/* Dust Container */
.t-dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.t-dust {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: rgba(255, 230, 200, var(--opacity));
    border-radius: 50%;
    animation: dustDrift var(--duration) linear var(--delay) infinite;
}

@keyframes dustDrift {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: var(--opacity);
    }
    90% {
        opacity: var(--opacity);
    }
    100% {
        transform: translate(var(--drift-x), var(--drift-y));
        opacity: 0;
    }
}

/* Confetti Container */
.t-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.t-confetti {
    position: absolute;
    top: -20px;
    width: var(--size);
    height: calc(var(--size) * 1.5);
    background: var(--color);
    animation: confettiFall var(--duration) linear var(--delay) forwards;
    transform-origin: center;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 50px)) rotate(720deg) scale(0.5);
        opacity: 0.3;
    }
}

/* Close Button */
.t-results-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-results-close:hover {
    background: rgba(255, 50, 50, 0.4);
    border-color: rgba(255, 50, 50, 0.6);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
}

/* ===== MAIN CONTAINER ===== */
.t-results-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2vh, 20px);
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    padding: clamp(12px, 1.5vh, 20px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.t-results-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* ===== CHAMPION SHOWCASE - HERO SECTION ===== */
.t-champion-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: showcaseReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    cursor: pointer;
}

/* Click hint below the showcase */
.t-champion-click-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 14px;
    border-radius: 12px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.t-champion-showcase:hover .t-champion-click-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Always show on touch devices */
@media (hover: none) {
    .t-champion-click-hint {
        opacity: 0.7;
        transform: translateY(0);
    }
}

@keyframes showcaseReveal {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Crown Section */
.t-crown-section {
    position: relative;
    margin-bottom: -10px;
}

.t-crown-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, 
        transparent 0deg, 
        rgba(255, 215, 0, 0.3) 10deg,
        transparent 20deg,
        transparent 45deg, 
        rgba(255, 215, 0, 0.3) 55deg,
        transparent 65deg,
        transparent 90deg, 
        rgba(255, 215, 0, 0.3) 100deg,
        transparent 110deg,
        transparent 135deg, 
        rgba(255, 215, 0, 0.3) 145deg,
        transparent 155deg,
        transparent 180deg, 
        rgba(255, 215, 0, 0.3) 190deg,
        transparent 200deg,
        transparent 225deg, 
        rgba(255, 215, 0, 0.3) 235deg,
        transparent 245deg,
        transparent 270deg, 
        rgba(255, 215, 0, 0.3) 280deg,
        transparent 290deg,
        transparent 315deg, 
        rgba(255, 215, 0, 0.3) 325deg,
        transparent 335deg);
    animation: crownRaysRotate 20s linear infinite;
    filter: blur(3px);
}

@keyframes crownRaysRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.t-crown-icon {
    position: relative;
    font-size: clamp(2rem, 5vh, 3rem);
    color: var(--t-gold);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Champion Banner */
.t-champion-banner {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--t-gold) 15%, 
        var(--t-gold-dark) 50%, 
        var(--t-gold) 85%,
        transparent 100%);
    padding: clamp(8px, 1.5vh, 14px) clamp(40px, 8vw, 80px);
    margin: 8px 0 15px;
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
    animation: bannerSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: scaleX(0);
}

@keyframes bannerSlide {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.t-banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: bannerShine 3s ease-in-out infinite;
}

@keyframes bannerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.t-champion-banner span {
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.2rem, 2.5vh, 1.8rem);
    letter-spacing: 6px;
    color: #000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Champion Hero Image Section */
.t-champion-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(180px, 28vh, 280px);
    height: clamp(180px, 28vh, 280px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: scale(0.5);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Aura - Glowing backdrop */
.t-hero-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.25) 0%, 
        rgba(255, 180, 0, 0.15) 40%, 
        transparent 70%);
    animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Hero Rings - Orbiting circles */
.t-hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%);
}

.t-ring-1 {
    width: 110%;
    height: 110%;
    animation: ringPulse 4s ease-in-out infinite, ringRotate1 15s linear infinite;
    border-style: dashed;
}

.t-ring-2 {
    width: 125%;
    height: 125%;
    animation: ringPulse 4s ease-in-out 0.5s infinite, ringRotate2 20s linear infinite reverse;
    border-color: rgba(255, 180, 0, 0.2);
}

.t-ring-3 {
    width: 140%;
    height: 140%;
    animation: ringPulse 4s ease-in-out 1s infinite, ringRotate3 25s linear infinite;
    border-color: rgba(255, 150, 0, 0.15);
    border-style: dotted;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes ringRotate1 {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringRotate2 {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes ringRotate3 {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Spotlight */
.t-hero-spotlight {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 100%;
    height: 200%;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        rgba(255, 220, 150, 0.1) 0%,
        rgba(255, 200, 100, 0.05) 30%,
        transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}

/* Hero Image Wrapper */
.t-hero-image-wrap {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid var(--t-gold);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 180, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.t-champion-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.t-champion-showcase:hover .t-champion-img {
    transform: scale(1.08);
}

.t-hero-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: heroShine 4s ease-in-out infinite;
}

@keyframes heroShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* Hero Particles */
.t-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.t-hero-spark {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle, #fff 0%, var(--t-gold) 50%, transparent 100%);
    border-radius: 50%;
    animation: sparkRise var(--duration) ease-out var(--delay) infinite;
}

@keyframes sparkRise {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--drift), -100px) scale(0);
        opacity: 0;
    }
}

/* Champion Name Section */
.t-champion-name-section {
    position: relative;
    margin-top: 15px;
    animation: nameReveal 0.6s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes nameReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.t-name-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.t-champion-name {
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vh, 2.8rem);
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Victory Stats */
.t-victory-stats {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    margin-top: 10px;
    padding: clamp(10px, 1.5vh, 16px) clamp(20px, 4vw, 40px);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    animation: statsReveal 0.5s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes statsReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.t-victory-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-victory-stat .t-stat-icon {
    font-size: clamp(1rem, 2vh, 1.4rem);
    color: var(--t-gold);
}

.t-victory-stat .t-stat-content {
    display: flex;
    flex-direction: column;
}

.t-victory-stat .t-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.4rem, 2.5vh, 2rem);
    color: #fff;
    line-height: 1;
}

.t-victory-stat .t-stat-label {
    font-size: clamp(0.6rem, 1vh, 0.75rem);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t-victory-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

/* ===== BOTTOM SECTION ===== */
.t-results-bottom {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 20px);
    animation: bottomReveal 0.6s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes bottomReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats + Podium Row */
.t-results-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2vw, 20px);
}

/* Panel Styling */
.t-stats-panel,
.t-podium-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--t-radius);
    padding: clamp(12px, 2vh, 18px);
    backdrop-filter: blur(10px);
}

.t-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(10px, 1.5vh, 16px);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.8rem, 1.3vh, 1rem);
    letter-spacing: 2px;
    color: var(--t-cyan);
}

.t-panel-header i {
    font-size: 0.9em;
}

/* Stats Grid */
.t-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.5vw, 14px);
}

.t-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(8px, 1.2vh, 14px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.t-stat-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.t-stat-icon-small {
    font-size: clamp(0.8rem, 1.2vh, 1rem);
    color: var(--t-cyan);
    margin-bottom: 4px;
}

.t-stat-item .t-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.1rem, 1.8vh, 1.5rem);
    color: #fff;
    line-height: 1.2;
}

.t-stat-item .t-stat-label {
    font-size: clamp(0.55rem, 0.9vh, 0.7rem);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Podium Grid */
.t-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(6px, 1vw, 12px);
}

.t-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(8px, 1.2vh, 14px) 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.t-podium-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.t-podium-card:nth-child(1) { 
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(0, 0, 0, 0.3));
}

.t-podium-card:nth-child(2) { 
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0.3));
}

.t-podium-card:nth-child(3) { 
    border-color: var(--t-cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 0, 0, 0.3));
}

.t-podium-pos {
    font-size: clamp(0.5rem, 0.8vh, 0.6rem);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: bold;
}

.t-podium-img {
    width: clamp(45px, 7vh, 70px);
    height: clamp(45px, 7vh, 70px);
    object-fit: contain;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.t-podium-card:hover .t-podium-img {
    transform: scale(1.1);
}

.t-podium-name {
    font-size: clamp(0.6rem, 0.9vh, 0.75rem);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Bonus Display */
.t-bonus-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(10px, 1.5vh, 16px);
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.08), 
        rgba(0, 255, 136, 0.08), 
        rgba(255, 215, 0, 0.08));
    border-radius: var(--t-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.t-bonus-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.9rem, 1.5vh, 1.2rem);
    letter-spacing: 1px;
    animation: bonusPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.t-bonus-item.xp { color: var(--t-gold); animation-delay: 1.2s; opacity: 0; }
.t-bonus-item.bp { color: var(--t-green); animation-delay: 1.4s; opacity: 0; }
.t-bonus-item.guess { color: var(--t-purple); animation-delay: 1.6s; opacity: 0; }

@keyframes bonusPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Action Buttons */
.t-results-actions {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
    flex-wrap: wrap;
}

.t-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(10px, 1.5vh, 14px) clamp(20px, 3vw, 32px);
    border: none;
    border-radius: 6px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.85rem, 1.3vh, 1.05rem);
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.t-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.t-action-btn:hover .t-btn-shine {
    left: 100%;
}

.t-action-btn.primary {
    background: linear-gradient(135deg, var(--t-gold), var(--t-gold-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.t-action-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.t-action-btn.secondary {
    background: linear-gradient(135deg, var(--t-cyan), #0099cc);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.t-action-btn.secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.t-action-btn.tertiary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.t-action-btn.tertiary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========== RESULTS SCREEN RESPONSIVE ========== */

/* Tablet & Small Desktop */
@media (max-width: 900px) {
    .t-champion-hero {
        width: clamp(150px, 24vh, 220px);
        height: clamp(150px, 24vh, 220px);
    }
    
    .t-victory-stats {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }
    
    .t-victory-divider {
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    }
    
    .t-results-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Hide some atmospheric effects on tablet for performance */
    .t-fog-3 {
        display: none;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .t-results-container {
        padding: 12px;
        gap: 12px;
    }
    
    .t-results-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .t-champion-showcase {
        width: 100%;
    }
    
    .t-crown-section {
        margin-bottom: -5px;
    }
    
    .t-crown-rays {
        width: 80px;
        height: 80px;
    }
    
    .t-crown-icon {
        font-size: 1.8rem;
    }
    
    .t-champion-banner {
        padding: 6px 30px;
        margin: 6px 0 12px;
    }
    
    .t-champion-banner span {
        font-size: 1rem;
        letter-spacing: 4px;
    }
    
    .t-champion-hero {
        width: 140px;
        height: 140px;
    }
    
    .t-hero-ring {
        display: none; /* Hide rings on mobile for cleaner look */
    }
    
    .t-champion-name-section {
        margin-top: 12px;
    }
    
    .t-champion-name {
        font-size: 1.5rem;
    }
    
    .t-victory-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 15px;
        width: 100%;
    }
    
    .t-victory-divider {
        display: none;
    }
    
    .t-victory-stat {
        gap: 8px;
    }
    
    .t-victory-stat .t-stat-icon {
        font-size: 1rem;
    }
    
    .t-victory-stat .t-stat-value {
        font-size: 1.2rem;
    }
    
    .t-victory-stat .t-stat-label {
        font-size: 0.6rem;
    }
    
    .t-results-bottom {
        gap: 10px;
    }
    
    .t-results-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .t-stats-panel,
    .t-podium-panel {
        padding: 10px;
    }
    
    .t-panel-header {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .t-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }
    
    .t-stat-item {
        display: flex !important;
        flex-direction: column !important;
        padding: 6px 4px;
    }
    
    .t-stat-icon-small {
        font-size: 0.75rem;
    }
    
    .t-stat-item .t-stat-value {
        font-size: 0.95rem;
    }
    
    .t-stat-item .t-stat-label {
        font-size: 0.5rem;
    }
    
    .t-podium-grid {
        gap: 6px;
    }
    
    .t-podium-card {
        padding: 8px 4px;
    }
    
    .t-podium-img {
        width: 40px;
        height: 40px;
    }
    
    .t-podium-name {
        font-size: 0.6rem;
    }
    
    .t-bonus-display {
        padding: 10px;
        gap: 12px;
    }
    
    .t-bonus-item {
        font-size: 0.85rem;
    }
    
    .t-results-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .t-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Hide heavy atmospheric effects on mobile */
    .t-golden-particles,
    .t-fog-2,
    .t-fog-3 {
        display: none;
    }
    
    .t-light-burst {
        width: 300px;
        height: 300px;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .t-champion-hero {
        width: 120px;
        height: 120px;
    }
    
    .t-champion-name {
        font-size: 1.3rem;
    }
    
    .t-victory-stats {
        padding: 8px 10px;
    }
    
    .t-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .t-stat-item {
        padding: 6px 2px;
    }
    
    .t-stat-item .t-stat-value {
        font-size: 1rem;
    }
    
    .t-stat-icon-small {
        display: none;
    }
    
    .t-podium-img {
        width: 35px;
        height: 35px;
    }
}

/* Short Height Screens (Laptops) */
@media (max-height: 700px) {
    .t-results-container {
        padding: 10px;
        gap: 10px;
    }
    
    .t-champion-hero {
        width: clamp(130px, 22vh, 180px);
        height: clamp(130px, 22vh, 180px);
    }
    
    .t-crown-icon {
        font-size: 1.8rem;
    }
    
    .t-champion-banner {
        padding: 6px 30px;
        margin: 6px 0 10px;
    }
    
    .t-champion-name-section {
        margin-top: 10px;
    }
    
    .t-champion-name {
        font-size: 1.6rem;
    }
    
    .t-victory-stats {
        padding: 8px 20px;
        margin-top: 8px;
    }
    
    .t-results-bottom {
        gap: 10px;
    }
    
    .t-stats-panel,
    .t-podium-panel {
        padding: 10px;
    }
    
    .t-bonus-display {
        padding: 8px;
    }
}

@media (max-height: 600px) {
    .t-crown-rays {
        display: none;
    }
    
    .t-champion-hero {
        width: 100px;
        height: 100px;
    }
    
    .t-hero-ring {
        display: none;
    }
    
    .t-champion-name {
        font-size: 1.4rem;
    }
    
    .t-victory-stats {
        flex-direction: row;
        padding: 6px 15px;
    }
    
    .t-victory-divider {
        width: 2px;
        height: 30px;
    }
}

/* ========== BATTLE SCREEN RESPONSIVE ========== */
@media (max-width: 900px) {
    .t-battle-arena {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
    }
    
    .t-battle-center {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px;
    }
    
    .t-stats-grid {
        display: none;
    }
    
    .t-fighter-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px;
    }
    
    .t-hero-image {
        width: 100px;
        height: 80px;
        flex: none;
    }
    
    .t-identity {
        flex: 1;
        text-align: left;
        border-top: none;
        padding: 0;
    }
    
    .t-badges {
        justify-content: flex-start;
    }
    
    .t-physical-stats,
    .t-record,
    .t-tags {
        display: none;
    }
    
    .t-click-hint {
        position: static;
        transform: none;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .t-setup-grid {
        grid-template-columns: 1fr;
    }
    
    .t-setup-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .t-start-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.t-fighter-card.left {
    animation: slideInLeft 0.4s ease-out;
}

.t-fighter-card.right {
    animation: slideInRight 0.4s ease-out;
}

/* ========================================
   MATCH INTRO ANIMATION - Fighting Game Style
   ======================================== */

.match-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #050810 50%, #0a0e1a 100%);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.match-intro-overlay.active {
    display: flex;
}

/* Speed Lines Background */
.intro-speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 60px,
            rgba(255, 215, 0, 0.03) 60px,
            rgba(255, 215, 0, 0.03) 62px
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 100px,
            rgba(0, 212, 255, 0.02) 100px,
            rgba(0, 212, 255, 0.02) 102px
        );
    opacity: 0;
    animation: speedLinesIn 0.3s ease-out 0.1s forwards;
}

@keyframes speedLinesIn {
    to { opacity: 1; }
}

/* Sparks Container */
.intro-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.intro-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 6px #ffd700, 0 0 12px #ff8c00;
    animation: sparkFloat 0.8s ease-out forwards;
}

@keyframes sparkFloat {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-50px);
    }
}

/* Main Content Container */
.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Fighter Plates */
.intro-fighter-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.95), rgba(10, 15, 25, 0.98));
    border-radius: 12px;
    position: relative;
    opacity: 0;
    min-width: 280px;
    max-width: 350px;
}

.intro-fighter-plate.left {
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.3),
        inset 0 0 20px rgba(168, 85, 247, 0.05);
    transform: translateX(-100vw);
    animation: introSlideLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.intro-fighter-plate.right {
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.3),
        inset 0 0 20px rgba(34, 197, 94, 0.05);
    transform: translateX(100vw);
    animation: introSlideRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes introSlideLeft {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    70% {
        transform: translateX(10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes introSlideRight {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    70% {
        transform: translateX(-10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fighter Image Container */
.intro-fighter-image-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-fighter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: glowPulse 0.5s ease-out 0.5s forwards;
}

.intro-fighter-glow.left {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
}

.intro-fighter-glow.right {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
}

@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

.intro-fighter-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transform: scale(0);
    animation: imageScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes imageScaleIn {
    0% {
        transform: scale(0) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Fighter Info */
.intro-fighter-info {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: infoFadeUp 0.4s ease-out 0.6s forwards;
}

@keyframes infoFadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.intro-fighter-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.intro-fighter-plate.left .intro-fighter-name {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.intro-fighter-plate.right .intro-fighter-name {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.intro-fighter-scientific {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* VS Badge Container */
.intro-vs-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.intro-vs-burst {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    transform: scale(0);
    animation: vsBurstIn 0.3s ease-out 0.7s forwards;
}

@keyframes vsBurstIn {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.intro-vs-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff2d2d, #ff6b00, #ffd700);
    transform: rotate(45deg) scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 40px rgba(255, 107, 0, 0.6),
        0 0 80px rgba(255, 45, 45, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 5;
    animation: vsBadgeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
    /* Ensure badge doesn't clip contents */
    overflow: visible;
}

@keyframes vsBadgeIn {
    0% {
        transform: rotate(45deg) scale(0);
    }
    70% {
        transform: rotate(45deg) scale(1.1);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

.intro-vs-badge span {
    transform: rotate(-45deg);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 200, 50, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1;
    position: relative;
    z-index: 10;
}

/* Screen Shake on VS */
.match-intro-overlay.shake {
    animation: screenShake 0.3s ease-out;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px) translateY(2px); }
    20% { transform: translateX(5px) translateY(-2px); }
    30% { transform: translateX(-4px) translateY(1px); }
    40% { transform: translateX(4px) translateY(-1px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

/* Fade Out Animation */
.match-intro-overlay.fade-out {
    animation: introFadeOut 0.5s ease-in forwards;
}

@keyframes introFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* Reduced Motion - Fast fade instead */
@media (prefers-reduced-motion: reduce) {
    .intro-speed-lines {
        animation: none;
        opacity: 0.5;
    }
    
    .intro-fighter-plate.left,
    .intro-fighter-plate.right {
        transform: none;
        animation: simpleFadeIn 0.3s ease-out forwards;
    }
    
    .intro-fighter-glow {
        animation: none;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    
    .intro-fighter-image {
        animation: none;
        transform: scale(1);
    }
    
    .intro-fighter-info {
        animation: none;
        transform: none;
        opacity: 1;
    }
    
    .intro-vs-burst {
        animation: none;
        transform: scale(1);
    }
    
    .intro-vs-badge {
        animation: simpleFadeIn 0.3s ease-out 0.2s forwards;
        transform: rotate(45deg) scale(0);
    }
    
    .match-intro-overlay.shake {
        animation: none;
    }
    
    .match-intro-overlay.fade-out {
        animation: simpleFadeOut 0.2s ease-out forwards;
    }
    
    @keyframes simpleFadeIn {
        to {
            opacity: 1;
            transform: rotate(45deg) scale(1);
        }
    }
    
    @keyframes simpleFadeOut {
        to { opacity: 0; }
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .intro-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .intro-fighter-plate {
        flex-direction: row;
        min-width: 90%;
        max-width: 400px;
        padding: 15px;
    }
    
    .intro-fighter-plate.left {
        animation-name: introSlideDown;
    }
    
    .intro-fighter-plate.right {
        animation-name: introSlideUp;
    }
    
    @keyframes introSlideDown {
        0% {
            transform: translateY(-100vh);
            opacity: 0;
        }
        70% {
            transform: translateY(5px);
            opacity: 1;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes introSlideUp {
        0% {
            transform: translateY(100vh);
            opacity: 0;
        }
        70% {
            transform: translateY(-5px);
            opacity: 1;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .intro-fighter-image-wrap {
        width: 100px;
        height: 100px;
    }
    
    .intro-fighter-image {
        width: 90px;
        height: 90px;
    }
    
    .intro-fighter-glow {
        width: 110px;
        height: 110px;
    }
    
    .intro-vs-container {
        width: 80px;
        height: 80px;
        order: -1;
    }
    
    .intro-vs-badge {
        width: 70px;
        height: 70px;
    }
    
    .intro-vs-badge span {
        font-size: 1.8rem;
    }
    
    .intro-fighter-name {
        font-size: 1.3rem;
    }
    
    .intro-fighter-scientific {
        font-size: 0.75rem;
    }
}

/* ========== MOBILE SPECIFIC (480px and below) ========== */
@media (max-width: 480px) {
    /* Tournament modal - full screen */
    .tournament-modal {
        padding: 0 !important;
    }
    
    .tournament-modal.show {
        align-items: stretch !important;
    }
    
    /* Setup container */
    .t-setup-container {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding: 12px !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }
    
    .t-setup-header {
        padding: 8px 0 !important;
    }
    
    .t-setup-title {
        font-size: 1.2rem !important;
    }
    
    .t-setup-subtitle {
        font-size: 0.7rem !important;
    }
    
    .t-setup-options {
        gap: 8px !important;
    }
    
    .t-setup-option {
        padding: 10px !important;
    }
    
    .t-option-count {
        font-size: 1.5rem !important;
    }
    
    .t-option-label {
        font-size: 0.65rem !important;
    }
    
    /* Battle arena - CRITICAL for mobile */
    .t-battle-arena {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 8px !important;
        height: auto !important;
        min-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
    }
    
    /* Header row */
    .t-match-header {
        padding: 8px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .t-round-info {
        font-size: 0.75rem !important;
    }
    
    .t-match-info {
        font-size: 0.7rem !important;
    }
    
    .t-quit-btn {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
    }
    
    /* Fighter cards - VERTICAL STACK */
    .t-fighter-card {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        padding: 12px !important;
        min-height: auto !important;
    }
    
    .t-fighter-card.left,
    .t-fighter-card.right {
        order: unset !important;
    }
    
/* Hero image - MUST reset flex to prevent grow */
    .t-hero-image {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 100px !important;
    }

    .t-hero-image img {
        max-height: 95px !important;
        object-fit: contain !important;
    }
    
    /* Identity section */
    .t-identity {
        padding: 8px 0 !important;
    }
    
    .t-fighter-name {
        font-size: 1rem !important;
    }
    
    .t-scientific-name {
        font-size: 0.65rem !important;
    }
    
    /* Badges row */
    .t-badges {
        gap: 6px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .t-rank-badge,
    .t-tier-badge {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }
    
    /* Record stats */
    .t-record {
        padding: 6px !important;
        gap: 8px !important;
    }
    
    .t-record-stat {
        font-size: 0.6rem !important;
        gap: 3px !important;
    }
    
    .t-record-value {
        font-size: 0.75rem !important;
    }
    
    /* Stat bars inside fighter card */
    .t-stat-bars {
        padding: 8px !important;
        gap: 4px !important;
    }
    
    .t-stat-bar-row {
        gap: 4px !important;
    }
    
    .t-stat-bar-label {
        font-size: 0.55rem !important;
        min-width: 24px !important;
    }
    
    .t-stat-bar-track {
        height: 6px !important;
    }
    
    .t-stat-bar-value {
        font-size: 0.6rem !important;
        min-width: 22px !important;
    }
    
    /* Physical stats row */
    .t-physical-stats {
        padding: 6px !important;
        gap: 6px !important;
    }
    
    .t-physical-stat {
        font-size: 0.6rem !important;
        padding: 4px 6px !important;
    }
    
    /* Tags (abilities/traits) */
    .t-tags {
        padding: 8px !important;
        gap: 6px !important;
    }
    
    .t-tag {
        font-size: 0.55rem !important;
        padding: 3px 6px !important;
    }
    
    /* Click hint */
    .t-click-hint {
        font-size: 0.8rem !important;
        padding: 10px !important;
    }
    
    /* Center section with VS and comparison */
    .t-battle-center {
        order: 0 !important;
        padding: 8px !important;
        gap: 8px !important;
        flex-direction: column !important;
    }
    
    .t-vs-diamond {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.9rem !important;
    }
    
    /* Stats comparison grid */
    .t-stats-grid {
        display: none !important; /* Hide on mobile - too cramped */
    }
    
    /* Guess mode toggle */
    .t-guess-toggle {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        gap: 6px !important;
    }
    
    /* Vote progress bar */
    .t-vote-bar {
        padding: 8px !important;
    }
    
    .t-vote-percent {
        font-size: 0.7rem !important;
    }
    
    /* Results screen */
    .t-results-container {
        padding: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }
    
    .t-results-title {
        font-size: 1.2rem !important;
    }
    
    .t-podium {
        gap: 8px !important;
        padding: 12px !important;
    }
    
    .t-podium-place {
        padding: 8px !important;
    }
    
    .t-podium-image img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .t-podium-name {
        font-size: 0.7rem !important;
    }
    
    .t-stats-summary {
        padding: 12px !important;
    }
    
    .t-summary-stat {
        font-size: 0.75rem !important;
    }
    
    .t-results-actions {
        gap: 8px !important;
        padding: 12px 0 !important;
    }
    
    .t-action-btn {
        padding: 12px 16px !important;
        font-size: 0.75rem !important;
        min-height: 44px !important;
    }
    
    /* Match intro overlay */
    .intro-content {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    .intro-fighter {
        width: 100% !important;
        max-width: 200px !important;
    }
    
    .intro-fighter-image img {
        max-height: 80px !important;
    }
    
    .intro-fighter-name {
        font-size: 1rem !important;
    }
    
    .intro-vs-container {
        width: 60px !important;
        height: 60px !important;
    }
    
    .intro-vs-badge {
        width: 50px !important;
        height: 50px !important;
    }
    
    .intro-vs-badge span {
        font-size: 1.2rem !important;
    }
}
