body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
.unity-mobile #unity-fullscreen-container { width: 100%; height: 100% }
#unity-fullscreen-container { position: relative; }
#unity-canvas { position: absolute; width: 100%; height: 100%; background: #1F1F20 }
#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-footer { position: relative }
.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 }

/* MasterTech Matter responsive browser player */
html, body { width: 100%; height: 100%; background: #10182c; overflow: hidden }
#unity-container.unity-desktop { max-width: calc(100vw - 32px); max-height: calc(100vh - 26px) }
#unity-canvas { display: block; max-width: calc(100vw - 32px); max-height: calc(100vh - 64px) }
#unity-logo, #unity-logo-title-footer { display: none !important }
#unity-footer { height: 38px; color: #eaf1ff }
#unity-build-title { font-size: 14px; letter-spacing: 0.04em }

/* MasterTech Matter runtime-ready browser handoff */
#unity-loading-bar { min-width: 154px; position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; z-index: 20; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; color: #eaf1ff; text-align: center; opacity: 1; background: radial-gradient(circle at 50% 42%, #14284c 0%, #081120 58%, #050a13 100%); transition: opacity 180ms ease }
#unity-loading-bar.matter-ready { opacity: 0; pointer-events: none }
#matter-loading-logo { display: block; width: min(340px, 72vw); height: auto; box-sizing: border-box; padding: 11px 18px; border: 1px solid #75c8eb; border-radius: 12px; background: linear-gradient(180deg, #f8fdff, #acd7ef) }
#matter-loading-status { margin-top: 13px; font: 600 12px/1.2 Arial, sans-serif; letter-spacing: 0.1em; color: #b9d9ff }
#unity-progress-bar-empty { width: min(260px, 70%); height: 6px; margin: 18px 0 0; overflow: hidden; border: 1px solid #31577f; border-radius: 4px; background: #14243d }
#unity-progress-bar-full { height: 100%; margin: 0; background: linear-gradient(90deg, #4ca7ff, #8cd9ff); transition: width 100ms linear }

/* MasterTech Matter fullscreen canvas sizing */
#unity-fullscreen-container:fullscreen #unity-canvas, #unity-canvas:fullscreen { width: 100% !important; height: 100% !important; max-width: none; max-height: none }
#unity-fullscreen-container:-webkit-full-screen #unity-canvas, #unity-canvas:-webkit-full-screen { width: 100% !important; height: 100% !important; max-width: none; max-height: none }
