/* Theme-aware breathing bloom */
#view-relax-guide{position:relative}.mindfulness-water-bg{position:fixed;z-index:0;inset:0;width:100%;height:100%;border:0;pointer-events:none}.breathing-bloom{position:relative;z-index:1}
#subpageNav[data-view="relax-guide"]{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.theme-dark #subpageNav[data-view="relax-guide"]{background:transparent!important}
.breathing-bloom{--breathing-cycle:10s;--breath-c1:#fff8da;--breath-c2:#f8dda0;--breath-c3:#eec873;--breath-c4:#d8a94e;--breath-halo:rgba(247,211,126,.42);width:100%;min-height:calc(100svh - 86px);justify-content:flex-start!important;gap:0!important;padding:calc(46svh - min(165px,36vw) - max(12px,env(safe-area-inset-top))) 8px calc(96px + env(safe-area-inset-bottom))!important;text-align:center}
.theme-dark .breathing-bloom{--breath-c1:#fbf3ff;--breath-c2:#e8cef8;--breath-c3:#c99be7;--breath-c4:#9a62c6;--breath-halo:rgba(177,116,215,.34)}
.breathing-stage{position:relative;width:min(330px,72vw);aspect-ratio:1;margin:0 auto;isolation:isolate}
.breathing-layer{position:absolute;left:50%;top:50%}
.breathing-petals{position:absolute;inset:0;transform:scale(.56);transform-origin:50% 50%}
.breathing-arm{position:absolute;inset:0;transform:rotate(var(--petal-rotation))}
.breathing-petal{position:absolute;left:50%;bottom:50%;width:29%;height:46%;transform:translateX(-50%);border-radius:50%;background:linear-gradient(180deg,var(--breath-c1),var(--breath-c2) 25%,var(--breath-c3) 64%,var(--breath-c4));filter:blur(.2px);opacity:.78;mix-blend-mode:normal}
.theme-dark .breathing-petal{opacity:.82;mix-blend-mode:normal}
.breathing-petal-soft{width:32%;height:49%;filter:blur(15px);opacity:.2}.theme-dark .breathing-petal-soft{opacity:.25}
.breathing-core{width:15%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,var(--breath-c1),var(--breath-c2) 42%,transparent 74%);filter:blur(7px);opacity:.72}
.breathing-halo{width:125%;aspect-ratio:1;transform:translate(-50%,-50%) scale(.56);border-radius:50%;background:radial-gradient(circle,transparent 54%,var(--breath-halo) 70%,transparent 82%);filter:blur(14px);opacity:.28}
.breathing-cues{position:relative;width:min(100%,360px);min-height:94px;margin:24px auto 0}.breathing-cue{position:absolute;inset:0;opacity:0}
#breathingCueIn,#breathingCueOut{animation:none}
.breathing-bloom.is-running .breathing-petals{animation:breathingBloomMotion var(--breathing-cycle) var(--breathing-count)}
.breathing-bloom.is-running .breathing-core{animation:breathingCoreGlow var(--breathing-cycle) var(--breathing-count)}
.breathing-bloom.is-running .breathing-halo{animation:breathingHaloMotion var(--breathing-cycle) var(--breathing-count)}
.breathing-bloom.is-running #breathingCueIn{animation:breathingCueIn var(--breathing-cycle) var(--breathing-count)}
.breathing-bloom.is-running #breathingCueOut{animation:breathingCueOut var(--breathing-cycle) var(--breathing-count)}
.breathing-cue strong,.breathing-cue span{display:block;color:#fff8e8}.breathing-cue strong{margin-bottom:9px;font-size:15px;font-weight:580;letter-spacing:.34em;text-indent:.34em}.breathing-cue span{font-size:13px;line-height:1.8}
.breathing-modes{position:fixed;z-index:30;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));width:min(calc(100% - 32px),360px);display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:0;transform:translateX(-50%)}.breathing-modes button{min-height:40px;padding:8px 16px;border:1px solid rgba(164,119,48,.18);border-radius:999px;color:var(--copy);background:rgba(250,237,207,.4);box-shadow:none;font:inherit;font-size:12px;transition:color 180ms ease,border-color 180ms ease,background 180ms ease,transform 160ms ease}.breathing-modes button[aria-pressed=true]{border-color:rgba(174,119,38,.46);color:#8b5a1c;background:rgba(221,184,112,.4)}
.theme-dark .breathing-modes button{border-color:rgba(225,190,255,.14);color:rgba(239,226,244,.6);background:rgba(64,45,88,.34)}.theme-dark .breathing-modes button[aria-pressed=true]{border-color:rgba(225,190,255,.38);color:#ead3f5;background:rgba(143,94,185,.28)}
.breathing-modes button:active{transform:scale(.96)}.breathing-hint{margin:14px 0 0;color:var(--copy);font-size:12px;opacity:.74}
@media(max-width:390px){.breathing-bloom{padding-top:calc(46svh - min(146px,38vw) - max(12px,env(safe-area-inset-top)))!important}.breathing-stage{width:min(292px,76vw)}.breathing-cues{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.breathing-petals,.breathing-core,.breathing-halo,.breathing-cue{animation:none!important}.breathing-petals{transform:scale(.82)}#breathingCueIn{opacity:1}}
