html, body { padding: 0; margin: 0; width: 100%; height: 100%; overflow: hidden; background: #000; overscroll-behavior: none }
body { position: fixed; inset: 0 }
body > div { box-sizing: border-box }
#unity-container { position: fixed; top: 0; left: 50%; width: min(100vw, 56.25vh); height: min(100vh, 177.777778vw); transform: translateX(-50%) }
#unity-container.unity-mobile { left: 0; width: 100%; height: 100%; transform: none }
#unity-canvas { display: block; width: 100% !important; height: 100% !important; background: #231F20 }
/* Unity owns touch gestures inside the game, including rapid taps on Words tiles.
   Keep browser pan/pinch/double-tap zoom from changing the visible canvas area. */
/* Keyboard focus is rendered inside Unity; do not draw a browser ring around the game. */
#unity-canvas { touch-action: none; outline: none }
/* Unity's body-level mobile input does not set its own font size. Form controls
   do not inherit the parent's 14pt font, so Safari can auto-zoom on focus.
   This CSS applies before Unity calls input.focus(), unlike a MutationObserver. */
body > div > input, body > div > textarea { font-size: 16px !important; box-sizing: border-box }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-footer { display: none }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
.mp-release-update { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; box-sizing: border-box; background: #0009; font: 16px/1.5 system-ui, sans-serif; color: #293f69 }
.mp-release-update > div { width: 100%; max-width: 360px; padding: 24px; box-sizing: border-box; border-radius: 20px; background: white; text-align: center }
.mp-release-update h2 { font-size: 22px; margin: 0 0 12px }
.mp-release-update button { display: block; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 600; color: #173c5f; background: #64d7f4; cursor: pointer }
.mp-release-update button + button { background: #eef3f7 }
