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

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: ui-monospace, monospace;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #00d4ff;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 15px;
    max-width: 100%;
}

h1 {
    font-size: clamp(18px, 4vw, 32px);
    margin-bottom: 10px;
    color: #00d4ff;
    text-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
    letter-spacing: 3px;
}

.header {
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: bold;
}

.stat {
    text-shadow: 0 0 10px currentColor;
}

#gameCanvas {
    background: linear-gradient(180deg, #050510 0%, #0a0a2a 50%, #0f0f3f 100%);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.instructions {
    margin-top: 15px;
    color: #6aa;
    font-size: clamp(10px, 2vw, 14px);
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 16, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.overlay h2 {
    font-size: clamp(28px, 6vw, 48px);
    color: #00d4ff;
    margin-bottom: 25px;
    text-shadow: 0 0 30px #00d4ff;
    letter-spacing: 4px;
    line-height: 1.2;
}

.overlay p {
    font-size: clamp(14px, 3vw, 18px);
    margin: 10px 0;
    color: #8ac;
}

.overlay button {
    margin-top: 25px;
    padding: 15px 50px;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: bold;
    font-family: inherit;
    color: #0a0a1a;
    background: linear-gradient(180deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.overlay button:hover {
    background: linear-gradient(180deg, #33e0ff 0%, #00d4ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 35px rgba(0, 212, 255, 0.7);
}

.hidden { display: none !important; }

/* Starfield effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, white, transparent),
        radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 30%, white, transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 90% 80%, white, transparent),
        radial-gradient(2px 2px at 20% 70%, rgba(255,255,255,0.7), transparent);
    background-size: 200px 200px;
    animation: starScroll 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes starScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(200px); }
}
