* { box-sizing: border-box; }
:root { color-scheme: dark; background: #030a11; font-family: Arial, sans-serif; }
body { margin: 0; overflow: hidden; }
.cloud-stage { position: relative; width: 100%; height: 100vh; height: 100dvh; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.cloud-navigation { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(190px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #8294a1; font-size: 12px; }
.cloud-navigation input { appearance: none; -webkit-appearance: none; min-width: 0; flex: 1; height: 40px; margin: 0; background: transparent; cursor: pointer; }
.cloud-navigation input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: #526470; }
.cloud-navigation input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #c5d4df; }
.cloud-navigation input::-moz-range-track { height: 3px; border-radius: 2px; background: #526470; }
.cloud-navigation input::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #c5d4df; }
.cloud-navigation input::-moz-range-progress { height: 3px; border-radius: 2px; background: #8294a1; }
.cloud-navigation[hidden] { display: none; }
.cloud-navigation button { padding: 8px; min-width: 44px; font-size: 20px; }
.cloud-navigation input:focus-visible { outline: 2px solid #94c8ed; outline-offset: 2px; border-radius: 4px; }
button { color: #8c9eab; background: transparent; border: 0; border-radius: 5px; padding: 12px 20px; min-height: 44px; font: 13px Arial,sans-serif; cursor: pointer; white-space: nowrap; }
button[aria-pressed="true"] { background: #233746; color: #edf4f8; }
button:focus-visible { outline: 2px solid #94c8ed; outline-offset: 2px; }
.loading { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px; border: 2px solid #254053; border-top-color: #afc8da; border-radius: 50%; animation: spin .8s linear infinite; }
.loading[hidden] { display: none; }
.loading.error { width: min(85vw, 400px); height: auto; margin: 0; transform: translate(-50%, -50%); border: 0; border-radius: 0; animation: none; color: #afc8da; text-align: center; font-size: 14px; line-height: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion: reduce) { .loading { animation: none; } }
