:root{--desktop-rail:92px;--desktop-max:none}
.bottom-nav button,.bottom-nav a{border:0!important}
@media (min-width:900px){
  html{min-width:900px;background:#05080c}
  body{min-height:100vh!important;padding-left:var(--desktop-rail)!important;background:radial-gradient(circle at 75% -10%,rgba(92,28,36,.18),transparent 38vw),#05080c!important}
  .app-shell,.app,.wrap,.mail-shell,.shell{width:100%!important;max-width:none!important;min-height:100vh!important;margin:0 auto!important;padding:24px 28px 48px!important;box-shadow:none!important}
  .bottom-nav{position:fixed!important;inset:0 auto 0 0!important;left:0!important;right:auto!important;transform:none!important;z-index:80!important;width:var(--desktop-rail)!important;height:100vh!important;max-width:none!important;margin:0!important;padding:18px 8px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(var(--desktop-nav-items,5),minmax(56px,86px))!important;align-content:center!important;gap:8px!important;border:0!important;border-right:1px solid rgba(255,255,255,.1)!important;background:linear-gradient(180deg,rgba(18,27,40,.98),rgba(8,13,20,.98))!important;box-shadow:12px 0 38px rgba(0,0,0,.34)!important}
  .bottom-nav button,.bottom-nav a{display:grid!important;place-items:center!important;align-content:center!important;gap:6px!important;width:100%!important;min-height:64px!important;padding:8px 4px!important;border-radius:12px!important;color:#91a1b5!important;text-decoration:none!important;background:transparent!important}
  .bottom-nav button:hover,.bottom-nav a:hover,.bottom-nav .is-active,.bottom-nav .active{color:#ffd05a!important;background:rgba(240,181,47,.12)!important}
  .bottom-nav span{font-size:24px!important}.bottom-nav strong{font-size:11px!important}
  .page-head,.head{position:sticky;top:0;z-index:35;padding:10px 0;background:linear-gradient(180deg,#080d14 72%,transparent)}
  .modal,.image-modal,.auth-modal{padding-left:calc(var(--desktop-rail) + 24px)!important}
  .dialog,.modal-card{width:min(720px,calc(100vw - var(--desktop-rail) - 80px))!important;max-width:720px!important}
  .toast{left:calc(var(--desktop-rail) + 24px)!important;right:24px!important;bottom:24px!important;max-width:560px!important}
  body[data-page="index"] .app-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(420px,.75fr);grid-template-areas:"header header" "map player" "switch switch" "notice notice" "actions actions";gap:18px;align-content:start}
  body[data-page="index"] .topbar{grid-area:header}
  body[data-page="index"] .map-card{grid-area:map;margin:0!important;min-height:300px}
  body[data-page="index"] .player-card{grid-area:player;margin:0!important}
  body[data-page="index"] .action-grid{grid-area:actions;grid-template-columns:repeat(6,minmax(140px,1fr))!important;gap:10px!important}
  body[data-page="index"] .map-switch{grid-area:switch;width:100%!important}
  body[data-page="index"] .notice{grid-area:notice}
  body[data-page="profile"] .profile-hero{max-width:none!important}
  body[data-page="profile"] .profile-grid{grid-template-columns:repeat(6,minmax(110px,1fr))!important}
  body[data-page="profile"] .option-grid{grid-template-columns:repeat(4,minmax(180px,1fr))!important}
  body[data-page="profile"] .magic-tier-grid{grid-template-columns:repeat(2,minmax(260px,1fr))!important}
  body[data-page="profile"] .skin-grid,body[data-page="profile"] .monster-grid,body[data-page="profile"] .frame-grid{grid-template-columns:repeat(4,minmax(180px,1fr))!important}
  body[data-page="items"] .list{grid-template-columns:repeat(3,minmax(260px,1fr))!important}
  body[data-page="commerce"] .list,body[data-page="vip-shop"] .packages,body[data-page="vip-shop"] .product-grid,body[data-page="forge"] .recipes{grid-template-columns:repeat(3,minmax(260px,1fr))!important}
  body[data-page="travel"] .map-list,body[data-page="guide"] .guide-grid,body[data-page="missions"] .list,body[data-page="rewards"] .task-list{grid-template-columns:repeat(2,minmax(340px,1fr))!important}
  body[data-page="ranking"] .app{max-width:1100px!important}
  body[data-page="dungeon"] #app,body[data-page="guild"] #content,body[data-page="arena"] #app,body[data-page="world-boss"] #app,body[data-page="stairway"] #app{max-width:none!important}
  body[data-page="dungeon"] .panel,body[data-page="guild"] .panel{padding:18px!important}
  body[data-page="dungeon"] .dungeon-row{grid-template-columns:58px minmax(260px,1fr) 150px!important}
  body[data-page="mail"] .mail-list{grid-template-columns:repeat(2,minmax(320px,1fr))}
  body[data-page="hunt-api"] .combat-view{display:grid;grid-template-columns:minmax(520px,1fr) minmax(320px,390px);gap:18px;align-items:start}
  body[data-page="hunt-api"] .arena{min-height:750px}
  body[data-page="hunt-api"] .enemy-hero{height:520px}
  body[data-page="hunt-api"] .action-dock{position:sticky;top:78px;bottom:auto;margin:0;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#101721}
  body[data-page="hunt-api"] .action-dock{max-height:calc(100vh - 102px);overflow-y:auto}
  body[data-page="hunt-api"] .skills{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-page="hunt-api"] #combat-potion-slot .potion-panel{display:block!important;margin-top:10px;padding:10px}
  body[data-page="hunt-api"] #combat-potion-slot .potion-grid{margin-bottom:8px}
  body[data-page="hunt-api"] #combat-potion-slot .potion-options{grid-template-columns:1fr}
  body[data-page="hunt-api"] .action-dock>.log{display:block!important;height:220px;max-height:220px}
  body[data-page="world-boss"] .shell{max-width:1200px!important}
  body[data-page="world-boss"] .arena{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(420px,1.1fr)}
  body[data-page="world-boss"] .boss-media{width:100%;height:100%;min-height:650px}
  body[data-page="world-boss"] .combat-body{padding:24px}
  body[data-page="world-boss"] .bottom{left:calc(var(--desktop-rail) + 24px);right:24px;transform:none;width:auto;max-width:1200px;margin:auto}
  .chat-panel{left:auto!important;right:24px!important;bottom:24px!important;width:min(640px,calc(100vw - var(--desktop-rail) - 48px))!important;height:min(720px,calc(100vh - 48px))!important;transform:none!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:16px!important;box-shadow:0 24px 70px rgba(0,0,0,.55)!important}
  .chat-fab{position:fixed!important;right:24px!important;bottom:24px!important;left:auto!important}
  .chat-fab[hidden]{display:none!important}
  body[data-page="auth"]{padding-left:0!important}
  body[data-page="auth"] .card{width:min(520px,calc(100vw - 48px));padding:30px}
}
@media (min-width:1200px){
  body[data-page="index"] .action-grid{grid-template-columns:repeat(6,minmax(140px,1fr))!important}
  body[data-page="items"] .list{grid-template-columns:repeat(4,minmax(250px,1fr))!important}
  body[data-page="commerce"] .list,body[data-page="vip-shop"] .packages,body[data-page="vip-shop"] .product-grid,body[data-page="forge"] .recipes{grid-template-columns:repeat(4,minmax(240px,1fr))!important}
}
@media (min-width:900px) and (max-height:820px){
  body[data-page="hunt-api"] .app{padding-top:12px!important;padding-bottom:20px!important}
  body[data-page="hunt-api"] .page-head,body[data-page="hunt-api"] .head{padding-block:5px}
  body[data-page="hunt-api"] .combat-view{align-items:stretch}
  body[data-page="hunt-api"] .arena{min-height:calc(100vh - 90px)}
  body[data-page="hunt-api"] .enemy-hero{height:clamp(250px,43vh,350px)}
  body[data-page="hunt-api"] .action-dock{top:12px;max-height:calc(100vh - 24px);padding:10px}
  body[data-page="hunt-api"] .action-dock>.player-card{margin:0 0 10px;padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:#0b1118}
  body[data-page="hunt-api"] .action-dock>.player-card .player-line{margin-bottom:7px}
  body[data-page="hunt-api"] .action-dock>.player-card .avatar{width:34px;height:34px}
  body[data-page="hunt-api"] .action-dock>.player-card .player-bars{gap:5px}
  body[data-page="hunt-api"] .action-dock>.player-card .segbar{height:9px}
  body[data-page="hunt-api"] .action-dock>.player-card .compact-player-fx{left:50%!important;top:42%!important;z-index:12;translate:-50% -50%}
  body[data-page="hunt-api"] .action-dock>.player-card .compact-player-float{left:50%!important;top:54%!important;z-index:13;translate:-50% -50%}
  body[data-page="hunt-api"] .action-dock>.log{height:160px;max-height:160px}
}
@media (min-width:600px) and (max-width:899px){
  .app-shell,.app,.wrap,.mail-shell,.shell{width:min(100%,760px)!important;max-width:760px!important;padding-inline:20px!important}
  .action-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .option-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .skin-grid,.monster-grid,.frame-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* v9.226 - identidade visual sem depender da posição do atalho */
.bottom-nav .nav-route-guild > span:not(.nav-icon) {
  display: inline-block !important;
  width: 22px;
  height: 24px;
  color: transparent !important;
  font-size: 0 !important;
  background: linear-gradient(145deg, #d0a8ff 0%, #9b5cff 48%, #6530c7 100%);
  clip-path: polygon(50% 0%, 91% 17%, 86% 61%, 72% 82%, 50% 100%, 28% 82%, 14% 61%, 9% 17%);
  filter: drop-shadow(0 0 6px rgba(169,120,255,.58));
}

