@font-face { font-family: 'Cinzel'; src: url('../assets/fonts/cinzel-600.woff2') format('woff2'); font-weight: 400 900; font-display: block; }
@font-face { font-family: 'Oswald'; src: url('../assets/fonts/Oswald-500.woff2') format('woff2'); font-weight: 400 600; font-display: block; }
@font-face { font-family: 'Oswald'; src: url('../assets/fonts/Oswald-700.woff2') format('woff2'); font-weight: 700 900; font-display: block; }
@font-face { font-family: 'Bangers'; src: url('../assets/fonts/Bangers-400.woff2') format('woff2'); font-weight: 400 900; font-display: block; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
body { display: flex; align-items: center; justify-content: center; }
canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; cursor: none; }

/* online: account and lobby forms over the canvas, and the chat line */
#hs-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; pointer-events: none; font-family: Oswald, 'Arial Narrow', sans-serif; color: #e8e2d4; }
#hs-overlay[hidden] { display: none; }
.hs-panel { pointer-events: auto; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 140px); overflow: auto; margin-top: 90px; padding: 22px 26px; background: rgba(10, 9, 8, 0.93); border: 1px solid #5a5248; box-shadow: 0 0 0 3px #000, 0 12px 40px rgba(0, 0, 0, 0.7); user-select: text; -webkit-user-select: text; }
.hs-panel h2 { margin: 0 0 10px; font: 400 30px Bangers, Oswald, sans-serif; letter-spacing: 1px; color: #ff8a1e; text-align: center; }
.hs-panel p { margin: 8px 0; font-size: 14px; line-height: 1.45; }
.hs-panel code { color: #ffd070; }
.hs-sub { text-align: center; color: #c9b27a; }
.hs-note { color: #8c8c8c; font-size: 12px !important; }
.hs-err { color: #ff6a5a; min-height: 1em; }
.hs-panel label { display: block; margin: 10px 0 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #c9b27a; }
.hs-panel input { display: block; box-sizing: border-box; width: 100%; margin-top: 4px; padding: 9px 10px; font: 500 16px Oswald, sans-serif; color: #fff; background: #050505; border: 1px solid #4a4238; outline: none; }
.hs-panel input:focus { border-color: #ff8a1e; }
.hs-panel button { padding: 9px 16px; font: 600 14px Oswald, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #c9b27a; background: linear-gradient(#26231f, #121110); border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(160, 150, 130, 0.35); cursor: pointer; }
.hs-panel button:hover:not(:disabled) { color: #fff; box-shadow: inset 0 0 0 1px #ff8a1e; }
.hs-panel button:disabled { color: #555; cursor: default; }
.hs-panel .hs-go { color: #ff8a1e; }
.hs-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; }
.hs-row input { margin: 0; flex: 1; }
.hs-tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.hs-tabs button { flex: 1; }
.hs-tabs button.on { color: #fff; box-shadow: inset 0 -2px 0 #ff8a1e, inset 0 0 0 1px rgba(160, 150, 130, 0.35); }
.hs-games { margin: 10px 0; max-height: 260px; overflow: auto; }
.hs-game { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-bottom: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid #2a2520; }
.hs-game span { display: block; font-size: 12px; color: #9a9a9a; }
#hs-chat { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); padding: 8px 10px; font: 500 15px Oswald, sans-serif; color: #fff; background: rgba(0, 0, 0, 0.85); border: 1px solid #ff8a1e; outline: none; z-index: 11; }
