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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

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

/* Player Setup Styles */
.player-setup {
    text-align: center;
    margin-bottom: 40px;
}

.player-setup h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.name-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.name-input {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.name-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.name-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.start-btn {
    background: linear-gradient(145deg, #4ecdc4, #45b7d1);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #5eddd4, #55c7e1);
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-setup {
    text-align: center;
    margin-bottom: 40px;
}

.game-setup h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.player-info-display {
    margin-bottom: 30px;
}

.player-name-display {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-block;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.role-btn {
    background: linear-gradient(145deg, #2a5298, #1e3c72);
    border: none;
    border-radius: 20px;
    padding: 30px 40px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.role-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #3a62a8, #2e4c82);
}

.role-btn .icon {
    font-size: 3rem;
}

.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

.score-item {
    text-align: center;
    min-width: 120px;
}

.score-item .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.score-item .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
}

.field {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.goal {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: linear-gradient(to bottom, #2d5016, #1a3d0f);
    border-radius: 20px 20px 0 0;
    border: 5px solid #8b4513;
    overflow: hidden;
}

.goal-post {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 20px 20px 0 0;
}

.goal-area {
    display: flex;
    height: 100%;
    padding-top: 20px;
}

.zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.zone:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.zone.highlight {
    background: rgba(255,255,255,0.2);
    border-color: #4ecdc4;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.zone-label {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transform: rotate(-90deg);
}

.player-info {
    text-align: center;
    margin: 20px 0;
}

.current-role {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

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

.role-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.action-area {
    text-align: center;
    margin: 20px 0;
}

.instructions {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.choice-btn {
    background: linear-gradient(145deg, #4ecdc4, #45b7d1);
    border: none;
    border-radius: 15px;
    padding: 20px 30px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #5eddd4, #55c7e1);
}

.choice-btn:active {
    transform: translateY(-1px);
}

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

.result-display {
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin: 20px 0;
}

.result-content {
    margin-bottom: 20px;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.result-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-details {
    font-size: 1.1rem;
    opacity: 0.8;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.next-btn, .end-game-btn, .reset-btn {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.next-btn:hover, .end-game-btn:hover, .reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #ff7b7b, #ff6a62);
}

.end-game-btn {
    background: linear-gradient(145deg, #f39c12, #e67e22);
}

.end-game-btn:hover {
    background: linear-gradient(145deg, #f4ac12, #f39c12);
}

.reset-btn {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
}

.reset-btn:hover {
    background: linear-gradient(145deg, #a5b5b6, #8f9c9d);
}

/* Leaderboard Styles */
.leaderboard-section {
    margin-top: 40px;
    text-align: center;
}

.leaderboard-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.leaderboard {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.leaderboard-entry.top-3 {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-entry.top-3:nth-child(1) {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
}

.leaderboard-entry.top-3:nth-child(2) {
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.3), rgba(169, 169, 169, 0.2));
    border-color: rgba(192, 192, 192, 0.5);
}

.leaderboard-entry.top-3:nth-child(3) {
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.3), rgba(184, 115, 51, 0.2));
    border-color: rgba(205, 127, 50, 0.5);
}

.rank {
    font-size: 1.5rem;
    font-weight: 900;
    min-width: 50px;
    text-align: center;
}

.rank.gold { color: #ffd700; }
.rank.silver { color: #c0c0c0; }
.rank.bronze { color: #cd7f32; }

.player-info-leaderboard {
    flex: 1;
    text-align: left;
    margin-left: 20px;
}

.player-name-leaderboard {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.player-stats {
    font-size: 0.9rem;
    opacity: 0.8;
}

.score-leaderboard {
    font-size: 2rem;
    font-weight: 900;
    color: #4ecdc4;
    min-width: 80px;
    text-align: center;
}

.no-scores {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
    padding: 40px;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .name-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .name-input {
        min-width: 200px;
    }
    
    .role-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .role-btn {
        width: 200px;
    }
    
    .score-board {
        flex-direction: column;
        gap: 15px;
    }
    
    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .choice-btn {
        width: 200px;
    }
    
    .goal {
        height: 200px;
    }
    
    .zone-label {
        font-size: 1rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .leaderboard-entry {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .player-info-leaderboard {
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .player-setup h2,
    .game-setup h2,
    .leaderboard-section h2 {
        font-size: 1.5rem;
    }
    
    .instructions {
        font-size: 1.2rem;
    }
    
    .name-input {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .start-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
} 