@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Urbanist:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #060d1a 0%, #0a1628 50%, #040810 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Urbanist', 'Segoe UI', sans-serif;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 32px;
    padding: 28px 24px 36px;
    text-align: center;
    max-width: 680px;
    width: 100%;
    border: 1px solid rgba(0, 247, 255, 0.18);
    box-shadow:
        0 0 0 0.5px rgba(0, 247, 255, 0.08) inset,
        0 32px 64px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(0, 120, 150, 0.12);
    position: relative;
    overflow: hidden;
}

/* Top glow line */
.game-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.5), transparent);
}

/* Ambient orb */
.game-container::after {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(0, 180, 220, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    letter-spacing: 3px;
    background: linear-gradient(135deg, #00f7ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    font-weight: 700;
}

.sub {
    color: rgba(160, 220, 240, 0.7);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 22px;
    font-weight: 500;
}

/* Stats: grid instead of flex for better responsiveness */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 247, 255, 0.12);
    border-radius: 16px;
    padding: 12px 8px;
    transition: border-color 0.2s;
}

.stat-box:hover {
    border-color: rgba(0, 247, 255, 0.3);
}

.stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(130, 180, 220, 0.7);
    margin-bottom: 4px;
}

.stat-value {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #00f7ff, #44aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.play-area {
    position: relative;
    background: rgba(0, 10, 20, 0.6);
    border-radius: 22px;
    height: 300px;
    margin: 14px 0;
    overflow: hidden;
    border: 1px solid rgba(0, 247, 255, 0.12);
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Subtle inner glow on play area */
.play-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 120, 180, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.target {
    position: absolute;
    width: 66px;
    height: 66px;
    background: conic-gradient(from 135deg, #ffcc00, #ff8800, #ff4400, #ffcc00);
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 0 20px rgba(255, 150, 0, 0.45),
        0 0 40px rgba(255, 100, 0, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, box-shadow 0.08s;
    outline: 2px solid rgba(255, 200, 50, 0.25);
    outline-offset: 3px;
}

.target:active {
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 10px rgba(255, 150, 0, 0.3);
}

.target.disabled {
    opacity: 0.35;
    pointer-events: none;
}

button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 220, 0.12);
    border: 1px solid rgba(0, 247, 255, 0.35);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 100px;
    margin-top: 16px;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    color: #00f7ff;
    letter-spacing: 2px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

button:hover {
    background: rgba(0, 247, 255, 0.18);
    box-shadow: 0 0 24px rgba(0, 247, 255, 0.25);
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.97) translateY(0);
}

.result-screen {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.result-screen h3 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: rgba(255, 220, 100, 0.85);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.final-score {
    font-size: clamp(2.8rem, 8vw, 4rem);
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #00f7ff, #0060ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.instruction {
    font-size: 0.75rem;
    color: rgba(100, 160, 200, 0.5);
    margin-top: 18px;
    letter-spacing: 1px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .game-container {
        border-radius: 24px;
        padding: 20px 16px 28px;
    }

    .stats {
        gap: 8px;
    }

    .stat-box {
        border-radius: 12px;
        padding: 10px 6px;
    }

    .play-area {
        height: 240px;
        border-radius: 16px;
    }

    .target {
        width: 54px;
        height: 54px;
    }

    button {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
}