/* ================================
   Stroop Test - Layout
   ================================ */
.stroop-test-main {
    min-height: calc(100vh - 80px);
    background: var(--light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
}

.stroop-test-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.stroop-test-header {
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd43b 100%);
    color: white;
    text-align: center;
}

.stroop-test-header .game-icon { font-size: 3rem; margin-bottom: 0.4rem; }
.stroop-test-header .game-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.4rem; }
.stroop-test-header .game-subtitle { font-size: 0.95rem; opacity: 0.9; }

.stroop-test-body { padding: 1.75rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; }

/* ================================
   Info Bar
   ================================ */
.st-info {
    display: flex;
    justify-content: space-between;
    background: var(--light);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
}

.st-info-item { text-align: center; }
.st-info-label { font-size: 0.78rem; color: #888; margin-bottom: 0.15rem; }
.st-info-value { font-size: 1.3rem; font-weight: 900; color: var(--dark); }
#st-time { color: var(--danger); }
#st-score { color: var(--primary); }

/* ================================
   Word Display
   ================================ */
.st-word-box {
    background: var(--dark);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

/* ================================
   Color Buttons
   ================================ */
.st-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.st-color-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 54px;
}

.st-color-btn:active:not(:disabled) { transform: scale(0.96); }
.st-color-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.st-btn-red    { background: #ff4d4d; }
.st-btn-blue   { background: #4f7cff; }
.st-btn-green  { background: #32d17d; }
.st-btn-yellow { background: #e6b800; }

.st-btn-red:hover:not(:disabled)    { background: #e03e3e; }
.st-btn-blue:hover:not(:disabled)   { background: #3d6ae0; }
.st-btn-green:hover:not(:disabled)  { background: #27b56c; }
.st-btn-yellow:hover:not(:disabled) { background: #c9a200; }

/* ================================
   Start Button & Result
   ================================ */
.st-start-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.st-start-btn:hover:not(:disabled) { background: var(--primary-dark); transform: scale(1.02); }
.st-start-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.st-result {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd43b 100%);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    display: none;
    line-height: 1.7;
    animation: scaleIn 0.3s ease-out;
}

header .logo { text-decoration: none; color: white; }

.back-link {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding-top: 0.25rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ================================
   Responsive
   ================================ */
@media (max-width: 480px) {
    .stroop-test-main { padding: 1.5rem 0.75rem 3rem; }
    .stroop-test-body { padding: 1.25rem 1rem; }
    .st-word-box { font-size: 2.2rem; padding: 1.5rem 1rem; }
    .st-color-btn { font-size: 0.95rem; padding: 0.85rem; }
}
