:root {
    --primary: #00cec9;
    --danger: #ff7675;
    --accent: #fdcb6e;
    --bg: #dfe6e9;
    --glass: rgba(255, 255, 255, 0.4);
}

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

body {
    background-color: var(--bg);
    color: #2d3436;
    font-family: 'Outfit', 'Jua', sans-serif;
    overflow: hidden;
}

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

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

/* --- HUD --- */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chaos-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.chaos-label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #636e72;
}

.chaos-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.chaos-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #fdcb6e, #e17055, #d63031);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#msg {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
}

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

.menu-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.glow-text {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.controls-guide {
    background: #f1f2f6;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
}

.guide-item {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.guide-item span {
    background: #2d3436;
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.4rem;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.primary-btn:hover {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.win-card {
    border-top: 10px solid #55efc4;
}