@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Creepster&family=Bungee:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bangers', cursive;
    background: 
        radial-gradient(circle at 20% 80%, #ff6b35 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #f7931e 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #1e3c72 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
    color: white;
    min-height: 100vh;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 5em;
    margin-bottom: 10px;
    text-shadow: 
        4px 4px 0px #000,
        8px 8px 0px #ff6b35,
        12px 12px 0px #f7931e,
        16px 16px 30px rgba(0,0,0,0.8);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    transform: perspective(500px) rotateX(15deg);
    font-family: 'Bungee', cursive;
}

.subtitle {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 30px;
    font-family: 'Bangers', cursive;
    color: #f7931e;
    text-shadow: 
        2px 2px 0px #000,
        4px 4px 0px #ff6b35;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.setup-section {
    background: 
        linear-gradient(45deg, #ff6b35, #f7931e),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0,0,0,0.1) 10px,
            rgba(0,0,0,0.1) 20px
        );
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 4px solid #000;
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 8px #000,
        8px 8px 0px #ff6b35,
        12px 12px 20px rgba(0,0,0,0.5);
    transform: rotate(-1deg);
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#fighterInput {
    flex: 1;
    padding: 15px 20px;
    border: 4px solid #000;
    border-radius: 0;
    font-size: 18px;
    font-family: 'Bangers', cursive;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        inset 0 0 0 2px #fff,
        inset 0 0 0 6px #000,
        4px 4px 0px #000;
}

#fighterInput::placeholder {
    color: #666;
    text-transform: uppercase;
}

button {
    padding: 15px 30px;
    border: 4px solid #000;
    border-radius: 0;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    font-size: 18px;
    font-family: 'Bangers', cursive;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 0 0 2px #fff,
        0 0 0 6px #000,
        4px 4px 0px #000;
    text-shadow: 2px 2px 0px #000;
}

button:hover:not(:disabled) {
    background: linear-gradient(45deg, #f7931e, #ff6b35);
    transform: translate(-2px, -2px);
    box-shadow: 
        0 0 0 2px #fff,
        0 0 0 6px #000,
        6px 6px 0px #000;
}

button:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 
        0 0 0 2px #fff,
        0 0 0 6px #000,
        2px 2px 0px #000;
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.fighters-list {
    margin: 20px 0;
}

.fighter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            rgba(0,0,0,0.1) 5px,
            rgba(0,0,0,0.1) 10px
        );
    padding: 12px 20px;
    margin: 8px 0;
    border: 3px solid #000;
    box-shadow: 
        0 0 0 2px #fff,
        0 0 0 5px #000,
        3px 3px 0px #000;
    font-family: 'Bangers', cursive;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #000;
}

.remove-btn {
    background: #dc3545;
    padding: 5px 10px;
    font-size: 12px;
}

.battle-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.arena-section {
    background: 
        linear-gradient(45deg, #ff6b35, #f7931e),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 15px,
            rgba(0,0,0,0.1) 15px,
            rgba(0,0,0,0.1) 30px
        );
    padding: 30px;
    border: 6px solid #000;
    margin-bottom: 20px;
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 10px #000,
        10px 10px 0px #000,
        15px 15px 30px rgba(0,0,0,0.5);
    transform: rotate(0.5deg);
}

