/* Diagnosis Game Styles */
.diagnosis-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eef2f5;
}

.diagnosis-start,
.diagnosis-question,
.diagnosis-result {
    width: 100%;
    text-align: center;
}

.diagnosis-title {
    font-size: 1.8rem;
    color: var(--main-blue);
    margin-bottom: 30px;
}

.btn-primary-large {
    display: inline-block;
    background: #e67e22;
    /* Fallback */
    background: linear-gradient(135deg, #e67e22 0%, #ff9f43 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 50px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.q-badge {
    display: inline-block;
    background: var(--main-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.q-header h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.q-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.btn-option {
    background: #f8fbff;
    border: 2px solid #dde7f0;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
}

.btn-option:hover {
    background: var(--main-blue-light);
    border-color: var(--main-blue);
    color: var(--main-blue);
}

.btn-option::after {
    content: "▶";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.8rem;
}

.btn-option:hover::after {
    color: var(--main-blue);
}

/* Results */
.result-header h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.text-red {
    color: #e74c3c;
}

.text-orange {
    color: #f39c12;
}

.text-gray {
    color: #95a5a6;
}

.result-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-retry {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Animations */
.fadeIn {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-infinite {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 767px) {
    .diagnosis-container {
        padding: 20px;
    }

    .diagnosis-title {
        font-size: 1.4rem;
    }

    .q-header h4 {
        font-size: 1.2rem;
    }

    .btn-primary-large {
        font-size: 1rem;
        padding: 12px 30px;
    }
}