@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--mint:#c3efba;--ink:#161a28;--muted:#8f96a8;--line:#ffffff12;--panel:#202636}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:#f0f1f2;font:13px 'Space Grotesk','Noto Sans Thai',sans-serif;overflow:hidden}button,input{font:inherit}button{cursor:pointer;border:1px solid #ffffff19;border-radius:7px;background:#252c3e;color:#e3e8ee;padding:9px 13px;transition:background .16s,border-color .16s,transform .16s}button:hover{background:#3b455a;border-color:#bfeab866}button:active{transform:scale(.97)}button:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:3px}[hidden]{display:none!important}#viewport{position:fixed;inset:0;width:100vw;height:100dvh;display:block;touch-action:none}#loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#181d2d;z-index:100}#loading h1{letter-spacing:9px;font-size:26px}#loading p{color:#a7b0c1}.load-logo{font-size:75px;color:var(--mint);animation:pulse 1.8s infinite}@keyframes pulse{50%{opacity:.35;transform:rotate(35deg)}}#webglError{position:fixed;inset:20%;background:#20263a;padding:30px;border-radius:15px;z-index:102}#webglError a{color:var(--mint)}.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#f1f3f6}.logo i{color:var(--mint);font-style:normal;font-size:32px}.logo>span{font-size:20px;font-weight:700;letter-spacing:4px}.logo small{display:block;font-size:7px;letter-spacing:2.6px;color:#9da5b7;margin-top:2px}.studio-header,.world-header{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);position:relative;z-index:3}.studio-header{background:#191e2d}.studio-breadcrumb{font-size:10px;letter-spacing:2px;color:#a6aebd}.studio-breadcrumb span{padding:0 15px;color:#626a7b}.quiet{font-size:11px;background:transparent;border-color:#ffffff26}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 440px;height:calc(100dvh - 84px)}#studio{position:fixed;inset:0;z-index:10;pointer-events:none}#studio header,#studio .wardrobe,#studio button,#previewStage{pointer-events:auto}.preview-panel{position:relative;overflow:hidden;background:transparent}.preview-heading{position:absolute;top:28px;left:42px;z-index:2;pointer-events:none}.edition{font-size:9px;letter-spacing:2px;color:#a6afbe}.preview-heading h1{font-size:clamp(45px,6.3vw,89px);font-weight:500;line-height:.98;letter-spacing:-4px;margin:22px 0 16px}.preview-heading h1 em{font-style:normal;color:var(--mint)}.preview-heading h1>span{color:#b8a6d3;font-size:.7em;position:absolute;margin-left:20px;top:120px}.preview-heading p{font-size:11px;color:#a4acbc}.preview-tag{position:absolute;bottom:200px;left:40px;font-size:8px;color:#b4becf;letter-spacing:1.5px;pointer-events:none}.preview-tag i,.save-dot{display:inline-block;width:5px;height:5px;background:var(--mint);border-radius:50%;margin-right:7px;box-shadow:0 0 10px #b9e9ba66}.preview-tag span{display:block;color:#737d94;font-size:10px;letter-spacing:0;margin:6px 0 0 12px}.preview-tools{position:absolute;bottom:151px;left:40px;display:flex;gap:6px;z-index:2}.preview-tools button{font-size:10px;padding:8px 10px;background:#222a3ccc;backdrop-filter:blur(10px)}.preview-tools button.active{color:var(--mint);border-color:#bce4b65c}.featured-weapon{position:absolute;left:40px;bottom:51px;pointer-events:none}.featured-weapon>span{font-size:8px;letter-spacing:2px;color:#bca7ed}.featured-weapon h3{font-size:19px;letter-spacing:1px;margin:5px 0}.featured-weapon p{font-size:10px;margin:4px 0;color:#929db1}.preview-footer{position:absolute;bottom:16px;left:40px;right:30px;display:flex;justify-content:space-between;font-size:8px;color:#68748b;letter-spacing:1px}#previewStage{position:absolute;inset:0;touch-action:none;cursor:grab}#previewStage:active{cursor:grabbing}.wardrobe{border-left:1px solid var(--line);background:#1e2432;display:flex;flex-direction:column;min-height:0}.wardrobe-head{padding:25px 28px 15px}.overline{font-size:8px;letter-spacing:2px;color:#a2adbd}.wardrobe-head h2{font-size:26px;font-weight:500;letter-spacing:-.6px;margin:8px 0 3px;display:flex;justify-content:space-between}.wardrobe-head h2 span{font-size:23px;color:var(--mint)}.wardrobe-head p{font-size:10px;color:#8e99ac;margin:5px 0 0}.name-field{display:flex;align-items:center;gap:20px;margin:0 28px 16px;font-size:10px;color:#aeb8c7}.name-field span{white-space:nowrap}.name-field input{background:#151c29;border:1px solid #ffffff15;border-radius:6px;color:#eef0f4;padding:9px 11px;width:100%;font-size:12px}.category-tabs{display:flex;margin:0 20px;border-bottom:1px solid #ffffff12;gap:0}.category-tabs button{border:0;border-radius:0;background:none;flex:1;padding:10px 5px;color:#7e8ba3;font-size:10px;position:relative}.category-tabs button span{display:block;font-size:20px;height:30px;font-family:serif}.category-tabs button[aria-selected=true]{color:var(--mint)}.category-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:20%;width:60%;height:2px;background:var(--mint)}#catalog{padding:20px 27px;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#515b70 transparent;min-height:150px}.section-label{display:flex;justify-content:space-between;font-size:11px;color:#c0c9d5;margin:0 0 12px}.section-label small{font-size:8px;letter-spacing:1px;color:#6e7b93}.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:22px}.option-card{position:relative;border:1px solid #ffffff0c;background:#282f40;border-radius:8px;padding:0 0 8px;min-width:0;overflow:hidden}.option-card:hover{background:#303b4e}.option-card.selected{border-color:var(--mint);background:#333e49;box-shadow:0 0 0 1px #c3efba11}.option-card.selected:after{content:'✓';position:absolute;right:5px;top:5px;border-radius:50%;background:var(--mint);color:#273430;width:15px;height:15px;font-size:10px;display:grid;place-items:center}.option-card .thumb{height:81px;display:grid;place-items:center;background:radial-gradient(ellipse,#ffffff09,transparent 70%)}.option-card svg{width:76px;height:76px;filter:drop-shadow(0 5px 4px #0002)}.option-card .card-name{font-size:9px;display:block;color:#cdd5de;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 5px}.option-card .card-sub{display:block;font-size:7px;color:#8290a5;margin-top:2px;letter-spacing:.7px}.weapon-grid{grid-template-columns:1fr 1fr}.weapon-grid .thumb{height:114px}.weapon-grid svg{width:98px;height:98px}.rarity-mythic{color:#81e9b2!important}.rarity-legendary{color:#f0bb86!important}.rarity-epic{color:#bdabe6!important}.segmented{display:flex;gap:7px;margin-bottom:23px}.segmented button{flex:1;font-size:10px;padding:10px;background:#293244}.segmented button.selected{border-color:var(--mint);color:var(--mint)}.swatches{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:23px}.swatches button{padding:0;border-radius:50%;width:27px;height:27px;background:var(--swatch);border:3px solid #1e2432;outline:1px solid #ffffff1a}.swatches button.selected{outline:2px solid var(--mint);box-shadow:0 0 12px #b2e9ad22}.toggle-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;padding:13px 14px;border-radius:7px;background:#273040;font-size:11px}.toggle-row small{display:block;font-size:9px;color:#8e9bb0;margin-top:4px}.toggle{width:36px;height:21px;padding:2px;background:#161d2c;border:1px solid #536178;position:relative;border-radius:15px}.toggle:after{content:'';position:absolute;width:13px;height:13px;top:3px;left:4px;background:#8290a3;border-radius:50%;transition:transform .15s}.toggle.on{background:#c3efba;border-color:#c3efba}.toggle.on:after{background:#30473b;transform:translateX(13px)}.wardrobe-bottom{border-top:1px solid var(--line);padding:14px 27px 12px;background:#1b2230}.wardrobe-bottom>div{display:flex;align-items:center;margin-bottom:13px}.wardrobe-bottom small{font-size:8px;color:#8f9eb0}.wardrobe-bottom #randomize{margin-left:auto;background:none;border:0;font-size:10px;padding:3px;color:#becbbd}.primary{background:var(--mint);color:#22332c;border:0;padding:13px 18px;font-weight:600;border-radius:7px}.primary:hover{background:#dafbd3}.wardrobe-bottom .primary{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:13px 17px}.primary span{font-size:23px;line-height:1}.wardrobe-bottom p{text-align:center;font-size:8px;margin:10px 0 0;color:#6f7d93}.world-header{background:linear-gradient(#171e30ed,#171e3020);border:0;height:86px}.world-header nav{display:flex;gap:7px}.world-header button{font-size:10px;background:#1a2339d9}.world-badge{font-size:9px;letter-spacing:1.5px;color:#bdc8dc}.world-badge i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--mint);margin-right:8px}.world-badge span{color:#7f90ac}kbd{font:9px monospace;border:1px solid #b4becd44;border-bottom-width:2px;border-radius:3px;padding:3px 5px;color:#ccd5e3;margin:0 4px}.glass{background:#141e32e8;backdrop-filter:blur(12px);border:1px solid #c0d4ff22;border-radius:11px;box-shadow:0 8px 30px #0b102822}.player-card{position:absolute;left:30px;top:110px;width:257px;padding:15px 17px}.player-line{display:flex;align-items:center;gap:8px;margin-bottom:13px}.player-line b{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-line>small{font-size:8px;color:#a6b9ce;margin-left:auto}.level-pill{font-size:9px;color:var(--mint);padding:4px 6px;background:#b6deb91a;border:1px solid #c3efba33;border-radius:4px}.meter{height:5px;background:#34415c;border-radius:5px;overflow:hidden}.meter i{display:block;height:100%;background:linear-gradient(90deg,#5eaaa7,#a3efd0);transition:width .2s}.meter.xp{height:3px;margin-top:8px}.meter.xp i{background:#b4a0e5}.meter-label{display:flex;justify-content:space-between;font-size:7px;color:#96a8bd;margin-top:5px;letter-spacing:.4px}.quest-card{position:absolute;right:30px;top:110px;width:235px;padding:18px 20px}.quest-card h2{font-size:17px;font-weight:500;margin:10px 0}.quest-card p{font-size:11px;color:#c1cbe0;margin-bottom:7px}.quest-card>small:last-child{font-size:9px;color:#8395b0}#gemProgress{color:var(--mint);font-size:20px;letter-spacing:10px;margin-bottom:8px}.district-label{position:absolute;bottom:110px;left:30px;pointer-events:none}.district-label small{color:#a1afc6;letter-spacing:2px;font-size:8px}.district-label h2{font-size:24px;font-weight:500;margin:6px 0}.district-label>span{font-size:9px;color:#98a9c1}.mini{position:absolute;right:30px;bottom:103px;padding:12px}.mini>small{font-size:8px;letter-spacing:2px;color:#98a9c1;display:block}.mini>small span{float:right;color:var(--mint)}.mini canvas{display:block;border-radius:5px;margin:9px 0}.mini>div{font-size:8px;color:#a4b5c7}.mini>div i{background:#ddf7cf;display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:4px}.mini>div span{float:right;color:#ef99a1}.weapon-bar{position:absolute;bottom:87px;left:50%;transform:translateX(-50%);display:flex;padding:6px;gap:5px}.weapon-bar button{position:relative;padding:5px 8px;width:60px;min-height:65px;background:#29344a;border-color:transparent}.weapon-bar button.selected{border-color:var(--mint);background:#435550}.weapon-bar .weapon-icon{display:block;font-size:24px;line-height:28px}.weapon-bar small{display:block;font-size:7px;color:#bdcadb}.weapon-bar kbd{position:absolute;top:2px;left:2px;padding:0 3px;font-size:7px;border:0;margin:0}.world-footer{position:absolute;bottom:0;left:0;right:0;padding:17px 30px;display:flex;align-items:center;justify-content:space-between;background:#121c32e6;border-top:1px solid #c7d7ef11;color:#a1b0c9;font-size:9px}.world-footer button{font-size:10px}#interactPrompt{position:absolute;bottom:185px;left:50%;transform:translateX(-50%);background:#172338e8;border:1px solid #b8e9d677;border-radius:7px;padding:11px 20px;color:#d4eee4;font-size:12px}#toast{position:fixed;z-index:90;top:95px;left:50%;max-width:90vw;transform:translate(-50%,-10px);border:1px solid #bddab855;background:#223a3af2;color:#dbf6ce;border-radius:9px;padding:12px 23px;font-size:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{background:#1b2437;color:#eff3f6;border:1px solid #a1b8bb88;border-radius:15px;width:min(500px,90vw);padding:30px;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#0a122888;backdrop-filter:blur(6px)}dialog h2{font-weight:500;font-size:23px}dialog p{font-size:13px;line-height:1.9;color:#b8c7da}dialog .primary{margin-top:10px;width:100%}#floaters{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:5}.damage-text{position:absolute;font-size:18px;font-weight:700;text-shadow:0 2px 7px #10162c;transform:translate(-50%,-50%);white-space:nowrap}#joystick,.touch-actions{display:none}#damageLayer{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 90px #f55c6c55;opacity:0;transition:opacity .15s}
@media(min-width:1450px){.studio-layout{grid-template-columns:minmax(0,1fr) 480px}.wardrobe-head{padding-top:35px}.preview-heading{left:60px;top:45px}.preview-heading h1{font-size:100px}.option-card .thumb{height:100px}.weapon-grid .thumb{height:130px}}
@media(max-width:1000px){.studio-layout{grid-template-columns:minmax(0,1fr) 360px}.wardrobe-head{padding:20px}.name-field{margin:0 20px 14px}#catalog{padding:17px 20px}.preview-heading{left:25px;top:25px}.preview-heading h1{font-size:55px}.preview-heading h1>span{top:85px}.preview-heading p{max-width:160px;line-height:1.7}.preview-tools,.featured-weapon,.preview-tag{left:24px}.preview-footer{left:24px}.studio-header,.world-header{padding:0 22px}.studio-breadcrumb{font-size:8px}.wardrobe-bottom{padding:12px 20px}.world-badge{display:none}.world-header .logo>span{font-size:17px}.weapon-bar button{width:49px}.weapon-bar{gap:3px}.district-label{bottom:180px}.world-footer>span{font-size:8px}.world-footer kbd{margin:0 1px;font-size:8px;padding:3px}}
@media(max-width:700px){.studio-header{height:65px;padding:0 17px}.logo>span{font-size:16px;letter-spacing:3px}.logo i{font-size:25px}.logo small{font-size:6px;letter-spacing:2px}.studio-breadcrumb{display:none}.quiet{font-size:9px;padding:8px 10px}.studio-layout{display:flex;flex-direction:column;height:calc(100dvh - 65px);overflow:auto;scrollbar-width:thin}.preview-panel{min-height:360px;height:42dvh;flex-shrink:0}.preview-heading{left:20px;top:22px}.preview-heading .edition{font-size:6px}.preview-heading h1{font-size:42px;letter-spacing:-2px;margin:15px 0 10px}.preview-heading h1>span{font-size:29px;top:66px;margin-left:9px}.preview-heading p{font-size:8px;width:110px}.preview-tag{left:20px;bottom:93px;font-size:6px}.preview-tag span{font-size:8px}.preview-tools{bottom:40px;left:20px;gap:4px}.preview-tools button{font-size:8px;padding:7px}.featured-weapon{right:17px;left:auto;bottom:94px;text-align:right;max-width:170px}.featured-weapon h3{font-size:14px}.featured-weapon>span{font-size:6px}.featured-weapon p{display:none}.preview-footer{bottom:13px;left:20px;right:20px;font-size:6px}.wardrobe{border:0;border-top:1px solid var(--line);overflow:visible;flex:none}.wardrobe-head{padding:19px 20px 12px}.wardrobe-head h2{font-size:23px}.name-field{margin-bottom:8px}.category-tabs{position:sticky;top:0;z-index:3;background:#1e2432;margin:0;padding:0 15px}.category-tabs button{padding:8px 3px}#catalog{overflow:visible;flex:none;min-height:245px;padding:18px 20px}.option-grid{grid-template-columns:repeat(3,1fr);gap:8px}.option-card .thumb{height:83px}.weapon-grid{grid-template-columns:1fr 1fr}.weapon-grid .thumb{height:105px}.wardrobe-bottom{position:sticky;bottom:0;z-index:4;padding:11px 20px;background:#1b2230f7;backdrop-filter:blur(10px)}.wardrobe-bottom>div{margin-bottom:8px}.wardrobe-bottom p{display:none}.wardrobe-bottom .primary{padding:12px 16px;font-size:12px}.world-header{padding:0 14px;height:72px;gap:6px}.world-header .logo>span{font-size:14px;letter-spacing:2px}.world-header .logo{gap:6px}.world-header .logo small{font-size:5px}.world-header nav{gap:4px}.world-header button{font-size:8px;padding:7px}.world-header #quality,.world-header kbd{display:none}.world-header #sound{font-size:9px}.player-card{top:84px;left:13px;width:175px;padding:11px}.player-line{gap:5px;margin-bottom:10px}.player-line b{font-size:10px;max-width:75px}.player-line>small{display:none}.level-pill{font-size:8px;padding:3px 4px}.meter-label{font-size:6px}.quest-card{top:84px;right:13px;width:153px;padding:12px}.quest-card h2{font-size:13px;margin:6px 0}.quest-card .overline{font-size:6px;letter-spacing:1px}.quest-card p{font-size:9px;margin:6px 0}#gemProgress{font-size:16px;margin-bottom:4px}.quest-card>small:last-child{font-size:7px}.mini{display:none}.district-label{bottom:257px;left:20px}.district-label h2{font-size:17px}.district-label small{font-size:6px}.district-label>span{display:none}.weapon-bar{bottom:61px;max-width:96vw;gap:3px;padding:4px}.weapon-bar button{width:39px;min-height:49px;padding:5px 2px}.weapon-bar .weapon-icon{font-size:20px;line-height:23px}.weapon-bar small{font-size:6px}.weapon-bar kbd{font-size:6px}.world-footer{padding:10px 16px;justify-content:flex-end;background:#162139d9}.world-footer>span{display:none}.world-footer button{font-size:8px}#joystick{display:grid;place-items:center;position:absolute;width:108px;height:108px;left:20px;bottom:124px;border-radius:50%;border:1px solid #e3edf12e;background:#26344b77;touch-action:none;backdrop-filter:blur(5px)}#stick{width:42px;height:42px;border-radius:50%;background:#c2e4d252;border:1px solid #d6f9e480;box-shadow:0 3px 14px #0003;pointer-events:none}.touch-actions{display:block;position:absolute;bottom:120px;right:17px;width:133px;height:134px}.touch-actions button{position:absolute;touch-action:none;border-radius:50%;border-color:#b9f4d466;background:#25384ad9;width:43px;height:43px;font-size:20px;padding:0}#touchAttack{width:67px;height:67px;right:0;bottom:0;font-size:29px;background:linear-gradient(130deg,#779a77dd,#35535bdd);border-color:#d3f1c99c}#touchGuard{left:0;bottom:0}#touchJump{right:5px;top:0}#touchTalk{left:18px;top:17px;font-size:16px}#interactPrompt{bottom:273px;font-size:9px;padding:9px 13px;max-width:90vw;white-space:nowrap}#toast{top:73px;font-size:10px;padding:10px 14px}dialog{padding:23px}dialog h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
input[type=range]{accent-color:var(--mint);cursor:pointer}.camera-controls{position:absolute;right:30px;bottom:335px;width:177px;padding:10px 11px}.camera-controls>small{display:flex;justify-content:space-between;color:#aabed0;letter-spacing:1px;font-size:8px}.camera-controls b{color:var(--mint);font-weight:500}.camera-controls>div,.preview-zoom>div{display:flex;gap:5px;align-items:center}.camera-controls input{width:83px;height:21px;min-width:0}.camera-controls button{font-size:11px;padding:4px 7px}.camera-controls>div{margin-top:6px}.camera-controls>button{width:100%;font-size:9px;margin-top:6px;background:#283a4a}.preview-zoom{position:absolute;right:20px;top:27px;width:182px;pointer-events:auto;z-index:3;background:#1c2535c9;border:1px solid #c6d6e619;padding:9px;border-radius:9px;backdrop-filter:blur(10px)}.preview-zoom input{width:99px;min-width:0}.preview-zoom button{font-size:10px;padding:5px 8px}.preview-zoom>div+div{margin-top:6px}.preview-zoom>div+div button{flex:1;font-size:9px;padding:6px 4px}.preview-zoom>small{display:block;color:#8fa2b9;font-size:8px;margin-top:7px;text-align:center}.studio-expanded .studio-layout{grid-template-columns:1fr}.studio-expanded .wardrobe{display:none}.studio-expanded .preview-heading{opacity:.5}.studio-expanded .preview-panel{height:calc(100dvh - 84px)}.studio-expanded .preview-tools{left:50%;transform:translateX(-50%);bottom:50px}.studio-expanded .preview-tag{bottom:114px}.studio-expanded .featured-weapon{bottom:50px}.audio-panel{position:fixed;right:25px;top:91px;z-index:40;width:310px;padding:19px 20px;background:#1c283cef;border:1px solid #bfdbc53c;border-radius:12px;backdrop-filter:blur(20px);box-shadow:0 20px 70px #08102088}.audio-panel header{display:flex;align-items:center;justify-content:space-between}.audio-panel header small{color:var(--mint);font-size:7px;letter-spacing:1.6px}.audio-panel h2{font-size:16px;letter-spacing:1px;margin:6px 0 0}.audio-panel header button{font-size:19px;padding:2px 9px;background:transparent}.audio-panel p{font-size:9px;color:#99abc1;margin:13px 0 19px}.audio-power{display:flex;justify-content:space-between;font-size:11px;padding-bottom:15px;border-bottom:1px solid #b2c7df1a}.audio-power input{accent-color:var(--mint)}.audio-slider{display:block;font-size:10px;color:#d0dbe7;margin-top:16px}.audio-slider b{float:right;color:#a0b9c2;font-size:9px;font-weight:400}.audio-slider input{display:block;width:100%;margin-top:10px}.audio-panel footer{display:flex;align-items:center;justify-content:space-between;margin-top:19px;gap:8px}.audio-panel footer small{font-size:7px;color:#91a6ba;max-width:155px}.audio-panel footer button{font-size:9px;padding:7px 9px}.studio-header #studioSound{margin-left:auto;margin-right:10px}.studio-header .studio-breadcrumb{position:absolute;left:50%;transform:translateX(-50%)}
@media(max-width:1000px){.preview-zoom{top:auto;bottom:240px;right:16px;width:158px}.preview-zoom input{width:75px}.studio-header .studio-breadcrumb{display:none}.studio-expanded .featured-weapon{left:24px}.studio-expanded .preview-tools{left:auto;right:24px;transform:none}}
@media(max-width:700px){.camera-controls{right:13px;bottom:280px;width:145px;padding:8px}.camera-controls input{width:66px}.camera-controls>small{font-size:6px}.camera-controls>button{font-size:8px}.camera-controls button{padding:3px 6px}.preview-zoom{top:10px;bottom:auto;right:13px;width:146px;padding:7px}.preview-zoom input{width:63px}.preview-zoom button{padding:3px 7px}.preview-zoom>div+div button{font-size:8px;padding:5px 3px}.preview-zoom>small{font-size:6px}.studio-expanded .preview-panel{height:calc(100dvh - 65px)}.studio-expanded .studio-layout{overflow:hidden}.studio-expanded .preview-tools{left:50%;right:auto;bottom:48px;transform:translateX(-50%);white-space:nowrap}.studio-expanded .featured-weapon{left:20px;right:auto;bottom:160px;text-align:left}.studio-expanded .preview-tag{bottom:115px}.studio-header #studioSound{margin-right:7px;font-size:8px;padding:7px}.audio-panel{right:12px;top:75px;width:min(310px,calc(100vw - 24px))}.district-label{bottom:245px}#interactPrompt{bottom:390px}}
:root{--mint:#bfe6d4;--gold:#dcc69d}.logo i{color:var(--gold)}.preview-heading h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(42px,5.5vw,75px);letter-spacing:-3px}.preview-heading h1 em{color:#bedfd0}.preview-heading h1>span{color:#d8bf96}.edition,.overline{color:#c9bea8}.option-card.locked .thumb{opacity:.48}.option-card.locked .card-name{color:#c9bd9f}.option-card.locked:before{content:'SHOP';position:absolute;left:5px;top:5px;color:#d8c59d;font-size:6px;letter-spacing:1px;padding:3px;background:#222a36cc;border-radius:3px;z-index:1}.wallet{position:absolute;left:30px;top:263px;width:257px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#d7c6a1}.wallet button{font-size:9px;padding:6px;background:#2c3e4a}.wallet kbd{font-size:7px;margin:0}.wallet b{font-weight:500}#waypointHud{position:absolute;top:99px;left:50%;transform:translateX(-50%);padding:9px 15px;border:1px solid #d4c39a77;border-radius:20px;font-size:10px;background:#233d42e0;color:#e7d7ac;pointer-events:none;max-width:80vw;white-space:nowrap}.in-shop .quest-card,.in-shop .mini,.in-shop .weapon-bar{display:none}.in-shop .camera-controls{bottom:130px}.in-shop .district-label small{color:#d5c79c}.shop-panel{position:fixed;right:24px;top:98px;bottom:28px;z-index:19;width:410px;max-width:calc(100vw - 28px);padding:22px;background:#202a37f2;border:1px solid #d4c09a55;border-radius:13px;backdrop-filter:blur(18px);overflow:auto;scrollbar-width:thin;box-shadow:0 20px 80px #0b172455}.shop-panel>header{display:flex;align-items:center;justify-content:space-between}.shop-panel header small{font-size:7px;letter-spacing:1.4px;color:#c8b58f}.shop-panel h2{font-size:26px;font-weight:500;margin:8px 0 0}.shop-panel header button{font-size:21px;padding:3px 11px}.shop-panel>p{font-size:10px;color:#acb5c1;line-height:1.8}.shop-wallet{display:flex;align-items:center;justify-content:space-between;background:#374447;padding:12px 15px;border-radius:7px;font-size:10px;margin:17px 0;color:#c4d1ce}.shop-wallet b{color:#ecdbab;font-size:15px}.shop-item{display:flex;gap:13px;padding:16px 0;border-bottom:1px solid #c8d7cf1a}.shop-item-thumb{width:92px;height:120px;flex-shrink:0;background:radial-gradient(ellipse,#7d93892b,transparent 75%),#283643;border:1px solid #ffffff0c;border-radius:8px;display:grid;place-items:center}.shop-item-thumb svg{width:85px;height:105px;filter:drop-shadow(0 8px 5px #10192666)}.potion-icon{font-size:50px;color:#92d6dd;text-shadow:0 0 22px #91d5dc66}.shop-item-info{flex:1;min-width:0}.shop-item-info>small{font-size:6px;letter-spacing:1px;color:#adbdab}.shop-item-info h3{font-size:16px;font-weight:500;margin:5px 0 8px}.shop-item-info p{font-size:9px;color:#a7b6c2;line-height:1.7;min-height:32px}.shop-item-info>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.shop-item-info b{font-size:9px;font-weight:400;color:#dacda5}.shop-item-info button{font-size:9px;padding:8px 10px;border-color:#c8d5ac50;color:#d6e7cc;background:#40574f}.shop-item-info button:disabled{background:#344249;color:#91a59b;cursor:default}.shop-panel>footer{font-size:8px;color:#8a9fae;line-height:1.9;text-align:center;margin-top:20px}#worldMap{position:fixed;inset:0;z-index:25;background:radial-gradient(ellipse at 20% 30%,#30474c,#192934 75%);overflow:auto}#worldMap>header{height:110px;max-width:1240px;margin:0 auto;padding:28px 36px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b9ccc222}#worldMap header small{color:#c2c2a8;font-size:8px;letter-spacing:2px}#worldMap h1{font-size:26px;font-weight:500;margin:7px 0 0}#worldMap header button{font-size:10px;background:#344851}#worldMap>main{display:grid;grid-template-columns:minmax(0,1fr) 310px;max-width:1240px;margin:0 auto;padding:27px 36px;gap:35px}.map-kicker{display:flex;justify-content:space-between;font-size:7px;color:#9db5b1;letter-spacing:1.2px;margin-bottom:14px}.map-main{min-width:0}#mapArtwork{border:1px solid #9eb6a842;border-radius:9px;overflow:hidden;box-shadow:0 20px 75px #101d2a44;background:#263e48}#mapArtwork svg{display:block;width:100%;max-height:calc(100dvh - 220px)}.map-caption{display:flex;justify-content:space-between;font-size:8px;color:#8fa9a5;margin-top:14px;gap:10px}.map-caption b{font-weight:400;color:#c9dac7}#worldMap aside>h2{font-size:24px;font-weight:500;margin:9px 0 3px}#mapDiscovered{font-size:10px;color:#a8b9a3}#mapPlaces{max-height:calc(100dvh - 445px);min-height:190px;overflow:auto;scrollbar-width:thin;margin:20px 0 16px}#mapPlaces>button{display:flex;width:100%;gap:11px;align-items:center;background:#263d45;border-color:#a8beac15;margin-bottom:6px;padding:10px 12px;text-align:left}#mapPlaces>button>span{color:#e1cc99;font-size:16px;width:22px;text-align:center}#mapPlaces b{display:block;font-size:11px;font-weight:500;color:#d8e1d3}#mapPlaces small{display:block;font-size:7px;letter-spacing:.7px;margin-top:3px;color:#8ca8a8}#mapPlaces em{margin-left:auto;font-size:7px;font-style:normal;color:#b6cba8}.map-selection{border:1px solid #bcc6a832;border-radius:9px;padding:16px;background:#293e46}.map-selection h3{margin:0 0 9px;font-size:16px;font-weight:500}.map-selection p{font-size:10px;color:#a9bab5;line-height:1.8;min-height:36px}.map-selection .primary{width:100%;font-size:11px}.map-selection .primary:disabled{opacity:.4;cursor:default}.map-selection>button:last-child{display:block;margin:7px auto 0;font-size:8px;border:0;background:transparent;color:#91a7a5}
@media(max-width:1000px){.world-header{padding:0 16px}.world-header nav{gap:4px}.world-header button{font-size:9px;padding:8px}.world-header kbd{display:none}.shop-panel{width:370px}#worldMap>main{grid-template-columns:minmax(0,1fr) 260px;gap:22px;padding:24px}#worldMap>header{padding:25px}.preview-heading h1{font-size:46px}.wallet{width:235px}.world-badge{display:none}}
@media(max-width:700px){.world-header #quality{display:none}.world-header .logo small{font-size:5px}.world-header button{font-size:7px;padding:6px}.world-header #sound{font-size:8px}.world-header nav{gap:3px}.world-header .logo>span{font-size:12px}.world-header .logo i{font-size:21px}.world-header{gap:5px;padding:0 10px}.wallet{left:13px;top:215px;width:175px;padding:7px 8px;font-size:8px}.wallet button{font-size:7px;padding:5px}.wallet kbd{display:none}#waypointHud{top:73px;font-size:8px;padding:7px 12px;max-width:90vw}.shop-panel{left:12px;right:12px;top:76px;bottom:15px;width:auto;max-width:none;padding:18px}.shop-panel h2{font-size:24px}.shop-item{gap:12px}.shop-item-thumb{width:83px;height:116px}.shop-item-info h3{font-size:15px}.shop-item-info>div{gap:5px}.shop-item-info button{font-size:8px}.in-shop .camera-controls{bottom:275px}.preview-heading h1{font-size:35px;letter-spacing:-1.8px}.preview-heading h1>span{display:none}.preview-heading p{width:112px}.studio-header .logo>span{font-size:14px}#worldMap>header{height:95px;padding:19px 17px}#worldMap header small{font-size:6px;letter-spacing:1px}#worldMap h1{font-size:17px;max-width:220px}#worldMap header button{font-size:8px;padding:8px}#worldMap>main{display:block;padding:18px 16px}.map-kicker{font-size:6px;letter-spacing:.5px}.map-kicker>span:last-child{display:none}#mapArtwork svg{max-height:none}.map-caption{font-size:6px;margin:10px 0 25px}#worldMap aside>h2{font-size:23px}#mapPlaces{max-height:285px;min-height:0;margin-top:16px}.map-selection{margin-bottom:15px}}
.preview-heading h1{font-size:clamp(35px,4.8vw,68px);letter-spacing:-2.5px}.animation-picker{position:absolute;right:20px;top:158px;width:182px;z-index:3;pointer-events:auto;padding:10px;background:#20302dc9;border:1px solid #b3d1bc24;border-radius:9px;backdrop-filter:blur(8px)}.animation-picker label{display:block;font-size:8px;color:#b9cfbf;margin-bottom:7px}.animation-picker select{width:100%;font:inherit;font-size:11px;padding:8px;border:1px solid #b9cebe33;border-radius:6px;color:#dfe8de;background:#273f3d;cursor:pointer}#comboText{position:absolute;left:50%;top:26%;transform:translateX(-50%);font-size:20px;font-weight:700;letter-spacing:3px;color:#f8e1a1;text-shadow:0 3px 18px #15232f;pointer-events:none}#touchSprint.active{background:#aacfa4;color:#253b30}
@media(max-width:1000px){.animation-picker{right:16px;top:145px;width:158px}.preview-heading h1{font-size:39px}.world-footer kbd{padding:2px}.world-footer>span{font-size:7px}}
@media(max-width:700px){.preview-heading h1{font-size:29px;letter-spacing:-1.5px}.animation-picker{top:104px;right:13px;width:146px;padding:8px}.animation-picker label{font-size:7px;margin-bottom:5px}.animation-picker select{font-size:9px;padding:6px}.preview-heading p{font-size:7px;width:110px}#touchSprint{left:-9px;top:-42px;width:43px;height:31px;border-radius:14px;font-size:10px}#touchDodge{right:9px;top:-45px;width:43px;height:32px;border-radius:14px;font-size:23px}#comboText{top:35%;font-size:14px;letter-spacing:2px}.studio-expanded .animation-picker{top:125px}.world-footer{padding:10px 16px}}
.race-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.race-card{position:relative;padding:10px 10px 14px;min-width:0;text-align:center;background:#293444;border:1px solid #bdcfbe16;border-radius:12px}.race-card.selected{border-color:#bdddc5;background:#384b49;box-shadow:0 0 0 1px #bdddc518}.race-card.selected:after{content:'✓';position:absolute;right:8px;top:8px;width:17px;height:17px;border-radius:50%;background:#c4e1c7;color:#304a3b;font-size:11px;display:grid;place-items:center}.race-thumb{display:grid;place-items:center;height:105px;background:radial-gradient(ellipse,#a9c5bd13,transparent 70%)}.race-thumb svg{width:100px;height:100px;filter:drop-shadow(0 6px 5px #101d2a33)}.race-card>b{font-size:11px;letter-spacing:1.5px;display:block;color:#e2eadc;margin-top:4px}.race-card>strong{font-size:11px;font-weight:400;display:block;margin:4px 0;color:#c5d3cf}.race-card>small{font-size:8px;line-height:1.8;display:block;min-height:28px;color:#9dafb7}.race-note{font-size:9px;text-align:center;color:#93a9b2;line-height:1.9;margin:18px 0 5px}#raceBadge{position:absolute;top:-9px;left:15px;font-size:7px;letter-spacing:1.3px;color:#c9dfc7;background:#2f4547;padding:3px 7px;border:1px solid #b6d1bc38;border-radius:5px}.category-tabs button{font-size:9px}.category-tabs button span{font-size:18px}
@media(max-width:700px){.race-thumb{height:100px}.race-thumb svg{width:96px;height:96px}.race-card{padding:9px 8px 12px}.race-card>small{font-size:7px}.category-tabs{padding:0 9px}.category-tabs button{font-size:8px;padding:8px 2px}#raceBadge{font-size:6px;left:10px;top:-8px}}
.back-grid{grid-template-columns:repeat(2,1fr)}.back-grid .thumb{height:100px}.back-grid svg{width:95px;height:95px}.category-tabs{overflow-x:auto;scrollbar-width:none}.category-tabs button{min-width:47px;flex:1 0 47px}.category-tabs::-webkit-scrollbar{display:none}.preview-zoom>div+div button{font-size:8px;padding:6px 2px}
@media(max-width:700px){.back-grid .thumb{height:100px}.category-tabs button{min-width:45px;flex-basis:45px}.preview-zoom>div+div button{font-size:7px;padding:5px 1px}.preview-zoom{width:157px}.preview-zoom input{width:74px}.animation-picker{width:157px}}
.back-view-tools{display:flex;gap:7px;margin:0 0 18px}.back-view-tools button{flex:1;padding:9px 5px;font-size:10px;background:#304948;border-color:#bcd6bd33;color:#dce8d5}

.audience-filter{display:flex;gap:8px;margin:6px 0 4px}.audience-filter button{flex:1;padding:9px;border:1px solid #ffffff20;border-radius:9px;background:#ffffff06;color:#c6c4d7;cursor:pointer}.audience-filter button.selected{border-color:#b5dbba;background:#acd6b51c;color:#d9efdb}.filter-note{font-size:11px;color:#9999b2;margin:5px 0 20px}.category-tabs{overflow-x:auto;flex-shrink:0}.category-tabs button{flex-shrink:0;min-width:54px}

#movementPad{position:fixed;left:22px;bottom:105px;z-index:4;padding:12px;border:1px solid #ffffff20;border-radius:12px;background:#202636d9;backdrop-filter:blur(10px)}#movementPad small{display:block;color:#b9c8c7;font-size:10px;margin:3px 0}#movementPad>div{display:grid;grid-template-columns:repeat(3,36px);gap:4px;margin:8px 0}#movementPad button{padding:8px;touch-action:none}#movementPad button[data-move="w"]{grid-column:2}#movementPad button[data-move="a"]{grid-column:1;grid-row:2}#movementPad button[data-move="s"]{grid-column:2;grid-row:2}#movementPad button[data-move="d"]{grid-column:3;grid-row:2}#movementPad button[aria-pressed="true"]{background:#669982}body:has(#studio:not([hidden])) #movementPad{display:none}@media(pointer:coarse){#movementPad{display:none}}

#interactPrompt{pointer-events:auto;cursor:pointer;z-index:6;touch-action:manipulation}#interactPrompt:hover{background:#31554f;border-color:#c4f6df}

/* Keep touch play clear; secondary information is available from the menu. */
#toggleHud{display:none}
@media(max-width:700px),(pointer:coarse) and (max-width:1100px){
#toggleHud{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:44px}
.world-header{height:50px;padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));background:#17203399;border:0}
.world-header .logo small,.world-header .logo i,.world-badge{display:none}.world-header .logo>span{font-size:11px;letter-spacing:1px}.world-header nav{gap:4px}.world-header nav button{min-height:40px;padding:5px 8px;font-size:9px}
#worldUI:not(.hud-expanded) #help,#worldUI:not(.hud-expanded) #sound,#worldUI:not(.hud-expanded) #quality,#worldUI:not(.hud-expanded) .quest-card,#worldUI:not(.hud-expanded) .camera-controls,#worldUI:not(.hud-expanded) .weapon-bar{display:none}
.player-card{top:58px;left:max(10px,env(safe-area-inset-left));width:150px;padding:7px 9px;border-radius:9px;background:#202636a8}.player-line{margin-bottom:5px;gap:4px}.player-line b{font-size:9px;max-width:86px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-line>small{display:none}.level-pill{font-size:8px;padding:2px 4px}.meter{height:4px}.meter.xp{height:3px}.meter-label{font-size:6px;margin:3px 0;line-height:1.2}
.wallet{top:139px;left:max(10px,env(safe-area-inset-left));width:150px;padding:4px 6px;font-size:8px;background:#202636a8}.wallet button{min-height:32px;font-size:8px;padding:4px}.wallet kbd,.mini,.world-footer>span,.district-label>small,.district-label>span{display:none}
.district-label{left:50%;top:auto;bottom:calc(8px + env(safe-area-inset-bottom));transform:translateX(-50%);text-align:center;pointer-events:none}.district-label h2{font-size:10px;margin:0;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d5e4dd}
.world-footer{position:absolute;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);padding:0;border:0;background:transparent}.world-footer button{min-width:44px;min-height:40px;font-size:9px;padding:6px 10px;background:#202636a8}
#joystick{display:grid;place-items:center;position:absolute;width:92px;height:92px;left:max(16px,env(safe-area-inset-left));bottom:calc(38px + env(safe-area-inset-bottom));background:#26344b42;border-color:#e3edf12e;touch-action:none}.touch-actions{display:block;position:absolute;right:max(14px,env(safe-area-inset-right));bottom:calc(34px + env(safe-area-inset-bottom));width:126px;height:122px}.touch-actions button{width:42px;height:42px;font-size:18px;touch-action:none;background:#25384aa8}.touch-actions #touchAttack{width:58px;height:58px;font-size:25px;right:0;bottom:0}.touch-actions #touchGuard{left:0;bottom:0}.touch-actions #touchJump{right:0;top:10px}.touch-actions #touchTalk{left:0;top:10px;font-size:14px}.touch-actions #touchSprint{left:0;top:-38px;width:48px;height:40px;font-size:10px}.touch-actions #touchDodge{right:0;top:-38px;width:44px;height:40px;font-size:22px}
#interactPrompt{bottom:calc(205px + env(safe-area-inset-bottom));font-size:10px;min-height:40px;max-width:85vw;white-space:normal;padding:7px 12px;background:#172338c9}#waypointHud{top:54px;left:auto;right:10px;transform:none;max-width:42vw;font-size:8px;padding:7px}
.hud-expanded .world-header nav{flex-wrap:wrap;justify-content:flex-end;max-width:78vw}.hud-expanded .world-header{height:auto;min-height:50px;align-items:flex-start;padding-top:5px;padding-bottom:5px}.hud-expanded .quest-card{top:104px;right:10px;width:145px;padding:9px}.hud-expanded .camera-controls,.in-shop.hud-expanded .camera-controls{right:10px;bottom:240px;width:140px;padding:7px}.hud-expanded .weapon-bar{bottom:calc(180px + env(safe-area-inset-bottom));max-width:95vw}.hud-expanded .weapon-bar button{width:38px;min-height:44px}.hud-expanded .weapon-bar kbd{display:none}
#movementPad{display:none}
}
@media(max-height:500px) and (pointer:coarse){.player-card{top:54px;width:135px}.wallet{top:130px;width:135px}#joystick{bottom:20px;width:84px;height:84px}.touch-actions{bottom:18px}#interactPrompt{bottom:180px}.hud-expanded .quest-card{top:95px}.hud-expanded .camera-controls,.in-shop.hud-expanded .camera-controls{bottom:190px}.hud-expanded .weapon-bar{bottom:170px}}

.soul-portrait img{width:100%;height:100%;object-fit:contain;border-radius:16px;background:#101213}