.arena {
    position: relative;
    height: 500px;
    background: 
        /* Boxing ring canvas */
        radial-gradient(circle at center, #2c3e50 0%, #34495e 100%);
    border: 8px solid #000;
    border-radius: 0;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 
        inset 0 0 0 6px #fff,
        inset 0 0 0 12px #ff0000,
        inset 0 0 0 18px #fff,
        inset 0 0 0 24px #0066ff,
        inset 0 0 0 30px #fff,
        inset 0 0 0 36px #000,
        0 0 30px rgba(255, 107, 53, 0.8);
}

.arena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Ring ropes */
        linear-gradient(to right, transparent 0%, transparent 48%, #fff 48%, #fff 52%, transparent 52%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, transparent 48%, #fff 48%, #fff 52%, transparent 52%, transparent 100%),
        /* Corner posts */
        radial-gradient(circle at 5% 5%, #666 0%, #666 2%, transparent 2%),
        radial-gradient(circle at 95% 5%, #666 0%, #666 2%, transparent 2%),
        radial-gradient(circle at 5% 95%, #666 0%, #666 2%, transparent 2%),
        radial-gradient(circle at 95% 95%, #666 0%, #666 2%, transparent 2%);
    z-index: 1;
    pointer-events: none;
}

.arena::after {
    content: 'CYBER RUMBLE';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bangers', cursive;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    z-index: 1;
    pointer-events: none;
    letter-spacing: 3px;
}

.robot {
    position: absolute;
    width: 120px;
    height: 140px;
    transition: all 0.3s ease;
}

#robotsContainer {
    position: relative;
    width: 100%;
    height: 100%;
}

.robot {
    position: absolute;
    width: 80px;
    height: 100px;
    z-index: 10;
    transition: all 0.8s ease;
}

/* For battle royale, make robots smaller so they fit better */
#robotsContainer .robot {
    width: 60px;
    height: 80px;
    transform: scale(0.8);
}

#robotsContainer .robot-container {
    width: 100%;
    height: 100%;
}

#robotsContainer .robot-body {
    width: 40px;
    height: 50px;
}

#robotsContainer .robot-head {
    width: 30px;
    height: 25px;
}

#robotsContainer .robot-arm {
    width: 12px;
    height: 35px;
}

#robotsContainer .robot-leg {
    width: 14px;
    height: 30px;
}

#robotsContainer .robot-name {
    font-size: 12px;
    margin-top: 5px;
}

#robotsContainer .health-bar {
    width: 60px;
    height: 8px;
    margin-top: 5px;
}

.robot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Robot Head */
.robot-head {
    position: absolute;
    width: 40px;
    height: 35px;
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border: 3px solid #000;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        inset 0 0 0 2px #fff,
        3px 3px 0px #000;
}

.robot-head::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border: 2px solid #000;
    border-radius: 50%;
    top: 8px;
    left: 8px;
    box-shadow: 
        15px 0 0 #ff0000,
        15px 0 0 2px #000;
}

.robot-head::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: #000;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Robot Body */
.robot-body {
    position: absolute;
    width: 50px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: 3px solid #000;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        inset 0 0 0 2px #fff,
        3px 3px 0px #000;
}

.robot-body::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 20px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 2px solid #000;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px #fff;
}

.robot-body::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #f1c40f;
    border: 1px solid #000;
    border-radius: 50%;
    top: 8px;
    left: 8px;
    box-shadow: 
        25px 0 0 #f1c40f,
        25px 0 0 1px #000,
        12px 35px 0 #f1c40f,
        12px 35px 0 1px #000;
}

/* Robot Arms */
.robot-arm {
    position: absolute;
    width: 15px;
    height: 45px;
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    border: 2px solid #000;
    top: 40px;
    transform-origin: top center;
    box-shadow: 2px 2px 0px #000;
}

.robot-arm-left {
    left: 15px;
    transform: rotate(-10deg);
}

.robot-arm-right {
    right: 15px;
    transform: rotate(10deg);
}

.robot-arm::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #e67e22, #d35400);
    border: 2px solid #000;
    border-radius: 50%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        inset 0 0 0 1px #fff,
        2px 2px 0px #000;
}

/* Robot Legs */
.robot-leg {
    position: absolute;
    width: 18px;
    height: 40px;
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    border: 2px solid #000;
    bottom: 0;
    box-shadow: 2px 2px 0px #000;
}

.robot-leg-left {
    left: 30px;
}

.robot-leg-right {
    right: 30px;
}

.robot-leg::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 12px;
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border: 2px solid #000;
    bottom: -6px;
    left: -3px;
    box-shadow: 2px 2px 0px #000;
}

.robot-name {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px;
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 0px #000,
        4px 4px 0px #ff6b35;
    color: #fff;
}

.health-bar {
    width: 100px;
    height: 12px;
    background: #000;
    border: 2px solid #fff;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 0 2px #000,
        2px 2px 0px #000;
}

.health-fill {
    height: 100%;
    background: 
        linear-gradient(90deg, #ff0000, #ff6b35, #f7931e),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.2) 2px,
            rgba(255,255,255,0.2) 4px
        );
    width: 100%;
    transition: width 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
}

.battle-controls {
    text-align: center;
    margin: 20px 0;
}

