* { 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: system-ui, sans-serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #e94560;
    overflow: hidden;
}

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

h1 {
    font-size: clamp(18px, 4vw, 32px);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.8), 0 0 40px rgba(233, 69, 96, 0.4);
    color: #e94560;
    letter-spacing: 2px;
}

.header {
    margin-bottom: 15px;
}

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

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

#gameCanvas {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    border: 3px solid #e94560;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.4), inset 0 0 60px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.instructions {
    margin-top: 15px;
    color: #8b7aa8;
    font-size: clamp(10px, 2vw, 14px);
    opacity: 0.9;
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 26, 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: #e94560;
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.8);
    letter-spacing: 3px;
    line-height: 1.2;
}

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

.overlay button {
    margin-top: 25px;
    padding: 15px 50px;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: bold;
    color: #1a0a2e;
    background: linear-gradient(180deg, #e94560 0%, #c73e54 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(233, 69, 96, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.overlay button:hover {
    background: linear-gradient(180deg, #ff6b8a 0%, #e94560 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 35px rgba(233, 69, 96, 0.7);
}

.hidden { display: none !important; }

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
