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

body {
    background-color: #010204;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
    border: 1px solid #080c14;
}

canvas {
    display: block;
    background: #020305;
}

#ui-overlay {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.stat-cluster {
    display: flex;
    gap: 10px;
}

.stat-box {
    background: rgba(2, 3, 5, 0.96);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid #0d1220;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.cyan-glow { color: #00f3ff !important; text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); }
.alert-glow { color: #ff3366 !important; text-shadow: 0 0 10px rgba(255, 51, 102, 0.4); }
.gold-glow { color: #ffb800 !important; text-shadow: 0 0 10px rgba(255, 184, 0, 0.4); }

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 2, 3, 0.99);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    z-index: 10;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.title-brand {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #00f3ff;
    margin-bottom: 12px;
}

p {
    color: #515e78;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.9rem;
    max-width: 500px;
}

button {
    background: transparent;
    border: 2px solid #00f3ff;
    color: #00f3ff;
    padding: 12px 35px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

button:hover {
    background: #00f3ff;
    color: #010204;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

#game-over-screen button {
    border-color: #ff3366;
    color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.1);
}
#game-over-screen button:hover {
    background: #ff3366;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.4);
}