.battle-log {
    background: 
        linear-gradient(45deg, #000, #1a1a2e),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(255,107,53,0.1) 20px,
            rgba(255,107,53,0.1) 40px
        );
    padding: 20px;
    border: 4px solid #000;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'Bangers', cursive;
    box-shadow: 
        inset 0 0 0 2px #fff,
        inset 0 0 0 6px #000,
        4px 4px 0px #000;
}

.log-entry {
    margin: 8px 0;
    padding: 8px 15px;
    border: 2px solid #ff6b35;
    background: rgba(255,107,53,0.1);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #000;
    box-shadow: 2px 2px 0px #000;
}

.bracket-section, .results-section {
    background: 
        linear-gradient(45deg, #ff6b35, #f7931e),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 15px,
            rgba(0,0,0,0.1) 15px,
            rgba(0,0,0,0.1) 30px
        );
    padding: 30px;
    border: 6px solid #000;
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 10px #000,
        10px 10px 0px #000;
    backdrop-filter: blur(10px);
}

.bracket-rounds {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.bracket-round {
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.8), rgba(26,26,46,0.8));
    padding: 20px;
    border: 4px solid #000;
    box-shadow: 
        inset 0 0 0 2px #fff,
        inset 0 0 0 6px #000,
        4px 4px 0px #000;
}

