html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #231F20 }
/* A long press or double tap on phones would otherwise select or magnify the page instead of playing. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none }
#unity-canvas { display: block; width: 100%; height: 100%; background: #231F20; outline: none }
#unity-loading { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-family: Arial, sans-serif; color: #fff }
#unity-loading-title { font-size: 32px; font-weight: bold; letter-spacing: 1px }
#unity-progress-bar { width: 260px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.2); overflow: hidden }
#unity-progress-bar-full { width: 0%; height: 100%; border-radius: 7px; background: #ffb400; transition: width 0.2s }
#unity-warning { position: fixed; left: 50%; top: 5%; transform: translateX(-50%); display: none; font-family: Arial, sans-serif }
#unity-warning div { background: #fff; padding: 10px }
#unity-warning div.warning { background: #ffeb3b }
#unity-warning div.error { background: #e53935; color: #fff }
#unity-fullscreen-button { position: fixed; right: 8px; bottom: 8px; width: 36px; height: 36px; border: none; border-radius: 6px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; opacity: 0.5 }
#unity-fullscreen-button:hover { opacity: 1 }
/* The whole page is the fullscreen element (index.html), so the button would stay over the game. Two rules: a browser
   that doesn't know one of the selectors drops the whole rule. */
:fullscreen #unity-fullscreen-button { display: none }
:-webkit-full-screen #unity-fullscreen-button { display: none }
/* Phones and tablets held upright get a "turn your phone" cover over the game (index.html): it is made for landscape. */
#unity-rotate { position: fixed; inset: 0; z-index: 10; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: #231F20; color: #fff; font-family: Arial, sans-serif; font-size: 20px; font-weight: bold; letter-spacing: 1px; text-align: center }
#unity-rotate svg { width: 96px; height: 96px; color: #ffb400 }
@media (orientation: portrait) and (pointer: coarse) { #unity-rotate { display: flex } }
