/* A compact character sheet; only its selected section scrolls. */
#stage #overlay .character-panel{gap:10px;max-width:1180px;align-self:center;text-align:left}
#stage .character-panel .profile-header{gap:12px}
#stage .character-panel .profile-identity{display:flex;align-items:center;gap:12px;min-width:0}
#stage .character-panel .portrait{width:38px;height:46px;flex-shrink:0;object-fit:contain;image-rendering:pixelated;background:transparent;border:0;box-shadow:none}
#stage .character-panel .profile-header h2{font-size:16px}
#stage .character-panel .profile-header p{color:#abc2cc;font-size:18px}
#stage .character-panel .profile-header strong{color:#b0efd7;font-weight:400}
#stage .profile-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;flex-shrink:0}
#stage .profile-resources>div{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid #50657a;background:#101f30;padding:8px 12px;min-width:0}
#stage .profile-resources dt{font:20px VT323,monospace;color:#bdd0db}
#stage .profile-resources dd{margin:0;color:#a6efd4;font:26px VT323,monospace;white-space:nowrap}
#stage .profile-resources small{font-size:19px;color:#9bb4c5}
#stage .profile-resources>div:last-child dd{color:#ffdf78}
#stage .profile-tabs{display:flex;gap:6px;flex-shrink:0}
#stage .character-panel button{min-height:44px;font:18px VT323,monospace;border:2px solid #50657a;background:#172b3f;color:#d3e8f3;padding:6px 14px;box-shadow:none;cursor:pointer;border-radius:0}
#stage .character-panel button[aria-pressed=true]{border-color:#9de1c8;background:#244c49;color:#caffe9}
#stage .character-panel button:disabled{cursor:default;opacity:.65}
#stage .character-panel button[aria-pressed=true]:disabled{opacity:1}
#stage .character-panel :is(button,summary,[tabindex]):focus-visible{outline:2px solid #ffe486;outline-offset:2px}
#stage .profile-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-color:#81bba9 #102033;padding:0 5px 4px 0}
#stage .character-panel .profile-hint{font:18px/1.2 VT323,monospace;margin:0 0 8px;color:#aac0cf}
#stage .profile-tables{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
#stage .profile-stat-group{margin-bottom:10px}
#stage .character-panel h3{font:21px/1.2 VT323,monospace;color:#a9e9d0;margin:0 0 6px}
#stage .profile-stat-group table{border-collapse:collapse;width:100%;font:19px/1.15 VT323,monospace}
#stage .profile-stat-group tr{border-bottom:1px solid #34465a}
#stage .profile-stat-group th{width:51%;font-weight:400;color:#c0cfda;text-align:left}
#stage .profile-stat-group :is(th,td){padding:5px 6px;vertical-align:top}
#stage .profile-stat-group td{text-align:right;color:#fff0b6}
#stage .profile-stat-group td.profile-locked{color:#91a6b8}
#stage .character-panel details{font:18px/1.2 VT323,monospace;color:#b9cbd7}
#stage .character-panel summary{cursor:pointer;min-height:32px;padding:6px 0;color:#8bd2ed}
#stage .character-panel details p{margin:3px 0 8px}
#stage .profile-loadout{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #4c6372;padding-top:7px;color:#9dc5bc;flex-shrink:0;font:16px/1.15 VT323,monospace}
#stage .profile-loadout span{max-width:50%}
#stage .profile-mount-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#stage .profile-equipment-list{max-width:750px}
#stage .profile-item{display:flex;flex-direction:column;gap:10px;padding:14px;border:2px solid #516477;background:#142337;min-width:0;font:20px/1.2 VT323,monospace}
#stage .profile-item.profile-selected{border-color:#84cbb1;background:#193330}
#stage .profile-item-heading{display:flex;gap:10px;align-items:center}
#stage .profile-item-heading h3{font-size:21px;color:#fff0b6}
#stage .profile-item p{margin:0;font:20px/1.25 VT323,monospace}
#stage .profile-item-heading p{color:#afd3c8;font-size:18px}
#stage .profile-item button{margin-top:auto}
#stage .profile-stock{display:flex;justify-content:space-between;border-block:1px solid #415666;padding:8px 0;color:#adbfcc}
#stage .profile-stock strong{color:#ffe8a1;font-weight:400}
#stage .character-panel .shop-item-icon,#stage .profile-equipment-icon{display:block;flex-shrink:0;width:40px;height:44px;padding:0;border:0;background:none;box-shadow:none;color:#94dfca}
#stage .character-panel .shop-item-icon svg,#stage .profile-equipment-icon svg{width:100%;height:100%;fill:currentColor}
#stage .profile-item-stats{color:#a2e1cb}
#stage .shop-actions .equipment-shortcut{white-space:normal;text-decoration:none}
#root #stage #overlay .mission-launch .map-actions>.equipment-shortcut{white-space:normal}
@media(max-width:640px){
 #stage #overlay .character-panel{gap:7px}
 #stage .character-panel .profile-header h2{font-size:11px;white-space:nowrap}
 #stage .profile-header p span{display:none}
 #stage .character-panel .profile-identity{gap:7px}
 #stage .character-panel .portrait{width:28px;height:38px}
 #stage .character-panel .profile-header button{min-width:62px;padding:6px;font-size:15px}
 #stage .profile-resources{gap:4px}
 #stage .profile-resources>div{display:block;padding:4px 8px}
 #stage .profile-resources dt{font-size:17px}
 #stage .profile-resources dd{font-size:23px}
 #stage .profile-resources small{font-size:17px}
 #stage .profile-tabs{gap:4px}
 #stage .profile-tabs button{flex:1;min-width:0;padding:6px 3px;font-size:17px}
 #stage .profile-tables{grid-template-columns:1fr;gap:0}
 #stage .profile-stat-group table{font-size:19px}
 #stage .profile-mount-list{grid-template-columns:1fr}
 #stage .profile-item{padding:10px}
 #stage .profile-item p{font-size:18px}
 #stage .shop-actions .equipment-shortcut{font-size:8px;white-space:normal;max-width:none}
 #stage .shop-panel .shop-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #stage .shop-panel .shop-actions>button{min-width:0}
 #root #stage[data-mode=map] .mission-launch .map-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #root #stage #overlay .mission-launch .map-actions>.equipment-shortcut{font-size:8px}
 #stage .profile-loadout{font-size:15px;gap:8px}
}
@media(max-height:500px) and (min-width:641px){
 #stage #overlay .character-panel{gap:5px;padding:7px}
 #stage .character-panel .profile-header h2{font-size:12px}
 #stage .character-panel .portrait{width:28px;height:34px}
 #stage .profile-resources>div{padding:2px 8px}
 #stage .profile-resources dd{font-size:22px}
 #stage .profile-resources dt{font-size:18px}
 #stage .profile-tabs button{min-height:38px}
 #stage .profile-loadout{padding-top:4px;font-size:15px}
 #stage .profile-stat-group :is(th,td){padding:5px}
 #stage .profile-stat-group table{font-size:18px}
 #stage .profile-item{padding:9px;font-size:18px}
 #stage .profile-item p{font-size:18px}
 #stage .profile-item-heading h3{font-size:19px}
}
@media(max-height:500px) and (min-width:740px){
 #stage #overlay .character-panel{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:auto auto minmax(0,1fr) auto;column-gap:12px}
 #stage .character-panel .profile-header p span{display:none}
 #stage .character-panel .profile-header h2{font-size:11px}
 #stage .profile-resources>div{display:block;padding:2px 8px}
 #stage .profile-resources dd{font-size:20px}
 #stage .profile-tabs,#stage .profile-content,#stage .profile-loadout{grid-column:1/-1}
 #stage .profile-tabs button{min-height:44px}
 #stage .profile-tables{gap:12px}
}