.bracket-round h3 {
    font-family: 'Bangers', cursive;
    font-size: 1.8em;
    color: #f7931e;
    text-shadow: 
        2px 2px 0px #000,
        4px 4px 0px #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bracket-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    padding: 15px 20px;
    margin: 10px 0;
    border: 3px solid #000;
    box-shadow: 
        0 0 0 2px #fff,
        0 0 0 5px #000,
        3px 3px 0px #000;
    font-family: 'Bangers', cursive;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bracket-match .fighter {
    color: #fff;
    text-shadow: 1px 1px 0px #000;
    min-width: 120px;
}

.bracket-match .vs {
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 2px 2px 0px #000;
    margin: 0 15px;
}

.bracket-match .winner {
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 
        2px 2px 0px #000,
        4px 4px 0px rgba(241,196,15,0.5);
    min-width: 120px;
    text-align: right;
}

.home-btn {
    background: #6c757d;
    margin-top: 20px;
}

.leaderboard-section {
    background: 
        linear-gradient(45deg, #ff6b35, #f7931e),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0,0,0,0.1) 10px,
            rgba(0,0,0,0.1) 20px
        );
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 4px solid #000;
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 8px #000,
        8px 8px 0px #ff6b35,
        12px 12px 20px rgba(0,0,0,0.5);
    transform: rotate(1deg);
}

.leaderboard-section h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5em;
    color: #fff;
    text-shadow: 
        2px 2px 0px #000,
        4px 4px 0px #f7931e;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Leaderboard is always visible now - no controls needed */

.leaderboard-table {
    background: rgba(0,0,0,0.8);
    border: 4px solid #000;
    box-shadow: 
        inset 0 0 0 2px #fff,
        inset 0 0 0 6px #000,
        4px 4px 0px #000;
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 50px 1fr 60px 60px 50px 50px 60px 70px 80px 70px;
    gap: 8px;
    padding: 15px 10px;
    background: linear-gradient(45deg, #f7931e, #ff6b35);
    font-family: 'Bangers', cursive;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 1px 0px #000;
    border-bottom: 3px solid #000;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 60px 60px 50px 50px 60px 70px 80px 70px;
    gap: 8px;
    padding: 10px;
    font-family: 'Bangers', cursive;
    font-size: 13px;
    color: #fff;
    text-shadow: 1px 1px 0px #000;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255,107,53,0.2);
}

.leaderboard-row.top-three {
    background: linear-gradient(45deg, rgba(241,196,15,0.3), rgba(247,147,30,0.3));
}

.leaderboard-row.top-three:hover {
    background: linear-gradient(45deg, rgba(241,196,15,0.5), rgba(247,147,30,0.5));
}

.leaderboard-row .rank {
    font-size: 18px;
    text-align: center;
}

.leaderboard-row .fighter-name {
    font-weight: bold;
    color: #f7931e;
    text-shadow: 
        1px 1px 0px #000,
        2px 2px 0px rgba(247,147,30,0.5);
}

.leaderboard-row .total-wins {
    font-weight: bold;
    color: #f1c40f;
    text-align: center;
}

.leaderboard-row .total-losses {
    color: #e74c3c;
    text-align: center;
}

.leaderboard-row .knockouts {
    font-weight: bold;
    color: #ff6b35;
    text-align: center;
}

.leaderboard-row .knocked-out {
    color: #95a5a6;
    text-align: center;
}

.leaderboard-row .kdr {
    font-weight: bold;
    color: #9b59b6;
    text-align: center;
}

.leaderboard-row .damage {
    color: #e67e22;
    text-align: center;
    font-weight: bold;
}

.leaderboard-row .chair-kills {
    color: #8B4513;
    text-align: center;
    font-weight: bold;
}

.leaderboard-row .win-rate {
    color: #2ecc71;
    text-align: center;
    font-weight: bold;
}

.leaderboard-row span {
    text-align: center;
}

@media (max-width: 768px) {
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 30px 1fr 40px 40px 35px 35px 45px 50px 55px 50px;
        font-size: 10px;
        padding: 8px 5px;
        gap: 4px;
    }
    
    .leaderboard-controls {
        flex-direction: column;
    }
}

@keyframes attack {
    0% { 
        transform: translateX(0) scale(1); 
        filter: drop-shadow(0 0 5px rgba(255,107,53,0.5));
    }
    20% { 
        transform: translateX(20px) scale(1.05); 
        filter: drop-shadow(0 0 10px rgba(255,107,53,0.7));
    }
    50% { 
        transform: translateX(60px) scale(1.1); 
        filter: drop-shadow(0 0 20px rgba(255,107,53,1));
    }
    70% { 
        transform: translateX(40px) scale(1.05); 
        filter: drop-shadow(0 0 15px rgba(255,107,53,0.8));
    }
    100% { 
        transform: translateX(0) scale(1); 
        filter: drop-shadow(0 0 5px rgba(255,107,53,0.5));
    }
}

@keyframes punch {
    0% { transform: rotate(-10deg); }
    50% { transform: rotate(45deg) scale(1.2); }
    100% { transform: rotate(-10deg); }
}

@keyframes punch-left {
    0% { transform: rotate(10deg); }
    50% { transform: rotate(-45deg) scale(1.2); }
    100% { transform: rotate(10deg); }
}

@keyframes hit {
    0% { 
        transform: scale(1); 
        filter: brightness(1) contrast(1);
    }
    20% { 
        transform: scale(0.9) rotate(-15deg) translateX(-10px); 
        filter: brightness(2) contrast(2) hue-rotate(180deg);
    }
    40% { 
        transform: scale(0.95) rotate(10deg) translateX(5px); 
        filter: brightness(3) contrast(3) saturate(2);
    }
    60% { 
        transform: scale(0.92) rotate(-8deg) translateX(-3px); 
        filter: brightness(2.5) contrast(2.5);
    }
    80% { 
        transform: scale(0.98) rotate(3deg); 
        filter: brightness(1.5) contrast(1.5);
    }
    100% { 
        transform: scale(1); 
        filter: brightness(1) contrast(1);
    }
}

@keyframes stagger {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-15px) rotate(-10deg); }
    50% { transform: translateX(-25px) rotate(-15deg); }
    75% { transform: translateX(-10px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes block {
    0% { transform: scale(1); }
    50% { transform: scale(0.95) translateY(-5px); }
    100% { transform: scale(1); }
}

@keyframes robot-walk {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

@keyframes walking-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes leg-march {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

@keyframes arm-swing {
    0% { transform: rotate(-10deg); }
    50% { transform: rotate(20deg); }
    100% { transform: rotate(-10deg); }
}

@keyframes chairGlow {
    0% { 
        filter: drop-shadow(0 0 5px #FFD700);
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 15px #FFD700) drop-shadow(0 0 25px #FFA500);
        transform: scale(1.1);
    }
}

@keyframes chairSwing {
    0% { transform: rotate(-15deg) scale(1); }
    25% { transform: rotate(45deg) scale(1.2); }
    50% { transform: rotate(90deg) scale(1.3); }
    75% { transform: rotate(45deg) scale(1.2); }
    100% { transform: rotate(-15deg) scale(1); }
}

@keyframes victory {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 10px gold);
    }
    20% { 
        transform: scale(1.3) rotate(10deg); 
        filter: drop-shadow(0 0 20px gold) brightness(1.5);
    }
    40% { 
        transform: scale(1.1) rotate(-10deg); 
        filter: drop-shadow(0 0 30px gold) brightness(2);
    }
    60% { 
        transform: scale(1.4) rotate(15deg); 
        filter: drop-shadow(0 0 40px gold) brightness(1.8);
    }
    80% { 
        transform: scale(1.2) rotate(-5deg); 
        filter: drop-shadow(0 0 25px gold) brightness(1.3);
    }
    100% { 
        transform: scale(1.1) rotate(0deg); 
        filter: drop-shadow(0 0 15px gold) brightness(1.2);
    }
}

@keyframes comicPop {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px) rotate(-1deg); }
    20% { transform: translateX(5px) rotate(1deg); }
    30% { transform: translateX(-5px) rotate(-1deg); }
    40% { transform: translateX(5px) rotate(1deg); }
    50% { transform: translateX(-5px) rotate(-1deg); }
    60% { transform: translateX(5px) rotate(1deg); }
    70% { transform: translateX(-5px) rotate(-1deg); }
    80% { transform: translateX(5px) rotate(1deg); }
    90% { transform: translateX(-5px) rotate(-1deg); }
}

.attacking {
    animation: attack 0.8s ease-in-out;
}

.attacking .robot-arm-right {
    animation: punch 0.8s ease-in-out;
}

.attacking .robot-arm-left {
    animation: punch-left 0.8s ease-in-out;
}

.attacking .robot-leg-left,
.attacking .robot-leg-right {
    animation: robot-walk 0.8s ease-in-out;
}

.hit {
    animation: hit 0.6s ease-in-out;
}

.hit .robot-container {
    animation: stagger 0.6s ease-in-out;
}

.blocking {
    animation: block 0.4s ease-in-out;
}

.winner-robot {
    animation: victory 2s ease-in-out infinite;
}

.winner-robot .robot-arm-left,
.winner-robot .robot-arm-right {
    animation: punch 1s ease-in-out infinite alternate;
}

.walking {
    animation: walking-bounce 0.6s ease-in-out infinite;
}

.walking .robot-leg-left {
    animation: leg-march 0.6s ease-in-out infinite;
}

.walking .robot-leg-right {
    animation: leg-march 0.6s ease-in-out infinite reverse;
}

.walking .robot-arm-left {
    animation: arm-swing 0.6s ease-in-out infinite;
}

.walking .robot-arm-right {
    animation: arm-swing 0.6s ease-in-out infinite reverse;
}

.chair-indicator {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 20px;
    z-index: 100;
}

.folding-chair {
    position: absolute;
    top: 10px;
    right: -25px;
    font-size: 24px;
    z-index: 50;
    transform: rotate(-15deg);
    filter: drop-shadow(2px 2px 0px #000);
    transition: all 0.3s ease;
}

.attacking .folding-chair {
    animation: chairSwing 0.8s ease-in-out;
}

/* Fast Forward Mode Styles */
.fast-forward .robot.attacking {
    animation-duration: 0.3s !important;
}

.fast-forward .robot.hit {
    animation-duration: 0.2s !important;
}

.fast-forward .robot.blocking {
    animation-duration: 0.2s !important;
}

.fast-forward .robot-arm {
    animation-duration: 0.3s !important;
}

.fast-forward .robot-leg {
    animation-duration: 0.3s !important;
}

.fast-forward .robot-container {
    animation-duration: 0.2s !important;
}

.fast-forward .comic-effect {
    animation-duration: 0.4s !important;
}

#fastForwardBtn {
    position: relative;
    overflow: hidden;
}

#fastForwardBtn::before {
    content: '';
    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;
}

#fastForwardBtn:hover::before {
    left: 100%;
}

.results-display {
    text-align: center;
    font-size: 1.4em;
    font-family: 'Bangers', cursive;
}

.champion {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 
        4px 4px 0px #000,
        8px 8px 0px #f1c40f,
        12px 12px 20px rgba(241,196,15,0.8);
    margin: 30px 0;
    font-family: 'Bungee', cursive;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: victory 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    .battle-options {
        flex-direction: column;
    }
    
    .arena {
        height: 300px;
    }
    
    .robot {
        width: 60px;
        height: 80px;
    }
    
    .robot-body {
        width: 45px;
        height: 60px;
    }
}