/* Two physical boards joined only by the exposed duplex bus. */
.bus-study .gameboard{display:flex;flex-direction:column;gap:0;padding:22px 26px;background:#c4ccb5}.bus-study .battle{width:100%;box-shadow:0 6px 0 #8a997d,0 12px 15px #283c2518;z-index:1}.connection-bus{width:82%;max-width:820px;align-self:center;position:relative;padding:32px 18px 34px;isolation:isolate}.connection-bus:before,.connection-bus:after{content:'';position:absolute;top:0;bottom:0;width:54px;background:repeating-linear-gradient(90deg,#60745b 0 3px,#c8ac72 3px 7px,#eee0b2 7px 8px,#60745b 8px 12px);border-left:3px solid #47604d;border-right:3px solid #47604d;z-index:-1;box-shadow:2px 0 5px #233b3820}.connection-bus:before{left:calc(25% - 27px)}.connection-bus:after{right:calc(25% - 27px)}.bus-cap,.bus-tail{position:absolute;left:0;right:0;display:flex;justify-content:space-around;height:19px;pointer-events:none}.bus-cap{top:4px}.bus-tail{bottom:0}.bus-cap span,.bus-tail span{width:74px;background:#26483a;border:2px solid #849b70;border-radius:3px;color:#e4dfb7;font:9px/14px ui-monospace,monospace;text-align:center;box-shadow:0 2px 0 #15372a}.bus-study .player-slots{display:grid;grid-template-columns:1fr 1fr;gap:24px}.bus-study .player-slots .slot{position:relative;grid-area:auto;background:#234f41;border:2px solid #6f8d66;border-bottom:5px solid #234333;padding:10px;border-radius:9px;box-shadow:0 5px 12px #1c342a20;color:#e7e9c9}.bus-study .player-slots .slot:after{content:none}.bus-study .player-slots .slot header{display:flex;align-items:center;flex-wrap:wrap;gap:7px;letter-spacing:1px}.bus-study .player-slots .slot-result{margin-left:auto}.bus-study .player-slots .slot.bus-powered{border-color:#a8bd7e;box-shadow:0 0 0 1px #a1c38850,0 5px 12px #1c342a20}.bus-uplinks{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:9px}.uplink{display:flex;gap:10px;align-items:center;justify-content:center;padding:8px;background:#f0e9d3;border:1px solid #a2956e;border-radius:5px;color:#7d4931;font:10px ui-monospace,monospace;box-shadow:0 2px 0 #a49a75}.uplink.active{border-color:#c6764e}.capacity{display:inline-flex;gap:4px;align-items:center}.capacity i{display:block;width:22px;height:6px;background:#536551;border:1px solid #819077;border-radius:2px}.capacity i.lit{background:#d9ed91;border-color:#e3f9aa;box-shadow:0 0 6px #d9ed9170}.uplink .capacity i{background:#c5bd9e;border-color:#a99b77}.uplink .capacity i.lit{background:#d47749;border-color:#b85c36;box-shadow:0 0 6px #e6a06280}.defense-capacity{display:flex;gap:7px;align-items:center;font:9px ui-monospace,monospace;flex-basis:100%;padding-bottom:3px;color:#c5d7ae}.defense-capacity .capacity{flex:1}.defense-capacity .capacity i{flex:1;max-width:58px}.bus-study .player-console{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'rig rig' 'hand action';gap:18px 24px;padding:20px 22px 24px;background:#163c32;border:3px solid #617e57;border-bottom:7px solid #294c39;border-radius:15px;box-shadow:inset 0 0 0 1px #9bb17c50,0 12px 20px #273c2f20;position:relative}.bus-study .player-console:before,.bus-study .player-console:after{content:'+';position:absolute;top:7px;color:#a0b181;font:14px monospace}.bus-study .player-console:before{left:9px}.bus-study .player-console:after{right:9px}.bus-study .rig{grid-area:rig;display:grid;grid-template-columns:auto 1fr;grid-template-areas:'core health';gap:20px;padding:4px 0 18px;border:0;border-bottom:1px solid #68855c;background:transparent;box-shadow:none;border-radius:0;align-items:center}.bus-study .rig:before{content:none}.bus-study .player-core{width:70px;min-width:70px;padding:7px;border-radius:7px}.bus-study .player-core svg{width:42px;height:42px}.bus-study .player-health{width:100%;margin:0;align-self:center}.bus-study .hand{margin:0;grid-area:hand;background:#102d26;border:1px solid #50704f;box-shadow:inset 0 4px 9px #041c2160;padding:12px 18px 22px}.bus-study .action{grid-area:action;align-self:center;padding:0;display:flex;justify-content:center;align-items:stretch}.bus-study .execute{width:100%}.bus-study .loadout{margin-top:20px}.bus-study .player-console .forecast{color:#e4e6c5}.bus-study.sending .uplink.active{animation:uplink-pulse .65s ease-out}.bus-study.enemy-firing .connection-bus:before,.bus-study.enemy-firing .connection-bus:after{animation:bus-traffic .9s linear}.bus-study.enemy-firing .bus-powered{animation:bus-block .8s ease-out}@keyframes uplink-pulse{40%{box-shadow:0 -7px 16px #e88c4a;transform:translateY(-2px)}}@keyframes bus-traffic{25%,70%{filter:brightness(1.5)}100%{filter:none}}@keyframes bus-block{40%{box-shadow:0 0 18px #b6f9a3}}
@media(max-width:900px){.bus-study .gameboard{padding:18px}.connection-bus{width:94%;padding-left:10px;padding-right:10px}.bus-study .player-console{grid-template-columns:1fr;grid-template-areas:'rig' 'hand' 'action';padding:18px}.bus-study .action{flex-direction:column}.bus-study .execute{width:100%}.bus-study .player-slots .slot{padding:8px}.bus-study .player-core .player-health{min-width:0}}
@media(max-width:580px){.bus-study .gameboard{padding:14px 9px}.connection-bus{width:100%;padding:30px 0 28px}.bus-study .player-slots,.bus-uplinks{gap:9px}.bus-study .player-slots .slot{padding:7px 4px}.uplink{gap:7px;font-size:9px;padding:7px 5px}.capacity i{width:17px}.bus-study .player-slots .slot header{font-size:9px;gap:4px}.bus-study .player-console{padding:17px 10px 15px;gap:14px;border-width:2px;border-bottom-width:5px;border-radius:11px}.bus-study .rig{grid-template-columns:52px 1fr;grid-template-areas:'core health';gap:12px;padding-bottom:15px}.bus-study .player-core{min-width:0;width:52px;padding:4px}.bus-study .player-core svg{width:32px;height:32px}.bus-study .player-core .you-label{font-size:8px}.bus-study .player-health{gap:9px}.bus-study .player-health .attack-lane{font-size:11px;gap:3px;justify-content:flex-end}.bus-study .lane-arrow{width:7px}.bus-study .rig .attack-source,.bus-study .rig .shield-readout{padding:3px 5px}.bus-study .player-hp-value{font-size:10px}.bus-study .hand{padding:10px 10px 20px}.bus-study .player-console .dice-row{gap:7px}.bus-study .die.physical-die{--size:clamp(34px,10vw,43px)}.bus-study .dice-unit{width:clamp(34px,10vw,43px)}.bus-study .player-slots .slot-line{padding:3px;gap:3px}.bus-study .defense-capacity{font-size:8px;gap:5px}}
@media(prefers-reduced-motion:reduce){.bus-study *{animation:none!important;transition:none!important}}
.bus-study .player-slots .slot:first-child{grid-area:auto;grid-column:1;grid-row:1}.bus-study .player-slots .slot:last-child{grid-area:auto;grid-column:2;grid-row:1}

/* Laptop composition: spend horizontal space on components, keep the cables. */
@media(min-width:1100px){
 body:has(.bus-study) .study-note{max-width:1380px;margin:10px auto 8px;padding:0 16px}
 .bus-study{max-width:1380px;margin:0 auto 10px}
 .bus-study .brandbar{padding:9px 20px}.bus-study .brand{font-size:23px}
 .bus-study .routebar{padding:6px 20px}.bus-study .route-pick{padding:7px 12px}
 .bus-study .gameboard{padding:12px 18px}
 .bus-study .battle{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:'heading components' 'arena components' 'plan components' 'health health' 'details details';gap:5px 22px;padding:12px 16px 8px}
 .bus-study .enemy-heading{grid-area:heading}.bus-study .enemy-name{font-size:25px}
 .bus-study .arena{grid-area:arena;height:174px;min-width:0}
 .bus-study .enemy{width:230px;height:163px;top:-8px}
 .bus-study .enemy-barrier{width:190px;height:143px;top:0}
 .bus-study .intent-bubble{bottom:0;padding:3px 8px;font-size:10px}.bus-study .intent-bubble strong{font-size:18px}
 .bus-study .enemy-slots .slot{width:190px}.bus-study .enemy-slots .slot:after{width:30px}.bus-study .enemy-slots .slot:first-child:after{right:-32px}.bus-study .enemy-slots .slot:last-child:after{left:-32px}
 .bus-study .subsystems{grid-area:components;display:flex;flex-direction:column;justify-content:center;gap:10px;margin:0;max-width:none}
 .bus-study .subsystem{width:100%;grid-template-columns:100px 1fr;gap:3px 10px;padding:7px 10px;border-bottom-width:3px}
 .bus-study .subsystem:before{left:-24px;top:50%;width:22px;height:3px}.bus-study .subsystem:after{left:-5px;top:calc(50% - 4px)}
 .bus-study .component-stage{min-height:63px}.bus-study .component-art{max-width:100px}
 .bus-study .effect-badge{font-size:10px;padding:1px 4px;bottom:-1px}
 .bus-study .component-health{margin-top:3px}.bus-study .component-socket .slot-line{padding:4px;flex-wrap:nowrap}
 .bus-study .component-socket .line-value{width:auto;min-height:0}
 .bus-study .enemy-plan{grid-area:plan;margin:0;padding:3px 8px;gap:10px;grid-template-columns:auto 1fr}
 .bus-study .enemy-roll-tray{min-height:36px;gap:9px}.bus-study .enemy-summary{max-width:none;font-size:9px}
 .bus-study .enemy-plan .enemy-die{--size:28px;width:28px;height:28px}
 .bus-study .battle>.health{grid-area:health;margin:3px 0}
 .bus-study .enemy-loadout{grid-area:details;margin:0}.bus-study .enemy-loadout summary{min-height:18px}
 .bus-study .connection-bus{width:78%;padding:22px 16px 20px}
 .bus-study .bus-cap,.bus-study .bus-tail{height:15px}.bus-study .bus-cap{top:3px}
 .bus-study .bus-cap span,.bus-study .bus-tail span{height:15px;line-height:11px}
 .bus-study .bus-uplinks{margin-bottom:5px}.bus-study .uplink{padding:3px 8px}
 .bus-study .player-slots .slot{padding:6px 8px;border-bottom-width:3px}
 .bus-study .player-slots .slot header{flex-wrap:nowrap;gap:9px}
 .bus-study .defense-capacity{flex-basis:auto;padding:0}.bus-study .defense-capacity .capacity i{width:18px;flex:none}
 .bus-study .player-console{grid-template-columns:minmax(240px,1fr) minmax(330px,1.3fr) 170px;grid-template-areas:'rig hand action';gap:18px;padding:10px 16px;border-bottom-width:4px}
 .bus-study .rig{gap:12px;padding:0;border:0;grid-template-columns:48px 1fr}
 .bus-study .player-core{width:44px;min-width:44px;padding:4px}.bus-study .player-core svg{width:30px;height:30px}
 .bus-study .player-health{gap:8px}.bus-study .player-health .attack-lane{width:100%}
 .bus-study .hand{padding:6px 12px 10px}.bus-study .section-line{margin-bottom:7px}
 .bus-study .dice-row{padding:3px 0;gap:15px;justify-content:center;min-height:54px}
 .bus-study .die.physical-die{--size:44px}.bus-study .dice-unit{width:44px}
 .bus-study .reroll{padding:4px 9px}.bus-study .execute{padding:14px 12px;font-size:17px}
 .bus-study .loadout{margin:0 20px 4px;padding-top:6px}.bus-study .loadout summary{min-height:20px}
 .bus-study .footer{padding:5px 20px}
}
@media(min-width:1100px){
 .bus-study .enemy-heading{align-items:center}.bus-study .enemy-heading h2{margin:0;line-height:1.1}
 .bus-study .arena{height:160px}.bus-study .enemy{width:216px;height:153px}
 .bus-study .player-slots .slot{grid-template-columns:1fr 1fr;gap:5px}.bus-study .player-slots .slot header{grid-column:1/-1}
 .bus-study .player-slots .slot-line{padding:3px;gap:4px}
 .bus-study .player-console .hand{display:flex;align-items:center;gap:16px;padding:9px 12px}
 .bus-study .hand .section-line{display:flex;flex-direction:column;gap:5px;margin:0;flex:none}
 .bus-study .hand .dice-row{flex:1;gap:12px}
 .bus-study .player-console{grid-template-columns:minmax(230px,1fr) minmax(410px,1.3fr) 160px}
 .bus-study .brandbar{padding:5px 20px}.bus-study .routebar{padding:4px 20px}
 .bus-study .footer .sound,.bus-study .footer .again{min-height:26px;padding:3px 8px}
}
