:root{color-scheme:light;--ink:#554d6e;--muted:#817a96;--surface:#fffdf5ed;--line:#ffffffdc;--plum:#6f648d;--accent:#dcae64}*{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;height:100%;height:100dvh;margin:0;overflow:hidden;font-family:ui-rounded,Nunito,Trebuchet MS,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;background:#a9b8cf;color:var(--ink)}button,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#gameWorld{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0}canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;touch-action:none;outline:none}#overlayGlass{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(180deg,#4b557627 0%,transparent 25%,transparent 73%,#48536b20 100%)}#ui{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4;pointer-events:none}#ui>*{pointer-events:auto}.top{position:absolute;top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.card{border:1px solid var(--line);background:var(--surface);box-shadow:0 5px 19px #3c49641c;border-radius:14px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.brand{padding:10px 15px;min-width:174px}.eyebrow{font-size:9px;letter-spacing:.15em;color:#9388a2;font-weight:850}.brand h1{font-size:19px;letter-spacing:-.045em;line-height:1.1;color:#5b537a;margin:3px 0 0}.actions{padding:5px;display:flex;gap:5px;align-items:center;justify-content:flex-end;max-width:min(660px,72vw)}.actions button,.actions select{min-height:42px;border:0;border-radius:9px;padding:9px 12px;color:#625a7e;background:transparent;font-size:12px;font-weight:800;white-space:nowrap}.actions button:hover,.actions button.active{background:#e7e3ee;color:#51496d}.actions button:active{transform:translateY(1px)}.actions select{max-width:195px;background:#f1eef4}.accessory-control{display:flex;align-items:center;gap:8px;padding-left:8px;color:var(--muted);font-size:11px;font-weight:750}#status{position:absolute;top:84px;left:max(16px,env(safe-area-inset-left));padding:7px 10px;border-radius:8px;background:#fffdf0df;color:#726987;font-size:11px;font-weight:750;max-width:min(460px,80vw)}#status:before{content:"";width:7px;height:7px;background:#d9ad66;display:inline-block;border-radius:50%;vertical-align:middle;margin-right:7px}#status.ready:before{background:#62a985}.controls{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));margin:0;padding:9px 12px;border-radius:9px;background:#fffdf0df;color:#716987;font-size:11px;font-weight:700;line-height:1.4}#joystick{position:absolute;bottom:max(22px,calc(env(safe-area-inset-bottom) + 14px));left:max(20px,calc(env(safe-area-inset-left) + 14px));width:112px;height:112px;display:none;border-radius:50%;background:#fffdf0a8;border:1px solid #fff;touch-action:none;align-items:center;justify-content:center;box-shadow:0 4px 22px #45516b2b}#joystick:after{content:"";position:absolute;width:50px;height:50px;border-radius:50%;background:#c9c6d8;border:2px solid #fff;transform:translate(var(--jx,0px),var(--jy,0px));box-shadow:0 2px 8px #55516c30}#run{position:absolute;bottom:max(37px,calc(env(safe-area-inset-bottom) + 28px));right:max(22px,calc(env(safe-area-inset-right) + 16px));width:76px;height:76px;display:none;border-radius:50%;background:#fffdf0ed;border:1px solid #fff;box-shadow:0 4px 22px #45516b2b;color:#6d628d;font-size:12px;font-weight:900}#run:active,#run.pressed{background:#756b93;color:#fff}#loading{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9;display:grid;place-items:center;background:linear-gradient(160deg,#a4adc7,#dce4ef 55%,#f4f1e8);padding:24px;transition:opacity .3s}#loading.hide{opacity:0;pointer-events:none}.intro{width:min(380px,100%);padding:30px 28px;background:#fffdf2f2;border-radius:18px;text-align:center;border:1px solid white;box-shadow:0 12px 38px #4e567527}.loading-mark{width:50px;height:50px;margin:0 auto 14px;display:grid;place-items:center;background:#dfe6ee;border-radius:14px;color:#665d80;font-family:Georgia,serif;font-size:27px;font-weight:700}.intro h2{font-size:22px;letter-spacing:-.035em;color:#5e5680;margin:0 0 6px}.intro p{font-size:13px;line-height:1.5;color:#817a91;margin:0}.bar{height:6px;background:#e9e5ed;border-radius:8px;margin:20px 0 10px;overflow:hidden}#barFill{height:100%;background:#8e9cbb;width:8%;transition:width .2s}#loadCaption{font-size:11px;font-weight:800;color:#77708c}#retryBtn{display:none;min-height:44px;margin:14px auto 0;border:0;border-radius:9px;background:#6f648d;color:#fff;padding:10px 16px;font-weight:850}#notice{position:fixed;bottom:max(80px,calc(env(safe-area-inset-bottom) + 70px));left:50%;transform:translate(-50%);z-index:5;border-radius:10px;padding:10px 14px;background:#fffdf2;color:#5d5578;font-weight:750;font-size:12px;box-shadow:0 4px 18px #3c496426;display:none;text-align:center;max-width:calc(100vw - 32px)}@media(max-width:850px){.top{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));gap:8px}.brand{min-width:unset;padding:9px 11px}.brand h1{font-size:16px}.eyebrow{font-size:8px}.actions{max-width:70vw;padding:4px;gap:3px}.actions button,.actions select{min-height:42px;padding:8px 9px;font-size:11px}.actions select{max-width:148px}.accessory-control{gap:5px;padding-left:4px;font-size:10px}#status{left:max(10px,env(safe-area-inset-left));top:77px;font-size:10px}#joystick{display:flex}#run{display:block}.controls{display:none}}@media(max-width:540px){.top{align-items:flex-start}.brand{flex:0 0 auto}.actions{max-width:calc(100vw - 133px);flex-wrap:wrap;justify-content:flex-end}.actions button,.actions select{padding:7px 8px;font-size:10px}.accessory-control{flex:1 1 100%;justify-content:flex-end}.actions select{max-width:145px}#status{top:112px}.intro{padding:26px 21px}}@media(max-height:430px)and (pointer:coarse){.top{top:7px}.brand{padding:6px 9px}.brand h1{font-size:14px}.actions button,.actions select{min-height:38px;padding:6px 7px}.accessory-control{font-size:9px}#status{top:108px}.controls{display:none}#joystick{width:86px;height:86px;bottom:max(8px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left))}#joystick:after{width:42px;height:42px}#run{width:64px;height:64px;bottom:max(18px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right))}}.screen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:12;display:grid;place-items:center;padding:24px;background:#dce4eeef;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.login-screen{z-index:14}.login-card{width:min(420px,100%);padding:32px;background:#fffdf4;border:1px solid #fff;border-radius:18px;box-shadow:0 12px 40px #46536c24;display:flex;flex-direction:column;gap:9px}.login-card .loading-mark{margin:0 0 5px}.screen-eyebrow{margin:0 0 4px;color:#9287a0;font-size:9px;font-weight:900;letter-spacing:.15em}.login-card h1,.profile-form h1{margin:0;color:#554d71;font-size:25px;letter-spacing:-.04em;line-height:1.13}.screen-intro{margin:0 0 9px;color:#817a91;font-size:13px;line-height:1.5}.login-card label,.profile-form>label,.accessory-fields label{margin-top:5px;color:#5f5876;font-size:12px;font-weight:800}.login-card input,.profile-form input,.profile-form textarea,.profile-form select{width:100%;min-height:46px;padding:11px 12px;border:1px solid #dcd8e5;border-radius:9px;background:#fff;color:#454053;font:inherit;font-size:14px}.profile-form textarea{min-height:110px;resize:vertical;line-height:1.45}.login-card input:focus,.profile-form input:focus,.profile-form textarea:focus,.profile-form select:focus{outline:3px solid #d9cce9;border-color:#81749f}.primary-button{min-height:48px;margin-top:8px;border:0;border-radius:9px;background:#6d628c;color:#fff;font:inherit;font-size:14px;font-weight:850;cursor:pointer}.primary-button:hover{background:#5e557b}.primary-button:disabled{opacity:.6;cursor:wait}.form-status{min-height:18px;margin:2px 0 0;color:#786f8a;font-size:12px;line-height:1.45}.profile-screen{z-index:13;overflow-y:auto;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#dce4eef2}.profile-layout{width:min(1050px,100%);min-height:min(720px,calc(100dvh - 40px));display:grid;grid-template-columns:minmax(260px,.88fr) minmax(360px,1.12fr);gap:14px}.profile-preview-panel{position:relative;min-height:420px;overflow:hidden;border:1px solid #ffffffd9;border-radius:18px;background:#cbd7e6;box-shadow:0 7px 25px #45526b1c}.profile-preview{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.preview-caption{position:absolute;left:14px;right:14px;bottom:14px;display:flex;flex-direction:column;gap:3px;pointer-events:none}.preview-caption span,.preview-caption strong{align-self:flex-start;padding:6px 9px;background:#16151b;color:#fff;border-radius:5px;font-size:11px;font-weight:800}.preview-caption strong{font-size:14px}.profile-form{align-self:stretch;max-height:min(720px,calc(100dvh - 40px));overflow-y:auto;padding:25px 28px;background:#fffdf4;border:1px solid #fff;border-radius:18px;box-shadow:0 7px 25px #45526b1c;display:flex;flex-direction:column;gap:7px}.profile-form h1{font-size:23px}.profile-form .screen-intro{margin-bottom:7px}.accessory-fields{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin-bottom:3px}.accessory-fields label{grid-row:1}.accessory-fields label:nth-of-type(2){grid-column:2}.accessory-fields select:nth-of-type(1){grid-column:1;grid-row:2}.accessory-fields select:nth-of-type(2){grid-column:2;grid-row:2}.field-note{margin:0;color:#817a91;font-size:11px}.field-note.valid{color:#3c8666}@media(max-width:760px){.screen{padding:16px}.login-card{padding:26px 22px}.profile-screen{place-items:start center}.profile-layout{width:min(560px,100%);min-height:0;grid-template-columns:1fr;grid-template-rows:minmax(220px,30dvh) auto;gap:10px}.profile-preview-panel{min-height:220px}.profile-form{max-height:none;padding:21px 19px}.profile-form h1{font-size:21px}}@media(max-width:390px){.profile-screen{padding:10px}.profile-layout{grid-template-rows:210px auto}.accessory-fields{gap:4px 8px}.profile-form{padding:18px 15px}.login-card h1{font-size:22px}}
