/* =========================================================
   LANDING SECTION
========================================================= */

#landing-section {
    display: block;
    margin-bottom: 30px;
}


/* =========================================================
   PROGRESS LABELS
========================================================= */

.progress-labels {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
}

.progress-label {
    width: 40px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.progress-label-spacer {
    width: 90px;
}

.progress-subtitle {
    min-height: 20px;
    margin: 0 0 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--muted);
}


/* =========================================================
   INSTRUCTIONS
========================================================= */

.tool-instruction,
.action-instruction {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.3px;
    white-space: pre-line;
}

.tool-instruction {
    margin: 0 0 24px;
    font-size: 1.1rem;
}

.action-instruction {
    margin: 0 0 20px;
}


/* =========================================================
   DECODER GRID
========================================================= */

.decoder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 40px;
}


/* =========================================================
   DECODER CARDS
========================================================= */

.decoder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px 22px;
    text-align: center;
    background: rgba(12, 18, 24, 0.65);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 0 rgba(52, 211, 153, 0),0 0 0 rgba(139, 92, 246, 0);
}

.decoder-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-1);
    box-shadow: 0 0 18px var(--glow-green),0 0 28px var(--glow-purple);
}

.decoder-card.selected {
    transform: translateY(-4px);
    background: rgba(52, 211, 153, 0.18);
    border-color: var(--green-1);
    box-shadow: 0 0 22px var(--glow-green),0 0 32px var(--glow-purple);
}

.decoder-card-emoji {
    margin-bottom: 10px;
    font-size: 2.4rem;
}

.decoder-card-title {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
}

.decoder-card-desc {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.4;
}


/* =========================================================
   EMOTION RESULT
========================================================= */

.emotion-reveal {
    padding: 20px 0;
    text-align: center;
}

.emotion-icon {
    margin-bottom: 10px;
    font-size: 3rem;
}

.emotion-name {
    margin: 0 0 10px;
    color: var(--green-1);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.emotion-body-part {
    margin-bottom: 20px;
    color: var(--purple-1);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.emotion-explanation {
    margin: 0 0 20px;
    color: rgba(234, 255, 247, 0.86);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
}


/* =========================================================
   ANSWER ROW
========================================================= */

.rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px 0;
}

.row {
    background: rgba(15, 95, 60, 0.22);
    border: 1px solid rgba(27, 122, 82, 0.55);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.row:hover {
    background: rgba(27, 122, 82, 0.28);
    border-color: rgba(37, 164, 106, 0.65);
}

.row-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-1);
    min-width: 32px;
}

.row-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.row-desc {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(234, 255, 247, 0.85);
}


/* =========================================================
   REFLECTION / WRITE BOX
========================================================= */

.action-write-box {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    background: #0f0f0f !important;
    color: #e6e6e6 !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    padding: 18px;
    margin-top: 20px;
    min-height: 160px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    overflow-y: auto;
    cursor: text !important;
    pointer-events: auto !important;
    user-select: text !important;
}

.action-write-box::placeholder {
    color: #888 !important;
    opacity: 1;
}

.action-write-box:focus {
    border-color: #555 !important;
    background: #111 !important;
    color: #e6e6e6 !important;
    outline: none;
}


/* =========================================================
   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;
}

#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);
}

#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;
}

#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;
}

#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);
}

#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;
}

#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;
}

#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);
}


/* =========================================================
   GROUNDING
========================================================= */

.grounding-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.grounding-list li {
    padding: 6px 0;
    color: rgba(234, 255, 247, 0.86);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

.grounding-list li strong {
    color: var(--green-1);
    font-weight: 600;
}


/* =========================================================
   JOURNAL
========================================================= */

.journal-prompt {
    margin: 0 0 20px;
    padding: 16px 20px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {
    #breathContainer .breath-circle {
        width: 180px;
        height: 180px;
    }

    #breathContainer .breath-btn {
        min-width: 180px;
        padding: 14px 30px;
    }
}

@media (max-width: 500px) {
    .bb-square-wrap {
        width: 200px;
    }

    .bb-square {
        width: 165px;
        height: 165px;
    }

    .bb-nose {
        width: 82px;
        height: 98px;
    }
}

/* =========================================================
   FINAL STEP — 3 CARDS IN ONE ROW ON ALL DEVICES
========================================================= */

.check-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.checkin-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 6px;
    white-space: normal;
    overflow-wrap: anywhere;
}