@font-face { font-family: Inter; src: url('Inter-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
:root { color-scheme: light; --page: #f3f6fa; --ink: #1b2b39; --muted: #4e6375; --accent: #00776d; --border: #d2dee6; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: var(--page); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
[hidden] { display: none !important; }
#unity-container { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) 38px; }
#unity-container.unity-mobile { grid-template-rows: minmax(0, 1fr); }
#unity-canvas { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; touch-action: none; background: var(--page); }
#rainbyte-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(64px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 50% 44%, #fff 0%, var(--page) 72%); overflow: auto; }
.loading-content { width: min(100%, 360px); text-align: center; }
.brand-logo { display: block; width: 112px; height: 112px; margin: 0 auto 28px; object-fit: contain; border-radius: 18px; box-shadow: 0 10px 32px #1b2b3912; }
.eyebrow { margin: 0 0 14px; font-size: 10px; font-weight: 400; letter-spacing: .24em; color: var(--accent); }
h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 400; letter-spacing: -.045em; line-height: 1.15; }
.loading-subtitle { margin: 16px 0 38px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: left; margin-bottom: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
#loading-percent { color: var(--accent); font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 8px; appearance: none; overflow: hidden; color: var(--accent); background: #dce8e9; }
progress::-webkit-progress-bar { background: #dce8e9; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.loading-footnote { position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); margin: 0; font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.loading-footnote span { margin: 0 10px; color: var(--accent); }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#loading-retry { min-height: 44px; padding: 10px 24px; border: 0; border-radius: 8px; color: white; background: var(--accent); font-size: 13px; }
.load-error .progress-heading { justify-content: center; text-align: center; }
#unity-footer { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 38px; min-width: 0; overflow: hidden; border-top: 1px solid var(--border); background: white; font-size: 10px; }
.footer-brand { flex: 1; white-space: nowrap; }
.footer-brand span { color: var(--muted); margin-left: 6px; }
#unity-fullscreen-button, #diagnostics-icon { display: inline-flex; align-items: center; gap: 8px; height: 30px; border: 0; background: transparent; color: var(--accent); font-size: 11px; }
#unity-fullscreen-button:disabled { opacity: .4; cursor: default; }
#unity-fullscreen-button span { font-size: 19px; }
.unity-mobile #unity-footer { display: none; }
@media (max-height: 520px) { #rainbyte-loading { padding-top: 18px; padding-bottom: 48px; } .brand-logo { width: 68px; height: 68px; margin-bottom: 16px; border-radius: 12px; } .eyebrow { margin-bottom: 8px; } h1 { font-size: 28px; } .loading-subtitle { margin: 10px 0 20px; font-size: 12px; } .loading-footnote { bottom: 14px; } }
