/* hotfix1: header compacto, combate em linhas, medidores, abas fixas */
@layer priority{
/* ---------- Header ---------- */
html body .shell .main .game-header.hud-wood.hud-wood{gap:6px!important;padding:0 8px!important}
html body .shell .main .game-header.hud-wood.hud-wood .hud-main{gap:6px!important;min-width:0!important}
html body .shell .main .game-header.hud-wood.hud-wood .hud-identity{row-gap:4px!important;column-gap:5px!important}
html body .shell .main .game-header.hud-wood.hud-wood .hud-nick-open{overflow:visible!important;max-width:100%!important}
html body .shell .main .game-header.hud-wood.hud-wood .hud-nick-row :is(strong,.hud-nick){overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;font-size:var(--hud-nick-fs,var(--kz-fs-md))!important;line-height:1.1!important}
html body .shell .main .game-header.hud-wood.hud-wood progress.hud-xp{max-width:none!important;min-width:24px!important;width:100%!important;height:6px!important}
html body .shell .main .game-header.hud-wood.hud-wood .hud-wallet{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;flex:none!important}
html body .shell .main .game-header.hud-wood.hud-wood .wallet-chip{display:grid!important;grid-template-columns:auto 18px!important;align-items:center!important;gap:2px!important;width:auto!important;height:24px!important;min-height:24px!important;padding:0 2px 0 3px!important;border-width:1.5px!important;box-sizing:border-box!important}
html body .shell .main .game-header.hud-wood.hud-wood .wallet-balance{display:grid!important;grid-template-columns:16px minmax(34px,auto)!important;align-items:center!important;gap:4px!important;height:20px!important;min-height:20px!important;padding:0!important;line-height:1!important}
html body .shell .main .game-header.hud-wood.hud-wood .wallet-balance img.currency-art{width:16px!important;height:16px!important;margin:0!important;display:block!important;align-self:center!important}
html body .shell .main .game-header.hud-wood.hud-wood .wallet-balance strong{background:none!important;box-shadow:none!important;border:0!important;padding:0!important;font-size:12px!important;line-height:1!important;text-align:right!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
html body .shell .main .game-header.hud-wood.hud-wood .wallet-plus{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;font-size:13px!important;border-width:1.5px!important}
html body .shell .main .game-header.hud-wood.hud-wood .wallet-chip::before,html body .shell .main .game-header.hud-wood.hud-wood .wallet-chip::after{content:none!important;display:none!important}
/* tema + música como um bloco vertical, junto da carteira */
html body .shell .main .game-header.hud-wood.hud-wood .study-theme,html body .shell .main .game-header.hud-wood.hud-wood .study-music{order:5!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:24px!important;min-height:24px!important;margin:0!important}
html body .shell .main .game-header.hud-wood.hud-wood .study-music :is(.music-player,summary){width:28px!important;min-width:28px!important;max-width:28px!important;height:24px!important;min-height:24px!important;display:grid!important;place-items:center!important;padding:0!important}
html body .shell .main .game-header.hud-wood.hud-wood .hud-tools{order:5;display:grid;grid-template-rows:24px 24px;gap:4px;flex:none;padding-left:4px;border-left:1px solid rgba(255,240,200,.18)}
html body .shell .main .game-header.hud-wood.hud-wood .hud-tools :is(.study-theme,.study-music){display:grid!important;place-items:center!important}
@media (max-width:360px){html body .shell .main .game-header.hud-wood.hud-wood .study-theme{display:grid!important}}

.vc-card .vc-head .vc-swap{margin-left:auto!important}
/* ---------- Ficha: medidores ---------- */
dialog.pokemon-sheet .pk-status{gap:8px!important}
dialog.pokemon-sheet .pk-meter{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto!important;align-items:center!important;gap:4px 8px!important;text-align:left!important}
dialog.pokemon-sheet .pk-meter>strong{grid-column:1;grid-row:1;font:900 var(--kz-fs-xs)/1 var(--kz-font)!important;text-align:left!important}
dialog.pokemon-sheet .pk-meter>span{grid-column:2;grid-row:1;font:800 var(--kz-fs-xs)/1 var(--kz-font)!important;font-variant-numeric:tabular-nums;color:var(--text-soft,#5a4d3a)}
dialog.pokemon-sheet .pk-meter>progress{grid-column:1/-1;grid-row:2;width:100%!important}
/* abas fixas com fundo opaco: nada aparece cortado embaixo delas */
dialog.pokemon-sheet .pk-tabs{position:sticky!important;z-index:4!important;box-shadow:0 0 0 6px var(--surface,#fff3da),0 10px 0 6px var(--surface,#fff3da)!important;margin-bottom:14px!important}

/* ---------- Ficha: Coleta e Combate, uma linha por atributo ---------- */
dialog.pokemon-sheet .pk-attributes>div,dialog.pokemon-sheet .pk-combat-stat{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;min-height:52px!important;padding:4px 6px 4px 10px!important;box-sizing:border-box}
dialog.pokemon-sheet .pk-attributes>div .pk-attribute-label{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
dialog.pokemon-sheet .pk-attributes>div button.pk-attribute-total{flex:0 0 auto!important;width:auto!important;min-width:32px!important}
dialog.pokemon-sheet .pk-attributes>div button[data-sheet=allocate]{flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:40px!important;margin:0!important}
dialog.pokemon-sheet .pk-combat-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 10px!important}
dialog.pokemon-sheet .pk-combat-stat{background:var(--surface-raised,#fff8ea)!important;border:1px solid var(--wood,#8a6a46)!important;border-radius:var(--kz-r-sm,8px)!important;box-shadow:0 3px 0 var(--wood,#8a6a46)!important}
dialog.pokemon-sheet .pk-combat-stat>span{flex:1 1 auto;min-width:0;display:flex!important;align-items:center;gap:6px}
dialog.pokemon-sheet .pk-combat-stat>span strong{font:700 var(--kz-fs-sm)/1.1 var(--kz-font)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
dialog.pokemon-sheet .pk-combat-stat .attribute-icon{width:22px!important;height:22px!important;flex:none}
dialog.pokemon-sheet .pk-combat-stat button[data-sheet=attribute]{flex:0 0 auto!important;width:auto!important;min-width:32px!important;min-height:40px!important;padding:0 4px!important;color:var(--text,#1f1a14)!important;font:900 var(--kz-fs-lg)/1 var(--kz-font)!important;font-variant-numeric:tabular-nums}
dialog.pokemon-sheet .pk-combat-stat button[data-sheet=ev]{flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:40px!important}
@media (max-width:560px){dialog.pokemon-sheet .pk-combat-stats,dialog.pokemon-sheet .pk-attributes.has-points{grid-template-columns:1fr!important;gap:6px!important}dialog.pokemon-sheet .pk-combat-stat,dialog.pokemon-sheet .pk-attributes.has-points>div{min-height:48px!important}}
}
