/* Layout estilo MMO: XP embaixo, 8 ícones no canto inferior direito, janelas de Quests/Clã/Ações/Info do Mundo */
body.dock-on #utility-controls button, body.dock-on #utility-controls #skills-menu { display: none !important; }
body.dock-on footer, body.dock-on #xp-line { display: none !important; }
#dock { position: fixed; right: 12px; bottom: 26px; z-index: 30; display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; padding: 7px; border-radius: 10px; background: rgba(14, 28, 28, .82); border: 1px solid #c1a267; user-select: none; -webkit-user-select: none; }
#dock[hidden], #dock-xp[hidden], #dock-world[hidden] { display: none !important; }
#dock button, #dock-menu button, #dock-panel button { font: inherit; }
#dock .dk { all: unset; box-sizing: border-box; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #0d1a1a; border: 1px solid #5d5640; color: #e9dcb4; cursor: pointer; position: relative; }
#dock .dk:hover, #dock .dk.on { border-color: #ffd36a; color: #fff3c4; background: #16302f; }
#dock .dk .dk-img { width: 36px; height: 36px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 1px #000a); transition: transform .12s; }
#dock .dk:hover .dk-img { transform: scale(1.12); }
#dock .dk svg { width: 26px; height: 26px; pointer-events: none; }
#dock .dk .dk-soon { position: absolute; right: 2px; bottom: 1px; font: 700 8px/8px system-ui, sans-serif; color: #c9a24a; }
#dock-xp { position: fixed; left: 0; right: 0; bottom: 0; height: 15px; z-index: 29; background: #0b1616; border-top: 1px solid #c1a267; }
#dock-xp i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#e6c768, #a47d1f); }
#dock-xp span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/10px system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
#dock-world { all: unset; position: fixed; right: 14px; top: 182px; z-index: 30; padding: 4px 10px; border-radius: 8px; background: rgba(14, 28, 28, .82); border: 1px solid #c1a267; color: #f0d28b; font: 700 11px/14px system-ui, sans-serif; cursor: pointer; }
#dock-world:hover { border-color: #ffd36a; color: #fff; }
#dock-menu { position: fixed; right: 12px; bottom: 118px; z-index: 32; min-width: 190px; padding: 6px; border-radius: 10px; background: rgba(14, 28, 28, .95); border: 1px solid #c1a267; display: grid; gap: 2px; }
#dock-menu[hidden], #dock-panel[hidden] { display: none !important; }
#dock-menu button { all: unset; box-sizing: border-box; padding: 7px 10px; border-radius: 6px; color: #e9dcb4; font: 13px/16px system-ui, sans-serif; cursor: pointer; }
#dock-menu button:hover { background: #24423f; color: #fff; }
#dock-menu hr { border: 0; border-top: 1px solid #5d5640; margin: 3px 0; width: 100%; }
#dock-panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 33; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 60px); display: flex; flex-direction: column; border-radius: 10px; background: rgba(14, 28, 28, .97); border: 1px solid #c1a267; color: #e9dcb4; font: 13px/1.4 system-ui, sans-serif; box-shadow: 0 8px 30px #000a; }
#dock-panel .dp-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #5d5640; font-weight: 700; color: #f0d28b; }
#dock-panel .dp-x { all: unset; cursor: pointer; padding: 0 6px; font-size: 16px; color: #c1a267; }
#dock-panel .dp-body { padding: 10px 12px; overflow: auto; }
#dock-panel .dp-body p { margin: 0 0 8px; }
#dock-panel .dp-soon { color: #c9a24a; font-style: italic; }
#dock-panel .dp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#dock-panel .dp-actions button, #dock-panel .dp-tp { all: unset; box-sizing: border-box; text-align: center; padding: 8px; border-radius: 6px; background: #0d1a1a; border: 1px solid #5d5640; cursor: pointer; color: #e9dcb4; }
#dock-panel .dp-actions button:hover, #dock-panel .dp-tp:hover { border-color: #ffd36a; color: #fff; }
#dock-panel .dp-actions small { display: block; color: #b9ab84; font-size: 10px; }
#dock-panel .zr { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid #2b3a38; }
#dock-panel .zr .lv { flex: 0 0 74px; font-weight: 700; color: #b9ab84; }
#dock-panel .zr.ok .lv { color: #8fd68a; }
#dock-panel .zr.hard .lv { color: #e08a7a; }
#dock-panel .zr .nm { flex: 1; }
#dock-panel .zr .nm small { display: block; color: #b9ab84; font-size: 10px; }
#dock-panel .zr.here { background: rgba(255, 211, 106, .12); }
#dock-panel .dp-tp { padding: 3px 8px; font-size: 11px; flex: 0 0 auto; }
@media (max-width: 650px), (max-height: 530px) {
  #dock { grid-template-columns: repeat(4, 36px); gap: 4px; padding: 5px; bottom: 22px; }
  #dock .dk { width: 36px; height: 36px; }
  #dock .dk svg { width: 21px; height: 21px; }
  #dock-menu { bottom: 96px; }
  #dock-world { top: 150px; }
}
body.dock-on #attack { translate: 0 -112px; }
@media (max-width: 650px), (max-height: 530px) { body.dock-on #attack { translate: 0 -92px; } }
@media (max-height: 530px) and (orientation: landscape) { body.dock-on #potion, body.dock-on #dodge, body.dock-on #return-town { translate: 0 -100px; } #dock-world { display: none !important; } }
@media (max-width: 650px) and (orientation: portrait) { body.dock-on #potion, body.dock-on #dodge, body.dock-on #return-town { translate: -165px 0; } #dock-world { display: none !important; } }
@media (max-height: 530px) and (orientation: landscape) { body.dock-on #attack { translate: 0 -190px; } }
body.dock-on #quickbar, body.dock-on #attack, body.dock-on #potion, body.dock-on #dodge, body.dock-on #return-town { display: none !important; }
#dock-panel.dp-skills { left: 24px; top: 240px; transform: none; width: 340px; max-height: calc(100vh - 300px); }
#dock-panel.dp-skills .dp-body { display: flex; flex-direction: column; gap: 8px; padding: 8px; min-height: 0; }
.sw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sw-tabs button { all: unset; box-sizing: border-box; text-align: center; padding: 6px; border-radius: 6px 6px 0 0; background: #0d1a1a; border: 1px solid #5d5640; color: #b9ab84; cursor: pointer; font: 700 13px/16px system-ui, sans-serif; }
.sw-tabs button.on { background: #24423f; color: #fff3c4; border-color: #c1a267; }
.sw-scroll { overflow: auto; min-height: 120px; display: grid; gap: 6px; align-content: start; }
.sw-scroll details > summary { cursor: pointer; padding: 3px 6px; background: #1b2f2e; border-radius: 4px; color: #f0d28b; font-weight: 700; margin-bottom: 5px; list-style: none; }
.sw-scroll details > summary::before { content: '▾ '; } .sw-scroll details:not([open]) > summary::before { content: '▸ '; }
.sw-grid { display: grid; grid-template-columns: repeat(6, 44px); gap: 5px; padding: 2px 2px 6px; }
.sw-ic { all: unset; box-sizing: border-box; position: relative; width: 44px; height: 44px; border-radius: 7px; background: #0d1a1a; border: 1px solid #5d5640; cursor: grab; touch-action: none; }
.sw-ic:hover { border-color: #ffd36a; } .sw-ic.placed { border-color: #6a8f5a; }
.sw-ic img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); image-rendering: pixelated; pointer-events: none; }
.sw-ic u { position: absolute; right: 2px; bottom: 1px; text-decoration: none; font: 700 11px/11px system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.sw-empty { margin: 0 6px 6px; color: #b9ab84; font-size: 12px; }
.sw-detail { min-height: 52px; padding: 6px 8px; border-radius: 6px; background: #0d1a1a; border: 1px solid #3a4a46; font-size: 12px; }
.sw-detail b { color: #f0d28b; } .sw-detail p { margin: 3px 0 0; }
.sw-foot button { all: unset; box-sizing: border-box; width: 100%; text-align: center; padding: 7px; border-radius: 6px; background: #24423f; border: 1px solid #c1a267; cursor: pointer; color: #fff3c4; font: 700 12px/14px system-ui, sans-serif; }
@media (max-width: 650px), (max-height: 530px) { #dock-panel.dp-skills { left: 8px; top: 8px; width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 16px); } }
.sw-ic.locked { opacity: .38; filter: grayscale(.85); cursor: pointer; border-style: dashed; }
