.tool-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.tool-head {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 28px;
}

.tool-stage {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    background: var(--stage);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 42px 42px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 46px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(52, 211, 153, 0.05),
        0 0 120px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(234, 255, 247, 0.06);
}

.tool-stage > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   STEP SWITCHING
   ========================================================= */

.step {
    display: none;
}

.step.is-active {
    display: block;
    animation: stepIn 0.45s var(--ease);
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   STAGE 1 — FEELING CARDS
   ========================================================= */

.feeling-cards {
    display: grid !important;
    grid-template-columns: repeat(4, auto);
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 40px !important;
    justify-content: center !important; 
}


.feeling-card {
    width: 100%;
    max-width: 200px;
    min-height: 180px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 6px 22px rgba(52, 211, 153, 0.08);
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s var(--ease);

}

.feeling-card.selected {
    border-color: var(--green-1);
    box-shadow:
        0 0 22px rgba(52, 211, 153, 0.28);
}

.feeling-card .card-emoji {
    font-size: 1.7rem;
    margin-bottom: 8px;
    line-height: 1;
}


.feeling-card .card-title {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}

.feeling-card .card-sub {
    font-size: 0.9rem;
    color: var(--green-2);
    margin-bottom: 8px;
}


.feeling-card .card-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--muted);
    margin-top: 8px;
}


.setup-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}


/* =========================================================
   SET UP
   ========================================================= */
.setup-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 12px;

    /* 🌲 Deep dark green gradient — CTA style */
    background: linear-gradient(
        135deg,
        #04110c,
        #0a2a1d
    );

    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
    border: 1px solid rgba(0,255,150,0.12);
    margin-bottom: 14px;
}



.setup-row:last-child {
    border-bottom: none;
}

.setup-emoji {
    font-size: 32px;
    width: 48px;
    text-align: center;
}

.setup-text {
    color: #c8fbe4; 
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
}


.next-btn {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #4CAF50;
    color: white;
    font-size: 18px;
    cursor: pointer;
}


/* =========================================================
   SHAKING FIGURE
   ========================================================= */

.figure-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px 0;
    height: 200px;
    position: relative;
}
.shaking-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 5px;
}
.figure-head {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0d5b8, #c9a584);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}
.figure-body {
    display: flex;
    align-items: flex-start;
    margin-top: -4px;
}
.figure-torso {
    width: 44px;
    height: 65px;
    background: linear-gradient(145deg, #8a6540, #5d3f28);
    border-radius: 10px 10px 6px 6px;
    position: relative;
    z-index: 1;
}
.figure-arm {
    width: 14px;
    height: 60px;
    background: linear-gradient(180deg, #c9a584, #a07d5e);
    border-radius: 8px;
    position: relative;
    top: 4px;
}
.figure-arm-left {
    transform-origin: top center;
    margin-right: -2px;
}
.figure-arm-right {
    transform-origin: top center;
    margin-left: -2px;
}
.figure-legs {
    display: flex;
    gap: 8px;
    margin-top: -2px;
}
.figure-leg {
    width: 16px;
    height: 55px;
    background: linear-gradient(180deg, #6b8fbd, #4a6fa5);
    border-radius: 0 0 6px 6px;
    transform-origin: top center;
}
/* Shake animations — applied dynamically */
.shaking-figure.shake-all {
    animation: shakeAll 0.15s infinite alternate;
}
.shaking-figure.shake-all .figure-arm-left {
    animation: shakeArmL 0.12s infinite alternate;
}
.shaking-figure.shake-all .figure-arm-right {
    animation: shakeArmR 0.13s infinite alternate-reverse;
}
.shaking-figure.shake-all .figure-leg-left {
    animation: shakeLegL 0.14s infinite alternate;
}
.shaking-figure.shake-all .figure-leg-right {
    animation: shakeLegR 0.11s infinite alternate-reverse;
}
.shaking-figure.shake-all .figure-head {
    animation: shakeHead 0.18s infinite alternate;
}
@keyframes shakeAll {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2px, -1px) rotate(0.5deg); }
}
@keyframes shakeArmL {
    0%   { transform: rotate(-8deg); }
    100% { transform: rotate(12deg); }
}
@keyframes shakeArmR {
    0%   { transform: rotate(8deg); }
    100% { transform: rotate(-14deg); }
}
@keyframes shakeLegL {
    0%   { transform: rotate(-4deg); }
    100% { transform: rotate(6deg); }
}
@keyframes shakeLegR {
    0%   { transform: rotate(4deg); }
    100% { transform: rotate(-7deg); }
}
@keyframes shakeHead {
    0%   { transform: rotate(-3deg) translateX(-1px); }
    100% { transform: rotate(4deg) translateX(2px); }
}
/* Vibration waves radiating from figure */
.figure-container::before,
.figure-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid rgba(200, 170, 130, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}
.figure-container.active::before {
    animation: pulse 2s infinite ease-out;
}
.figure-container.active::after {
    animation: pulse 2s infinite ease-out 0.6s;
}
@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 240px;
        height: 240px;
        opacity: 0;
    }
}


/* =========================================================
   INTENSITY BAR
   ========================================================= */

.intensity-bar {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 0 10px;
}

.intensity-track {
    height: 12px;
    background: var(--bg-2);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.intensity-fill {
    height: 100%;
    width: 50%;
    border-radius: 6px;
    background:
        linear-gradient(
            90deg,
            var(--purple-2),
            var(--green-2),
            var(--green-1)
        );

    transition:
        width 0.2s var(--ease);
}

.intensity-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    user-select: none;
    transition:
        left 0.2s var(--ease);
}

.intensity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--muted);
}

/* =========================================================
   REFLECTION
   ========================================================= */
.reflection-dark {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.55); 
    color: #e8e8e8; 
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.reflection-dark::placeholder {
    color: rgba(255,255,255,0.25);
}

.reflection-dark:focus {
    border-color: rgba(0,255,180,0.45); /* emerald glow */
    background: rgba(0,0,0,0.65);
}


/* =========================================================
   RESPONSIVE FEELING CARDS
========================================================= */

/* DESKTOP — 4 CARDS PER ROW */
@media (min-width: 480px) {
    .feeling-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.feeling-card .card-title {
    font-size: 0.72rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* SMALL DEVICES — 2 CARDS PER ROW */
@media (max-width: 480px) {
    .tool-stage {
        padding: 18px 12px 24px;
    }

    .feeling-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
    }

    .feeling-card {
        width: 100%;
        max-width: none;
        min-height: 125px;
        padding: 12px 6px;
    }

    .feeling-card .card-emoji {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .feeling-card .card-title {
        font-size: 0.8rem;
    }

    .feeling-card .card-sub {
        font-size: 0.78rem;
    }

    .feeling-card .card-desc {
        font-size: 0.68rem;
        line-height: 1.35;
    }
}

/* STEP 2 — SMALLER TEXT ON SMALL DEVICES */
#stage2 .setup-list {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 8px !important;
width: 100%;
}

#stage2 .setup-row {
min-width: 0;
margin-bottom: 0;
padding: 10px 8px;
gap: 6px;
box-sizing: border-box;
}

#stage2 .setup-emoji {
flex-shrink: 0;
width: 26px;
font-size: 20px;
}

#stage2 .setup-text {
min-width: 0;
font-size: 13px;
line-height: 1.35;
overflow-wrap: anywhere;
}