html,body {margin:0;padding:0;width:100%;height:100%;overflow:hidden;}
body {display:flex;align-items:center;justify-content:center;background:#9fdfef url(cloud-course.jpg) center/cover no-repeat;}
body::before {content:"";position:fixed;inset:0;background:rgba(11,57,72,.13);pointer-events:none;}
#GameDiv {position:relative;width:min(100%,56.25vh);width:min(100%,56.25dvh);height:100vh;height:100dvh;box-shadow:0 0 70px rgba(17,65,77,.25);}
html:not([data-touch="true"]) #GameDiv {width:min(100%,56.25vh,480px);width:min(100%,56.25dvh,480px);height:auto;aspect-ratio:9/16;max-height:100vh;max-height:100dvh;}
#Cocos3dGameContainer,#GameCanvas {width:100%;height:100%;display:block;outline:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;}
#LoadingOverlay {position:absolute;inset:0;z-index:100;display:grid;place-items:center;background:#043b4b;color:#fff7df;text-align:center;font:18px/1.5 system-ui,sans-serif;padding:22px;box-sizing:border-box;}
#LoadingOverlay[hidden] {display:none;}
.loading-card {width:100%;max-width:340px;box-sizing:border-box;padding:28px 16px;border:2px solid #ddb04e;border-radius:18px;background:#156379;}
.loading-card h1 {font-size:22px;margin:0 0 20px;}
.loading-spinner {width:34px;height:34px;margin:0 auto 18px;border:4px solid #518895;border-top-color:#ffda70;border-radius:50%;animation:loading-spin 1s linear infinite;}
#LoadingStatus {min-height:54px;margin:0;}
#LoadingHint {font-size:14px;margin:12px 0 0;}
#LoadingRetry {margin-top:18px;padding:10px 24px;border:2px solid #ddb04e;border-radius:12px;background:#fff7df;color:#12495d;font:inherit;font-weight:700;cursor:pointer;}
#LoadingRetry[hidden] {display:none;}
@keyframes loading-spin {to {transform:rotate(360deg);}}
@media(prefers-reduced-motion:reduce) {.loading-spinner {animation:none;}}
:root {--safe-top:env(safe-area-inset-top);--safe-right:env(safe-area-inset-right);--safe-bottom:env(safe-area-inset-bottom);--safe-left:env(safe-area-inset-left);}
