/* Text grows naturally. Shared grid tracks align cards without clipping content. */
.arsenal-config{--upgrade-card-height:auto;--upgrade-card-rows:auto auto auto auto auto}
.arsenal-config .frame-slot,.arsenal-config .frame-arcane-slot{grid-template-rows:auto auto auto;align-content:stretch}
.arsenal-config .frame-slot>.forma-slot-tag,.arsenal-config .frame-arcane-slot>.forma-slot-tag,.forma-slot-tag.native-comparison-tag{height:auto;min-height:62px;max-height:none;overflow:visible;white-space:normal;flex-direction:column;justify-content:center;align-items:flex-start;padding:8px;line-height:1.5;overflow-wrap:anywhere}
.arsenal-config .frame-slot>p,.arsenal-config .frame-arcane-slot>p{min-height:24px;flex-wrap:wrap}
.arsenal-config .mod-card,.frame-upgrade-header .compact-arcane{height:auto;min-height:332px;grid-template-rows:auto 1fr auto auto auto;align-self:stretch;align-content:stretch}
.arsenal-config .mod-card>.mod-identity,.frame-upgrade-header .compact-arcane>.arcane-identity{height:auto;min-height:172px;grid-template-rows:112px minmax(36px,auto) minmax(24px,auto)}
.arsenal-config .mod-identity>.mod-label,.arsenal-config .mod-identity>.mod-en,.frame-upgrade-header .arcane-identity>strong,.frame-upgrade-header .arcane-identity>.small{height:auto;max-height:none;overflow:visible;white-space:normal;overflow-wrap:anywhere}
.mod-card .mod-effects,.arsenal-config .mod-effects,.frame-upgrade-header .compact-arcane>.arcane-effects{height:auto;min-height:88px;max-height:none;overflow:visible;white-space:pre-line;overflow-wrap:anywhere;overscroll-behavior:auto}
.arsenal-config .mod-meta,.frame-upgrade-header .arcane-meta,.arsenal-config .mod-drain-note,.frame-upgrade-header .arcane-drain-note{height:auto;min-height:22px;white-space:normal;overflow-wrap:anywhere}
.arsenal-config .empty-card,.arsenal-config .upgrade-top-row .empty-card{height:auto;min-height:332px}
.arsenal-config .frame-slot>.build-role-badge{margin:0}
.frame-upgrade-header,.arsenal-config .frame-normal-slots,.arsenal-config .shared-normal-slots{align-items:stretch}
.mod .mod-effect{display:block;-webkit-line-clamp:unset;height:auto;max-height:none;overflow:visible;white-space:pre-line;overflow-wrap:anywhere}
.mod-grid>.slot{display:flex;flex-direction:column;min-width:0}
.mod-grid>.slot>.mod{flex:1 0 auto;height:auto;max-height:none}
.mod .mod-name,.mod .mod-en{height:auto;max-height:none;overflow:visible;overflow-wrap:anywhere}
@supports(grid-template-rows:subgrid){
 .arsenal-config :is(.frame-normal-slots,.shared-normal-slots,.frame-upgrade-header){grid-auto-rows:auto}
 .arsenal-config :is(.frame-normal-slots,.shared-normal-slots,.frame-upgrade-header)>:is(.frame-slot:has(>.mod-card),.frame-arcane-slot),.arsenal-config .frame-upgrade-header .frame-arcane-slot{grid-row:span 8;grid-template-rows:subgrid;row-gap:6px}
 .arsenal-config :is(.frame-slot:has(>.mod-card),.frame-arcane-slot)>p{grid-row:1}
 .arsenal-config :is(.frame-slot:has(>.mod-card),.frame-arcane-slot)>.forma-slot-tag{grid-row:2}
 .arsenal-config .frame-slot:has(>.mod-card)>.build-role-badge{grid-row:3}
 .arsenal-config .frame-slot>.mod-card,.arsenal-config .frame-arcane-slot>.compact-arcane{grid-row:4 / span 5;grid-template-rows:subgrid;row-gap:0}
}
/* Optional acquisition help must not overflow the former five-row subgrid. */
.mod-card,.arsenal-config .mod-card,.arsenal-config .frame-slot>.mod-card{display:flex;flex-direction:column;grid-template-rows:none;height:auto}
.mod-card>:not(.mod-top){flex-shrink:0;min-width:0}
.mod-card>.mod-identity,.arsenal-config .mod-card>.mod-identity{display:grid;grid-template-rows:auto auto auto;height:auto;min-height:0}
.mod-card>.mod-effects,.arsenal-config .mod-card>.mod-effects,.mod-gallery .mod-card>.mod-effects{flex:1 0 auto;height:auto;max-height:none;overflow:visible;white-space:pre-line;word-break:keep-all;overflow-wrap:break-word}
.mod-card .mod-label,.mod-card .mod-en,.mod-card .mod-meta,.mod-card .mod-drain-note,.mod .mod-effect{word-break:keep-all;overflow-wrap:break-word}
.mod-card>.mod-rank,.arsenal-config .mod-card>.mod-rank{height:auto;min-height:18px;flex-wrap:wrap}
.mod-card>.mod-acquisition-button,.mod-gallery .mod-card>.mod-acquisition-button{width:auto;align-self:center;flex:0 0 auto;max-width:calc(100% - 12px);box-sizing:border-box}
