/* Intercept v4 / 08: subsystems are small bodies wired up to the host, each with one strike slot. */
.subsystems{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:22px}
.subsystem{position:relative;width:250px;min-width:0;background:#f1e3cf;border:2px solid #c99b78;border-radius:9px;padding:8px 10px;display:grid;gap:6px}
.subsystem:before{content:'';position:absolute;left:50%;top:-24px;width:3px;height:22px;background:#b89d73}
.subsystem header{display:flex;justify-content:space-between;align-items:center;font:700 10px ui-monospace,monospace;letter-spacing:1px}
.sub-name{text-transform:uppercase;color:#7d2a1d}
.sub-hp{color:#33473d}
.sub-effect{font:11px ui-monospace,monospace;color:#7d4a35}
.sub-track{position:relative;height:6px;background:#d8cdb7;border-radius:2px;overflow:hidden}
.sub-fill{height:100%;background:var(--orange);transition:width .3s}
.sub-loss{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(-45deg,#f0b39b 0 3px,#fff3e6 3px 6px)}
.subsystem.destroyed{background:#e2e0d0;border-color:#b5b39d;border-style:dashed}
.subsystem.destroyed .sub-name,.subsystem.destroyed .sub-effect{color:#7f8b76;text-decoration:line-through}
.subsystem.offline{background:#3d4a42;border-color:#2d3d34;color:#9aa595}
.subsystem.offline:before{background:repeating-linear-gradient(#b89d73 0 4px,transparent 4px 8px)}
.subsystem.offline .sub-name,.subsystem.offline .sub-hp,.subsystem.offline .sub-effect{color:#b9c3b0}
.subsystem.offline .sub-track{opacity:.3}
.turret-shot{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 6px;border-radius:5px;background:#613d30;border:1px dashed #e99068;color:#ffd5b0;font:700 13px ui-monospace,monospace}
.repair-tag{font:700 13px ui-monospace,monospace;color:#006b64}
.subsys .enemy-plan{margin-top:14px}
@media(max-width:700px){.subsystems{margin-top:18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.subsystem{width:auto;padding:6px}.sub-effect{font-size:10px}}
/* Subsystem sockets match slot sockets; the Core watermark would sit behind slot A. */
.subsystem .port-hole{width:44px;height:44px}.subsystem .port-hole.mod{width:36px;height:36px}.subsystem .port-wire{width:8px}
.attached .arena.core:after{content:none}
@media(max-width:700px){.subsystems{grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr))}.subsystem .port-hole{width:38px;height:38px}.subsystem .port-hole.mod{width:30px;height:30px}.subsystem .port-wire{width:4px}.subsystem .slot-line{gap:4px;padding:3px 4px}.subsystem header{gap:6px;flex-wrap:wrap}}
