html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #18130f; }
body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #f3e6c8; }

/* A phone: the whole screen, inside the safe area (the notch and the home bar). */
#uh-stage { position: fixed; inset: 0; box-sizing: border-box;
            padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#unity-canvas { display: block; width: 100%; height: 100%; background: #18130f; touch-action: none; outline: none; }

/* A desktop: a 9:16 box, as tall as the window. */
#uh-stage.uh-desktop { padding: 0; display: flex; align-items: center; justify-content: center; }
#uh-stage.uh-desktop #unity-canvas { height: 100vh; width: calc(100vh * 9 / 16); max-width: 100vw; }

#uh-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
              gap: 14px; background: #18130f; text-align: center; padding: 24px; box-sizing: border-box; }
#uh-loading-logo { width: min(320px, 80vw); height: auto; margin-bottom: 8px; }
#uh-bar { width: min(280px, 70vw); height: 12px; border-radius: 6px; background: #3a2c20; box-shadow: inset 0 0 0 2px #6b4e2c; overflow: hidden; }
#uh-bar-full { width: 0; height: 100%; background: linear-gradient(#f5cf6b, #c98e2e); transition: width 0.2s; }
#uh-loading-text { font-size: 15px; }
#uh-loading-note { font-size: 12px; opacity: 0.7; max-width: 280px; }

#uh-warning { position: absolute; left: 0; right: 0; top: 0; display: none; z-index: 2; }
#uh-warning .uh-error { background: #8c1f1f; padding: 10px; }
#uh-warning .uh-note { background: #6b5a1a; padding: 10px; }
