.rpg-active .status-player{display:none}.rpg-active .location{top:18px}.rpg-active .location h1{font-size:23px}.rpg-active .location p{max-width:380px;font-size:10px}.rpg-active .camera{top:100px}.rpg-active .help{font-size:9px}.rpg-active .hud{bottom:155px}.rpg-active main{min-height:650px}.rpg-active aside{padding:18px}.rpg-active label{margin-top:10px}#rpg-shell{position:absolute;inset:0;pointer-events:none}#rpg-shell button,#rpg-shell input,#rpg-shell select,#rpg-shell [draggable],#rpg-window,#profile-screen{pointer-events:auto}#rpg-shell [hidden],#legacy-controls[hidden]{display:none!important}#notice{position:absolute;bottom:142px;left:20%;right:15%;text-align:center;color:#eadbad;text-shadow:0 2px 3px #000;font:11px Georgia}#target-hud{position:absolute;top:18px;left:46%;width:210px;text-align:center;background:#101819bb;padding:8px;border:1px solid #baa16a55;font-size:11px}#rpg-bars{position:absolute;bottom:66px;left:24px;width:190px;font:10px Georgia;text-shadow:0 1px #000}#rpg-bars strong{color:#ead4a1;font-weight:400}.resource{position:relative;height:13px;margin:4px 0;background:#090f13;border:1px solid #b39a6744}.resource span{display:block;height:100%;background:linear-gradient(90deg,#69342e,#b65748)}.resource.mana span{background:linear-gradient(90deg,#294460,#537eac)}.resource b{position:absolute;inset:0;text-align:center;font:9px system-ui;color:#f0ead9}#rpg-bars small{font-size:8px}#skillbar{position:absolute;bottom:64px;left:240px;right:25px;display:flex;gap:4px}#skillbar button{flex:1;min-width:0;background:#172020eb;border:1px solid #8e794d88;border-radius:1px;font-size:9px;padding:9px 4px}#skillbar button b{display:block;color:#e6ce9c;font-size:15px;margin-bottom:4px}#skillbar button small{display:block;font:8px system-ui;color:#b3b9ac;margin-top:4px}#skillbar button.prepared{border-color:#98d8f0;box-shadow:0 0 12px #67b5dd55}#quest-tracker{position:absolute;top:155px;right:20px;max-width:210px;text-shadow:0 2px 3px #000;text-align:right}#quest-tracker strong,#quest-tracker small{display:block}#quest-tracker strong{font:11px Georgia;color:#dac797;margin-top:7px}#quest-tracker small{font:9px system-ui;color:#c3c6ae}.menu-grid{display:grid;gap:6px}.menu-grid button{text-align:left;border-radius:1px;font:11px Georgia;padding:10px}.stat-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;font:10px system-ui}.stat-list b{float:right;color:#d1ba85}#rpg-menu h2{font-size:24px}#rpg-menu details{border-top:1px solid #80704955;margin:16px 0;padding-top:10px;font-size:11px}#rpg-menu input[type=file]{width:100%;font-size:9px;margin:8px 0}#combat-log{margin-top:18px;font:10px/1.5 system-ui;color:#99a99d}#combat-log p{border-bottom:1px solid #ffffff0a;padding-bottom:6px}.fail{color:#dc8b7c!important}.success,.level{color:#d3c17f!important}#legacy-controls{margin-top:20px}#legacy-controls summary{font-size:10px;color:#a79a78}#legacy-controls .panel-ornament{margin-top:15px}#legacy-controls label:has(#class),#legacy-controls label:has(#weapon){display:none}#rpg-window{position:absolute;left:50%;top:155px;transform:translateX(-50%);width:min(620px,90%);max-height:calc(100% - 180px);border:1px solid #af9460;background:#121c1ef5;box-shadow:0 16px 60px #0009;color:#d6cebb}.window-title{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;background:linear-gradient(#363a30,#202826);cursor:move;touch-action:none;font-size:14px}.window-title button{padding:2px 8px}.window-body{overflow:auto;max-height:calc(80vh - 210px);padding:16px;font-size:12px}.window-body article{border-bottom:1px solid #ad955744;padding-bottom:14px;margin-bottom:14px}.window-body h3{font:16px Georgia;color:#d6c295;margin:12px 0}.window-body button{margin-top:7px}.window-body .objective{font:11px system-ui;margin:5px 0}.objective b{float:right}.equipment-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.equipment-grid label{font-size:9px;margin:0 0 5px}.empty-slot{height:65px;display:grid;place-items:center;border:1px dashed #8c7b4d55;color:#5e7169}.bag{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;min-height:100px;padding:5px;border:1px solid #62746b55}.item{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;height:79px;padding:3px!important;margin:0!important;overflow:hidden;border-radius:1px;cursor:grab}.item svg{width:42px;height:42px;flex-shrink:0}.item small{font:8px/1.2 system-ui;max-height:23px;overflow:hidden}.item span{position:absolute;right:3px;top:3px;color:#e6d094;font:9px system-ui}.shop-row{display:flex;gap:9px;align-items:center;border-bottom:1px solid #ffffff10;padding:5px 0;font-size:11px}.shop-row .icon svg{width:32px;height:32px}.shop-row span:nth-child(2){flex:1}.shop-row small{display:block;font-size:9px;color:#b3a985}.shop-row button{margin-left:auto}.destination{display:block;width:100%;text-align:left}.destination small{float:right}.window-body select{font-size:12px}#item-tooltip{position:absolute;z-index:35;width:215px;padding:12px;background:#0e1619f5;border:1px solid #bda36d;box-shadow:0 4px 15px #0008;font:10px/1.5 system-ui}#item-tooltip strong{color:#efd496;font-size:12px}#profile-screen{position:absolute;inset:0;background:#071014b8;backdrop-filter:blur(3px);display:grid;place-items:center;z-index:40}#profile-screen section{width:min(430px,90%);max-height:90%;overflow:auto;background:#162022f5;border:1px solid #b09a65;padding:28px;box-shadow:0 10px 70px #0009}#profile-screen h1{font-size:29px}#profile-screen input{width:100%;padding:11px;background:#0f191c;border:1px solid #94815866;color:#ded6be;margin-top:6px}#profile-screen p{font-size:12px;line-height:1.6}#profile-error,#create-error{color:#e99c86}.character-list{display:grid;gap:7px}.character-list button{text-align:left;font-size:12px}.character-list small{display:block;color:#a8b4a8;margin-top:5px}button:disabled{opacity:.38;cursor:not-allowed}@media(max-width:1000px){#skillbar{left:230px;right:12px}#skillbar button{font-size:8px}.equipment-grid{grid-template-columns:repeat(3,1fr)}.bag{grid-template-columns:repeat(4,1fr)}}@media(max-width:800px){#rpg-bars{bottom:120px;width:155px}#skillbar{left:16px;right:16px;bottom:64px}#notice{bottom:195px;left:20px;right:20px;font-size:10px}#quest-tracker{top:180px;max-width:150px}#target-hud{left:auto;right:16px;top:130px;width:155px}#rpg-window{top:40px;max-height:85%}.window-body{max-height:55vh}.location p{max-width:230px!important}.rpg-active .hud{bottom:225px;font-size:8px}.rpg-active .scene{min-height:640px}}

