* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #080a0d; color: #b6afa0; font-family: Georgia, "Times New Roman", serif; }
canvas#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: none; }
.hidden { display: none !important; }

#hud { position: fixed; inset: 0; pointer-events: none; }
#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 15px; letter-spacing: 0.06em; color: #b6afa0; opacity: 0; transition: opacity 0.25s; text-shadow: 0 0 6px #000; }
#prompt.on { opacity: 0.85; }
#prompt b { display: inline-block; border: 1px solid #747b7f; padding: 0 6px; margin-right: 6px; font-family: monospace; font-weight: normal; }
#say { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); font-style: italic; font-size: 17px; opacity: 0; transition: opacity 0.6s; text-shadow: 0 0 8px #000; }
#say.on { opacity: 0.9; }
#stamina { position: absolute; left: 50%; bottom: 34px; width: 160px; height: 2px; transform: translateX(-50%); background: rgba(116, 123, 127, 0.25); opacity: 0; transition: opacity 0.6s; }
#stamina-fill { height: 100%; width: 100%; background: #b6afa0; }
#stamina.winded #stamina-fill { background: #8d2929; }
#fps { position: absolute; right: 10px; top: 8px; font: 12px monospace; color: #747b7f; }

.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(8, 10, 13, 0.55), rgba(8, 10, 13, 0.97)); padding: 16px; }
.card { width: min(440px, 100%); text-align: center; }
.display { display: inline-block; font: bold 44px "Courier New", monospace; color: #ff3b24; text-shadow: 0 0 12px rgba(255, 50, 30, 0.6); background: #070505; padding: 2px 18px; border: 1px solid #292d30; margin-bottom: 18px; animation: hum 3.2s infinite; }
@keyframes hum { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.3; } 95% { opacity: 0.85; } 96% { opacity: 0.2; } }
h1 { font-weight: normal; letter-spacing: 0.4em; font-size: 30px; color: #c9c2b4; margin-bottom: 8px; }
h2 { font-weight: normal; letter-spacing: 0.3em; font-size: 20px; margin-bottom: 18px; }
.tag { font-style: italic; color: #747b7f; margin-bottom: 26px; }
.hint { margin-top: 18px; font-size: 14px; color: #747b7f; letter-spacing: 0.08em; }
button { background: transparent; color: #c9c2b4; border: 1px solid #747b7f; padding: 11px 34px; font: inherit; font-size: 17px; letter-spacing: 0.2em; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
button:hover, button:focus-visible { background: rgba(182, 175, 160, 0.08); border-color: #b6afa0; outline: none; }
#loading span { display: block; font-size: 13px; color: #747b7f; margin-top: 8px; }
.bar { height: 2px; width: 220px; margin: 0 auto; background: #171a1d; }
#load-bar { height: 100%; width: 0; background: #b6afa0; transition: width 0.3s; }
.keys { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 24px; font-size: 13px; color: #747b7f; }
.keys b { font-family: monospace; font-weight: normal; color: #b6afa0; }
#version { display: block; margin-top: 22px; font: 11px monospace; color: #292d30; }
label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0; font-size: 15px; }
label.check { justify-content: flex-start; }
select, input[type="range"] { width: 200px; background: #171a1d; color: #b6afa0; border: 1px solid #292d30; padding: 4px; font: inherit; accent-color: #b6afa0; }
#pause button { margin-top: 18px; }
