:root{color-scheme:dark;--coal:#171715;--panel:#211c17;--text:#fff1da;--muted:#d2bfa7;--line:#594531;--amber:#ffc279;font:16px system-ui,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--text);background:var(--coal)}
button,input{font:inherit}
button,a,input,label{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
a{color:var(--text)}
:focus-visible{outline:3px solid var(--amber);outline-offset:4px}
.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:58px;padding:.5rem clamp(.8rem,3vw,2rem);background:#151411;border-bottom:1px solid var(--line)}
.top a{text-decoration:none}
.brand{letter-spacing:.07em}
.brand span,.place{color:var(--amber)}
.top-actions{display:flex;align-items:center;gap:.7rem;font-size:.88rem}
.top-actions button{color:var(--text);background:#2d241c;border:1px solid var(--line);border-radius:.35rem;padding:.45rem .65rem}
.lobby{min-height:calc(100svh - 59px);display:grid;place-items:center;padding:clamp(1rem,4vw,3rem);background:linear-gradient(90deg,#121210ef,#1b1512bd),url(art/barra-funda.webp) center/cover}
.join-card{width:min(100%,640px);padding:clamp(1rem,4vw,2.5rem);background:#1b1713f5;border:1px solid #785939;border-top:3px solid var(--amber);border-radius:.5rem;box-shadow:0 20px 60px #0008}
.place{font-weight:750;letter-spacing:.13em;font-size:.72rem;margin:0 0 .55rem}
h1{font-size:clamp(1.65rem,5vw,3.2rem);line-height:1.04;margin:0}
.join-card>p:last-of-type{margin:.7rem 0 1.35rem;color:var(--muted)}
form{display:grid;gap:.65rem}
form>label,legend{font-weight:750}
input[name=nickname]{width:100%;padding:.66rem .75rem;border:1px solid #977450;border-radius:.35rem;background:#151411;color:var(--text)}
fieldset{margin:.5rem 0 0;padding:0;border:0;min-width:0}
legend{padding:0;margin-bottom:.6rem}
.roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}
.choice{position:relative;display:grid;grid-template-rows:64px auto;text-align:center;place-items:center;gap:.3rem;background:#31261d;border:1px solid var(--line);border-radius:.35rem;padding:.4rem .18rem;font-size:.76rem;font-weight:750;line-height:1.15;cursor:pointer}
.choice img{width:100%;height:60px;object-fit:contain}
.choice input{position:absolute;width:1px;height:1px;opacity:0}
.choice:has(input:checked){background:#4a3322;border-color:var(--amber);color:var(--amber);box-shadow:inset 0 0 0 1px var(--amber)}
.choice:has(input:focus-visible){outline:3px solid var(--amber);outline-offset:3px}
.primary{padding:.7rem 1rem;background:var(--amber);color:#281810;border:1px solid var(--amber);border-radius:.32rem;font-weight:800;margin-top:.6rem}
.play{max-width:1440px;margin:auto;padding:.8rem clamp(.7rem,2vw,1.4rem)}
.area-bar{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.65rem}
.area-bar h1{font-size:clamp(1.25rem,3vw,2rem)}
.area-bar p{margin:.3rem 0 0;color:var(--muted);font-size:.85rem}
.count{padding:.4rem .55rem;border:1px solid var(--line);border-radius:.35rem;color:var(--amber);font-size:.8rem;white-space:nowrap}
canvas{display:block;width:100%;height:clamp(260px,67svh,770px);border:1px solid #8f6944;border-radius:.35rem;background:#27241f;touch-action:none}
.people{display:flex;align-items:baseline;gap:.45rem .75rem;flex-wrap:wrap;margin-top:.7rem}
.people ul{display:flex;flex-wrap:wrap;gap:.3rem;margin:0;padding:0;list-style:none}
.people li{padding:.21rem .48rem;border-radius:.25rem;background:#33271e;font-size:.8rem}
.feedback{position:fixed;z-index:2;left:50%;bottom:max(.7rem,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.5rem);margin:0;padding:.65rem .9rem;color:var(--text);background:#211911f5;border:1px solid #bb8c54;border-radius:.35rem}
@media(max-width:420px){.roster{grid-template-columns:repeat(3,minmax(0,1fr))}.choice{grid-template-rows:48px auto}.choice img{height:46px}}
.npc-list,.npc-actions{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}
.npc-list button,.npc-actions button{padding:.4rem .65rem;border:1px solid #99734c;border-radius:.3rem;color:var(--text);background:#33271e}
#npc-dialog{width:min(440px,calc(100% - 2rem));border:1px solid #ad8152;border-radius:.5rem;background:var(--panel);color:var(--text);padding:1.25rem}
#npc-dialog::backdrop{background:#100d0ccc}
#npc-dialog h2{margin:0}
.npc-actions{justify-content:space-between}
.top-actions{flex-wrap:wrap;justify-content:flex-end}
.game-tools{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0 0 .5rem}
.game-tools button,.game-dialog button,.cargo-guide{border:1px solid #99734c;border-radius:.3rem;color:var(--text);background:#33271e;padding:.45rem .65rem}
.map-wrap{position:relative;min-height:0}
.touch-stick{display:none}
.cargo-guide{position:absolute;top:.55rem;right:.55rem}
.game-dialog{width:min(640px,calc(100% - 1.5rem));max-height:85dvh;border:1px solid #ad8152;border-radius:.5rem;background:var(--panel);color:var(--text);padding:1rem}
.game-dialog::backdrop{background:#100d0cdc}
.game-dialog header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.game-dialog h2{margin:0;font-size:clamp(1.15rem,4.5vw,1.7rem)}
.game-dialog h3{margin:1.1rem 0 .5rem}
.game-dialog small{display:block;color:var(--muted);margin-top:.16rem}
.game-dialog input,.game-dialog select{width:100%;min-width:0;padding:.52rem;background:#14120f;color:var(--text);border:1px solid #99734c;border-radius:.3rem;font:inherit;font-size:16px}
.service-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
.service-row button{flex:none;max-width:48%}
.kit-order{flex-wrap:wrap}
.kit-order-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.45rem;margin-inline-start:auto}
.kit-order-actions label{display:grid;gap:.2rem;font-size:.75rem;color:var(--muted)}
#kit-quantity{width:6rem;padding:.4rem .45rem}
.kit-order-actions button{max-width:none}
.market-form{grid-template-columns:minmax(0,1fr) minmax(0,.8fr);margin-bottom:.7rem}
.market-form button{grid-column:1/-1}
.market-list p,.game-dialog #inventory-stock{color:var(--muted)}
#service-notice{padding:.55rem;background:#383021;border:1px solid #a78647}
#service-notice.error{border-color:#d08276}
.expanded-game .play{max-width:none}
@media(max-width:750px), (pointer:coarse) {
  body:has(#play:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  body:has(#play:not([hidden])) main{flex:1;display:flex;min-height:0}
  .top{min-height:0;gap:.45rem;padding:.35rem .55rem}
  .top .brand{font-size:.78rem}
  .top-actions{gap:.35rem;font-size:.73rem}
  .top-actions button{min-height:42px;padding:.35rem .4rem}
  .play{width:100%;display:flex;flex-direction:column;margin:0 auto;align-self:stretch;padding:.3rem .3rem max(.3rem,env(safe-area-inset-bottom))}
  .area-bar{margin-bottom:.3rem}
  .area-bar h1{font-size:.95rem}
  .area-bar .desktop-guide{display:none}
  .count{font-size:.71rem;padding:.22rem .37rem}
  .game-tools{gap:.3rem;margin-bottom:.35rem}
  .game-tools button{min-height:43px;padding:.25rem .42rem;font-size:.76rem}
  .map-wrap{flex:1}
  .map-wrap > #map{position:absolute;inset:0;height:100%}
  .touch-stick{position:absolute;display:grid;place-items:center;left:max(.75rem,env(safe-area-inset-left));bottom:.75rem;width:100px;height:100px;border:2px solid #ecc18a94;border-radius:50%;background:#201a16a6;touch-action:none;user-select:none;z-index:2}
  .touch-stick i{display:block;width:36px;height:36px;border:2px solid #e4b27b;border-radius:50%;background:#65462dcc;pointer-events:none}
  .feedback{bottom:max(7.4rem,env(safe-area-inset-bottom))}
  .cargo-guide,.game-dialog button{min-height:43px}
  .game-dialog{max-height:90dvh}
}
@media(max-height:470px) and (orientation:landscape) {
  .touch-stick{width:82px;height:82px}
}
@media(max-width:750px), (pointer:coarse) {
  .expanded-game body:has(#play:not([hidden])) .top .brand{visibility:hidden}
  .expanded-game .play .area-bar .count{margin-left:auto}
}

.service-caption,.market-item-choice{display:flex;align-items:center;gap:.5rem;min-width:0}
.market-item-choice select{flex:1}
.item-icon{width:32px;height:32px;flex:none;display:block;object-fit:contain}

#account-email,#confirmation-email,#email-code,#account-password,#new-account-password{width:100%;padding:.66rem .75rem;border:1px solid #977450;border-radius:.35rem;background:#151411;color:var(--text)}
#account-status{color:var(--muted);font-size:.9rem}
#account-characters h2{margin-bottom:.25rem}
#account-limit{color:var(--muted);margin:.35rem 0}
#character-list{padding:0;margin:.75rem 0;list-style:none}
#character-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.65rem;border:1px solid var(--line);margin:.35rem 0;background:#272019;border-radius:.35rem}
#character-list small{display:block;color:var(--muted);font-size:.85rem;margin-top:.2rem}
.account-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.account-actions button,#character-list button,#account-back,.account-secondary,#cancel-character,#account-retry{min-height:44px;color:var(--text);background:#33271e;border:1px solid #99734c;border-radius:.3rem;padding:.4rem .65rem}
#link-progress{font-weight:400}

.map-list{display:grid;gap:.5rem;margin-top:1rem}
.map-list button{text-align:left}
.map-list button[aria-current=true]{border-color:var(--amber);color:var(--amber)}
.play[data-danger=true] #cargo-guide{display:none}

.crystal-shop{width:min(660px,calc(100% - 1.25rem))}
.crystal-shop #crystal-balance{color:#a5e1ce;margin:.35rem 0 0;font-size:.87rem}
.crystal-packs,.crystal-packs>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.crystal-packs>div{display:contents}
.crystal-packs button,.crystal-packs label{
  display:grid;align-content:center;justify-items:start;gap:.32rem;min-height:79px;
  border:1px solid #655c49;border-radius:.4rem;padding:.62rem;text-align:left;background:#24251f
}
.crystal-packs button[aria-pressed=true],.crystal-packs label.selected{border-color:#a5e1ce;background:#253b32}
.crystal-packs strong{color:#b5e6d5}
.crystal-packs span{color:#f6cb87}
.crystal-packs label{font-size:.82rem}
.crystal-packs input{width:100%;padding:.35rem}
#crystal-pay{width:100%;margin-top:.7rem;color:#171c18;background:#a5e1ce;font-weight:750}
.crystal-redeem{margin-top:1rem;border-top:1px solid var(--line)}
.crystal-redeem p:empty{display:none}
#crystal-notice{color:var(--muted);font-size:.85rem;margin:.8rem 0 0}
@media(max-width:420px){.crystal-packs,.crystal-packs>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

#open-build{background:#5a3b25;border-color:#dca76d;font-weight:800}
.build-tabs{display:flex;gap:.5rem}
.build-tabs [aria-pressed=true]{border-color:var(--amber);color:var(--amber)}
#build-list{padding:0;margin:.65rem 0;list-style:none}
#build-list li{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
#build-list button{min-width:44px;min-height:44px;font-size:1.15rem}
.skill-bar{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.22rem}
.skill-indicator{border:1px solid #b99471;border-radius:.4rem;color:var(--text);background:#33271eb8;padding:.2rem .25rem;font-weight:750}
.skill-indicator{display:grid;place-items:center;text-align:center;min-height:42px;font-size:.81rem}
.skill-indicator[data-ready=false]{background:#241c17b8;border-color:#8d7257;color:#eadcc8}
.combat-mode{position:absolute;right:.75rem;bottom:.75rem;z-index:2;color:var(--text);background:#201a16e8;border:1px solid var(--line);border-radius:.35rem;padding:.35rem .55rem;font-size:.8rem;pointer-events:none}
#online-stick[hidden],.combat-mode[hidden]{display:none}
@media(max-width:750px),(pointer:coarse){
  .skill-indicator{font-size:.76rem;min-height:42px;padding:.35rem .48rem}
}


/* The map, navigation, character card and radio share one compact game layout. */
.play {
  --hud-dark:#181917;
  --hud-edge:#60503d;
  --hud-brass:#e8b675;
  max-width:1800px;
  padding:.65rem clamp(.5rem,1.25vw,1.25rem) .8rem;
}
.area-bar {
  min-height:38px;
  margin:0 0 .42rem;
  padding:.3rem .6rem .3rem .75rem;
  border:1px solid var(--hud-edge);
  border-left:3px solid var(--hud-brass);
  border-radius:.35rem;
  background:linear-gradient(90deg,#29251d,#191a17);
}
.area-bar h1 {font-size:clamp(1rem,1.45vw,1.35rem);font-weight:800}
.zone-status {display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}
.zone-status span {
  border:1px solid #554632;
  border-radius:.3rem;
  padding:.24rem .42rem;
  color:#f1cc91;
  background:#1b1b18;
  font-size:.77rem;
  font-weight:700;
  white-space:nowrap;
}
.zone-status span:empty {display:none}
.zone-status #hud-crystals {color:#b7dfe3;border-color:#426266}
.game-stage {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.5rem;
  position:relative;
  min-width:0;
}
.map-wrap {grid-column:1;grid-row:1}
.map-wrap > #map {border-color:var(--hud-edge);height:clamp(340px,calc(100svh - 128px),900px)}
.game-tools {
  grid-column:2;
  grid-row:1;
  display:flex;
  flex-direction:column;
  align-self:start;
  align-items:stretch;
  gap:.28rem;
  width:8.4rem;
  margin:0;
  padding:.32rem;
  border:1px solid var(--hud-edge);
  border-radius:.48rem;
  background:var(--hud-dark);
}
.game-tools button,.character-hud button {
  min-height:34px;
  padding:.36rem .44rem;
  border:1px solid #524639;
  border-radius:.3rem;
  color:#faecd7;
  background:linear-gradient(#373027,#26221d);
  font-size:.75rem;
  font-weight:700;
}
.game-tools button {text-align:left}
.game-tools button:hover,.character-hud button:hover {border-color:var(--hud-brass);background:#3a3024}
.game-tools kbd,.online-chat kbd {
  display:inline-grid;
  place-content:center;
  min-width:1.15rem;
  min-height:1.14rem;
  padding:0 .19rem;
  margin-right:.15rem;
  border:1px solid #786041;
  border-bottom-width:2px;
  border-radius:.2rem;
  color:#f7cf92;
  background:#2b2319;
  font:700 .67rem system-ui,sans-serif;
}
.character-hud,.online-chat {
  align-self:end;
  min-width:0;
  border:1px solid var(--hud-edge);
  border-top-color:#96764f;
  border-radius:.48rem;
  background:linear-gradient(160deg,#25251f,#171815 88%);
  box-shadow:0 4px 18px #0008;
}
.character-hud {
  grid-column:1;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:.3rem;
  padding:.32rem .38rem;
  background:linear-gradient(160deg,#25251fc7,#171815bf 88%);
  box-shadow:0 3px 10px #0006;
  text-shadow:0 1px 2px #000;
}
.character-hud img {
  display:block;
  object-fit:contain;
  background:radial-gradient(#495040,#242720);
  border:1px solid #8b744e;
  border-radius:50%;
}
/* The inset metal rim and four division markers overlay the existing portrait. */
.hud-portrait-frame {
  position:relative;
  aspect-ratio:1;
  --elo-metal:#a2a09c;
  --elo-light:#d6d4ca;
  --elo-shadow:#515258;
  --elo-glow:transparent;
  --elo-badge:.62;
}
.character-hud .hud-portrait-frame #hud-portrait {width:100%;height:100%}
.hud-elo-frame {display:none;position:absolute;inset:-2px;pointer-events:none}
.hud-portrait-frame[data-elo] .hud-elo-frame {display:block}
.hud-elo-frame::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:conic-gradient(from 18deg,var(--elo-light),var(--elo-metal) 19%,var(--elo-shadow) 33%,var(--elo-metal) 47%,var(--elo-light) 59%,var(--elo-shadow) 75%,var(--elo-metal) 88%,var(--elo-light));
  mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.6px));
}
.hud-elo-frame::after {
  content:"";
  position:absolute;
  inset:1px;
  border:1px solid var(--elo-light);
  border-radius:50%;
  box-shadow:0 0 6px var(--elo-glow),inset 0 0 4px var(--elo-glow);
  opacity:var(--elo-badge);
}
.hud-elo-pips {
  position:absolute;
  z-index:1;
  left:50%;
  bottom:-2px;
  display:flex;
  gap:2px;
  transform:translateX(-50%);
  padding:3px 4px 2px;
  clip-path:polygon(0 0,100% 0,87% 100%,13% 100%);
  background:var(--elo-shadow);
}
.hud-elo-pips i {
  width:4px;
  height:4px;
  border:1px solid var(--elo-metal);
  transform:rotate(45deg);
  background:#242720;
}
.hud-elo-pips i:first-child,
.hud-portrait-frame[data-division="III"] .hud-elo-pips i:nth-child(-n+2),
.hud-portrait-frame[data-division="II"] .hud-elo-pips i:nth-child(-n+3),
.hud-portrait-frame[data-division="I"] .hud-elo-pips i {background:var(--elo-light)}
.hud-portrait-frame[data-elo="bronze"] {--elo-metal:#ab6543;--elo-light:#f0b57c;--elo-shadow:#5d3026}
.hud-portrait-frame[data-elo="prata"] {--elo-metal:#9ba9be;--elo-light:#e4efff;--elo-shadow:#434f67}
.hud-portrait-frame[data-elo="ouro"] {--elo-metal:#d99f44;--elo-light:#ffec9a;--elo-shadow:#743e22;--elo-glow:#ebac5455}
.hud-portrait-frame[data-elo="platina"] {--elo-metal:#4da59f;--elo-light:#c3fde6;--elo-shadow:#205759;--elo-glow:#71d6c653}
.hud-portrait-frame[data-elo="esmeralda"] {--elo-metal:#43cc74;--elo-light:#c0ff93;--elo-shadow:#16624d;--elo-glow:#58eb7280}
.hud-portrait-frame[data-elo="diamante"] {--elo-metal:#709afa;--elo-light:#d7fbff;--elo-shadow:#3c4a90;--elo-glow:#7bd3ff80}
.hud-portrait-frame[data-elo="mestre"] {--elo-metal:#b478ec;--elo-light:#f4c5ff;--elo-shadow:#522a75;--elo-glow:#d98dff80}
.hud-portrait-frame[data-elo="grao-mestre"] {--elo-metal:#ea6056;--elo-light:#ffe2ac;--elo-shadow:#751934;--elo-glow:#ff744d80}
.hud-portrait-frame[data-elo="desafiante"] {--elo-metal:#66cef9;--elo-light:#ffe58e;--elo-shadow:#2d528b;--elo-glow:#62daffa0;--elo-badge:1}
.hud-portrait-frame[data-elo="lendario"] {--elo-metal:#fd91bf;--elo-light:#fff2bb;--elo-shadow:#6c2867;--elo-glow:#ffb277b0;--elo-badge:1}
.character-status {display:grid;gap:.12rem;min-width:0}
.character-status strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.82rem;
  color:#f9dba7;
}
.hud-meter {position:relative;height:.85rem}
.hud-meter progress {
  display:block;
  appearance:none;
  width:100%;
  height:100%;
  border:1px solid #858d5b;
  border-radius:.2rem;
  background:#171b14;
}
.hud-meter progress::-webkit-progress-bar {background:#171b14}
.hud-meter progress::-webkit-progress-value {background:#51693a}
.hud-meter progress::-moz-progress-bar {background:#51693a}
.hud-meter.xp progress {border-color:#887b9e}
.hud-meter.xp progress::-webkit-progress-value {background:#665584}
.hud-meter.xp progress::-moz-progress-bar {background:#665584}
.hud-meter > span {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff9e8;
  font-size:.63rem;
  line-height:1;
  font-weight:800;
  text-shadow:0 1px 2px #000,0 1px 3px #000;
  white-space:nowrap;
}
.character-hud .skill-indicator {min-height:30px;padding:.18rem .2rem;font-size:.75rem;line-height:1.12;overflow-wrap:anywhere}
.online-chat {
  grid-column:1;
  background:linear-gradient(160deg,#24221cd1,#161714be 88%);
}
.online-chat summary {
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.42rem .55rem;
  border-radius:.43rem .43rem 0 0;
  color:#f7dfb8;
  background:#2a261fbd;
  list-style:none;
  cursor:pointer;
  font-size:.79rem;
  font-weight:800;
}
.online-chat summary::-webkit-details-marker {display:none}
.online-chat summary:hover {background:#443623de}
.online-chat summary kbd {margin-left:.25rem}
.chat-icon {flex:none}
.chat-minimize {margin-left:auto;font-size:1.15rem;line-height:1}
.online-chat:not([open]) {
  justify-self:start;
  width:max-content;
  border-color:#96764f;
}
.online-chat:not([open]) summary {
  position:relative;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border-radius:inherit;
}
.online-chat:not([open]) :is(.chat-title,.chat-minimize) {display:none}
.online-chat:not([open]) #chat-unread {
  position:absolute;
  top:1px;
  right:1px;
  min-width:.88rem;
  padding:.04rem .2rem;
  text-align:center;
}
#chat-unread {
  padding:.08rem .34rem;
  border-radius:.25rem;
  color:#241a12;
  background:#e8b675;
  font-size:.68rem;
}
#chat-channels {
  display:flex;
  gap:.12rem;
  padding:.22rem .28rem .18rem;
  overflow-x:auto;
  scrollbar-width:thin;
  border-bottom:1px solid #5b4b38;
}
#chat-channels button {
  position:relative;
  min-height:29px;
  padding:.25rem .38rem;
  border:1px solid transparent;
  border-radius:.25rem;
  color:#cfc3b2;
  background:transparent;
  font-size:.7rem;
  font-weight:700;
}
#chat-channels button[aria-pressed=true] {
  border-color:#957044;
  color:#ffdb9d;
  background:#443423;
}
#chat-channels button.has-new::after {
  position:absolute;
  top:1px;
  right:2px;
  width:.29rem;
  height:.29rem;
  border-radius:50%;
  background:#ee915e;
  content:"";
}
#chat-log {
  height:clamp(4.35rem,13vh,7.2rem);
  overflow:auto;
  overflow-wrap:anywhere;
  padding:.22rem .5rem;
  font-size:.79rem;
  scrollbar-width:thin;
  text-shadow:0 1px 2px #000,0 0 3px #000;
}
#chat-log p {margin:.22rem 0;color:#f0e7d7}
#chat-log time {color:#c0ad91;font-variant-numeric:tabular-nums;font-size:.71rem}
#chat-log strong {color:#f2c887}
#chat-log .chat-notice {color:#e8c08e}
#chat-form {display:flex;gap:.3rem;padding:.3rem .38rem .38rem}
#chat-form input,#chat-form button {
  min-height:35px;
  min-width:0;
  border:1px solid #67513a;
  border-radius:.27rem;
  padding:.32rem .4rem;
  color:#fff1da;
  background:#191915d9;
  font-size:.79rem;
}
#chat-input {flex:1}
#chat-target {width:6rem;flex:0 1 6rem}
#chat-form button {color:#21190f;background:#deb175;font-weight:800}
#chat-readonly {margin:.35rem .5rem .55rem;color:#cdbba3;font-size:.76rem}
.community-actions {display:flex;gap:.5rem;flex-wrap:wrap}
.community-list {list-style:none;padding:0;margin:.45rem 0;max-height:40vh;overflow:auto}
.community-list li {display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .2rem;border-bottom:1px solid var(--line)}
.dialog-notice:empty {display:none}
.dialog-notice {color:var(--amber)}

@media(min-width:1120px) and (pointer:fine) and (min-height:620px) {
  .character-hud,.online-chat {position:absolute;z-index:2;bottom:.65rem}
  .online-chat {left:.65rem;width:min(31rem,35%)}
  .character-hud {left:calc(35% + 1.15rem);width:min(26rem,calc(65% - 18rem))}
}
@media(max-width:750px), (pointer:coarse) {
  .top {min-height:42px}
  .play {padding:.3rem .3rem max(.3rem,env(safe-area-inset-bottom))}
  .game-stage {
    flex:1;
    min-height:0;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto minmax(130px,1fr) auto;
    gap:.25rem;
    overflow:auto;
  }
  .game-tools {
    grid-column:1/-1;
    grid-row:1;
    flex-direction:row;
    align-self:stretch;
    width:100%;
    padding:.2rem;
    overflow-x:auto;
    scrollbar-width:thin;
  }
  .game-tools button {white-space:nowrap;min-height:36px;padding:.26rem .36rem}
  .map-wrap {grid-column:1/-1;grid-row:2;min-height:130px}
  .map-wrap > #map {height:100%}
  .character-hud,.online-chat {align-self:stretch;grid-column:1/-1}
  .character-hud {grid-row:3;grid-template-columns:34px minmax(0,1fr) auto;padding:.22rem .3rem}
  .game-stage:has(.online-chat:not([open])) .character-hud {grid-column:1}
  .online-chat:not([open]) {grid-column:2;grid-row:3;align-self:end;margin:.1rem .2rem .1rem .1rem}
  .character-hud img {width:36px;height:36px}
  .hud-meter {height:.85rem}
  #chat-log {height:3.75rem}
  #chat-form input {font-size:16px}
}
@media(max-height:510px) and (orientation:landscape) and (pointer:coarse) {
  .character-hud .skill-indicator {min-height:28px}
  .online-chat summary {padding:.23rem .5rem}
}

.field-threat {
  display:flex;
  flex:0 1 auto;
  align-items:center;
  gap:.4rem;
  color:#ffd795;
  font-size:.78rem;
  font-weight:750;
}
.field-threat progress {
  width:clamp(2rem,8vw,7rem);
  height:.62rem;
  accent-color:#de9c50;
}
.field-threat.boss-active progress {accent-color:#fa7e54}
.field-threat #field-spawn {
  color:#ffe2a3;
  font-weight:800;
  white-space:nowrap;
}
.item-gear.is-equipped {border-left:2px solid #c39756;padding-left:.45rem}
.item-tools {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.3rem}
.item-gear .item-tools button {max-width:none}
@media (max-width:750px), (pointer:coarse) {
  .area-bar:has(.field-threat:not([hidden])) {flex-wrap:wrap}
  .field-threat {order:2;width:100%;justify-content:space-between}
  .field-threat progress {flex:1}
}

.crystal-pix {
  margin-top: .85rem;
  padding: 1rem;
  display: grid;
  justify-items: center;
  gap: .65rem;
  border: 1px solid #507774;
  border-radius: .8rem;
  background: #132326;
  color: #f7f2e8;
  text-align: center;
}
.crystal-pix[hidden] {display:none}
.crystal-pix h3,.crystal-pix p {margin:0}
#crystal-pix-total {color:#bae0d7}
#crystal-pix-image {
  display: block;
  width: min(224px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 10px solid #fff;
  border-radius: .55rem;
  background: #fff;
}
#crystal-pix-code {
  box-sizing: border-box;
  width: 100%;
  padding: .5rem;
  background: #101919;
  color: #f7f2e8;
  border: 1px solid #507774;
  border-radius: .4rem;
  font: .8rem ui-monospace, monospace;
  resize: vertical;
  overflow-wrap: anywhere;
}
.crystal-pix-actions {display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem}
#crystal-pix-copy {background:#a5e1ce;color:#132326;font-weight:750}
#crystal-pix-feedback:empty {display:none}
.crystal-pix-wait,#crystal-pix-feedback {color:#bae0d7;font-size:.85rem}
#crystal-payment-status {margin:.55rem 0;color:var(--muted);font-size:.85rem}
#crystal-payment-status:empty {display:none}

.vip-benefits {display:grid;gap:.5rem;padding-inline-start:1.3rem;color:#e8ddd0;line-height:1.4}
.vip-benefits strong,#hud-vip-title {color:#f3ce82}
#hud-vip-title {font-size:.69rem;line-height:1.1}
.character-hud .vip-portrait {border-color:#f3ce82;box-shadow:0 0 0 1px #f3ce82,0 0 .45rem #e6ad5f77}
.chat-vip {padding:.05em .35em;border:1px solid #8b6937;border-radius:.3em;color:#f9d786;background:#392b18;font-weight:750}
#inventory-capacity {margin:.45rem 0;color:var(--muted)}
#patrol-loot-setting {display:grid;gap:.35rem;margin:.55rem 0;color:#f3ce82}
#patrol-loot-setting[hidden] {display:none}
#patrol-loot-minimum {justify-self:start;max-width:100%;color:var(--text);background:#29251c;padding:.35rem;border:1px solid var(--line);border-radius:.35rem}

#build-elo {color:#f3ce82;font-weight:700}
#build-allocation {display:flex;align-items:center;gap:.55rem;margin:.65rem 0}
#build-amount {padding:.35rem;color:var(--text);background:#29251c;border:1px solid var(--line);border-radius:.35rem}
#build-special {border-top:1px solid var(--line);padding-top:.45rem}
#build-special-note {color:var(--muted);font-size:.9rem}
#build-special-list {list-style:none;padding:0}
#build-special-list li {display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.5rem 0}
#build-special-list small {display:block;color:var(--muted)}

.build-current-elo {display:flex;align-items:center;gap:.6rem;margin:.65rem 0}
.build-current-elo p {margin:.2rem 0;color:var(--muted);font-size:.85rem}
.character-hud .hero-elo-line {display:flex;justify-content:center;align-items:center;gap:.22rem;min-width:0}
#hero-level {overflow:hidden;text-overflow:ellipsis}
.character-hud img#hud-elo-emblem {width:15px;height:15px;border:0;border-radius:0;background:none;flex:none}
.elo-ladder {margin:.45rem 0 .75rem}
.elo-ladder summary {color:#f3ce82;cursor:pointer}
#build-elo-ladder {width:100%;border-collapse:collapse;font-size:.83rem;text-align:center;margin-top:.4rem}
#build-elo-ladder caption {color:var(--muted);margin:.25rem}
#build-elo-ladder th:first-child {text-align:left}
#build-elo-ladder th,#build-elo-ladder td {border-bottom:1px solid var(--line);padding:.25rem}
#build-elo-ladder th img {vertical-align:middle}
#build-elo-ladder td[aria-current=true] {background:#362b18;color:#f8d993;font-weight:750}
.chat-elo {display:inline-flex;align-items:center;gap:.18rem;vertical-align:middle;white-space:nowrap;color:#f1ddae;font-weight:720}
.chat-elo img {object-fit:contain}

.craft-materials {margin:.45rem 0 .7rem}
.craft-materials summary {color:#f3ce82;cursor:pointer}
.craft-materials ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem;padding-inline-start:1.05rem;color:var(--muted);font-size:.86rem}

.craft-materials li small {display:block;margin-bottom:.3rem}

.profession-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));
  gap:.65rem;
}
.profession-card {
  display:flex;
  flex-direction:column;
  gap:.5rem;
  padding:.5rem;
  border:1px solid var(--line);
  border-radius:.4rem;
}
.profession-art {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1;
  object-fit:contain;
  border-radius:.25rem;
  background:#181512;
}
.profession-card-copy {min-width:0}
.profession-card h3 {margin:0 0 .2rem;font-size:.98rem}
.profession-card p {margin:0;color:var(--muted);font-size:.82rem}
.profession-card button {margin-top:auto;min-height:2.5rem}
.profession-card-selected {flex-direction:row;align-items:center;gap:.8rem}
.profession-card-selected .profession-art {width:clamp(72px,26%,112px);flex:none}

.craft-materials li {display:flex;align-items:center;gap:.35rem;min-width:0}
.craft-materials li strong {color:var(--text);font-weight:600}
.craft-materials li small {margin:0}
.craft-recipe {display:grid;grid-template-columns:minmax(0,1fr) auto}
.craft-recipe button {max-width:none}
.craft-costs {
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  grid-column:1 / -1;
  list-style:none;
  padding:0;
  margin:0;
}
.craft-costs li {
  display:flex;
  align-items:center;
  gap:.3rem;
  border:1px solid var(--line);
  border-radius:.25rem;
  padding:.25rem .35rem;
  font-size:.8rem;
}
.craft-costs .craft-cost-missing {color:#f2b5a3}
.collectible-icon {
  flex:none;
  width:28px;
  height:28px;
  border-radius:.2rem;
  background-image:url("art/itens/painel-coletaveis.webp");
  background-size:880% 480%;
  background-repeat:no-repeat;
}
.collectible-sucata_metalica {background-position:12.10% 25.99%}
.collectible-componente_eletronico {background-position:31.33% 25.99%}
.collectible-tecido_grosso {background-position:50.72% 25.99%}
.collectible-ervas_medicinais {background-position:69.95% 25.99%}
.collectible-alimentos_crus {background-position:89.26% 25.99%}
.collectible-carga_patrulha {background-position:12.10% 71.38%}
.collectible-madeira {background-position:31.33% 71.38%}
.collectible-arame_aco {background-position:50.72% 71.38%}
.collectible-plastico_reforcado {background-position:69.95% 71.38%}
.collectible-quimicos {background-position:89.26% 71.38%}

#npc-dialog[data-service="inventory"] {
  width:min(570px,calc(100% - 1rem));
  padding:clamp(.7rem,3vw,1.15rem);
}
.mochila-filtros {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.35rem;
}
.mochila-filtros select,
.mochila-filtros button {
  min-height:2rem;
  max-width:100%;
  padding:.25rem .45rem;
  border:1px solid #525765;
  border-radius:.35rem;
  background:#22242e;
  color:#f1efeb;
  font:inherit;
  font-size:.82rem;
}
.mochila-resumo {
  margin:.5rem 0;
  color:var(--muted);
  font-size:.82rem;
}
.mochila-scroll {
  max-height:min(42dvh,410px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:3px;
  margin:.45rem -3px 0;
}
.mochila-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(.3rem,1vw,.5rem);
}
.mochila-slot {
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:1;
  min-width:0;
  padding:0;
  overflow:hidden;
  border:1.5px solid var(--slot-border,#727885);
  border-radius:.4rem;
  background:radial-gradient(ellipse at 50% 65%,#303642,#15171d 79%);
  color:#f8f6f0;
}
.mochila-slot.raridade-s {--slot-border:#ff951f}
.mochila-slot.raridade-a {--slot-border:#ad81da}
.mochila-slot.raridade-b {--slot-border:#548ec0}
.mochila-slot.raridade-c {--slot-border:#6d7584}
.mochila-slot:focus-visible,
.mochila-slot[aria-pressed="true"] {outline:2px solid #ffe2a2;outline-offset:1px}
.mochila-slot .mochila-icone,
.mochila-slot .collectible-icon {
  display:block;
  width:76%;
  height:76%;
  object-fit:contain;
  border-radius:.25rem;
}
.mochila-sem-arte {font-size:1.4rem;color:var(--slot-border)}
.mochila-rank,.mochila-qtd,.mochila-equipado {
  position:absolute;
  padding:2px 4px;
  border-radius:.2rem;
  background:#111218e8;
  font-size:clamp(.62rem,2.5vw,.76rem);
  line-height:1;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.mochila-rank {top:3px;left:3px;color:var(--slot-border)}
.mochila-qtd {right:3px;bottom:3px}
.mochila-equipado {top:3px;right:3px;color:#9de3bd}
.mochila-detalhes {
  margin-top:.6rem;
  padding:.55rem .65rem;
  border:1px solid #545a67;
  border-radius:.45rem;
  background:#20222a;
}
.mochila-detalhes h3 {margin:0;font-size:.95rem}
.mochila-detalhes p {margin:.3rem 0;color:var(--muted);font-size:.83rem}
.mochila-detalhes .item-tools {justify-content:flex-start}
.invasion-banner {
  margin:0 0 .55rem;
  padding:.6rem .8rem;
  border:1px solid #b9613c;
  border-radius:.45rem;
  background:linear-gradient(90deg,#26140af0,#26140a9c),#372119 url("art/invasao-zumbi.webp") center 62% / cover;
  color:#fff0d8;
  font-size:.83rem;
}
.invasion-banner strong {color:#ffc388}
.invasion-banner time {font-weight:800;font-variant-numeric:tabular-nums}

#owner-dialog {width:min(680px,calc(100% - 1.5rem))}
.owner-nav,.owner-actions,.owner-heading {
  display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;
}
.owner-nav {margin:.8rem 0;border-bottom:1px solid var(--line);padding-bottom:.6rem}
.owner-nav button[aria-pressed="true"] {background:#694128;color:#fff2d7;border-color:#dca969}
.owner-heading {justify-content:space-between}
.owner-form,.owner-fields {display:grid;gap:.5rem}
.owner-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
.owner-search {display:flex;align-items:end;flex-wrap:wrap;gap:.4rem}
.owner-search label {flex:1 1 12rem}
.owner-quick {display:block;margin-top:.5rem}
.owner-actions {margin-top:.4rem}
#owner-notice,#owner-target {color:#edce96;font-size:.9rem}
#owner-notice:empty,#owner-target:empty {display:none}
.owner-event-card {padding:.75rem;border:1px solid var(--line);border-radius:.4rem;background:#272016}
.owner-event-card h3 {margin-top:0}

.mochila-vazio {
  pointer-events:none;
  border:1px solid #444a59;
  background:#191c24;
  color:#9a8250;
  font-size:.72rem;
}
.mochila-bloqueado {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.2rem;
  border-style:dashed;
  border-color:#656d80;
  background:#1a1d27;
  color:#d3d5db;
  font-size:.75rem;
}
.mochila-bloqueado small {margin:0;color:inherit;font-size:.65rem}
.mochila-compravel {border-color:#bd934f;color:#ffe4aa}
.mochila-vip {border-color:#806c43}
.mochila-scroll > h3 {margin:.65rem 0 .3rem;font-size:.85rem}

.combat-mode[data-pvp=true]{border-color:#f49b80;color:#ffbeab}
.hud-hero{color:#e8ba8b;font-weight:650}

.game-tools #afk[aria-pressed=true]{border-color:#f3ce82;background:#4a3322;color:#f3ce82;box-shadow:inset 0 0 0 1px #f3ce82}

#dungeon-dialog .dialog-heading,.dungeon-actions {display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
#dungeon-dialog .dialog-heading h2 {margin:0}
#dungeon-feedback {color:#ffad99}
#dungeon-feedback:empty {display:none}
.dungeon-card {margin:.85rem 0;padding:.85rem;border:1px solid #836449;border-radius:.5rem;background:#29221b}
.dungeon-card p {margin:.42rem 0}
.dungeon-drops {display:flex;flex-wrap:wrap;gap:.6rem;font-size:.85rem}
.dungeon-drop-0 {color:#75b8ff}
.dungeon-drop-1 {color:#c19df3}
.dungeon-drop-2 {color:#ffb350}
.dungeon-drop-3 {color:#ff797d}
#dungeon-entry {display:grid;gap:.35rem;margin:.65rem 0}
#dungeon-entry select {justify-self:start}
#party-directory-list form {display:flex;gap:.35rem;flex-wrap:wrap}
#party-directory-list input {width:7rem;max-width:100%}
#dungeon-dialog nav button[aria-pressed=true] {border-color:#83cba4;color:#a8e8c2}
@media (max-width:520px) {#party-directory-list li {align-items:start;flex-direction:column}}
#dungeon-members {display:grid;gap:.4rem}
#dungeon-ready[aria-pressed=true] {border-color:#83cba4;color:#a8e8c2}
.mochila-slot.raridade-ss {--slot-border:#ef4444}

.pet-slot-box{display:flex;align-items:center;gap:.6rem;margin:.6rem 0;padding:.6rem;border:1px solid #705437;border-radius:.4rem}
.pet-slot-box button{margin-inline-start:auto}
.pet-slot-icon{width:44px;height:44px;object-fit:cover;border-radius:.35rem}
.pet-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.6rem}
.pet-card{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:start;gap:.55rem;padding:.6rem;border:1px solid #705437;border-radius:.4rem}
.pet-card img{width:56px;aspect-ratio:1;object-fit:cover;border-radius:.25rem}
.pet-card button{margin-top:.4rem}

.stash-controls{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:.55rem 0}
.stash-controls [aria-pressed=true]{border-color:#efbf78;color:#ffddae}
.stash-stack{display:grid;grid-template-columns:minmax(0,1fr) 5rem auto;align-items:center}
.stash-stack button{max-width:none}

.mochila-equipamentos { display:grid; gap:8px; margin-bottom:10px }
.mochila-equipamentos h3 { margin:0 }
.mochila-equipamentos-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(59px,1fr)); gap:7px }
.mochila-equipamento { display:grid; gap:3px; min-width:0; align-content:end; text-align:center }
.mochila-equipamento > small { font-size:.67rem }
.mochila-equipamento > .mochila-slot { width:100%; max-width:76px; justify-self:center; box-sizing:border-box }
.mochila-equipamentos > button { justify-self:start }
.mochila-com-brilho { box-shadow:inset 0 0 9px color-mix(in srgb,var(--slot-border),transparent 28%),0 0 5px color-mix(in srgb,var(--slot-border),transparent 62%) }
.mochila-arma-evoluida { box-shadow:inset 0 0 12px var(--upgrade-glow),0 0 7px var(--upgrade-glow) }
.mochila-arma-evoluida .mochila-rank { color:var(--upgrade-glow) }
.mochila-arma-nivel-10::after {
  content:""; pointer-events:none; position:absolute; inset:0;
  background:linear-gradient(120deg, transparent 38%, #fff6dba0 49%, transparent 61%);
  background-size:250% 100%; animation:brilho-arma-mestre 3s linear infinite;
}
@keyframes brilho-arma-mestre { from { background-position:150% 0 } to { background-position:-130% 0 } }
@media (prefers-reduced-motion:reduce) { .mochila-arma-nivel-10::after { animation:none; opacity:.45 } }
.craft-weapon-odds { grid-column:1 / -1; font-size:.75rem; margin:0 }

#npc-dialog[data-service="pets"] #inventory-stock { display:none }
.skins-submenu { display:grid; justify-items:start; gap:.65rem; margin-block-start:.65rem }
.skins-submenu .pet-catalog { width:100% }
.hud-character-actions { display:flex; align-items:center; gap:.3rem }
.character-hud #hud-pet-slot {
  display:grid; place-items:center; flex:none; width:2rem; height:2rem; min-height:2rem; padding:.14rem;
  background:#25211bbf; border:1px dashed #b1926a; font-size:.67rem;
}
.character-hud #hud-pet-slot:has(img:not([hidden])) { border-style:solid; border-color:#d3a46b }
.character-hud #hud-pet-image { width:100%; height:100%; border:0; border-radius:.18rem; object-fit:cover }
@media (max-width:600px) { .hud-character-actions { flex-wrap:wrap; justify-content:end; max-width:8rem } }

#crystal-shop[data-view="skins"] > section:not(#crystal-skins) { display:none }

.skill-indicator.skill-indicator-art {
  grid-template-columns:24px minmax(0,1fr); align-items:center; gap:.22rem
}
.ability-icon {
  display:inline-block; box-sizing:border-box; width:28px; height:28px; flex:none;
  border:1px solid #aa855c; border-radius:.28rem; background-repeat:no-repeat; box-shadow:0 1px 4px #100b08b5
}
.character-hud .ability-icon { width:24px; height:24px }
.ability-icon[hidden] { display:none }
.character-hud .skill-indicator[data-ready=false] .ability-icon { filter:saturate(.6) }
.character-hud .skill-indicator[data-ready=true] .ability-icon { border-color:#d3a46b }
.build-skill-with-art { display:grid; grid-template-columns:36px minmax(0,1fr); align-items:center; column-gap:.5rem }
.build-skill-with-art .ability-icon { grid-row:1 / span 3; width:36px; height:36px }
@media (max-width:550px) {
  .skill-indicator.skill-indicator-art { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; gap:.12rem; align-content:start }
  .character-hud .skill-indicator .ability-icon { width:21px; height:21px }
}

.market-form .market-item-choice { grid-column:1/-1 }
.market-material-quantity { display:flex; min-width:0; flex-direction:column; gap:.2rem; font-size:.78rem }
.market-material-quantity input { width:100%; box-sizing:border-box }
.craft-costs .craft-cost-missing button { padding:.15rem .35rem; font-size:.72rem }

#live-dialog { width:min(500px,calc(100% - 2rem)) }
#live-content section { margin-top:.85rem; padding:.75rem; border:1px solid var(--line); border-radius:.4rem }
#live-content section h3 { margin:0 0 .5rem; font-size:1rem }
#live-countdown,#live-wallet { color:#a5e1ce }
#live-shared-code { display:block; font-weight:750; margin-top:.4rem }
#live-twitch label { display:grid; gap:.25rem; margin-top:.5rem }
.live-owner-actions { display:flex; flex-wrap:wrap; gap:.35rem }

.live-shortcuts { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center }
.live-shortcut, .top-actions .live-shortcut {
  display:inline-flex; min-height:42px; align-items:center; justify-content:center; padding:.35rem .65rem;
  color:var(--live-accent,#a5e1ce); background:var(--live-bg,#1c2924);
  border:1px solid var(--live-line,#426459); border-radius:.4rem; font-weight:750; text-decoration:none;
}
.kick-accent { --live-accent:#a6ed83; --live-bg:#1a2a18; --live-line:#426944 }
.twitch-accent { --live-accent:#dcc6ff; --live-bg:#29203c; --live-line:#68508c }
#live-content .live-platform { background:var(--live-bg); border-color:var(--live-line); scroll-margin-top:.5rem }
.live-platform h3 { color:var(--live-accent) }
.live-shortcut:hover { filter:brightness(1.18) }
.live-shortcut:focus-visible { outline:2px solid var(--live-accent,#a5e1ce); outline-offset:2px }

.live-kick-channels { list-style:none; display:grid; gap:.35rem; padding:0; margin:0 }
.live-kick-channels a {
  display:flex; align-items:center; justify-content:space-between; gap:.7rem;
  padding:.45rem .55rem; border-radius:.35rem; border:1px solid var(--live-line);
  background:#151f16; color:var(--text); text-decoration:none;
}
.live-kick-channels small { display:block; color:#c3c6b9; font-size:.78rem }
.live-kick-channels .kick-channel-active { color:var(--live-accent) }
.live-kick-channels a:hover { border-color:var(--live-accent) }
#live-kick > h3:not(:first-child) { margin-top:.9rem }
.live-giveaways {
  position:fixed; z-index:8; top:4.6rem; right:.8rem; display:grid; gap:.35rem;
  width:min(21rem,calc(100vw - 1.6rem));
}
.live-giveaway {
  display:grid; grid-template-columns:1fr auto; gap:.25rem .6rem;
  background:var(--live-bg); border:1px solid var(--live-line); color:var(--live-accent);
  padding:.55rem .65rem; border-radius:.4rem; text-decoration:none; box-shadow:0 3px 10px #0007;
}
.live-giveaway small { grid-column:1/-1; color:var(--text) }
.live-giveaway-time { color:#f9d987; font-variant-numeric:tabular-nums }
@media(max-width:560px) { .live-giveaways { top:auto; bottom:5rem; right:.45rem; width:min(19rem,calc(100vw - .9rem)) } }

#player-radar {position:absolute;top:.5rem;right:.5rem;z-index:1;pointer-events:none;background:#171813c9;border:1px solid #89744e;border-radius:.35rem;padding:.2rem}
#radar-map {width:140px;height:90px;border:0;background:#12161044}
#player-radar > div {display:flex;justify-content:center;gap:.4rem;color:#f7ecd5;font-size:.6rem}
#player-radar span::before {content:"";display:inline-block;width:.4rem;height:.4rem;margin-right:.18rem;border-radius:50%;background:#ffd17c}
#player-radar span:first-child::before {background:#bdeaff}
#player-radar span:nth-child(2)::before {background:#8af2aa}
#player-radar span:last-child::before {background:#ff754e}
#farm-party-choice {display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
#farm-party-map {max-width:100%;color:var(--text);background:#29251c;padding:.35rem;border:1px solid var(--line)}
.game-tools #open-build {background:#3f2f21d4;border-color:#957247}
#toggle-pvp[aria-pressed=true] {color:#ffae88;border-color:#b87355}
@media (max-width:550px) {
  #radar-map {width:100px;height:64px}
  #player-radar > div {gap:.22rem;font-size:.53rem}
}

.field-threat.arena-boss-meter progress {width:clamp(9rem,33vw,31rem);height:1rem;accent-color:#ec794f}

#tower-actions:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  width: min(48%, 190px);
  position: absolute;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  z-index: 2;
}
#tower-actions button {
  min-width: 0;
  min-height: 48px;
  padding: .35rem .3rem;
  font-size: .8rem;
  overflow-wrap: anywhere;
  border: 1px solid #d9a96f;
  border-radius: .45rem;
  color: #fff0d7;
  background: #292019e8;
  font-weight: 700;
  touch-action: manipulation;
}
#tower-basic[aria-pressed="true"] { border-color: #ebbb7a; }
#tower-actions button:focus-visible { outline: 2px solid #ffda99; outline-offset: 2px; }

#skill-bar:not([data-manual="true"]) button:disabled { opacity: 1; cursor: default; }
#skill-bar[data-manual="true"] .skill-indicator { min-height: 44px; touch-action: manipulation; }
#skill-bar[data-manual="true"] .skill-indicator:disabled { cursor: default; }

#tower-timer {
  color:#ffe9b6;
  background:#30291f;
  border:1px solid #88673c;
  border-radius:.35rem;
  padding:.18rem .4rem;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
#tower-timer.urgent {color:#ffc1a8;border-color:#b87558}
.field-threat:has(#tower-timer:not([hidden])) {flex-wrap:wrap}

/* v86 · Configurações → Controles */
.controls-dialog { width:min(700px,calc(100% - 1.5rem)); }
.controls-help { color:var(--muted); font-size:.88rem; margin:.6rem 0; }
.controls-tabs { display:flex; gap:.35rem; margin:.4rem 0 .6rem; }
.controls-tabs button[aria-selected="true"] { border-color:#ebbb7a; background:#5a3f27; }
.controls-list { list-style:none; margin:0; padding:0; }
.controls-list li { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:.5rem; padding:.42rem 0; border-bottom:1px solid var(--line); }
.controls-list li > button[aria-pressed="true"] { border-color:#ffd38c; background:#6b4521; }
.controls-keys { display:flex; flex-wrap:wrap; gap:.25rem; justify-content:end; }
.controls-keys kbd { min-width:2rem; text-align:center; padding:.18rem .4rem; border:1px solid #b99471; border-radius:.3rem; background:#14120f; font:700 .82rem system-ui; }
.controls-confirm { grid-column:1/-1; justify-self:end; border-color:#e8a25f !important; }
.controls-notice { min-height:1.3em; color:var(--amber); }
.controls-footer { display:flex; justify-content:end; }
@media (max-width:520px) { .controls-list li { grid-template-columns:minmax(0,1fr) auto; } .controls-keys { grid-column:1; justify-content:start; } }

/* v86 · Celular na horizontal */
.rotate-hint { display:none; }
#play[data-rotate="true"] .rotate-hint {
  position:fixed; inset:0; z-index:50; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.6rem; padding:1.5rem; text-align:center; color:#ffe4b8; background:#14110fef;
}
.rotate-hint span { font-size:3.4rem; animation:rotate-hint 1.8s ease-in-out infinite; }
.rotate-hint strong { font-size:1.35rem; }
.rotate-hint small { color:#d9c3a3; max-width:22rem; }
@keyframes rotate-hint { 0%,30% { transform:rotate(0) } 60%,100% { transform:rotate(90deg) } }
@media (prefers-reduced-motion:reduce) { .rotate-hint span { animation:none } }

/* v86 · Controles de toque para dois polegares */
.touch-pad[hidden], .pad-cancel[hidden], .touch-pad [hidden] { display:none !important; }
.touch-pad {
  --pad:clamp(66px,17vh,84px); --skill:clamp(46px,12vh,58px); --small:clamp(40px,10vh,48px);
  position:absolute; right:max(.6rem,env(safe-area-inset-right)); bottom:max(.6rem,env(safe-area-inset-bottom));
  width:calc(var(--pad) + 2 * var(--skill) + 2.4rem); height:calc(var(--pad) + 2 * var(--skill) + 1.6rem);
  z-index:3; pointer-events:none; user-select:none; -webkit-user-select:none; touch-action:none;
}
.touch-pad button {
  position:absolute; pointer-events:auto; touch-action:none; border-radius:50%; padding:0; display:grid; place-items:center;
  color:#fff1d8; border:2px solid #e4b27b; background:#241b15b8; font:800 .72rem system-ui; -webkit-tap-highlight-color:transparent;
  box-shadow:0 2px 8px #0007;
}
.touch-pad button:active { transform:scale(.94); }
.pad-basic { right:0; bottom:0; width:var(--pad); height:var(--pad); background:#5a2f18c4 !important; border-width:3px !important; }
.pad-basic[aria-pressed="false"] { background:#241b15b0 !important; border-color:#8d7257 !important; }
.pad-basic-glyph { font-size:1.5rem; line-height:1; }
.pad-basic-state { font-size:.62rem; margin-top:-1.1rem; }
.pad-skill { width:var(--skill); height:var(--skill); overflow:hidden; }
.pad-skill .ability-icon { position:absolute; inset:3px; width:auto; height:auto; border-radius:50%; background-size:cover; }
.pad-skill:disabled { opacity:1; filter:grayscale(.75) brightness(.7); border-color:#8d7257; }
.pad-skill[data-ready="true"] { border-color:#ffd38c; }
.pad-skill.aiming { border-color:#fff; box-shadow:0 0 0 4px #ffcf7a66; }
.pad-cooldown { position:relative; font:900 1.15rem system-ui; color:#fff; text-shadow:0 0 4px #000, 0 0 2px #000; }
.pad-key { position:absolute; right:2px; bottom:0; font-size:.6rem; color:#ffe1a8; text-shadow:0 0 3px #000; }
/* Arc around the basic attack: 1 left, 2 upper-left, 3 above-left, 4 above. */
.pad-skill-q { right:calc(var(--pad) + .55rem); bottom:0; }
.pad-skill-w { right:calc(var(--pad) + .1rem); bottom:calc(var(--skill) * .95 + .2rem); }
.pad-skill-e { right:calc(var(--pad) * .55 - .2rem); bottom:calc(var(--pad) + var(--skill) * .35 + .15rem); }
.pad-skill-r { right:0; bottom:calc(var(--pad) + .55rem); }
.pad-small { width:var(--small); height:var(--small); font-size:.62rem !important; }
.pad-dodge { right:calc(var(--pad) + var(--skill) + 1.2rem); bottom:0; }
.pad-jump { right:calc(var(--pad) + var(--skill) + 1.2rem); bottom:calc(var(--small) + .6rem); }
.pad-drop { right:calc(var(--pad) + var(--skill) + 1.2rem + var(--small) + .4rem); bottom:0; }
.touch-pad[data-tower="false"] .pad-dodge { bottom:calc(var(--small) * .2); }
.pad-cancel {
  position:absolute; top:max(.6rem,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); z-index:4;
  padding:.55rem 1rem; border:2px dashed #ff9a76; border-radius:2rem; color:#ffd2c2; background:#3a1610d0; font:800 .8rem system-ui;
}
.pad-cancel.over { background:#7a2414e8; color:#fff; }

/* PC keeps the current layout; the old rectangular tower block is gone everywhere. */
@media (pointer:coarse) {
  .play:has(.touch-pad:not([hidden])) #skill-bar { display:none; }
  .play:has(.touch-pad:not([hidden])) .combat-mode { right:auto; left:calc(158px + .8rem); transform:none; bottom:auto; top:2.1rem; font-size:.66rem; padding:.15rem .4rem; }
}
@media (pointer:coarse) and (orientation:landscape) {
  body:has(#play:not([hidden])) .top { display:none; }
  #play:not([hidden]) { padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  #play .area-bar { position:absolute; z-index:4; top:0; left:calc(max(.4rem,env(safe-area-inset-left)) + 158px); transform:none; margin:0; padding:.1rem .5rem; gap:.4rem;
    background:#181512c9; border-radius:0 0 .5rem .5rem; max-width:calc(64vw - 170px); overflow:hidden; flex-wrap:nowrap !important; }
  #play .area-bar h1 { overflow:hidden; text-overflow:ellipsis; }
  #play .area-bar h1 { font-size:.78rem; white-space:nowrap; }
  #play .area-bar .zone-status { display:none; }
  #play .field-threat { width:auto; order:0; font-size:.7rem; }
  #play .field-threat progress { width:4rem; flex:none; }
  #play .game-stage { position:relative; display:block; height:100dvh; overflow:hidden; }
  #play .map-wrap { position:absolute; inset:0; min-height:0; }
  #play .game-tools { position:absolute; z-index:4; top:0; right:0; left:auto; width:auto; max-width:34vw; margin:0; padding:.2rem;
    background:#181512b0; border-radius:0 0 0 .5rem; flex-wrap:nowrap; overflow-x:auto; }
  #play .game-tools button { min-height:34px; font-size:.68rem; }
  #play .character-hud { position:absolute; z-index:4; top:calc(.4rem + 96px); left:max(.4rem,env(safe-area-inset-left)); width:min(15rem,30vw);
    grid-template-columns:30px minmax(0,1fr); padding:.15rem .3rem; background:#181512c4; font-size:.7rem; }
  #play .character-hud .hud-character-actions, #play .character-hud #skill-bar { display:none; }
  #play .character-hud img { width:30px; height:30px; }
  #play .online-chat { position:absolute; z-index:4; left:max(.4rem,env(safe-area-inset-left)); top:calc(.4rem + 150px); margin:0; width:auto; max-width:34vw; }
  #play .online-chat[open] { width:min(22rem,40vw); }
  #play .online-chat[open] #chat-log { height:4.5rem; }
  #play #player-radar { top:max(.4rem,env(safe-area-inset-top)); left:max(.4rem,env(safe-area-inset-left)); right:auto; }
  #play .touch-stick { left:max(1rem,env(safe-area-inset-left)); bottom:max(.8rem,env(safe-area-inset-bottom)); width:clamp(96px,27vh,124px); height:clamp(96px,27vh,124px); }
  #play .touch-stick i { width:42%; height:42%; }
  #play #tower-timer { font-size:.8rem; }
}
@media (pointer:coarse) and (orientation:landscape) {
  #play .field-threat { flex-wrap:nowrap; white-space:nowrap; min-width:0; gap:.3rem; }
  #play #field-label { overflow:hidden; text-overflow:ellipsis; max-width:30vw; font-size:.66rem; line-height:1.15; }
  #play #field-label br { display:none; }
  #play #tower-timer { padding:.1rem .35rem; font-size:.74rem; }
  #play[data-danger="true"]:has(#tower-timer:not([hidden])) .combat-mode { display:none; }
}

/* v87 · Radar redondo e claro, ficha à esquerda (PC e celular), botões de toque espaçados */
#player-radar { top:.5rem; left:.5rem; right:auto; padding:0; background:none; border:0; border-radius:50%; }
#player-radar > div { display:none; }
#radar-map, #play #radar-map { display:block; width:110px; height:110px; border-radius:50%;
  background:radial-gradient(circle, #ffffff1f, #ffffff12 70%); border:1.5px solid #ffffff80; box-shadow:0 0 0 1px #0000001f; }

.character-hud .hud-collapse, #hud-collapse {
  position:absolute; z-index:2; right:-11px; top:50%; transform:translateY(-50%); display:grid; place-items:center;
  width:20px; min-height:0; height:30px; padding:0; border:1px solid #e4b27b88; border-radius:.35rem;
  color:#ffe1a8; background:#14120fb8; font:900 .95rem/1 system-ui; cursor:pointer; touch-action:manipulation;
}
.character-hud.hud-collapsed { grid-template-columns:auto !important; width:auto !important; padding:.2rem .75rem .2rem .25rem !important; }
.character-hud.hud-collapsed > :not(.hud-portrait-frame) { display:none !important; }
.character-hud.hud-collapsed .hud-portrait-frame { width:38px; }
.character-hud:not(.hud-collapsed) #hud-collapse { top:auto; bottom:-7px; right:-7px; transform:none; width:18px; height:18px; border-radius:50%; font-size:.75rem; }

/* PC: radar no canto superior esquerdo do mapa e a ficha logo abaixo, translúcida. */
@media (min-width:1120px) and (pointer:fine) and (min-height:620px) {
  .character-hud { top:calc(.5rem + 110px + .55rem); bottom:auto; left:.5rem; width:min(24rem,32%);
    background:#14120f6b; border-color:#ffffff26; box-shadow:none; backdrop-filter:blur(2px); }
}

/* Celular deitado: radar menor, ficha clara embaixo dele, manche discreto. */
@media (pointer:coarse) and (orientation:landscape) {
  #play #player-radar { top:max(.35rem,env(safe-area-inset-top)); left:max(.4rem,env(safe-area-inset-left)); }
  #play #radar-map { width:84px; height:84px; }
  #play .character-hud { top:calc(max(.35rem,env(safe-area-inset-top)) + 84px + .4rem); background:#14120f66; border-color:#ffffff26; box-shadow:none; }
  #play .online-chat { top:calc(max(.35rem,env(safe-area-inset-top)) + 84px + .4rem + 60px); }
  #play .character-hud.hud-collapsed .hud-portrait-frame { width:30px; }
  #play .character-hud.hud-collapsed ~ .online-chat { top:calc(max(.35rem,env(safe-area-inset-top)) + 84px + .4rem + 44px); }
  #play .area-bar { left:calc(max(.4rem,env(safe-area-inset-left)) + 84px + .5rem); max-width:calc(64vw - 100px); }
  .play:has(.touch-pad:not([hidden])) .combat-mode { left:calc(84px + 1rem); }
}
.touch-stick, #play .touch-stick { background:#201a1626; border-color:#ecc18a4d; }
.touch-stick i, #play .touch-stick i { background:#65462d70; border-color:#e4b27b99; }

/* Habilidades num arco largo em volta do básico: 1 à esquerda, 4 em cima, sem encostar umas nas outras. */
.touch-pad {
  --pad:clamp(62px,16vh,80px); --skill:clamp(44px,11vh,52px); --small:clamp(38px,9.5vh,46px); --gap:8px;
  --R:calc((var(--skill) + var(--gap)) * 1.932);
  --R2:calc(var(--R) + (var(--skill) + var(--small)) / 2 + var(--gap));
  width:calc(var(--pad) / 2 + var(--R2) + var(--small) / 2 + 4px);
  height:calc(var(--pad) / 2 + var(--R2) + var(--small) / 2 + 4px);
}
.pad-skill-q { right:calc(var(--pad) / 2 + var(--R) - var(--skill) / 2); bottom:calc(var(--pad) / 2 - var(--skill) / 2); }
.pad-skill-w { right:calc(var(--pad) / 2 + var(--R) * .866 - var(--skill) / 2); bottom:calc(var(--pad) / 2 + var(--R) * .5 - var(--skill) / 2); }
.pad-skill-e { right:calc(var(--pad) / 2 + var(--R) * .5 - var(--skill) / 2); bottom:calc(var(--pad) / 2 + var(--R) * .866 - var(--skill) / 2); }
.pad-skill-r { right:calc(var(--pad) / 2 - var(--skill) / 2); bottom:calc(var(--pad) / 2 + var(--R) - var(--skill) / 2); }
.pad-dodge, .touch-pad[data-tower="false"] .pad-dodge { right:calc(var(--pad) / 2 + var(--R2) * .707 - var(--small) / 2); bottom:calc(var(--pad) / 2 + var(--R2) * .707 - var(--small) / 2); }
.pad-jump { right:calc(var(--pad) / 2 + var(--R2) * .966 - var(--small) / 2); bottom:calc(var(--pad) / 2 + var(--R2) * .259 - var(--small) / 2); }
.pad-drop { right:calc(var(--pad) / 2 + var(--R2) * .259 - var(--small) / 2); bottom:calc(var(--pad) / 2 + var(--R2) * .966 - var(--small) / 2); }
