/* v8: socket topology and a security layer, with no extra resource. */
.jack-lock{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1;font:700 10px ui-monospace,monospace;color:#755324;background:repeating-linear-gradient(135deg,#c6af7740 0 7px,transparent 7px 14px);border:1px solid #ad8b4b;border-radius:5px}
.relay-locked{border-color:#ad8b4b!important}.relay-locked .line-value{display:none}
.dock-study .slot .port-hole.extra{width:44px;height:44px}
.port-wire.additive{border:0;width:8px;height:16px;position:relative}.port-wire.additive:after{content:'+';position:absolute;inset:0;font:14px monospace;color:#788870}
.dock-study .subsystem.security{--component:#80612c;border-color:#ab945b;background:#eee5cc}
.dock-study .subsystem.security .effect-badge{color:#755324}
.dock-study .subsystems{width:min(100%,1000px);max-width:1000px}
.relay-unlocked .enemy-slot:last-child{animation:jack-open 1.5s ease-out}
@keyframes jack-open{0%,35%{box-shadow:0 0 20px #e5bb56;border-color:#e5bb56}100%{box-shadow:none}}
@media(min-width:1100px){
 .dock-study .subsystems{flex-wrap:nowrap;gap:16px}
 .dock-study .subsystem{flex:1;max-width:320px;min-width:0;grid-template-columns:80px 1fr}
 .dock-study .subsystems:has(.subsystem:nth-child(2)):after{left:calc(50% / 2);right:calc(50% / 2)}
 .dock-study .subsystems:has(.subsystem:nth-child(3)):after{left:16.3%;right:16.3%}
}
@media(max-width:1099px){
 .dock-study .subsystems{display:flex;flex-wrap:wrap;justify-content:center}
 .dock-study .subsystem{width:calc(50% - 5px)}
 .dock-study .subsystem.security .component-art{max-width:95px}
}
@media(max-width:580px){.dock-study .slot .port-hole.extra{width:40px;height:40px}}
@media(max-width:360px){.dock-study .slot .port-hole.extra{width:32px;height:34px}.jack-lock{font-size:8px}}
@media(prefers-reduced-motion:reduce){.relay-unlocked .enemy-slot:last-child{animation:none}}
.jack-lock{flex-direction:column;gap:2px}.jack-lock>span{font:700 16px ui-monospace,monospace}.jack-lock small{font:700 8px ui-monospace,monospace}
/* Enemy dice roll on the machine board, then fly to their committed sockets. */
.dock-study .enemy-plan{display:none;position:absolute;top:112px;left:50%;transform:translateX(-50%);width:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;z-index:8;pointer-events:none}
.dock-study[data-phase=enemyRolling] .enemy-plan{display:flex}
.dock-study .enemy-roll-tray{display:flex;gap:16px;min-height:0;padding:0}
.dock-study .enemy-plan .enemy-die{--size:44px;width:44px;height:44px;flex:none}
.dock-study .enemy-die .face-symbol{width:29px;height:29px}
.dock-study[data-phase=enemyRolling] .enemy{opacity:.18}
.dock-study[data-phase=enemyRolling] .enemy-slots{opacity:.4}
@media(max-width:580px){
 .dock-study .enemy-plan{top:125px}
 .dock-study .enemy-plan .enemy-die{--size:34px;width:34px;height:34px}
 .dock-study .enemy-die .face-symbol{width:24px;height:24px}
 .dock-study .enemy-roll-tray{gap:12px}
 .dock-study[data-phase=scout] .reroll:after{content:'⚄'}
}
@media(max-width:360px){.dock-study .enemy-plan .enemy-die{--size:30px;width:30px;height:30px}}
.dock-study .enemy-plan{grid-area:auto}
