/* Meu personagem: botões de ícone em destaque, roda de consumíveis, regras numa engrenagem, itens no corpo. */
#stage .cp-compact .profile-header{position:relative}
#stage .cp-compact .cp-head-button{display:grid;place-items:center;width:46px;min-width:46px;height:46px;min-height:46px;padding:0;border-width:2px;border-style:solid}
#stage .cp-compact .cp-head-button .cp-head-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#stage .cp-compact .cp-head-icon{width:26px;height:26px;image-rendering:pixelated}
#stage .cp-compact .cp-head-train{border-color:#3fb36a;background:#173b2c;box-shadow:inset 0 -3px 0 #3fb36a88}
#stage .cp-compact .cp-head-back{border-color:#ffd84a;background:#3a3114;box-shadow:inset 0 -3px 0 #ffd84a88}
#stage .cp-compact .cp-rules-pop{position:static;margin:0;border:0;background:none;padding:0}
#stage .cp-compact .cp-rules-pop>summary{display:grid;place-items:center;width:46px;height:46px;list-style:none;cursor:pointer;border:2px solid #9aa9b7;background:#1c2636;box-sizing:border-box}
#stage .cp-compact .cp-rules-pop>summary::-webkit-details-marker{display:none}
#stage .cp-compact .cp-rules-pop>.cp-rules-body{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(360px,80vw);max-height:60vh;overflow:auto;padding:8px 10px;border:2px solid #9aa9b7;background:#0d1726f5;box-shadow:3px 3px #050c16;box-sizing:border-box}
/* Personagem com encaixes ligados ao corpo. */
#stage .cp-compact .cp-stage{position:relative}
#stage .cp-compact .cp-slot{position:relative}
#stage .cp-compact .cp-slot::after{content:'';position:absolute;top:50%;width:22px;border-top:2px dashed color-mix(in srgb,var(--item-color,#7bcebc) 75%,transparent);pointer-events:none}
#stage .cp-compact .cp-slot-weapon::after{left:100%}
#stage .cp-compact :is(.cp-slot-special,.cp-slot-mount)::after{right:100%}
#stage .cp-compact .cp-slot:not(.empty){box-shadow:0 0 0 2px var(--item-color),0 0 12px color-mix(in srgb,var(--item-color) 45%,transparent)}
#stage .cp-compact .cp-figure-art{position:relative}
#stage .cp-compact .cp-wear{position:absolute;display:grid;place-items:center;width:24px;height:24px;filter:drop-shadow(0 0 4px #ffe08799);pointer-events:none}
#stage .cp-compact .cp-wear :is(svg,canvas,img,.shop-illustrated,.shop-icon-frame){width:100%!important;height:100%!important}
#stage .cp-compact .cp-wear-weapon{right:-6px;top:48%}
#stage .cp-compact .cp-wear-special{left:50%;top:-8px;transform:translateX(-50%)}
#stage .cp-compact .cp-wear-mount{left:50%;bottom:-6px;transform:translateX(-50%);width:30px;height:22px}
/* Roda de consumíveis: botão redondo junto ao personagem; abre os 3 encaixes em volta. */
#stage .cp-compact .cp-wheel-toggle{position:absolute;left:50%;bottom:4px;transform:translateX(-160%);z-index:6;display:grid;place-items:center;width:46px;height:46px;min-height:46px;padding:0;border-radius:50%;border:2px solid #ff6f91;background:#2a1830;box-shadow:0 0 10px #ff6f9155}
#stage .cp-compact .cp-wheel-toggle .cp-wheel-icon{width:28px;height:28px}
#stage .cp-compact .cp-wheel-toggle small{position:absolute;right:-6px;bottom:-4px;font:12px/1 VT323,monospace;background:#0d1726;border:1px solid #ff6f91;padding:1px 3px;color:#ffd6e1}
#stage .cp-compact .cp-wheel{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#0d1726cc}
#stage .cp-compact .cp-wheel[hidden]{display:none}
#stage .cp-compact .cp-wheel .cp-consumable-dock{position:relative;width:170px;height:170px;border-radius:50%;border:2px dashed #ff6f9177;background:radial-gradient(circle,#1c1426 0 34%,transparent 35%);padding:0;margin:0}
#stage .cp-compact .cp-wheel .cp-consumable-dock>strong{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:6px;text-align:center;width:60px}
#stage .cp-compact .cp-wheel .cp-consumable-dock>p{display:none}
#stage .cp-compact .cp-wheel .cp-cslots{position:absolute;inset:0;display:block}
#stage .cp-compact .cp-wheel .cp-cslot{position:absolute;width:52px;height:52px;min-height:0;margin:0;border-radius:50%;left:calc(50% - 26px);top:calc(50% - 26px)}
#stage .cp-compact .cp-wheel .cp-cslot:nth-child(1){transform:translate(0,-58px)}
#stage .cp-compact .cp-wheel .cp-cslot:nth-child(2){transform:translate(50px,29px)}
#stage .cp-compact .cp-wheel .cp-cslot:nth-child(3){transform:translate(-50px,29px)}
/* "Usar agora" em destaque na ficha da nota. */
#stage .cp-compact .cp-use{display:grid;gap:3px;margin:4px 0}
#stage .cp-compact .cp-use-now{min-height:42px;border:2px solid #ff8fb1;background:#3a1f2c;color:#ffe3ee;font:8px/1.3 'Brasil Arcade',monospace}
#stage .cp-compact .cp-use-now:disabled{opacity:.5}
#stage .cp-compact .cp-use-hint{margin:0;font:15px/1.1 VT323,monospace;color:#c4d9e7}

