/* =========================================================
   SENSE CARDS
   ========================================================= */

.sense-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;

    /* FIX: ensure grid is above stage overlay */
    position: relative;
    z-index: 4;
}

.sense-card {
    padding: 18px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: transform .2s var(--ease), border-color .2s var(--ease);

    /* FIX: ensure card is above overlay + stacking context */
    position: relative;
    z-index: 5;
}

.sense-card:hover {
    transform: translateY(-2px);
    border-color: var(--green-1);
}

.sense-card.selected {
    border-color: var(--green-1);
    box-shadow: 0 0 22px var(--glow-green);
}

.sense-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.card-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}


/* =========================================================
   RESPONSIVE GRID
   ========================================================= */

@media (max-width: 768px) {
    .sense-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sense-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DIMMER OVERLAY — MUST NOT BLOCK CLICKS
   ========================================================= */

.dimmer {
    position: fixed;
    inset: 0;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

#dim-slider {
    height: 24px;          
    width: 100%; 
    display: block;
    margin: 0 auto;           
    -webkit-appearance: none;
    background: var(--border);
    border-radius: var(--radius-lg);
}

/* =========================================================
  BREATHING ENGINE
========================================================= */
#breathContainer,
#breathContainer .breath-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#breathContainer .breath-wrap {
    margin: 10px 0 24px 0;
}
/* ---------- Circle ---------- */
#breathContainer .breath-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(52, 211, 153, 0.38),
            rgba(139, 92, 246, 0.22) 62%,
            rgba(10, 17, 22, 0.85)
        );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 24px auto;
    transition:
        transform 0.3s ease-out,
        box-shadow 0.3s ease-out;
    box-shadow:
        0 0 26px rgba(52, 211, 153, 0.28),
        0 0 70px rgba(139, 92, 246, 0.18);
}
/* ---------- Inhale ---------- */
#breathContainer .breath-circle.inhale {
    transform: scale(1.35);
    box-shadow:
        0 0 48px rgba(52, 211, 153, 0.55),
        0 0 110px rgba(167, 139, 250, 0.32);
    transition-duration: 4s;
    transition-timing-function: ease-out;
}
/* ---------- Exhale ---------- */
#breathContainer .breath-circle.exhale {
    transform: scale(0.85);
    box-shadow:
        0 0 20px rgba(52, 211, 153, 0.25),
        0 0 55px rgba(139, 92, 246, 0.15);
    transition-duration: 6s;
    transition-timing-function: ease-in;
}
/* ---------- Hold ---------- */
#breathContainer .breath-circle.hold {
    transform: scale(1.35);
    box-shadow:
        0 0 48px rgba(52, 211, 153, 0.45),
        0 0 110px rgba(167, 139, 250, 0.28);
}
/* ---------- Label ---------- */
#breathContainer .breath-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #eafff7;
    text-transform: uppercase;
    text-shadow:
        0 0 24px rgba(52, 211, 153, 0.45);
    margin: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}
/* ---------- Counter ---------- */
#breathContainer .breath-counter {
    color: #8aa39c;
    margin-top: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    min-height: 1.2em;
}
/* ---------- Button ---------- */
#breathContainer .breath-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 35px;
    padding: 16px 36px;
    min-width: 190px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #34d399;
    background: #0b1f17;
    border: 1.5px solid #34d399;
    border-radius: 8px;
    cursor: pointer;
    box-shadow:
        0 4px 18px rgba(45, 212, 191, 0.18);
    transition:
        transform .15s ease,
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}
#breathContainer .breath-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 22px rgba(45, 212, 191, 0.25);
}
#breathContainer .breath-btn.is-running {
    background: #0a1116;
    border-color: #34d399;
    color: #34d399;
    box-shadow: none;
}
#breathContainer .breath-btn:active {
    transform: translateY(0);
}
#breathContainer .breath-btn:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;
}
#breathContainer .breath-btn.is-running:hover {
    background: rgba(52, 211, 153, 0.10);
    box-shadow:
        0 0 20px rgba(52, 211, 153, 0.22);
}
/* ---------- Responsive ---------- */
@media (max-width: 600px){
    #breathContainer .breath-circle {
        width: 180px;
        height: 180px;
    }
    #breathContainer .breath-btn {
        min-width: 180px;
        padding: 14px 30px;
    }
}

/* =========================================================
   GROUNDING STEPS
   ========================================================= */

.ground-list {
    margin: 20px 0;
    padding-left: 20px;
}

.ground-step {
    padding: 8px 0;
    font-size: 1rem;
    color: rgba(234, 255, 247, 0.88);
}

.ground-step.current {
    color: var(--green-1);
    font-weight: 600;
}

.ground-step.done {
    color: var(--muted);
    text-decoration: line-through;
}


/* =========================================================
   CHECK-IN BUTTONS
   ========================================================= */

.check-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 32px;
}


.checkin-btn {
    background: #2a1f3d; 
    color: #b8b0a8; 
    border: 2px solid #4b3a63; 
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 140px; 
    text-align: center;
    transition: all 0.15s ease;
}

.checkin-btn:hover {
    background: #3a2b52; 
    border-color: #6a4f91; 
}

.checkin-btn.selected {
    background: #4b3a63; 
    border-color: #c7b7e6; 
    box-shadow: 0 0 10px #6a4f91; 
}


