/* Static portraits: stable anatomy, exact independent equipped weapon layer. */
.hero-loadout-figure{display:block;width:100%;height:100%;min-width:0;overflow:hidden;pointer-events:none;isolation:isolate}
.hero-loadout-figure image{image-rendering:auto;animation:none!important;transform:none}
.current-portrait>.hero-loadout-figure,.growth-screen .character-picture>.hero-loadout-figure{width:100%;height:100%;background:radial-gradient(#73694444,#0b0f0c)}
.layout-profile>.hero-loadout-figure{width:38px;height:48px;flex:none;max-width:38px}
.hd-identity>.hero-loadout-figure{width:72px;height:88px;flex:none}
.class-hero-art>.hero-loadout-figure{position:absolute;inset:0}
.pb-portrait>.hero-loadout-figure{position:absolute;inset:0;width:100%;height:100%}
/* Preserve pedestal space and complete item silhouettes in narrow/tall cells. */
.approved-art>.isolated-equipment-svg{inset:20px 8px 30px!important;width:calc(100% - 16px)!important;height:calc(100% - 50px)!important;padding:0!important;box-sizing:border-box}
.current-cell>.isolated-equipment-svg,.current-gear>.isolated-equipment-svg{box-sizing:border-box;max-width:100%;max-height:100%}
.pb-combat-details{flex:none;border-top:1px solid #89724299;background:linear-gradient(#20271de8,#121710ef);padding:10px 12px;color:#e6d7b7;font:12px/1.3 Georgia;min-width:0}
.pb-detail-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
.pb-detail-values>div{min-width:0;padding:7px 3px;text-align:center;border:1px solid #75634266;background:#0b100aa0}
.pb-detail-values dt{color:#baa77e;font-size:10px;overflow-wrap:anywhere}
.pb-detail-values dd{font-size:20px;color:#edd4a0;margin:3px 0 0;font-variant-numeric:tabular-nums}
.pb-status-readout{display:flex;align-items:center;gap:8px;border-top:1px solid #75634255;margin-top:8px;padding-top:7px;min-height:28px}
.pb-status-readout>small{color:#bda97f;font-size:10px}
.pb-status-readout output{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.pb-gear-readout{display:block;color:#b6b89c;font-size:10px;margin-top:4px;overflow-wrap:anywhere}
@media(min-width:901px){.pb-arena{align-items:stretch}.pb-fighter{display:flex;flex-direction:column}.pb-combat-details{margin-top:auto}.pb-exchange{align-self:center}}
@media(max-width:900px){
 .pb-combat-details{padding:5px;flex-shrink:0}
 .pb-detail-values{gap:3px}.pb-detail-values>div{padding:4px 1px}
 .pb-detail-values dt{font-size:8px}.pb-detail-values dd{font-size:14px;margin-top:2px}
 .pb-status-readout{margin-top:4px;padding-top:4px;gap:4px;min-height:24px}
 .pb-status-readout>small{font-size:8px}.pb-status-readout output{font-size:9px}
 .pb-gear-readout{font-size:8px;line-height:1.2;margin-top:3px;max-height:2.4em;overflow:hidden}
}
@media(max-width:900px) and (max-height:670px){.pb-gear-readout{display:none}.pb-combat-details{padding:3px}.pb-status-readout{min-height:18px}.pb-detail-values>div{padding:2px 1px}}
@media(prefers-reduced-motion:reduce){.hero-loadout-figure *{animation:none!important}}
/* Preserve original combat motion; strengthen contact, glow and readability only. */
.pb-card-effects svg{filter:drop-shadow(0 0 5px #ffe1a2) drop-shadow(0 0 11px #d69b5266)}
.pb-card-effects .pb-cut-mark{stroke:#fff1c5;stroke-width:2;fill:#f8ce7e}
.pb-card-number{font-weight:700!important;font-size:clamp(24px,3vw,42px)!important;text-shadow:0 2px 2px #130c07,0 0 6px #130c07,1px 0 #130c07,-1px 0 #130c07!important}
.pb-fighter:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:8;border:1px solid #f4d69c;box-shadow:inset 0 0 22px #edc57755;opacity:0}
.pb-acting[data-pb-target=enemy] .pb-enemy:after,.pb-acting[data-pb-target=hero] .pb-hero:after{animation:pb-contact-polish var(--pb-duration,700ms) ease-out both}
@keyframes pb-contact-polish{0%,48%,100%{opacity:0}54%{opacity:.85}70%{opacity:.22}}
.portrait-battle[data-pb-motion=false] .pb-fighter:after{animation:none!important}
@media(prefers-reduced-motion:reduce){.pb-fighter:after{animation:none!important}}
/* Painted button atlas has square matte corners: clip each state to its bevel. */
button:has(>.smith-button-skin){background-color:transparent!important;box-shadow:none!important}
button>.smith-button-skin{clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px);overflow:hidden;isolation:isolate}
button:has(>.smith-button-skin):focus-visible{outline:2px solid #d4b878;outline-offset:3px}
.auth-mode-switch{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:16px;font:13px/1.4 Georgia;color:#bdab85}
.auth-card button.auth-mode-link{display:inline!important;width:auto!important;min-height:32px!important;height:auto!important;padding:5px 7px!important;background:none!important;border:0!important;box-shadow:none!important;color:#e8c57e!important;font:14px Georgia!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.auth-card button.auth-mode-link:hover{color:#ffe3a2!important}.auth-card button.auth-mode-link:focus-visible{outline:2px solid #d4b878;outline-offset:2px}

.settings-combat-audio{padding:12px 0;border-block:1px solid #8d764777;margin:12px 0}.settings-combat-audio h3{margin:0 0 10px}.settings-combat-audio>label{display:block;margin-top:12px}.settings-combat-audio output{float:right;color:#e4c88c}.settings-combat-audio input[type=range]{display:block;width:100%;max-width:100%;margin:12px 0;accent-color:#cba657;touch-action:pan-y}
