.duel .gameboard{grid-template-areas:'battle battle' 'rig rig' 'hand action'}.duel .battle{position:relative}.duel .arena{height:270px;overflow:visible}.duel .enemy{width:345px;height:245px;top:0;z-index:1}.duel .intent-bubble{left:50%;right:auto;bottom:3px;transform:translateX(-50%);z-index:3;white-space:nowrap}.duel .body-inputs{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:3}.duel .body-inputs .port-panel{width:177px;pointer-events:auto;background:#e2dfc9;border:2px solid #b1ae90;position:relative}.duel .body-inputs .port-panel:after{content:'';position:absolute;height:3px;width:48px;background:#b89d73;top:50%;right:-50px}.duel .body-inputs .port-panel:last-child:after{right:auto;left:-50px}.duel .body-inputs .port-title h3 span{display:none}.duel .body-inputs .port-title h3:after{content:'HIT';font:10px ui-monospace,monospace;letter-spacing:1px;margin-left:7px}.duel .enemy-barrier{position:absolute;left:50%;top:13px;translate:-50% 0;width:280px;height:224px;border:3px solid transparent;border-radius:45% 45% 30% 30%;pointer-events:none;z-index:2;transition:border-color .2s,box-shadow .2s}.duel.enemy-shielded .enemy-barrier{border-color:#71a79b80;box-shadow:inset 0 0 25px #65afa925,0 0 9px #31948b20}.enemy-plan{background:#dadbc4;border:1px solid #a7b193;border-radius:9px;padding:12px 18px;display:grid;grid-template-columns:210px 1fr auto;align-items:center;gap:18px;margin:12px 0}.enemy-roll-tray{display:flex;gap:12px;align-items:center;justify-content:center;min-height:48px}.enemy-die{--size:36px;width:36px;height:36px;perspective:350px;position:relative}.enemy-die .cube-face{border-radius:5px}.enemy-die .face-symbol{width:23px;height:23px}.enemy-die .face-symbol b{font-size:8px;right:-4px}.enemy-die.committed{opacity:.22}.enemy-die .cube-face .blank-face{font-size:22px;color:#7f8b76}.enemy-own-ports{display:flex;gap:12px;min-width:0}.enemy-bank{display:flex;align-items:center;background:#193c32;border:1px solid #779271;border-radius:6px;gap:8px;min-height:51px;padding:7px 10px;flex:1;color:#f4b08b}.enemy-bank.defense{color:#a7ded0}.enemy-bank>.bank-label>.face-symbol{width:22px;height:22px}.enemy-bank strong{font:700 20px ui-monospace,monospace;margin-left:auto}.bank-dice{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.enemy-chip{display:flex;width:29px;height:29px;background:#f8efd9;color:#b83422;border-radius:5px;border:1px solid #c3c2a3;align-items:center;justify-content:center;box-shadow:0 2px 0 #afb18e}.enemy-chip.defense{color:#006b64}.enemy-chip .face-symbol{width:20px;height:20px}.enemy-chip .face-symbol b{font-size:7px;right:-4px;bottom:-2px}.enemy-chip.modifier{width:24px;height:24px}.enemy-summary{font:10px/1.6 ui-monospace,monospace;max-width:140px;color:var(--muted)}.enemy-loadout{margin-top:12px}.enemy-loadout summary{font:10px ui-monospace,monospace;cursor:pointer;min-height:28px}.archetype{color:var(--muted)}.enemy-face-list{display:flex;gap:14px;flex-wrap:wrap;padding:10px 0}.enemy-face-row{display:flex;gap:5px;align-items:center;background:#dedfc9;border:1px solid #b2b89e;border-radius:5px;padding:8px}.enemy-face-row>span:first-child{font:10px ui-monospace,monospace;margin-right:4px}.face-sample{display:flex;align-items:center;justify-content:center;width:27px;height:27px;background:#f7efd8;border-radius:4px;color:#b83422}.face-sample.defense{color:#006b64}.face-sample .face-symbol{width:18px;height:18px}.face-sample .face-symbol b{font-size:7px;right:-4px}.blank-face{font:700 20px monospace;color:#667a62}.enemy-flight{position:fixed;z-index:10000;pointer-events:none;width:33px;height:33px}.duel[data-phase=enemyRolling] .enemy-die .cube{animation:tumble 950ms cubic-bezier(.2,.6,.3,1) both;animation-delay:var(--delay)}.duel[data-phase=enemyCommit] .enemy-chip{opacity:.25}.duel[data-phase=scout] .physical-die .cube-face,.duel[data-phase=enemyRolling] .physical-die .cube-face,.duel[data-phase=enemyCommit] .physical-die .cube-face{background:#d3dac0;color:transparent}.duel[data-phase=scout] .physical-die .cube-face .face-symbol,.duel[data-phase=enemyRolling] .physical-die .cube-face .face-symbol,.duel[data-phase=enemyCommit] .physical-die .cube-face .face-symbol{display:none}.duel[data-phase=scout] .physical-die .side-0:after,.duel[data-phase=enemyRolling] .physical-die .side-0:after,.duel[data-phase=enemyCommit] .physical-die .side-0:after{content:'?';color:#66795d;font:700 25px monospace}.duel .forecast{gap:14px;font-size:16px;flex-wrap:wrap}.duel .health{margin-top:10px}.duel .hit-bubble{top:65px;left:60%;z-index:5}.duel.sending .enemy{animation:none}.duel.enemy-damaged .enemy{animation:enemy-recoil .65s ease-out}.duel.enemy-damaged .hit-bubble,.duel.enemy-bracing .hit-bubble{animation:damage .65s ease-out}.duel.enemy-bracing .enemy-barrier{animation:barrier-impact .65s ease-out}.duel.enemy-bracing:not(.enemy-damaged) .enemy{animation:enemy-brace .65s ease-out}.duel.enemy-windup .enemy{animation:windup .4s ease-in forwards}.duel.enemy-windup .turbine{transform-box:fill-box;transform-origin:center;animation:turbine-spin .16s linear infinite}.duel.enemy-firing .enemy{animation:enemy-fire .6s ease-out}.duel.enemy-firing .intent-bubble{box-shadow:0 0 20px #e39060}.duel.enemy-damaged .enemy svg{filter:drop-shadow(2px 0 #d64c28)}@keyframes enemy-recoil{20%{transform:translateX(12px) rotate(6deg)}50%{transform:translateX(-5px) rotate(-3deg)}100%{transform:none}}@keyframes enemy-brace{30%{transform:translateY(6px) scaleY(.95)}100%{transform:none}}@keyframes barrier-impact{30%{border-color:#b9ffdf;box-shadow:0 0 25px #8fe8d4,inset 0 0 30px #d4ffe855;scale:1.07}100%{scale:1}}@keyframes windup{to{transform:translateY(4px) rotate(-5deg)}}@keyframes turbine-spin{to{rotate:360deg}}@keyframes enemy-fire{20%{transform:translateY(-10px) rotate(5deg)}60%{transform:translateY(3px) rotate(-2deg)}100%{transform:none}}
@media(max-width:900px){.duel .gameboard{grid-template-areas:'battle battle' 'rig rig' 'hand hand' 'action action'}.duel .body-inputs .port-panel{width:147px}.duel .body-inputs .port-panel:after{width:20px;right:-22px}.duel .body-inputs .port-panel:last-child:after{left:-22px}.duel .enemy{width:300px}.enemy-plan{grid-template-columns:1fr;gap:10px}.enemy-summary{text-align:center;max-width:none}.enemy-own-ports{justify-content:center}.enemy-bank{max-width:270px}.duel .enemy-barrier{width:240px}}
@media(max-width:580px){.duel .gameboard{grid-template-columns:1fr;grid-template-areas:'battle' 'rig' 'hand' 'action'}.duel .arena{height:326px}.duel .enemy{height:205px;width:286px;top:0}.duel .enemy-barrier{top:15px;width:220px;height:178px}.duel .intent-bubble{top:179px;bottom:auto;padding:3px 8px;font-size:9px}.duel .body-inputs{align-items:flex-end;padding:0 0 5px}.duel .body-inputs .port-panel{width:134px;padding:8px}.duel .body-inputs .port-panel:after{width:3px;height:24px;top:-26px;right:20px}.duel .body-inputs .port-panel:last-child:after{left:20px}.duel .body-inputs .port-title{margin-bottom:5px}.duel .body-inputs .port-title h3:after{font-size:8px}.enemy-plan{padding:10px;margin:8px 0}.enemy-own-ports{gap:7px}.enemy-bank{padding:6px;gap:5px;min-width:0;align-items:flex-start}.enemy-bank>.bank-label>.face-symbol{width:17px;height:17px}.bank-dice{gap:3px}.enemy-bank strong{font-size:17px}.enemy-chip{width:25px;height:25px}.enemy-chip.modifier{width:22px;height:22px}.enemy-summary{font-size:9px}.enemy-face-list{gap:7px}.enemy-face-row{padding:7px}.duel .forecast{font-size:14px;gap:15px}}
@media(max-width:360px){.duel .body-inputs .port-panel{width:116px}.duel .port-hole{width:46px}.duel .port-hole.mod{width:37px}.duel .port-wire{width:8px}}
@media(prefers-reduced-motion:reduce){.duel *{animation:none!important;transition:none!important}}
.duel .body-inputs{width:min(100%,760px);left:50%;right:auto;transform:translateX(-50%)}.duel[data-phase=ready] .enemy-die .cube-face{background:#f7efd8;color:#b83422}.duel[data-phase=ready] .enemy-die .cube-face.defense{color:#006b64}.duel[data-phase=ready] .enemy-die .cube-face .face-symbol{display:block;visibility:visible}.duel[data-phase=ready] .enemy-die .side-0:after{content:none}
