/* 52.1 "Clear Road II": phone HUD declutter (body.wch-phone is set by the 42.1/52.1 HUD manager) */
.wch-toast{display:none}
/* ---------- one notice at a time ---------- */
body.wch-phone .wch-toast:not([hidden]){display:flex;align-items:center;gap:6px;position:fixed;z-index:40;left:calc(12px + env(safe-area-inset-left,0px));top:calc(64px + env(safe-area-inset-top,0px));max-width:min(70vw,300px);box-sizing:border-box;padding:5px 11px;border-radius:12px;background:#16273bE6;color:#fff;font:700 13px/1.25 "Atkinson Hyperlegible",sans-serif;pointer-events:none;box-shadow:0 3px 10px #0004}
body.wch-phone .wch-toast[data-k=ach]{border:2px solid #ffd23f}
body.wch-phone .wch-toast[data-k=pop]{background:#fff8e1;color:#16273b;font-family:Bungee,"Atkinson Hyperlegible",sans-serif;font-weight:400;letter-spacing:.02em}
body.wch-phone .wch-toast .wt-i{flex:0 0 auto}
body.wch-phone .wch-toast .wt-t{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.wch-phone .wch-toast.wt-in{animation:wchIn .18s ease-out}
@keyframes wchIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
body.wch-phone .wc-ach-toast{display:none!important}
body.wch-phone[data-wchud=driving] :is(#banner,#toast,.wc-pops),body.wch-phone[data-wchud=onfoot] :is(#banner,#toast,.wc-pops){display:none!important}
body.wch-phone:is([data-wchud=minigame],[data-wchud=cinematic],[data-wchud=menu]) .wch-toast{display:none!important}
body.wch-phone.wch-dlg:not(.wch-x) :is(.wch-toast,#combo){display:none!important}
/* ---------- Menu: a 44 px icon button ---------- */
body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #pauseBtn{min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;border-radius:12px!important;left:auto!important;right:calc(12px + env(safe-area-inset-right,0px))!important;top:calc(12px + env(safe-area-inset-top,0px))!important;display:grid!important;place-items:center}
body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #pauseBtn::before{content:"☰";font-size:22px;line-height:1;color:#16273b}
/* ---------- minimap: 72 px, no distance tag (the job chip has it) ---------- */
body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #radarWrap{left:auto!important;right:calc(12px + env(safe-area-inset-right,0px))!important;top:calc(64px + env(safe-area-inset-top,0px))!important;gap:0!important}
body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #radar{width:72px!important;height:72px!important;border-width:2px!important}
body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #cDist{display:none!important}
@media (max-height:500px){body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #radarWrap{top:calc(10px + env(safe-area-inset-top,0px))!important;right:calc(64px + env(safe-area-inset-right,0px))!important}
 body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]) #radar{width:60px!important;height:60px!important}}
/* ---------- speed: a small pill (placed above the steering arrows by the HUD manager) ---------- */
body.wch-phone[data-wchud=driving] #speedo{width:auto!important;height:32px!important;min-width:0!important;border-radius:16px!important;padding:0 10px!important;display:flex!important;flex-direction:row!important;align-items:baseline;gap:4px;align-content:center;box-shadow:0 3px 10px #0003!important;background:#16273bE6!important}
body.wch-phone[data-wchud=driving] #speedo::before,body.wch-phone[data-wchud=driving] #speedo::after{display:none!important}
body.wch-phone[data-wchud=driving] #speedo>b{font-size:19px!important;line-height:32px}
body.wch-phone[data-wchud=driving] #speedo>span{font-size:10px!important}
body.wch-phone[data-wchud=driving] #speedo #dotDrivingBadge{display:none!important}
body.wch-phone[data-wchud=driving] #speedo>:not(b):not(span){display:none!important}
/* ---------- job chip: fits its text, 44 px tap area on "Job ▾" ---------- */
body.wch-phone:is([data-wchud=driving],[data-wchud=onfoot]):not(.wch-x) #hJob{width:auto!important;padding:3px 4px 3px 3px!important}
body.wch-phone:not(.wch-x) .wch-dest{font-size:13px!important}
body.wch-phone .wch-chip{position:relative;min-height:30px}
body.wch-phone .wch-chip::after{content:"";position:absolute;inset:-8px -6px}
/* ---------- driving: only the essentials until "Job ▾" is opened ---------- */
body.wch-phone[data-wchud=driving]:not(.wch-x) :is(#wcHeat,#wcBudget,#wcSense,#wcOSBtn,#hRight){display:none!important}
body.wch-phone[data-wchud=driving] #combo.wch-slot{padding:3px 8px!important;min-width:0!important}
/* ---------- on foot: the task, nothing else ---------- */
body.wch-phone[data-wchud=onfoot]:not(.wch-x) :is(#wcHeat,#wcBudget,#wcSense,#wcOSBtn,#hRight,#dotActionHint){display:none!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-scan):not(.wch-x) #wcScan{display:none!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 details,body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 #df25FieldName{display:none!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 .df25-dock-top{display:flex;justify-content:flex-end;margin:0 0 3px!important;font-size:9px!important;line-height:1.2}
body.wch-phone[data-wchud=onfoot] #dotFieldDockV25.wch-slot{padding:6px 8px!important;max-height:40dvh!important;overflow:auto!important;background:#fffbefE8!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 #df25Objective{font-size:12px!important;margin:2px 0 4px!important;line-height:1.25}
body.wch-phone[data-wchud=onfoot] #dotFieldDockV25 .df25-action-row button{min-height:44px!important;font-size:12px!important;padding:4px 9px!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 .df25-message{font-size:11px!important;margin:3px 0 0!important}
/* ---------- minigame: the world HUD steps out behind the game card ---------- */
body.wch-phone[data-wchud=minigame] :is(#hJob,#hRight,#speedo,#combo,#radarWrap,#pauseBtn,#banner,#toast,#wchMore,#dotFieldDockV25,#wcScan,#wcSense,#wcOSBtn,#wcHeat,#wcBudget,#dotActionHint,#wcSchool,#wcPRun,#wcUplink,#wcDry,#wcFlood,#wcHold,#wcTrace,#wcTone,#wcDrip,#wcBlow,#wcSoakRun){visibility:hidden!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 .df25-action-row{flex-wrap:nowrap!important}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 #df25Action{flex:1 1 auto;min-width:0}
body.wch-phone[data-wchud=onfoot]:not(.wch-x) #dotFieldDockV25 .df25-action-row button:not(#df25Action){flex:0 0 auto}