#stage .profile-equipment-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
#stage .profile-equipment-slots>div{min-width:0;padding:8px 10px;border:1px solid #729891;background:#101f2c}
#stage .profile-equipment-slots dt{color:#9be2cf;font:22px/1.1 VT323,monospace}#stage .profile-equipment-slots small{display:block;margin-top:4px;color:#b4c9d4;font:16px/1.15 VT323,monospace}
#stage .profile-equipment-slots dd{margin:6px 0 0;color:#fff0b9;font:19px/1.1 VT323,monospace;overflow-wrap:anywhere}
#root #stage #touch button.charging-equipment{border-color:#7ce7b7;background:#184c47}
/* Character loadout and readable current-value cards. */
#stage .profile-attribute-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
#stage .profile-stat-card{padding:13px;background:#142638;border:2px solid #466976;border-top:4px solid #80cbb5;min-width:0}
#stage .profile-stat-card dl{margin:8px 0;font:20px/1.2 VT323,monospace}
#stage .profile-stat-card dl>div{display:flex;align-items:start;justify-content:space-between;gap:12px;margin:9px 0}
#stage .profile-stat-card dt{color:#c3d2d9;flex:1}#stage .profile-stat-card dd{margin:0;color:#ffe9a7;text-align:right;max-width:56%;overflow-wrap:anywhere}
#stage .stat-breakdown{display:grid;gap:3px;padding:8px 0;border-top:1px solid #395568;font-size:17px}#stage .stat-breakdown strong{color:#9edbc8}
#stage .profile-slot-cards,#stage .profile-equipment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:none;margin-bottom:14px}
#stage .profile-slot{border:2px solid #86c8b4;background:#193634}#stage .profile-slot header{display:block;border:0;padding:0;color:#92ddc3;font:23px VT323,monospace}#stage .profile-slot header small{display:block;color:#a9c5cd;font-size:16px;margin-top:3px}
#stage .profile-slot-actions{display:flex;gap:8px;margin-top:auto}#stage .profile-slot-actions button{flex:1}
#stage .profile-equipment-icon{width:64px;height:64px;display:grid;place-items:center;background:#10222f;border:1px solid #557783;padding:5px}
#stage .profile-item-heading{min-height:66px}#stage .profile-item-heading h3{font-size:23px}
#stage .profile-preferences{display:flex;flex-wrap:wrap;gap:12px 24px;border:1px solid #486474;padding:10px;margin:6px 0 18px;font:19px VT323,monospace}#stage .profile-preferences label{display:flex;align-items:center;gap:8px;min-height:44px;color:#c7dedb;cursor:pointer}#stage .profile-preferences input{width:22px;height:22px;accent-color:#83dabb}
#stage .profile-collection{scroll-margin-top:8px;margin:14px 0}#stage .profile-locked-items .profile-item{opacity:.8}
@media(max-width:720px){#stage .profile-attribute-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#stage .profile-equipment-list{grid-template-columns:1fr}#stage .profile-slot-cards{gap:8px}#stage .profile-equipment-icon{width:48px;height:48px}#stage .profile-item-heading h3{font-size:20px}}
@media(max-width:440px){#stage .profile-attribute-cards,#stage .profile-slot-cards{grid-template-columns:1fr}}
html[data-reduced-effects=true] *,html[data-reduced-effects=true] *:before,html[data-reduced-effects=true] *:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
#stage .campaign-emblem{width:72px;height:66px;grid-row:1/4;image-rendering:pixelated;flex-shrink:0}
#root #stage .mode-card{display:grid;grid-template-columns:72px 1fr;align-items:center;column-gap:16px;text-align:left}
#stage .mode-card :is(strong,span,small){grid-column:2}#stage .tutorial-entry{display:flex;justify-content:center;margin:8px 0}#stage .tutorial-link{display:flex;align-items:center;justify-content:center;gap:8px;color:#d3f8ec!important;border:1px solid #6eafa0!important;padding:10px 18px!important;text-decoration:none;font:22px VT323,monospace!important}
#stage #touch .weapon-toggle[aria-pressed=true]{background:#215c51;border-color:#a1f1c7}#stage #touch [data-key=KeyQ] svg{width:55%;height:55%}
@media(max-height:500px){#stage .campaign-emblem{width:42px;height:40px}#root #stage .mode-card{grid-template-columns:42px 1fr;column-gap:8px}#stage .tutorial-entry{margin:3px 0}#stage .tutorial-link{min-height:36px;padding:5px 12px!important;font-size:19px!important}#stage .profile-attribute-cards{gap:8px}#stage .profile-stat-card{padding:9px}#stage .profile-slot-cards{gap:8px}}

@media(max-height:500px){#stage .profile-slot{padding:8px}#stage .profile-slot .profile-item-heading{min-height:40px;margin:4px 0}#stage .profile-slot .profile-equipment-icon{width:40px;height:40px}#stage .profile-slot p{margin:4px 0;font-size:16px}#stage .profile-slot header{gap:2px}#stage .profile-slot-actions{margin-top:5px}}

/* Equipment essentials stay visible; commands and upgrades expand on demand. */
#stage .character-panel .profile-equipment-card{padding:10px;gap:6px;align-self:stretch}
#stage .profile-equipment-card.profile-slot header{font-size:18px;line-height:1.1}
#stage .profile-equipment-card .profile-item-heading{min-height:44px;gap:9px;margin:0}
#stage .profile-equipment-card .profile-equipment-icon{width:44px;height:44px;padding:3px}
#stage .profile-equipment-card .profile-item-heading>div{min-width:0}
#stage .profile-equipment-card .profile-item-heading h3{font-size:21px;line-height:1.1;margin:0 0 3px}
#stage .profile-equipment-card .profile-item-heading p{font-size:17px;line-height:1.1;margin:0;color:#b5d4cd}
#stage .profile-equipment-level{font:16px/1.1 VT323,monospace;color:#9cd8c5}
#stage .profile-equipment-facts{display:grid;gap:0;margin:0;font:18px/1.15 VT323,monospace;border-block:1px solid #53756e}
#stage .profile-equipment-facts>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0;min-width:0}
#stage .profile-equipment-facts>div+div{border-top:1px solid #3a5a57}
#stage .profile-equipment-facts dt{color:#bfd5d5;min-width:0}
#stage .profile-equipment-facts dt small{display:inline-block;margin-left:6px;font-size:15px;color:#93b9b6}
#stage .profile-equipment-facts dd{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px 10px;margin:0;text-align:right;color:#ffe8a7;min-width:0;overflow-wrap:anywhere}
#stage .profile-equipment-facts dd span{display:inline-block;color:#b6cdd2;font-size:16px;white-space:nowrap}
#stage .profile-equipment-facts dd b{color:#ffe8a7;font-size:18px;font-weight:400}
#stage .profile-equipment-facts-special{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:5px 0}
#stage .profile-equipment-facts-special>div{display:block;padding:0;border:0!important}
#stage .profile-equipment-facts-special dt{font-size:16px}
#stage .profile-equipment-facts-special dd{justify-content:flex-start;text-align:left;margin-top:4px}
#stage .profile-equipment-card .profile-equipment-duration{margin:0;font-size:16px;line-height:1.15;color:#a9cbc5}
#stage .profile-equipment-card .profile-equipment-details{margin:0;font-size:17px}
#stage .profile-equipment-card .profile-equipment-details summary{min-height:44px;padding:10px 0}
#stage .profile-equipment-card .profile-equipment-details p{font-size:17px;line-height:1.2;margin:0 0 8px}
#stage .profile-equipment-card .profile-equipment-controls{padding:7px 8px;background:#102c35;border-left:2px solid #86cfb7;color:#fff0b6}
#stage .profile-equipment-card .profile-slot-actions{gap:6px;margin-top:auto}
#stage .profile-equipment-card :is(button,.profile-slot-actions button){min-height:44px;margin:0;padding:6px 10px}
#stage .profile-slot-cards,#stage .profile-equipment-list{align-items:stretch;gap:8px}
@media(min-width:601px){#stage .profile-equipment-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#stage .profile-equipment-card .profile-item-heading h3{font-size:19px}#stage .character-panel .profile-equipment-card{padding:8px}}
/* V291 · Meu personagem em duas colunas: personagem e atributos à esquerda, item e inventário à direita */
#root #stage #overlay .cp-panel{display:flex;flex-direction:column;width:min(1180px,100%);max-height:100%;overflow:hidden}
#stage .cp-panel .cp-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px;min-height:0;flex:1;overflow:hidden}
#stage .cp-panel :is(.cp-left,.cp-right){min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding-right:4px;touch-action:pan-y}
#stage .cp-panel .cp-heading{margin:2px 0 0;font:10px/1.4 'Brasil Arcade',monospace;color:#ffe28a;letter-spacing:.04em}
#stage .cp-panel .cp-heading small{font:16px VT323,monospace;color:#ff9c8a;margin-left:6px}
/* Palco: personagem no centro, arma e especial em cima, montaria embaixo */
#stage .cp-panel .cp-stage{position:relative;display:grid;grid-template-columns:1fr minmax(120px,1.1fr) 1fr;grid-template-rows:auto auto;gap:8px 10px;align-items:center;padding:14px;background:radial-gradient(ellipse at 50% 60%,#2d4f7a 0,#18294a 55%,#0f1a33 100%);border:2px solid #3d5a86;box-shadow:inset 0 0 0 2px #0a1226,inset 0 -40px 60px #0a122688}
#stage .cp-panel .cp-figure{grid-column:2;grid-row:1/3;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px}
#stage .cp-panel .cp-figure-glow{position:absolute;inset:auto 10% 18px;height:22px;border-radius:50%;background:radial-gradient(#ffe28a88,#ffe28a00 70%);animation:cp-glow 2.4s ease-in-out infinite}
#stage .cp-panel .cp-figure-art{animation:cp-bob 2.4s ease-in-out infinite;filter:drop-shadow(0 6px 0 #0a122699)}
#stage .cp-panel .cp-figure .portrait{width:132px;height:165px}
#stage .cp-panel .cp-figure>strong{font:10px/1.4 'Brasil Arcade',monospace;color:#fff3c4;text-shadow:2px 2px #0a1226}
#stage .cp-panel .cp-slot{display:grid;justify-items:center;gap:4px;min-height:0;padding:8px 6px;background:#0f1d36e6;border:2px solid var(--item-color);color:#e8f1ff;text-align:center;transition:transform .15s,box-shadow .15s}
#stage .cp-panel .cp-slot-weapon{grid-column:1;grid-row:1}#stage .cp-panel .cp-slot-special{grid-column:3;grid-row:1}#stage .cp-panel .cp-slot-mount{grid-column:3;grid-row:2}
#stage .cp-panel .cp-slot small{font:8px/1.3 'Brasil Arcade',monospace;color:var(--item-color);text-transform:uppercase}
#stage .cp-panel .cp-slot strong{font:16px/1.05 VT323,monospace;font-weight:400}
#stage .cp-panel .cp-slot-icon{display:grid;place-items:center;width:52px;height:52px;background:#0a1226;border:2px solid #ffffff22;font:28px VT323,monospace;color:#7d8fb0}
#stage .cp-panel .cp-slot-icon :is(svg,img,canvas,.shop-item-icon){width:44px;height:44px}
#stage .cp-panel .cp-slot.filled{box-shadow:0 0 0 2px #0a1226,0 0 14px color-mix(in srgb,var(--item-color) 55%,transparent);animation:cp-slot 3s ease-in-out infinite}
#stage .cp-panel .cp-slot.empty{border-style:dashed;opacity:.8}
#stage .cp-panel .cp-slot:hover{transform:translateY(-2px)}
/* Atributos resumidos que expandem */
#stage .cp-panel .cp-attrs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
#stage .cp-panel .cp-attr{background:#13223d;border:2px solid #2f4870;border-top:4px solid var(--attr,#7fd3ff)}
#stage .cp-panel .cp-attr-health{--attr:#ff6f91}#stage .cp-panel .cp-attr-funds{--attr:#ffd84a}#stage .cp-panel .cp-attr-movement{--attr:#7fd3ff}#stage .cp-panel .cp-attr-combat{--attr:#ff8a5c}#stage .cp-panel .cp-attr-defense{--attr:#5fd4a0}
#stage .cp-panel .cp-attr summary{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon name" "icon value" "icon extra";column-gap:8px;padding:7px 9px;cursor:pointer;list-style:none}
#stage .cp-panel .cp-attr summary::-webkit-details-marker{display:none}
#stage .cp-panel .cp-attr-icon{grid-area:icon;display:grid;place-items:center;width:28px;height:28px;background:#0a1226;color:var(--attr);font:20px VT323,monospace}
#stage .cp-panel .cp-attr-name{grid-area:name;font:8px/1.4 'Brasil Arcade',monospace;color:var(--attr)}
#stage .cp-panel .cp-attr summary strong{grid-area:value;font:22px/1 VT323,monospace;color:#fff;font-weight:400}
#stage .cp-panel .cp-attr summary small{grid-area:extra;font:15px/1.1 VT323,monospace;color:#9fb6cf}
#stage .cp-panel .cp-attr[open]{grid-column:1/-1}
#stage .cp-panel .cp-attr dl{margin:0;padding:4px 10px 10px;display:grid;gap:6px;animation:cp-in .25s ease-out}
#stage .cp-panel .cp-attr dl>div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;border-top:1px solid #ffffff14;padding-top:5px}
#stage .cp-panel .cp-attr dt{font:17px VT323,monospace;color:#cfe0f0}#stage .cp-panel .cp-attr dd{margin:0;font:17px VT323,monospace;color:#ffe28a}
#stage .cp-panel .cp-attr-break{grid-column:1/-1;margin:0;font:14px/1.1 VT323,monospace;color:#8fa6c0}
/* Card do item selecionado */
#stage .cp-panel .cp-info{min-height:150px}
#stage .cp-panel .cp-info-card{background:linear-gradient(160deg,color-mix(in srgb,var(--item-color) 22%,#13223d) 0,#13223d 55%);border:2px solid var(--item-color);padding:10px 12px;display:grid;gap:8px}
#stage .cp-panel .cp-info-card.cp-enter{animation:cp-in .28s ease-out}
#stage .cp-panel .cp-info-card header{display:flex;gap:12px;align-items:center}
#stage .cp-panel .cp-info-icon{display:grid;place-items:center;flex:0 0 64px;height:64px;background:#0a1226;border:2px solid var(--item-color)}
#stage .cp-panel .cp-info-icon :is(svg,img,canvas,.shop-item-icon){width:54px;height:54px}
#stage .cp-panel .cp-info-card h3{margin:2px 0;font:12px/1.4 'Brasil Arcade',monospace;color:#fff}
#stage .cp-panel .cp-info-card header p{margin:0;font:17px/1.1 VT323,monospace;color:#bcd2e6}
#stage .cp-panel .cp-type-chip{display:inline-block;padding:1px 6px;background:var(--item-color);color:#0a1226;font:8px/1.5 'Brasil Arcade',monospace}
#stage .cp-panel .cp-info-card.locked{filter:saturate(.45)}
#stage .cp-panel .cp-muted{margin:0;font:17px/1.15 VT323,monospace;color:#9fb6cf}
#stage .cp-panel .cp-info-actions{display:flex;gap:8px;flex-wrap:wrap}
#stage .cp-panel .cp-info-actions button,#stage .cp-panel .cp-info-card>button{border-color:var(--item-color)}
#stage .cp-panel .cp-info-empty{margin:0;font:18px VT323,monospace;color:#9fb6cf}
/* Inventário com busca e filtros */
#stage .cp-panel .cp-inventory{display:grid;gap:8px;background:#101c33;border:2px solid #2f4870;padding:10px}
#stage .cp-panel .cp-inv-tools{display:grid;gap:6px}
#stage .cp-panel .cp-search{width:100%;min-height:38px;padding:6px 10px;background:#0a1226;border:2px solid #3d5a86;color:#fff;font:18px VT323,monospace}
#stage .cp-panel .cp-search:focus{outline:2px solid #ffe28a;outline-offset:1px}
#stage .cp-panel .cp-filters{display:flex;gap:6px;flex-wrap:wrap}
#stage .cp-panel .cp-filters button{min-height:32px;padding:3px 10px;font:16px VT323,monospace;border-color:color-mix(in srgb,var(--item-color) 60%,#2f4870)}
#stage .cp-panel .cp-filters button[aria-pressed=true]{background:var(--item-color);color:#0a1226;border-color:var(--item-color)}
#stage .cp-panel .cp-inv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
#stage .cp-panel .cp-tile{position:relative;display:grid;justify-items:center;gap:3px;min-height:0;padding:7px 4px;background:#13223d;border:2px solid color-mix(in srgb,var(--item-color) 55%,#2f4870);transition:transform .15s,border-color .15s,box-shadow .15s}
#stage .cp-panel .cp-tile[hidden]{display:none}
#stage .cp-panel .cp-tile:hover{transform:translateY(-3px);box-shadow:0 4px 0 #0a1226}
#stage .cp-panel .cp-tile.selected{border-color:#ffe28a;box-shadow:0 0 0 2px #ffe28a55,0 0 12px #ffe28a55}
#stage .cp-panel .cp-tile.active{background:color-mix(in srgb,var(--item-color) 22%,#13223d)}
#stage .cp-panel .cp-tile.locked{opacity:.5;filter:grayscale(.6)}
#stage .cp-panel .cp-tile-icon{display:grid;place-items:center;width:44px;height:44px}
#stage .cp-panel .cp-tile-icon :is(svg,img,canvas,.shop-item-icon){width:40px;height:40px}
#stage .cp-panel .cp-tile-name{font:15px/1 VT323,monospace;color:#e8f1ff;text-align:center}
#stage .cp-panel .cp-tile-count{position:absolute;top:3px;right:5px;font:14px VT323,monospace;color:#ffe28a}
#stage .cp-panel .cp-tile-badge{position:absolute;top:2px;left:4px;font-style:normal;color:#9cffb8;font-size:14px}
#stage .cp-panel .cp-inv-empty{margin:0;font:17px VT323,monospace;color:#9fb6cf}
@keyframes cp-bob{50%{transform:translateY(-6px)}}
@keyframes cp-glow{50%{opacity:.55;transform:scaleX(.85)}}
@keyframes cp-slot{50%{box-shadow:0 0 0 2px #0a1226,0 0 22px color-mix(in srgb,var(--item-color) 75%,transparent)}}
@keyframes cp-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#stage .cp-panel :is(.cp-figure-art,.cp-figure-glow,.cp-slot.filled,.cp-info-card.cp-enter,.cp-attr dl){animation:none}#stage .cp-panel :is(.cp-tile,.cp-slot){transition:none}}
/* Retrato e telas estreitas: uma coluna, com o painel inteiro rolando */
@media(max-width:760px),(orientation:portrait){#stage .cp-panel .cp-body{grid-template-columns:1fr;overflow-y:auto}#stage .cp-panel :is(.cp-left,.cp-right){overflow:visible}}
/* Celular deitado: palco mais baixo */
@media(max-height:500px){#stage .cp-panel .cp-stage{padding:8px;gap:6px}#stage .cp-panel .cp-figure .portrait{width:84px;height:105px}#stage .cp-panel .cp-slot-icon{width:40px;height:40px}#stage .cp-panel .cp-slot-icon :is(svg,img,canvas,.shop-item-icon){width:34px;height:34px}#stage .cp-panel .cp-info{min-height:0}}
#stage .cp-panel :is(.cp-info-card,.cp-info-empty,.cp-inv-empty)[hidden]{display:none}
#stage .cp-panel .cp-info-card header>div{min-width:0;text-align:left}
#stage .cp-panel :is(.cp-info,.cp-inventory){flex-shrink:0}
#stage .cp-panel .cp-search[hidden]{display:none}
/* Consumíveis: encaixes sempre acessíveis, explicações secundárias recolhidas. */
#stage .cp-panel .cp-consumable-dock{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;padding:7px 9px;border:2px solid #827444;background:#101c33;box-shadow:0 4px #091426;flex-shrink:0}
#stage .cp-panel .cp-consumable-dock>strong{font:8px/1.4 'Brasil Arcade',monospace;color:#ffe28a}
#stage .cp-panel .cp-consumable-dock .cp-cslots{grid-column:2;grid-row:1;justify-content:flex-end;gap:6px}
#stage .cp-panel .cp-consumable-dock .cp-cslot{width:48px;height:48px;min-width:44px;min-height:44px}
#stage .cp-panel #cp-placement-status{grid-column:1/-1;margin:0;font:16px/1.1 VT323,monospace;color:#c0d4e8}
#stage .cp-panel .cp-info-card:has(.cp-cons-slots) .cp-info-icon{flex-basis:44px;height:44px}
#stage .cp-panel .cp-info-card:has(.cp-cons-slots) header{gap:8px}
#stage .cp-panel .cp-info-card:has(.cp-cons-slots) h3{font-size:9px}
#stage .cp-panel .cp-info-card .cp-cons-slots button{min-height:44px;padding:6px 9px}
#stage .cp-panel .cp-cons-details summary{min-height:36px;display:flex;align-items:center;cursor:pointer;font:17px VT323,monospace;color:#a8cadd}
#stage .cp-panel .cp-cons-details summary:before{content:'▸';margin-right:6px}
#stage .cp-panel .cp-cons-details[open] summary:before{content:'▾'}
#stage .cp-panel .cp-cons-details p{margin:5px 0;font:17px/1.15 VT323,monospace}
#stage .cp-panel [data-consumable-drag]{touch-action:none;cursor:grab;user-select:none;-webkit-touch-callout:none}
#stage .cp-panel.cp-placing .cp-cslot{outline:1px dashed #ffe28a;outline-offset:2px;opacity:1}
#stage .cp-panel.cp-dragging [data-consumable-drag]{cursor:grabbing}
#stage .cp-panel .cp-cslot.cp-drop-target{outline:3px solid #fff2ad;outline-offset:2px;background:#455c48;box-shadow:0 0 0 6px #ffe28a33}
#stage .cp-panel .cp-drag-preview{position:fixed;z-index:10000;display:grid;place-items:center;width:48px;height:48px;transform:translate(-50%,-50%);pointer-events:none;background:#192b43;border:2px solid #ffe28a;box-shadow:3px 3px #071321}
#stage .cp-panel .cp-drag-preview .consumable-icon{width:38px;height:38px;border:0;background:none}
#stage .cp-panel :is(.cp-cslot,.cp-tile,.cp-cons-details summary):focus-visible{outline:3px solid #fff2ad;outline-offset:2px}
@media(max-height:500px){#stage .cp-panel .cp-consumable-dock{padding:4px 7px;gap:2px 6px}#stage .cp-panel .cp-consumable-dock>strong{font-size:7px}#stage .cp-panel #cp-placement-status{font-size:15px}#stage .cp-panel .cp-info-card:has(.cp-cons-slots){padding:7px 8px;gap:5px}#stage .cp-panel .cp-filters{gap:4px}#stage .cp-panel .cp-filters button{padding-inline:6px;font-size:15px}}
