/* Commando - Retro Military Arcade Theme */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

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

body {
    background-color: #0a0a0a;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(20, 30, 20, 0.8) 0%, transparent 60%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 20, 0, 0.03) 2px,
            rgba(0, 20, 0, 0.03) 4px
        );
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    color: #88aa88;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

h1 {
    font-family: 'Press Start 2P', 'Share Tech Mono', monospace;
    color: #cc4400;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow:
        0 0 10px rgba(204, 68, 0, 0.6),
        0 0 20px rgba(204, 68, 0, 0.3),
        2px 2px 0 #1a0800;
    text-align: center;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.canvas-container {
    position: relative;
    border: 2px solid #334433;
    box-shadow:
        0 0 15px rgba(0, 40, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 20, 0, 0.2);
    background: #000;
}

/* Scanline overlay effect */
.canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    z-index: 10;
}

/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
#canvas {
    display: block;
    border: 0px none;
    padding: 0;
    margin: 0;
    visibility: hidden;
}

#loadingCanvas {
    display: block;
    border: 0px none;
    padding: 0;
    margin: 0;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 800px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #334433;
    border-top: none;
    font-size: 11px;
    color: #556655;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #44aa44;
    box-shadow: 0 0 4px rgba(68, 170, 68, 0.6);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

button, .btn {
    font-family: 'Share Tech Mono', monospace;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #88aa88;
    border: 1px solid #446644;
    padding: 6px 16px;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease;
}

button:hover, .btn:hover {
    background: linear-gradient(180deg, #3a3a2a 0%, #2a2a1a 100%);
    color: #cc4400;
    border-color: #cc4400;
    box-shadow: 0 0 8px rgba(204, 68, 0, 0.3);
}

button:active, .btn:active {
    background: #111;
    transform: translateY(1px);
}

footer {
    margin-top: 12px;
    font-size: 10px;
    color: #334433;
    text-align: center;
}

footer a {
    color: #556655;
    text-decoration: none;
    border-bottom: 1px solid #334433;
    transition: color 0.15s;
}

footer a:link { color: #556655; }
footer a:visited { color: #445544; }
footer a:hover {
    color: #cc4400;
    border-color: #cc4400;
}
