* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0d0d0f; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #f2efe9; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

#loader { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(ellipse at center, #1c1a17 0%, #0b0b0c 70%); z-index: 20; }
#loader .brand { letter-spacing: .5em; font-weight: 300; font-size: 22px; opacity: .85; }
#loader .bar { width: min(360px, 70vw); height: 2px; background: #ffffff1a; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: #e9d8b8; transition: width .2s; }
#load-text { font-size: 12px; opacity: .55; letter-spacing: .08em; }

#start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #0008; backdrop-filter: blur(6px); z-index: 15; }
#start .card { background: #16151399; border: 1px solid #ffffff1c; border-radius: 14px; padding: 30px 36px; max-width: 560px; width: 92vw; box-shadow: 0 30px 80px #0009; }
#start h1 { font-weight: 300; letter-spacing: .25em; text-transform: uppercase; font-size: 24px; }
#start .sub { opacity: .6; margin: 6px 0 20px; font-size: 14px; }
#start .grid { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: 13.5px; align-items: center; }
#start .dim { opacity: .45; font-size: 12px; }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; margin-right: 3px; border-radius: 5px; border: 1px solid #ffffff30; border-bottom-width: 2px; background: #ffffff0d; font: 600 11.5px ui-monospace, Menlo, monospace; text-align: center; }
#go { margin-top: 24px; width: 100%; padding: 13px; border-radius: 9px; border: 0; background: #e9d8b8; color: #1a1712; font-weight: 600; font-size: 15px; letter-spacing: .05em; cursor: pointer; }
#go:hover { background: #f5e6c9; }
.fine { margin-top: 12px; font-size: 11px; opacity: .4; text-align: center; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #0006; opacity: .8; transition: transform .12s, background .12s; }
#crosshair.grab { transform: scale(1.9); background: #ffe2a8; }
#crosshair.use { transform: scale(1.9); background: #a8e6ff; }
#prompt { position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%); font-size: 13px; padding: 4px 10px; border-radius: 6px; background: #0007; white-space: nowrap; opacity: 0; transition: opacity .15s; }
#prompt.on { opacity: 1; }
#hands { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 14px; font-size: 12px; }
#hands span { background: #0007; padding: 4px 10px; border-radius: 6px; opacity: .85; }
#help { position: absolute; right: 16px; bottom: 16px; font-size: 11px; opacity: .45; background: #0006; padding: 4px 8px; border-radius: 5px; }
#toast { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-size: 13px; background: #000a; padding: 6px 14px; border-radius: 6px; opacity: 0; transition: opacity .3s; }
#toast.on { opacity: 1; }
