/* Loja, árvore de habilidades e Meu personagem (V278). Carregado por último para
   sobrepor as camadas antigas sem reescrevê-las. */

/* Mapa: Habilidades e Loja lado a lado */
#root #stage[data-mode=map] .mission-launch .map-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 44px minmax(0,1.1fr)}
#root #stage #overlay .mission-launch .map-actions>.skills-button{min-width:0;width:100%;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px;white-space:nowrap;font-size:8px;text-decoration:none;background:#1d3150;border:2px solid #8fc8ff;color:#e3f2ff}
#root #stage #overlay .mission-launch .map-actions>.skills-button:hover,#root #stage #overlay .mission-launch .map-actions>.skills-button:focus-visible{background:#26406a}
#stage .skill-tree-icon{width:18px;height:18px;flex-shrink:0}
@media(min-width:701px) and (orientation:landscape){#root #stage[data-mode=map] .mapbar.mission-launch{grid-template-columns:minmax(0,.75fr) minmax(430px,1.25fr)}}
@media(max-height:420px) and (orientation:landscape){#root #stage[data-mode=map] .mapbar.mission-launch{grid-template-columns:minmax(0,.7fr) minmax(400px,1.3fr)}}
#root #stage #overlay .mission-launch .map-actions>:is(.skills-button,.cart-button,.equipment-shortcut){white-space:normal;line-height:1.25;text-align:center}
@media(max-width:640px){#root #stage[data-mode=map] .mission-launch .map-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Atalho entre Loja e Habilidades no cabeçalho */
#stage .shop-heading{display:flex;align-items:center;gap:12px}
#stage .shop-heading .shop-title{flex:1 1 auto;min-width:0}
#stage .shop-switch{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;min-height:40px;padding:6px 12px;border:2px solid #8fc8ff;background:#1d3150;color:#e3f2ff;font:inherit;font-size:10px;cursor:pointer}
#stage .shop-switch[data-shop-area=store]{border-color:#9be7b8;background:#173b33;color:#eaffef}
#stage .shop-switch svg{width:20px;height:20px}
#stage .shop-switch:hover,#stage .shop-switch:focus-visible{filter:brightness(1.15);outline:3px solid #ffe481;outline-offset:2px}

/* Árvore: cada ramo é uma coluna, ligada por linhas */
#stage .skill-tree{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr)}
#stage .skill-pips{display:flex;gap:3px;align-items:center}
#stage .skill-pips i{display:block;width:9px;height:9px;background:#2b3d4f;border:1px solid #5c7486}
#stage .skill-pips i.on{background:#7fe0b0;border-color:#c5ffe0}
#stage .skill-detail-heading h3{font-size:15px}
#stage .skill-nickname{margin:2px 0 0;font-family:"VT323",monospace;font-size:18px;color:#9fd4ff}
#stage .skill-detail-heading .skill-pips{margin-top:6px}
#stage .skill-detail-heading .skill-pips i{width:12px;height:12px}
@media(max-width:640px){#stage .shop-switch span{display:none}#stage .shop-switch{min-width:40px;justify-content:center}}
@media(max-width:640px) and (orientation:portrait){#stage .skill-tree{grid-template-columns:1fr}}
#stage .skill-detail-heading{align-items:flex-start;text-align:left}
#stage .skill-detail-heading>div{min-width:0}
#stage .skill-detail-heading small{display:block;font-size:16px;color:#b7cbd2}
#stage .skill-effect{padding:10px 12px;border:2px solid #2f5a55;background:#10302a;text-align:left}
#root #stage #overlay .skill-shop .shop-notice.has-notice{right:auto;width:calc(58% - 24px);text-align:center}
@media(max-width:640px) and (orientation:portrait){#root #stage #overlay .skill-shop .shop-notice.has-notice{right:12px;width:auto}}

/* Loja como vitrine: ilustração grande, preço à vista e uma ação principal */
#stage .compact-shop:not(.skill-shop) .shop-card{display:flex;flex-direction:column;gap:8px;padding:12px;border-width:2px;border-color:color-mix(in srgb,var(--shop-accent,#7da6ab) 60%,#2d3a4f)}
#stage .compact-shop:not(.skill-shop) .shop-item-heading{display:grid;grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"art name price" "art effect effect";gap:4px 10px;align-items:start}
#stage .compact-shop:not(.skill-shop) .shop-item-heading>:first-child{grid-area:art;width:64px;height:64px}
#stage .compact-shop:not(.skill-shop) .shop-item-heading .shop-illustrated{width:64px;height:64px}
#stage .compact-shop:not(.skill-shop) .shop-item-heading h3{grid-area:name;margin:0;line-height:1.4}
#stage .compact-shop:not(.skill-shop) .shop-price{grid-area:price;display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:2px solid #f2c94c;background:#2f2a14;color:#ffe28a;white-space:nowrap}
#stage .compact-shop:not(.skill-shop) .shop-effect{grid-area:effect;color:#a8ecd1}
#stage .compact-shop:not(.skill-shop) .shop-card-info{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
#stage .compact-shop:not(.skill-shop) .shop-stock{display:inline-block;margin-left:6px;padding:1px 6px;border:1px solid #5c7486;background:#1a2a3a}
#stage .compact-shop:not(.skill-shop) .shop-card-footer{display:flex;flex-direction:column;gap:6px;margin-top:auto}
#stage .compact-shop:not(.skill-shop) .shop-card-footer.use-first{flex-direction:column-reverse}
#stage .compact-shop:not(.skill-shop) .shop-card-footer>button{width:100%;min-height:40px}
#stage .compact-shop:not(.skill-shop) .shop-card-footer.use-first .shop-buy{min-height:32px;background:transparent;border-color:#5c7486;color:#d6e4ea;box-shadow:none}
#stage .compact-shop:not(.skill-shop) .shop-card-footer .shop-equip,#stage .compact-shop:not(.skill-shop) .shop-card-footer.use-first [data-equipment-id]{background:#1f5a44;border-color:#9be7b8;color:#efffe9}
#stage .compact-shop:not(.skill-shop) .shop-card-footer .shop-equip.equipped{background:#173b33;border-color:#7fe0b0;color:#a9f0c9}
#stage .compact-shop:not(.skill-shop) .shop-buy:disabled{opacity:1;background:#222c3a;border-color:#45566a;color:#9fb0bd}
#stage .compact-shop:not(.skill-shop) .shop-card.selected{box-shadow:0 0 0 3px #ffe48155}
@media(max-height:500px){#stage .compact-shop:not(.skill-shop) .shop-card{padding:8px;gap:6px}#stage .compact-shop:not(.skill-shop) .shop-item-heading{grid-template-columns:48px minmax(0,1fr) auto}#stage .compact-shop:not(.skill-shop) .shop-item-heading>:first-child,#stage .compact-shop:not(.skill-shop) .shop-item-heading .shop-illustrated{width:48px;height:48px}#stage .compact-shop:not(.skill-shop) .shop-card-footer>button{min-height:34px}}

/* Meu personagem: retrato grande e as três vagas lado a lado */
#stage .character-panel .profile-header{display:flex;align-items:center}
#stage .character-panel .profile-identity{flex:1 1 auto;min-width:0}
#stage .profile-train-link{flex-shrink:0;min-height:38px;padding:6px 10px;border:2px solid #8fc8ff;background:#1d3150;color:#e3f2ff;font:inherit;font-size:9px;cursor:pointer}
#stage .profile-doll{display:grid;grid-template-columns:minmax(96px,.9fr) repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;flex-shrink:0}
#stage .profile-doll-figure{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;padding:6px;border:2px solid #f2c94c;background:radial-gradient(circle at 50% 70%,#2f3d63,#141d33 70%)}
#stage .profile-doll-figure .portrait{width:auto;height:84px;image-rendering:pixelated}
#stage .profile-doll-figure strong{font:20px/1 VT323,monospace;color:#fff0be}
#stage .profile-doll-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:6px;border:2px solid #7fe0b0;background:#173b33;color:#efffe9;font:inherit;cursor:pointer;text-align:center}
#stage .profile-doll-slot small{font:15px/1 VT323,monospace;color:#a9f0c9;text-transform:uppercase;letter-spacing:.04em}
#stage .profile-doll-slot strong{font:18px/1.05 VT323,monospace;overflow-wrap:anywhere}
#stage .profile-doll-icon{display:grid;place-items:center;width:44px;height:44px}
#stage .profile-doll-icon svg,#stage .profile-doll-icon .shop-illustrated{width:44px;height:44px}
#stage .profile-doll-slot.empty{border-style:dashed;border-color:#6f8797;background:#162130;color:#c9d6dc}
#stage .profile-doll-slot.empty small{color:#9fb0bd}
#stage .profile-doll-slot.empty .profile-doll-icon{border:2px dashed #5c7486;font:28px/1 VT323,monospace;color:#9fb0bd}
#stage .profile-doll-slot.current{outline:3px solid #ffe481;outline-offset:2px}
@media(hover:hover){#stage .profile-doll-slot:hover{filter:brightness(1.15)}}
#stage .profile-resources dt{white-space:nowrap}
@media(max-height:500px){#stage .profile-doll{grid-template-columns:minmax(80px,.8fr) repeat(3,minmax(0,1fr));gap:6px}#stage .profile-doll-figure .portrait{height:56px}#stage .profile-doll-icon,#stage .profile-doll-icon svg,#stage .profile-doll-icon .shop-illustrated{width:32px;height:32px}#stage .profile-doll-slot{padding:4px;gap:2px}#stage .profile-doll-slot strong{font-size:16px}}
@media(max-height:500px) and (min-width:740px){#stage .profile-doll{grid-column:1/-1}}
@media(max-width:520px){#stage .profile-doll{grid-template-columns:repeat(2,minmax(0,1fr))}}
#stage .character-panel .profile-header{flex-wrap:wrap;gap:8px 10px}
#stage .character-panel .profile-header .profile-resources{flex:0 1 auto;display:flex;gap:6px;margin:0}
#stage .character-panel .profile-header .profile-resources>div{display:flex;flex-direction:row;align-items:center;gap:6px;padding:3px 8px;min-height:38px}
#stage .character-panel .profile-header .profile-resources dt{font-size:0;display:flex;align-items:center}
#stage .character-panel .profile-header .profile-resources dt .resource-icon{font-size:16px}
#stage .character-panel .profile-header .profile-resources dd{margin:0;font-size:20px;line-height:1}
#stage .profile-doll{min-height:0}
#stage .profile-doll-figure .portrait{height:72px}
#stage .profile-doll-slot{padding:4px 6px}
@media(max-height:500px){
 #stage #overlay .character-panel{display:flex;flex-direction:column}
 #stage .character-panel .profile-header{flex-wrap:nowrap}
 #stage .character-panel .profile-header p{display:none}
 #stage .character-panel .profile-header .profile-resources>div{display:flex;padding:2px 6px;min-height:32px}
 #stage .character-panel .profile-header .profile-resources dd{font-size:17px}
 #stage .character-panel .profile-header .profile-resources dt{display:inline-flex;margin:0}
 #stage .profile-train-link,#stage .character-panel .profile-header .text-button{min-height:32px;padding:4px 8px}
 #stage .profile-doll-figure{flex-direction:row;justify-content:center;gap:6px}
 #stage .profile-doll-figure .portrait{height:44px}
 #stage .profile-doll-slot{flex-direction:row;gap:6px;justify-content:flex-start;text-align:left}
 #stage .profile-doll-slot{flex-wrap:wrap;align-content:center}
 #stage .profile-doll-slot small{order:3;width:100%;font-size:13px}
 #stage .profile-doll-icon,#stage .profile-doll-icon svg,#stage .profile-doll-icon .shop-illustrated{width:28px;height:28px;flex-shrink:0}
}
#root #stage #overlay .mission-launch .map-actions>:is(.skills-button,.cart-button,.equipment-shortcut){overflow-wrap:normal;word-break:keep-all;hyphens:none}
@media(max-height:500px){
 #stage .skill-pips i{width:7px;height:7px}
 #root #stage #overlay .mission-launch .map-actions>.skills-button .skill-tree-icon{display:none}
}
/* Só em retrato: ali o painel externo rola (skill-tree.css, orientation:portrait). */
@media(max-width:640px) and (orientation:portrait){
 #stage .skill-tree .skill-details{min-height:auto}
 #stage .skill-tree{display:flex;flex-direction:column;height:auto}
}

/* Mapa: a faixa dos mandatos não cobre mais o nome e o ano das fases (V279). */
@media(min-height:501px){#stage .campaign-map-route:has(.history-mandate-bands) :is(.campaign-map-node,.campaign-map-actor,.campaign-map-path){translate:0 -46px}}

/* Fim de fase: caixa atual */
#stage .completion-balance{margin:0;font:20px/1.1 'VT323',monospace;color:#ffe28a}

/* Explicação dos recursos, uma vez, acima da barra do mapa */
#stage .mission-launch{position:relative}
#stage .resources-intro{position:absolute;left:0;bottom:calc(100% + 10px);z-index:3;display:grid;gap:5px;width:min(420px,92%);padding:10px 12px;border:2px solid #f2c94c;background:#141d33f5;color:#f5ecd4;font:18px/1.15 'VT323',monospace;text-align:left}
#stage .resources-intro strong{font-size:9px;letter-spacing:.06em;color:#ffe28a}
#stage .resources-intro span{display:flex;gap:6px;align-items:flex-start}
#stage .resources-intro .resource-icon{flex-shrink:0;margin-top:2px}
#stage .resources-intro button{justify-self:end;min-height:36px;padding:4px 12px;border:2px solid #9be7b8;background:#1f5a44;color:#efffe9;font:9px/1.4 'Brasil Arcade',monospace;cursor:pointer}
/* V737 · Um cartão por recurso, com nome e cor próprios (Pedro, 05/11: menos texto e mais separado). */
#stage .resources-intro .ri-card{gap:8px;padding:6px 8px;background:#0b1325;border:1px solid #33456b;border-left:3px solid var(--ri,#f2c94c)}
#stage .resources-intro .ri-card>span:not(.resource-icon){display:block;min-width:0}
#stage .resources-intro .ri-card b{display:block;margin-bottom:3px;font:8px/1.4 'Brasil Arcade',monospace;letter-spacing:.05em;color:var(--ri,#ffe28a)}
#stage .resources-intro .ri-health{--ri:#ff9aac}#stage .resources-intro .ri-funds{--ri:#8fd3ff}#stage .resources-intro .ri-coins{--ri:#ffd84a}
@media(max-height:500px){#stage .resources-intro{gap:3px;padding:6px 8px;font-size:15px;width:min(360px,70%)}#stage .resources-intro button{min-height:32px}}

/* Fim de fase: caixa atual */
#stage .completion-balance{margin:0;font:20px/1.1 'VT323',monospace;color:#ffe28a}

/* Explicação dos recursos na primeira fase */
#hud .resources-intro{position:absolute;left:calc(100% + 12px);right:auto;top:0;width:min(360px,34vw);display:grid;gap:5px;padding:9px 11px;border:2px solid #f2c94c;background:#141d33f2;color:#f5ecd4;font:18px/1.15 'VT323',monospace;text-shadow:none;pointer-events:auto}
#hud .resources-intro strong{font-size:9px;letter-spacing:.06em;color:#ffe28a}
#hud .resources-intro span{display:flex;gap:6px;align-items:flex-start}
#hud .resources-intro .resource-icon{flex-shrink:0;margin-top:2px}
#hud .resources-intro button{justify-self:end;min-height:36px;padding:4px 12px;border:2px solid #9be7b8;background:#1f5a44;color:#efffe9;font:9px/1.4 'Brasil Arcade',monospace;cursor:pointer}
@media(max-height:500px){#hud .resources-intro{top:0;gap:3px;padding:6px 8px;font-size:15px;width:min(300px,34vw)}#hud .resources-intro button{min-height:32px}}

/* Dificuldade: escolha no menu da campanha e na pausa */
#stage .difficulty-picker{display:grid;gap:8px;margin:8px 0 0;padding:10px;border:2px solid #4f6a86;background:#101a2c;min-width:0}
#stage .difficulty-picker legend{padding:0 6px;font-size:9px;letter-spacing:.06em;color:#ffe28a}
#stage .difficulty-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#stage .difficulty-options button{display:grid;gap:3px;align-content:start;min-height:56px;padding:6px 8px;border:2px solid #4f6a86;background:#162238;color:#f5ecd4;font:inherit;text-align:left;cursor:pointer}
#stage .difficulty-options strong{font-size:9px;line-height:1.4}
#stage .difficulty-options small{font:16px/1.05 'VT323',monospace;color:#b7cbd2}
#stage .difficulty-options .difficulty-lua[aria-pressed=true]{border-color:#ff9fc4;background:#3a1f33}
#stage .difficulty-options .difficulty-mandato[aria-pressed=true]{border-color:#9be7b8;background:#173b33}
#stage .difficulty-options .difficulty-impeachment[aria-pressed=true]{border-color:#ff6b6b;background:#3d1a1d}
#stage .difficulty-options button:focus-visible{outline:3px solid #ffe481;outline-offset:2px}
#stage .difficulty-rules{margin:0;padding-left:18px;font:17px/1.15 'VT323',monospace;color:#e2ddc8}
#stage .difficulty-note{font:15px/1.1 'VT323',monospace;color:#9fb0bd}
#stage .difficulty-chip{padding:0 4px;border:1px solid currentColor}
#stage .difficulty-chip.difficulty-lua{color:#ff9fc4}
#stage .difficulty-chip.difficulty-mandato{color:#9be7b8}
#stage .difficulty-chip.difficulty-impeachment{color:#ff8a8a}
@media(max-height:500px){#stage .difficulty-options button{min-height:44px;padding:4px 6px}#stage .difficulty-rules{font-size:15px}}
@media(max-width:520px){#stage .difficulty-options{grid-template-columns:1fr}}
#stage .campaign-map-menu .difficulty-options{grid-template-columns:1fr}
#stage .campaign-map-menu .difficulty-options button{grid-template-columns:auto 1fr;align-items:baseline;gap:8px;min-height:40px}
#stage .campaign-map-menu .difficulty-picker{width:min(300px,80vw)}
#stage .difficulty-options strong{white-space:nowrap}

/* Ajustes V281: botões do mapa no mesmo padrão e reputação em destaque */
#root #stage #overlay .mission-launch .map-actions>:is(.skills-button,.cart-button,.equipment-shortcut){font-family:'Brasil Arcade',monospace;font-size:8px;gap:6px;text-transform:uppercase;letter-spacing:.02em}
#root #stage #overlay .mission-launch .map-actions>:is(.skills-button,.cart-button,.equipment-shortcut) svg{width:20px;height:20px;flex-shrink:0}
#root #stage #overlay .mission-launch .map-actions>.equipment-shortcut span{font:inherit}
#root #stage #overlay .map-stats>div:has(>dt){display:flex;align-items:baseline;justify-content:flex-end;gap:8px;white-space:nowrap}
#stage .map-stats dt{color:#ff6b6b}
#stage .map-stats dd{margin:0;color:#ff9b9b;font-weight:700}
@media(max-height:500px){#root #stage #overlay .mission-launch .map-actions>:is(.skills-button,.cart-button,.equipment-shortcut) svg{width:16px;height:16px}}

/* Tela inicial: dificuldade abaixo do logo e atalhos sempre no canto superior esquerdo */
#stage .title-difficulty{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;margin:6px auto 0}
#stage .title-difficulty>span{font:8px/1.4 'Brasil Arcade',monospace;letter-spacing:.06em;color:#ffe28a}
#stage .title-difficulty-options{display:flex;gap:4px}
#stage .title-difficulty-options button{min-height:36px;padding:4px 10px;border:2px solid #4f6a86;background:#162238;color:#d6e4ea;font:8px/1.4 'Brasil Arcade',monospace;cursor:pointer}
#stage .title-difficulty-options .difficulty-lua[aria-pressed=true]{border-color:#ff9fc4;background:#3a1f33;color:#ffe3ee}
#stage .title-difficulty-options .difficulty-mandato[aria-pressed=true]{border-color:#9be7b8;background:#173b33;color:#efffe9}
#stage .title-difficulty-options .difficulty-impeachment[aria-pressed=true]{border-color:#ff6b6b;background:#3d1a1d;color:#ffe1e1}
#stage .title-difficulty-options button:focus-visible{outline:3px solid #ffe481;outline-offset:2px}
#stage .title-difficulty>small{font:16px/1.1 'VT323',monospace;color:#b7cbd2}
@media(orientation:landscape) and (max-height:600px),(orientation:landscape) and (max-width:1000px){
 #stage[data-mode=title] .title-identity .community-links{position:absolute;top:6px;left:max(12px,env(safe-area-inset-left));grid-column:auto;grid-row:auto;flex-direction:row;width:auto;max-width:none;gap:6px;z-index:2}
 #stage[data-mode=title] .community-links a{width:auto;min-height:40px;padding:5px 9px}
 #stage[data-mode=title] .title-tools{display:flex;justify-content:flex-end}
 #stage[data-mode=title] .title-identity .title-difficulty{grid-column:3;grid-row:1;flex-direction:column;align-items:stretch;justify-self:end;width:100%;max-width:200px;margin:0}
 #stage[data-mode=title] .title-difficulty-options{flex-direction:column}
 #stage[data-mode=title] .title-difficulty-options button{min-height:30px;text-align:left}
 #stage[data-mode=title] .title-difficulty>small{font-size:14px;text-align:center}
}
@media(orientation:landscape) and (max-height:600px){
 #root #stage[data-mode=title] .mobile-home .community-links{grid-column:1/3;grid-row:1;display:flex;flex-direction:row;align-self:center;justify-self:start;width:auto;max-width:none;gap:6px}
 #root #stage[data-mode=title] .mobile-home .community-links a{width:auto;min-height:40px;padding:5px 9px;white-space:nowrap}
 #root #stage[data-mode=title] .mobile-home .title-tools{grid-column:2/-1}
 #root #stage[data-mode=title] .mobile-home .title-difficulty{grid-column:3;grid-row:2;align-self:center;justify-self:end;width:100%;max-width:190px;margin:0;flex-direction:column;align-items:stretch;gap:4px}
 #root #stage[data-mode=title] .mobile-home .title-difficulty-options{flex-direction:column;gap:4px}
 #root #stage[data-mode=title] .mobile-home .title-difficulty-options button{min-height:34px;text-align:left}
 #root #stage[data-mode=title] .mobile-home .title-difficulty>small{font-size:14px;text-align:center}
}
/* Cards da tela inicial: a campanha principal é a ação principal, com seta de jogar */
@media(orientation:landscape){#stage[data-mode=title] .title-screen .title-play-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
@media(orientation:landscape){#root #stage[data-mode=title] .title-play-actions .main-campaign{position:relative;padding-right:52px;box-shadow:0 4px 0 #2c7a55,0 0 0 3px #f2c94c55}#root #stage[data-mode=title] .title-play-actions .main-campaign:after{content:'▶';position:absolute;right:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;border:2px solid #0f3b2a;background:#f2c94c;color:#0f3b2a;font:14px/1 'Brasil Arcade',monospace}#root #stage[data-mode=title] .title-play-actions .main-campaign small{font-weight:700}}
#root #stage[data-mode=title] .title-play-actions .character-campaigns{opacity:.95}
@media(orientation:landscape) and (max-height:600px){#root #stage[data-mode=title] .mobile-home .title-play-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
@media(min-height:601px) and (orientation:landscape){#root #stage[data-mode=title] .title-screen{min-height:100%;justify-content:center}#root #stage[data-mode=title] .title-screen>.title-tools{position:absolute;top:10px;left:50%;transform:translateX(-50%);margin:0;z-index:2}#root #stage[data-mode=title] .title-screen .title-play-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
/* Vida baixa: bordas vermelhas pulsando e reputação piscando no HUD (V282) */
#stage[data-mode=play]:is([data-health=low],[data-health=critical])::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;box-shadow:inset 0 0 70px 18px #ff2a3c66;animation:low-health 1.4s ease-in-out infinite}
#stage[data-mode=play][data-health=critical]::after{box-shadow:inset 0 0 90px 30px #ff2a3c99;animation-duration:.8s}
@keyframes low-health{50%{opacity:.35}}
#hud .play-vitals.health-low b,#hud .play-vitals.health-critical b{color:#ff8a8a}
#hud .play-vitals.health-low .mini-meter.health em,#hud .play-vitals.health-critical .mini-meter.health em{background:#ff4d5e}
#hud .play-vitals.health-critical{animation:low-health .8s steps(2) infinite}
@media(prefers-reduced-motion:reduce){#stage[data-mode=play]::after,#hud .play-vitals.health-critical{animation:none!important}}
/* V358 · Dica única de recurso no HUD, presa embaixo do painel de reputação. */
#root #stage #hud .play-vitals{position:relative}
#root #stage #hud-tip .hud-resource-tip{position:relative;z-index:3;display:inline-flex;align-items:center;gap:5px;padding:3px 8px;font:18px/1 VT323,monospace;white-space:nowrap;color:#1b1206;text-shadow:none;background:#ffe481;border:2px solid #1b1206;box-shadow:2px 2px #07121f;pointer-events:none;animation:hud-tip-in .3s steps(3)}
#root #stage #hud-tip .hud-resource-tip:before{content:'';position:absolute;left:12px;top:-8px;border:4px solid transparent;border-bottom-color:#1b1206}
#root #stage #hud-tip .hud-resource-tip .resource-icon{width:16px;height:16px}
@keyframes hud-tip-in{from{transform:translateY(-4px);opacity:0}}
@media(prefers-reduced-motion:reduce){#root #stage #hud-tip .hud-resource-tip{animation:none}}
#root #stage #hud-tip{position:absolute;z-index:12;pointer-events:none}
#root #stage #hud-tip[hidden],#root #stage:not([data-mode=play]) #hud-tip{display:none}
/* Dicas: primeira frase em destaque e resto menor; um pulso curto ao aparecer */
#play-tip .tip-text{display:grid;gap:3px}
#play-tip .tip-head{color:#ffe28a;font-size:1.12em;line-height:1.1}
#play-tip .tip-rest{opacity:.85;font-size:.9em}
#play-tip.tip-new{animation:tip-in .5s ease-out}
/* scale (não transform) mantém o translateX(-50%) que centraliza a dica */
@keyframes tip-in{0%{scale:.96;box-shadow:0 0 0 0 #ffe28a99}60%{box-shadow:0 0 0 6px #ffe28a33}100%{scale:1;box-shadow:none}}
@media(prefers-reduced-motion:reduce){#play-tip.tip-new{animation:none}}
/* Base (checkpoint pago): botão ⚑ na barra, cartão na pausa e retorno no game over (V287) */
#utilities #base{color:#ffd84a;border-color:#d8b44a}
#utilities #base span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#utilities #base[hidden]{display:none}
#overlay .pause-card.pause-base .pause-symbol{color:#ffd84a}
#overlay .defeat-actions .base-return{background:#5a4510;border-color:#ffd84a;color:#fff3c4}
#overlay .defeat-actions .base-return:disabled{opacity:.55;filter:grayscale(.4)}
#overlay .defeat-actions .base-return .base-short{display:block;margin-top:3px;font:15px/1 'VT323',monospace;color:#ffcf9a;text-transform:none}
#utilities #base.planted{background:#3d5a1d;border-color:#9cffb8;color:#c9ffd8;animation:tip-in .5s ease-out}
@media(prefers-reduced-motion:reduce){#utilities #base.planted{animation:none}}
/* Dica da história: pílula do tamanho do texto, com cor e ícone pelo tipo (V285) */
#stage[data-history-theme] #play-tip.history-learning-tip{width:max-content;height:auto;max-height:88px;overflow-y:auto;min-height:0;justify-content:flex-start;gap:7px;padding:5px 10px 5px 6px;border-left:0;border:2px solid var(--tip-edge,#7fd3ff);background:#0d1830f2;box-shadow:0 3px #050c16,0 0 12px var(--tip-glow,#7fd3ff55);text-align:left}
#stage[data-history-theme] #play-tip.history-learning-tip.tip-new{animation:tip-in .5s ease-out}
#stage[data-history-theme] #play-tip.history-learning-tip::before{content:'?';flex:0 0 22px;height:22px;display:grid;place-items:center;background:var(--tip-edge,#7fd3ff);color:#0d1830;font:10px/1 'Brasil Arcade',monospace}
#stage[data-history-theme] #play-tip.history-learning-tip[data-kind=alert]{--tip-edge:#ffd84a;--tip-glow:#ffd84a66}
#stage[data-history-theme] #play-tip.history-learning-tip[data-kind=alert]::before{content:'!'}
#stage[data-history-theme] #play-tip.history-learning-tip .tip-text{gap:1px}
#stage[data-history-theme] #play-tip.history-learning-tip .tip-head{color:var(--tip-edge,#7fd3ff)}
#stage[data-history-theme] #play-tip.history-learning-tip button{flex:0 0 32px;min-height:32px;font-size:22px;margin-left:2px}
@media(pointer:coarse){#stage[data-history-theme] #play-tip.history-learning-tip button{flex-basis:40px;min-height:40px}}
@media(prefers-reduced-motion:reduce){#stage[data-history-theme] #play-tip.history-learning-tip.tip-new{animation:none}}
/* Ícones do mapa com contraste próprio; botões com fundo mais saturado (V285) */
#root #stage #overlay .mission-launch .map-actions>:is(.skills-button,.equipment-shortcut) svg{filter:drop-shadow(1px 1px #050c16)}
#root #stage #overlay .mission-launch .map-actions>.equipment-shortcut{background:#35275e;border-color:#c9a8ff;color:#f1e8ff}
#root #stage #overlay .mission-launch .map-actions>.equipment-shortcut:is(:hover,:focus-visible){background:#43327a}
#root #stage #overlay .mission-launch .map-actions>.skills-button{background:#173a66;border-color:#7fd3ff}
/* Verba durante a fase: moeda R$ grande e número em fonte arcade, com pulso ao coletar (V285) */
#hud .play-wallet{display:flex;align-items:center;gap:7px;margin:4px 0 2px;color:#ffd84a;font:13px/1 'Brasil Arcade',monospace;text-shadow:1px 1px #3a2a05}
#hud .play-wallet strong{font:inherit;transform:scale(calc(1 + var(--pulse,0)*.35));transform-origin:left center;color:color-mix(in srgb,#ffffff calc(var(--pulse,0)*100%),#ffd84a)}
#hud .play-wallet .wallet-coin{width:26px;height:26px;flex:0 0 26px;background:url(sprites/wallet-coin-v443.webp) center/contain no-repeat;filter:drop-shadow(1px 1px #050c16);transform:rotate(calc(var(--pulse,0)*-20deg)) scale(calc(1 + var(--pulse,0)*.25))}
#hud .play-wallet .wallet-gain{font:16px/1 'VT323',monospace;font-style:normal;color:#9dffb0;opacity:var(--pulse,0);transform:translateY(calc((1 - var(--pulse,0))*-6px))}
@media(max-height:500px){#hud .play-wallet{font-size:10px;gap:5px}#hud .play-wallet .wallet-coin{width:20px;height:20px;flex-basis:20px}}
@media(prefers-reduced-motion:reduce){#hud .play-wallet :is(strong,.wallet-coin){transform:none}}

/* Mapa: o modo fica ao lado da fase, na mesma linha, para o card ocupar menos altura (V284) */
#stage .map-mission>small:has(.difficulty-chip){display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;min-width:0}
#stage .map-mission .difficulty-chip{flex-shrink:0;padding:1px 5px;font-size:.85em;line-height:1.4}
/* A barra do mapa cobria os botões ←, música e tela cheia: só os filhos dela recebem clique */
#stage .campaign-map-toolbar{pointer-events:none}
#stage .campaign-map-toolbar>*{pointer-events:auto}
/* Recorde pessoal do mapa em verde, separado da reputação em vermelho (V292) */
#root #stage #overlay .mission-launch .map-stats .map-best :is(dt,dd){color:#7dffa8}
/* V292 · Pausa compacta: recursos com ícone, dificuldade em balões, ações coloridas */
#root #stage #overlay .pause-panel.pause-compact{width:min(760px,96%);gap:10px;padding:14px 16px;background:linear-gradient(170deg,#1b2b52 0,#121d3a 60%,#0f1830 100%);border:3px solid #6f8fd8;box-shadow:0 0 0 3px #0a1226,0 10px 0 #0a1226,0 0 30px #6f8fd833;animation:pause-in .22s ease-out}
#root #stage #overlay .pause-compact .run-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#root #stage #overlay .pause-compact #pause-heading{font-size:clamp(16px,2.6vw,22px);margin:0;color:#ffe28a;text-shadow:2px 2px #0a1226,0 0 12px #ffe28a55}
#root #stage #overlay .pause-compact .pause-phase{margin:2px 0 0;font:18px VT323,monospace;color:#bcd2e6}
#root #stage #overlay .pause-compact .pause-header-cards{display:flex;gap:8px;flex-wrap:wrap}
#root #stage #overlay .pause-compact .pause-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
#root #stage #overlay .pause-compact .pause-stats>div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 10px;background:#0d1730;border:2px solid var(--stat);border-left-width:6px;box-shadow:inset 0 0 14px color-mix(in srgb,var(--stat) 18%,transparent)}
#root #stage #overlay .pause-compact .pause-health{--stat:#ff6f91}#root #stage #overlay .pause-compact .pause-funds{--stat:#7fd3ff}#root #stage #overlay .pause-compact .pause-coins{--stat:#ffd84a}
#root #stage #overlay .pause-compact .pause-stats dt{display:flex;align-items:center;gap:5px;font:8px/1.3 'Brasil Arcade',monospace;color:var(--stat);margin:0}
#root #stage #overlay .pause-compact .pause-stats dt .resource-icon svg{width:18px;height:18px}
#root #stage #overlay .pause-compact .pause-stats dd{margin:0;font:24px/1 VT323,monospace;color:#fff}
#root #stage #overlay .pause-compact .pause-stats dd small{font-size:16px;color:#9fb6cf}
#root #stage #overlay .pause-compact .pause-status{margin:0;font:17px VT323,monospace;color:#ffd0a8}
/* Dificuldade: três botões; o balão mostra o que muda */
#root #stage #overlay .difficulty-compact{margin:0;padding:6px 10px 8px;border:2px solid #3d5a86}
#root #stage #overlay .difficulty-compact legend{font:8px 'Brasil Arcade',monospace;color:#ffe28a;padding:0 6px}
#root #stage #overlay .difficulty-compact .difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#root #stage #overlay .difficulty-compact .difficulty-options button{position:relative;min-height:38px;padding:6px;text-align:center}
#root #stage #overlay .difficulty-compact .difficulty-options button strong{font:9px/1.3 'Brasil Arcade',monospace}
#stage .difficulty-tip{position:absolute;z-index:30;left:50%;bottom:calc(100% + 8px);width:max-content;max-width:min(300px,80vw);display:grid;gap:3px;padding:8px 10px;background:#0a1226f7;border:2px solid #ffe28a;box-shadow:0 4px 0 #050c16;color:#e8f1ff;font:16px/1.15 VT323,monospace;text-align:left;text-transform:none;letter-spacing:0;opacity:0;visibility:hidden;transform:translate(-50%,4px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none}
#stage .difficulty-tip b{font:8px/1.4 'Brasil Arcade',monospace;color:#ffe28a;font-weight:400}
#stage .difficulty-tip small{color:#9fb6cf;font-size:14px}
#stage :is(.difficulty-options,.title-difficulty-options) button{position:relative}
#stage :is(.difficulty-options,.title-difficulty-options) button:is(:hover,:focus-visible) .difficulty-tip{opacity:1;visibility:visible;transform:translate(-50%,0)}
#stage .title-difficulty-options button:first-child .difficulty-tip,#stage .difficulty-options button:first-child .difficulty-tip{left:0;transform:translate(0,4px)}
#stage .title-difficulty-options button:first-child:is(:hover,:focus-visible) .difficulty-tip,#stage .difficulty-options button:first-child:is(:hover,:focus-visible) .difficulty-tip{transform:none}
#stage .title-difficulty-options button:last-child .difficulty-tip,#stage .difficulty-options button:last-child .difficulty-tip{left:auto;right:0;transform:translate(0,4px)}
#stage .title-difficulty-options button:last-child:is(:hover,:focus-visible) .difficulty-tip,#stage .difficulty-options button:last-child:is(:hover,:focus-visible) .difficulty-tip{transform:none}
/* Ações: cartões baixos e coloridos; continuar pulsa */
#root #stage #overlay .pause-compact .pause-actions{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}
#root #stage #overlay .pause-compact .pause-card{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:8px;min-height:0;padding:8px 10px;text-align:left;border:2px solid var(--card);background:color-mix(in srgb,var(--card) 18%,#101c33);transition:transform .12s,box-shadow .12s}
#root #stage #overlay .pause-compact .pause-card:hover{transform:translateY(-2px);box-shadow:0 4px 0 #0a1226,0 0 14px color-mix(in srgb,var(--card) 40%,transparent)}
#root #stage #overlay .pause-compact .pause-resume{--card:#5fd4a0;animation:pause-pulse 2.2s ease-in-out infinite}
#root #stage #overlay .pause-compact .pause-restart{--card:#ffa25c}#root #stage #overlay .pause-compact .pause-map{--card:#7fb4ff}
#root #stage #overlay .pause-compact .pause-card .pause-symbol{grid-row:1/3;font-size:22px;color:var(--card)}
#root #stage #overlay .pause-compact .pause-card strong{font:9px/1.3 'Brasil Arcade',monospace;color:#fff}
#root #stage #overlay .pause-compact .pause-card>span:not(.pause-symbol){font:15px/1.1 VT323,monospace;color:#bcd2e6}
#root #stage #overlay .pause-compact .pause-footer{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
#root #stage #overlay .pause-compact .pause-base-hint{display:inline-flex;align-items:center;gap:6px;font:16px VT323,monospace;color:#ffe28a}
#root #stage #overlay .pause-compact .pause-base-hint kbd{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;background:#0a1226;border:2px solid #ffe28a;font:10px 'Brasil Arcade',monospace}
@keyframes pause-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes pause-pulse{50%{box-shadow:0 0 0 2px #5fd4a055,0 0 16px #5fd4a066}}
@media(prefers-reduced-motion:reduce){#root #stage #overlay .pause-panel.pause-compact,#root #stage #overlay .pause-compact .pause-resume{animation:none}#stage .difficulty-tip{transition:none}}
@media(max-width:560px),(max-height:500px){#root #stage #overlay .pause-compact .pause-stats{grid-template-columns:repeat(3,minmax(0,1fr))}#root #stage #overlay .pause-compact .pause-stats dd{font-size:20px}#root #stage #overlay .pause-compact .pause-card>span:not(.pause-symbol){display:none}#root #stage #overlay .pause-compact .pause-actions{grid-template-columns:repeat(3,1fr)}}
#root #stage #overlay .pause-compact .pause-header-cards{display:flex;flex-wrap:nowrap;align-items:stretch;gap:6px;width:auto;max-width:100%}
#root #stage #overlay .pause-compact .pause-header-cards>:is(.run-badge,.story-settings){width:auto;min-height:44px;padding:4px 8px;margin:0}
#root #stage #overlay .pause-compact .pause-header-cards .story-settings{flex-direction:row;align-items:center;gap:8px}
#root #stage #overlay .pause-compact .pause-header-cards .story-settings>strong{display:none}
#root #stage #overlay .pause-compact .pause-header-cards .story-settings label{min-height:30px}
#root #stage #overlay .pause-compact .pause-footer :is(.help-buttons,.info-buttons,.history-review-buttons,nav){display:flex;flex-wrap:wrap;gap:6px;margin:0}
#root #stage #overlay .pause-compact .pause-footer button{min-height:34px;padding:4px 10px;font-size:15px}
#root #stage #overlay .pause-compact .pause-footer :is(.mission-info,.history-review){display:flex;flex-wrap:wrap;gap:6px;margin:0;width:auto}
#root #stage #overlay .pause-compact .pause-footer :is(.mission-info,.history-review) :is(button,.info-button){min-height:32px;padding:3px 9px;font:15px VT323,monospace;width:auto}
#stage .difficulty-tip{bottom:auto;top:calc(100% + 8px)}
/* Loja: básico e especial da mesma arma num único card (V288) */
#overlay .shop-weapon .weapon-track-rows{display:grid;gap:8px;margin:8px 0}
#overlay .shop-weapon .weapon-track-row{display:grid;grid-template-columns:1fr;gap:6px;padding:6px 8px;background:#0d183088;border-left:3px solid var(--shop-accent,#8fc8ff)}
#overlay .shop-weapon .weapon-track-row .track-max{font-style:normal;color:#9cffb8;margin-left:4px;white-space:nowrap}
#overlay .shop-weapon .weapon-track-row.selected{outline:2px solid #ffd84a;outline-offset:1px}
#overlay .shop-weapon .weapon-track-text{display:grid;gap:2px;min-width:0}
#overlay .shop-weapon .weapon-track-text strong{font:9px/1.4 'Brasil Arcade',monospace;color:#ffe9a8}
#overlay .shop-weapon .weapon-track-text span{font:18px/1.1 'VT323',monospace;color:#b9f3d8}
#overlay .shop-weapon .weapon-track-row .shop-buy{width:100%;min-height:34px;padding:6px 8px;white-space:nowrap}
/* Celular deitado: o ícone de Meu personagem não cabe ao lado do texto; some como o de Habilidades */
@media(max-height:500px){#root #stage #overlay .mission-launch .map-actions>.equipment-shortcut svg{display:none}}
/* V294 · Consumíveis: roda na fase, botão no celular e cartões na loja */
#stage #consumable-wheel{position:absolute;inset:0;z-index:25;display:grid;place-items:center;align-content:center;gap:10px;background:#050c1688;animation:cw-in .15s ease-out}
#stage #consumable-wheel[hidden]{display:none}
#stage #consumable-wheel .cw-ring{position:relative;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,#13223df2 0,#0d1830f2 62%,#0a1226f2 63%);border:3px solid #ffe28a;box-shadow:0 0 30px #ffe28a44}
#stage #consumable-wheel .cw-slot{position:absolute;width:86px;height:86px;display:grid;justify-items:center;align-content:center;gap:1px;border-radius:50%;border:3px solid var(--item-color);background:color-mix(in srgb,var(--item-color) 22%,#101c33);color:#fff;transform:translate(-50%,-50%);transition:transform .12s,box-shadow .12s}
#stage #consumable-wheel .cw-slot-0{left:50%;top:18%}#stage #consumable-wheel .cw-slot-1{left:81%;top:70%}#stage #consumable-wheel .cw-slot-2{left:19%;top:70%}
#stage #consumable-wheel .cw-slot:not(:disabled):hover{transform:translate(-50%,-50%) scale(1.08);box-shadow:0 0 18px color-mix(in srgb,var(--item-color) 70%,transparent)}
#stage #consumable-wheel .cw-slot:disabled{opacity:.45}
#stage #consumable-wheel .cw-slot small{font:10px 'Brasil Arcade',monospace;color:#ffe28a}
#stage #consumable-wheel .cw-slot span{font:26px/1 VT323,monospace;color:var(--item-color)}
#stage #consumable-wheel .cw-slot strong{font:7px/1.2 'Brasil Arcade',monospace}
#stage #consumable-wheel .cw-slot em{font:14px VT323,monospace;font-style:normal;color:#bcd2e6}
#stage #consumable-wheel .cw-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;text-align:center;pointer-events:none}
#stage #consumable-wheel .cw-center strong{font:8px 'Brasil Arcade',monospace;color:#ffe28a}
#stage #consumable-wheel .cw-center small{font:15px VT323,monospace;color:#cfe0f0}
#stage #consumable-wheel .cw-hint{margin:0;font:16px VT323,monospace;color:#e8f1ff;text-shadow:1px 1px #0a1226}
/* V369 · Fake news viral: habilidade reutilizável ao lado dos três encaixes (fora do anel, à direita). */
#stage #consumable-wheel .cw-skill{position:absolute;left:calc(100% + 16px);top:50%;transform:translateY(-50%);width:92px;display:grid;justify-items:center;gap:2px;padding:6px 4px 5px;border:3px solid #ff9fc6;border-radius:8px;background:color-mix(in srgb,#d6528a 22%,#101c33);color:#fff;cursor:pointer;box-shadow:0 0 0 2px #0a1226,0 0 14px #ff9fc644}
#stage #consumable-wheel .cw-skill:not(:disabled):hover{box-shadow:0 0 0 2px #0a1226,0 0 20px #ff9fc6aa}
#stage #consumable-wheel .cw-skill:disabled{opacity:.5;cursor:default}
#stage #consumable-wheel .cw-skill small{font:10px 'Brasil Arcade',monospace;color:#ffe28a}
#stage #consumable-wheel .cw-skill .cw-skill-icon{display:block;width:32px;height:32px}
#stage #consumable-wheel .cw-skill .cw-skill-svg{display:block;width:32px;height:32px;image-rendering:pixelated}
#stage #consumable-wheel .cw-skill strong{font:7px/1.2 'Brasil Arcade',monospace;text-align:center}
#stage #consumable-wheel .cw-skill em{font:14px VT323,monospace;font-style:normal;color:#ffc9de}
@keyframes cw-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#stage #consumable-wheel{animation:none}#stage #consumable-wheel .cw-slot{transition:none}}
#touch .consumable-button{border-color:#ffd84a;color:#ffd84a}
#touch .consumable-button[hidden]{display:none}
/* Fase 6 (carro): só direção, acelerar e frear. */
#touch.car-chase [data-touch-id]:not([data-touch-id=left]):not([data-touch-id=right]):not([data-touch-id=jump]):not([data-touch-id=crouch]){display:none!important}
/* Fases 18 e 19: só os botões da própria mecânica (USAR fica no #interact). */
#touch.pix-stall [data-touch-id]:not([data-touch-id=left]):not([data-touch-id=right]):not([data-touch-id=attack]):not([data-touch-id=jump]):not([data-touch-id=crouch]){display:none!important}
#touch.vax-run [data-touch-id]:not([data-touch-id=joystick]):not([data-touch-id=attack]):not([data-touch-id=dash]):not([data-touch-id=special]){display:none!important}
/* Fase 12 (partida): direção, pular/carregar chute e driblar; os consumíveis seguem a regra do Colapso. */
#touch.world-cup [data-touch-id]:not([data-touch-id=dash]):not([data-touch-id=zaga]):not([data-touch-id=joystick]):not([data-touch-id=forward]):not([data-touch-id=left]):not([data-touch-id=right]):not([data-touch-id=jump]):not([data-touch-id=crouch]):not([data-touch-id=attack]):not([data-touch-id=consumables]){display:none!important}
.consumable-icon{display:inline-grid;place-items:center;width:1.6em;height:1.6em;font:28px/1 VT323,monospace;color:var(--item-color,#ffd84a);background:#0a1226;border:2px solid var(--item-color,#ffd84a)}
#overlay .shop-consumable .shop-item-heading .consumable-icon{--item-color:var(--shop-accent)}
/* Meu personagem: três encaixes de consumível sob o personagem */
#stage .cp-panel .cp-stage{grid-template-rows:auto auto auto}
#stage .cp-panel .cp-cslots{grid-column:1/-1;grid-row:3;display:flex;justify-content:center;gap:8px;order:3}
#stage .cp-panel .cp-cslot{position:relative;display:grid;place-items:center;width:58px;height:58px;min-height:0;padding:0;border:2px solid var(--item-color);background:#0f1d36e6;color:#7d8fb0}
#stage .cp-panel .cp-cslot.empty{border-style:dashed;opacity:.8}
#stage .cp-panel .cp-cslot small{position:absolute;top:1px;left:4px;font:8px 'Brasil Arcade',monospace;color:#ffe28a}
#stage .cp-panel .cp-cslot em{position:absolute;bottom:0;right:4px;font:14px VT323,monospace;font-style:normal;color:#ffe28a}
#stage .cp-panel .cp-cslot .consumable-icon{width:38px;height:38px;font-size:24px;border-width:0;background:none}
#stage .cp-panel .cp-tile-icon .consumable-icon,#stage .cp-panel .cp-info-icon .consumable-icon{border:0;background:none;font-size:34px}
#stage .cp-panel .cp-info-card>p,#stage .cp-panel .cp-item-description>p{margin:0;font:17px/1.15 VT323,monospace;color:#d6e4f2}
#stage .cp-panel .cp-info-card .profile-stock{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 8px;background:#0a1226;border:1px solid #ffffff1f}
#stage .cp-panel .cp-info-card .profile-stock span{font:16px VT323,monospace;color:#9fb6cf}
#stage .cp-panel .cp-info-card .profile-stock strong{font:18px VT323,monospace;color:#ffe28a;font-weight:400}
#stage .cp-panel .cp-cons-slots button{min-height:34px;padding:4px 10px;font-size:16px}
/* V297 · Pausa limpa: título, recursos numa faixa, dificuldade numa linha, continuar em destaque e o resto na gaveta */
#root #stage #overlay .pause-panel.pause-clean{width:min(560px,94%);display:flex;flex-direction:column;gap:12px;padding:16px 18px;background:linear-gradient(170deg,#1b2b52,#111c38 70%);border:3px solid #6f8fd8;box-shadow:0 0 0 3px #0a1226,0 8px 0 #0a1226;animation:pause-in .2s ease-out;text-align:left}
#root #stage #overlay .pause-clean .pause-top{display:grid;gap:4px}
#root #stage #overlay .pause-clean #pause-heading{margin:0;font-size:clamp(15px,2.4vw,20px);color:#ffe28a;text-shadow:2px 2px #0a1226}
#root #stage #overlay .pause-clean .pause-phase{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;font:18px VT323,monospace;color:#bcd2e6}
#root #stage #overlay .pause-clean .pause-phase .run-badge{min-height:0;padding:0;border:0;background:none;color:#9fe0c8;gap:4px}
#root #stage #overlay .pause-clean .pause-phase .run-badge time{font-size:20px}
#root #stage #overlay .pause-clean .pause-phase .run-info-icon{width:16px;height:16px;font-size:13px}
#root #stage #overlay .pause-clean .pause-res{display:grid;grid-template-columns:repeat(3,1fr);margin:0;padding:8px 0;border-block:1px solid #ffffff1a}
#root #stage #overlay .pause-clean .pause-res>div{display:grid;justify-items:center;gap:2px}
#root #stage #overlay .pause-clean .pause-res dt{display:flex;align-items:center;gap:5px;margin:0;font:8px/1.3 'Brasil Arcade',monospace;color:var(--res)}
#root #stage #overlay .pause-clean .pause-res dt i{font:18px/1 VT323,monospace;font-style:normal}
#root #stage #overlay .pause-clean .pause-res .wallet-coin{display:inline-block;width:16px;height:16px;background:url(sprites/wallet-coin-v443.webp) center/contain no-repeat}
#root #stage #overlay .pause-clean .pause-res dd{margin:0;font:26px/1 VT323,monospace;color:#fff}
#root #stage #overlay .pause-clean .pause-res dd small{font-size:16px;color:#8fa6c0}
#root #stage #overlay .pause-clean .res-health{--res:#ff8fa8}#root #stage #overlay .pause-clean .res-funds{--res:#8fd8ff}#root #stage #overlay .pause-clean .res-coins{--res:#ffd84a}
#root #stage #overlay .pause-clean .pause-status{margin:0;font:17px VT323,monospace;color:#ffd0a8;text-align:center}
#root #stage #overlay .pause-clean .pause-diff{display:grid;grid-template-columns:auto repeat(3,1fr);align-items:center;gap:6px}
#root #stage #overlay .pause-clean .pause-diff>span{font:8px 'Brasil Arcade',monospace;color:#8fa6c0;margin-right:4px}
#root #stage #overlay .pause-clean .pause-diff button{position:relative;min-height:32px;padding:4px 6px;font:8px/1.2 'Brasil Arcade',monospace;background:#101c33;border:2px solid #34507a;color:#cfe0f0}
#root #stage #overlay .pause-clean .pause-diff button[aria-pressed=true]{background:#1f4b3d;border-color:#7dffa8;color:#e8fff1}
#root #stage #overlay .pause-clean .pause-main{display:grid;gap:8px}
#root #stage #overlay .pause-clean .pause-go{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;font:12px 'Brasil Arcade',monospace;color:#0a1226;background:#7dffa8;border:3px solid #c9ffd9;box-shadow:0 4px 0 #2f8f5b;animation:pause-pulse 2.2s ease-in-out infinite}
#root #stage #overlay .pause-clean .pause-go:hover{filter:brightness(1.06)}
#root #stage #overlay .pause-clean .pause-alt{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#root #stage #overlay .pause-clean .pause-alt button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;font:9px 'Brasil Arcade',monospace;background:#13223d;border:2px solid #4b6a9a;color:#e8f1ff}
#root #stage #overlay .pause-clean .pause-alt button span{color:#ffa25c;font-size:14px}
#root #stage #overlay .pause-clean .pause-alt button:last-child span{color:#8fb8ff}
#root #stage #overlay .pause-clean .pause-more summary{cursor:pointer;font:17px VT323,monospace;color:#9fb6cf;list-style:none;text-align:center}
#root #stage #overlay .pause-clean .pause-more summary::-webkit-details-marker{display:none}
#root #stage #overlay .pause-clean .pause-more summary::after{content:' ▸'}
#root #stage #overlay .pause-clean .pause-more[open] summary::after{content:' ▾'}
#root #stage #overlay .pause-clean .pause-more-body{display:grid;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid #ffffff1a;animation:cp-in .2s ease-out}
#root #stage #overlay .pause-clean .pause-more-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#root #stage #overlay .pause-clean .pause-more :is(.mission-info,.history-review){display:flex;flex-wrap:wrap;gap:6px;margin:0}
#root #stage #overlay .pause-clean .pause-more :is(.mission-info,.history-review) :is(button,.info-button){min-height:32px;padding:3px 9px;font:15px VT323,monospace;width:auto}
#root #stage #overlay .pause-clean .pause-more .story-settings{width:auto;max-width:none;margin:0;flex-direction:row;align-items:center;gap:10px}
#root #stage #overlay .pause-clean .pause-base-hint{display:inline-flex;align-items:center;gap:6px;font:16px VT323,monospace;color:#ffe28a}
#root #stage #overlay .pause-clean .pause-base-hint kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;background:#0a1226;border:2px solid #ffe28a;font:9px 'Brasil Arcade',monospace}
@media(prefers-reduced-motion:reduce){#root #stage #overlay .pause-panel.pause-clean,#root #stage #overlay .pause-clean .pause-go{animation:none}}
@media(max-height:500px){#root #stage #overlay .pause-panel.pause-clean{gap:8px;padding:10px 14px}#root #stage #overlay .pause-clean .pause-res dd{font-size:22px}#root #stage #overlay .pause-clean .pause-go{min-height:42px}}
#stage .cp-panel .cp-inv-none{margin:0;font:17px VT323,monospace;color:#9fb6cf}

/* The equipment panel owns its columns; keep consumable targets in view on short screens. */
#root #stage[data-mode=equipment] #overlay .cp-panel{height:100%;max-height:100%;min-height:0;overflow:hidden;flex-shrink:1}
#root #stage[data-mode=equipment] #overlay{overflow:hidden}
@media(orientation:landscape) and (max-height:600px){
 #root #stage[data-mode=equipment] .cp-panel .cp-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:hidden;gap:8px}
 #root #stage[data-mode=equipment] .cp-panel :is(.cp-left,.cp-right){overflow-y:auto;min-height:0;padding-right:3px}
 #stage .cp-panel .cp-stage{grid-template-columns:minmax(0,1fr) minmax(60px,1fr) minmax(0,1fr)}
}
@media(orientation:landscape) and (max-width:700px){
 #stage .cp-panel .profile-header{flex-wrap:wrap;gap:4px 6px}
 #stage .cp-panel .profile-header .profile-identity{flex-basis:100%}
 #stage .cp-panel .profile-header h2{margin:0;font-size:11px}
 #stage .cp-panel .profile-header .profile-resources{margin-right:auto}
 #stage .cp-panel .cp-consumable-dock{grid-template-columns:1fr;justify-items:start}
 #stage .cp-panel .cp-consumable-dock .cp-cslots{grid-column:1;justify-content:flex-start}
 #stage .cp-panel .cp-consumable-dock>strong{display:none}
}
#root #stage #overlay .pause-clean .pause-diff button{display:grid;place-items:center;text-align:center}
#root #stage #overlay .pause-panel.pause-clean{overflow:visible}
#root #stage #overlay .pause-panel.pause-clean{overflow-y:auto;max-height:94%}
#root #stage #overlay .pause-clean .pause-more .story-settings{border:0;background:none;padding:0;min-height:0;justify-content:center}
#root #stage #overlay .pause-clean .pause-more .story-settings>strong{font:15px VT323,monospace;color:#9fb6cf}
#root #stage #overlay .pause-clean .pause-more .tutorial-link{min-height:32px;padding:3px 10px;font:15px VT323,monospace;border:2px solid #4b6a9a;background:#13223d;text-decoration:none;color:#e8f1ff}
#root #stage #overlay .pause-clean .pause-more :is(.mission-info,.history-review,.pause-more-row){justify-content:center}
#root #stage #overlay .pause-clean .pause-more .history-review button{font:15px VT323,monospace;min-height:28px;padding:2px 6px}

/* The fourth ruleset keeps its own silhouette and label; never color alone. */
#stage .difficulty-colapso[aria-pressed=true]{border-color:#ffb068;background:#44231f;color:#ffe7bb}
#stage .difficulty-chip.difficulty-colapso{color:#ffbd7a}
#stage .difficulty-options{grid-template-columns:repeat(2,minmax(0,1fr))}
#stage .campaign-map-menu .difficulty-options{grid-template-columns:1fr}
@media(max-width:520px){#stage .difficulty-options{grid-template-columns:1fr}}
#root #stage #overlay .pause-clean .pause-diff{grid-template-columns:repeat(4,minmax(0,1fr))}
#root #stage #overlay .pause-clean .pause-diff>span{grid-column:1/-1}
#root #stage #overlay .pause-clean .pause-diff button{min-width:0;text-align:center;overflow-wrap:anywhere}
#root #stage #overlay .pause-clean>*{min-width:0}
#stage .difficulty-tip{display:none}
#stage :is(.difficulty-options,.title-difficulty-options) button:is(:hover,:focus-visible) .difficulty-tip{display:grid}
#root #stage #overlay .pause-clean .difficulty-tip{position:fixed;top:8px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);max-height:calc(100dvh - 16px);max-width:min(340px,94vw);overflow-y:auto}
@media(orientation:landscape) and (max-height:500px){
 #root #stage #overlay .pause-panel.pause-clean{width:min(720px,94%);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px}
 #root #stage #overlay .pause-clean :is(.pause-diff,.pause-main,.pause-more,.pause-memorials,.pause-status,.pause-pix){grid-column:1/-1}
 #root #stage #overlay .pause-clean .pause-res{margin:0;padding:4px 0}
 #root #stage #overlay .pause-clean .pause-top{align-content:center}
 #root #stage #overlay .pause-clean #pause-heading{font-size:14px}
 #root #stage #overlay .pause-clean .pause-phase{font-size:16px;flex-wrap:wrap}
}
/* Aviso do ranking ao lado do tempo da fase: uma linha discreta, sem empurrar a tela. */
#stage .run-rank-wrap{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0}
#stage .run-rank{font:15px/1.15 VT323,monospace;color:#bfe7d6;max-width:240px;text-align:right}
#stage .panel>p.run-rank{max-width:none;text-align:center;margin:6px 0}
#stage .run-rank b{color:#ffe59c;font-weight:400}

/* Modo livre: o "?" ao lado do interruptor abre a explicação; o interruptor só alterna. */
#stage .sandbox-option{position:relative}
#stage .sandbox-info{flex:none;width:28px;height:28px;min-height:0;padding:0;border:2px solid #c9a0ff;background:#1d1636;color:#e9dcff;font:14px/1 'Brasil Arcade',monospace;cursor:pointer;align-self:center}
/* V469 · No toque, o "?" ganha 40 px de alvo; o quadrado de 28 px continua desenhado no meio (borda transparente + sombra). */
@media (pointer:coarse){#stage .sandbox-info{width:40px;height:40px;border:6px solid transparent;background:#1d1636 padding-box;box-shadow:inset 0 0 0 2px #c9a0ff}#stage .mh-section .sandbox-option>.sandbox-info{right:8px}}
#stage .sandbox-info:focus-visible{outline:2px solid #ffe28a;outline-offset:2px}
/* No toque, o :hover fica preso depois do toque: as dicas de dificuldade só abrem por hover com mouse (o teclado segue com :focus-visible). */
@media (hover:none){#stage :is(.difficulty-options,.title-difficulty-options) button:hover:not(:focus-visible) .difficulty-tip{opacity:0!important;visibility:hidden!important}}
#stage .mh-section .sandbox-option{position:relative}
#stage .mh-section .sandbox-option>.sandbox-info{position:absolute;right:14px;top:50%;transform:translateY(-50%);z-index:1}

/* V452 · Colapso não tem base: o botão fica apagado, mas ainda toca para explicar o motivo. */
#utilities #base.base-off{opacity:.45;filter:grayscale(1);border-color:#4f6a86;color:#9bb0c0}

#touch .cup-forward{display:none}#touch.world-cup .cup-forward{display:flex}

/* Copa: quatro direções no mesmo lado; posições personalizadas continuam valendo. */
#root #stage #touch:not(.world-cup) .cup-forward{display:none!important}
#root #stage #touch.world-cup .cup-forward{display:flex}
#root #stage #touch.world-cup button[data-touch-id=forward]:not([data-touch-placed]){grid-column:1;grid-row:2}
#root #stage #touch.world-cup button[data-touch-id=crouch]:not([data-touch-placed]){grid-column:2;grid-row:2}
#root #stage #touch.world-cup button[data-touch-id=consumables]:not([data-touch-placed]){grid-column:4;grid-row:2}
html[data-touch-hand=left] #root #stage #touch.world-cup button[data-touch-id=forward]:not([data-touch-placed]){grid-column:5;grid-row:2}
html[data-touch-hand=left] #root #stage #touch.world-cup button[data-touch-id=crouch]:not([data-touch-placed]){grid-column:6;grid-row:2}
html[data-touch-hand=left] #root #stage #touch.world-cup button[data-touch-id=consumables]:not([data-touch-placed]){grid-column:3;grid-row:2}

/* Zaga ocupa a célula da defesa, livre na Copa; posição salva continua valendo. */
#root #stage #touch button[data-touch-id=zaga]{--tb-c:#176242;font:16px VT323,monospace;touch-action:none}
#root #stage #touch button[data-touch-id=zaga]:not([data-touch-placed]){grid-column:5;grid-row:2}
html[data-touch-hand=left] #root #stage #touch button[data-touch-id=zaga]:not([data-touch-placed]){grid-column:2;grid-row:2}
#root #stage #touch button[data-touch-id=zaga][hidden]{display:none!important}

/* V605 · DASH da Copa: botão do mesmo tamanho dos outros, colado em DRIBLAR e PULAR (antes ocupava a coluna larga do meio), em laranja. */
#root #stage #touch.world-cup button[data-touch-id=dash]{--tb-c:#c4651a}
#root #stage #touch.world-cup button[data-touch-id=dash]:not([data-touch-placed]){grid-column:4;grid-row:3}
html[data-touch-hand=left] #root #stage #touch.world-cup button[data-touch-id=dash]:not([data-touch-placed]){grid-column:3;grid-row:3}

/* Pause essentials: Pix occupies a full row; landscape pairs heading and resources. */
#root #stage #overlay .pause-panel.pause-clean{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;padding:12px 14px}
#root #stage #overlay .pause-clean>:is(.pause-top,.pause-res,.pause-diff,.pause-main,.pause-more,.pause-memorials,.pause-status,.pause-pix){grid-column:1/-1}
#root #stage #overlay .pause-clean .pause-pix{display:flex;align-items:center;gap:7px;align-self:start;width:100%;min-width:0;min-height:40px;margin:0;padding:5px 8px;border:1px solid #4b6a9a;border-radius:5px;background:#13223d;box-shadow:none;color:#dceaf5;text-align:left;font:16px/1.15 VT323,monospace}
#root #stage #overlay .pause-clean .pause-pix>svg{width:22px;height:22px;flex:none}
#root #stage #overlay .pause-clean .pause-pix-switch{display:flex;align-items:center;gap:4px;flex:none;margin-left:auto;padding:3px;border:1px solid #8195a9;border-radius:12px;background:#24354b;font:12px/1 VT323,monospace}
#root #stage #overlay .pause-clean .pause-pix-switch i{display:block;order:-1;width:12px;height:12px;border-radius:50%;background:#afbed0}
#root #stage #overlay .pause-clean .pause-pix[aria-pressed=true] .pause-pix-switch{border-color:#7dffa8;background:#1f4b3d;color:#b9ffcf}
#root #stage #overlay .pause-clean .pause-pix[aria-pressed=true] .pause-pix-switch i{order:1;background:#7dffa8}
#root #stage #overlay .pause-clean .pause-pix:focus-visible{outline:2px solid #ffe28a;outline-offset:2px}
#root #stage #overlay .pause-clean .pause-res{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0;border:0}
#root #stage #overlay .pause-clean .pause-res>.res-card{container-type:inline-size;min-width:0;padding:5px 6px 9px;gap:3px}
#root #stage #overlay .pause-clean .pause-res>.res-card dt{max-width:100%;gap:3px;white-space:nowrap;font:clamp(10px,13cqi,15px)/1.1 VT323,monospace}
#root #stage #overlay .pause-clean .pause-res>.res-card dt i{font-size:14px;flex:none}
#root #stage #overlay .pause-clean .pause-res>.res-card .wallet-coin{width:12px;height:12px}
#root #stage #overlay .pause-clean .pause-res>.res-card dd{font-size:22px}
@media(orientation:landscape) and (max-height:500px){
 #root #stage #overlay .pause-panel.pause-clean{width:min(760px,94%);gap:6px 10px;padding:10px 12px}
 #root #stage #overlay .pause-clean .pause-top{grid-column:1}
 #root #stage #overlay .pause-clean .pause-res{grid-column:2}
 #root #stage #overlay .pause-clean .pause-diff{gap:4px}
 #root #stage #overlay .pause-clean .pause-diff button{min-height:38px;padding:3px 5px}
 #root #stage #overlay .pause-clean .pause-main{gap:6px}
 #root #stage #overlay .pause-clean .pause-go{min-height:42px}
}
@media(max-width:420px){
 #root #stage #overlay .pause-panel.pause-clean{gap:7px;padding:10px}
 #root #stage #overlay .pause-clean .pause-pix{gap:4px;padding:5px;font-size:14px}
}

#root #stage #overlay .pause-clean .pause-more summary{display:flex;align-items:center;justify-content:center;min-height:40px;padding:2px 8px;box-sizing:border-box}
@media(max-height:500px){#root #stage #overlay .pause-panel.pause-clean{gap:6px;padding:6px 14px}}



#touch.vax-ward [data-touch-id=crouch]{display:none!important}

#root #stage #touch.pix-stall button[data-touch-id] small,#root #stage #touch.vax-run button[data-touch-id] small{font:11px/1 'VT323',monospace;letter-spacing:-.2px;white-space:nowrap}

/* Três ações em uma única faixa inferior; respeita posições personalizadas. */
#root #stage #touch.vax-run [data-touch-id=dash],#root #stage #touch.vax-run [data-touch-id=special],#root #stage #touch.vax-run [data-touch-id=joystick]{display:flex!important}
#root #stage #touch.pix-stall button:is([data-touch-id=attack],[data-touch-id=jump],[data-touch-id=crouch]):not([data-touch-placed]),
#root #stage #touch.vax-run button:is([data-touch-id=attack],[data-touch-id=dash],[data-touch-id=special]):not([data-touch-placed]){position:absolute;bottom:12px;top:auto;width:110px;height:54px;min-width:0;grid-area:auto;left:auto}
#root #stage #touch:is(.pix-stall,.vax-run) button[data-touch-id=attack]:not([data-touch-placed]){right:244px;--tb-c:#2d704e}
#root #stage #touch.pix-stall button[data-touch-id=jump]:not([data-touch-placed]),#root #stage #touch.vax-run button[data-touch-id=dash]:not([data-touch-placed]){right:128px}
#root #stage #touch.pix-stall button[data-touch-id=crouch]:not([data-touch-placed]),#root #stage #touch.vax-run button[data-touch-id=special]:not([data-touch-placed]){right:12px}
html[data-touch-hand=left] #root #stage #touch:is(.pix-stall,.vax-run) button[data-touch-id=attack]:not([data-touch-placed]){right:auto;left:244px}
html[data-touch-hand=left] #root #stage #touch.pix-stall button[data-touch-id=jump]:not([data-touch-placed]),html[data-touch-hand=left] #root #stage #touch.vax-run button[data-touch-id=dash]:not([data-touch-placed]){right:auto;left:128px}
html[data-touch-hand=left] #root #stage #touch.pix-stall button[data-touch-id=crouch]:not([data-touch-placed]),html[data-touch-hand=left] #root #stage #touch.vax-run button[data-touch-id=special]:not([data-touch-placed]){right:auto;left:12px}

/* PREPARAR: cabeçalho comum, conteúdo e economia dos painéis existentes. */
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central{display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;min-width:0;min-height:0;gap:6px;box-sizing:border-box}
#root #stage #overlay .prepare-header{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;flex:none;padding:4px;background:#10202e;border:1px solid #34506a}
#root #stage #overlay .prepare-header nav{display:flex;gap:4px;flex-wrap:wrap}
#root #stage #overlay .prepare-header button{font:16px/1.1 VT323,monospace;min-height:30px;padding:4px 8px;white-space:normal}
#root #stage #overlay .prepare-header [aria-pressed=true]{border-color:#ffe28a;color:#ffe28a;background:#294238}
#root #stage #overlay .prepare-resources{display:flex;gap:8px;flex-wrap:wrap;font:15px/1.1 VT323,monospace}
#root #stage #overlay .prepare-actions{display:flex;gap:4px;margin-left:auto}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central>.panel{flex:1;min-height:0;height:0;max-height:100%;width:100%;box-sizing:border-box;margin:0}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(.shop-switch,.shop-heading,.shop-actions>[data-action=shopBack],.shop-actions>[data-action=shopContinue],.profile-identity,.profile-resources,.cp-head-back){display:none}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .shop-panel.shop-tiles{grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:"grid sheet" "notice notice" "actions actions"}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .shop-grid>.loan-panel{grid-column:1/-1;min-width:0;max-width:100%;box-sizing:border-box}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .shop-section{font:16px/1.2 VT323,monospace}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .shop-notice:not(.has-notice){display:none}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters button{position:relative;display:grid;place-items:center;padding:3px;width:34px;min-width:34px;min-height:34px;flex:none}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters button>span{display:block;width:24px;height:24px;font:24px/1 VT323,monospace}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters svg{width:24px;height:24px}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters .cp-filter-tip{position:fixed;z-index:50;width:auto;height:auto;padding:6px;background:#10202e;color:#fff;border:1px solid #ffe28a;font:14px/1.2 VT323,monospace;pointer-events:none;transform:translateY(-32px)}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-figure-art{isolation:isolate}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-wear-weapon{inset:0;width:100%;height:100%;z-index:-1;filter:none;transform:none}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-wear-weapon .cp-back-weapon{width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;object-fit:contain}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-wear-special{left:auto;right:-16px;top:25%;transform:none}
#root #stage #overlay .map-single-line .map-prepare{display:flex;align-items:center;justify-content:center;gap:4px;padding:4px;font:18px/1 VT323,monospace;min-height:32px;white-space:nowrap}
#root #stage #overlay .map-single-line:not([data-bar-variant=full]) .map-prepare .map-menu-label{display:none}
@media(max-width:719px){#root #stage #overlay .map-single-line .map-prepare{width:32px;min-width:32px;padding:0}#root #stage #overlay .map-single-line .map-prepare .map-menu-label{display:none}}
@media(max-width:500px){
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .shop-panel.shop-tiles{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(90px,1fr) minmax(90px,1fr) auto auto;grid-template-areas:"grid" "sheet" "notice" "actions"}
 #root #stage #overlay .prepare-header{gap:4px}
 #root #stage #overlay .prepare-header button{font-size:14px;padding:3px 5px}
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-body{grid-template-columns:minmax(0,1fr);overflow:auto}
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-left,#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-right{min-width:0;height:auto;overflow:visible}
}
#root #stage #overlay .prepare-header [aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}
#root #stage #overlay .prepare-actions [data-action=preparePlay]{color:#baffcd;border-color:#5ac881;background:#194b35}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-inventory{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:4px;min-width:0}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-inv-tools{display:contents}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-search{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters{grid-column:1;grid-row:2;display:flex;flex-direction:column;flex-wrap:nowrap;align-self:start;overflow:visible;gap:3px}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-inv-grid{grid-column:2;grid-row:2;min-width:0}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(.cp-inv-empty,.cp-inv-none){grid-column:2}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters [aria-pressed=true]{box-shadow:inset 3px 0 #fff}
/* Leitura mínima real: os menus não são escalados com o canvas do jogo. */
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(h3,h4,small,button,summary,.cp-use-now,.cp-type-chip,.shop-price,.shop-level,.cp-tile-name){font-size:11px}
@media (orientation:landscape) and (max-height:600px){
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-compact .cp-body{grid-template-columns:minmax(160px,.9fr) minmax(120px,1fr) minmax(0,1fr);gap:5px}
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-compact .cp-stage{grid-template-columns:34px minmax(0,1fr) 34px;gap:3px;min-height:112px}
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-compact .cp-slot{width:34px;height:34px}
}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .skill-shop{display:flex!important;flex-direction:column;overflow:hidden}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .skill-shop>.shop-grid{flex:1;min-height:0;overflow:auto}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .shop-actions:empty{display:none}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-compact .cp-filters button{font-size:14px}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(.shop-buy,.cp-info-actions button,summary){font-size:14px}

/* PREPARAR: medidas mínimas conferidas por elemento, sem reduzir a tela inteira. */
#root #stage #overlay .prepare-header{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content}
#root #stage #overlay .prepare-header nav{flex-wrap:nowrap;min-width:0}
#root #stage #overlay .prepare-header button{white-space:nowrap}
#root #stage #overlay .prepare-actions{margin-left:0;flex-wrap:nowrap}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(.loan-badge,.loan-options legend,.weapon-attack strong,.shop-name-short,.cp-info-card h3,.cp-figure>strong,.cp-attr-name){font-size:11px!important}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(.skill-zoom-controls button,.cp-panel button,.cp-panel summary){min-width:var(--prepare-target-size,40px)!important;min-height:var(--prepare-target-size,40px)!important;box-sizing:border-box}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .skill-zoom-controls button{width:28px;height:28px}
@media(max-width:719px){
 #root #stage #overlay .prepare-header{grid-template-columns:minmax(0,1fr) max-content;gap:4px}
 #root #stage #overlay .prepare-header nav{grid-column:1;grid-row:1;gap:2px}
 #root #stage #overlay .prepare-actions{grid-column:2;grid-row:1;gap:2px}
 #root #stage #overlay .prepare-header button{padding:4px;font-size:14px}
 #root #stage #overlay .prepare-resources{grid-column:1/-1;grid-row:2}
}
@media (min-width:501px) and (orientation:landscape) and (max-height:600px){
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-body{grid-template-columns:184px minmax(112px,1fr) minmax(0,1fr)}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact :is(.cp-left,.cp-stage,.cp-figure,.cp-inventory,.cp-info){min-width:0;max-width:100%;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-stage{width:100%;padding:4px;grid-template-columns:34px minmax(0,1fr) 34px;grid-template-rows:34px 34px 34px;grid-template-areas:"weapon figure special" "wheel figure mount" "wheel figure .";gap:6px;min-height:122px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-slot{width:34px;height:34px;padding:2px;min-width:0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-slot-icon{width:24px;height:24px;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-slot-icon :is(svg,img,canvas,.shop-item-icon){width:20px;height:20px}
 /* A coluna do palco cabe no lado esquerdo: a figura encolhe, os slots não invadem o inventário. */
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-left{grid-template-columns:minmax(0,1fr)}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-stage{grid-template-columns:34px minmax(0,1fr) 34px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-left :is(.cp-attrs,.cp-attrs *){min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-left{overflow-x:hidden}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-figure-art{width:70px;max-width:100%;height:88px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-figure-art>.portrait{width:100%;height:88px;object-fit:contain}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-wheel-toggle{position:relative;grid-area:wheel;align-self:start;justify-self:center;left:auto;bottom:auto;transform:none;width:34px;height:34px;min-height:34px;margin:0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-wheel-toggle .cp-wheel-icon{width:24px;height:24px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-search{padding:4px;font-size:16px}
}

/* Caixas de apresentação (arma nas costas, efeitos reduzidos) com alvo de toque de 28px. */
#root #overlay .prepare-central input[type=checkbox][data-presentation]{width:28px;height:28px;margin:0}
/* Header changes are limited to PREPARAR, independent of the map bar. */
#root #stage #overlay .prepare-central .prepare-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:6px;min-width:0}
#root #stage #overlay .prepare-central .prepare-header nav{gap:5px;min-width:0;flex-wrap:wrap}
#root #stage #overlay .prepare-central .prepare-header button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:40px;min-height:40px;padding:5px 8px;font-size:16px;white-space:normal}
#root #stage #overlay .prepare-central .prepare-header nav button{color:#c4d5e6;background:#162e45;border:2px solid #45617b}
#root #stage #overlay .prepare-central .prepare-header nav [aria-pressed=true]{color:#fff2a4;background:#37523e;border-color:#ffe481;text-decoration:none}
#root #stage #overlay .prepare-central .prepare-header svg{width:24px;height:24px;flex:none}
#root #stage #overlay .prepare-central .prepare-resources{grid-column:1;grid-row:2;gap:12px;align-items:center}
#root #stage #overlay .prepare-central .prepare-resources span{display:inline-flex;align-items:center;gap:4px}
#root #stage #overlay .prepare-central .prepare-resources svg{width:18px;height:18px}
#root #stage #overlay .prepare-central .prepare-actions{grid-column:2;grid-row:1/3;display:flex;flex-wrap:wrap;gap:4px;max-width:240px;align-items:center}
#root #stage #overlay .prepare-central :is(.cp-preview-label,.cp-preview-label button){font:14px/1.1 VT323,monospace}
#root #stage #overlay .prepare-central .cp-preview-label button{min-height:40px}
@media(max-width:900px){
 #root #stage #overlay .prepare-central .prepare-header{padding:3px;gap:3px}
 #root #stage #overlay .prepare-central .prepare-header nav{gap:2px}
 #root #stage #overlay .prepare-central .prepare-header nav button{font-size:14px;padding:3px;gap:3px}
 #root #stage #overlay .prepare-central .prepare-actions{max-width:170px}
 #root #stage #overlay .prepare-central .prepare-actions button{padding:3px;font-size:14px}
}

@media(prefers-reduced-motion:reduce){#root #stage #overlay .prepare-central *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#root #stage #overlay .prepare-central{position:relative}
#root #stage #overlay .prepare-central .prepare-settings{position:absolute;z-index:50;right:8px;top:60px;bottom:8px;width:min(360px,calc(100% - 16px));box-sizing:border-box;overflow:auto;background:#10202e;border:2px solid #ffe481;padding:10px;font:16px/1.3 VT323,monospace}
#root #stage #overlay .prepare-central .prepare-settings label{display:flex;align-items:center;min-height:40px}
#root #stage #overlay .prepare-central .prepare-settings button{min-height:40px;font-size:14px}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-panel :is(button,summary){min-height:40px;min-width:40px}
#root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central .cp-filters button{width:40px}
#root #stage #overlay .prepare-central .cp-panel :is(.cp-tile-name,.cp-slot strong,.cp-slot small,.cp-attr-name,.cp-info-card h3){font-size:11px;line-height:1.2;white-space:normal;text-overflow:clip;overflow-wrap:anywhere}
#root #stage #overlay .prepare-central .cp-panel .profile-header{display:none}
#root #stage #overlay .prepare-central .skill-zoom-controls button{min-width:40px;min-height:40px}
/* QA: keep all four actions on the same 40px header row. */
@media(max-width:900px){
 #root #stage #overlay .prepare-central .prepare-header{padding:2px;gap:2px}
 #root #stage #overlay .prepare-central .prepare-header nav{flex-wrap:nowrap}
 #root #stage #overlay .prepare-central .prepare-header .prepare-actions{max-width:none;flex-wrap:nowrap;grid-row:1;align-self:start;gap:2px}
 #root #stage #overlay .prepare-central .prepare-header .prepare-actions button{padding:3px;white-space:nowrap}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-stage{grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:40px 40px 40px;gap:4px;min-height:136px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact :is(.cp-slot,.cp-wheel-toggle){width:40px;height:40px;min-height:40px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-inventory{grid-template-columns:40px minmax(0,1fr)}
 #root #stage:is([data-mode=equipment],[data-mode=shop]) #overlay .prepare-central :is(button:not(.skill-node),summary,select){min-height:var(--prepare-target-size,40px)!important;box-sizing:border-box}
 #root #stage[data-mode=shop] #overlay .prepare-central :is([data-skill-expand],[data-skill-card]){min-width:40px;min-height:40px;width:40px;height:40px}
}
/* Portrait and slot use the same blade-up angle. Gameplay artwork is untouched. */
#root #stage #overlay .prepare-central .cp-slot-weapon[data-equipped-id=lamina] .cp-slot-icon img{transform:rotate(-31.5deg);object-fit:contain}


/* V746 · Mixin comum de moldura: três retângulos por contorno formam os
   cantos (9,0)-(9,3)-(3,3)-(3,9)-(0,9). O interior recua 3 px.
   Só o ::after pinta; ::before continua disponível para ícones. Sem recortar
   o elemento, seus filhos, menus ou foco. A última camada é a sombra dura. */
#root #stage :is(#overlay,#challenge-start){--frame-play-c:#fff0ae;--frame-play-bg:#ffe16c;--frame-play-ink:#142039}
#root #stage #challenge-start :where(.cs-panel,.cs-rule,.cs-start),
#root #stage #overlay :where(
 .pixel-frame,
 .map-bar-menu>summary,.map-prepare-tabs>button,.map-launch>button,
 .map-selectors summary,.map-actions>button,.history-map-review>summary,
 .prepare-header button,.shop-categories>button,.shop-switch,.shop-actions button,
 .skill-sandbox-controls button,.skill-test,.skill-buy,.skill-go-parent,.skill-undo button,
 .skill-details,.shop-sheet-card,.shop-sheet-card button,.cp-info-card,
 .cp-head-button,.cp-rules-pop>summary,.cp-info-card button,.cp-filters button,
 .pause-panel,.pause-main button,.pause-diff button,.pause-more-body button,
 .mobile-home .mh-bar>button,.mobile-home .mh-bar>a,
 .mobile-home .mh-section>button,.mobile-home .mh-diff [data-difficulty],
 .title-buttons>button,.title-tools>button,.title-tools>a,
 .title-difficulty-options button,.title-play-actions .mode-card,
 .completion-panel,.completion-panel .cp-card,.mission-intro,.mission-dialog,.defeat-screen,.recovery-panel,.recovery-card,[data-mode=editorResult] .panel,
 .history-cinema:not([data-finale],.census-failure) .cinema-head-actions button,
 .history-cinema:not([data-finale],.census-failure) .cinema-sources>summary
){
 --frame-unit:var(--map-unit,1px);
 --frame-c:#7cabbc;--frame-bg:#16313e;
 --frame-step:calc(3 * var(--frame-unit));
 --frame-nine:calc(9 * var(--frame-unit));
 --frame-six:calc(6 * var(--frame-unit));
 --frame-eighteen:calc(18 * var(--frame-unit));
 position:relative;isolation:isolate;
 border-color:transparent!important;border-image:none!important;
 border-radius:0!important;background:transparent!important;box-shadow:none!important;
 /* A pintura cobre também a borda transparente, sem mudar a caixa original. */
 &::after{
  content:""!important;display:block!important;position:absolute!important;
  inset:calc(var(--frame-inset-y,0px) - var(--frame-border,2px)) calc(-1 * var(--frame-border,2px)) calc(var(--frame-inset-y,0px) - var(--frame-border,2px) - var(--frame-step))!important;
  z-index:-1!important;pointer-events:none;
  border:0!important;border-radius:0!important;clip-path:none!important;
  width:auto!important;height:auto!important;margin:0!important;
  box-shadow:none!important;transform:none!important;
  /* Interior recuado, luz branca de 9% e sombra externa dura de 3 px. */
  background:
   linear-gradient(#ffffff17,#ffffff17) center top calc(3 * var(--frame-unit)) / calc(100% - calc(18 * var(--frame-unit))) calc(3 * var(--frame-unit)) no-repeat,
   linear-gradient(var(--frame-bg),var(--frame-bg)) center top calc(3 * var(--frame-unit)) / calc(100% - calc(18 * var(--frame-unit))) calc(100% - calc(9 * var(--frame-unit))) no-repeat,
   linear-gradient(var(--frame-bg),var(--frame-bg)) center top calc(6 * var(--frame-unit)) / calc(100% - calc(12 * var(--frame-unit))) calc(100% - calc(15 * var(--frame-unit))) no-repeat,
   linear-gradient(var(--frame-bg),var(--frame-bg)) center top calc(9 * var(--frame-unit)) / calc(100% - calc(6 * var(--frame-unit))) calc(100% - calc(21 * var(--frame-unit))) no-repeat,
   linear-gradient(var(--frame-c),var(--frame-c)) center top calc(0 * var(--frame-unit)) / calc(100% - calc(18 * var(--frame-unit))) calc(100% - calc(3 * var(--frame-unit))) no-repeat,
   linear-gradient(var(--frame-c),var(--frame-c)) center top calc(3 * var(--frame-unit)) / calc(100% - calc(6 * var(--frame-unit))) calc(100% - calc(9 * var(--frame-unit))) no-repeat,
   linear-gradient(var(--frame-c),var(--frame-c)) center top calc(9 * var(--frame-unit)) / 100% calc(100% - calc(21 * var(--frame-unit))) no-repeat,
   linear-gradient(#060e1b,#060e1b) center top calc(3 * var(--frame-unit)) / calc(100% - calc(18 * var(--frame-unit))) calc(100% - calc(3 * var(--frame-unit))) no-repeat,
   linear-gradient(#060e1b,#060e1b) center top calc(6 * var(--frame-unit)) / calc(100% - calc(6 * var(--frame-unit))) calc(100% - calc(9 * var(--frame-unit))) no-repeat,
   linear-gradient(#060e1b,#060e1b) center top calc(12 * var(--frame-unit)) / 100% calc(100% - calc(21 * var(--frame-unit))) no-repeat!important;
 }
 &:is(button,summary,a):not(:where(#stage[data-mode=map] *)){min-width:44px!important;min-height:44px!important}
 &:is(button,summary,a):hover:not(:disabled)::after{filter:brightness(1.15)}
 &:is(.active,.selected,[aria-pressed=true],[aria-selected=true]),details[open]>&{
  --frame-c:#ffe28a;--frame-bg:#334735;text-decoration:underline!important;text-underline-offset:3px;
 }
 &:is(button,summary,a):active:not(:disabled)::after{filter:brightness(.8)}
 &:is(button,summary,a):focus-visible{outline:3px solid #fff0ae!important;outline-offset:3px}
 &:is(:disabled,[aria-disabled=true],.disabled){--frame-c:#59687d;--frame-bg:#283240;color:#a7aeb8}
}
/* Variantes sem novo desenho de borda. Ações internas continuam controles;
   blocos informativos dentro das fichas recebem só fundo tingido. */
#root #stage #overlay :is([data-frame=green],.shop-play,.pause-go,[data-action=preparePlay],.skill-buy){--frame-c:#8fddb1;--frame-bg:#1c513c}
/* CONTINUAR da pausa: verde vivo e claro, texto escuro. */
#root #stage #overlay .pause-clean .pause-go{--frame-c:#d6ffe3;--frame-bg:#7dffa8;color:#0a1226!important;text-shadow:none!important}
#root #stage #overlay :is([data-frame=orange],.skill-sandbox-controls button,[data-action=course]){--frame-c:#ffa25c;--frame-bg:#4b3023}
#root #stage #overlay :is([data-frame=blue],.shop-switch,.cp-head-train){--frame-c:#8fc8ff;--frame-bg:#1d3150}
#root #stage #overlay :is([data-frame=gray],[data-action=prepareBack],.shop-actions .text-button,.cp-head-back){--frame-c:#9aa9b7;--frame-bg:#263544}
#root #stage :is(#overlay,#challenge-start) :is([data-frame=play],.map-launch>button){--frame-c:var(--frame-play-c);--frame-bg:var(--frame-play-bg);color:var(--frame-play-ink)!important;text-shadow:none!important}
#root #stage #overlay [data-frame=gold]{--frame-c:#ffe28a;--frame-bg:#453b22}
#root #stage #overlay :is([data-frame=off],button:disabled,[aria-disabled=true]){--frame-c:#59687d;--frame-bg:#283240}
#root #stage #overlay :is(.skill-details,.shop-sheet-card,.cp-info-card){--frame-c:#7bcebc;--frame-bg:#142d37;overflow:visible}
#root #stage #overlay :is(.skill-details,.shop-sheet-card,.cp-info-card) :is(.profile-stock,.weapon-attack,.skill-fork-note){border:0;box-shadow:none;background:#ffffff09}
#root #stage #overlay .pause-panel{--frame-border:3px;--frame-c:#8fc8ff;--frame-bg:#14243c}
#root #stage #overlay .pause-panel .pause-res>.res-card{border:0;box-shadow:none;background:#ffffff09}

#root #stage #overlay .prepare-central{--prepare-target-size:44px!important}
#root #stage #overlay .prepare-central>:is(.panel,.prepare-header){border-color:transparent;box-shadow:none}
#root #stage #overlay .title-play-actions .mode-card{--frame-border:3px;--frame-c:var(--mode-edge,#8fddb1)}
#root #stage #overlay .title-play-actions .main-campaign{--frame-bg:#6ee7a4}
#root #stage #overlay .title-play-actions .character-campaigns{--frame-bg:#1c405c}
/* O triângulo do menu passa para ::before; ::after é só a moldura comum. */
#root #stage #overlay .title-play-actions .mode-card::before{content:none;animation:none;box-shadow:none}
#root #stage #overlay .title-play-actions .main-campaign::before{content:'▶';position:absolute;inset:auto 16px auto auto;top:50%;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;border:0;background:none;color:#173b2c;opacity:1;z-index:0;font:18px/1 'Brasil Arcade',monospace;pointer-events:none}
#root #stage #overlay :is(.title-difficulty-options,.pause-diff) [data-difficulty]{--frame-c:var(--diff,#8fc8ff);--frame-bg:var(--diff-bg,#16313e)}

/* V752 · Só as telas da rodada 2; o desenho continua no mixin acima. */
#root #stage #overlay :is(.completion-panel,.mission-intro,.recovery-panel){--frame-border:3px;--frame-c:#7bcebc;--frame-bg:#18263b}
#root #stage[data-mode=editorResult] #overlay>.panel{--frame-border:3px;--frame-c:#7bcebc;--frame-bg:#18263b}
#root #stage #overlay .defeat-screen{--frame-border:3px;--frame-c:#ee707b;--frame-bg:#281c30}
#root #stage #overlay .recovery-card{--frame-border:2px;--frame-c:var(--recovery-color);--frame-bg:var(--recovery-bg);border-width:2px}
#root #stage #overlay :is(.completion-panel .cp-card,.mission-dialog){overflow:visible;--frame-c:#7cabbc;--frame-bg:#16313e;--frame-border:2px;border-width:2px}
#root #stage :is(#overlay,#challenge-start) button[data-frame=play][data-round-two]::before{content:'▶';display:inline;position:static;width:auto;height:auto;margin:0 .5em 0 0;border:0;background:none;box-shadow:none;transform:none;animation:none;color:inherit}
#root #stage #overlay :is(.completion-buttons,.mission-intro .chapter-actions,.defeat-actions){display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}
#root #stage #overlay :is(.completion-buttons,.mission-intro .chapter-actions,.defeat-actions)>button{box-sizing:border-box;flex:1 1 140px;min-width:0;max-width:100%;height:auto;min-height:48px;padding:10px 12px;margin:0;white-space:normal;line-height:1.4;align-self:stretch}
#root #stage #overlay :is(.completion-panel,.mission-intro,.defeat-screen,.recovery-panel,[data-round-two]){box-sizing:border-box;min-width:0;max-width:100%}
#root #stage #overlay :is(.completion-panel,.mission-intro,.defeat-screen,.recovery-panel){overflow-y:auto;max-height:100%;overscroll-behavior:contain}
#root #stage #overlay .recovery-cta{min-height:64px;height:auto;white-space:normal}
#root #stage :is(#overlay,#challenge-start) [data-round-two]:is(:disabled,[aria-disabled=true]){--frame-c:#59687d;--frame-bg:#283240;color:#a7aeb8!important}
@media(max-width:600px){
 #root #stage #overlay :is(.completion-panel,.mission-intro,.defeat-screen,.recovery-panel){width:100%;padding:12px}
 #root #stage #overlay .recovery-options{display:grid;grid-template-columns:minmax(0,1fr)}
 #root #stage #overlay :is(.mission-dialog,.recovery-card,.cp-card){min-width:0;overflow-wrap:anywhere}
}
#root #stage #overlay :is(.completion-panel,.mission-intro,.defeat-screen,.recovery-panel),
#root #stage #overlay :is(.completion-panel,.mission-intro,.defeat-screen,.recovery-panel) :is(.pixel-frame,.cp-card,.mission-dialog,.recovery-card){clip-path:none!important}
#root #stage #overlay .completion-buttons>button[data-round-two]{min-width:0;flex:1 1 140px;white-space:normal}
/* As três escolhas compartilham linhas: preço, explicação e falta de saldo
   não deslocam a fileira dos CTAs. No celular estreito, cada card ocupa uma linha. */
#root #stage #overlay .recovery-options{display:grid}
#root #stage #overlay .recovery-options>.recovery-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:8px}
#root #stage #overlay .recovery-card>.recovery-cta{grid-row:4;align-self:stretch;margin:0}
#root #stage #overlay .recovery-card>.recovery-missing{grid-row:5}
/* V746 · Alvo de 44 px com desenho e ocupação vertical de 40 px. */
#root #stage #overlay .prepare-central .prepare-header button,
#root #stage[data-mode=shop] #overlay .prepare-central .shop-sheet .shop-card-footer button{
 --frame-inset-y:2px;box-sizing:border-box;min-width:44px!important;
 height:44px!important;min-height:44px!important;max-height:44px!important;
 margin-block:-2px!important;align-self:center;border-width:2px!important;
}
/* Cenas comuns: fontes, pausa, JOGAR e transporte na mesma linha. */
#root #stage #overlay .history-cinema:not([data-finale],.census-failure){grid-template-rows:auto minmax(0,1fr) auto}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure)>header{flex-wrap:wrap;padding-right:0;gap:4px}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure)>header>div:first-child{flex:1 1 100%}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-head-actions{
 display:flex;flex:1 1 100%;width:100%;min-width:0;flex-wrap:nowrap;
 align-items:center;justify-content:flex-end;gap:4px;margin-left:0;
}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-head-actions .cinema-transport{display:contents!important}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-head-actions>.cinema-sources{display:block;flex:0 0 44px;min-width:44px}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-head-actions :is(button,summary){
 --frame-inset-y:0px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 flex:0 0 44px;width:44px;min-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;
 margin:0;padding:0 6px!important;border-width:2px!important;white-space:nowrap;
}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-head-actions .cinema-play{flex:1 1 auto!important;width:auto!important;font:20px/1 VT323,monospace!important}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) [data-scene=pause]{--frame-c:#9aa9b7;--frame-bg:#263544}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) :is([data-scene=previous],[data-scene=next]){--frame-c:#8fddb1;--frame-bg:#102c35}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-sources>summary{--frame-c:#81bde6;--frame-bg:#102c35;color:#81bde6}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-sources>summary::before{display:inline-grid!important;background:none;color:inherit}
@media(max-width:400px){#root #stage #overlay .history-cinema:not([data-finale],.census-failure){padding-inline:8px}}
#root #stage #overlay .history-cinema:not([data-finale],.census-failure) .cinema-head-actions :is(button,summary):is(:disabled,[aria-disabled=true]){--frame-c:#59687d;--frame-bg:#283240}

/* V753 · A ficha reserva a última linha para EQUIPAR; só a descrição rola.
   Os alvos de 44 px ocupam os mesmos 40 px da faixa, como no cabeçalho V746. */
#root #stage #overlay :is(.cp-equipment-description,.cp-item-description){display:contents}
#stage .cp-panel .cp-item-description>button{border-color:var(--item-color)}
@media (orientation:landscape) and (max-height:600px){
 #root #stage[data-mode=equipment] #overlay .prepare-central{--prepare-target-size:44px!important}
 #root #stage[data-mode=shop] #overlay .prepare-central :is(.shop-categories>button,.shop-actions button,.shop-detail-toggle,.skill-sandbox-controls button),
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-panel :is(button:not(.cp-tile,.cp-cslot),summary){
  --frame-inset-y:2px;box-sizing:border-box;min-width:44px!important;
  min-height:44px!important;margin-block:-2px;align-self:center;
 }
 #root #stage[data-mode=shop] #overlay .prepare-central .shop-detail-toggle{height:44px}
 #root #stage[data-mode=shop] #overlay .prepare-central .shop-categories{padding-block:2px 6px;column-gap:6px;row-gap:4px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-stage{grid-template-columns:44px minmax(0,1fr) 44px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-inventory{grid-template-columns:44px minmax(0,1fr)}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-attrs{grid-template-columns:repeat(3,minmax(44px,1fr));row-gap:6px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-filters{padding-block:2px;gap:4px;min-height:0;max-height:100%;overflow-y:auto}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-compact .cp-info{padding:4px 4px 6px;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description){height:100%;min-height:0;box-sizing:border-box;grid-template-rows:auto minmax(0,1fr) auto}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-actions{padding-block:2px;min-width:0}
}
/* V753 · Computador: duas fileiras completas, ficha sem linha vazia e
   EQUIPAR à direita do resumo. Só a lista e os detalhes abertos rolam. */
@media (min-width:761px) and (min-height:601px) and (orientation:landscape){
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-panel .cp-right{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;padding:4px 4px 6px;box-sizing:border-box;gap:8px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-inventory{grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto 176px;min-height:0;overflow:hidden;padding:4px;gap:4px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-search{min-height:32px;height:32px;padding:4px 8px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-inv-grid{grid-auto-rows:84px;height:176px;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;align-content:start;row-gap:8px;scroll-snap-type:y mandatory}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-tile{height:84px;min-height:84px;box-sizing:border-box;padding:4px;align-content:center;scroll-snap-align:start}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-tile:hover{transform:none}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-tile-icon,#root #stage[data-mode=equipment] #overlay .prepare-central .cp-tile-icon :is(svg,img,canvas,.shop-item-icon){width:28px;height:28px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-filters{display:grid;grid-template-columns:44px 44px;grid-auto-rows:44px;gap:4px;max-height:100%;overflow-y:auto}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-filters button{width:44px;height:44px;min-width:44px!important;min-height:44px!important;margin:0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info{min-height:0;max-height:100%;box-sizing:border-box;overflow-y:auto;padding:4px 4px 6px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description){height:auto;min-height:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:4px;padding:6px 8px;align-content:start}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description)>header{grid-column:1/-1;gap:8px;justify-content:flex-start}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description) .cp-info-icon{flex-basis:40px;height:40px;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description) .cp-info-icon :is(svg,img,canvas,.shop-item-icon){width:32px;height:32px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description{display:contents}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description>.profile-equipment-facts{grid-column:1/-1;grid-row:2;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description>.profile-equipment-facts>div{display:block;padding:2px 0;border:0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description>.profile-equipment-facts dd{justify-content:flex-start;text-align:left}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description>.profile-equipment-level{grid-column:1/-1;grid-row:2;align-self:start}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description:has(>.profile-equipment-level)>.profile-equipment-facts{padding-top:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-equipment-description>.profile-equipment-details{grid-column:1/-1;grid-row:3;min-width:0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .profile-equipment-details>summary{min-height:44px!important;box-sizing:border-box;padding:12px 110px 12px 0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description)>.cp-info-actions{grid-column:2;grid-row:3;align-self:start;justify-self:end;position:relative;z-index:1;margin:0}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-equipment-description)>.cp-info-actions button{height:44px;min-height:44px!important;margin:0;box-sizing:border-box}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-info-card:has(>.cp-item-description){height:100%;min-height:0;box-sizing:border-box;grid-template-rows:auto minmax(0,1fr);gap:4px;padding:6px 8px}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-item-description{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-attrs{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
 #root #stage[data-mode=equipment] #overlay .prepare-central .cp-attr-name{overflow-wrap:normal;word-break:normal;hyphens:none}
}
/* Copa: memoriais para reler na pausa (mesmo formato de "Mais opções"). */
#root #stage #overlay .pause-clean .pause-memorials summary{cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:44px;padding:2px 8px;box-sizing:border-box;font:17px VT323,monospace;color:#d8d2c0;list-style:none;text-align:center}
#root #stage #overlay .pause-clean .pause-memorials summary::-webkit-details-marker{display:none}
#root #stage #overlay .pause-clean .pause-memorials summary::after{content:' ▸'}
#root #stage #overlay .pause-clean .pause-memorials[open] summary::after{content:' ▾'}
#root #stage #overlay .pause-clean .pause-memorials-body{display:grid;gap:10px;margin-top:6px;padding:8px 10px;border:1px solid #d8d2c033;background:#1b2230d9;max-height:38vh;overflow-y:auto;text-align:left}
#root #stage #overlay .pause-clean .pause-memorials-body h3{margin:0 0 2px;font:15px VT323,monospace;letter-spacing:.5px;color:#d8d2c0}
/* Lista aberta: dificuldade e cartões saem de cena para a pausa caber sem rolar (a moldura não acompanha a rolagem). */
#root #stage #overlay .pause-clean:has(.pause-memorials[open]) :is(.pause-res,.pause-diff,.pause-status,.pause-more,.pause-phase>:not(span)){display:none}
@media(max-height:500px){#root #stage #overlay .pause-clean .pause-memorials-body{max-height:max(72px,calc(100dvh - 240px))}}
#root #stage #overlay .pause-clean .pause-memorials-body p{margin:0;font:17px/1.2 VT323,monospace;color:#fff2d4;overflow-wrap:anywhere}
