/* 🕹️ .mini9P9＝小遊戲的面板與角標(MINI9 建立時統一掛)。它們是全螢幕 2D 玩法,
   在麵包坊裡開也要看得見;不放行的話點了「連續出爐」只會一片空白(玩家實測回報)。
   用一個 class 而不是逐一列 id:之後新增玩法不必再回來改三個 CSS。 */
body.shopWorld9>:not(#c):not(#shopInterior9):not(#shopService9):not(#avatarStudio9):not(.shopPanel9):not(#bakeryM):not(#storeM):not(#buyM):not(#reward):not(#toastWrap):not(#tip):not(#glLost9):not(.mini9P9):not(script):not(style):not(link){visibility:hidden!important}
#shopInterior9{position:fixed;inset:0;z-index:210;color:#244a46;font-family:var(--font);letter-spacing:0;pointer-events:none}
.shopSurface9{position:absolute;inset:0;outline:none;touch-action:none;pointer-events:auto}
.shopTop9{position:absolute;top:max(16px,env(safe-area-inset-top));left:16px;right:16px;display:flex;align-items:center;gap:12px;pointer-events:none}
.shopTop9 h1{font-size:22px;margin:0;line-height:1.25;overflow-wrap:anywhere}.shopCash9{margin-left:auto;font-size:16px;background:#f7fbf4;padding:10px;border-radius:6px;white-space:nowrap}
#shopInterior9 button{min-height:46px;border:1px solid #8aada3;background:#fff;color:#244a46;border-radius:6px;font:inherit;font-size:15px;letter-spacing:0;padding:10px 18px;cursor:pointer;pointer-events:auto}
#shopInterior9 .shopBack9{width:46px;min-width:46px;padding:0;font-size:25px}
#shopInterior9 button:focus-visible{outline:3px solid #ae5367;outline-offset:3px}
#shopInterior9 .shopTrade9{position:absolute;right:20px;bottom:max(22px,env(safe-area-inset-bottom));background:#37766b;color:#fff;min-width:100px}
.shopExit9{position:absolute;transform:translate(-50%,-50%);font-size:13px;background:#ffffffdc;padding:5px 10px;border-radius:4px}
.shopStations9{position:absolute;left:16px;top:86px;display:flex;gap:6px;flex-wrap:wrap;max-width:calc(100% - 32px)}
#shopInterior9 .shopStations9 button{font-size:13px;padding:8px 10px}
body.shopWorld9 #bakeryM,body.shopWorld9 #storeM{z-index:240}
body.shopWorld9 #buyM,body.shopWorld9 #reward{z-index:260!important}
body.shopWorld9 #tip{z-index:250;bottom:85px;max-width:calc(100% - 32px)}
body.shopWorld9 #toastWrap{z-index:250;pointer-events:none}
@media(max-width:600px){.shopTop9{left:12px;right:12px;gap:9px}.shopTop9 h1{font-size:18px}.shopCash9{font-size:13px;padding:8px}.shopTop9{flex-wrap:wrap}.shopCash9{max-width:calc(100% - 70px)}}
.shopClerk9{position:absolute;left:20px;bottom:70px;max-width:340px;margin:0;padding:10px 14px;border-radius:12px;background:#fff5dfed;color:#493c32;font-size:14px;line-height:1.5;pointer-events:none}
#shopInterior9 .shopSkip9{position:absolute;left:20px;bottom:20px;min-width:44px;padding:4px 16px}
body.shopWorld9 .shopPanel9{z-index:240}body.shopWorld9 #avatarStudio9{visibility:visible!important}
.shopService9{position:fixed;z-index:230;right:16px;top:154px;width:min(370px,calc(100vw - 32px));max-height:calc(100dvh - 180px);overflow:auto;background:#fff5df;color:#493c32;border:3px solid #927250;border-radius:14px;font-family:var(--font);box-sizing:border-box;box-shadow:0 7px 26px #23392f44}
.shopService9 header{position:sticky;top:0;display:flex;align-items:center;gap:8px;padding:10px;background:#f5e2bd;z-index:1}.shopService9 h2{font-size:17px;flex:1;margin:0}.shopServiceBody9{padding:12px}.shopService9 p{font-size:13px;line-height:1.5;margin:8px 0}.shopService9 button,.shopService9 select{min-height:44px;border:1px solid #af9470;border-radius:7px;background:#fffdf5;color:#493c32;font:inherit;font-size:13px;max-width:100%;padding:8px;box-sizing:border-box}.shopService9 button{cursor:pointer}.shopService9 button:disabled{opacity:.55;cursor:default}.shopService9 label{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:13px}.shopService9 label select{flex:1;min-width:0}.shopService9 input[type=range]{flex:1;min-width:0;min-height:44px}.shopService9 button:focus-visible,.shopService9 select:focus-visible{outline:3px solid #498e8e;outline-offset:2px}.shopServiceActions9{display:flex;gap:6px;flex-wrap:wrap}.shopDrivePad9{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.shopDrivePad9 button{touch-action:none;font-size:22px}.shopProduct9{border-top:1px solid #d7c4a3;padding:10px 0}.shopProductIcon9{font-size:32px;display:inline-block;margin-right:10px}.shopServiceOpen9 .shopClerk9,.shopServiceOpen9 .shopTrade9{display:none}
@media(max-width:600px){.shopService9{left:8px;right:8px;top:auto;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-height:43dvh}.shopService9 header{padding:6px 10px}.shopService9 h2{font-size:15px}.shopServiceBody9{padding:8px}.shopClerk9{left:12px;bottom:88px;max-width:calc(100% - 48px)}.shopStations9{top:84px;left:12px;max-width:calc(100% - 24px);gap:4px}#shopInterior9 .shopStations9 button{padding:6px 8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.shopService9 *{scroll-behavior:auto}}
.shopService9{display:flex;flex-direction:column;overflow:hidden}.shopService9 header{flex-shrink:0}.shopServiceBody9{overflow:auto;min-height:0}.shopService9>.shopServiceActions9{flex-shrink:0;padding:8px 12px;border-top:1px solid #d7c4a3;background:#f5e2bd}body.shopServiceOpen9 #toastWrap,body.shopServiceOpen9 #tip{visibility:hidden!important}
.shopVehicleFocus9{outline:3px solid #37766b;outline-offset:2px}
.shopFashionFocus9{background:#e4eddb;border:2px solid #37766b;border-radius:8px;padding:10px;margin:8px 0}
body.shopFeedbackPlaying9 #toastWrap,body.shopFeedbackPlaying9 #tip{visibility:hidden!important}
@media(max-width:600px){.shopService9[data-page=wardrobe]{max-height:64dvh}}
.shopServiceOpen9 .shopStations9{display:none}.shopService9>.shopServiceActions9 button{flex:1;min-width:0}
.shopDriveControls9{flex-shrink:0;padding:8px;background:#f5e2bd}.shopDriveControls9 .shopDrivePad9{grid-template-columns:repeat(5,1fr)}.shopDriveControls9 .shopDrivePad9 button{padding:4px;font-size:16px}.shopDriveControls9 p{font-size:12px}
.shopDriveState9{display:flex;align-items:center;gap:6px}.shopDriveState9 p{flex:1;min-width:0}.shopDriveState9 button{flex:0 0 auto}
@media(max-width:600px){.shopService9[data-page=vehicles]{max-height:54dvh}.shopService9[data-page=vehicles][data-driving=true] .shopServiceBody9{display:none}}
.shopTheme9{position:absolute;top:55px;left:75px;margin:4px 0;color:#38544e;font-size:13px}
#shopInterior9 .shopZoom9{font-size:12px;padding:7px 10px;min-width:76px}
.shopMarkers9{position:absolute;inset:0;pointer-events:none}
#shopInterior9 .shopMarkers9 button{position:absolute;left:0;top:0;width:140px;min-height:44px;font-size:13px;padding:5px 7px;background:#fff8e6eb;border-color:#88724e;box-shadow:0 2px 5px #3334}
.shopSelection9{position:absolute;left:50%;bottom:140px;transform:translateX(-50%);max-width:80%;padding:9px 14px;border-radius:8px;background:#fff5df;color:#493c32;text-align:center;font-size:14px}
.shopService9 input[type=search]{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #af9470;border-radius:7px;font:inherit;font-size:14px;padding:8px;margin-bottom:8px}
.shopUnlock9{background:#f3e1bc;border-left:3px solid #9b6e35;padding:8px}
.shopProductFocus9{background:#e6eddc;outline:2px solid #397669;outline-offset:-2px;border-radius:8px;padding:10px}
.shopProduct9>button{margin:4px 4px 0 0}
.shopServiceOpen9 .shopZoom9{visibility:hidden}
.shopService9 [hidden]{display:none!important}
#shopDriveResult9{padding:9px;border-left:3px solid #397669;background:#e6eddc}
.shopChallenge9{padding:10px;margin-bottom:12px;border:1px solid #b49c74;border-radius:8px;background:#f5e9ce}.shopChallenge9>button{margin:4px 4px 0 0}.shopChallenge9 .shopServiceActions9{margin-top:10px}.shopChallenge9 h3{margin:0 0 8px;font-size:16px}#shopDriveCollection9{line-height:1.8}
.shopService9[data-page=vehicles][data-driving=false] .shopDriveControls9{display:none}.shopService9 summary{min-height:44px;padding:10px 0;box-sizing:border-box;font-size:13px;cursor:pointer}
.shopProduct9[hidden],#shopInterior9 [hidden]{display:none!important}
/* 🔔 店內把通知縮到右下角小範圍(不遮商品)。⚠️ 但 #toastWrap 是 flex column、新的往後接,
   只寫 max-height+overflow:hidden 的話被切掉的是「最新那一則」——實測兩則同時出現時
   第二則完全看不到(103px 內容塞進 62px,而且不能捲)。最新的訊息最相關,不能是被丟掉的那個。
   justify-content:flex-end 把內容貼齊下緣:溢出的改從上面出去,也就是先丟最舊的。 */
body.shopWorld9 #toastWrap{top:auto;bottom:150px;left:auto;right:12px;transform:none;width:min(340px,calc(100% - 24px));max-height:62px;overflow:hidden;justify-content:flex-end}
body.shopWorld9 #toastWrap .toast{white-space:normal;max-width:100%;box-sizing:border-box;font-size:13px;padding:8px 12px}
@media(min-width:601px){.shopMarkers9{display:none}}
@media(max-width:600px){.shopStations9{flex-wrap:nowrap;overflow-x:auto;pointer-events:auto;padding-bottom:4px}#shopInterior9 .shopStations9 button{flex-shrink:0}}
@media(max-width:600px){.shopTop9{gap:6px}.shopTop9 h1{font-size:16px;max-width:118px}.shopCash9{font-size:11px;padding:6px;margin-left:auto}.shopTheme9{left:12px;top:65px;font-size:12px}.shopStations9{top:100px}#shopInterior9 .shopZoom9{font-size:11px;padding:6px;min-width:64px}#shopInterior9 .shopMarkers9 button{width:112px;font-size:12px}.shopClerk9{font-size:13px;max-width:calc(100% - 52px);bottom:78px}.shopSelection9{bottom:158px}.shopServiceOpen9 .shopTheme9{display:none}}
