:root { color-scheme: dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { width:100%;height:100%;margin:0;overflow:hidden; }
body { background:#2b3139;color:#f4f5f6; }
#loading-screen { position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:32px 24px;background:radial-gradient(ellipse at 50% 42%,#364046 0%,#2a3237 44%,#242a2e 100%);opacity:1;visibility:visible;transition:opacity .25s ease,visibility .25s; }
#loading-screen.is-complete { opacity:0;visibility:hidden;pointer-events:none; }
.loading-content { width:min(100%,460px);text-align:center; }
.loading-symbol { display:block;width:112px;height:112px;margin:28px auto;overflow:visible; }
.loading-ring-track { fill:none;stroke:#ffffff12;stroke-width:1; }
.loading-ring { fill:none;stroke:#ee8c00;stroke-width:2;stroke-linecap:round;stroke-dasharray:75 258;transform-origin:60px 60px;animation:loading-orbit 1.8s linear infinite;will-change:transform; }
.loading-cube { fill:none;stroke:#b4c0c7;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round; }
.loading-cube-top { fill:none;stroke:#ee8c00;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round; }
#loading-model { margin:0;color:#f5f7f8;font-size:clamp(28px,4vw,40px);font-weight:550;letter-spacing:.035em;line-height:1.2; }
#loading-message { min-height:24px;margin:0;color:#c6ced3;font-size:16px;line-height:1.5; }
#loading-retry { margin-top:24px;padding:10px 22px;font-size:15px;border-color:#ee8c00; }
#loading-screen.is-error .loading-ring { animation:none;stroke:#e9a358; }
body.is-loading>header,body.is-loading>footer { visibility:hidden; }
@keyframes loading-orbit { to { transform:rotate(360deg); } }
@media(max-width:420px){.loading-symbol{margin-top:28px;margin-bottom:24px}}
@media(max-height:540px){.loading-symbol{width:70px;height:70px;margin:18px auto 14px}#loading-message{margin-top:12px}}
@media(prefers-reduced-motion:reduce){#loading-screen{transition:none}.loading-ring{animation:none}}
#view { width:100%;height:100%;display:block;touch-action:none;outline:none; }
header { position:absolute;top:24px;left:28px;pointer-events:none; }
header strong { letter-spacing:.09em;font-size:20px; }
footer { color:#b7bfc5;font-size:12px; }
button { padding:10px 14px;border:1px solid #64717d;background:#222b33e8;color:#eef2f5;border-radius:6px;white-space:nowrap;cursor:pointer; }
button:hover,button:focus-visible { background:#425363;outline:2px solid #9fc7dc; }
button:disabled { opacity:.5;cursor:wait; }
footer { position:absolute;bottom:14px;width:100%;text-align:center;pointer-events:none; }
#interaction-hint { position:absolute;z-index:2;bottom:60px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:8px 22px 8px 10px;border:1px solid #ffffff26;border-radius:18px;background:#20292fee;box-shadow:0 8px 28px #0003;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s; }
#interaction-hint.is-visible { opacity:1;visibility:visible; }
#interaction-hint strong { display:block;font-size:16px;font-weight:600;white-space:nowrap; }
#interaction-hint span { display:block;margin-top:4px;font-size:13px;color:#c2cbd1;white-space:nowrap; }
.hint-gesture { width:96px;height:60px;flex:none;overflow:visible; }
.hint-track { fill:none;stroke:#d2dce2;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.4; }
.hint-hand { fill:#29343c;stroke:#f4f6f8;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round; }
#interaction-hint.is-visible .hint-hand { animation:hint-drag 2.2s ease-in-out 2; }
@keyframes hint-drag { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-14px); } 65% { transform:translateX(14px); } }
@media(max-width:650px){#interaction-hint{gap:6px;padding-right:16px}.hint-gesture{width:80px;height:52px}}
@media(prefers-reduced-motion:reduce){#interaction-hint{transition:none}#interaction-hint.is-visible .hint-hand{animation:none}}
@media(max-width:650px){header{top:16px;left:16px}footer{font-size:10px}}
