/* B01 has one order, one primary action and a fixed, readable workshop view. */
.b01{--b01-ink:#152c37;--b01-muted:#b8cdd4;--b01-gold:#efc278;--b01-mint:#b9e8cd}
.b01::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#152e3d38,transparent 24%,transparent 67%,#10233165);z-index:1}
.b01 .hud-top{top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));max-width:none;gap:14px;z-index:3}
.b01-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.b01-title{text-align:center;text-shadow:0 2px 8px #13293880}
.b01-title>span{display:block;font-size:10px;letter-spacing:.12em;color:#e3edf0}
.b01-title h1{margin:3px 0 0;font-size:20px;line-height:1.25;letter-spacing:.04em;font-weight:650}
.game-stage.b01 .b01-utility{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:48px;min-height:48px;padding:5px 7px;color:#eff5f5;background:#193441d9;border:1px solid #ddebf030;border-radius:14px;box-shadow:0 3px 12px #10212d18;font-size:10px;font-weight:500}
.b01-utility .art{width:18px;height:18px}
.b01-goal{justify-self:center;display:flex;gap:18px;align-items:center;width:min(100%,330px);padding:11px 16px;border:1px solid #e5eef144;border-radius:19px;background:linear-gradient(115deg,#1c3441f2,#203c49dc);box-shadow:0 5px 22px #10232b28;color:#f8f6ef}
.b01-goal b{display:block;font-size:13px;font-weight:600}
.b01-goal small{display:block;color:#b7ccd4;font-size:10px;line-height:1.4;margin-top:3px;font-weight:450}
.b01-goal>strong{font-size:24px;font-weight:600;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.b01-goal>strong small{display:inline;font-size:12px}
.b01-slots{display:flex;align-items:center;gap:8px}
.b01-slot{display:grid;place-items:center;width:37px;height:37px;border:1px dashed #bed3da66;border-radius:10px;background:#0c243126;position:relative}
.b01-slot>.cargo{width:21px;height:21px;background:transparent;border:3px solid #efc278b3;box-shadow:inset 0 0 0 2px #1b313f}
.b01-slot.filled{background:#b9e8cd18;border-color:#b9e8cd88;border-style:solid}
.b01-slot.filled>.cargo{background:#eec174;border-color:#f3dba1}
.b01-slot>.art{position:absolute;width:14px;height:14px;right:-5px;bottom:-3px;color:#c1f5d9;background:#1d4b41;border-radius:50%}
.b01-goal-icon{display:grid;place-items:center;width:35px;height:35px;background:#b6e4cc21;border-radius:50%;color:#c2edd7;flex:none}
.b01-goal-icon>.art{width:23px;height:23px}
.b01-order-done{margin-left:auto;display:flex;align-items:center;gap:5px;color:#c5e8d8;font-size:13px;white-space:nowrap}
.b01-order-done .art{width:20px;height:20px}
.b01 .hud-bottom{bottom:max(14px,env(safe-area-inset-bottom));width:min(calc(100% - 32px),430px);display:flex;flex-direction:column;gap:12px;z-index:3}
.b01-hint{margin:0;text-align:center;line-height:1.5;font-size:13px;font-weight:550;color:#f4f7f5;text-shadow:0 1px 6px #10212d,0 0 18px #10212dbb;min-height:20px}
.b01-hint.is-error{color:#ffe0a8}
.b01-tray{display:flex;width:100%;gap:20px;justify-content:center;align-items:center;pointer-events:none}
.b01-tray button{pointer-events:auto}
.b01-ticket-wrap{flex:0 1 158px;min-width:112px}
.game-stage.b01 .b01-ticket{display:block;width:100%;min-height:88px;border:1px solid #fff4d8;border-bottom:4px solid #bba576;border-radius:13px;padding:11px 13px;background:linear-gradient(145deg,#fff9e9,#ede4d0);color:#3b4545;box-shadow:0 8px 22px #0b202e45;touch-action:none;cursor:grab;transition:transform .15s,border-color .15s}
.game-stage.b01 .b01-ticket:active{cursor:grabbing}
.game-stage.b01 .b01-ticket[aria-pressed="true"]{outline:2px solid #f1cc85;outline-offset:4px;transform:translateY(-3px)}
.game-stage.b01 .b01-ticket.queued{background:linear-gradient(145deg,#e4f0e3,#cfded0);border-color:#ecf5e4;border-bottom-color:#849b87}
.b01-ticket-top{display:flex;align-items:center;gap:5px;white-space:nowrap}
.b01-ticket-top .art{width:16px;height:16px;color:#63746c}
.b01-ticket-top b{font-size:11px;font-weight:650}
.b01-ticket-top>span{margin-left:auto;font-size:11px;font-weight:650;color:#6a766c}
.b01-ticket-goods{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:10px}
.b01-ticket-goods>.cargo{width:27px;height:27px;border:5px solid #bd8d44;background:#fff6df;box-shadow:inset 0 0 0 2px #efcf8e,0 1px 1px #72512433}
.b01-grip{font-size:24px;line-height:1;color:#8d947e;margin-left:auto}
.b01-start-wrap{flex:0 1 190px;display:grid;justify-items:center;gap:0;min-width:132px}
.game-stage.b01 .b01-start{width:100%;min-height:61px;border:1px solid #ffdc9c;border-bottom:4px solid #a8793d;background:linear-gradient(125deg,#f0cb86,#dba960);border-radius:16px;color:#28383a;box-shadow:0 6px 20px #10212d40;display:flex;justify-content:center;align-items:center;gap:10px;font-size:17px;font-weight:700;padding:12px 17px;transition:opacity .15s,transform .15s}
.b01-start>.art{width:21px;height:21px}
.b01-start>.art:last-child{width:18px;height:18px;margin-left:auto}
.b01-start>span{margin-right:auto}
.game-stage.b01 .b01-start:disabled{opacity:1;color:#c3d0cf;border-color:#a5bdb33b;border-bottom-color:#334b4e;background:#29434dde;box-shadow:none}
.game-stage.b01 .b01-start:active:not(:disabled){transform:translateY(2px)}
.game-stage.b01 .b01-recall{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:100px;padding:6px 9px;border:0;background:none;color:#d2e2e5;font-size:11px;text-shadow:0 1px 4px #142632}
.b01-recall .art{width:15px;height:15px}
.b01 .save-status{color:#d5e3e5;text-shadow:0 1px 4px #10212d;font-size:9px;align-self:center}
.b01 .scene-controls{display:none!important}
.game-stage.b01 .scene-marker.b01-machine{padding:8px 10px;display:flex;align-items:center;gap:8px;min-height:54px;min-width:105px;border-radius:14px;border:1px solid #e3ecf042;background:#18303ee8;box-shadow:0 4px 15px #10202f40;white-space:nowrap;color:#f5f6ef}
.b01-line-letter{display:grid;place-items:center;width:26px;height:28px;border-radius:7px;border:1px solid #dee8df30;background:#e4eedb0b;font-size:18px!important;font-weight:700!important;color:#f3e3bc!important;flex:none}
.b01-machine-copy{display:block;text-align:left}
.b01-machine-copy b{display:block;font-size:11px;font-weight:600;line-height:1.4;color:#f0f5f1}
.b01-machine-copy small{display:flex;align-items:center;gap:5px;font-size:9px;line-height:1.5;color:#c4d3d5}
.b01-machine-copy .cargo{width:9px;height:9px;border-width:2px}
.b01-machine>.art{width:16px;height:16px;color:#efc277}
.game-stage.b01 .b01-available{border-color:#b7e8d475}
.b01-available .b01-line-letter{background:#7bbba31a;border-color:#a8ddbd66;color:#c3f0d0!important}
.game-stage.b01 .b01-stopped{border-color:#edb09457}
.b01-stopped .b01-line-letter{background:#d28c6418;color:#efd0ae!important}
.b01.choosing-target .scene-marker,.b01.dragging .b01-machine{box-shadow:0 0 0 2px #d2eee740,0 4px 15px #10202f40}
.game-stage.b01 .b01-machine.hovered{background:#264c4a;border-color:#c0edcb;box-shadow:0 0 0 3px #c0edcb77}
.game-stage.b01 .b01-stopped.hovered{background:#543c38;border-color:#f5bb90;box-shadow:0 0 0 3px #f5bb9055}
.b01-queued-goods{display:flex!important;gap:3px}
.b01-queued-goods>.cargo{width:11px;height:11px;border-width:2px}
.game-stage.b01 .b01-queued{background:#254b43f2;border-color:#b8e8c3}
.game-stage.b01 .b01-planned{border-style:dashed}
.b01-crew{display:flex;align-items:center;justify-content:center;gap:7px;color:#dce9e2;font-size:10px;text-shadow:0 1px 4px #10212d}
.b01-crew>.art{width:18px;height:18px;color:#e8c98c}
.b01-crew>b{font-weight:500;border-left:1px solid #b6cfca66;padding-left:8px}
.b01-recovery{width:100%;padding:16px;border-radius:18px;background:#192f3ef5;border:1px solid #e4bf7c88;box-shadow:0 8px 32px #10212d40;pointer-events:auto}
.b01-recovery-heading{display:flex;align-items:center;gap:10px;color:#f3d7a0}
.b01-recovery-heading>.art{width:28px;height:28px;flex:none}
.b01-recovery h2{font-size:16px;margin:0 0 4px;line-height:1.4;color:#fff4de}
.b01-recovery-heading p{font-size:12px;margin:0;color:#e8cda5}
.b01-pending-tasks{display:flex;gap:8px;margin:12px 0}
.b01-pending-task{position:relative;flex:1;min-width:0;padding:10px 9px 0;border:1px dashed #e7bc7e88;border-radius:12px;background:#493c301f;display:grid;grid-template-columns:23px 1fr;align-items:center;gap:5px}
.b01-pending-task.is-needed{border-color:#b8dcd28a}
.b01-task-icon>.art{width:21px;height:21px;color:#eec88b}
.b01-pending-task b{font-size:12px;font-weight:600;color:#f3eee2}
.b01-pending-task small{display:flex;align-items:center;gap:3px;font-size:10px;margin-top:5px;color:#c7d5d9}
.b01-pending-task small>.art{width:12px;height:12px;flex:none}
.game-stage.b01 .b01-pending-task button{grid-column:1/-1;min-height:44px;width:100%;border:0;border-top:1px solid #b1c6ce22;border-radius:0;background:none;color:#efd8b8;padding:7px;font-size:11px}
.b01-recovery-reason{font-size:12px;line-height:1.5;margin:8px 0 12px;color:#e4ece5}
.game-stage.b01 .b01-recover{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border:1px solid #f5d491;border-bottom:3px solid #a57a44;border-radius:12px;background:linear-gradient(125deg,#f0cb86,#dba960);color:#263a3d;font-size:13px;font-weight:650;padding:10px}
.b01-recover>.art{width:18px;height:18px;flex:none}
.b01-no-charge{display:block;text-align:center;font-size:10px;color:#abc2cb;line-height:1.5;margin-top:9px}
.b01-recovery>.b01-recall,.b01-undo-adjustment{justify-self:center;align-self:center;margin:0 auto}
.game-stage.b01 .b01-machine:disabled{opacity:1;cursor:default}
.game-stage.b01 .truck-marker{padding:6px 9px;font-size:10px;border-radius:11px;min-height:34px}
.b01-truck-count{color:#e5cf9f!important;font-size:10px!important;font-variant-numeric:tabular-nums}
.b01-checking .b01-start-wrap{flex:0 1 250px}
.b01-success{display:flex;gap:12px;align-items:center;justify-content:center;padding:12px 18px;border:1px solid #c2ead348;border-radius:18px;background:#193e37eb;box-shadow:0 5px 20px #10232b33}
.b01-success-mark{display:grid;place-items:center;color:#c3edce;flex:none}
.b01-success-mark .art{width:36px;height:36px}
.b01-success h2{font-size:21px;margin:0 0 4px}
.b01-success p{font-size:11px;line-height:1.5;color:#c9ded4;margin:0}
.b01-finish{max-width:330px;gap:18px}
.b01-finish .b01-start{flex:1}
.b01 .workshop-view:not(.rendered) .b01-machine{top:47%}
.b01 .workshop-view:not(.rendered) .b01-machine{width:calc(50% - 20px);max-width:144px;min-width:0}
.b01 .workshop-view:not(.rendered) [data-drop="A"]{left:25%;top:calc(var(--b01-field-center,50%) - 35px)}
.b01 .workshop-view:not(.rendered) [data-drop="B"]{left:25%;top:calc(var(--b01-field-center,50%) + 35px)}
.b01 .workshop-view:not(.rendered) .truck-marker{left:75%;top:var(--b01-field-center,50%);width:max-content;height:auto;padding:0;transform:translate(-50%,-50%);display:inline-flex;min-height:34px}
.b01-recovering .workshop-view:not(.rendered) [data-drop="A"]{top:calc(var(--b01-field-center) - 18px)}
.b01-recovering .workshop-view:not(.rendered) [data-drop="B"]{left:75%;top:calc(var(--b01-field-center) - 18px)}
.b01-recovering .workshop-view:not(.rendered) .truck-marker{top:calc(var(--b01-field-center) + 34px)}
.b01 .workshop-view:not(.rendered)[data-sidebar="true"] [data-drop="A"]{left:calc(var(--b01-field-width)/2);top:calc(var(--b01-field-center) - 35px)}
.b01 .workshop-view:not(.rendered)[data-sidebar="true"] [data-drop="B"]{left:calc(var(--b01-field-width)/2);top:calc(var(--b01-field-center) + 35px)}
.b01 .workshop-view:not(.rendered)[data-sidebar="true"] .truck-marker{left:calc(var(--b01-field-width)*.75);top:calc(var(--b01-field-center) + 85px)}
.b01-help figure{margin:15px 0;position:relative;overflow:hidden;border-radius:13px}
.b01-help figure img{display:block;width:100%;max-height:210px;object-fit:cover;object-position:center 58%}
.b01-help figcaption{position:absolute;bottom:8px;left:8px;right:8px;display:flex;gap:6px;justify-content:space-between}
.b01-help figcaption span{padding:4px 7px;border-radius:8px;background:#18303ee8;color:#f3f1e8;font-size:10px}
.b01-help-steps{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:18px 0;color:#edcd95}
.b01-help-steps>div{display:grid;justify-items:center;gap:7px}
.b01-help-steps b{font-size:12px;font-weight:550;color:#f1e9d4}
.b01-help-steps .art{width:27px;height:27px}
.b01-help-cargo{display:flex;gap:8px;height:27px;align-items:center}
.b01-help-cargo .cargo{width:19px;height:19px;border-width:3px}
.b01-help details{font-size:11px;margin:16px 0;color:#b7cdd3}
.b01-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:7px;text-decoration:underline;text-underline-offset:4px}
.b01-help details p{font-size:11px}
.b01-help>.primary{margin:6px 0 12px;min-height:48px;background:linear-gradient(125deg,#f0cb86,#dba960);color:#28383a;border-color:#ffdc9c}
@media(min-width:900px){
 .b01 .hud-top{left:32px;right:32px;top:22px;gap:12px}
 .b01-header{justify-content:center;gap:24px}
 .b01-title{min-width:160px}
 .b01-goal{padding:9px 16px}
 .b01 .hud-bottom{bottom:22px;width:420px}
}
@media(max-width:350px){
 .b01 .hud-top{left:12px;right:12px;top:max(10px,env(safe-area-inset-top));gap:10px}
 .b01-title h1{font-size:18px}
 .b01-goal{padding:9px 13px;gap:13px}
 .b01-slot{width:32px;height:32px}
 .b01 .hud-bottom{width:calc(100% - 24px);gap:8px;bottom:max(10px,env(safe-area-inset-bottom))}
 .b01-tray{gap:14px}
 .game-stage.b01 .b01-ticket{padding:9px 11px;min-height:82px}
 .game-stage.b01 .b01-start{font-size:16px;min-height:57px;padding:10px 12px;gap:7px}
 .game-stage.b01 .scene-marker.b01-machine{min-width:98px;padding:7px 8px;gap:6px}
 .b01-hint{font-size:12px}
 .b01-recovery{padding:12px}
 .b01-recovery h2{font-size:14px}
 .b01-pending-task{padding:8px 7px 0;grid-template-columns:19px 1fr;gap:3px}
 .b01-pending-task b{font-size:11px}
 .b01-task-icon>.art{width:18px;height:18px}
}
@media(max-height:480px) and (min-width:500px){
 .b01 .hud-top{left:12px;right:12px;top:10px;display:flex;justify-content:space-between;align-items:start;gap:18px}
 .b01-header{gap:12px;flex:0 1 270px}
 .b01-title h1{font-size:16px}
 .b01-goal{width:260px;padding:8px 11px;margin-right:6px;gap:12px}
 .b01 .hud-bottom{width:315px;left:auto;right:14px;transform:none;bottom:10px;gap:6px}
 .b01-tray{gap:12px}
 .game-stage.b01 .b01-ticket{min-height:67px;padding:8px 10px}
 .b01-ticket-goods{padding-top:6px;gap:8px}
 .b01-ticket-goods>.cargo{width:22px;height:22px;border-width:4px}
 .game-stage.b01 .b01-start{min-height:53px;font-size:15px;padding:10px 12px;gap:6px}
 .b01-hint{font-size:11px}
 .b01 .save-status{display:none}
 .b01 .qa-banner{position:absolute;left:0;top:62px}
 .b01-success{padding:8px 12px}
 .b01-success h2{font-size:18px}
 .b01-recall{min-height:44px!important}
 .b01-recovering .hud-bottom{width:350px;max-height:calc(100% - 84px);overflow:auto;border-radius:18px;overscroll-behavior:contain}
 .b01-recovery{padding:12px}
 .b01-recovery h2{font-size:14px}
 .b01-recovery .b01-pending-tasks{margin:8px 0}
 .b01-recovery .b01-no-charge{margin-top:6px}
}
@media(max-height:480px) and (min-width:650px) and (max-width:720px){
 .game-stage.b01-recovering .b01-machine{min-width:100px;max-width:118px;padding:7px;gap:6px}
 .b01-recovering .b01-line-letter{width:22px;font-size:16px!important}
 .b01-recovering .b01-machine>.art{display:none}
 .b01-recovering .b01-machine-copy small{font-size:8px;gap:3px}
}
