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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: white;
}

#game-container {
    position: relative;
    background: linear-gradient(180deg, #87CEEB 0%, #98FB98 30%, #228B22 100%);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
}

#energy-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#energy-icon {
    font-size: 30px;
    animation: pulse 1s ease-in-out infinite;
}

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

#wave-display {
    font-size: 20px;
    color: #FF6B6B;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#music-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#music-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#music-toggle.muted {
    opacity: 0.5;
}

#pokemon-selector {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(139, 69, 19, 0.8);
    border-radius: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.pokemon-card {
    width: 80px;
    height: 100px;
    background: linear-gradient(145deg, #f0f0f0, #c0c0c0);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #888;
    position: relative;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pokemon-card.selected {
    border-color: #FFD700;
    box-shadow: 0 0 20px #FFD700;
    transform: scale(1.05);
}

.pokemon-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.pokemon-icon {
    font-size: 35px;
    margin-bottom: 5px;
}

.pokemon-name {
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

.pokemon-cost {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pokemon-cost::before {
    content: '⚡';
    font-size: 10px;
}

#game-canvas {
    display: block;
    border-radius: 10px;
    cursor: crosshair;
}

#game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 100;
}

#game-overlay.hidden {
    display: none;
}

#overlay-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #FFD700;
}

#overlay-title {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

#overlay-message {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

#start-button {
    padding: 15px 50px;
    font-size: 20px;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

#start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

#instructions {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 800px;
}

#instructions h3 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

#instructions ul {
    list-style: none;
    margin-bottom: 15px;
}

#instructions li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#instructions p {
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

/* Pokemon specific colors */
.pokemon-card[data-pokemon="pikachu"] {
    background: linear-gradient(145deg, #FFE135, #F5C71A);
}

.pokemon-card[data-pokemon="bulbasaur"] {
    background: linear-gradient(145deg, #78C850, #5CA935);
}

.pokemon-card[data-pokemon="charmander"] {
    background: linear-gradient(145deg, #F08030, #DD6610);
}

.pokemon-card[data-pokemon="squirtle"] {
    background: linear-gradient(145deg, #6890F0, #4F7BE8);
}

.pokemon-card[data-pokemon="snorlax"] {
    background: linear-gradient(145deg, #A8A878, #8A8A5C);
}

.pokemon-card[data-pokemon="machinegun"] {
    background: linear-gradient(145deg, #606060, #404040);
}

.pokemon-card[data-pokemon="machinegun"] .pokemon-name {
    color: #fff;
}

.pokemon-card[data-pokemon="machinegun"] .pokemon-cost {
    color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
    #game-container {
        transform: scale(0.8);
        transform-origin: top center;
    }

    .pokemon-card {
        width: 65px;
        height: 85px;
    }

    .pokemon-icon {
        font-size: 28px;
    }

    .pokemon-name {
        font-size: 9px;
    }
}
