/* 0.51.0: the game's own page. Dark around the game; the game fills the window above a 48 px bar. */
html, body { margin: 0; padding: 0; height: 100%; background: #101317; color: #e9e6df; font-family: "Segoe UI", Arial, sans-serif; overflow: hidden; }
#hv-stage { position: absolute; left: 0; top: 0; right: 0; bottom: 48px; background: #101317; }
#hv-canvas { width: 100%; height: 100%; display: block; background: #101317; outline: none; }
#hv-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #101317; }
#hv-loading-logo { max-width: min(320px, 50vw); max-height: 34vh; }
#hv-loading-title { font-size: 20px; letter-spacing: 0.08em; color: #f08a24; font-weight: 600; }
#hv-progress { width: min(360px, 70vw); height: 8px; border-radius: 4px; background: #2a3038; overflow: hidden; }
#hv-progress-full { width: 0%; height: 100%; background: #f08a24; transition: width 0.2s; }
#hv-loading-note { font-size: 13px; color: #9aa0a6; }
#hv-warning { position: absolute; left: 0; right: 0; top: 0; }
.hv-msg { padding: 10px 14px; background: #f2c14e; color: #111; font-size: 14px; }
.hv-msg.error { background: #a5221a; color: #fff; }
#hv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #0b0d10; border-top: 1px solid #22272e; box-sizing: border-box; }
#hv-bar-logo { height: 38px; width: auto; }
#hv-bar-title { flex: 1; font-size: 15px; color: #e9e6df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hv-bar-version { color: #8b9198; font-size: 13px; margin-left: 8px; }
#hv-fullscreen { background: transparent; border: 1px solid #3a414a; color: #e9e6df; border-radius: 6px; width: 34px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#hv-fullscreen:hover { background: #1f242b; }
/* 0.67.0: phones and tablets. The game takes the whole screen (no bar), the page never scrolls or zooms under a finger, and a device held
   upright is asked to turn on its side. The start card offers full screen where the browser has it. */
body.hv-touch { overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.hv-touch #hv-stage { bottom: 0; }
body.hv-touch #hv-bar { display: none; }
body.hv-touch #hv-canvas { touch-action: none; }
#hv-rotate { display: none; position: absolute; inset: 0; background: #101317; color: #e9e6df; z-index: 30; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 18px; text-align: center; padding: 24px; box-sizing: border-box; }
@media (orientation: portrait) { body.hv-touch #hv-rotate { display: flex; } }
#hv-start { display: none; position: absolute; inset: 0; z-index: 20; background: rgba(10, 12, 15, 0.72); flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
#hv-start button { min-width: 240px; min-height: 52px; font-size: 18px; border-radius: 10px; border: 1px solid #3a414a; background: #1f242b; color: #e9e6df; font-family: inherit; }
#hv-start #hv-start-full { background: #f08a24; color: #111; border-color: #f08a24; font-weight: 600; }
#hv-start-note { max-width: 420px; color: #9aa0a6; font-size: 14px; text-align: center; padding: 0 16px; }
