@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&family=Syncopate:wght@700&display=swap');

:root {
    --cyan: #00ffff;
    --magenta: #ff00ff;
    --bg: #02020a;
}

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

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    background: rgba(2, 2, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.back-btn {
    color: #8b8b99;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.game-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.header-right {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 1px;
}

#game-container {
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: fixed;
    top: 80px;
    left: 24px;
    pointer-events: none;
}

.stat-box {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--cyan);
}

#start-screen, #game-over-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(2, 2, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    text-align: center;
    transition: opacity 0.5s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.ai-target-msg {
    font-size: 1rem;
    color: #8b8b99;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

button:hover {
    background: var(--cyan);
    color: black;
    box-shadow: 0 0 30px var(--cyan);
    transform: scale(1.05);
}

#best-score-label {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 1px;
}
