.hero-forge-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;align-items:start}
.hero-forge-form{display:grid;gap:14px;padding:20px;background:#e3d1af;border:2px solid #211e1a}
.hero-forge-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#211e1a}
.hero-forge-form :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;padding:9px;background:#fff7e8;color:#211e1a;border:1px solid #76634c;border-radius:0;font:14px Arial,sans-serif}
.hero-forge-form textarea{resize:vertical}.hero-forge-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.hero-forge-actions,#hfLibrary{display:flex;flex-wrap:wrap;gap:8px}.hero-forge-preview{min-width:0}.hero-forge-preview h3{margin-top:0}#hfStatus{font-size:13px;min-height:2em;margin:0}
#forgePanel h3{color:#211e1a}#forgePanel button{background:#211e1a;color:#fff1d9;border:2px solid #211e1a;border-radius:0;padding:9px 12px;font-weight:700;cursor:pointer}#forgePanel button:hover{background:#a42229}#forgePanel button:disabled{opacity:.5;cursor:wait}#hfDownload{background:#a42229!important}
#hfCard{box-sizing:border-box;overflow:hidden;width:100%;background:#eee0c3;color:#211e1a;border:5px solid #211e1a;font-family:Arial,sans-serif;box-shadow:6px 6px 0 #211e1a}
#hfCard>header{background:#a42229;color:#fff1d9;padding:16px 20px;border-bottom:4px solid #211e1a}
#hfCard h2{font:900 clamp(24px,3vw,40px)/1.05 Impact,'Arial Narrow',sans-serif;text-transform:uppercase;margin:6px 0;overflow-wrap:anywhere}
#hfCard header small{font-size:11px;text-transform:uppercase;letter-spacing:2px}#hfCard header span{font-size:13px}
.hf-card-body{display:grid;grid-template-columns:42% 58%;min-height:470px}
.hf-portrait{position:relative;min-width:0;background:radial-gradient(#211e1a30 1px,transparent 1.5px),linear-gradient(135deg,#9f9891,#d5c9b7);background-size:5px 5px,auto;border-right:3px solid #211e1a;display:grid;place-items:center}
.hf-portrait img{position:absolute;width:100%;height:100%;inset:0}.hf-portrait [hidden]{display:none}
#hfPlaceholder{text-align:center;font:900 25px/1.2 Impact,Arial,sans-serif;transform:rotate(-7deg);padding:16px;color:#4f453b}
.hf-card-rules{min-width:0;padding:12px}.hf-attack{border:2px solid #211e1a;padding:10px;background:#fff3d9;overflow-wrap:anywhere}
#hfPreviewStats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:12px 0 0;text-align:center}#hfPreviewStats dt{font-size:10px;text-transform:uppercase;font-weight:bold}#hfPreviewStats dd{margin:4px 0 0;font-size:23px;font-weight:900}
.hf-skill{margin-top:10px;border:1px solid #75634d;background:#fff4df;border-left:6px solid var(--level);padding:8px 10px;overflow-wrap:anywhere}.hf-skill strong{font-size:11px;text-transform:uppercase}.hf-skill p{white-space:pre-wrap;font-size:13px;line-height:1.4;margin:4px 0 0}
.hf-blue{--level:#286b9f}.hf-yellow{--level:#d5af20}.hf-orange{--level:#d97620}.hf-red{--level:#ab2529}
#hfCard>footer{border-top:3px solid #211e1a;background:#211e1a;color:#f6e8cf;padding:10px;font-size:9px;text-align:center;letter-spacing:1px}
@media(max-width:1050px){.hero-forge-layout{grid-template-columns:1fr}.hero-forge-form{grid-template-columns:1fr 1fr}.hero-forge-actions,#hfStatus{grid-column:1/-1}}
@media(max-width:550px){.hero-forge-form{grid-template-columns:1fr;padding:12px}.hf-card-body{grid-template-columns:1fr}.hf-portrait{height:320px;border-right:0;border-bottom:3px solid #211e1a}#hfCard{box-shadow:3px 3px 0 #211e1a}.hf-card-rules{padding:10px}}