/* Celular deitado: tudo numa tela, sem rolagem da página. */
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 #root #stage[data-mode=equipment] #overlay .character-panel.cp-compact{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;grid-template-areas:none!important;gap:6px;height:100%;min-height:0;max-height:100%;padding:6px 8px;overflow:hidden;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-header{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0;min-height:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-identity h2{font-size:10px;white-space:nowrap;margin:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-resources{margin-left:auto;gap:4px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-resources>div{padding:2px 6px;min-height:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-resources dd{font-size:15px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-head-button,#root #stage[data-mode=equipment] #overlay .cp-compact .cp-rules-pop>summary{width:40px;min-width:40px;height:40px;min-height:40px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-body{display:grid;grid-template-columns:minmax(210px,.95fr) minmax(0,1fr) minmax(0,1fr);gap:8px;height:100%;min-height:0;overflow:hidden}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-left{display:grid;grid-template-rows:auto auto auto auto;align-content:start;gap:6px;overflow-y:auto;min-height:0;height:100%}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-left>.cp-heading{display:none}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-stage{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;grid-template-rows:52px 52px;grid-template-areas:"weapon figure special" "weapon figure mount";gap:6px 12px;align-items:center;min-height:132px;height:auto;padding:6px;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-slot{width:52px;height:52px;min-height:0;padding:2px;display:grid;place-items:center}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-slot :is(small,strong){display:none}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-slot-weapon{grid-area:weapon}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-slot-special{grid-area:special}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-slot-mount{grid-area:mount}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-figure{grid-area:figure;display:grid;justify-items:center;align-content:center;gap:2px;min-height:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-figure-art :is(canvas,.portrait){height:88px;max-height:88px;max-width:100%;width:auto;object-fit:contain}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-figure>strong{font:14px/1.2 VT323,monospace}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attrs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr{min-height:0;padding:0;margin:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary{display:grid;justify-items:center;gap:1px;padding:3px 2px;min-height:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary :is(.cp-attr-name,small){display:none}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary strong{font-size:14px;line-height:1}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr-icon{width:20px;height:20px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr[open]>dl{position:absolute;z-index:20;left:8px;right:8px;bottom:8px;margin:0;padding:6px 8px;background:#0d1726f5;border:2px solid #7bcebc}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-right{display:contents}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-inventory{display:grid;grid-template-rows:auto minmax(0,1fr);gap:4px;min-height:0;overflow:hidden;margin:0;padding:4px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:3px;scrollbar-width:none}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-filters button{flex:none;min-height:30px;padding:2px 6px;font-size:13px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-inv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));grid-auto-rows:52px;gap:4px;overflow-y:auto;min-height:0;align-content:start}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-tile{min-height:0;height:52px;padding:2px;display:grid;place-items:center}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-tile-name{display:none}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info{min-height:0;overflow-y:auto;margin:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-card{padding:6px 8px;gap:4px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-card header{gap:6px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-card h3{font-size:8px;margin:0}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-card header p,#root #stage[data-mode=equipment] #overlay .cp-compact .cp-type-chip{font-size:13px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-actions{display:flex;flex-wrap:wrap;gap:4px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-actions button{min-height:34px;padding:2px 6px;font-size:13px;flex:1 1 auto}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-stock{padding:2px 6px;font-size:14px}
}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-card .cp-type-chip{display:inline-block;font:12px/1.1 VT323,monospace!important;padding:1px 4px!important;margin:0 0 2px;white-space:normal}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-card header{display:flex!important;align-items:flex-start}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-icon{flex:none;width:36px!important;height:36px!important}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:hidden}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary .cp-attr-icon{display:grid;place-items:center;width:18px;height:18px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary .cp-attr-icon :is(svg,.resource-icon){width:18px;height:18px}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){#root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-icon{display:grid!important;place-items:center;padding:0!important}#root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-icon>*{position:static!important;margin:0!important}}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){#root #stage[data-mode=equipment] #overlay .cp-compact .cp-info-icon>*{width:100%!important;height:100%!important;min-width:0!important;font-size:20px!important;display:grid!important;place-items:center}}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){#root #stage[data-mode=equipment] #overlay .cp-compact .cp-tile[hidden]{display:none!important}#root #stage[data-mode=equipment] #overlay .cp-compact .cp-rules-pop>.cp-rules-body{max-height:calc(100dvh - 70px)}}

#stage .cp-compact .skill-profile label{display:grid;grid-template-columns:1fr minmax(88px,auto);align-items:center;gap:6px}
#stage .cp-compact .skill-profile select{min-height:44px;font:16px/1.2 VT323,monospace;max-width:100%;min-width:0;margin:0}
#stage .cp-compact .skill-profile{display:grid;gap:6px}
#stage .cp-compact .skill-profile :is(h3,p){margin:0}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr>summary{min-height:44px;box-sizing:border-box;overflow:visible}
 #root #stage[data-mode=equipment] #overlay .cp-compact .cp-attr-defense>summary strong{white-space:normal;line-height:1.1;overflow:visible;font-size:14px;text-align:center}
 #root #stage[data-mode=equipment] #overlay .cp-compact .profile-pix-stat{margin:0;font:14px/1.2 VT323,monospace}
}
/* Nome do ataque e custo quebram em linhas separadas em vez de se cobrirem na coluna estreita do iPhone. */
#stage .profile-equipment-facts>div{flex-wrap:wrap;justify-content:space-between;gap:2px 8px}
#stage .profile-equipment-facts>div>dd{margin-left:auto;white-space:nowrap}
