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

body {
    background-color: #030206;
    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(236, 72, 153, 0.4), inset 0 0 15px rgba(250, 204, 21, 0.2);
    border: 3px solid #831843;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: default;
}

.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.15) 50%),
                radial-gradient(circle, transparent 75%, rgba(0,0,0,0.35) 100%);
    background-size: 100% 6px, 100% 100%;
    opacity: 0.25;
    z-index: 10;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 2, 10, 0.9);
    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(24, 9, 26, 0.95);
    border: 3px solid #ec4899;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6), inset 0 0 15px rgba(250, 204, 21, 0.2);
    border-radius: 8px;
}

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

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

.briefing {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(236, 72, 153, 0.4);
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #fce7f3;
    margin-bottom: 16px;
}

.rules-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 24px;
    text-align: left;
}

.arcade-btn {
    background: #facc15;
    color: #000;
    border: none;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(250, 204, 21, 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);
}
