* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: #030208;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: 4 / 3;
    background: #000;
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.4), inset 0 0 15px rgba(0, 255, 255, 0.2);
    border: 3px solid #1e1b4b;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    cursor: crosshair;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
                radial-gradient(circle, transparent 60%, rgba(0,0,0,0.7) 100%);
    background-size: 100% 4px, 100% 100%;
    z-index: 10;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 5;
    font-weight: 900;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0,0,0,0.9);
}

.hud-left, .hud-center, .hud-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#score-display { color: #39ff14; font-size: 16px; }
#combo-display { color: #facc15; font-size: 13px; }
#sector-display { color: #00ffff; font-size: 14px; }
#target-display { color: #f43f5e; font-size: 12px; }
#timer-display { color: #e2e8f0; font-size: 15px; }
#boost-display { color: #b026ff; font-size: 13px; }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 2, 12, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.overlay-box {
    text-align: center;
    max-width: 580px;
    padding: 30px;
    background: rgba(15, 10, 30, 0.95);
    border: 3px solid #b026ff;
    box-shadow: 0 0 25px rgba(176, 38, 255, 0.6), inset 0 0 15px rgba(57, 255, 20, 0.2);
    border-radius: 8px;
}

.glitch-title {
    font-size: 42px;
    font-weight: 900;
    color: #facc15;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.8), 2px 2px #ef4444;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 15px;
    font-weight: 900;
    color: #00ffff;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.briefing {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.controls-guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 24px;
}

kbd {
    background: #1e1b4b;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.arcade-btn {
    background: #39ff14;
    color: #000;
    border: none;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    transition: all 0.2s ease;
}

.arcade-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}
