/* V131: exclusively mobile, including short landscape and safe areas. */
#g-mobile-menu-toggle,#g-mobile-menu,#g-mobile-controls-v131{display:none}
html[data-mobile-ui="true"]{--mobile-safe-top:env(safe-area-inset-top,0px);--mobile-safe-bottom:env(safe-area-inset-bottom,0px);--mobile-side: max(10px,env(safe-area-inset-left,0px))}
html[data-mobile-ui="true"] body{height:100vh;height:100dvh;overflow:hidden}
html[data-mobile-ui="true"] body #cc-game .g-stage{height:100vh!important;height:var(--mobile-vh,100dvh)!important;min-height:0!important;aspect-ratio:auto!important}
html[data-mobile-ui="true"] body #cc-game .g-footer{display:none!important}
html[data-mobile-ui="true"] body #cc-game :is(.g-profile,#g-work-dock,#g-home-tools,.cs42-invite-button,.g-brand-mark){display:none!important}
html[data-mobile-ui="true"] body #cc-game .g-location{top:calc(8px + var(--mobile-safe-top))!important;left:var(--mobile-side)!important;right:auto!important;width:auto!important;max-width:calc(100% - 136px)!important;z-index:92!important;padding:5px 8px!important;border-radius:9px!important;pointer-events:none}
html[data-mobile-ui="true"] body #cc-game #g-location-name{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-mobile-ui="true"] body #cc-game #g-clock{font-size:10px!important}
html[data-mobile-ui="true"] body #cc-game .g-location #g-environment{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-mobile-ui="true"] body #cc-game .g-navwrap{position:absolute!important;inset:0!important;z-index:100!important;pointer-events:none!important}
html[data-mobile-ui="true"] body #cc-game .g-navbuttons{position:absolute!important;left:auto!important;bottom:auto!important;top:calc(8px + var(--mobile-safe-top))!important;right:70px!important;pointer-events:auto!important}
html[data-mobile-ui="true"] body #cc-game #g-navtoggle,html[data-mobile-ui="true"] #g-mobile-menu-toggle{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:52px!important;min-width:52px!important;min-height:44px!important;height:44px!important;padding:6px!important;border:1px solid #ac9060!important;border-radius:10px!important;background:#fff5dfef!important;color:#493c29!important;font:600 13px/1.2 "PingFang SC","Microsoft YaHei",sans-serif!important;box-shadow:0 2px 5px #49321c33!important}
html[data-mobile-ui="true"] #g-mobile-menu-toggle{position:absolute;right:10px;top:calc(8px + var(--mobile-safe-top));z-index:101}
html[data-mobile-ui="true"] body #cc-game #g-quicktoggle,html[data-mobile-ui="true"] body #cc-game kbd{display:none!important}
html[data-mobile-ui="true"] #g-mobile-menu-toggle[hidden]{display:none!important}
html[data-mobile-ui="true"] #g-mobile-menu:not([hidden]){display:flex;position:absolute;inset:0;z-index:2200;padding:calc(8px + var(--mobile-safe-top)) max(8px,env(safe-area-inset-right,0px)) calc(8px + var(--mobile-safe-bottom)) var(--mobile-side);box-sizing:border-box;background:#241b1666;backdrop-filter:blur(3px)}
html[data-mobile-ui="true"] .mobile131-menu-panel{display:flex;flex-direction:column;min-height:0;width:100%;background:#fbf5e7;border:1px solid #b49b72;border-radius:14px;overflow:hidden;color:#4c422e;box-shadow:0 10px 32px #201b2244;font:14px/1.5 "PingFang SC","Microsoft YaHei",sans-serif}
html[data-mobile-ui="true"] .mobile131-menu-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #d8c7a7;flex:none}
html[data-mobile-ui="true"] .mobile131-menu-panel h2{font-size:19px;margin:0}
html[data-mobile-ui="true"] .mobile131-menu-panel h3{font-size:13px;margin:12px 0 8px;color:#75664d}
html[data-mobile-ui="true"] .mobile131-menu-body{padding:0 14px 16px;overflow:auto;overscroll-behavior:contain;min-height:0;-webkit-overflow-scrolling:touch}
html[data-mobile-ui="true"] .mobile131-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-mobile-ui="true"] .mobile131-menu-panel button{font:inherit;min-height:48px;padding:10px;border:1px solid #c8b58d;border-radius:9px;background:#fffcf4;color:#4c422e;touch-action:manipulation;cursor:pointer}
html[data-mobile-ui="true"] .mobile131-menu-panel header button{min-width:52px;min-height:44px}
html[data-mobile-ui="true"] .mobile131-menu-help{font-size:12px;line-height:1.65;color:#796d55;margin:18px 0 0}
html[data-mobile-ui="true"] .mobile131-menu-panel [hidden]{display:none!important}
html[data-mobile-ui="true"] #g-mobile-controls-v131:not([hidden]){display:block;position:absolute;inset:0;z-index:93;pointer-events:none}
html[data-mobile-ui="true"] #g-mobile-stick-v131{position:absolute;left:var(--mobile-side);bottom:calc(16px + var(--mobile-safe-bottom));width:136px;height:136px;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:50%;background:radial-gradient(circle,#fbf5e72b 0%,#fbf5e72b 56%,transparent 57%)}
html[data-mobile-ui="true"] #g-mobile-stick-label-v131{position:absolute;left:var(--mobile-side);width:136px;text-align:center;bottom:calc(9px + var(--mobile-safe-bottom));font-size:11px;line-height:16px;color:#fffaf0;text-shadow:0 1px 3px #221;pointer-events:none}
html[data-mobile-ui="true"] #g-mobile-action-v131{position:absolute;right:max(18px,env(safe-area-inset-right,0px));bottom:calc(40px + var(--mobile-safe-bottom));width:84px;min-height:72px;padding:12px 8px;border:2px solid #bca075;border-radius:20px;background:#fff6e8ed;color:#4b402a;font:600 14px/1.4 "PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 3px 10px #28201255;pointer-events:auto;touch-action:manipulation;white-space:normal}
html[data-mobile-ui="true"] #g-mobile-action-v131:disabled{opacity:.62}
html[data-mobile-ui="true"] body #cc-game #g-interact{display:none!important}
html[data-mobile-ui="true"] #cc-game[data-mobile-scene="fishing"] #g-mobile-stick-v131{bottom:calc(104px + var(--mobile-safe-bottom))}
html[data-mobile-ui="true"] #cc-game[data-mobile-scene="fishing"] #g-mobile-stick-label-v131{bottom:calc(96px + var(--mobile-safe-bottom))}
html[data-mobile-ui="true"] #cc-game[data-mobile-scene="fishing"] #g-mobile-action-v131{bottom:calc(126px + var(--mobile-safe-bottom))}
html[data-mobile-ui="true"] body #cc-game #g-navpanel{position:absolute!important;inset:calc(8px + var(--mobile-safe-top)) 8px calc(8px + var(--mobile-safe-bottom))!important;margin:0!important;width:auto!important;max-width:none!important;max-height:none!important;border-radius:14px!important;padding:12px!important;background:#fbf5e7!important;box-shadow:0 6px 30px #211b2455!important;overflow:auto!important;pointer-events:auto!important;z-index:2200!important}
html[data-mobile-ui="true"] body #cc-game .g-navwrap:has(#g-navpanel:not([hidden])){z-index:2200!important;background:#241b1666}
html[data-mobile-ui="true"] body #cc-game #g-navpanel .g-nav-heading{position:sticky;top:-12px!important;margin:-12px -12px 8px!important;padding:10px 12px!important;background:#fbf5e7!important;min-height:44px;z-index:2;display:flex;align-items:center;gap:8px}
html[data-mobile-ui="true"] #g-mobile-map-close{display:block;min-width:48px;min-height:44px;margin-left:auto;border:1px solid #c8b58d;border-radius:9px;background:#fffcf4;color:#4c422e;font:inherit}
#g-mobile-map-close{display:none}
html[data-mobile-ui="true"] body #cc-game .g-minimap{height:96px!important;max-width:100%;object-fit:cover}
html[data-mobile-ui="true"] body #cc-game #g-navpanel .g-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html[data-mobile-ui="true"] body #cc-game #g-navpanel button{min-height:48px!important;font-size:13px!important;white-space:normal!important}
html[data-mobile-ui="true"] body #cc-game[data-mobile-journal="true"] .g-hudbottom{display:block!important;position:absolute!important;inset:0!important;z-index:2200!important;background:#241b1666;max-width:none!important}
html[data-mobile-ui="true"] body #cc-game #g-journal[open]{position:absolute!important;inset:calc(8px + var(--mobile-safe-top)) 8px calc(8px + var(--mobile-safe-bottom))!important;display:flex;flex-direction:column;background:#fbf5e7;border:1px solid #b49b72;border-radius:14px;padding:12px;box-sizing:border-box}
html[data-mobile-ui="true"] body #cc-game #g-journal[open]>summary{display:flex!important;align-items:center;justify-content:space-between;width:auto!important;min-height:44px!important;max-height:44px!important;flex:none;padding:0!important;box-shadow:none!important;border:0!important;background:transparent!important;font-size:17px!important}
html[data-mobile-ui="true"] body #cc-game #g-journal[open]>summary::after{content:'收起';font-size:14px;border:1px solid #c8b58d;border-radius:8px;padding:10px 12px}
html[data-mobile-ui="true"] body #cc-game #g-journal[open] :is(.v70-note-lines,.v70-note-track,.v70-note-count){display:none!important}
html[data-mobile-ui="true"] body #cc-game #g-journal[open] .g-journal-pages{position:static!important;min-height:0;overflow:auto;width:100%!important;max-width:none!important;max-height:none!important;margin-top:12px;overscroll-behavior:contain}
html[data-mobile-ui="true"] body #cc-game[data-mobile-journal="true"] .g-room-actions{display:none!important}
html[data-mobile-ui="true"] body #cc-game .g-toast{left:50%!important;top:calc(82px + var(--mobile-safe-top))!important;bottom:auto!important;transform:translateX(-50%)!important;width:max-content;max-width:calc(100% - 32px)!important;max-height:80px;overflow:auto;box-sizing:border-box;padding:8px 12px!important;font-size:12px!important;line-height:1.5!important;z-index:102!important;pointer-events:none}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera{top:calc(112px + var(--mobile-safe-top))!important;left:auto!important;right:10px!important;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:156px;gap:4px}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera[hidden]{display:none!important}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera button{min-width:44px;min-height:44px;padding:4px;font-size:12px}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera [data-farm-camera="pan"]{display:none}
html[data-mobile-ui="true"] body .fv25-hud{bottom:calc(8px + var(--mobile-safe-bottom))!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;transform:none!important}
html[data-mobile-ui="true"] body .fv25-hud .fv27-status{position:fixed!important;left:10px!important;top:calc(80px + var(--mobile-safe-top))!important;right:auto!important;max-width:calc(100vw - 20px)!important;bottom:auto!important;margin:0!important;padding:4px 8px!important;font-size:11px!important;min-height:24px;box-sizing:border-box}
html[data-mobile-ui="true"] body .fv27-tool-slots{display:flex!important;overflow-x:auto!important;gap:5px!important;scrollbar-width:thin;padding-bottom:4px!important;touch-action:pan-x}
html[data-mobile-ui="true"] body .fv27-tool-slot{flex:0 0 52px!important;min-width:52px!important;height:58px!important;font-size:12px!important}
html[data-mobile-ui="true"] body .fv27-tray-row{padding:5px!important;gap:5px!important}
html[data-mobile-ui="true"] body .fv27-menu>summary{min-width:44px!important;min-height:48px!important;box-sizing:border-box}
html[data-mobile-ui="true"] body .fv28-tool-guide{display:none!important}
html[data-mobile-ui="true"] body .fv28-plot-focus{left:10px!important;right:10px!important;top:calc(164px + var(--mobile-safe-top))!important;bottom:auto!important;width:auto!important;max-height:calc(var(--mobile-vh,100dvh) - 420px)!important;min-height:80px;overflow:auto!important;font-size:13px}
html[data-mobile-ui="true"] body #cc-game[data-mobile-modal="true"] :is(.g-location,.g-navbuttons,#g-mobile-menu-toggle,.g-toast){visibility:hidden!important;pointer-events:none!important}
html[data-mobile-ui="true"] body:has(#cc-game[data-mobile-blocked="true"]) :is(.fv25-hud,.fv28-plot-focus){visibility:hidden!important;pointer-events:none!important}
html[data-mobile-ui="true"] body #cc-game[data-mobile-blocked="true"] :is(#g-farm-camera,.cs42-invite-button){visibility:hidden!important;pointer-events:none!important}
html[data-mobile-ui="true"] body #cc-game .g-overlay{position:fixed!important;inset:var(--mobile-vtop,0px) 0 auto!important;height:var(--mobile-vh,100dvh)!important;padding:calc(8px + var(--mobile-safe-top)) 8px calc(8px + var(--mobile-safe-bottom))!important;box-sizing:border-box;z-index:2100!important}
html[data-mobile-ui="true"] body #cc-game .g-dialog:not(:has(.sv-appearance-editor)){width:100%!important;max-width:100%!important;max-height:100%!important;padding:12px!important;box-sizing:border-box!important;overflow:auto;overscroll-behavior:contain}
html[data-mobile-ui="true"] body #cc-game .g-dialog:not(:has(.sv-appearance-editor)) .g-dialoghead{top:-12px!important;margin:-12px -12px 12px!important;padding:8px 12px!important;display:flex!important;align-items:center!important;gap:8px!important;position:sticky!important;background:#fbf3df!important;z-index:3}
html[data-mobile-ui="true"] body #cc-game .g-dialog:not(:has(.sv-appearance-editor)) .g-dialoghead .g-portrait{width:44px!important;height:48px!important;flex:none}
html[data-mobile-ui="true"] body #cc-game .g-dialog:not(:has(.sv-appearance-editor)) .g-dialoghead>div{flex:1;min-width:0}
html[data-mobile-ui="true"] body #cc-game .g-dialog:not(:has(.sv-appearance-editor)) .g-npcname{font-size:17px!important;line-height:1.3!important}
html[data-mobile-ui="true"] body #cc-game .g-dialog:not(:has(.sv-appearance-editor)) .g-close{position:static!important;min-height:44px!important;max-width:84px;font-size:12px!important;flex:none}
html[data-mobile-ui="true"] body #cc-game :is(input,select,textarea){font-size:16px!important;min-height:44px;box-sizing:border-box;max-width:100%}
html[data-mobile-ui="true"] body #cc-game .g-dialog button{min-height:44px;touch-action:manipulation}
html[data-mobile-ui="true"] body #cc-game #g-placement-tools{bottom:calc(16px + var(--mobile-safe-bottom))!important;left:10px!important;right:10px!important;transform:none!important;width:auto!important;max-width:none}
html[data-mobile-ui="true"] body #cc-game #g-placement-tools button{min-height:44px}
@media(min-width:600px) and (max-height:500px){
 html[data-mobile-ui="true"] .mobile131-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-mobile-ui="true"] body #cc-game #g-navpanel .g-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html[data-mobile-ui="true"] body #cc-game .g-minimap{display:none!important}
 html[data-mobile-ui="true"] body #cc-game .g-location #g-environment{display:none!important}
 html[data-mobile-ui="true"] #g-mobile-stick-v131{width:116px;height:116px;bottom:14px!important}
 html[data-mobile-ui="true"] #g-mobile-stick-label-v131{width:116px;bottom:4px!important}
 html[data-mobile-ui="true"] #g-mobile-action-v131{bottom:28px!important;min-height:64px;width:80px}
 html[data-mobile-ui="true"] body .fv25-hud{left:146px!important;right:120px!important;bottom:8px!important}
 html[data-mobile-ui="true"] body .fv25-hud .fv27-status{top:58px!important;max-width:calc(100vw - 220px)!important;font-size:10px!important}
 html[data-mobile-ui="true"] body #cc-game #g-farm-camera{top:60px!important;right:10px!important;max-width:210px}
 html[data-mobile-ui="true"] body .fv28-plot-focus{left:150px!important;right:130px!important;top:86px!important;max-height:calc(var(--mobile-vh,100dvh) - 178px)!important}
 html[data-mobile-ui="true"] body #cc-game .g-toast{top:58px!important;max-width:55%!important}
}

html[data-mobile-ui="true"] body #cc-game[data-mobile-sheet="true"] .fish35-hud{visibility:hidden!important;pointer-events:none!important}

#g-mobile-board-close{display:none}
html[data-mobile-ui="true"] body #cc-game[data-mobile-community="true"] .g-community-board:not([hidden]){display:flex!important;flex-direction:column;position:fixed;inset:calc(var(--mobile-vtop,0px) + env(safe-area-inset-top,0px) + 8px) max(8px,env(safe-area-inset-right,0px)) auto max(8px,env(safe-area-inset-left,0px));width:auto;max-width:680px;height:auto;max-height:calc(var(--mobile-vh,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);margin:auto;overflow:auto;z-index:160;background:#fcf5e3;box-shadow:0 0 0 100vmax #201e1b99;padding:14px}
html[data-mobile-ui="true"] body #cc-game[data-mobile-community="true"] .g-community-board summary{pointer-events:none;list-style:none;font-size:18px}
html[data-mobile-ui="true"] body #cc-game[data-mobile-community="true"] .g-community-board button{min-height:44px}
html[data-mobile-ui="true"] body #cc-game #g-mobile-board-close{display:block;flex:none;position:sticky;bottom:0;background:#edf0dc;margin-top:10px}

html[data-mobile-ui="true"] body #cc-game:not([data-mobile-community="true"]) .g-community-board{display:none!important}

html[data-mobile-ui="true"] body #cc-game:not([data-mobile-journal="true"]) .g-hudbottom{display:none!important}

#g-mobile-camera-toggle,#g-mobile-board-backdrop{display:none}
html[data-mobile-ui="true"] #g-mobile-board-backdrop:not([hidden]){display:block;position:absolute;inset:0;background:#201e1b99;z-index:159;touch-action:none}
html[data-mobile-ui="true"] body #cc-game[data-mobile-community="true"] .g-community-board:not([hidden]){box-shadow:0 8px 28px #201e1b55}
html[data-mobile-ui="true"] body #cc-game #g-mobile-camera-toggle{display:block}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera:not([data-expanded="true"]) button:not(#g-mobile-camera-toggle){display:none}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera[data-expanded="true"]{background:#fbf5e7e8;border:1px solid #b49b72;border-radius:12px;padding:5px}

html[data-mobile-ui="true"] body #cc-game #g-journal[open] .g-journal-pages{height:calc(var(--mobile-vh,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 100px)!important;max-height:calc(var(--mobile-vh,100dvh) - 100px)!important;overflow:auto!important;box-sizing:border-box}

html[data-mobile-ui="true"] body #cc-game #g-mobile-camera-toggle{min-width:52px;border:1px solid #ac9060;border-radius:10px;background:#fff5dfef;color:#493c29;font:600 13px/1.2 sans-serif;box-shadow:0 2px 5px #49321c33}

html[data-mobile-ui="true"] body #cc-game .cs42-cafe:not(.cs171-home):has([data-cafe-body][hidden]){display:none!important}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe:not(.cs171-home):not([hidden]):has([data-cafe-body]:not([hidden])){position:fixed!important;inset:var(--mobile-vtop,0px) 0 auto!important;width:100%!important;max-width:none!important;height:var(--mobile-vh,100dvh)!important;max-height:var(--mobile-vh,100dvh)!important;border-radius:0!important;box-sizing:border-box;z-index:2300!important;display:flex!important;flex-direction:column;background:#fbf5e7}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe>header{flex:none;min-height:56px;padding-top:env(safe-area-inset-top,0px)}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe [data-cafe-body]{overflow:auto;min-height:0;flex:1;padding-bottom:env(safe-area-inset-bottom,0px)}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe button{min-height:44px}
html[data-mobile-ui="true"] body #cc-game[data-mobile-sheet="true"] .cs42-cafe{visibility:hidden!important;pointer-events:none!important}

/* A home visit keeps the room in view; only cafe seating uses a full sheet. */
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home:not([hidden]){position:fixed!important;inset:auto max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))!important;width:auto!important;max-width:420px!important;height:min(260px,45dvh)!important;height:min(260px,calc(var(--mobile-vh,100dvh)*.45))!important;max-height:50dvh!important;margin-left:auto;box-sizing:border-box;border-radius:12px!important;z-index:95!important;display:flex!important;flex-direction:column;overflow:hidden;background:#fbf5e7}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home>header{min-height:48px;padding:3px 10px;gap:8px;box-sizing:border-box}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home>header>div:first-child{min-width:0;flex:1}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home>header strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home>header small{font-size:10px;letter-spacing:0}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home .cs42-cafe-header-actions{display:flex;gap:4px;flex:none}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home .cs42-cafe-header-actions button{min-width:44px}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home [data-cafe-body]{display:flex;flex-direction:column;padding:0 10px 8px;overflow:hidden;min-height:0}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home [data-cafe-note]{font-size:11px;margin:4px 0;flex:none}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home .cs42-messages{flex:1;min-height:0;max-height:none;margin:4px 0 6px;padding:0 8px}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home [data-chat]{flex:none;min-height:44px}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home .cs42-status:not(:empty){max-height:32px;overflow:auto;flex:none;font-size:11px;margin:3px 0 0}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home[data-home-collapsed="true"]{inset:auto max(10px,env(safe-area-inset-right,0px)) calc(128px + env(safe-area-inset-bottom,0px)) auto!important;width:auto!important;height:44px!important;max-height:44px!important;overflow:visible}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home[data-home-collapsed="true"]>header{min-height:0;padding:0;border:0;background:none}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home[data-home-collapsed="true"]>header>div:first-child,html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home[data-home-collapsed="true"] [data-cafe-exit]{display:none}
html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home[data-home-collapsed="true"] [data-collapse]{min-height:44px;white-space:nowrap}
@media(max-height:500px){html[data-mobile-ui="true"] body #cc-game .cs42-cafe.cs171-home [data-cafe-note]{display:none}}

html[data-mobile-ui="true"] body .fv25-hud .fv28-tool-guide:has([data-action-feedback]:not([hidden])){display:block!important;position:fixed;left:10px;right:10px;top:auto;bottom:calc(162px + var(--mobile-safe-bottom));height:auto;min-height:0;z-index:94;padding:8px 10px;max-height:68px;overflow:auto;border-radius:10px;background:#fff7e7ee;font-size:12px;pointer-events:none}
html[data-mobile-ui="true"] body .fv25-hud .fv28-tool-guide :is([data-tool-range],[data-tool-guide],[data-guide-seeds]){display:none!important}
@media(min-width:600px) and (max-height:500px){html[data-mobile-ui="true"] body .fv25-hud .fv28-tool-guide:has([data-action-feedback]:not([hidden])){left:150px;right:145px;top:auto;bottom:84px;max-height:52px}}

html[data-mobile-ui="true"] body #cc-game .cs42-cafe[hidden]{display:none!important}

html[data-mobile-ui="true"] body:has(#g-farm-camera[data-expanded="true"]) .fv131-status-toggle{visibility:hidden;pointer-events:none}

/* Thumb-adjacent sprint: compact translucent control, separate from the stick. */
html[data-mobile-ui="true"] #g-mobile-run-v131{position:absolute;left:calc(var(--mobile-side) + 138px);bottom:calc(78px + var(--mobile-safe-bottom));width:46px;height:46px;min-height:46px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:3px;border:1px solid #fff6df88;border-radius:50%;background:#fff6e85c;color:#fff9e9;font:600 10px/1.15 "PingFang SC","Microsoft YaHei",sans-serif;text-shadow:0 1px 2px #30291c88;box-shadow:0 1px 5px #28201220;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);pointer-events:auto;touch-action:manipulation;white-space:nowrap}
html[data-mobile-ui="true"] #g-mobile-run-v131::before{content:'»';font:500 23px/17px system-ui,sans-serif;transform:translateY(-1px)}
html[data-mobile-ui="true"] #g-mobile-run-v131[aria-pressed="true"]{background:#5b745e99;border-color:#fff4c8;color:#fffdf0;box-shadow:0 0 0 2px #eee4b022}
html[data-mobile-ui="true"] #g-mobile-run-v131:focus-visible{outline:2px solid #fff6df;outline-offset:3px}
html[data-mobile-ui="true"] #cc-game[data-mobile-scene="fishing"] #g-mobile-run-v131{bottom:calc(166px + var(--mobile-safe-bottom))}
@media(min-width:600px) and (max-height:500px){html[data-mobile-ui="true"] #g-mobile-run-v131,html[data-mobile-ui="true"] #cc-game[data-mobile-scene="fishing"] #g-mobile-run-v131{left:calc(var(--mobile-side) + 120px);bottom:calc(30px + var(--mobile-safe-bottom))}}

/* Keep compact HUD controls clear of either landscape notch. */
/* V160: compact two-character HUD controls, retaining a 44px touch target. */
html[data-mobile-ui="true"] body #cc-game :is(#g-navtoggle,#g-mobile-menu-toggle,#g-mobile-camera-toggle),
html[data-mobile-ui="true"] body .fv25-hud .fv131-status-toggle{box-sizing:border-box;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:6px 4px!important;white-space:nowrap;flex-shrink:0}
html[data-mobile-ui="true"] body #cc-game .g-navbuttons{right:calc(52px + max(10px,env(safe-area-inset-right,0px)))!important}
html[data-mobile-ui="true"] #g-mobile-menu-toggle{right:max(10px,env(safe-area-inset-right,0px))}
html[data-mobile-ui="true"] body #cc-game #g-farm-camera{right:max(10px,env(safe-area-inset-right,0px))!important}
html[data-mobile-ui="true"] body .fv25-hud .fv131-status-toggle{right:calc(52px + max(10px,env(safe-area-inset-right,0px)))!important}
@media(min-width:600px) and (max-height:500px){html[data-mobile-ui="true"] #cc-game[data-mobile-scene="fishing"] #g-mobile-run-v131{bottom:calc(110px + var(--mobile-safe-bottom))}}

/* V169: the farm status shell is click-through, its explicit cancel is not. */
.fv28-tool-guide [data-cancel-work]{pointer-events:auto;flex:0 0 auto;min-height:32px;align-self:center;touch-action:manipulation}

/* V169: keep progress and its cancel control on one visible mobile row. */
html[data-mobile-ui="true"] body .fv25-hud .fv28-tool-guide:has([data-action-feedback]:not([hidden])){display:flex!important;align-items:center;gap:8px;overflow:hidden}
.fv28-tool-guide [data-cancel-work]{min-width:56px;padding:5px 10px;white-space:nowrap}

/* Keep the portrait chat entry above active farm progress and below plot details. */
@media(max-width:900px) and (orientation:portrait){
 html[data-mobile-ui="true"] body:has(.fv25-hud:not([hidden]) [data-action-feedback]:not([hidden])) #cc-game[data-mobile-scene="farm"] .social161-chat-launcher{bottom:calc(240px + var(--mobile-safe-bottom))}
 html[data-mobile-ui="true"] body:has(#cc-game[data-mobile-scene="farm"]) .fv25-hud:not([hidden]):has([data-action-feedback]:not([hidden])) .fv28-plot-focus{min-height:0;max-height:calc(var(--mobile-vh,100dvh) - 454px - var(--mobile-safe-top) - var(--mobile-safe-bottom))!important}
}
