:root {
    --health: #e74c3c;
    --hunger: #f39c12;
    --fuel: #e67e22;
    --accent: #2ecc71;
    --bg-glass: rgba(0, 0, 0, 0.7);
    --border: rgba(255, 255, 255, 0.1);
}

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

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

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

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

.hud-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day-counter {
    font-family: 'Creepster', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    margin-bottom: 10px;
}

.time-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

#time-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    transition: width 0.1s linear;
}

.hud-bottom {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-group {
    width: 250px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.stat-bar-bg {
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.stat-bar {
    height: 100%;
    width: 100%;
    transition: width 0.3s ease-out;
}

.health {
    background: var(--health);
    box-shadow: 0 0 10px var(--health);
}

.hunger {
    background: var(--hunger);
    box-shadow: 0 0 10px var(--hunger);
}

.fuel {
    background: var(--fuel);
    box-shadow: 0 0 10px var(--fuel);
}

/* --- SCREENS --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.menu-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.title {
    font-family: 'Creepster', cursive;
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 0;
    line-height: 1;
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 10px;
    opacity: 0.6;
    margin-bottom: 40px;
}

.story {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #ccc;
    font-style: italic;
}

.controls-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 20px;
}

.ctrl {
    font-size: 0.9rem;
    font-weight: 700;
}

.ctrl span {
    background: #fff;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.main-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* --- OVERLAYS --- */
.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#interaction-prompt {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}