/* Citysteer 2 — Zen mode. Quiet the HUD, add motes and a breathing guide. Uses the existing tokens. */
#zen-motes { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9; pointer-events: none; opacity: 0; transition: opacity 2.2s ease; mix-blend-mode: screen; }
#zen-breath { position: fixed; z-index: 11; left: 50%; bottom: calc(26px + var(--safe-b, 0px)); width: 64px; height: 64px; margin-left: -32px; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; color: var(--label, #fff); font: 600 10.5px/1 var(--font, system-ui); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
#zen-breath i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,236,214,.34), rgba(255,236,214,.08) 70%, rgba(255,236,214,0)); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset; animation: zenBreath 10s cubic-bezier(.45,.05,.55,.95) infinite; }
#zen-breath span { position: absolute; bottom: -16px; opacity: 0; white-space: nowrap; color: var(--label-2, rgba(226,240,236,.7)); }
#zen-breath .in { animation: zenIn 10s linear infinite; } #zen-breath .out { animation: zenOut 10s linear infinite; }
@keyframes zenBreath { 0%, 100% { transform: scale(.62); } 40% { transform: scale(1.12); } }
@keyframes zenIn { 0% { opacity: 0; } 6%, 34% { opacity: .9; } 42%, 100% { opacity: 0; } }
@keyframes zenOut { 0%, 44% { opacity: 0; } 52%, 90% { opacity: .9; } 98%, 100% { opacity: 0; } }
body.zen #zen-breath { opacity: .85; }
body.zen.zen-idle #zen-breath { opacity: 1; }
body.zen.paused #zen-breath, body.zen:has(#worldmap.in) #zen-breath, body.zen:has(#online:not(.hidden)) #zen-breath { opacity: 0; }

/* the HUD loses its pressure: no combo, daily goal or earnings rate */
body.zen #combo, body.zen #combobar, body.zen #rate, body.zen #daily-challenge { display: none; }
body.zen #wallet { opacity: .72; }
#hud, #hud > *, #wallet, #place, #plaque, #hint, #mapwrap .btns, #speedo { transition: opacity 1.8s ease; }
body.zen.zen-idle #wallet, body.zen.zen-idle #place, body.zen.zen-idle #plaque, body.zen.zen-idle #hint, body.zen.zen-idle #mapwrap .btns, body.zen.zen-idle #mapwrap .agency-key { opacity: 0; pointer-events: none; }
body.zen.zen-idle #speedo { opacity: .5; }
body.zen.zen-idle #mapwrap { opacity: .7; }
body.zen .glass { --glass-bg: rgba(30, 36, 33, .42); }
#b-zen.on { color: #bff2c8; }
@media (prefers-reduced-motion: reduce) {
  #zen-breath i, #zen-breath span { animation: none; }
  #zen-breath .in { opacity: .9; }
  #hud, #wallet, #place, #mapwrap .btns, #speedo { transition: none; }
}
