body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: linear-gradient(to bottom, #000033, #000066);
    font-family: 'MS Gothic', monospace;
    color: #00ff00;
}

#gameContainer {
    text-align: center;
    margin: 40px auto 0;
    max-width: 960px;
    width: 100%;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

canvas {
    border: 3px solid #00ff00;
    background: #000;
    display: block;
    margin: 20px auto;
    box-shadow: 0 0 20px #00ff00;
}

#ui {
    margin: 20px 0;
    font-size: 18px;
}

.phase {
    display: none;
    margin: 20px 0;
}

.phase.active {
    display: block;
}

button {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'MS Gothic', monospace;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 0 10px #00ff00;
    transition: all 0.3s;
}

button:hover {
    background: #00ffff;
    box-shadow: 0 0 20px #00ffff;
}

button:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.speed-btn {
    padding: 10px 20px;
    font-size: 16px;
}

.speed-btn.active {
    background: #00ffff;
    box-shadow: 0 0 20px #00ffff;
}

.info {
    margin: 10px 0;
    font-size: 16px;
}

.invader-details {
    font-size: 12px;
}

.ui-spacing {
    margin-left: 40px;
}

.speed-controls {
    margin-top: 10px;
}

.invader-type {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    border: 2px solid #00ff00;
    cursor: pointer;
    transition: all 0.3s;
}

.invader-type:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px #00ff00;
}

.invader-type.selected {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 20px #00ff00;
}

#title {
    font-size: 48px;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.game-over {
    font-size: 36px;
    text-shadow: 0 0 15px #ff0000;
    animation: blink 1s infinite;
}

.victory {
    font-size: 36px;
    text-shadow: 0 0 15px #ffff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.3;
    }
}

.site-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px #00ff00;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ff00;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-brand:hover {
    color: #00ffff;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00ff00;
    object-fit: cover;
}

.site-subtitle {
    margin: 0;
    font-size: 18px;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 14px 28px;
    font-size: 16px;
    font-family: 'MS Gothic', monospace;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
    min-width: 220px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
