:root { --stroop-lane-width: 760px; }

.stroop-page-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 12px;
}

.stroop-hero {
    text-align: center;
    margin-bottom: 8px;
}

.stroop-title {
    margin: 0;
    color: #f7ecd2;
    font-size: 1.85rem;
    line-height: 1.16;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.stroop-subtitle {
    margin: 3px 0 0;
    color: #e5d8b9;
    font-size: 0.96rem;
}

.stroop-status-row {
    width: 100%;
    max-width: var(--stroop-lane-width);
    margin: 8px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stroop-status-pill {
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #b79a61;
    background: #fbf8ef;
    color: #3b3e2f;
    font-size: 0.92rem;
    font-weight: 700;
}

.stroop-status-pill span { color: #5b644f; }
.stroop-status-pill strong { color: #1b4f3a; }

.stroop-shell {
    background: linear-gradient(180deg, #f9f3e4 0%, #f3ead3 100%);
    border: 2px solid #8f7a4c;
    border-radius: 16px;
    padding: 10px;
}

.stroop-action-lane,
.word-display,
.color-options,
.stroop-guide,
.stroop-bottom-link {
    width: 100%;
    max-width: var(--stroop-lane-width);
    margin-left: auto;
    margin-right: auto;
}


.memory-action-lane.stroop-action-lane {
    margin-top: 8px;
    border: 1px solid #cbb17a;
    border-radius: 12px;
    background: #f7edd8;
    padding: 10px;
}

.memory-control-row.stroop-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.memory-start-btn.stroop-start-btn {
    min-height: 48px;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 0.98rem;
    font-weight: 700;
    border: 1px solid #9b7839;
    background: linear-gradient(180deg, #d4af63 0%, #b08a45 100%);
    color: #1f2a22;
    box-shadow: none;
}

.memory-start-btn.stroop-start-btn i {
    margin-right: 6px;
}

.memory-difficulty-row.stroop-difficulty-row {
    margin-top: 0;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.memory-diff-label.stroop-diff-label {
    color: #615b48;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.memory-difficulty-row.stroop-difficulty-row .difficulty-selector,
.memory-difficulty-row.stroop-difficulty-row .difficulty-unified {
    margin: 0;
    align-items: center;
    gap: 6px;
}

.memory-difficulty-row.stroop-difficulty-row .difficulty-unified .difficulty-btn,
.memory-difficulty-row.stroop-difficulty-row .difficulty-selector .difficulty-btn {
    min-width: 88px;
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #cbb07a;
    background: #fff8e8;
    color: #4a4738;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0 14px;
    box-shadow: none;
}

.memory-difficulty-row.stroop-difficulty-row .difficulty-unified .difficulty-btn.active,
.memory-difficulty-row.stroop-difficulty-row .difficulty-selector .difficulty-btn.active {
    background: #1f5d45;
    border-color: #1f5d45;
    color: #f7edd2;
}

.word-display {
    text-align: center;
    margin: 10px auto 0;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f7f0dc 0%, #efe4c8 100%);
    border-radius: 20px;
    box-shadow: none;
    border: 2px solid #ccb27a;
}

.stroop-word {
    font-size: 5rem;
    font-weight: 900;
    padding: 2rem;
    transition: all 0.3s;
    text-shadow: none;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.9rem auto 0;
}

.color-btn {
    padding: 1.15rem 0.8rem;
    border: 2px solid #d7bf8a;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: none;
    background: #fff8e8;
    color: #3f3a2c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.color-btn:hover {
    transform: translateY(-3px);
    border-color: #1f5d45;
}

.stroop-guide {
    margin-top: 8px;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #ccb27a;
    background: #f7edd8;
}

.stroop-guide h2 {
    margin: 0 0 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4d583f;
    font-size: 1rem;
}

.stroop-guide p {
    margin: 0;
    color: #5e644d;
    text-align: center;
    line-height: 1.6;
}

.stroop-bottom-link {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.stroop-bottom-link .btn-back-bottom {
    background: #1a3b2c;
    color: #f8edd1;
    border: 1px solid #355544;
}

.stroop-bottom-link .btn-back-bottom:hover {
    background: #224936;
    color: #fff5dd;
}

@media (max-width: 760px) {
    .memory-control-row.stroop-control-row {
        flex-direction: column;
        align-items: stretch;
    }

    .memory-start-btn.stroop-start-btn {
        width: 100%;
        max-width: 100%;
    }

    .memory-difficulty-row.stroop-difficulty-row {
        width: 100%;
        justify-content: center;
    }

    .memory-difficulty-row.stroop-difficulty-row .difficulty-selector {
        width: 100%;
        justify-content: center;
    }

    .memory-difficulty-row.stroop-difficulty-row .difficulty-btn {
        flex: 1 1 0;
    }

    .stroop-word {
        font-size: 3.5rem;
    }

    .color-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .color-btn {
        font-size: 1.05rem;
    }
}
/* 2026-03 viewport-fit audit pass */
.word-display {
    min-height: 170px;
}

.stroop-word {
    font-size: 4.2rem;
    padding: 1.4rem;
}

.color-options {
    gap: 0.8rem;
}

.color-btn {
    padding: 0.95rem 0.7rem;
    font-size: 1.08rem;
}

@media (min-width: 768px) and (max-width: 1180px) {
    .word-display {
        min-height: 148px;
    }

    .stroop-word {
        font-size: 3.4rem;
        padding: 1rem;
    }

    .color-options {
        gap: 0.65rem;
    }

    .color-btn {
        padding: 0.85rem 0.6rem;
        font-size: 0.98rem;
    }
}

/* 2026-03 final tablet compact pass: stroop test */
:root {
    --stroop-lane-width: 680px;
}

.stroop-page-wrap {
    max-width: 1080px;
}

.stroop-shell {
    padding: 8px;
}

.word-display {
    min-height: 150px;
    margin-top: 6px;
    border-radius: 16px;
}

.stroop-word {
    font-size: 3.6rem;
    padding: 0.9rem;
}

.color-options {
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.color-btn {
    min-height: 54px;
    padding: 0.8rem 0.65rem;
    font-size: 0.96rem;
}

.stroop-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    border: 1px solid rgba(63, 58, 44, 0.18);
}

.stroop-status-pill {
    min-width: 110px;
    padding: 6px 10px;
    font-size: 0.84rem;
}

.stroop-guide {
    padding: 0.75rem 0.85rem;
}

@media (min-width: 768px) and (max-width: 1180px) {
    :root {
        --stroop-lane-width: 600px;
    }

    .stroop-page-wrap {
        max-width: 900px;
    }

    .stroop-hero {
        margin-bottom: 6px;
    }

    .stroop-title {
        font-size: 1.52rem;
    }

    .stroop-subtitle {
        font-size: 0.84rem;
    }

    .stroop-shell {
        padding: 7px;
    }

    .memory-action-lane.stroop-action-lane {
        margin-top: 6px;
        padding: 8px;
    }

    .memory-control-row.stroop-control-row {
        gap: 8px;
    }

    .memory-start-btn.stroop-start-btn {
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.84rem;
    }

    .memory-diff-label.stroop-diff-label {
        min-height: 38px;
        font-size: 0.78rem;
    }

    .memory-difficulty-row.stroop-difficulty-row {
        min-height: 40px;
        gap: 6px;
    }

    .memory-difficulty-row.stroop-difficulty-row .difficulty-unified .difficulty-btn,
    .memory-difficulty-row.stroop-difficulty-row .difficulty-selector .difficulty-btn {
        min-width: 76px;
        min-height: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .word-display {
        min-height: 124px;
        margin-top: 5px;
    }

    .stroop-word {
        font-size: 2.9rem;
        padding: 0.7rem;
    }

    .color-options {
        gap: 0.5rem;
        margin-top: 0.55rem;
    }

    .color-btn {
        min-height: 46px;
        padding: 0.62rem 0.5rem;
        font-size: 0.84rem;
        border-radius: 12px;
    }

    .stroop-status-row {
        gap: 6px;
        margin-top: 6px;
    }

    .stroop-status-pill {
        min-width: 96px;
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .stroop-guide {
        margin-top: 6px;
        padding: 0.68rem 0.75rem;
    }

    .stroop-guide h2 {
        margin-bottom: 0.28rem;
        font-size: 0.9rem;
    }

    .stroop-guide p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .stroop-bottom-link {
        margin-top: 6px;
    }
}
