.deck-builder{width:min(1200px,96vw)!important;max-height:94vh;overflow:hidden!important;padding:20px!important}.deck-builder header{display:flex;gap:16px;align-items:center;border-bottom:1px solid #58757966;padding-bottom:12px}.deck-builder header div{flex:1}.deck-builder h2{margin:4px 0}.deck-builder small{color:#8dd4c6;letter-spacing:.08em}.deck-build-body{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);height:min(650px,73vh);gap:18px}.deck-build-stage{position:relative;min-height:320px;overflow:hidden;border-radius:8px;background:#15343d}.deck-build-stage canvas,.deck-construction-scene canvas{width:100%;height:100%;display:block}.deck-build-labels{position:absolute;inset:0;pointer-events:none}.deck-slot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:1px solid #7ce6d2!important;background:#143e3ddd!important;color:#ccfff0!important;max-width:110px;padding:7px 9px!important;font-size:12px!important;box-shadow:0 2px 9px #0008}.deck-slot.weapon{border-color:#dcb56c!important;color:#ffe6b5!important;background:#4b3c23e8!important}.deck-slot.selected{outline:2px solid #fff;z-index:5}.deck-slot.occupied{background:#35544ee8!important}.deck-build-options{overflow:auto;padding:18px 4px 18px 0}.deck-build-options h3{margin:8px 0}.deck-build-options p{line-height:1.65}.deck-catalog{display:grid;gap:7px;margin:12px 0;max-height:32vh;overflow:auto}.deck-option{text-align:left;display:flex;flex-direction:column;gap:5px;padding:10px!important}.deck-option span{font-size:12px;opacity:.75}.deck-option.selected{border-color:#a8dfc8;background:#345b53}.deck-build-detail{border-top:1px solid #5c777877;padding:12px 0}.deck-builder footer{font-size:12px;opacity:.7;padding-top:10px}.deck-construction-bubble{position:absolute;right:20px;bottom:110px;width:290px;max-width:calc(100% - 24px);background:#102b32f5;border:1px solid #789787;border-radius:12px;padding:12px;color:#e3ebd9;z-index:18;box-shadow:0 8px 30px #0008}.deck-construction-bubble header{display:flex;align-items:center;justify-content:space-between;gap:8px}.deck-construction-bubble button{font-size:12px;padding:5px 9px}.deck-construction-bubble p{font-size:13px;margin:9px 0}.deck-construction-bubble small{opacity:.7}.deck-construction-scene{height:180px;position:relative;overflow:hidden;border-radius:6px;margin:9px 0}.deck-build-progress{height:5px;background:#071a20;border-radius:6px;overflow:hidden}.deck-build-progress i{display:block;height:100%;background:#a5d4a3;width:0}.deck-plan-fallback:before{content:'船首 ↑';position:absolute;inset:5% 12%;border:3px solid #917653;border-radius:48% 48% 22% 22%;background:repeating-linear-gradient(0deg,#73583c 0 3px,#493c30 4px 20px);text-align:center;color:#fff5cc;padding:15px;font-size:13px}.deck-construction-bubble.complete{border-color:#b4d899}.deck-construction-bubble[hidden]{display:none}@media(max-width:700px){.deck-builder{padding:10px!important;overflow:auto!important}.deck-builder header{flex-wrap:wrap;gap:8px}.deck-build-body{grid-template-columns:1fr;height:auto;gap:4px}.deck-build-stage{height:42vh;min-height:280px}.deck-build-options{max-height:38vh;padding:8px 0}.deck-catalog{max-height:20vh}.deck-slot{font-size:10px!important;max-width:85px;padding:5px!important}.deck-construction-bubble{bottom:115px;right:10px;width:250px}.deck-construction-scene{height:130px}}
.deck-build-stage canvas,.deck-construction-scene canvas{position:absolute!important;inset:0;z-index:0;pointer-events:none}.deck-build-labels{z-index:3}.deck-slot{pointer-events:auto!important}
.deck-slot,.deck-slot:hover,.deck-slot:active{transform:translate(-50%,-50%)!important;transition:background .15s,border-color .15s!important}
@media(max-width:700px){.deck-slot{font-size:0!important;width:27px;height:27px;padding:0!important;min-width:0!important}.deck-slot:after{content:attr(data-short-label);font-size:12px}.deck-slot.occupied:after{color:#fff4c4}}
