:root {
    --primary: #eb4d4b;
    --secondary: #6ab04c;
    --accent: #f0932b;
    --dark: #130f40;
    --light: #f9ca24;
    --glass: rgba(255, 255, 255, 0.1);
}

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

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

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

/* --- HUD --- */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 30px;
    z-index: 10;
}

.hud-top {
    display: flex;
    justify-content: space-between;
}

.stat-badge {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stamina-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    text-align: center;
}

.stamina-label {
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.stamina-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0932b, #ffbe76);
    box-shadow: 0 0 15px rgba(240, 147, 43, 0.5);
    transition: width 0.1s linear;
}

#alert-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(235, 77, 75, 0.5);
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}

/* --- SCREENS --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 15, 64, 0.7);
    /* Deep dark blue, semi-transparent */
    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;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.glow-text {
    font-size: 3rem;
    background: linear-gradient(to bottom, #eb4d4b, #ff7979);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
    background: #f1f2f6;
    padding: 25px;
    border-radius: 20px;
}

.tuto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tuto-key {
    background: var(--dark);
    color: white;
    padding: 2px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.2rem;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.6rem;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(235, 77, 75, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(235, 77, 75, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(235, 77, 75, 0);
    }
}

.secondary-btn {
    background: #636e72;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}

.big-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

/* --- MINIMAP --- */
#minimap-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid var(--glass);
    z-index: 5;
}

.minimap-title {
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 5px;
    color: var(--secondary);
}

#minimap {
    width: 200px;
    height: 200px;
    background: #111;
}

.hidden {
    display: none !important;
}