* { box-sizing: border-box; }
html, body, #game { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: #fff7e0; background: #233849; font-family: system-ui, sans-serif; user-select: none; }
#game { position: relative; }
#game > canvas { position: absolute; inset: 0; display: block; }
.masthead, footer, #intro, #crosshair { position: absolute; z-index: 1; pointer-events: none; }
.masthead { inset: 22px 24px auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand, .clock { padding: 9px 12px; border: 1px solid #fff7e044; background: #101a20c9; font: 700 11px ui-monospace, monospace; letter-spacing: .13em; }
.mark { color: #eacd7b; margin-right: 5px; }
#intro { left: clamp(24px, 7vw, 110px); bottom: max(135px, 23vh); text-shadow: 0 3px 24px #0c1a24; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(58px, 10vw, 148px); font-weight: 500; line-height: .9; letter-spacing: -.065em; }
#prompt { margin: 22px 0 0; padding: 10px 14px; width: fit-content; background: #101a20cf; border-left: 3px solid #eacd7b; font: 700 12px ui-monospace, monospace; letter-spacing: .05em; }
#crosshair { display: none; top: 50%; left: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 2px #000); }
#crosshair::before, #crosshair::after { content: ""; position: absolute; background: #fff8e5; inset: 7px 0; }
#crosshair::after { inset: 0 7px; }
.playing #crosshair { display: block; }
.playing #intro { display: none; }
footer { inset: auto 0 15px; text-align: center; }
#material { margin-bottom: 7px; font: 700 11px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 4px #000, 0 1px 8px #000; }
#hotbar { display: flex; justify-content: center; gap: 5px; }
.slot { position: relative; display: grid; place-items: center; width: clamp(43px, 8vw, 58px); aspect-ratio: 1; border: 1px solid #fff7e055; background: #101a20dc; }
.slot.selected { border: 2px solid #f6d683; background: #323127ef; }
.slot canvas { width: 55%; image-rendering: pixelated; filter: drop-shadow(1px 3px 2px #0008); }
.slot b { position: absolute; top: 3px; left: 4px; font: 10px ui-monospace, monospace; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 9px auto 0; width: fit-content; max-width: 95%; padding: 5px 9px; background: #101a20cc; font-size: 10px; }
kbd { color: #f4d487; font: 700 10px ui-monospace, monospace; }
