:root { color-scheme: dark; font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; background: #101b20; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button { font: inherit; }
.experience { min-height: 100dvh; overflow: hidden; position: relative; isolation: isolate; color: #f4f2eb; background: #101b20; }
.experience::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 50% 6%, #274047 0%, #17282e 30%, #101b20 72%); }
.grain { position: absolute; inset: 0; z-index: -2; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); pointer-events: none; }
.ambient-orb { position: absolute; top: 19%; left: 50%; width: min(94vw, 580px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #9dd2bc; filter: blur(108px); opacity: .09; z-index: -1; }
.frame { width: min(100%, 560px); min-height: 100dvh; margin: 0 auto; padding: 20px 23px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.topbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: rgba(244,242,235,.74); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }.brand-mark { width: 10px; height: 10px; border: 1px solid #aad5c2; border-radius: 50%; box-shadow: 0 0 0 4px rgba(170,213,194,.08); }
.icon-button { border: 0; width: 40px; height: 40px; display: grid; place-items: center; color: #f4f2eb; background: rgba(244,242,235,.08); border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.screen { flex: 1; }.intro-screen, .complete-screen { display: flex; flex-direction: column; justify-content: center; }.is-hidden { display: none !important; }
.eyebrow { color: #abd4c3; margin: 0 0 16px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }.intro-screen h1, .complete-screen h1 { font-size: clamp(40px, 12vw, 62px); line-height: 1.05; letter-spacing: -.07em; font-weight: 500; margin: 0; }.intro-copy { max-width: 270px; margin: 24px 0 38px; color: rgba(244,242,235,.66); font-size: 15px; line-height: 1.9; }
.rhythm-card { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(244,242,235,.17); border-bottom: 1px solid rgba(244,242,235,.17); }.rhythm-item { position: relative; padding: 20px 0 18px; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 3px; }.rhythm-item:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 8px; width: 1px; height: 30px; background: rgba(244,242,235,.13); transform: translateY(-50%); }.rhythm-item span { grid-column: 1 / -1; color: rgba(244,242,235,.58); font-size: 12px; margin-bottom: 9px; }.rhythm-item strong { font-size: 30px; font-weight: 400; letter-spacing: -.06em; }.rhythm-item small { color: rgba(244,242,235,.55); font-size: 11px; }
.intro-footer { margin-top: auto; padding-top: 32px; }.intro-footer p { max-width: 285px; color: rgba(244,242,235,.43); margin: 0 0 17px; font-size: 11px; line-height: 1.65; }.primary-button, .pause-button { border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }.primary-button { width: 100%; min-height: 58px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 18px; background: #d8ecdf; color: #163128; font-size: 15px; font-weight: 700; }.primary-button:hover, .pause-button:hover { transform: translateY(-2px); }.sound-toggle, .text-button { margin: 15px auto 0; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: rgba(244,242,235,.58); font-size: 12px; cursor: pointer; }
.ready-screen { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }.ready-screen p { margin: 0; color: #abd4c3; font-size: 14px; letter-spacing: .14em; }.ready-screen strong { margin: 18px 0 9px; font-size: 126px; font-weight: 300; letter-spacing: -.1em; line-height: 1; }.ready-screen span { color: rgba(244,242,235,.55); font-size: 14px; }
.practice-screen { display: flex; flex-direction: column; align-items: center; padding-top: clamp(38px, 10vh, 90px); }.progress-row { width: 100%; display: flex; justify-content: space-between; color: rgba(244,242,235,.6); font-size: 12px; letter-spacing: .04em; }.progress-track { width: 100%; height: 2px; margin-top: 12px; background: rgba(244,242,235,.12); border-radius: 4px; overflow: hidden; }.progress-track span { display: block; height: 100%; background: #a8d7c4; transition: width .1s linear; }
.breath-visual { width: min(72vw, 330px); aspect-ratio: 1; position: relative; display: grid; place-items: center; margin: auto 0 24px; }.outer-ring, .middle-ring, .inner-core { position: absolute; border-radius: 50%; }.outer-ring { inset: 0; border: 1px solid rgba(183,224,207,.24); box-shadow: 0 0 80px rgba(139,210,181,.1); }.middle-ring { inset: 13%; border: 1px solid rgba(183,224,207,.26); background: rgba(170,213,194,.055); }.inner-core { inset: 26%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(192,230,211,.13); box-shadow: inset 0 0 40px rgba(219,246,232,.13); }.inner-core span { color: #e5f2ea; font-size: 18px; letter-spacing: .1em; }.inner-core strong { min-height: 56px; margin: 2px 0 -3px; font-size: 51px; line-height: 1; font-weight: 300; letter-spacing: -.08em; }.inner-core small { color: rgba(244,242,235,.58); font-size: 11px; }
.phase-inhale .outer-ring, .phase-inhale .middle-ring, .phase-inhale .inner-core { animation: expand 4s cubic-bezier(.38,0,.25,1) both; }.phase-hold .outer-ring, .phase-hold .middle-ring, .phase-hold .inner-core { animation: breatheHold 7s linear both; }.phase-exhale .outer-ring, .phase-exhale .middle-ring, .phase-exhale .inner-core { animation: expand 8s cubic-bezier(.38,0,.25,1) reverse both; }.phase-hint { min-height: 24px; margin: 0; color: rgba(244,242,235,.62); text-align: center; font-size: 14px; }.pause-button { margin-top: 24px; min-height: 52px; padding: 0 23px; display: inline-flex; align-items: center; gap: 9px; color: #e8f4ed; border: 1px solid rgba(232,244,237,.18); border-radius: 999px; background: rgba(232,244,237,.08); font-size: 14px; }
.complete-screen { align-items: center; text-align: center; }.complete-halo { position: relative; width: 168px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 36px; border-radius: 50%; border: 1px solid rgba(187,228,208,.36); box-shadow: 0 0 82px rgba(133,205,174,.17); }.complete-halo::before, .complete-halo span { content: ""; position: absolute; border-radius: 50%; }.complete-halo::before { inset: 16%; border: 1px solid rgba(187,228,208,.42); }.complete-halo span { width: 38%; height: 38%; background: #bee6d1; box-shadow: 0 0 42px rgba(190,230,209,.45); }.complete-screen h1 { font-size: clamp(37px, 10vw, 54px); }.complete-screen > p:not(.eyebrow) { margin: 22px 0 37px; color: rgba(244,242,235,.63); font-size: 14px; }.complete-screen .primary-button { max-width: 320px; }.text-button { color: rgba(244,242,235,.72); text-decoration: underline; text-underline-offset: 4px; }
@keyframes expand { from { transform: scale(.74); opacity: .32; } to { transform: scale(1); opacity: 1; } } @keyframes breatheHold { from, to { transform: scale(1); opacity: 1; } 50% { transform: scale(.98); opacity: .88; } }
@media (min-width: 640px) { .experience { padding: 20px; }.frame { min-height: calc(100dvh - 40px); border: 1px solid rgba(244,242,235,.1); border-radius: 32px; box-shadow: 0 28px 90px rgba(0,0,0,.25); } } @media (prefers-reduced-motion: reduce) { .outer-ring, .middle-ring, .inner-core { animation: none !important; }.primary-button, .pause-button, .progress-track span { transition: none; } }
