:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    color: #fff8e7;
    background: #0d0f14;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

[hidden] {
    display: none !important;
}

#hud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    text-shadow: 0 2px 5px #000;
}

.vitals {
    position: absolute;
    top: 26px;
    left: 28px;
    width: min(330px, 44vw);
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    color: #d8bd7b;
    margin-bottom: 16px;
}

label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 9px;
}

.bar {
    height: 10px;
    margin-top: 5px;
    background: #080a10dc;
    border: 1px solid #ffffff25;
    overflow: hidden;
}

.bar>div {
    height: 100%;
    width: 100%;
}

.health {
    background: linear-gradient(90deg, #81273b, #ff4564);
}

.stamina {
    background: linear-gradient(90deg, #487b69, #9fde9c);
}

#resources {
    font-size: 12px;
    color: #e3d3a6;
}

.bottom {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 112px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #d8bd7b;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 28px;
    font-size: 11px;
    line-height: 1.8;
    color: #abb5c9;
}

#bossHud {
    position: absolute;
    bottom: 155px;
    left: 20%;
    width: 60%;
    text-align: center;
    font-family: Georgia, serif;
    letter-spacing: 3px;
}

.boss-bar {
    height: 14px;
    margin-top: 12px;
}

#toast {
    position: absolute;
    top: 25%;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #ffe4a0;
    font-family: Georgia, serif;
    font-size: clamp(20px, 3vw, 38px);
    letter-spacing: 3px;
    opacity: 0;
    transition: opacity 160ms;
}

#hint {
    position: absolute;
    bottom: 220px;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #fff2cf;
}

#reticle {
    position: absolute;
    font-size: 42px;
    line-height: 1;
    transform: translate(-50%, -50%);
    color: #ffd700;
}

#menu {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #05070dd9;
    backdrop-filter: blur(9px);
}

.panel {
    width: min(660px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #1a2238, #0d0f14);
    border: 1px solid #ae925b80;
    padding: clamp(22px, 4vw, 44px);
    box-shadow: 0 25px 100px #000a;
}

h1,
h2 {
    font-family: Georgia, serif;
    font-weight: normal;
    letter-spacing: 3px;
    color: #ffe1a0;
}

h1 {
    font-size: clamp(26px, 5vw, 44px);
}

p {
    line-height: 1.65;
    color: #bcc6d8;
}

button,
select {
    font: inherit;
    color: #fff1cf;
    background: #151b29;
    border: 1px solid #897447;
    padding: 10px 14px;
}

button {
    cursor: pointer;
    margin: 5px 5px 5px 0;
}

button:hover {
    background: #38415a;
}

button:disabled {
    opacity: .4;
    cursor: default;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #ffffff12;
}

.small {
    font-size: 12px;
}