#death-screen{position:absolute;inset:0;background:#0c0b10a6;z-index:100;display:grid;place-items:center;pointer-events:auto}#death-screen[hidden]{display:none}#death-screen section{text-align:center;padding:36px;border:1px solid #88765d;background:#171719eb}#death-screen h1{color:#d9c6aa;letter-spacing:4px}#death-screen button{color:#ffe4a3}#dev-panel{color:#ecc780}
/* Target-based skill interface: resources above two rows of four bindings. */
#rpg-bars{left:24px;bottom:270px;width:340px;pointer-events:auto;cursor:pointer}#rpg-bars .resource{height:17px}#rpg-bars .resource b{font-size:11px}#skillbar{left:24px;right:auto;bottom:62px;width:min(620px,calc(100% - 48px));display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px}.skill-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.potion-slots{display:grid;grid-template-rows:1fr 1fr;gap:4px}#skillbar button{position:relative;min-height:70px;padding:5px 3px;font-size:9px}#skillbar button b{font:11px system-ui;margin:0;color:#eed9a5}#skillbar button .skill-icon{display:inline-block;font-size:17px;margin-right:4px}#skillbar button small{font-size:9px;margin:2px 0}.skills-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.skill-card{padding:10px;text-align:left;min-width:0}.skill-card strong,.skill-card small{display:block;margin-top:5px}.skill-card small{font:10px system-ui}.skill-icon{font-size:24px}.locked{filter:grayscale(1);opacity:.42}#notice{bottom:310px;left:24px;right:24px}.rpg-active .hud{bottom:340px}#rpg-window{z-index:20;top:70px;max-height:calc(100% - 260px)}.window-body{max-height:min(48vh,420px)}@media(max-width:800px){#rpg-bars{bottom:250px;width:280px}#skillbar{left:12px;right:12px;width:calc(100% - 24px);grid-template-columns:minmax(0,1fr) 94px}#rpg-window{top:30px}.skills-grid{grid-template-columns:1fr 1fr}.rpg-active .scene{min-height:740px}}
#rpg-window{display:flex;flex-direction:column;max-height:calc(100% - 390px)}#rpg-window .window-title{flex-shrink:0}#rpg-window .window-body{min-height:0;max-height:none;overflow:auto}@media(max-width:800px){#rpg-window{max-height:calc(100% - 340px)}}
.status-strip{display:flex;flex-wrap:wrap;gap:3px;max-height:48px;overflow:auto;margin-top:5px}.status-badge{display:inline-flex;gap:4px;align-items:center;border:1px solid var(--status-color);color:var(--status-color);background:#101922e8;padding:3px 5px;border-radius:3px;font:10px system-ui}.status-badge small{color:#c6d0cf;font-size:8px}#target-hud .status-badge{margin:3px 2px 0}#vfx-dev-dock{position:absolute;right:14px;top:100px;width:230px;background:#111b22f2;border:1px solid #bda26b;padding:12px;color:#ddd5be;pointer-events:auto;z-index:19;box-shadow:0 8px 25px #0005;font:11px system-ui}#vfx-dev-dock label{display:block;margin-top:7px;font-size:10px}#vfx-dev-dock select{width:100%;font-size:11px;padding:5px}#vfx-dev-dock input{width:auto}.vfx-heading,.vfx-buttons{display:flex;justify-content:space-between;gap:5px;align-items:center}.vfx-heading button{padding:2px 7px}.vfx-buttons button{padding:7px;font-size:10px;flex:1}#vfx-phase{color:#e8cc8b;font-size:10px;min-height:25px;line-height:1.4}#dev-vfx-open{color:#f0d392}#vfx-dev-dock .vfx-options label{display:flex;align-items:center;gap:5px}#vfx-dev-dock .vfx-buttons{margin-top:9px}@media(max-width:800px){#vfx-dev-dock{top:85px;right:12px;width:195px}}
.storage-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.storage-columns section{min-width:0}.storage-bag{grid-template-columns:repeat(3,minmax(0,1fr));min-height:160px;max-height:52vh;overflow:auto;align-content:start;padding:6px;border:1px solid #77694d;background:#121c18}.storage-empty{min-height:56px;border:1px dashed #4b5546;display:grid;place-items:center;color:#68715b}.storage-columns .item{min-width:0}.storage-columns h3{font-size:14px}@media(max-width:650px){.storage-columns{grid-template-columns:1fr}.storage-bag{max-height:28vh}}

/* Per-region fast-travel destinations within the existing scrollable Teleportadora. */
.teleport-region{margin:12px 0;padding:7px 10px 11px;border:1px solid #937e554f;background:#17252877}.teleport-region h3{font-size:13px!important;margin:3px 0 8px!important}.teleport-region h3 small{float:right;font:10px system-ui;color:#a6b8b8}.teleport-region .destination{margin-top:4px!important;padding:8px 9px}.teleport-region .destination small{font:10px system-ui;color:#b6c4c1}
.teleport-category{margin:16px 0 20px;padding:12px 14px 3px;border:1px solid #937e5577;background:#17252866}
.teleport-category>h2{margin:0 0 10px;font:700 17px Georgia,serif;letter-spacing:1.5px;color:#e4d09b}
.teleport-category .teleport-region{margin:8px 0}
.teleport-cities{border-color:#7faeaa99;background:linear-gradient(135deg,#1a333577,#17252877)}
.teleport-cities>h2{color:#aee1d5}
.teleport-super-boss{border:1px solid #c17c61aa;background:linear-gradient(135deg,#39201fbb,#241c20cc);box-shadow:inset 0 0 18px #d1653218,0 0 12px #d1653212}
.teleport-super-boss>h2{color:#ffc184;text-shadow:0 0 12px #e46a3a66}
.teleport-boss-region{border-color:#bf795b77;background:#37252288}

/* Comerciante: searchable by category and grade, with per-item bulk purchases. */
.shop-wallet{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:10px;padding:10px;border:1px solid #9b855861;background:#2b3027;color:#ead8a5}
.shop-wallet span{color:#d2d1c4}.shop-tabs{display:grid;gap:8px;margin:12px 0 20px}
.shop-tabs details{margin:0!important;padding:0!important;border:1px solid #907a504f;border-radius:3px;background:#18242799}
.shop-tabs summary{cursor:pointer;padding:11px 12px;font-weight:bold;letter-spacing:.4px;color:#e0c994;list-style-position:inside}
.shop-tabs summary small{float:right;font-size:10px;font-weight:normal;letter-spacing:0;color:#bac3b8}
.shop-tabs .shop-grade{margin:6px 10px 10px!important;border-color:#776a4d80;background:#0d171a99}
.shop-tabs .shop-grade summary{padding:8px 10px;color:#c2d3c8;font-size:11px}
.shop-family{margin:8px 8px 13px}.shop-family h4{font-size:10px;color:#debd81;letter-spacing:1px;margin:10px 4px 5px}
.shop-product{padding:8px 10px;gap:9px;flex-wrap:wrap;min-width:0}
.shop-product-info{flex:1 1 180px;min-width:0}.shop-product-info strong{display:block;font-size:11px;color:#e3decf}
.shop-product-info small{line-height:1.5}.shop-purchase{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex:1 0 205px}
.shop-purchase label{display:flex;align-items:center;gap:5px;font:10px system-ui;margin:0;white-space:nowrap}
.shop-purchase input[type=number]{width:63px;min-width:0;box-sizing:border-box;background:#0e191c;border:1px solid #86754d;color:#f4e3bf;border-radius:3px;padding:7px 4px;font-size:12px;text-align:center}
.shop-purchase output{font:10px system-ui;color:#ddcca3;min-width:116px;text-align:right}
.shop-purchase button{margin:0!important;min-width:70px}
@media(max-width:650px){.shop-product{align-items:flex-start}.shop-purchase{flex-basis:100%;justify-content:flex-start;padding-left:0}.shop-purchase output{text-align:left;flex:1}}

/* Escape countdown: visible during the five-second channel, above normal HUD. */
#escape-channel{position:absolute;z-index:24;top:58px;left:50%;transform:translateX(-50%);width:min(290px,85%);pointer-events:none;box-sizing:border-box;background:#111e24ef;border:1px solid #d2b66e;border-radius:5px;color:#f3e2af;padding:10px 12px;text-align:center;font:12px system-ui;box-shadow:0 4px 15px #0009}
#escape-channel[hidden]{display:none!important}#escape-channel strong{display:block;margin-bottom:7px}.escape-progress{height:6px;background:#2a3337;border-radius:4px;overflow:hidden}.escape-progress span{display:block;height:100%;background:#d6b974;transition:width .12s linear}

/* Tela de entrada: foco no login e painel lateral mais organizado. */
.rpg-active #profile-screen{background:rgba(4,10,12,.86);backdrop-filter:blur(7px);padding:24px;z-index:50}
.rpg-active #profile-screen section{width:min(430px,100%);max-height:calc(100% - 48px);overflow:auto;margin-left:clamp(0px,4vw,54px);padding:32px 34px;background:linear-gradient(145deg,#172427f7,#0d1719f7);border:1px solid #b79b5c;box-shadow:0 18px 70px #000b;border-radius:4px}
.rpg-active #profile-screen h1{margin:10px 0 12px;font-size:30px;letter-spacing:.2px}
.rpg-active #profile-screen section>p:not([id]){margin:0 0 18px;color:#aab7ae}
.rpg-active #profile-screen label{margin-top:14px;color:#c1c8ba}
.rpg-active #profile-screen input{height:42px;margin-top:7px;border-radius:3px;background:#0b1518;border-color:#64705f;color:#eee6d2}
.rpg-active #profile-screen button{min-height:40px;border-radius:3px}
.rpg-active #profile-screen .primary{margin-top:20px;background:linear-gradient(#cbb47a,#a58b52);border-color:#e0c98d;color:#1b2320}
.rpg-active #profile-screen #login-register{margin-top:8px;border-color:#56665e;background:#162528;color:#ded4b9}
.rpg-active #profile-screen #profile-error{min-height:20px;margin:12px 0 0;color:#e99c86}
.rpg-active #rpg-menu{max-width:240px}
.rpg-active #rpg-menu h2{font-size:24px;line-height:1.15;margin:8px 0}
.rpg-active #rpg-menu .menu-grid{grid-template-columns:1fr 1fr;gap:6px}
.rpg-active #rpg-menu .menu-grid button{min-height:44px;padding:8px 9px;line-height:1.2;background:#172528;border-color:#40524e}
.rpg-active #rpg-menu hr{margin:18px 0}
@media(max-width:800px){.rpg-active #profile-screen{padding:14px}.rpg-active #profile-screen section{margin:0;padding:24px 22px}.rpg-active #rpg-menu{max-width:none}}

/* Enquanto a conta está sendo escolhida, a tela fica dedicada ao login. */
body:has(#profile-screen:not([hidden])) main{grid-template-columns:1fr}
body:has(#profile-screen:not([hidden])) aside{display:none}
body:has(#profile-screen:not([hidden])) .scene{background:linear-gradient(90deg,#070d12e8 0%,#0a1218b8 42%,#081016d9 100%),url('portal-vesper-hero.png') center/cover no-repeat}
body:has(#profile-screen:not([hidden])) #profile-screen{background:linear-gradient(90deg,#07101799,#0710174d 55%,#07101799);padding:0;backdrop-filter:none}
body:has(#profile-screen:not([hidden])) #world{visibility:hidden}
body:has(#profile-screen:not([hidden])) .location,body:has(#profile-screen:not([hidden])) .camera,body:has(#profile-screen:not([hidden])) .hud,body:has(#profile-screen:not([hidden])) .help{visibility:hidden}
.rpg-active header{justify-content:center;padding:0 20px}
.rpg-active header .brand{font-size:24px;letter-spacing:3px;color:#e6c982}
body:has(#profile-screen:not([hidden])) header{display:none}
body:has(#profile-screen:not([hidden])) main{height:100dvh}
/* O mundo não fica visível nem interativo durante login ou escolha de personagem. */
body:has(#profile-screen:not([hidden])) #rpg-shell > :not(#profile-screen){visibility:hidden!important;opacity:0!important;pointer-events:none!important}
body:has(#profile-screen:not([hidden])) #profile-screen{position:absolute;inset:0;z-index:200;background:#070d16!important;display:flex;align-items:center;justify-content:center;visibility:visible!important;opacity:1!important}
body:has(#profile-screen:not([hidden])) #profile-screen h1{font-size:0;text-align:center}
body:has(#profile-screen:not([hidden])) #profile-screen h1::after{content:'BEM-VINDO AO MUNDO DOS HERÓIS';display:block;font:27px Georgia,serif;line-height:1.2;color:#eee4c9;letter-spacing:.02em}
body:has(#profile-screen:not([hidden])) #profile-screen section{width:min(460px,calc(100% - 32px));padding:38px 40px 34px;background:rgba(13,17,31,.82);border:1px solid rgba(230,174,93,.55);border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.6),0 0 45px rgba(127,72,190,.16);backdrop-filter:blur(18px)}
body:has(#profile-screen:not([hidden])) #profile-screen section>.eyebrow{display:block;text-align:center;color:#f0ac5e;font-size:10px;letter-spacing:.3em;margin-bottom:18px}
body:has(#profile-screen:not([hidden])) #profile-screen h1::after{font-family:system-ui,sans-serif;font-size:25px;font-weight:800;letter-spacing:-.02em}
body:has(#profile-screen:not([hidden])) #profile-screen section>p:not([id]){text-align:center;font-size:13px;color:#aab3c7;margin:12px 0 25px}
body:has(#profile-screen:not([hidden])) #profile-screen label{font-size:11px;font-weight:600;letter-spacing:.04em;color:#cbd0df;margin-top:16px}
body:has(#profile-screen:not([hidden])) #profile-screen input{height:48px;padding:0 15px;border:1px solid #3b455d;border-radius:10px;background:#0b1020;color:#f4f6ff;outline:none;transition:border-color .2s,box-shadow .2s}
body:has(#profile-screen:not([hidden])) #profile-screen input:focus{border-color:#ca8bff;box-shadow:0 0 0 3px rgba(177,107,255,.16)}
body:has(#profile-screen:not([hidden])) #profile-screen .primary{height:49px;margin-top:25px;border:0;border-radius:10px;background:linear-gradient(100deg,#ffb45f,#c56bff);color:#171323;font:800 12px system-ui;letter-spacing:.12em;box-shadow:0 8px 22px rgba(196,105,255,.25);transition:transform .2s,filter .2s}
body:has(#profile-screen:not([hidden])) #profile-screen .primary:hover{filter:brightness(1.1);transform:translateY(-2px)}
body:has(#profile-screen:not([hidden])) #profile-screen #login-register{margin:13px auto 0;display:block;border:0;background:transparent;color:#c58cff;font-size:11px;font-weight:700;letter-spacing:.05em}
body:has(#profile-screen:not([hidden])) .scene{background:linear-gradient(90deg,rgba(7,10,22,.38),rgba(9,12,24,.18) 52%,rgba(7,10,22,.32)),url('portal-vesper-hero.png') center/cover no-repeat}
body:has(#profile-screen:not([hidden])) #profile-screen{background:rgba(5,8,18,.16)}
body:has(#profile-screen:not([hidden])) #profile-screen section{border:none;background:rgba(13,17,31,.72);box-shadow:0 24px 80px rgba(0,0,0,.46),0 0 45px rgba(127,72,190,.12)}
#online-presence{position:absolute;top:16px;right:18px;z-index:30;padding:7px 11px;border:1px solid #7dbd8a66;border-radius:999px;background:#081511c9;color:#a9dfb2;font:10px system-ui;box-shadow:0 4px 14px #0006;pointer-events:none}
body:has(#profile-screen:not([hidden])) #profile-screen section{margin:0 auto;width:min(440px,calc(100% - 32px));align-self:center}
body:has(#profile-screen:not([hidden])) #profile-screen:before{content:'ACESSO AO MUNDO DE VESPER';position:absolute;top:clamp(34px,12vh,110px);left:0;right:0;text-align:center;color:#8d9b91;font:10px system-ui;letter-spacing:.28em}
#rpg-bars .resource.experience{height:14px;border-color:#9b844b88;background:#11151a}#rpg-bars .resource.experience span{background:linear-gradient(90deg,#76563a,#d7ad55,#f2dc88);transition:width .25s ease}#rpg-bars .resource.experience b{font-size:10px;color:#fff2bc}
.rpg-active main{height:100dvh}
.rpg-active #rpg-bars{top:70px;bottom:auto}.rpg-active #notice{bottom:180px}
#skillbar button.cooling{filter:saturate(.45);border-color:#c28b6577;background:linear-gradient(#292326,#171a1d)}#skillbar button.cooling .skill-icon{opacity:.55}#skillbar button.cooling small{color:#ffd38a;font-weight:700;font-size:10px;text-shadow:0 0 6px #d78345}#skillbar button.cooling:after{content:"EM RECARGA";position:absolute;top:3px;right:4px;color:#ffb56b;font:8px system-ui;letter-spacing:.3px}
.rpg-active aside{display:none}.rpg-active main{grid-template-columns:minmax(0,1fr)}#functions-button,#character-button{position:absolute;bottom:62px;z-index:12;background:#172020eb;border:1px solid #b49a5d;color:#efd59a;padding:9px 12px;font:11px Georgia}#functions-button{left:24px}#character-button{left:132px}#functions-menu{position:absolute;bottom:108px;left:24px;z-index:14;display:grid;gap:4px;padding:7px;background:#111b1df5;border:1px solid #b49a5d;box-shadow:0 8px 24px #0009}#functions-menu[hidden]{display:none}#functions-menu button{min-width:125px;text-align:left}.character-info h3{color:#efd59a}.character-info h3 small{float:right;color:#b8ad91;font:11px system-ui}.character-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px;font:11px system-ui}.character-stats i{float:right;color:#efd59a;font-style:normal}.character-adena{font-size:15px;color:#efd59a}@media(max-width:800px){#functions-button{left:12px}#character-button{left:122px}#functions-menu{left:12px;bottom:112px}}
.rpg-active #functions-button{left:auto;right:245px;bottom:105px}.rpg-active #character-button{left:auto;right:105px;bottom:105px}.rpg-active #functions-menu{left:auto;right:245px;bottom:153px}@media(max-width:800px){.rpg-active #functions-button{right:116px;bottom:105px}.rpg-active #character-button{right:12px;bottom:105px}.rpg-active #functions-menu{right:116px;bottom:153px}}
@media(max-width:800px){.rpg-active main{height:100dvh;min-height:0}.rpg-active .scene{height:100dvh;min-height:0}.rpg-active #skillbar{bottom:12px}.rpg-active #rpg-bars{top:58px}.rpg-active #functions-button,.rpg-active #character-button{bottom:180px}.rpg-active #functions-menu{bottom:228px}}
@media(max-width:800px){.rpg-active #rpg-bars{width:245px}.rpg-active #rpg-bars .resource{height:14px;margin:3px 0}.rpg-active #rpg-bars .resource b{font-size:9px}.rpg-active #rpg-bars small{font-size:7px}.rpg-active #functions-button{right:132px;bottom:92px}.rpg-active #character-button{right:8px;bottom:92px}.rpg-active #functions-menu{right:132px;bottom:140px}}
@media(max-width:800px){.rpg-active #functions-button,.rpg-active #character-button{bottom:132px}.rpg-active #functions-menu{bottom:180px}}
@media(max-width:800px){.rpg-active #functions-button,.rpg-active #character-button{bottom:150px}.rpg-active #functions-menu{bottom:198px}}
@media(max-width:800px){.rpg-active #functions-button{right:112px}.rpg-active #character-button{right:8px}}
#character-button{display:none!important}
@media(max-width:800px){.rpg-active #functions-button{right:8px;bottom:150px}.rpg-active #functions-menu{right:8px;bottom:198px}}
@media(max-width:800px){#functions-button{position:fixed!important;left:auto;right:2px!important;bottom:150px!important}#functions-menu{position:fixed!important;left:auto;right:2px!important;bottom:198px!important}}
@media(max-width:800px){#functions-button{left:2px!important;right:auto!important;bottom:150px!important}#functions-menu{left:2px!important;right:auto!important;bottom:198px!important}}
body:has(#profile-screen:not([hidden])) #functions-button,body:has(#profile-screen:not([hidden])) #functions-menu{display:none!important}
.party-corner{left:auto;right:18px;top:auto;bottom:105px;transform:none!important;width:min(360px,calc(100% - 24px))}.party-corner .window-body{max-height:42vh}.party-member{display:block;width:100%;text-align:left;margin:4px 0;padding:7px}.party-member small{display:block;font-size:9px;color:#b9c4b8;margin-top:3px}@media(max-width:800px){.party-corner{right:8px;bottom:145px;width:calc(100% - 16px)}}

/* Party: painel redimensionável e reposicionável */
.party-corner{resize:both!important;overflow:auto!important;min-width:280px!important;min-height:190px!important;max-width:90vw;max-height:80vh}.party-layout-tools{display:flex;align-items:center;gap:8px;padding:6px 0 8px;border-bottom:1px solid rgba(211,174,84,.25);margin-bottom:8px;font-size:11px;color:#d8c58e}.party-layout-tools label{display:flex;align-items:center;gap:5px;flex:1}.party-layout-tools input{width:100px;accent-color:#d3ae54}.party-layout-tools button{font-size:10px;padding:4px 7px}
/* Party UI moderno */
.party-corner{background:linear-gradient(145deg,rgba(17,28,31,.97),rgba(8,16,20,.97))!important;border:1px solid rgba(225,190,104,.72)!important;border-radius:16px!important;box-shadow:0 20px 60px rgba(0,0,0,.58),0 0 28px rgba(197,151,69,.12)!important;backdrop-filter:blur(14px);color:#e9e3d2}
.party-corner .window-title{height:54px;padding:0 18px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(211,164,77,.22),rgba(20,36,37,.2));border-bottom:1px solid rgba(225,190,104,.35);letter-spacing:.13em;color:#f4d98e}.party-corner .window-title strong{font:700 14px system-ui;letter-spacing:.12em}.party-corner #close-window{width:30px;height:30px;border-radius:50%;border:1px solid rgba(225,225,200,.22);background:rgba(0,0,0,.18);color:#f4d98e;font-size:20px;line-height:1}.party-corner #close-window:hover{background:#9e493d;color:#fff;border-color:#e88d7d}
.party-corner .window-body{padding:18px!important;max-height:55vh!important;scrollbar-color:#b99651 transparent}.party-corner .window-body h3{margin:0 0 12px;color:#f1d58e;font:600 15px Georgia,serif}.party-corner .party-members{display:grid;gap:8px;margin:10px 0 14px}.party-corner .party-member{position:relative;margin:0;padding:11px 12px 10px!important;border:1px solid rgba(197,174,111,.35)!important;border-radius:9px!important;background:linear-gradient(110deg,rgba(33,55,54,.85),rgba(17,29,31,.9))!important;color:#eee8d8;transition:transform .16s,border-color .16s,background .16s}.party-corner .party-member:hover{transform:translateX(3px);border-color:#e0b75d!important;background:linear-gradient(110deg,rgba(68,73,51,.9),rgba(20,38,38,.95))!important}.party-corner .party-member b{font:600 12px system-ui;color:#f5e1a8}.party-corner .party-member small{margin-top:6px;color:#a9c5b8;font-size:10px}.party-corner .party-member small:before{content:'● ';color:#72d49b}.party-corner #party-invite,.party-corner #party-leave,.party-corner #party-create{border-radius:7px;padding:9px 12px;margin:2px 5px 0 0;background:rgba(35,51,51,.9);border:1px solid rgba(222,184,91,.58);color:#f1d899;font:11px system-ui;transition:background .16s,transform .16s}.party-corner #party-invite:hover,.party-corner #party-leave:hover,.party-corner #party-create:hover{background:#a27b36;color:#fff;transform:translateY(-1px)}.party-corner hr{border:0;border-top:1px solid rgba(225,190,104,.2);margin:16px 0}.party-layout-tools{background:rgba(0,0,0,.14);border-radius:8px;padding:7px 9px;margin-bottom:12px;border-bottom:0}.party-layout-tools input{accent-color:#e0b45b}.party-layout-tools button{border:1px solid rgba(225,190,104,.4);border-radius:5px;background:transparent;color:#d9c28b}

/* Alças de redimensionamento em todos os lados e cantos da Party */
.party-corner{resize:none!important;overflow:visible!important;min-width:280px!important;min-height:190px!important}
.party-resize-handle{position:absolute;display:block;z-index:50}.party-resize-n,.party-resize-s{left:10px;right:10px;height:8px;cursor:ns-resize}.party-resize-n{top:-4px}.party-resize-s{bottom:-4px}.party-resize-e,.party-resize-w{top:10px;bottom:10px;width:8px;cursor:ew-resize}.party-resize-e{right:-4px}.party-resize-w{left:-4px}.party-resize-ne,.party-resize-se,.party-resize-sw,.party-resize-nw{width:14px;height:14px}.party-resize-ne{right:-5px;top:-5px;cursor:nesw-resize}.party-resize-sw{left:-5px;bottom:-5px;cursor:nesw-resize}.party-resize-se{right:-5px;bottom:-5px;cursor:nwse-resize}.party-resize-nw{left:-5px;top:-5px;cursor:nwse-resize}


/* Título recebe o ponteiro diretamente para arrastar janelas */
#rpg-window{pointer-events:auto!important;touch-action:auto;z-index:999!important}.window-title{pointer-events:auto!important;user-select:none;cursor:grab;touch-action:none}.window-title:active{cursor:grabbing}.window-body{pointer-events:auto!important;touch-action:pan-y}.window-body button,.window-title button{pointer-events:auto!important}

/* Janelas livres na viewport, independentes do contêiner do mapa */
#rpg-window{position:fixed!important;z-index:60!important;max-width:calc(100vw - 8px)!important;max-height:calc(100vh - 8px)!important}


/* Party translúcida */
.party-corner{background:linear-gradient(145deg,rgba(20,31,34,.78),rgba(7,15,19,.72))!important;border:1px solid rgba(231,199,124,.7)!important;box-shadow:0 18px 55px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.08)!important;backdrop-filter:blur(12px) saturate(1.15)!important}
.party-corner .window-title{background:linear-gradient(90deg,rgba(185,143,57,.42),rgba(20,37,38,.28))!important;border-bottom:1px solid rgba(239,205,125,.35)!important;color:#ffe4a3!important}.party-corner .window-body{background:rgba(4,12,16,.16)!important}.party-corner .party-member{background:linear-gradient(110deg,rgba(40,66,65,.63),rgba(12,27,30,.56))!important;border-color:rgba(233,203,126,.48)!important;box-shadow:inset 0 1px rgba(255,255,255,.06)}.party-corner .party-member:hover{background:linear-gradient(110deg,rgba(101,91,55,.72),rgba(24,51,50,.7))!important;border-color:#f0ca73!important}.party-corner .party-layout-tools{background:rgba(0,0,0,.13)!important}.party-corner #party-invite,.party-corner #party-leave,.party-corner #party-create{background:rgba(37,57,57,.65)!important;border-color:rgba(236,198,105,.7)!important}.party-corner #party-invite:hover,.party-corner #party-leave:hover,.party-corner #party-create:hover{background:rgba(163,121,51,.82)!important}
/* Party compacta */
.party-corner .window-title{height:42px;padding:0 14px}.party-corner .window-body{padding:10px!important}.party-corner .party-layout-tools{padding:4px 6px;margin-bottom:7px}.party-corner .party-content{margin:0}.party-corner .party-members{gap:4px;margin:6px 0 9px}.party-corner .party-member{padding:7px 9px!important}.party-corner .party-member small{margin-top:3px}.party-corner .window-body h3{margin:5px 0 8px;font-size:14px}.party-corner #party-invite,.party-corner #party-leave,.party-corner #party-create{padding:7px 10px;margin-top:1px}
/* Ajuste fino do topo da Party */
.party-corner .window-body{padding:4px 8px 8px!important}.party-corner .party-layout-tools{padding:2px 4px;margin:0 0 3px}.party-corner .window-body h3{margin:2px 0 5px}.party-corner{min-height:150px!important}
/* Party sem folga superior */
.party-corner .window-body{padding:0 6px 5px!important}.party-corner .party-layout-tools{padding:0!important;margin:0!important;min-height:0!important}.party-corner .party-layout-tools button{margin:0 0 3px!important}.party-corner .party-members{margin-top:2px!important}.party-corner .window-body h3{margin-top:1px!important}
/* Party leve, sem o último contorno */
.party-corner{background:rgba(8,18,21,.58)!important;border:0!important;box-shadow:0 14px 42px rgba(0,0,0,.3)!important}.party-corner .window-title{background:rgba(38,47,39,.48)!important;border:0!important;border-bottom:0!important}.party-corner .window-body{background:rgba(4,12,16,.08)!important}.party-corner .party-member{border-color:rgba(233,203,126,.3)!important}

.party-corner{border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important}.party-corner .window-title{border-radius:0!important}.party-corner .window-body{border:0!important}

/* Party mais estreita */
.party-corner{min-width:210px!important;width:fit-content}.party-corner .window-body{min-width:0}.party-corner .party-member{min-width:0}.party-corner .party-member small{white-space:nowrap;font-size:9px}@media(max-width:800px){.party-corner{min-width:190px!important}}

.party-corner,.party-corner .window-title,.party-corner .window-body,.party-corner button{font-family:'Comic Sans MS','Comic Sans',cursive!important}

/* Redimensionamento lateral real da Party */
.party-corner{resize:both!important;overflow:auto!important;width:360px;min-width:180px!important;max-width:90vw!important}.party-corner .window-body{overflow:auto!important}

.party-corner{min-width:140px!important;width:300px}.party-corner .party-member small{font-size:8px;overflow:hidden;text-overflow:ellipsis}.party-corner .party-member{padding:5px!important}.party-corner .window-body{padding-left:4px!important;padding-right:4px!important}

/* Mesmo redimensionamento e tipografia nas demais janelas */
#rpg-window{resize:both!important;overflow:hidden!important;min-width:180px;min-height:140px}.window-title,.window-body,.window-body button,.window-body input,.window-body select{font-family:'Comic Sans MS','Comic Sans',cursive}.window-body{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-behavior:auto}
/* Tema unificado das janelas */
#rpg-window{background:rgba(8,18,21,.58)!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:blur(12px) saturate(1.1)!important;color:#e9e3d2}.window-title{background:rgba(38,47,39,.48)!important;border:0!important;color:#ffe4a3!important}.window-body{background:rgba(4,12,16,.08)!important;color:#e9e3d2}.window-body h2,.window-body h3,.window-body strong{color:#f1d58e}.window-body button{background:rgba(37,57,57,.65);border:1px solid rgba(236,198,105,.7);color:#f1d899;border-radius:6px}.window-body button:hover{background:rgba(163,121,51,.82);color:#fff}.window-body article,.window-body .item,.window-body .skill-card{background:rgba(20,39,40,.48);border-color:rgba(233,203,126,.3)}
/* Inventário estilo MMORPG */
#rpg-window:has(.equipment-grid){width:min(820px,94vw)!important;background:linear-gradient(145deg,rgba(12,24,28,.9),rgba(7,14,18,.82))!important;border:1px solid rgba(218,181,91,.55)!important;border-radius:10px!important;box-shadow:0 18px 60px rgba(0,0,0,.55),inset 0 0 35px rgba(94,126,104,.08)!important}
#rpg-window:has(.equipment-grid) .window-title{height:48px;padding:0 20px;background:linear-gradient(90deg,rgba(171,126,48,.4),rgba(24,45,44,.35))!important;font:700 14px 'Comic Sans MS',cursive;letter-spacing:.04em}
#rpg-window:has(.equipment-grid) .window-body{padding:14px 20px 20px!important}.equipment-grid{grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;padding-bottom:14px;border-bottom:1px solid rgba(225,190,104,.22)}.equipment-grid label{color:#ddca96;font:10px 'Comic Sans MS',cursive;letter-spacing:.03em}.equipment-grid .item,.equipment-grid .empty-slot{height:78px;border:1px solid rgba(215,178,91,.6);border-radius:7px;background:linear-gradient(145deg,rgba(47,61,56,.78),rgba(17,30,32,.72));box-shadow:inset 0 1px rgba(255,255,255,.07);transition:transform .15s,border-color .15s}.equipment-grid .item:hover{transform:translateY(-2px);border-color:#f1cf78}.equipment-grid .item svg{width:38px;height:38px}.equipment-grid .item small{font-size:9px;color:#f1dfaf}.window-body h3{font-family:'Comic Sans MS',cursive!important;color:#f0d58d!important;border-left:3px solid #c99c4e;padding-left:9px;margin-top:14px!important}.bag{grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:7px;padding:10px;border:1px solid rgba(210,188,125,.25);border-radius:7px;background:rgba(5,13,17,.28)}.bag .item{height:82px;border:1px solid rgba(208,174,90,.45);border-radius:7px;background:rgba(31,51,52,.65);transition:transform .15s,background .15s}.bag .item:hover{transform:translateY(-2px);background:rgba(91,81,48,.7)}
@media(max-width:800px){#rpg-window:has(.equipment-grid){width:94vw!important}.equipment-grid{grid-template-columns:repeat(2,minmax(105px,1fr));gap:6px}.bag{grid-template-columns:repeat(3,minmax(70px,1fr))}}
/* Inventário dividido em equipamento e mochila */
.inventory-layout{display:grid;grid-template-columns:minmax(330px,1.05fr) minmax(280px,.95fr);gap:18px}.inventory-equipment,.inventory-items{min-width:0}.inventory-equipment{padding-right:14px;border-right:1px solid rgba(225,190,104,.22)}.inventory-items h3 small{float:right;color:#d9c183;font:11px system-ui}.inventory-items .note{margin:0 0 8px}.inventory-items .bag{min-height:220px;grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}.inventory-equipment .equipment-grid{grid-template-columns:repeat(3,minmax(85px,1fr));border:0;padding:0}.inventory-equipment .equipment-grid>div{min-width:0}@media(max-width:800px){.inventory-layout{grid-template-columns:1fr;gap:12px}.inventory-equipment{padding-right:0;border-right:0;border-bottom:1px solid rgba(225,190,104,.22);padding-bottom:10px}.inventory-equipment .equipment-grid{grid-template-columns:repeat(3,minmax(70px,1fr))}.inventory-items .bag{min-height:120px}}
/* O layout só vira uma coluna em telas realmente estreitas */
@media(min-width:521px){#rpg-window:has(.inventory-layout){width:min(900px,96vw)!important}.inventory-layout{grid-template-columns:minmax(300px,1.05fr) minmax(250px,.95fr)!important;gap:16px!important}.inventory-equipment{padding-right:12px!important;border-right:1px solid rgba(225,190,104,.22)!important;border-bottom:0!important}.inventory-items .bag{min-height:180px!important}}
@media(max-width:520px){#rpg-window:has(.inventory-layout){width:calc(100vw - 12px)!important}.inventory-layout{grid-template-columns:1fr!important}}
/* Ajuste final para navegador móvel */
@media(max-width:520px){
  html,body{width:100%;min-width:0;overflow:hidden}
  .rpg-active main,.rpg-active .scene{width:100vw;height:100dvh;min-height:0;overflow:hidden}
  .rpg-active .location{left:10px;top:12px;max-width:62vw}
  .rpg-active .location h1{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rpg-active .location p{font-size:9px;white-space:nowrap}
  .rpg-active #rpg-bars{top:56px;left:6px;width:calc(100vw - 12px);box-sizing:border-box;padding:6px 8px}
  .rpg-active #skillbar{left:4px;right:4px;bottom:4px;width:auto;grid-template-columns:minmax(0,1fr) 58px;padding:3px;gap:3px}
  .rpg-active #skillbar .skill-slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
  .rpg-active #skillbar button{min-height:52px;padding:2px;font-size:8px}
  .rpg-active #skillbar [data-hotbar] .skill-icon{min-height:22px}
  .rpg-active #skillbar [data-hotbar] .skill-art{width:20px;height:20px}
  .rpg-active #functions-button,.rpg-active #character-button{bottom:112px;padding:7px 8px;font-size:10px}
  .rpg-active #functions-button{left:4px;right:auto!important}.rpg-active #character-button{left:110px;right:auto!important}
  .rpg-active #functions-menu{left:4px;right:auto!important;bottom:157px}
  #rpg-window{left:6px!important;top:55px!important;width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 120px)!important}
  #rpg-window .window-title{min-height:42px;padding:8px 12px}
  #rpg-window .window-body{padding:10px;max-height:calc(100dvh - 180px);font-size:11px}
  #rpg-window .window-body button{min-height:36px}
}
@media(max-width:800px){.rpg-active canvas{touch-action:none;user-select:none}}

.party-corner{width:min(300px,90vw);height:auto;max-height:70vh}.party-corner .window-body{max-height:calc(70vh - 55px)!important}@media(max-width:520px){.party-corner{width:calc(100vw - 24px);max-width:320px;max-height:58vh}.party-corner .window-body{max-height:calc(58vh - 48px)!important}}

.party-resize-handle{pointer-events:auto!important;z-index:200!important}.party-resize-n,.party-resize-s{height:18px}.party-resize-e,.party-resize-w{width:18px}.party-resize-ne,.party-resize-se,.party-resize-sw,.party-resize-nw{width:24px;height:24px}

@media(max-width:800px){.rpg-active #functions-button{bottom:152px!important}}

@media(max-width:520px){#rpg-window.party-corner{width:280px!important;max-width:calc(100vw - 24px)!important;left:auto!important;right:8px!important;top:52px!important;max-height:44vh!important}.party-corner .window-body{max-height:calc(44vh - 48px)!important}.rpg-active #functions-button{bottom:210px!important}}

.party-corner{background:rgba(8,18,21,.34)!important}.party-corner .window-title{background:rgba(38,47,39,.32)!important}.party-corner .window-body{background:rgba(4,12,16,.04)!important}

@media(max-width:520px){#rpg-window.party-corner{width:190px!important;max-width:calc(100vw - 24px)!important;max-height:32vh!important}.party-corner .window-body{max-height:calc(32vh - 42px)!important}}
@media(max-width:520px){#rpg-window.party-corner{width:160px!important;max-height:26vh!important;min-width:150px!important;min-height:150px!important}.party-corner .window-body{max-height:calc(26vh - 40px)!important}}
#pvp-toggle{display:none}@media(max-width:800px){#pvp-toggle{display:block;position:fixed;right:6px;bottom:210px;z-index:20;background:rgba(34,25,35,.8);border:1px solid #b49a5d;color:#efd59a;padding:7px 9px;font:10px 'Comic Sans MS',cursive;border-radius:5px}#pvp-toggle.active{background:rgba(112,35,92,.9);color:#ffd5f4;border-color:#ff72c8}}

@media(max-width:520px){#skillbar{grid-template-columns:minmax(0,1fr) 48px!important;padding:2px!important;gap:2px!important}#skillbar .skill-slots{gap:1px!important}#skillbar button{min-height:40px!important;padding:1px!important;font-size:7px!important}#skillbar [data-hotbar] b{font-size:8px!important;top:1px;left:2px}#skillbar [data-hotbar] .skill-icon{min-height:17px!important}#skillbar [data-hotbar] .skill-art{width:17px!important;height:17px!important}#skillbar [data-potion]{min-height:0!important;font-size:7px!important}#skillbar [data-potion] b,#skillbar [data-potion] small{font-size:7px!important}}

@media(max-width:520px){#rpg-window.party-corner{width:130px!important;min-width:120px!important;max-width:calc(100vw - 16px)!important;max-height:24vh!important;min-height:120px!important}.party-corner .window-body{max-height:calc(24vh - 38px)!important;padding:5px!important}.party-corner .party-member{padding:3px!important;font-size:9px!important}.party-corner button{font-size:8px!important;padding:4px!important}}

#rpg-shell #target-hud{box-sizing:border-box;pointer-events:none;z-index:20;min-width:190px;max-width:min(260px,calc(100vw - 24px));}
#target-hud .target-title{display:flex;justify-content:center;align-items:baseline;gap:5px;min-height:16px}
#target-hud .target-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#target-hud .target-title span,#target-hud .target-guild,#target-hud .target-note{font:9px system-ui;color:#b9c2bb}
#target-hud .target-guild{margin-top:3px;color:#d6c69d}
#target-hud .target-drops-toggle{pointer-events:auto;margin-top:6px;padding:3px 8px;background:#172020eb;border:1px solid #8e794d88;color:#ead4a1;font:10px system-ui;cursor:pointer}
#target-hud .target-drops-panel{pointer-events:auto;max-height:150px;overflow-y:auto;margin-top:5px;padding:3px 6px;text-align:left;background:#0b1214eF;border-top:1px solid #baa16a55;overscroll-behavior:contain}
#target-hud .target-drops-list{list-style:none;margin:0;padding:0}
#target-hud .target-drops-row{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #ffffff12;font:10px system-ui}
#target-hud .target-drops-row:last-child{border-bottom:0}
#target-hud .target-drop-name{color:#e7d9b5}
#target-hud .target-drops-row small{flex:none;color:#b5c0b2;font:9px system-ui}
#target-hud .target-drops-empty{margin:5px 0;color:#b5c0b2;font:10px system-ui}

@media(max-width:800px){#pvp-toggle{background:rgba(20,20,20,.55);color:#aaa;border-color:#666;opacity:.75}#pvp-toggle.active{background:#9b1726!important;color:#fff!important;border-color:#ff5666!important;opacity:1;box-shadow:0 0 10px #d52c3c88}}
 .guild-flag-preview,.guild-flag-grid{display:grid;grid-template-columns:repeat(24,10px);gap:1px;width:max-content;margin:10px 0}.guild-flag-preview i,.guild-flag-grid button{width:10px;height:10px;padding:0;border:1px solid #34424d}.guild-flag-grid{grid-template-columns:repeat(24,14px)}.guild-flag-grid button{width:14px;height:14px}.guild-flag-palette{display:flex;gap:6px;margin:8px 0}.guild-flag-palette button{width:24px;height:24px;border:1px solid #d4c38b}
@media (max-width:600px){.guild-flag-card{max-width:calc(100vw - 28px);overflow:hidden}.guild-flag-preview{grid-template-columns:repeat(24,6px);gap:1px}.guild-flag-preview i{width:6px;height:6px}.guild-flag-grid{grid-template-columns:repeat(24,12px);gap:2px;max-width:100%;overflow:auto;padding:4px}.guild-flag-grid button{width:12px;height:12px;touch-action:manipulation}.guild-flag-palette{flex-wrap:wrap;gap:8px}.guild-flag-palette button{width:32px;height:32px;touch-action:manipulation}.guild-flag-card button[data-online-action="flag-save"]{width:100%;min-height:44px}}
#rpg-window{pointer-events:auto!important;overflow:hidden!important;touch-action:auto!important;z-index:999!important}#rpg-window .window-title{pointer-events:auto!important;touch-action:none!important}#rpg-window .window-body{pointer-events:auto!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior:contain}
.castle-map-preview{display:block;width:100%;max-width:100%;margin:10px auto 14px;background:#10191a;border:1px solid #b9a16a66;touch-action:auto}

/* Fix tooltip de equipamentos */
#item-tooltip{z-index:99999!important;pointer-events:none;}
.window-body,.equipment-grid,.item{overflow:visible!important;}
#rpg-window{overflow:visible!important;}

#olympiad-result{position:absolute;inset:0;z-index:110;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse at center,#070b0dbb 0%,#070b0d55 48%,transparent 75%)}#olympiad-result[hidden]{display:none}#olympiad-result section{min-width:min(360px,80vw);padding:24px 32px;text-align:center;background:linear-gradient(145deg,#25312dF5,#101719F7);border:1px solid #d7b96c;box-shadow:0 0 0 1px #f3d99124,0 12px 60px #000c,0 0 34px #e2b75335;color:#f4e5bc}#olympiad-result strong{display:block;font:700 clamp(22px,4vw,34px)/1.25 Georgia,serif;letter-spacing:.04em;text-shadow:0 2px 12px #d3a74677}#olympiad-result small{display:block;margin-top:12px;color:#d4c9a9;font:12px system-ui,sans-serif}

/* Keep the narrow-screen functions control clear of the two-row hotbar. */
@media(max-width:1280px){.rpg-active #functions-button{left:auto!important;right:10px!important;bottom:280px!important;z-index:30}.rpg-active #functions-menu{left:auto!important;right:10px!important;bottom:330px!important;z-index:31}}

#cash-shop-button{position:absolute;right:18px;top:66px;z-index:32;width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid #e8ca78;border-radius:50%;background:radial-gradient(circle at 35% 30%,#7b6938,#172729 72%);color:#ffe39a;box-shadow:0 0 14px #e9c56c44;cursor:pointer;pointer-events:auto}#cash-shop-button svg{width:24px;height:24px;filter:drop-shadow(0 0 4px #75d6ee99)}#cash-shop-button:hover{transform:translateY(-1px);box-shadow:0 0 18px #e9c56c88}.cash-product{padding:12px;border:1px solid #b99a5e66;border-radius:8px;background:linear-gradient(145deg,#1c2a29,#111b20)}.cash-product h2{color:#f3d786}.cash-price{display:block;font-size:24px;color:#ffe49a;margin:12px 0}.cash-check{display:flex;align-items:center;gap:7px}.cash-check input{width:auto}.cash-orders{max-height:130px;overflow:auto}.cash-orders p{padding:5px;border-bottom:1px solid #ffffff18}#rpg-window fieldset{border:1px solid #b99a5e55;border-radius:6px;margin:10px 0;padding:8px}#rpg-window legend{color:#efd68f}@media(max-width:800px){.rpg-active #cash-shop-button{right:10px;top:10px;width:38px;height:38px}}
#cash-shop-button{width:auto;min-width:42px;padding:0 12px;grid-auto-flow:column;gap:7px;border-radius:22px}#cash-shop-button span{font-size:11px;font-weight:800;letter-spacing:.5px;white-space:nowrap}.cash-sword-preview{display:grid;place-items:center;width:88px;height:138px;margin:0 auto 8px;filter:drop-shadow(0 0 10px #ec382d88);animation:agation-preview-float 2.3s ease-in-out infinite alternate}.cash-sword-preview svg{width:88px;height:138px}.cash-sword-preview svg[role=img]{display:block}@keyframes agation-preview-float{to{transform:translateY(-5px)}}@media(max-width:800px){.rpg-active #cash-shop-button{width:auto;min-width:38px;height:38px;padding:0 10px}.rpg-active #cash-shop-button span{font-size:9px}.cash-sword-preview{width:64px;height:104px}.cash-sword-preview svg{width:64px;height:104px}}
