:root{color-scheme:light}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:"Microsoft JhengHei",sans-serif;background:#223a28 url('ui/common0_bod040.png') center/cover no-repeat;color:#f7efd2}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #fff4ac;outline-offset:3px}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#creator{position:absolute;inset:0;background:#0002;overflow:hidden}.creator-scene{position:absolute;left:50%;top:50%;width:1100px;height:620px;transform:translate(-50%,-50%) scale(var(--scene-scale,1));transform-origin:center}.wood-frame{position:absolute;left:50px;top:35px;width:1000px;height:535px;pointer-events:none}.scene-title{position:absolute;top:58px;left:423px;width:255px;text-align:center;margin:0;font-size:24px;font-weight:bold;color:#fff9d5;text-shadow:0 2px 3px #65542e}.continue-button{position:absolute;top:18px;right:65px;border:0;background:#33281999;color:#fff3c4;font-size:16px;padding:4px 15px;border-radius:4px}.sex-choice{position:absolute;left:74px;top:135px;display:flex;flex-direction:column;gap:1px}.sex-choice button{position:relative;width:175px;height:178px;border:0;background:url('ui/common0_kin003D.png') center/contain no-repeat;font-size:30px;font-weight:bold;color:#81652c;text-shadow:0 1px #f6ce77}.sex-choice button.selected{background-image:url('ui/common0_kin003L.png');color:#785c24}.hairstyles{position:absolute;left:245px;top:112px;width:125px;height:425px;text-align:center}.hair-arrow{display:block;height:24px;margin:0 auto;border:0;background:none;color:#fff0b5;font-size:19px;text-shadow:0 2px #4f422d}.hair-option{display:block;position:relative;width:112px;height:112px;margin:0 auto;border:0;background:url('ui/Head_BG.png') center/contain no-repeat;opacity:.72;transition:transform .12s}.hair-option.selected{width:130px;height:130px;margin-left:-3px;background-image:url('ui/Head_BG_Light.png');opacity:1}.head-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.head-layer-1{filter:sepia(.85) saturate(2.4) brightness(.65)}.head-layer-2{filter:sepia(.3) saturate(1.4)}.pixel-hair{width:90%;height:90%;object-fit:contain;image-rendering:pixelated}.hair-select-label{display:inline-block;font-size:14px;color:#eee0b3;margin-top:4px}#hair-select{border:1px solid #8d794f;background:#ddd0a8;color:#51422c;border-radius:3px;font-size:14px;width:50px}#hair-count{display:none}.mirror{position:absolute;left:360px;top:107px;width:388px;height:469px}.mirror-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.magic-circle{position:absolute;left:87px;top:260px;width:217px;height:97px;opacity:.8;filter:sepia(1);pointer-events:none}#preview{position:absolute;left:54px;top:39px;width:280px;height:328px;image-rendering:pixelated;pointer-events:none}.rotate-button{position:absolute;top:203px;width:28px;height:38px;border:0;background:url('ui/common0_but134.png') center/contain no-repeat;opacity:.7}#rotate-left{left:52px}#rotate-right{right:50px;transform:scaleX(-1)}#direction{position:absolute;top:368px;left:154px;width:80px;text-align:center;font-size:13px;color:#dfce99}.color-paper,.name-paper{position:absolute;left:727px;top:180px;width:310px;height:306px;background:url('ui/common0_bod043.png') center/100% 100% no-repeat;color:#6e6044}.color-tabs{position:absolute;left:35px;top:-47px;width:264px;height:47px;display:flex;gap:2px}.color-tabs button{width:86px;border:0;background:url('ui/common0_but088D.png') center/100% 100% no-repeat;font-size:20px;font-weight:bold;color:#d1c3ae;padding:0 0 2px}.color-tabs button.selected{background-image:url('ui/common0_but088L.png');color:#f6e9cc}#sliders{position:absolute;left:27px;top:29px;width:269px}.slider-row{position:relative;display:flex;align-items:center;height:58px;gap:0}.slider-row label{width:28px;font-size:24px;font-weight:bold;color:#92856b}.color-minus,.color-plus{flex:0 0 44px;width:44px;height:44px;border:0;padding:0;background:center/contain no-repeat}.color-minus{background-image:url('ui/common0_but130.png')}.color-plus{background-image:url('ui/common0_but131.png')}.slider-row input{--track:#cb323a;width:115px;min-width:0;margin:0;height:19px;appearance:none;background:linear-gradient(to right,var(--track) var(--fill),#474239 var(--fill));clip-path:polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%);cursor:pointer;touch-action:none}.slider-row:nth-child(2) input{--track:#349779}.slider-row:nth-child(3) input{--track:#388fce}.slider-row input::-webkit-slider-thumb{appearance:none;width:6px;height:25px;background:#fff5c977}.slider-row input::-moz-range-thumb{width:5px;height:25px;border:0;background:#fff5c977}.slider-row output{position:absolute;right:11px;bottom:-2px;font-size:11px;color:#776c57}.random-buttons{position:absolute;bottom:18px;left:0;display:flex;gap:0;width:100%;justify-content:center}.random-buttons button{background:url('ui/common0_but132.png') center/100% 100% no-repeat;border:0;width:145px;height:46px;font-size:18px;font-weight:bold;color:#947133;text-shadow:0 1px #f9e2a0}.name-paper{padding:25px 30px}.name-paper h2{font-size:21px;margin:6px 0 24px;text-align:center;color:#72603e}.name-paper label{display:block;font-size:17px;margin-bottom:8px}.name-paper input{width:100%;height:44px;background:#e9dfc5;border:2px solid #ad9a70;border-radius:4px;color:#4f402c;padding:7px 10px;font-size:19px}.name-hint{font-size:16px;line-height:1.8;text-align:center;color:#7d7053}#error{min-height:22px;margin:7px 0;color:#aa3828;font-size:14px}.step-controls{position:absolute;inset:0;pointer-events:none}.step-controls button{pointer-events:auto;position:absolute;top:517px;height:90px;border:0;background:none;font-size:32px;color:#fffdf1;text-shadow:0 2px 2px #282116;font-weight:bold;display:flex;align-items:center;gap:0;white-space:nowrap}.step-controls img{width:110px;height:113px;object-fit:contain}.step-controls span{padding-top:8px}#previous-step{left:53px}#next-step{right:54px}#next-step img{transform:scaleX(-1)}#create{right:85px;top:533px;height:65px;padding:10px 28px;background:url('ui/common0_but132.png') center/100% 100% no-repeat;color:#705122;text-shadow:0 1px #ffe5a4;font-size:26px}button:hover:not(:disabled){filter:brightness(1.12)}#status{display:none;position:fixed;bottom:4%;left:50%;transform:translateX(-50%);background:#382b1ded;border:1px solid #bca065;padding:12px 20px;color:#fbe9b8;z-index:20;max-width:90%;text-align:center}#status.show{display:block}
#world{position:fixed;inset:0;overflow:hidden;color:#f5edd4}#field{width:100%;height:100%;display:block;touch-action:none}.world-top{position:absolute;top:20px;left:20px;right:20px;display:flex;align-items:start;justify-content:space-between;gap:15px;pointer-events:none}.world-top>*{pointer-events:auto}.player-card{display:flex;gap:12px;padding:12px 18px;background:#302b1be8;border:2px solid #9d8650;min-width:210px}.seal{display:grid;place-items:center;width:36px;height:40px;background:#8d442c;border:1px solid #d8b572;font:22px serif;color:#f2dca1}.player-card strong{font-size:17px}.player-card small{display:block;color:#d2c496;font-size:12px;margin:4px 0}.hp{width:140px;height:5px;background:#433c25}.hp i{display:block;width:100%;height:100%;background:#97ae5e}.location{text-align:center;padding:10px 20px;background:#312a1ddd;border-bottom:1px solid #b2a66d}.location span{font:21px serif;letter-spacing:4px;color:#e3ce9b}.location small{display:block;color:#c4b98f;font-size:12px;margin-top:6px}.secondary{background:url('ui/common0_but132.png') center/100% 100% no-repeat;border:0;padding:15px 28px;color:#7c5e29;font-size:16px;font-weight:bold}.welcome{position:absolute;top:22%;left:50%;transform:translateX(-50%);text-align:center;pointer-events:none;transition:opacity 1s;width:90%;text-shadow:0 2px 4px #000}.welcome h2{font:32px serif;color:#f6e6b8;margin:12px}.welcome p{font-size:16px;color:#e4e8d1}.eyebrow{font-size:12px;letter-spacing:3px;color:#d6c28a}.world-bottom{position:absolute;bottom:20px;left:24px;right:24px;display:flex;justify-content:space-between;color:#eee3bc;font-size:13px;gap:15px;pointer-events:none;text-shadow:0 2px 4px #000}kbd{border:1px solid #b5b99b;padding:3px 5px;margin:0 2px;border-radius:3px;background:#263626}#touchpad{display:none;position:absolute;bottom:60px;left:20px;text-align:center}#touchpad button{width:42px;height:42px;background:#4b432ecc;border:1px solid #bca170;border-radius:8px;margin:2px;touch-action:none;color:#eeddb5}@media(max-width:650px){.world-top{top:12px;left:12px;right:12px;gap:8px}.player-card{min-width:0;padding:10px}.location{position:absolute;top:85px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:8px}.location span{font-size:16px}.location small{display:none}.world-bottom{font-size:11px;left:12px;right:12px}.world-bottom span:first-child{display:none}#touchpad{display:block}.welcome{top:28%}.welcome h2{font-size:25px}.welcome p{font-size:13px}}
/* Original artwork layout: controls remain inside the paper's visible interior. */
#language{position:fixed;z-index:30;right:max(8px,env(safe-area-inset-right));top:max(6px,env(safe-area-inset-top));max-width:145px;padding:5px;background:#3e3229e8;color:#fff0cc;border:1px solid #baa16b;font-size:16px}
.continue-button{right:180px;top:8px}.color-paper{left:716px;width:310px}.color-tabs{left:44px;width:240px}.color-tabs button{width:80px;font-size:18px}#sliders{left:46px;width:230px}.slider-row label{width:24px;font-size:22px}.slider-row .color-minus,.slider-row .color-plus{flex-basis:38px;width:38px;height:44px}.slider-row input{width:128px}.slider-row output{display:none}.random-buttons{left:20px;width:275px}.random-buttons button{width:137px;font-size:16px}.hair-select-label{font-size:0}#hair-select{font-size:16px}#direction{display:none}#create{display:none!important}
.attribute-step .sex-choice,.attribute-step .hairstyles{display:none}.attribute-step .mirror{left:210px;top:104px}.attribute-paper{position:absolute;left:613px;top:105px;width:360px;height:408px;background:url('ui/common0_bod044.png') center/100% 100% no-repeat;color:#776949;padding:43px 33px 26px 48px}.stat-row{display:flex;align-items:center;height:48px}.stat-row>span{width:79px;font-size:17px;font-weight:bold}.stat-row output{width:85px;background:#403d34;color:white;text-align:center;font-size:19px;clip-path:polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%)}.stat-row button{flex-basis:39px;width:39px;height:42px}#remaining{text-align:center;color:#fff8e4;font-size:16px;margin:17px 0 0}#elements{position:absolute;left:155px;top:145px;display:flex;flex-direction:column;gap:14px}.element{width:65px;height:65px;border-radius:50%;border:5px ridge #d8b265;background:radial-gradient(circle at 35% 25%,#aba596,#514b42);box-shadow:inset 0 0 0 2px #fff3cb;color:white;font-size:23px;font-weight:bold}.element.earth.selected{background-color:#c98a39}.element.water.selected{background-color:#54b7d3}.element.fire.selected{background-color:#ee5874}.element.wind.selected{background-color:#60ad68}#element-description{position:absolute;left:298px;top:154px;width:242px;font-size:17px;line-height:1.6;font-weight:bold;color:#e7d5b1;margin:0;pointer-events:none}#element-description[data-element=water]{color:#b3eff0}#element-description[data-element=fire]{color:#f2c891}#element-description[data-element=wind]{color:#d2e7a2}.attribute-step #preview{top:64px}.name-entry{position:absolute;left:290px;top:505px;width:225px;text-align:center}.name-entry input{width:200px;height:36px;background:#2a2037 url('ui/common0_kin004L_P.png') center/100% 100%;border:0;border-radius:18px;text-align:center;color:#fff0c5;font-size:19px;padding:5px 12px}.name-entry input::placeholder{color:#cbbb92}.name-entry small{display:block;font-size:13px;color:#ded1b4;margin-top:4px}#random-name{position:absolute;left:216px;top:0;width:45px;height:48px;border:0;background:url('ui/common0_but091D.png') center/contain no-repeat}.name-entry #error{position:absolute;top:55px;width:280px;left:-20px;background:#2c1c22e8;color:#fff2d5;margin:0}.name-entry #error:empty{display:none}.touch-hint{display:none}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}input,select{font-size:16px}
@media(pointer:coarse){#touchpad{display:block;bottom:max(48px,env(safe-area-inset-bottom))}#touchpad button{width:50px;height:50px}.world-bottom span:first-child{display:none}.touch-hint{display:block}}
.portrait .creator-scene{width:390px;height:780px}.portrait .wood-frame{left:0;top:50px;width:390px;height:680px}.portrait .scene-title{left:88px;top:79px;width:214px;font-size:22px}.portrait .continue-button{top:15px;left:12px;right:auto;font-size:14px}.portrait .mirror{left:65px;top:125px;transform:scale(.67);transform-origin:top left}.portrait .sex-choice{left:-20px;top:153px;transform:scale(.55);transform-origin:top left}.portrait .hairstyles{left:319px;top:146px;transform:scale(.5);transform-origin:top left}.portrait .color-paper{left:39px;top:462px;width:310px;height:245px}.portrait .color-tabs{top:-45px}.portrait .random-buttons{bottom:4px}.portrait #sliders{top:14px}.portrait .slider-row{height:53px}.portrait .step-controls button{top:711px;font-size:22px;height:65px}.portrait .step-controls img{width:65px;height:70px}.portrait #previous-step{left:0}.portrait #next-step{right:0}.portrait .attribute-step .mirror{left:65px;top:120px}.portrait #elements{left:12px;top:152px;gap:9px}.portrait .element{width:49px;height:49px;font-size:17px;border-width:4px}.portrait #element-description{left:121px;top:160px;width:164px;font-size:12px;line-height:1.5}.portrait .attribute-paper{left:34px;top:439px;width:322px;height:268px;padding:24px 30px 15px 42px}.portrait .stat-row{height:33px}.portrait .stat-row>span{width:94px;font-size:14px}.portrait .stat-row button{width:34px;height:33px;flex-basis:34px}.portrait .stat-row output{width:74px;font-size:16px}.portrait #remaining{font-size:14px;margin:5px 0}.portrait .name-entry{left:93px;top:394px;width:200px}.portrait .name-entry input{width:185px;height:30px;font-size:16px}.portrait .name-entry small{font-size:11px;margin-top:0}.portrait #random-name{left:196px;width:32px;height:35px}.portrait .name-entry #error{top:35px;left:-40px;z-index:5}.portrait .world-top{top:48px}.portrait .location{top:80px}
:lang(vi) .color-tabs button,:lang(th) .color-tabs button{font-size:15px}:lang(vi) .sex-choice button,:lang(th) .sex-choice button{font-size:25px}:lang(vi) .stat-row>span,:lang(th) .stat-row>span{font-size:14px}:lang(th) body{font-family:Tahoma,"Microsoft JhengHei",sans-serif}
/* Match original creator artwork positions and dark name plate. */
#element-description{top:174px;font-size:16px;line-height:1.65}.name-entry input{background:transparent url('ui/common0_bod066.png') center/100% 100% no-repeat;color:#e8d7ab;font-weight:bold;border-radius:0;font-size:18px}.name-entry input::placeholder{color:#baa67e}.name-entry{top:502px}.name-entry small{margin-top:3px}.rotate-button{top:225px}#rotate-left{left:55px}#rotate-right{right:55px}.attribute-paper{padding-top:43px}#remaining{position:absolute;left:18px;right:63px;bottom:24px;margin:0;font-size:15px;line-height:22px}.element{background:#777 url('ui/common0_com084.png') center/100% 100%;border:0;box-shadow:none}.element.selected{background-image:url('ui/common0_com084.png');background-blend-mode:normal}
/* Original main-game HUD: portrait and three gauges, clear chat, icon shortcuts. */
#world .world-top{left:4px;top:5px;right:4px;height:96px;gap:0;display:block;pointer-events:none}#world .player-card{position:absolute;left:0;top:0;width:220px;height:92px;min-width:0;display:block;padding:0;border:0;background:url('ui/common0_bod033.png') center/100% 100% no-repeat;text-align:left;color:white;text-shadow:1px 1px 2px #342f55}.player-card #player-name{position:absolute;left:76px;top:5px;width:137px;overflow:hidden;white-space:nowrap;font-size:17px;font-weight:bold}.hud-level{position:absolute;left:42px;top:5px;font-weight:bold;font-size:16px;color:#bbff73}.hud-bars{position:absolute;left:72px;top:35px;width:143px;color:#343142;text-shadow:none}.hud-bars label{display:flex;height:16px;align-items:center;font-size:12px;font-weight:bold;gap:4px}.meter{position:relative;display:block;width:114px;height:14px;border:2px ridge #d5e9ff;border-radius:9px;background:#bbb8df;overflow:hidden}.meter i{position:absolute;inset:0;background:linear-gradient(#ffadca,#c11640 45%,#c30024 60%,#f69ebd)}.sp-meter i{background:linear-gradient(#c0f8ff,#329af2 45%,#1371d6 60%,#94ebff)}.exp-meter i{width:0;background:#a7ff7b}.meter b{position:absolute;inset:-1px 1px;text-align:right;font-size:11px;font-weight:normal;color:white;text-shadow:1px 1px #67518f;line-height:12px}#hud-portrait{position:absolute;left:0;top:0;width:70px;height:70px}#hud-portrait img{position:absolute;width:100%;height:100%;object-fit:contain}#hud-element{position:absolute;left:0;top:49px;display:grid;place-items:center;width:37px;height:37px;border:2px ridge #d1e6ff;border-radius:50%;font-size:22px;background:#b58956;text-shadow:1px 1px #4d507d}#hud-element[data-element=water]{background:#628ed7}#hud-element[data-element=fire]{background:#d65e78}#hud-element[data-element=wind]{background:#59b978}.currencies{position:absolute;left:223px;top:5px;display:flex;gap:5px}.currencies span{display:flex;align-items:center;justify-content:space-between;width:140px;white-space:nowrap;height:31px;padding:0 6px 0 0;background:#e8e4d8b5;border-radius:15px;color:#211d17;font-size:16px;font-weight:bold}.currencies img{width:33px;height:30px;object-fit:contain}#world .location{position:absolute;top:0;right:0;left:auto;transform:none;width:195px;padding:0;text-align:left;background:none;border:0;white-space:nowrap}#world .location>span{display:block;height:36px;padding:7px 12px;background:#36304fe8;border:2px solid #dbdaf1;border-radius:13px 0 0 0;font:700 17px "Microsoft JhengHei",sans-serif;letter-spacing:0;color:white}#world .location small{display:block;margin:0;padding:2px 9px;text-align:right;background:#d8eaf4dc;color:#383451;font-size:12px;font-weight:bold}.left-shortcuts{position:absolute;top:99px;left:4px;display:flex;gap:5px}.left-shortcuts button,.quickbar button{border:0;background:none;position:relative;padding:0;color:white;text-shadow:1px 1px 2px #101435,-1px -1px 2px #101435;font-weight:bold}.left-shortcuts button{width:65px;height:63px;font-size:16px}.left-shortcuts img{width:50px;height:50px;object-fit:contain}.left-shortcuts span{position:absolute;left:0;right:0;bottom:0;white-space:nowrap}.quickbar{position:absolute;bottom:4px;right:65px;display:flex;gap:6px}.quickbar button{width:60px;height:66px;font-size:17px}.quickbar img{width:56px;height:55px;object-fit:contain;display:block;margin:auto}.quickbar span{position:absolute;left:-4px;right:-4px;bottom:0;white-space:nowrap}.right-tools{position:absolute;right:4px;bottom:4px;display:flex;flex-direction:column;gap:4px}.right-tools button{width:55px;height:55px;border:0;background:none;padding:0}.right-tools img{width:100%;height:100%}.chat{position:absolute;left:4px;bottom:4px;width:min(550px,49vw);color:white;text-shadow:1px 1px 2px #222;font-size:16px;font-weight:bold}#chat-log{height:142px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;display:flex;flex-direction:column;justify-content:flex-end;overflow-wrap:anywhere}#chat-log p{margin:2px 8px;line-height:1.25}#chat-log strong{color:#ffff73}#chat-form{display:flex;height:38px;gap:2px}#chat-form button{background:url('ui/common0_but093.png') center/100% 100% no-repeat;border:0;padding:0 9px;color:#40365f;font-size:16px;font-weight:bold;flex-shrink:0}#chat-message{min-width:0;flex:1;background:#060b0c;border:2px solid #bddeed;border-radius:5px;padding:3px 7px;text-align:center;color:white;font-size:16px}#chat-message::placeholder{color:#b9c3d7}#language{top:68px;right:7px;font-size:13px;padding:2px;max-width:120px}body:has(#world[hidden]) #language{top:6px;font-size:16px}#hud-panel{position:absolute;z-index:10;left:50%;top:50%;transform:translate(-50%,-50%);width:300px;max-width:90vw;max-height:75vh;overflow:auto;background:#e4eff6;border:5px ridge #a6b7e1;border-radius:8px;color:#3b345b;padding:16px;text-align:center}#hud-panel h2{font-size:20px;margin:0 0 12px}#panel-content p{margin:7px}#close-panel{position:absolute;right:3px;top:0;border:0;background:none;font-size:25px;color:#43385a}.emote-choice{background:transparent;border:0;font-size:30px;padding:8px}.world-bottom{display:none}
.portrait #element-description{top:174px;font-size:12px}.portrait .rotate-button{top:225px}.portrait .name-entry{top:394px}.portrait .name-entry input{font-size:16px}.portrait #remaining{left:42px;right:30px;bottom:11px;font-size:13px;line-height:18px}.portrait #world .world-top{top:max(5px,env(safe-area-inset-top))}.portrait #world .player-card{transform:scale(.78);transform-origin:top left}.portrait #world .location{width:160px}.portrait #world .location>span{font-size:14px;height:30px;padding:5px 8px}.portrait .currencies{left:5px;top:78px;gap:2px}.portrait .currencies span{width:52px;height:21px;font-size:11px}.portrait .currencies img{width:23px;height:21px}.portrait .left-shortcuts{top:108px;gap:0}.portrait .left-shortcuts button{width:49px;height:50px;font-size:12px}.portrait .left-shortcuts img{width:39px;height:39px}.portrait .quickbar{right:4px;bottom:48px;gap:0}.portrait .quickbar button{width:46px;height:55px;font-size:12px}.portrait .quickbar img{width:43px;height:43px}.portrait .right-tools{bottom:109px}.portrait .right-tools button{width:44px;height:44px}.portrait .chat{width:calc(100% - 8px);font-size:13px}.portrait #chat-log{height:95px;margin-bottom:62px;pointer-events:none}.portrait #chat-form{height:38px}.portrait #chat-form button{padding:0 7px;font-size:13px}.portrait #touchpad{bottom:100px;left:4px;transform:scale(.85);transform-origin:bottom left}.portrait #language{top:58px;max-width:110px}.portrait body:has(#world[hidden]) #language{top:6px}
@media(max-height:500px) and (orientation:landscape){#world .player-card{transform:scale(.8);transform-origin:top left}.currencies{left:180px}.currencies span{width:110px;height:25px;font-size:13px}.left-shortcuts{top:79px;transform:scale(.8);transform-origin:top left}.quickbar{gap:0;right:47px}.quickbar button{width:46px;height:54px;font-size:12px}.quickbar img{width:43px;height:43px}.right-tools button{width:42px;height:42px}.chat{width:45vw;font-size:13px}#chat-log{height:80px}#chat-form{height:34px}#chat-form button{font-size:12px;padding:0 4px}#touchpad{bottom:48px;transform:scale(.8);transform-origin:bottom left}}
:lang(vi) .quickbar span,:lang(th) .quickbar span{font-size:12px}:lang(vi) .left-shortcuts span,:lang(th) .left-shortcuts span{font-size:12px}
#world .player-card{background-image:url('ui/player-frame.png')}.name-entry input{background-image:url('ui/name-plate.png')}#chat-form button{background-image:url('ui/chat-button.png')}
#chat-log{justify-content:normal}#chat-log p{flex-shrink:0}#chat-log p:first-child{margin-top:auto}#chat-log.expanded{height:min(45vh,300px);background:#27263a70}.portrait #chat-log.expanded{height:30vh;pointer-events:auto}
/* Client ui_main prefab: 230 x 96 frame; 120 x 18 gauges at Y 40/58/75. */
#world .player-card{width:230px;height:96px}#world .player-card #player-name{left:74px;top:5px;width:148px}.hud-bars{left:80px;top:40px;width:147px}.hud-bars label{height:18px;font-size:13px;gap:0;justify-content:space-between}.hud-bars label:last-child{margin-top:-1px}.meter{flex:0 0 120px;width:120px;height:18px;border:0;border-radius:0;background:transparent url('ui/gauge-track.png') center/100% 100% no-repeat;overflow:visible}.meter i{inset:3px 4px 4px;background:transparent url('ui/gauge-hp.png') center/100% 100% no-repeat}.sp-meter i{background-image:url('ui/gauge-sp.png')}.exp-meter i{background-image:url('ui/gauge-exp.png');width:0}.meter b{inset:0 10px 0 0;line-height:18px;font-size:14px;color:white;text-shadow:1px 1px #65519c,-1px -1px #65519c}#hud-portrait{left:-10px;top:-10px;width:90px;height:90px;mask:url('ui/Head_Mask.png') center/contain no-repeat}#hud-portrait img,#hud-portrait canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.hud-level{left:43px;top:10px}.currencies{left:233px}.left-shortcuts{top:103px}.left-shortcuts button>span:not(.native-anim){position:absolute;left:0;right:0;bottom:0;white-space:nowrap}.left-shortcuts .native-anim{position:relative;display:block;left:auto;right:auto;bottom:auto;margin:auto;width:58px;height:58px;background-size:58px 232px;background-repeat:no-repeat;background-position:0 0;animation:none}.native-anim.auto-go{background-image:url('ui/Ani_AutoGo.png')}.native-anim.auto-fight{background-image:url('ui/Ani_AutoFight.png')}.left-shortcuts button>img{width:58px;height:58px}@keyframes client-shortcut{to{background-position-y:-232px}}.portrait .left-shortcuts .native-anim{width:39px;height:39px;background-size:39px 156px;animation:none}.portrait .left-shortcuts button>img{width:39px;height:39px}.portrait .currencies{left:5px}.portrait .left-shortcuts{top:108px}@keyframes client-shortcut-mobile{to{background-position-y:-156px}}@media(max-height:500px) and (orientation:landscape){.currencies{left:190px}.left-shortcuts{top:83px}}
/* Apply client alpha masks into pixels, not external CSS mask fetches. */
#hud-portrait{mask:none;-webkit-mask:none}#hud-element:before,#hud-element:after{display:none}
.left-shortcuts{display:grid;grid-template-columns:repeat(3,65px);gap:5px}
.left-shortcuts .native-anim.ride{background-image:url('ui/Ani_Ride.png')}
.hair-option canvas.pixel-hair{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#skills-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:34}
#world:has(#hud-panel.skills-panel:not([hidden])) #skills-backdrop{display:block}

#status-overlay{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.48)}#status-window{position:absolute;left:50%;top:50%;width:850px;height:470px;transform:translate(-50%,-50%) scale(var(--status-scale,1));background:url('ui/status-frame.png') center/100% 100%;color:#111;font-family:"Microsoft JhengHei",sans-serif}.status-title{position:absolute;left:10px;top:9px;width:830px;height:40px;background:url('ui/status-title.png') center/100% 100%}.status-title h2{margin:6px 15px;font-size:22px;color:#fff;font-weight:bold;text-shadow:1px 1px #347fb8}.status-title button{position:absolute;top:2px;width:36px;height:36px;border:0;background:center/contain no-repeat}#status-close{right:4px;background-image:url('ui/common0_but002D.png')}#status-help{right:46px;background-image:url('ui/common0_but007D.png')}#status-tabs{position:absolute;left:10px;top:72px;width:116px;height:386px;overflow-y:auto;scrollbar-width:thin}#status-tabs button{display:block;width:116px;height:62px;margin:0 0 3px;border:0;background:url('ui/status-tab.png') center/100% 100%;color:#f2efff;font-weight:bold;font-size:21px;text-shadow:1px 1px #6656a5,-1px -1px #6656a5}#status-tabs button.active{background-image:url('ui/status-tab-active.png');color:#fff19b}.status-content{position:absolute;left:114px;top:68px;width:724px;height:390px;background:url('ui/status-content.png') center/100% 100%}.status-identity{position:absolute;left:22px;top:18px;height:44px;display:flex;align-items:center;gap:5px;font-size:18px}.status-identity strong{max-width:210px;overflow:hidden;white-space:nowrap}#status-element{display:grid;place-items:center;width:44px;height:44px;background:center/contain no-repeat;color:#fff;text-shadow:1px 1px #6058a5;font-size:28px}.status-level{color:#5c55a5;text-shadow:1px 1px white}#status-edit{position:absolute;left:74px;top:65px;width:30px;height:30px;border:0;background:url('ui/common0_but055D.png') center/contain no-repeat}#status-avatar{position:absolute;left:20px;top:58px;width:300px;height:240px;image-rendering:pixelated;pointer-events:none}#status-turn-left,#status-turn-right{position:absolute;top:260px;width:40px;height:38px;border:0;background:url('ui/common0_but003D.png') center/contain no-repeat}#status-turn-left{left:48px;transform:scaleX(-1)}#status-turn-right{left:275px}.status-gauges{position:absolute;left:35px;top:296px;width:290px}.status-gauges label{display:flex;align-items:center;height:26px;gap:4px;font-weight:bold;color:#6559ac;text-shadow:1px 1px white;font-size:17px}.status-gauges label>small{font-size:14px}.status-meter{display:block;position:relative;width:210px;flex:0 0 210px;height:18px;background:url('ui/gauge-track.png') center/100% 100%}.status-meter i{position:absolute;left:4px;right:4px;top:3px;bottom:4px;background:url('ui/gauge-hp.png') center/100% 100%}.status-meter.sp i{background-image:url('ui/gauge-sp.png')}.status-meter.exp i{width:0}.status-meter b{position:absolute;inset:0 7px 0 0;text-align:right;color:white;text-shadow:1px 1px #7065ac,-1px -1px #7065ac;font-weight:normal;font-size:15px;line-height:18px}#status-stat-rows{position:absolute;left:354px;top:27px;width:336px}.status-stat-row{height:44px;display:flex;align-items:center;gap:1px}.status-stat-row>span{display:flex;justify-content:space-between;align-items:center;width:124px;flex-shrink:0;height:42px;padding:0 12px;background:url('ui/status-stat.png') center/100% 100%;color:white;text-shadow:1px 1px #86adad;font-size:18px;font-weight:bold}.status-stat-row>span b{color:#447979;text-shadow:none}.status-stat-row button{width:38px;height:42px;border:0;flex:0 0 38px;background:center/contain no-repeat;padding:0}.status-stat-row output{width:50px;flex:1;text-align:center;font-size:20px;font-weight:bold}.status-points{position:absolute;left:440px;top:304px;font-size:20px;font-weight:bold;color:#6c5bbc;text-shadow:1px 1px white}.status-points strong{color:#111;text-shadow:none;font-size:23px}.native-blue{height:43px;border:0;background:url('ui/common0_but001D.png') center/100% 100%;color:#fff09b;text-shadow:1px 1px #6862ae;font-weight:bold;font-size:18px;padding:0 13px}#status-reset{position:absolute;left:456px;top:339px}#status-apply{position:absolute;left:570px;top:339px}#status-tab-content{padding:60px 35px;text-align:center;font-size:20px}#status-help-text{position:absolute;left:30px;right:30px;bottom:20px;margin:0;padding:20px;background:#e8f6fd;border:3px ridge #a9bde3;font-size:17px;line-height:1.6;z-index:5}
.portrait #status-window{width:360px;height:700px}.portrait .status-title{left:8px;width:344px;top:8px;height:42px}.portrait .status-title h2{font-size:20px;margin:7px 12px}.portrait #status-tabs{left:10px;top:57px;width:340px;height:44px;display:flex;overflow-x:auto;overflow-y:hidden}.portrait #status-tabs button{flex:0 0 82px;height:40px;font-size:15px;margin-right:2px}.portrait .status-content{left:8px;top:105px;width:344px;height:585px}.portrait .status-identity{top:13px;left:15px;font-size:15px}.portrait #status-element{width:36px;height:36px;font-size:23px}.portrait #status-edit{left:60px;top:55px;width:24px;height:24px}.portrait #status-avatar{left:0;top:41px;width:190px;height:152px}.portrait #status-turn-left,.portrait #status-turn-right{top:178px;width:30px;height:30px}.portrait #status-turn-left{left:21px}.portrait #status-turn-right{left:150px}.portrait .status-gauges{left:190px;top:95px;width:142px}.portrait .status-gauges label{font-size:12px;height:25px;gap:2px}.portrait .status-meter{width:103px;flex-basis:103px;height:16px}.portrait .status-meter b{font-size:11px;line-height:16px}.portrait .status-gauges small{display:none}.portrait #status-stat-rows{left:17px;top:236px;width:310px}.portrait .status-stat-row>span{width:111px;font-size:16px;padding:0 9px}.portrait .status-stat-row button{width:34px;flex-basis:34px}.portrait .status-stat-row output{font-size:18px}.portrait .status-points{left:120px;top:508px;font-size:18px}.portrait #status-reset{left:45px;top:538px;font-size:16px}.portrait #status-apply{left:182px;top:538px;font-size:16px}.portrait #status-help-text{left:15px;right:15px;padding:12px;font-size:14px}:lang(vi) #status-tabs button,:lang(th) #status-tabs button{font-size:16px}:lang(vi) .status-stat-row>span,:lang(th) .status-stat-row>span{font-size:14px}:lang(vi) .native-blue,:lang(th) .native-blue{font-size:14px}
.status-gauge-label{width:30px;flex:0 0 30px;text-align:right}.status-meter{background-image:url('ui/status-gauge-track.png')}.status-meter i{background-image:url('ui/status-gauge-hp.png')}.status-meter.sp i{background-image:url('ui/status-gauge-sp.png')}.portrait .status-gauge-label{width:24px;flex-basis:24px}
.native-blue{width:112px;padding:0 5px;white-space:nowrap;background-image:url('ui/status-blue-button.png')}


/* Original client element composition (native rim, mask and font glyphs). */
#world #hud-element,#world #hud-element[data-element]{background-color:transparent;border:0;box-shadow:none;border-radius:0;background-size:contain;background-position:center;background-repeat:no-repeat;text-shadow:none;font-size:0}
#status-element{font-size:0;text-shadow:none}
/* Keep the original clipped tab rail scrollable without visible scrollbars. */
#status-tabs{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain;touch-action:pan-y}
#status-tabs::-webkit-scrollbar{display:none;width:0;height:0}
#status-tabs button{max-width:100%;font-weight:700;text-shadow:1px 1px #534880,-1px -1px #534880,1px -1px #534880,-1px 1px #534880}
.status-stat-row>span{color:#fff;font-weight:700;text-shadow:1px 1px #537d80,-1px -1px #537d80,1px -1px #537d80,-1px 1px #537d80}
.status-stat-row>span b{color:#315d60;text-shadow:none}
#status-window button:disabled{opacity:1;cursor:default}
#status-window .native-blue{color:#fff09b;text-shadow:1px 1px #474080,-1px -1px #474080,1px -1px #474080,-1px 1px #474080}
.status-title h2,.status-level{font-weight:700;text-shadow:1px 1px #3b4480,-1px -1px #3b4480,1px -1px #3b4480,-1px 1px #3b4480}
.status-level{color:#fff6a6}

/* Active native tab overlaps the content border; inactive tabs end behind it. */
.status-content{left:124px;top:58px;width:714px;height:400px;z-index:1}
#status-avatar{top:42px;translate:15px 0}
#status-turn-left,#status-turn-right{top:249px}
.status-gauges{top:298px}
#status-reset,#status-apply{top:334px}
#status-tabs{width:127px;z-index:2;pointer-events:none}
#status-tabs button{width:126px;max-width:none;clip-path:inset(0 12px 0 0);pointer-events:auto}
#status-tabs button.active{width:127px;clip-path:none;background-image:url('ui/status-tab-connected.png')}


/* Extracted from the client font.unity3d: GenJyuuGothic_Bold. */
@font-face{font-family:"TSClient";src:url("ui/client-font.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}


/* Prevent the legacy .hp i 100% dimensions from overrunning the frame inset. */
.status-meter{overflow:hidden;border-radius:9px}
.status-meter i{width:auto;height:auto;left:4px;right:4px;top:3px;bottom:4px;background-repeat:no-repeat}
.status-meter.exp i{width:0}
.status-meter b{overflow:hidden;white-space:nowrap}
.status-gauges label>small{flex:0 0 36px;white-space:nowrap}

/* UI_MiniMap/Image_Info: original mirrored, clipped common0_bod033 sprite. */
#world .location{width:205px;height:60px;background:url('ui/location-client-frame.png') left top/205px 60px no-repeat;border:0;padding:0;overflow:hidden}
#world .location>span{position:absolute;left:12px;right:5px;top:0;height:39px;display:flex;align-items:center;padding:0;background:none;border:0;border-radius:0;color:#fff;font:700 20px "TSClient","Microsoft JhengHei",sans-serif;text-shadow:1px 1px #313051;letter-spacing:0}
#world .location small{position:absolute;left:5px;right:5px;top:39px;height:20px;display:block;margin:0;padding:0;background:none;color:#313051;font:700 14px/20px "TSClient","Microsoft JhengHei",sans-serif;text-align:right;text-shadow:none;white-space:nowrap}
/* Match client gauge typography: bold white glyphs with a purple outline. */
.status-gauges .status-gauge-label,
.status-gauges .status-meter b,
.status-gauges label>small{
 font-family:"TSClient","Microsoft JhengHei",sans-serif;
 font-weight:700;
 font-synthesis:none;
}
.status-gauges .status-gauge-label,
.status-gauges .status-meter b{
 color:#fff;
 text-shadow:-1px -1px #6559ac,0 -1px #6559ac,1px -1px #6559ac,-1px 0 #6559ac,1px 0 #6559ac,-1px 1px #6559ac,0 1px #6559ac,1px 1px #6559ac;
}
.status-gauges .status-meter b{font-size:15px;line-height:18px}
.status-gauges label>small{color:#6559ac;text-shadow:none;font-size:14px}

/* Native EXP fill, clipped to the current level progress. */
.hud-bars .exp-meter i,.status-meter.exp i{width:auto;background:url("ui/gauge-exp.png") center/100% 100% no-repeat}
/* Reference six-stat explanation overlay; scales with landscape phones. */
#status-help-text{position:fixed;inset:0;z-index:60;margin:0;padding:0;border:0;background:rgba(20,20,30,.12);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);outline:none;cursor:pointer}
#status-help-text .status-help-paper{box-sizing:border-box;position:absolute;left:50%;top:50%;width:600px;min-height:350px;padding:8px 13px 36px;transform:translate(-50%,-50%) scale(var(--help-scale,1));border:3px solid #777985;border-radius:5px;background:rgba(51,50,67,.82);color:#fff;font:700 18px/27px "TSClient","Microsoft JhengHei",sans-serif;text-align:left}
#status-help-text h2{position:absolute;left:15px;top:-28px;margin:0;font:700 27px/34px "TSClient","Microsoft JhengHei",sans-serif;color:#fff;text-shadow:2px 2px #343344,-2px -2px #343344,2px -2px #343344,-2px 2px #343344}
#status-help-text p{margin:0;white-space:pre-line}
:lang(vi) #status-help-text .status-help-paper,:lang(th) #status-help-text .status-help-paper{font-size:16px;line-height:24px}
/* Native teleport window: single training tab and a single destination. */
#hud-panel.teleport-panel{position:fixed;width:850px;height:470px;max-width:none;max-height:none;overflow:hidden;padding:0;border:0;border-radius:0;background:url('ui/status-frame.png') center/100% 100%;transform:translate(-50%,-50%) scale(var(--teleport-scale,1));font:700 18px "TSClient","Microsoft JhengHei",sans-serif;color:#111;text-align:left;z-index:35}
.teleport-panel #panel-title{position:absolute;left:10px;top:9px;width:830px;height:40px;box-sizing:border-box;padding:6px 15px;margin:0;background:url('ui/status-title.png') center/100% 100%;color:white;text-shadow:1px 1px #347fb8;font-size:22px}
.teleport-panel #close-panel{z-index:2;right:15px;top:11px;width:36px;height:36px;background:url('ui/common0_but002D.png') center/contain no-repeat;font-size:0}
.teleport-tab{position:absolute;left:10px;top:72px;width:127px;height:62px;background:url('ui/status-tab-connected.png') center/100% 100%;border:0;z-index:2;font:700 21px "TSClient",sans-serif;color:#fff19b;text-shadow:1px 1px #534880,-1px -1px #534880}
.teleport-paper{position:absolute;left:134px;top:58px;width:704px;height:400px;padding:14px 24px;box-sizing:border-box;background:url('ui/status-content.png') center/100% 100%}
.teleport-row{display:flex;align-items:center;justify-content:space-between;min-height:70px;border-bottom:2px solid #c4e3df}
.teleport-row button{min-width:90px}.teleport-return{position:absolute;right:24px;bottom:20px}
/* Share the status window's tab/content join geometry. */
.teleport-panel .teleport-paper{left:124px;top:68px;width:714px;height:390px;padding:14px 24px;z-index:1}
.teleport-tabs{position:absolute;left:10px;top:72px;width:127px;z-index:2;pointer-events:none}
.teleport-tabs .teleport-tab{position:relative;left:auto;top:auto;display:block;width:126px;height:62px;margin:0 0 3px;clip-path:inset(0 12px 0 0);background-image:url('ui/status-tab.png');color:#f2efff;pointer-events:auto}
.teleport-tabs .teleport-tab.active{width:127px;clip-path:none;background-image:url('ui/status-tab-connected.png');color:#fff19b}
.teleport-region{display:block;width:95px;height:45px;margin:-1px 0 3px 19px;border:2px solid #569d9c;border-radius:0;background:#58ca8d;color:#f2efff;font:700 18px "TSClient",sans-serif;text-shadow:1px 1px #6656a5,-1px -1px #6656a5;pointer-events:auto}
.teleport-city-grid{display:grid;grid-template-columns:repeat(4,112px);justify-content:space-between;gap:32px 12px;padding:35px 40px}
.teleport-city-grid .native-blue{padding:0 4px;font-size:18px}.teleport-city-grid button:disabled{filter:brightness(.65);opacity:1;cursor:default}
.teleport-row{gap:16px}.teleport-row strong{flex:0 0 135px}.teleport-level{white-space:nowrap}.teleport-element{flex:1;color:#fff;text-shadow:1px 1px #999,-1px -1px #999}.teleport-row .native-blue{flex:0 0 90px}
:lang(vi) .teleport-row strong,:lang(th) .teleport-row strong{font-size:15px}
/* Client skill tree: native window, tabs, icon frames, connector textures and controls. */
#hud-panel.skills-panel{position:fixed;width:850px;height:510px;max-width:none;max-height:none;overflow:hidden;padding:0;border:0;border-radius:0;background:url('ui/status-frame.png') center/100% 100%;transform:translate(-50%,-50%) scale(var(--skill-scale,1));font:700 17px "TSClient","Microsoft JhengHei",sans-serif;color:#111;text-align:left;z-index:35}
.skills-panel #panel-title{position:absolute;left:10px;top:9px;width:830px;height:40px;box-sizing:border-box;padding:6px 15px;margin:0;background:url('ui/status-title.png') center/100% 100%;color:white;text-shadow:1px 1px #347fb8;font-size:22px}
.skills-panel #close-panel{z-index:4;right:15px;top:11px;width:36px;height:36px;background:url('ui/common0_but002D.png') center/contain no-repeat;font-size:0}
.skill-tabs{position:absolute;left:10px;top:72px;width:127px;z-index:2;pointer-events:none}
.skill-tabs .skill-tab{display:block;width:126px;height:66px;margin:0 0 3px;border:0;background:url('ui/status-tab.png') center/100% 100%;color:#f2efff;font:700 23px "TSClient",sans-serif;text-shadow:1px 1px #6656a5,-1px -1px #6656a5;clip-path:inset(0 12px 0 0);pointer-events:auto}
.skill-tabs .skill-tab.active{width:127px;clip-path:none;background-image:url('ui/status-tab-connected.png');color:#fff19b}
.skill-rebirth-element{position:absolute;top:58px;font:24px TSClient,sans-serif;z-index:1;pointer-events:none;color:#fff;text-shadow:1px 1px #94682e,-1px -1px #94682e}
.skill-rebirth-element.water{text-shadow:1px 1px #518aca,-1px -1px #518aca}.skill-rebirth-element.fire{text-shadow:1px 1px #ed8d19,-1px -1px #ed8d19}.skill-rebirth-element.wind{text-shadow:1px 1px #599e44,-1px -1px #599e44}
.skill-paper{position:absolute;left:124px;top:58px;width:714px;height:440px;background:url('ui/status-content.png') center/100% 100%;overflow:hidden}
.skill-character{position:absolute;left:14px;right:14px;top:9px;height:68px;border-bottom:2px solid #dce7eb}
.skill-character-name{position:absolute;left:75px;top:18px;max-width:152px;overflow:hidden;white-space:nowrap;font-size:19px}
.skill-character-arrow{position:absolute;top:14px;width:40px;height:33px;border:0;background:url('ui/skills/common0_but003D.png') center/contain no-repeat;opacity:1!important}.skill-character-arrow.left{left:12px;transform:scaleX(-1)}.skill-character-arrow.right{left:229px}
.skill-slots{position:absolute;right:0;top:0;width:360px;height:63px;padding:2px;background:#201d42;border:2px ridge #aac5c6;border-radius:4px}.skill-slots-viewport{width:100%;height:55px;overflow:hidden;touch-action:none;user-select:none;cursor:grab}.skill-slots-viewport.dragging{cursor:grabbing}.skill-slots-track{display:flex;width:max-content;height:55px}.skill-slot{position:relative;flex:0 0 55px;width:55px;height:55px;padding:0;border:0;cursor:inherit;background:url('ui/skills/common0_bod023.png') center/100% 100%}.skill-slot img{width:100%;height:100%;pointer-events:none}.skill-slot-add{color:#71aaa7;font:700 40px/55px Arial,sans-serif;pointer-events:none}
.skill-resources{position:absolute;left:22px;top:86px;line-height:27px;color:white;font-size:18px;text-shadow:1px 1px #6656a5,-1px -1px #6656a5,1px -1px #6656a5,-1px 1px #6656a5}.skill-resources b{color:#a8eaff}
.skill-diagram{position:absolute;left:112px;top:78px;width:650px;height:370px;transform:scale(.74);transform-origin:top left}
.skill-tree-lines{position:absolute;left:45px;top:35px;width:565px;height:300px;pointer-events:none}
.skill-node{position:absolute;width:65px;height:65px;padding:0;border:0;background:url('ui/skills/common0_bod060.png') center/100% 100%;cursor:pointer;isolation:isolate;overflow:visible}
.skill-node img{display:block;width:65px;height:65px}.skill-node.unlearned img{filter:brightness(.52)}
.skill-node.selected:after{content:"";position:absolute;inset:-5px;background:url('ui/skills/common0_com106.png') center/100% 100%;pointer-events:none;z-index:3}
.skill-node-cost{position:absolute;right:-2px;top:-4px;color:white;font-size:19px;line-height:22px;text-shadow:-1px -1px #aa4e17,1px 1px #aa4e17,1px -1px #aa4e17,-1px 1px #aa4e17}.skill-node-level{position:absolute;bottom:0;right:2px;color:white;font-size:17px;line-height:20px;text-shadow:1px 1px #111,-1px -1px #111}
.skill-detail{position:absolute;left:16px;right:16px;bottom:9px;height:85px;border-top:2px solid #dce7eb;padding-top:9px;box-sizing:border-box;background:#f6fcf8}
.skill-detail-icon{position:absolute;left:2px;top:12px;width:60px;height:60px}.skill-detail-copy{position:absolute;left:72px;right:52px;top:10px}.skill-detail-heading{display:flex;gap:5px;align-items:baseline;white-space:nowrap}.skill-detail-heading strong{font-size:20px}.skill-learn-state{color:#ff4343;font-size:16px}.skill-learn-cost{color:#ff8c15;font-size:15px}.skill-description{margin:0!important;font-size:15px;line-height:20px;color:#686d69;max-height:43px;overflow:auto;scrollbar-width:none}
.skill-learn-controls{position:absolute;right:0;top:9px;display:grid;gap:2px}.skill-learn-controls button{width:36px;height:35px;border:0;background:center/100% 100% no-repeat;opacity:1;cursor:default}.skill-learn-add{background-image:url('ui/skills/common0_but036D.png')!important}.skill-learn-sub{background-image:url('ui/skills/common0_but037D.png')!important}
.skill-help-button{position:absolute;right:59px;top:11px;width:36px;height:36px;border:0;background:url('ui/common0_but007D.png') center/contain no-repeat;z-index:4}.skill-help-copy{position:absolute;left:175px;right:50px;top:190px;padding:25px;border:2px solid #828798;background:#383846ed;color:white;font:700 18px/1.6 "TSClient",sans-serif;z-index:5}
:lang(vi) .skill-detail-heading,:lang(th) .skill-detail-heading{white-space:normal;flex-wrap:wrap;gap:2px}:lang(vi) .skill-learn-cost,:lang(th) .skill-learn-cost{font-size:12px}
.teleport-map-list{height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;touch-action:pan-y;overscroll-behavior:contain;padding:0 4px}.teleport-map-list .teleport-row{min-height:71px}.map-element{font-size:16px}.map-element.element-1{color:#e0ba4d}.map-element.element-2{color:#69d9f4}.map-element.element-3{color:#ed7c76}.map-element.element-4{color:#69cc7e}
/* Native-style destination list: scroll without visible browser scrollbar/buttons. */
.teleport-map-list{scrollbar-width:none;-ms-overflow-style:none}.teleport-map-list::-webkit-scrollbar{display:none;width:0;height:0}.teleport-map-list::-webkit-scrollbar-button{display:none;width:0;height:0}

/* Native creator element rim: keep texture when selecting a color. */
#elements .element{font:700 26px TSClient,sans-serif;padding:0;background-image:url('ui/common0_com084.png');background-size:100% 100%;background-repeat:no-repeat;box-shadow:none;text-shadow:0 1px 2px #574938;background-blend-mode:normal}
#elements .element:nth-child(2),#elements .element:nth-child(3){transform:translateX(-22px)}
#hair-grid{position:relative;height:360px;margin-top:24px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
#hair-grid.dragging{cursor:grabbing}
#hair-track{position:relative;top:-120px;will-change:transform}
#hair-track .hair-option{height:120px;width:112px;margin:0 auto;background-size:contain;background-repeat:no-repeat;background-position:center;flex-shrink:0;cursor:inherit}
#hair-track .hair-option.selected{width:125px;height:120px;margin:0 auto}
#hair-track img{pointer-events:none;-webkit-user-drag:none;object-fit:contain}
#hair-grid:focus-visible{filter:brightness(1.08)}
/* Original chat-button texture, vertical channel picker and private recipient. */
#chat-channels{position:absolute;left:0;bottom:42px;display:flex;flex-direction:column;gap:2px;width:66px;padding-bottom:3px;pointer-events:auto;z-index:30}
#chat-channels button{height:36px;padding:2px;background:url('ui/chat-button.png') center/100% 100%;border:0;color:#383653;font:700 17px TSClient,sans-serif}
#chat-channels button[aria-pressed=true]{filter:brightness(1.12);color:#202752}
#chat-channels button:disabled{opacity:.6;cursor:default}
#chat-form #chat-target{flex:0 0 100px;width:100px;min-width:0;background:#050e10;color:#fff4d7;border:2px solid #c1d8db;border-radius:3px;padding:0 6px;text-align:center}
#chat-form #chat-message{min-width:0;flex:1 1 0}
#chat-log .chat-local{color:#ffff00}#chat-log .chat-global{color:#fff59a}#chat-log .chat-private{color:#ffc46b;text-shadow:-1px 0 #79502c,1px 0 #79502c,0 -1px #79502c,0 1px #79502c}
@media(max-height:500px) and (orientation:landscape){#chat-channels{width:54px;bottom:34px}#chat-channels button{height:30px;font-size:14px}#chat-form #chat-target{flex-basis:78px;width:78px;padding:0 3px;font-size:12px}}

#chat-form #chat-target{font-family:TSClient,sans-serif;font-weight:700}#chat-form #chat-target::placeholder{color:#9cafc7;opacity:1}#chat-form #chat-target:focus{outline:none;border-color:#e4ecdb}

/* Teleport lettering: muted fills and crisp native-style outlines, no glow. */
.teleport-panel #panel-title{color:#e4eaf5;text-shadow:1px 0 #32649c,-1px 0 #32649c,0 1px #32649c,0 -1px #32649c}
.teleport-tabs .teleport-tab,.teleport-panel .teleport-region{color:#ddd9ec;text-shadow:1px 0 #51477f,-1px 0 #51477f,0 1px #51477f,0 -1px #51477f,1px 1px #51477f,-1px -1px #51477f}
.teleport-tabs .teleport-tab.active{color:#e7cf66}
.teleport-panel .native-blue{color:#ead36c;text-shadow:1px 0 #53518b,-1px 0 #53518b,0 1px #53518b,0 -1px #53518b,1px 1px #53518b,-1px -1px #53518b}
.teleport-panel .teleport-element{color:#dddcd8;text-shadow:1px 0 #797a76,-1px 0 #797a76,0 1px #797a76,0 -1px #797a76}
.teleport-panel .map-element.element-1{color:#cda530;text-shadow:1px 0 #806835,-1px 0 #806835,0 1px #806835,0 -1px #806835}
.teleport-panel .map-element.element-2{color:#37b4d7;text-shadow:1px 0 #41778e,-1px 0 #41778e,0 1px #41778e,0 -1px #41778e}
.teleport-panel .map-element.element-3{color:#de655b;text-shadow:1px 0 #91534e,-1px 0 #91534e,0 1px #91534e,0 -1px #91534e}
.teleport-panel .map-element.element-4{color:#4abb62;text-shadow:1px 0 #4a7d4e,-1px 0 #4a7d4e,0 1px #4a7d4e,0 -1px #4a7d4e}

/* Game chrome is not document text; keep normal editing inside input fields. */
body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body input,body textarea,body [contenteditable="true"],body [contenteditable="true"] *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
img,canvas,svg{-webkit-user-drag:none}

/* Status text brightness only: retain the original font weights and outlines. */
#status-window .status-title h2{color:#fff;font-family:TSClient,sans-serif;font-size:20px}
#status-window #status-tabs button{color:#fff;text-shadow:-1px -1px #60518f,0 -1px #60518f,1px -1px #60518f,-1px 0 #60518f,1px 0 #60518f,-1px 1px #60518f,0 1px #60518f,1px 1px #60518f}
#status-window #status-tabs button.active{color:#fff19b}
#status-window .status-level{color:#fff;font-family:TSClient,sans-serif;font-size:17px;text-shadow:-1px -1px #6559ac,1px -1px #6559ac,-1px 1px #6559ac,1px 1px #6559ac}
#status-window .status-level-number{color:#bdd66b;text-shadow:-1px -1px #162d30,1px -1px #162d30,-1px 1px #162d30,1px 1px #162d30}
/* Solid white stat labels with a fine light-blue outline. */
#status-window .status-stat-row>span{color:#fff;text-shadow:-1px 0 #86adad,1px 0 #86adad,0 -1px #86adad,0 1px #86adad}
#status-window .status-gauge-label,#status-window .status-meter b{color:#fff}
#status-window .status-gauges label>small{color:#6559ac}
#status-window .status-points{left:471px;top:304px;display:flex;align-items:center;gap:14px;font:700 18px/25px TSClient,sans-serif;color:#fff;text-shadow:-1px -1px #6b60ac,1px -1px #6b60ac,-1px 1px #6b60ac,1px 1px #6b60ac}
#status-window .status-points strong{font:700 21px/25px TSClient,sans-serif;color:#111;text-shadow:none}
#status-window #status-reset{left:471px;width:112px;padding:0;color:#fff19b;font:700 18px TSClient,sans-serif;text-shadow:-1px 0 #6862ae,1px 0 #6862ae,0 -1px #6862ae,0 1px #6862ae}
#status-window .native-blue{color:#fff19b}
/* The inactive tab sprite includes a sliver of the adjoining green frame.
   Exclude it completely, including its resampled edge, at every window scale. */
#status-window #status-tabs button:not(.active){clip-path:inset(0 12px 0 0);background-size:130px 100%;background-position:left center;background-repeat:no-repeat}

/* Client HUD text settings from ui_main: labels15 normal, values16 bold with purple outline. */

#world .player-card .hud-bars label{font-family:TSClient,sans-serif;font-size:15px;font-weight:400;color:#000;text-shadow:none}
#world .player-card .hud-bars .meter b{font-family:TSClient,sans-serif;font-size:16px;font-weight:700;color:#fff;text-shadow:-1px -1px #59519e,1px -1px #59519e,-1px 1px #59519e,1px 1px #59519e}
#player-actions{position:absolute;right:75px;bottom:102px;width:476px;z-index:30;transform-origin:bottom right;user-select:none}#player-actions[hidden]{display:none}.player-action-buttons{display:flex;gap:0}.player-action-buttons button{position:relative;width:68px;height:72px;padding:0;background:none;border:0;color:#f2f0ff;font:700 17px TSClient,sans-serif;text-shadow:-1px 0 #4e477e,1px 0 #4e477e,0 -1px #4e477e,0 1px #4e477e;touch-action:manipulation}.player-action-buttons img{position:absolute;width:64px;height:64px;left:2px;top:0;object-fit:contain}.player-action-buttons span{position:absolute;bottom:2px;left:0;right:0;white-space:nowrap}.player-action-name{width:240px;height:24px;margin:0 auto;background:url('ui/player-action-name.png') center/100% 100% no-repeat;color:#ffff00;text-align:center;font:700 18px TSClient,sans-serif;line-height:24px}.player-action-buttons button:active{filter:brightness(.85)}@media(max-height:500px){#player-actions{bottom:77px;right:60px;transform:scale(.8)}}@media(max-width:600px){#player-actions{right:8px;transform:scale(.7)}}

/* Native skill allocation preview controls. */
.skill-forget,.skill-draft-controls button{width:76px;height:39px;border:0;padding:0;background:url('ui/dungeon-join-button.png') center/100% 100% no-repeat;color:#fff09b;font:700 18px "TSClient",sans-serif;text-shadow:1px 1px #6656a5,-1px -1px #6656a5;cursor:pointer}
.skill-forget{position:absolute;right:17px;top:86px;z-index:4}
.skill-draft-controls{position:absolute;right:17px;top:257px;display:grid;gap:5px;z-index:4}
.skill-draft-note{position:absolute;left:22px;top:139px;width:88px;font-size:12px;line-height:17px;color:#576a70;margin:0;pointer-events:none}
.skill-learn-controls button:not(:disabled){cursor:pointer}.skill-learn-controls button:disabled{filter:grayscale(.6);opacity:.55}

/* Shrinking the fill retains the native rounded cap instead of a square crop. */
.hud-bars .meter i,.status-meter i{right:auto;border-radius:999px;overflow:hidden;min-width:0}

/* Status typography and original detail ornament, matched to client references. */
#status-window{font-family:TSClient,"Microsoft JhengHei",sans-serif;font-weight:700}
#status-window #status-tabs button{font-family:TSClient,sans-serif;font-size:21px}
#status-detail-icon{position:absolute;left:302px;top:20px;width:38px;height:38px;pointer-events:none}
/* Mobile landscape: original HUD proportions at the reference client's viewport. */
.mobile-compact-ui #world .player-card{transform:scale(var(--mobile-ui-scale));transform-origin:top left}
.mobile-compact-ui #world .location{transform:scale(var(--mobile-ui-scale));transform-origin:top right}
.mobile-compact-ui .currencies{left:calc(233px * var(--mobile-ui-scale));transform:scale(var(--mobile-ui-scale));transform-origin:top left;gap:5px}
.mobile-compact-ui .currencies span{width:152px;height:33px;font-size:17px}
.mobile-compact-ui .currencies img{width:36px;height:33px}
.mobile-compact-ui .left-shortcuts{top:calc(103px * var(--mobile-ui-scale));transform:scale(var(--mobile-ui-scale));transform-origin:top left}
.mobile-compact-ui .quickbar{right:calc(70px * var(--mobile-ui-scale));bottom:4px;gap:6px;transform:scale(var(--mobile-ui-scale));transform-origin:bottom right}
.mobile-compact-ui .quickbar button{width:66px;height:72px;font-size:18px}
.mobile-compact-ui .quickbar img{width:62px;height:60px}
.mobile-compact-ui .right-tools{transform:scale(var(--mobile-ui-scale));transform-origin:bottom right}
.mobile-compact-ui .right-tools button{width:62px;height:62px}
.mobile-compact-ui .chat{width:50vw}
.mobile-compact-ui body:has(#world:not([hidden])) #language{top:calc(65px * var(--mobile-ui-scale));transform:scale(.85);transform-origin:top right}
.mobile-compact-ui .npc-dialog{bottom:calc(44px * var(--mobile-ui-scale))}
.mobile-compact-ui #chat-form{height:max(24px,calc(40px * var(--mobile-ui-scale)))}
.mobile-compact-ui #chat-form button,.mobile-compact-ui #chat-form input{font-size:11px}
/* Mobile orientation hint, using native client panel/button art. */
#rotate-device{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);padding:16px;box-sizing:border-box}
.mobile-entry-paper{width:min(460px,100%);box-sizing:border-box;padding:30px 24px;text-align:center;color:#285469;background:url('ui/npc/dialog.png') center/100% 100% no-repeat;font-family:TSClient,sans-serif}
.mobile-entry-paper h2{font-size:22px;margin:0 0 18px}.mobile-entry-paper p{font-size:16px;line-height:1.6;margin:0 0 20px}

/* Native pending-allocation grid: white draft column, separated action buttons. */
#status-window .status-stat-row{display:grid;grid-template-columns:124px 38px 38px 54px 38px 38px;gap:1px;height:44px;background:#e0eeee;border-bottom:2px solid #d3e4e5}
#status-window .status-stat-row>span{width:124px;height:42px}
#status-window .status-stat-row output{display:grid;place-items:center;align-self:stretch;width:54px;background:#fff;color:#111;font:700 20px TSClient,sans-serif}
#status-window .status-stat-row button{width:38px;height:42px}
#status-window #status-reset{left:390px;width:112px}
#status-window #status-apply{left:544px;width:112px;padding:0;font:700 18px TSClient,sans-serif}

/* Idle allocation has one reset-points action; a draft reveals the pair. */
#status-window:not(.has-pending-stats) #status-reset{left:471px}

/* Native chat places its vertical scrollbar on the left, with LTR messages. */
#chat-log{direction:rtl}
#chat-log>p{direction:ltr;unicode-bidi:isolate;text-align:left}

/* Native toggle icons animate only while their confirmed feature is active. */
.left-shortcuts .native-anim.is-active{animation:client-shortcut 600ms steps(4) infinite}
.portrait .left-shortcuts .native-anim.is-active{animation-name:client-shortcut-mobile}
/* Ride / AI戰鬥 sprites keep animating under reduced motion: the animation is their only on/off state indicator. */
/* Training region buttons (幽州/冀州/青州): unselected regions use the native purple tab tone. */
.teleport-region:not(.active){background:#8f86cf;border-color:#6656a5;color:#f2efff;cursor:pointer}
.teleport-region:not(.active):hover{background:#9c94d8}

/* Teleport list: left-button drag scrolling (teleport.js). */
.teleport-map-list{cursor:grab}
.teleport-map-list.is-dragging{cursor:grabbing;user-select:none}
.teleport-map-list .native-blue{cursor:pointer}

/* UI_CreateRole Text_Characteristic: 200x80, native font 16, warm body colour.
   Larger coloured leading element follows the supplied official screenshots. */
#creator #element-description{top:164px;width:200px;height:80px;display:flex;align-items:center;font:700 16px/32px TSClient,sans-serif;color:#e7d1b0;text-align:left;letter-spacing:0}
#element-description .creator-element-name{font-size:24px;line-height:1;color:#e6aa7b}
#element-description[data-element=water] .creator-element-name{color:#a5e5eb}
#element-description[data-element=fire] .creator-element-name{color:#f2c891}
#element-description[data-element=wind] .creator-element-name{color:#d2e7a2}
