:root {
    --primary-color: #e74c3c;
    /* Sword-like Red */
    --accent-color: #f1c40f;
    --bg-color: #1a1a1a;
    --border-glow: 0 0 10px rgba(231, 76, 60, 0.5);
}

body,
html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    user-select: none;
}

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

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

.top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    font-weight: 800;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    width: 80px;
}

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

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

#hp-bar {
    background: var(--primary-color);
}

#stamina-bar {
    background: var(--accent-color);
}

.top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

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

#weapon-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

#hotbar {
    display: flex;
    gap: 15px;
}

.slot {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border-radius: 8px;
    transition: 0.2s;
    position: relative;
}

.slot.active {
    border-color: var(--primary-color);
    box-shadow: var(--border-glow);
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.slot::after {
    content: attr(title);
    position: absolute;
    bottom: -20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

/* Damage Vignette */
#damage-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(255, 0, 0, 0);
    transition: 0.3s;
    z-index: 5;
}

#damage-vignette.hit {
    box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.6);
}

/* Menus */
.menu-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.menu-content {
    text-align: center;
    background: rgba(30, 30, 30, 0.9);
    padding: 60px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(231, 76, 60, 0.3);
    color: white;
}

h1.glitch {
    font-size: 5rem;
    margin: 0;
    letter-spacing: 5px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}

.subtitle {
    letter-spacing: 8px;
    font-size: 0.8rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.4);
}

.briefing {
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}