html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0a10; touch-action: none; overscroll-behavior: none; }
#unity-container { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#unity-fullscreen-container { position: relative; display: flex; }
#unity-canvas { display: block; background: #0b0a10;
  width: min(100vw, calc(100vh * 540 / 960)); height: min(100vh, calc(100vw * 960 / 540)); }
@supports (height: 100dvh) {
  #unity-canvas { width: min(100vw, calc(100dvh * 540 / 960)); height: min(100dvh, calc(100vw * 960 / 540)); }
}
#unity-loading-container { position: absolute; width: 100%; height: 100%; backdrop-filter: blur(5px); display: none; }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 2; }

/* "AFK mode" plate: shown by the page script in index.html after the game lost the focus for a second. The game loop stands still
   while unfocused (runInBackground is off), so this cannot be drawn by Unity. Never takes input. */
@font-face { font-family: 'TR Silkscreen'; src: url('Silkscreen-Regular.ttf') format('truetype'); font-display: block; }
@font-face { font-family: 'TR VT323'; src: url('VT323-Regular.ttf') format('truetype'); font-display: block; }
#tr-afk { position: absolute; display: none; box-sizing: border-box; pointer-events: none; z-index: 3; text-align: center; overflow: hidden;
  background: rgba(20, 18, 28, 0.78); border: 2px solid rgba(255, 179, 71, 0.55); border-radius: 6px; user-select: none; }
#tr-afk-title { font-family: 'TR Silkscreen', monospace; color: #FFB347; text-transform: uppercase; white-space: nowrap; line-height: 1.1; }
#tr-afk-hint { font-family: 'TR VT323', monospace; color: #E8ECF8; white-space: nowrap; line-height: 1.1; }
