:root {
    --danger: #ff4757;
    --warning: #ffa502;
    --safe: #2ed573;
    --dark: #1e272e;
    --glass: rgba(0, 0, 0, 0.6);
}

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

body {
    background-color: #000;
    color: white;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: difference;
}

/* --- HUD --- */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
}

.top-bar {
    display: flex;
    justify-content: center;
}

.disaster-warning {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    border-radius: 15px;
    border: 2px solid var(--danger);
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.3);
    min-width: 300px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: var(--danger);
    }

    50% {
        border-color: white;
    }

    100% {
        border-color: var(--danger);
    }
}

#disaster-name {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.8rem;
    display: block;
    margin: 5px 0;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 10px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--danger);
}

.bottom-hud {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hud-group {
    width: 300px;
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.health-bar {
    width: 100%;
    height: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.hp-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    transition: width 0.3s;
}

.stat-badge {
    background: var(--glass);
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
}

.status-tip {
    position: absolute;
    bottom: 120px;
    left: 40px;
    padding: 8px 15px;
    background: var(--danger);
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-tip.safe {
    background: var(--safe);
}

/* --- SCREENS --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.menu-card {
    background: white;
    color: var(--dark);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    max-width: 600px;
}

.glow-text {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--danger);
}

.tutorial {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    background: #f1f2f6;
    padding: 25px;
    border-radius: 20px;
}

.tutorial .item {
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
}

.tutorial span {
    background: var(--dark);
    color: white;
    padding: 2px 10px;
    border-radius: 5px;
}

.main-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 1.8rem;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Black Han Sans', sans-serif;
}

.main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
}

.hidden {
    display: none !important;
}