.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}.circuit{max-width:1100px}.circuit .brandbar{padding:18px 26px}.circuit .brand{font-size:26px}.circuit .brand small{display:none}.circuit .routebar{padding:10px 26px}.circuit .gameboard{padding:22px 26px;grid-template-columns:1fr 1fr;grid-template-areas:'battle sockets' 'rig rig' 'hand action';gap:20px 28px}.circuit h2{font-size:32px}.circuit .arena{height:210px}.circuit .enemy{height:215px;width:320px}.circuit .location{font-size:9px}.circuit .status-sticker{display:none}.circuit .sockets{align-self:center}.circuit .enemy-ports{grid-template-columns:1fr 1fr;gap:12px}.circuit .port-panel{padding:14px 12px;background:#e1dfc8}.circuit .port-title h3{font-size:22px;display:flex;gap:7px;align-items:center}.circuit .port-title h3 span{font-size:12px}.circuit .port-title{margin-bottom:14px}.circuit .port-output{font-size:22px}.circuit .port-plugs{flex-wrap:wrap}.circuit .port-hole{width:66px;height:66px;border-radius:9px;touch-action:none;position:relative}.circuit .port-hole.mod{width:51px;height:51px}.circuit .port-wire{width:15px}.circuit .port-hole .face-symbol{width:29px;height:29px}.circuit .port-hole .face-symbol b{font-size:11px}.circuit .port-hole.occupied{cursor:grab;box-shadow:0 3px 0 #8c967c,inset 0 1px 0 #fff9;transform:rotate(-2deg)}.circuit .port-hole.eligible{outline-style:solid;box-shadow:0 0 18px #d9ed9180}.plug-led{position:absolute;bottom:5px;right:5px;width:5px;height:5px;border-radius:50%;background:#36a872;box-shadow:0 0 5px #58de7b}.module-health{width:100%;font:10px ui-monospace,monospace;margin-top:12px;color:var(--muted)}.circuit .intent-bubble{gap:8px;padding:5px 10px;font-size:10px}.circuit .intent-bubble:before{content:'ϟ';font-size:22px}.circuit .rig{background:#19473c;border:5px solid #40664b;border-radius:12px;padding:20px 30px 23px;box-shadow:inset 0 0 0 1px #759366,0 5px 0 #183b33;position:relative;color:#efe7cb;isolation:isolate}.circuit .rig:before{content:'';position:absolute;inset:8px;border:1px solid #acb37b30;border-radius:3px;background:radial-gradient(#a5b67e35 .7px,transparent .7px);background-size:12px 12px;z-index:-1}.board-screw{position:absolute;border:1px solid #92a87c;width:13px;height:13px;border-radius:50%;font:12px/10px monospace;color:#bdc69b;text-align:center}.board-screw.a{left:7px;top:7px}.board-screw.b{right:7px;bottom:7px}.attack-lane{display:flex;align-items:center;max-width:650px;margin:0 auto 18px;gap:0;font:700 21px ui-monospace,monospace}.attack-source{border:2px solid #e99068;background:#613d30;color:#ffd5b0;padding:7px 12px;border-radius:5px}.shield-readout{color:#b7eacb;padding:7px 12px;border:1px solid #73977e;border-radius:6px;background:#254d40}.damage-readout{color:#ffbf94;min-width:45px}.incoming-trace,.residual-trace{height:5px;flex:1;background:#a67e50;position:relative;margin:0 8px}.incoming-trace:after,.residual-trace:after{content:'';position:absolute;right:0;top:-4px;border-left:7px solid #c49a68;border-top:6px solid transparent;border-bottom:6px solid transparent}.incoming-trace i,.residual-trace i{position:absolute;width:12px;height:12px;border-radius:50%;background:#ffb46f;top:-4px;opacity:0;box-shadow:0 0 12px #ff9d43}.board-components{display:flex;align-items:center;max-width:650px;margin:auto}.circuit .rig .port-panel{background:#244d3e;border-color:#789168;box-shadow:none;min-width:190px}.circuit .rig .port-title{color:#dddfb7;margin-bottom:8px}.circuit .rig .port-title h3 span{display:none}.circuit .rig .port-output{color:#c9e7b8}.circuit .rig .port-hole{border-color:#a4ad82}.circuit .rig .port-wire{border-color:#af8d56}.copper-traces{flex:1;position:relative;height:76px;display:flex;flex-direction:column;gap:12px;justify-content:center}.copper-traces i{height:3px;background:#a4824c;position:relative}.copper-traces i:before,.copper-traces i:after{content:'';position:absolute;width:7px;height:7px;top:-2px;border:1px solid #c4a16a;border-radius:50%;background:#1e4a3b}.copper-traces i:after{right:0}.shield-active .copper-traces i{background:#d9ed91;box-shadow:0 0 6px #b7ff8090}.integrity-chip{width:105px;height:96px;background:#142e29;border:3px solid #8a986f;box-shadow:0 0 0 5px #20392f,0 0 0 7px #82936a;position:relative;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;color:#d8e4b1;padding:12px}.integrity-chip:before,.integrity-chip:after{content:'';position:absolute;top:9px;bottom:9px;width:10px;background:repeating-linear-gradient(#b7ad7b 0 4px,transparent 4px 10px)}.integrity-chip:before{left:-14px}.integrity-chip:after{right:-14px}.chip-value{font:800 30px 'Avenir Next',sans-serif}.chip-health{height:4px;background:#d9ed91;max-width:100%}.shield-active .integrity-chip{outline:2px solid #a8edbd;outline-offset:13px}.no-leak .residual-trace{opacity:.25}.no-leak .damage-readout{color:#b7eacb}.circuit .hand{padding:12px 20px 23px;overflow:visible;min-width:0;grid-area:hand}.circuit .hand .section-line{margin-bottom:20px}.tray-mark{font-size:24px;color:#bdcba3}.circuit .dice-row{gap:18px;justify-content:space-around;padding:0 6px}.circuit .dice-unit{width:60px;height:64px;perspective:500px}.circuit .die.physical-die{--size:56px;width:var(--size);height:var(--size);padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;transform:none!important;position:relative;touch-action:none;cursor:grab;transition:none;display:block}.cube{width:var(--size);height:var(--size);display:block;position:absolute;inset:0;transform-style:preserve-3d;transform:translateZ(calc(var(--size) / -2)) var(--finish);pointer-events:none}.cube-face{position:absolute;inset:0;background:#f7efd8;border:1px solid #c5c1a5;border-radius:8px;display:flex;align-items:center;justify-content:center;box-shadow:inset 2px 2px 0 #fff9,inset -2px -3px 0 #b5b09850;backface-visibility:hidden;color:#b83422}.cube-face.defense{color:#006b64}.cube-face .face-symbol{width:30px;height:30px}.cube-face .face-symbol b{right:-7px;font-size:11px}.side-0{transform:translateZ(calc(var(--size) / 2))}.side-1{transform:rotateY(90deg) translateZ(calc(var(--size) / 2))}.side-2{transform:rotateY(180deg) translateZ(calc(var(--size) / 2))}.side-3{transform:rotateY(-90deg) translateZ(calc(var(--size) / 2))}.side-4{transform:rotateX(90deg) translateZ(calc(var(--size) / 2))}.side-5{transform:rotateX(-90deg) translateZ(calc(var(--size) / 2))}.physical-die.selected{outline:3px solid #d9ed91;outline-offset:7px;translate:0 -5px}.empty-die{display:flex;border:1px dashed #80917a;border-radius:9px;align-items:center;justify-content:center;width:100%;height:100%;color:#879b80;opacity:.4}.empty-die .face-symbol{width:26px;height:26px}.empty-die .face-symbol b{background:#183b33;font-size:10px;right:-6px}.circuit[data-phase=ready] .cube-face{background:#d3dac0;color:transparent}.circuit[data-phase=ready] .cube-face .face-symbol{visibility:hidden}.circuit[data-phase=ready] .side-0:after{content:'?';color:#66795d;font:700 25px ui-monospace,monospace}.circuit[data-phase=rolling] .dice-unit:not(.docked) .cube{animation:tumble 1000ms cubic-bezier(.2,.6,.3,1) both;animation-delay:var(--delay)}@keyframes tumble{0%{transform:translate3d(-15px,-14px,-70px) rotateX(-220deg) rotateY(130deg) rotateZ(-30deg)}25%{transform:translate3d(8px,-45px,-20px) rotateX(110deg) rotateY(290deg) rotateZ(15deg)}55%{transform:translate3d(-4px,3px,-28px) rotateX(310deg) rotateY(490deg) rotateZ(-9deg)}76%{transform:translate3d(1px,-12px,-28px) var(--finish)}90%{transform:translate3d(0,2px,-28px) var(--finish)}100%{transform:translateZ(-28px) var(--finish)}}.circuit .action{padding:0;gap:15px;align-self:center}.circuit .forecast{display:flex;gap:25px;justify-content:center;font:18px ui-monospace,monospace}.circuit .forecast span:first-child{color:var(--orange)}.circuit .forecast span:nth-child(2){color:var(--teal)}.circuit .execute{min-height:48px}.circuit .loadout{margin-bottom:12px}.circuit .footer{padding:5px 26px}.circuit .again{font-size:24px;text-decoration:none;min-width:44px}.circuit .result{margin-top:20px}.drag-ghost{position:fixed;z-index:10000;width:64px;height:64px;pointer-events:none;background:#f7efd8;border:1px solid #beb99b;border-bottom:5px solid #bdb89b;border-radius:10px;box-shadow:0 14px 20px #102b3250;transform:translate(-50%,-50%) rotate(-8deg);display:flex;align-items:center;justify-content:center;color:#b83422}.drag-ghost.defense{color:#006b64}.drag-ghost .face-symbol{width:34px;height:34px}.dragging{user-select:none}.circuit .port-hole.drop-hover{outline:4px solid #d9ed91;outline-offset:4px;transform:scale(1.08)}.enemy-firing .incoming-trace i{animation:signal-travel .45s linear forwards}.enemy-firing:not(.no-leak) .residual-trace i{animation:signal-travel .4s .45s linear forwards}.enemy-firing.shield-active .shield-readout{animation:shield-hit .8s ease-out}.enemy-firing:not(.no-leak) .integrity-chip{animation:chip-hit .3s .65s ease-out}.sending .enemy{animation:impact .4s ease-out}.sending .port-panel.powered{box-shadow:0 0 18px #ea996c80}@keyframes signal-travel{0%{left:0;opacity:1}95%{opacity:1}100%{left:100%;opacity:0}}@keyframes shield-hit{40%{box-shadow:0 0 20px #caffb7;scale:1.08}}@keyframes chip-hit{40%{background:#9b4e35;translate:3px}80%{translate:-3px}}
@media(max-width:900px){.circuit .gameboard{grid-template-areas:'battle sockets' 'rig rig' 'hand hand' 'action action'}.circuit .enemy-ports{grid-template-columns:1fr}.circuit .port-plugs{flex-wrap:nowrap}.circuit .port-panel{padding:9px 12px}.circuit .port-title{margin-bottom:7px}.module-health{width:auto;margin:0 0 0 14px}.circuit .arena{height:260px}.circuit .enemy{width:300px;height:245px}.circuit .dice-unit{width:65px}.circuit .action{flex-direction:row;align-items:center}.circuit .execute{width:45%}.circuit .rig .port-panel{padding:14px}.circuit .forecast{gap:18px}.circuit .dice-row{display:flex}}
@media(max-width:580px){.circuit .gameboard{padding:18px 14px;grid-template-columns:1fr;grid-template-areas:'battle' 'sockets' 'rig' 'hand' 'action';gap:17px}.circuit .brandbar{padding:16px}.circuit .brand{font-size:23px}.circuit .routebar{padding:10px 16px}.circuit .route-pick{flex:0}.circuit .route-effect{font-size:9px;width:auto;margin-left:auto}.circuit h2{font-size:30px}.circuit .arena{height:180px}.circuit .enemy{height:185px;width:265px}.circuit .health{margin-top:3px}.circuit .enemy-ports{grid-template-columns:1fr 1fr;gap:9px}.circuit .port-panel{padding:9px}.circuit .port-title h3 span{font-size:10px}.circuit .port-title h3{font-size:17px;gap:3px}.circuit .port-output{font-size:19px}.circuit .port-hole{width:51px;height:54px}.circuit .port-hole.mod{width:42px;height:43px}.circuit .port-wire{width:10px}.circuit .port-hole .face-symbol{width:23px;height:23px}.circuit .port-hole.mod .face-symbol{width:19px;height:19px}.circuit .port-hole .face-symbol b{font-size:9px;right:-6px}.circuit .port-plugs{flex-wrap:wrap}.module-health{width:100%;margin:5px 0 0;font-size:9px}.circuit .rig{padding:15px 13px 20px;border-width:4px}.attack-lane{font-size:16px;margin-bottom:15px}.attack-source{padding:5px 7px}.shield-readout{padding:5px 8px}.damage-readout{min-width:30px}.incoming-trace,.residual-trace{margin:0 6px}.circuit .rig .port-panel{min-width:132px;padding:9px}.integrity-chip{width:70px;height:77px;padding:8px;gap:3px}.chip-value{font-size:23px}.board-components{padding-right:8px}.copper-traces{min-width:25px}.circuit .hand{padding:10px 12px 19px}.circuit .hand .section-line{margin-bottom:17px}.circuit .dice-row{display:flex;gap:10px;padding:0}.circuit .die.physical-die{--size:46px}.circuit .dice-unit{width:46px;height:48px}.cube-face .face-symbol{width:26px;height:26px}.cube-face .face-symbol b{font-size:9px;right:-5px}.circuit .action{flex-direction:column;gap:12px}.circuit .execute{width:100%}.circuit .forecast{font-size:17px;gap:28px}.circuit .loadout{margin:0 14px 12px}.circuit .footer{padding:5px 14px}.circuit .reroll{font-size:13px;min-height:40px}.circuit .rig .port-title h3 span{display:none}.circuit .routebar{gap:7px}.circuit .route-pick{font-size:10px;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){.circuit[data-phase=rolling] .cube{animation:none!important}.drag-ghost{transition:none}.circuit *{scroll-behavior:auto!important}}
.circuit[data-phase=ready] .cube-face .face-symbol{display:none}.circuit .physical-die:focus-visible{outline:3px solid #d9ed91;outline-offset:6px}@media(max-width:580px){.circuit .die.physical-die{--size:clamp(36px,11vw,46px)}.circuit .dice-unit{width:clamp(36px,11vw,46px)}.circuit .dice-row{gap:8px}}
