
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;500;700;800&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

.ambient-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(96, 165, 250, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.15), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.1), transparent 50%);
    filter: blur(60px);
    z-index: -2;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.status-pill {
    position: absolute;
    top: 12vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 32px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #475569;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.timer-display {
    font-size: 8rem; 
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums; 
    line-height: 1;
    text-align: center;
    text-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    transition: all 0.3s ease;
    z-index: 20;
    position: relative;
}

.orb-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.breathing-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 30px 60px -12px rgba(15, 23, 42, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 20px 40px rgba(255, 255, 255, 0.6);
    transition: all 0.1s linear;
    z-index: -1;
}

.inhale {
    transform: scale(1.6);
    transition: transform 4s cubic-bezier(0.25, 1, 0.5, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 100%);
    box-shadow: 0 40px 80px -10px rgba(56, 189, 248, 0.2), inset 0 20px 40px rgba(255,255,255,0.8);
}

.hold {
    transform: scale(1.6);
    animation: pulse-micro 3.5s infinite ease-in-out;
}

.exhale {
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-micro {
    0% { transform: scale(1.6); }
    50% { transform: scale(1.62); box-shadow: 0 45px 90px -10px rgba(56, 189, 248, 0.25), inset 0 20px 40px rgba(255,255,255,0.8); }
    100% { transform: scale(1.6); }
}

.stop-module {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 30;
}

.stop-module.visible {
    opacity: 1;
    pointer-events: auto;
}

.stop-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
}
.stop-btn:active {
    transform: scale(0.95);
}
