#bobaService{--cream:#fff2df;--pink:#ffcdaf;--green:#c3dfa7;position:fixed;inset:0;box-sizing:border-box;width:min(1250px,100vw);height:min(860px,100dvh);max-width:100vw;max-height:100dvh;padding:0;margin:auto;border:1px solid #665366;border-radius:18px;overflow:hidden;background:#312537;color:var(--cream);box-shadow:0 22px 100px #0d0819bd;font:15px var(--body,system-ui,sans-serif)}
#bobaService[open]{display:flex;flex-direction:column}#bobaService::backdrop{background:#140e1de8}#bobaService *{box-sizing:border-box}#bobaService [hidden]{display:none!important}#bobaService button{font:inherit;color:inherit;cursor:pointer}#bobaService button:disabled{cursor:default}#bobaService button:focus-visible,#bobaService .bw-view:focus-visible{outline:3px solid #95dce4;outline-offset:-3px}
.bs-head,.bs-head-actions,.bs-brand{display:flex;align-items:center;justify-content:space-between;gap:12px}.bs-head{position:relative;z-index:3;flex-shrink:0;padding:8px 18px;background:#2d2333;border-bottom:1px solid #84677b}.bs-brand{justify-content:flex-start;gap:9px}.bs-brand>span{display:grid;place-items:center;width:38px;height:38px;border:1px solid #937587;border-radius:50%;font:32px/1 Georgia;color:#ffd59b}.bs-brand small,.bw-rail h2{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:bold}.bs-brand h1{margin:0;font:700 24px/1 Georgia,serif}.bs-stats{display:grid;text-align:right;color:var(--green);line-height:1.15}.bs-stats span{font-size:11px;color:#e7d2d3}
#bobaService .bs-pause,#bobaService .bs-exit,#bobaService .bw-use,#bobaService .bs-paused button{min-height:39px;border:1px solid #e5ba8a;border-radius:30px;background:#f6c896;color:#3a272d;padding:7px 15px;font-weight:800}#bobaService .bs-exit{border-color:#866b7c;background:transparent;color:var(--cream)}.bs-work{position:relative;flex:1;min-height:0;isolation:isolate;background:#342e40;overflow:hidden}
.bw-view{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab;background:#3a3043;perspective-origin:50% 50%;-webkit-user-select:none;user-select:none}.bw-view:active{cursor:grabbing}.bw-camera{position:absolute;top:50%;left:50%;width:0;height:0;transform-style:preserve-3d;pointer-events:none}.bw-plane{position:absolute;top:0;left:0;backface-visibility:hidden;transform-origin:center;pointer-events:none;user-select:none}
.bw-floor{background-color:#d0aa96;background-image:repeating-conic-gradient(#c09c8a 0 25%,transparent 0 50%),linear-gradient(#fff5,transparent);background-size:91px 91px,100% 100%;border:7px solid #825f59}
.bw-ceiling{background:repeating-linear-gradient(90deg,#543e4b 0 8px,#8b6b65 9px 15px,#b79585 16px 167px);border:10px solid #5e4350}
.bw-wall{background:repeating-linear-gradient(90deg,transparent 0 76px,#9a77772b 77px 79px),linear-gradient(0deg,#775561 0 8%,#ad8780 8% 26%,#8a6269 27% 29%,#eccbb4 30% 95%,#a17873 95%);border:9px solid #86636a}
.bw-backwall{background:repeating-linear-gradient(90deg,transparent 0 70px,#a78b7c66 71px 73px),repeating-linear-gradient(0deg,transparent 0 31px,#a78b7c66 31px 33px),#e5cdb5}
.bw-sign,.bw-frontscript{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;text-align:center}.bw-sign{background:#456258;color:#ffebc8;border:3px solid #c8ac82;border-radius:12px;padding:6px 25px;font:700 20px Georgia;letter-spacing:.13em}
.bw-window{position:absolute;left:7%;right:7%;top:9%;height:63%;border:12px solid #88656c;border-radius:58px 58px 8px 8px;background:radial-gradient(3px 3px at 15% 23%,#fff4c7 80%,transparent),radial-gradient(3px 3px at 37% 61%,#ffddbc 80%,transparent),radial-gradient(3px 3px at 85% 32%,#ffeabf 80%,transparent),radial-gradient(3px 3px at 58% 21%,#ffddbc 80%,transparent),linear-gradient(#3e415e,#766385 84%,#a17b87);overflow:hidden;box-shadow:0 5px 0 #bb9286}
.bw-moon{position:absolute;width:42px;height:42px;right:11%;top:13%;border-radius:50%;box-shadow:-9px 4px 0 #ffe6a7;transform:rotate(-16deg)}.bw-skyline{position:absolute;inset:52% 0 0;background:repeating-linear-gradient(90deg,transparent 0 24px,#423c52 25px 32px),repeating-linear-gradient(0deg,transparent 0 14px,#494154 15px 23px),#b59492;clip-path:polygon(0 29%,9% 29%,9% 8%,18% 8%,18% 47%,26% 47%,26% 20%,39% 20%,39% 42%,48% 42%,48% 2%,63% 2%,63% 34%,75% 34%,75% 14%,85% 14%,85% 47%,94% 47%,94% 22%,100% 22%,100% 100%,0 100%)}
.bw-panes{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 23.8%,#765869 24% 25%)}.bw-frontscript{top:8%;padding:4px 22px;border-radius:18px;background:#543f51;color:#ffdea7;font:italic bold 31px Georgia;letter-spacing:.02em;box-shadow:0 3px 0 #b08e80}
.bw-counter.bw-box-front,.bw-counter.bw-box-side{background:repeating-linear-gradient(90deg,#b08271 0 5px,#c39a83 6px 12px,#be9480 14px 37px),#ba927a;border-top:10px solid #835b53;border-bottom:11px solid #785650}.bw-counter.bw-box-side{filter:brightness(.94)}.bw-counter.bw-box-top{background:repeating-linear-gradient(90deg,transparent 0 135px,#dab69b 136px 138px),#f0cfaa;border:3px solid #9c7162}
.bw-lantern{background:linear-gradient(90deg,transparent 47%,#514050 47% 53%,transparent 53%);height:100%}.bw-lantern i{position:absolute;bottom:5%;left:1%;width:98%;height:40%;border-radius:14px 14px 26px 26px;border:3px solid #a77565;border-top:6px solid #79535b;background:repeating-linear-gradient(0deg,transparent 0 10px,#d18b742b 11px 12px),radial-gradient(#ffe6a8,#edb17f);box-shadow:0 3px 18px #ffe1a148}
.bw-plant b{position:absolute;bottom:0;left:20%;width:60%;height:40%;background:linear-gradient(90deg,#af7777,#d39c89);border-radius:6px 6px 20px 20px}.bw-plant i{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 29%,#759575 0 24%,transparent 25%),radial-gradient(ellipse at 27% 47%,#597e6b 0 22%,transparent 23%),radial-gradient(ellipse at 72% 48%,#91a778 0 20%,transparent 21%)}
.bw-prop{text-align:center}.bw-cat-face{position:absolute;left:-8%;bottom:3%;width:116%;height:90%;filter:drop-shadow(0 4px 1px #5a3d5036)}.bw-cat-face svg{width:100%;height:100%}.bw-bubble{position:absolute;top:2%;right:8%;min-width:35px;padding:2px 8px;border:2px solid #9e7581;border-radius:13px 13px 13px 3px;background:#ffedcb;color:#6b4c59;font:800 24px/1 Georgia}.bw-name{position:absolute;bottom:0;left:50%;transform:translateX(-50%);padding:3px 9px;border:2px solid #a07c68;border-radius:4px 4px 8px 8px;background:#ffdeb0;color:#684739;white-space:nowrap;font:750 14px Georgia;box-shadow:0 3px 1px #53354430}
.bw-equipment{position:absolute;inset:4% 15% 10%;border:3px solid #966e6a;border-radius:12px;background:linear-gradient(110deg,#e4bda3,#eddac1 30%,#caa996 80%);box-shadow:inset -8px 0 #9f7e7633,0 5px 0 #8e6960}.bw-eq-tea .bw-eq-a{position:absolute;inset:7% 13% 35%;border:4px solid #8c716e;border-radius:7px;background:linear-gradient(112deg,transparent 0 18%,#ffffff55 19% 24%,transparent 25%),linear-gradient(0deg,var(--brew) 82%,#f7e7d2 83%)}.bw-eq-tea .bw-eq-b{position:absolute;left:18%;right:18%;bottom:0;height:27%;background:#72585a;border-radius:5px 5px 0 0}.bw-eq-tea .bw-eq-c{position:absolute;left:44%;top:68%;height:14%;width:12%;background:#b89b8e;border:2px solid #826965;border-radius:3px}.bw-running .bw-eq-tea .bw-eq-d{position:absolute;left:48%;top:80%;bottom:0;width:5%;background:var(--brew)}
.bw-eq-rack{background:linear-gradient(0deg,#a98476 5%,#e4bba0 6% 13%,#785f61 14% 44%,#d6ad92 45% 53%,#84686b 54% 88%,#e4bba0 89%);border-radius:8px}.bw-eq-rack i{position:absolute;width:24%;height:26%;left:13%;bottom:18%;background:repeating-linear-gradient(0deg,transparent 0 6px,#ad9e97 6px 8px),#ede1d0;clip-path:polygon(0 0,100% 0,85% 100%,15% 100%)}.bw-eq-rack .bw-eq-b{left:57%;height:30%}.bw-eq-rack .bw-eq-c,.bw-eq-rack .bw-eq-d{bottom:56%}.bw-eq-rack .bw-eq-d{left:57%}
.bw-eq-top{inset:28% 11% 9%;border-radius:50% 50% 37% 37%;border-top:10px solid #dfa39b;background:linear-gradient(0deg,#d99490 0 57%,transparent 58%),repeating-radial-gradient(circle at 28% 18%,#543c45 0 4px,#836366 5px 8px)}.bw-eq-top i:first-child{position:absolute;right:7%;top:-46%;width:10%;height:85%;background:#b78e6f;transform:rotate(25deg);border-radius:8px}
.bw-eq-lid{border:12px solid #ab8fa0;border-right:0;border-bottom:10px solid #d5b7b6;background:transparent;border-radius:12px 12px 4px 4px;box-shadow:none}.bw-eq-lid .bw-eq-a{position:absolute;top:2%;left:9%;width:78%;height:18%;background:#cfaba9;border:3px solid #8f6f7c;border-radius:5px}.bw-eq-lid .bw-eq-b{position:absolute;bottom:0;left:22%;width:55%;height:39%;border:3px solid #a17f7d;background:#d5b89c;border-radius:3px 3px 11px 11px}
.bw-eq-dessert{border-radius:25px 25px 6px 6px;background:#b18a82;border:6px solid #d2ae95}.bw-eq-dessert .bw-eq-a{position:absolute;inset:23% 10% 14%;border-radius:13px;background:radial-gradient(ellipse at 27% 75%,#f4b3c3 0 16%,transparent 17%),radial-gradient(ellipse at 72% 76%,#a1be87 0 17%,transparent 18%),#664f5a}.bw-eq-dessert .bw-eq-b{position:absolute;top:6%;right:16%;width:12%;height:10%;background:#f1d29e;border-radius:50%}
.bw-rail,.bw-map,.bw-reticle,.bw-hand,.bw-controls,.bw-legend{position:absolute;z-index:1}.bw-rail{top:12px;left:12px;max-width:min(67%,520px);padding:6px 8px 8px;border-radius:10px;background:#352a39dc;color:var(--cream);box-shadow:0 2px 12px #261b2855}.bw-rail h2{margin:0 0 4px;color:#f4d7ae;line-height:1}.bw-rail-empty{font-size:12px;padding:1px 3px}.bs-tickets{display:flex;gap:4px}.bs-ticket{display:grid;align-content:start;gap:1px;text-align:left;max-width:150px;min-width:0;border:2px solid #bc9d81;background:#f7e8cf;border-radius:3px 3px 7px 7px;padding:4px 6px}#bobaService .bs-ticket{color:#4a343b}.bs-ticket[aria-pressed=true]{border-color:#e69e6e;background:#fff3d8}.bs-ticket>span{display:flex;align-items:center;justify-content:space-between;gap:4px}.bs-ticket>span,.bs-ticket small{font-size:10px;line-height:1.1}.bs-ticket>span i{font-style:normal}.bs-ticket strong{font-size:12px;line-height:1.1}.bs-meter{height:3px;background:#cfbca7;overflow:hidden}.bs-meter i{display:block;height:100%;background:#709369;transform-origin:left}
.bw-map{right:13px;top:13px;width:90px;height:64px;border:3px double #e0bd98;border-radius:9px;background:linear-gradient(90deg,#795d68 0 14%,transparent 14% 86%,#795d68 86%),linear-gradient(0deg,#795d68 0 18%,#473c4bd9 18% 82%,#795d68 82%);pointer-events:none}.bw-map i{position:absolute;display:block}.bw-player{width:10px;height:12px;clip-path:polygon(50% 0,98% 100%,50% 77%,2% 100%);background:#fbe5ae}.bw-dest{width:8px;height:8px;border:2px solid #ffdcaf;background:#f49ca2;border-radius:50%;transform:translate(-50%,-50%)}
.bw-reticle{left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#ffead2;box-shadow:0 0 0 1px #6a515a;transform:translate(-50%,-50%);pointer-events:none}
.bw-hand{right:7%;bottom:20%;width:105px;height:117px;pointer-events:none;filter:drop-shadow(3px 5px 4px #39243d65);text-align:center}.bw-held-art{position:absolute;top:5%;left:20%;width:60%;height:77%;border:4px solid #ebd5bd;border-radius:7px 7px 18px 18px;background:linear-gradient(112deg,transparent 0 15%,#fff5 16% 21%,transparent 22%),linear-gradient(0deg,var(--brew) 80%,#e6d6c37a 80%);transform:rotate(-8deg)}.bw-topped .bw-held-art i:first-child{position:absolute;bottom:7%;left:13%;width:7px;height:7px;background:#59404a;border-radius:50%;box-shadow:10px 2px #59404a,20px -1px #59404a,30px 3px #59404a,15px -6px #59404a}.bw-sealed .bw-held-art i:last-child{position:absolute;inset:-4px -5px auto;height:9px;border-radius:8px;background:#f2bc96}.bw-h-dessert .bw-held-art{height:53%;top:35%;border-color:#cca291;border-radius:12px 12px 6px 6px;background:linear-gradient(0deg,#e8c49e 0 47%,transparent 48%),radial-gradient(ellipse at 35% 48%,#ec9fb8 0 26%,transparent 27%),#f5dfbd}.bw-hand b{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;background:#3e3042e8;border-radius:10px;padding:2px 7px}
.bw-controls{left:50%;bottom:43px;transform:translateX(-50%);max-width:90%;display:flex;align-items:center;gap:12px;padding:9px 12px;background:#302637ee;border:1px solid #937580;border-radius:15px;box-shadow:0 3px 14px #25182855}.bw-guide{display:grid;min-width:185px}.bw-step{font-size:15px;line-height:1.15}.bw-way,.bs-msg{font-size:12px;color:#f1cfaa}.bs-msg{color:#c4e3ae}.bw-job{margin-top:3px;height:4px;background:#826d77;border-radius:4px;overflow:hidden}.bw-job i{display:block;height:100%;background:#c2dfab}#bobaService .bw-use{white-space:nowrap;background:#bedba9;border-color:#d5e8bc;color:#354734}#bobaService .bw-use:disabled{color:#d1c1c2;background:#514450;border-color:#77606e}
.bw-legend{bottom:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;background:#362a3cdd;border-radius:20px;padding:4px 10px;color:#efdbcd;font-size:11px;white-space:nowrap}.bw-turns,.bw-mobile-keys,.bw-joystick{display:none}.bs-paused{position:absolute;inset:57px 0 0;background:#241d2ef2;display:grid;place-items:center;z-index:2;text-align:center}.bs-paused span{color:#ffcf95;font:40px Georgia}.bs-paused h2{margin:5px;font:700 30px Georgia}.bs-paused p{margin:5px 0 14px}.bs-save-warning:not(:empty){position:absolute;top:60px;left:0;right:0;z-index:4;background:#ffe3bd;color:#3d2c39;padding:8px;text-align:center}#menu #playBtn{animation:none}
@media(pointer:coarse),(max-width:740px){.bw-desktop-keys{display:none}.bw-turns,.bw-mobile-keys{display:inline-flex}.bw-turns{gap:4px}.bw-turns button{border:1px solid #886e7d;border-radius:12px;color:#ffe5c8;background:#5a4657;min-width:32px;height:27px;padding:0}.bw-controls{left:10px;right:10px;bottom:max(45px,env(safe-area-inset-bottom));transform:none;max-width:none;gap:8px;padding:8px}.bw-guide{flex:1;min-width:0}.bw-joystick{display:block;position:relative;flex:none;width:65px;height:65px;border-radius:50%;border:2px solid #b68f8f;background:radial-gradient(circle,#6d5969,#46394c);touch-action:none}.bw-joystick i{position:absolute;left:50%;top:50%;width:30px;height:30px;border-radius:50%;border:1px solid #e4bbb0;background:#c29b93;transform:translate(calc(-50% + var(--jx,0px)),calc(-50% + var(--jy,0px)))}.bw-step{font-size:13px}.bw-way,.bs-msg{font-size:11px}#bobaService .bw-use{max-width:31%;white-space:normal;font-size:13px;padding:8px 10px;min-height:44px}.bw-rail{left:6px;top:6px;max-width:calc(100% - 78px)}.bw-map{width:60px;height:46px;right:7px;top:7px}.bs-ticket{padding:3px 4px}.bs-ticket strong{font-size:10px}.bs-ticket small,.bs-ticket>span{font-size:9px}.bw-hand{bottom:24%;right:5%;transform:scale(.8);transform-origin:right bottom}.bs-head{padding:6px 10px}.bs-brand>span{width:30px;height:30px;font-size:24px}.bs-brand h1{font-size:19px}.bs-brand small{font-size:8px}.bs-head-actions{gap:6px}#bobaService .bs-pause,#bobaService .bs-exit{font-size:13px;padding:7px 10px}.bs-paused{inset:52px 0 0}}
@media(max-width:740px){#bobaService{border-radius:0;border:0;width:100%;height:100dvh}.bs-head{padding-top:max(6px,env(safe-area-inset-top))}}
@media(max-height:460px){.bw-controls{bottom:7px;left:8px;right:auto;max-width:77%;}.bw-legend{left:auto;right:5px;transform:none;bottom:8px}.bw-mobile-keys{display:none}.bw-joystick{width:45px;height:45px}.bw-rail{padding:4px}.bw-hand{bottom:15%;width:83px;height:85px}}
@media(prefers-reduced-motion:reduce){#bobaService *{animation:none!important;transition:none!important}}
#bobaService button {touch-action:manipulation}
#bobaService[open] {width:100vw;height:100dvh;border:0;border-radius:0}
#bobaService .bs-brand h1,#bobaService .bw-crewboard h2,#bobaService .bw-receipt h2 {font-family:var(--display,"M PLUS Rounded 1c",system-ui);letter-spacing:-.035em}
#bobaService .bs-brand h1 {font-size:20px}
#bobaService .bw-crew-button {color:#c8ebcf;border-color:#82788a}
.bw-shift-label {display:flex;align-items:baseline;justify-content:space-between;gap:10px;line-height:1.3}
.bw-shift-count {font-size:12px;color:#ffe3ba}.bw-line-count,.bw-on-floor {font-size:11px;color:#c7e8c5}.bs-tickets:not(:empty){margin-top:4px}
.bw-on-floor:not(:empty){display:block;margin-top:3px}.bw-on-floor:empty,.bw-line-count:empty{display:none}
.bw-receipt,.bw-crewboard {position:absolute;z-index:4;inset:54px 0 0;display:grid;place-items:center;background:#251e2cdb;color:#fff1dc;padding:12px;overflow:auto}
.bw-crewboard>section,.bw-receipt>section {background:#352b3e;border:1px solid #917487;border-radius:19px;box-shadow:0 12px 50px #1c142854;padding:18px;width:min(100%,570px);max-height:100%;overflow:auto}
.bw-crewboard header,.bw-crew-list article {display:flex;align-items:center;justify-content:space-between;gap:12px}
.bw-crewboard header {margin-bottom:6px}.bw-crewboard h2,.bw-receipt h2 {margin:0 0 4px;font-size:22px}.bw-crew-wallet {color:#c5e8c5;font-size:13px}
.bw-crew-list article {padding:10px 0;border-top:1px solid #6c5568}.bw-crew-list article>div:first-child{display:grid;gap:2px}
.bw-crew-list article b {font-size:14px}.bw-crew-list article small {font-size:12px;color:#e3cad1}
.bw-crew-actions {display:flex;align-items:center;gap:5px;flex-shrink:0}
#bobaService .bw-crewboard button,#bobaService .bw-receipt button {font-size:12px;font-weight:750;padding:7px 10px;min-height:35px;border:1px solid #d0e6ca;border-radius:16px;background:#b8dec2;color:#33463c}
#bobaService .bw-crewboard button:disabled {background:#59485a;color:#ddcfd6;border-color:#705c70}
#bobaService .bw-crewboard [data-service=assign],#bobaService .bw-crewboard [data-service=crewclose] {background:#463749;color:#f7e3d1;border-color:#8c7183}
.bw-receipt>section {width:min(100%,330px);text-align:center;background:#f6e5c8;color:#4d3541;border:4px double #bd987e}
.bw-receipt small {font:700 13px var(--body,system-ui);color:#845d65}.bw-receipt h2 {margin:6px 0}.bw-receipt p {margin:0 0 12px;font-size:14px}
#bobaService .bs-crew-button:focus-visible,#bobaService .bw-receipt button:focus-visible {outline-color:#48a4a6}
@media(max-width:600px){#bobaService .bs-brand h1{font-size:15px}.bs-brand{gap:4px}.bs-head-actions{gap:4px}#bobaService .bs-head-actions button{padding:6px 8px;min-height:36px;font-size:12px}.bw-shift-count{font-size:11px}.bw-crewboard,.bw-receipt{inset:48px 0 0}.bw-crewboard>section{padding:10px}.bw-crew-list article{align-items:flex-start;gap:4px}.bw-crew-actions{flex-direction:column;align-items:stretch}#bobaService .bw-crewboard button{min-height:31px;padding:5px 8px}}
/* Use the original café HUD palette and the player's existing portrait. */
#bobaService[open] {background:#151426;color:#efe9f7;font-family:var(--body,"M PLUS Rounded 1c",system-ui)}
#bobaService .bs-head {background:#151426;border:0;padding:8px 16px;min-height:55px}
#bobaService .bs-brand,#bobaService .bs-head-actions {min-width:0;gap:8px}
#bobaService .bs-brand h1 {margin:0;color:#efe9f7;font:700 clamp(15px,1.6vw,19px)/1.2 var(--display,system-ui);letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bobaService .bw-avatar {width:29px;height:29px;flex:none;display:block;overflow:hidden;border-radius:50%;background:#312b44}
#bobaService .bw-avatar svg {width:100%;height:100%}
#bobaService .bw-home {width:36px;min-width:36px;padding:0;display:grid;place-items:center}
#bobaService .bw-home svg,#bobaService .bw-currency svg {width:17px;height:17px;flex:none}
#bobaService .bw-currency,#bobaService .bw-levelchip,#bobaService .bs-exit,#bobaService .bs-pause {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border-radius:999px;font-weight:800}
#bobaService .bw-currency,#bobaService .bw-levelchip {background:#26233f;padding:0 12px;font-variant-numeric:tabular-nums}
#bobaService .bw-currency {color:#f5bc7c;font-size:16px}#bobaService .bw-levelchip {font-size:13px;color:#efe9f7;white-space:nowrap}
#bobaService .bw-xp {height:7px;width:52px;border-radius:10px;overflow:hidden;background:#49435e}
#bobaService .bw-xp i {display:block;height:100%;background:#9de6c6;border-radius:inherit}
#bobaService .bs-exit,#bobaService .bs-pause {background:#1d1b33;border:1px solid #47415f;color:#efe9f7;font-size:13px;padding:5px 12px}
#bobaService .bw-home {padding:0}#bobaService .bs-pause {background:#2a2744;color:#f6eedd}
#bobaService .bs-work {margin:0 16px 9px;border-radius:16px}
#bobaService .bw-rail {background:#201d34df;border:1px solid #5b516b;border-radius:12px;padding:5px 9px}
#bobaService .bw-shift-count {color:#f6eedd}#bobaService .bw-line-count,#bobaService .bw-on-floor {color:#afdcc7}
#bobaService .bs-ticket {background:#f6e9d6;border-color:#ad9b87;color:#342c3c}#bobaService .bs-ticket[aria-pressed=true] {background:#fcf1de;border-color:#eab47e}
#bobaService .bs-ticket strong {font-family:var(--hand,"Gaegu",var(--body,system-ui));font-size:15px}
#bobaService .bw-controls,#bobaService .bw-legend {background:#242038e8;border-color:#5c526d}
#bobaService .bw-controls {padding:6px 8px;border-radius:999px}#bobaService .bw-guide {padding:0 4px}
#bobaService .bw-use:not(:disabled),#bobaService .bs-paused button,#bobaService .bw-crewboard [data-service=draw]:not(:disabled),#bobaService .bw-receipt button {background:#9de6c6;color:#272337;border-color:#9de6c6}
#bobaService .bw-crewboard>section {background:#211f37;border-color:#655c77}#bobaService .bw-crew-list article {border-color:#49415b}
@media(max-width:600px){
 #bobaService .bs-head {min-height:46px;padding:5px 7px}#bobaService .bs-brand,#bobaService .bs-head-actions {gap:4px}
 #bobaService .bs-brand h1 {font-size:13px}#bobaService .bw-avatar {width:23px;height:23px}
 #bobaService .bw-currency,#bobaService .bw-levelchip {min-height:30px;padding:0 5px;gap:2px;font-size:11px}
 #bobaService .bw-currency svg {width:13px;height:13px}#bobaService .bw-xp {width:18px;height:4px}
 #bobaService .bs-exit,#bobaService .bs-pause {min-height:32px;padding:4px 7px;font-size:11px}
 #bobaService .bw-home {width:28px;min-width:28px;padding:0}
 #bobaService .bs-work {margin:0 5px 4px;border-radius:10px}
 #bobaService .bs-ticket strong {font-size:13px}
 #bobaService .bw-controls {border-radius:16px}
}
@media(max-width:360px){#bobaService .bw-xp {display:none}#bobaService .bw-avatar {width:19px;height:19px}#bobaService .bs-brand h1{max-width:73px}}

/* A paper service ticket hangs in front of the café until the player opens the round. */
.bw-briefing {
  position:absolute; inset:55px 16px 9px; z-index:3; display:grid; align-items:center;
  justify-items:start; overflow:auto; padding:clamp(14px,4vw,58px);
  border-radius:16px; background:linear-gradient(90deg,#191726e8 0%,#221e2dbe 34%,#261e2b30 75%);
}
#bobaService:has(.bw-briefing:not([hidden])) :is(.bw-rail,.bw-map,.bw-reticle,.bw-controls,.bw-legend,.bw-hand) {visibility:hidden}
.bw-round-card {
  position:relative; width:min(100%,390px); min-width:0; padding:25px 30px 29px;
  border-radius:5px 5px 8px 8px; border-top:6px solid #548071; background:#fcf1db; color:#322d37;
  box-shadow:0 12px 38px #130f1d55; font:500 14px/1.45 var(--body,system-ui,sans-serif);
}
.bw-round-card::after {
  content:""; position:absolute; top:100%; left:0; right:0; height:6px;
  background:linear-gradient(135deg,#fcf1db 4px,transparent 0) 0 0/8px 8px repeat-x;
}
.bw-round-kicker {margin:0 0 4px; font-size:12px; font-weight:800; letter-spacing:.09em; color:#466455}
.bw-round-title {font:700 clamp(35px,4vw,51px)/1.12 var(--display,system-ui); letter-spacing:-.045em; margin:0 0 5px; overflow-wrap:anywhere}
.bw-round-goal {margin:0; color:#643c30; font:700 21px/1.3 var(--body,system-ui)}
.bw-round-saved {margin:8px 0 0; color:#55505a; font-size:13px}
.bw-round-route {margin:17px 0 8px; padding:10px 0; border-block:1px dashed #bfae8b; list-style:none}
.bw-round-route li {display:grid; grid-template-columns:72px 1fr; align-items:baseline; gap:8px; padding:4px 0}
.bw-round-route b {color:#3f6659; font-weight:800}
.bw-round-route span {color:#464149}
.bw-round-route kbd {font:750 .9em var(--body,system-ui);color:#385f51}
.bw-round-route .bw-round-touch {display:none}
@media(pointer:coarse) {
  .bw-round-route .bw-round-desktop {display:none}.bw-round-route .bw-round-touch {display:inline}
}
.bw-round-tip {margin:6px 0 17px; font-size:12px; color:#655244}
.bw-round-actions {display:flex; flex-wrap:wrap; align-items:center; gap:8px}
#bobaService .bw-round-actions button {min-height:44px; border:1px solid #35624f; border-radius:10px; padding:7px 17px; background:#315e4e; color:#fff9eb; font-weight:800}
#bobaService .bw-round-actions [data-service=crew] {background:transparent; color:#384f46; border-color:#a9ad93}
#bobaService .bw-round-actions button:hover {filter:brightness(1.08)}
#bobaService .bw-round-actions button:focus-visible {outline-color:#b8642c; outline-offset:2px}
.bw-round-stars {display:block; color:#925221; font:700 32px/1.15 Georgia,serif; letter-spacing:4px; margin:5px 0}
.bw-round-ratings {border-block:1px dashed #bba98b; list-style:none; padding:7px 0; margin:10px 0 13px; text-align:left}
.bw-round-ratings li {display:flex; align-items:baseline; gap:8px; padding:2px 0; font-size:13px; color:#63585a}
.bw-round-ratings li::before {content:"○"; width:14px; flex:none; color:#716166}
.bw-round-ratings [data-earned=true]::before {content:"✓"; color:#386851; font-weight:800}
#bobaService .bs-ticket[data-mood=restless] .bs-meter i {background:#a96928}
#bobaService .bs-ticket[data-mood=angry] .bs-meter i {background:#ae4639}
#bobaService .bs-ticket[data-mood=angry] {border-color:#ad5648}
@media(max-width:600px) {
  .bw-briefing {inset:46px 5px 4px; justify-items:center; align-items:end; border-radius:10px; padding:12px 12px max(20px,env(safe-area-inset-bottom)); background:linear-gradient(0deg,#211c2ce0,#201c2b30 95%)}
  .bw-round-card {padding:16px 19px 19px}
  .bw-round-route {margin-top:12px}
  .bw-round-title {font-size:36px}
}
@media(max-height:510px) {
  .bw-briefing {align-items:safe center; padding:9px 14px 12px}
  .bw-round-card {padding:10px 16px 14px}
  .bw-round-title {font-size:28px}.bw-round-goal{font-size:17px}
  .bw-round-route {margin:6px 0; padding:3px 0}.bw-round-route li{padding:1px 0}
  .bw-round-tip {margin:5px 0 8px}
}
@media(min-width:560px) and (max-height:425px) {
  .bw-round-card {width:min(100%,600px);display:grid;grid-template-columns:4fr 5fr;column-gap:18px;
    grid-template-areas:"brand route" "title route" "goal route" "saved tip" "actions actions"}
  .bw-round-kicker {grid-area:brand;align-self:end}
  .bw-round-title {grid-area:title}.bw-round-goal{grid-area:goal}.bw-round-saved{grid-area:saved}
  .bw-round-route {grid-area:route; margin:0; border-block:0; border-left:1px dashed #bfae8b; padding:0 0 0 14px; font-size:12px}
  .bw-round-route li {grid-template-columns:51px 1fr;gap:4px}
  .bw-round-tip {grid-area:tip;font-size:11px}
  .bw-round-actions {grid-area:actions;margin-top:6px}
}

.bw-recipe-panel {
  position:absolute; inset:0; z-index:5; display:grid; place-items:center; overflow:auto;
  padding:14px; background:#17162993; color:#302b34;
}
.bw-recipe-card {
  width:min(100%,450px); max-height:100%; display:flex; flex-direction:column; gap:9px;
  overflow:auto; padding:20px; border:1px solid #c1a17c; border-top:6px solid #477364;
  border-radius:16px; background:#fcf1db; box-shadow:0 10px 35px #14122177;
}
.bw-recipe-card :is(h2,p) {margin:0}
.bw-recipe-card h2 {font:700 clamp(23px,4vw,29px)/1.1 var(--display,system-ui); letter-spacing:-.035em}
.bw-recipe-card header {display:flex; align-items:start; justify-content:space-between; gap:10px}
.bw-recipe-ticket {font-size:14px; color:#664831; font-weight:700}
.bw-recipe-options {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; min-height:0; overflow-y:auto; padding:3px}
#bobaService .bw-recipe-options button {
  display:flex;align-items:center;gap:9px;text-align:left;min-height:49px;padding:7px 9px;
  background:#fff8e9;border:1px solid #bfae93;border-radius:9px;color:#343137;font-weight:750;line-height:1.2;
}
#bobaService .bw-recipe-options button:hover {border-color:#355f50;box-shadow:inset 0 0 0 1px #355f50}
.bw-recipe-options kbd {
  display:grid;place-items:center;flex:none;min-width:25px;height:25px;padding-inline:3px;
  border:1px solid #a09c88;border-bottom-width:2px;border-radius:5px;color:#4d5449;background:#fffaeb;font:bold 13px/1 system-ui;
}
#bobaService .bw-recipe-close {min-height:36px;padding:5px 12px;align-self:start;border:1px solid #a8a28c;border-radius:8px;background:transparent;color:#4c4b43;font-weight:700}
.bw-recipe-pages {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#625042}
#bobaService .bw-recipe-pages button {min-height:34px;padding:5px 10px;border:1px solid #a8a28c;border-radius:8px;background:#f5e5c9;color:#394d43;font-weight:750}
#bobaService .bw-recipe-pages button:disabled {opacity:.5}
#bobaService .bw-recipe-card button:focus-visible {outline:3px solid #a35931;outline-offset:0}
.bw-machine-timers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 5px;font-variant-numeric:tabular-nums}
.bw-machine-timers:not(:empty) {margin-top:5px}
.bw-machine-timers:has(> :only-child) {grid-template-columns:minmax(0,1fr)}
.bw-machine-timer {
  min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:1px 5px;
  padding:3px 5px;border-radius:5px;background:#343048;color:#fff3dd;line-height:1.15;
}
.bw-machine-timer strong {font-size:11px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bw-machine-timer small {font-size:10px;color:#ffe3ac;white-space:nowrap}
.bw-machine-timer meter {grid-column:1/-1;width:100%;height:4px;appearance:none;border:0;background:#665c6b;border-radius:2px}
.bw-machine-timer meter::-webkit-meter-bar {height:4px;border:0;background:#665c6b;border-radius:2px}
.bw-machine-timer meter::-webkit-meter-optimum-value {background:#f0c584;border-radius:2px}
.bw-machine-timer meter::-moz-meter-bar {background:#f0c584;border-radius:2px}
.bw-machine-timer[data-ready=true] {background:#315b4f}
.bw-machine-timer[data-ready=true] small {font-weight:bold;color:#d0f6d8}
.bw-machine-timer[data-ready=true] meter::-webkit-meter-optimum-value {background:#ace2bf}
.bw-machine-timer[data-machine=milk] {border-inline-start:3px solid #f3e4c9}
.bw-machine-timer[data-machine=ice] {border-inline-start:3px solid #9bdae6}
.bw-machine-timer[data-machine=shake] {border-inline-start:3px solid #d8acd7}
.bw-action-pulse {font-size:11px;color:#bdeaca;font-variant-numeric:tabular-nums}
.bw-hiring {padding:10px 0 7px;color:#f4eada}.bw-hiring p {font-size:13px;line-height:1.4;margin:0 0 8px}
.bw-rarity-odds {display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px}.bw-rarity-odds [data-tier=Rare]{color:#98d5e3}.bw-rarity-odds [data-tier=Epic]{color:#e2b3ee}.bw-rarity-odds [data-tier=Legendary]{color:#ffd08e}
.bw-pool{font-size:12px;margin:9px 0 13px}.bw-pool p{margin:8px 0}.bw-pool summary,.bw-staff-job summary{cursor:pointer}
.bw-draw-notice{display:flex;align-items:center;gap:8px;min-height:5px}.bw-draw-result{font-size:13px;color:#ffdf98}.bw-draw-picture svg{display:block;width:38px;height:38px}
.bw-staff-job {border-top:1px solid #53475f;padding:8px 2px}.bw-staff-job summary{font-size:14px}.bw-staff-job summary span{margin-left:8px;color:#ead8df}.bw-staff-job summary small{display:block;padding-left:16px;color:#b9dcc7;font-size:12px}.bw-staff-job article{margin:5px 10px 0}.bw-staff-job>small{display:block;margin:7px 0 0 15px;color:#ddd2d8}
@media(max-width:600px) {
  .bw-recipe-card {padding:14px;gap:7px}.bw-recipe-options{gap:5px}
  #bobaService .bw-recipe-options button {min-height:44px;padding:6px;gap:6px;font-size:13px}
  .bw-machine-timer{padding:3px 4px;gap:1px 3px}.bw-machine-timer strong,.bw-machine-timer small{font-size:10px}
}
@media(max-height:470px) {
  .bw-recipe-panel {padding:6px}.bw-recipe-card{padding:10px 14px;gap:4px}
  .bw-recipe-card h2{font-size:20px}#bobaService .bw-recipe-options button{min-height:35px}
}

/* Only open orders occupy the upper-left rail. A ticket keeps its place while selected. */
#bobaService .bw-rail {
  width:min(280px,39vw);max-width:none;max-height:calc(100% - 100px);overflow-y:auto;
  scrollbar-width:thin;overscroll-behavior:contain;padding:0;border:0;background:none;box-shadow:none;
}
.bw-rail:has(.bs-tickets:empty){display:none}
.bw-rail .bs-tickets {display:grid;gap:7px;margin:0}
#bobaService .bs-ticket {
  width:100%;max-width:none;padding:8px 12px;gap:3px;border-width:0 0 0 4px;
  border-radius:3px 9px 9px 3px;box-shadow:0 2px 8px #27222d40;
}
#bobaService .bs-ticket strong {font:750 20px/1.15 var(--body,system-ui);letter-spacing:-.02em}
#bobaService .bs-ticket>span {font-size:12px;line-height:1.15;color:#614c48}
#bobaService .bs-ticket small {font-size:14px;line-height:1.27}
#bobaService .bs-ticket .bs-meter {margin-top:2px;border-radius:3px}
#bobaService .bw-shift-label {flex-direction:column;align-items:center;gap:0;white-space:nowrap}
.bw-process {position:absolute;top:85px;right:13px;max-width:36%;z-index:1;pointer-events:none;text-align:right}
.bw-process .bw-machine-timers {grid-template-columns:1fr;margin:0}
.bw-on-floor:not(:empty) {background:#242038e8;padding:3px 5px;border-radius:5px}
.bw-legend:has(.bw-turns) {display:none}
#bobaService .bw-controls {bottom:15px}
#bobaService .bw-guide {min-width:0}
.bw-round-actions {margin-top:17px}
.bw-recipe-card h2:focus {outline:none}
@media(pointer:coarse),(max-width:740px){
  .bw-legend:has(.bw-turns) {display:flex}
  #bobaService .bw-controls {bottom:max(45px,env(safe-area-inset-bottom))}
  #bobaService .bw-rail {width:min(215px,53vw)}
  #bobaService .bs-ticket {padding:6px 8px;gap:2px}
  #bobaService .bs-ticket strong {font-size:16px}
  #bobaService .bs-ticket small {font-size:12px}
  #bobaService .bs-ticket>span {font-size:11px}
  .bw-process {right:7px;top:58px}
}
@media(max-width:600px){
  #bobaService .bs-head {flex-wrap:wrap;row-gap:2px}
  #bobaService .bw-shift-label {order:1;flex:0 0 100%;flex-direction:row;justify-content:space-between}
  #bobaService .bw-shift-count,#bobaService .bw-line-count {font-size:11px}
}
@media(max-height:460px){
  #bobaService .bw-controls {bottom:7px}
  #bobaService .bw-rail {width:215px;max-height:calc(100% - 70px)}
  .bw-round-card {display:block}
}
