@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', monospace;
    color: #00ff00;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1;
}

.game-container {
    background: #0a0a0f;
    border: 4px solid #00ff00;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #111122;
    border: 2px solid #00ff00;
    border-radius: 8px;
}

h1 {
    font-size: 24px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
    to { text-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.5); }
}

.score-container, .timer-container, .high-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score-label {
    font-size: 10px;
    color: #00aa00;
}

#score, #timer, #highScore {
    font-size: 16px;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.game-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#gameCanvas {
    border: 3px solid #00ff00;
    background: #000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.start-screen, .game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border: 3px solid #00ff00;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.3);
}

.start-text, .game-over-text {
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.start-text h2, .game-over-text h2 {
    font-size: 20px;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 1);
}

.start-text p, .game-over-text p {
    font-size: 10px;
    color: #00aa00;
    margin: 10px 0;
    line-height: 1.6;
}

.controls {
    text-align: center;
    padding: 15px;
    background: #111122;
    border: 2px solid #00ff00;
    border-radius: 8px;
}

.control-info p {
    font-size: 10px;
    color: #00aa00;
    margin: 8px 0;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Scanline effect for retro monitor feel */
#gameCanvas::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
}

/* Arena selection styles */
.arena-selection {
    margin: 20px 0;
    text-align: center;
}

.arena-selection p {
    font-size: 12px;
    color: #00ff00;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.arena-hint {
    font-size: 10px !important;
    color: #00aa00 !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.6) !important;
}

.arena-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.arena-btn {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 12px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.arena-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.arena-btn.active {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.8),
        inset 0 0 10px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

/* Pixelated border decoration */
.game-container::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: repeating-linear-gradient(
        45deg,
        #00ff00,
        #00ff00 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}
