.medal-requirement {
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
}

.medal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.medal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.medal-toggle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 14px;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    background: var(--color-brand-bg, #f5f3ff);
    border: 1px solid var(--color-brand-border, #e9e5fa);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.medal-badge-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.medal-requirement.open .medal-badge-arrow {
    transform: rotate(180deg);
}

.medal-header:hover .medal-toggle-badge {
    background: #ede9fe;
}

.medal-requirement.open .medal-toggle-badge {
    background: var(--color-bg-muted, #f1f5f9);
    border-color: var(--color-border);
}

.medal-toggle-icon {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
}

.medal-requirement.open .medal-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .medal-toggle-badge {
        display: none;
    }
    .medal-toggle-icon {
        display: flex;
    }
}

.medal-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 0;
}

.medal-requirement.open .medal-details {
    max-height: 400px;
    margin-top: 14px;
    padding: 14px 0 4px 0;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.medal-details-list {
    columns: 2;
    column-gap: 2rem;
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed, 1.6);
}

.medal-details-list li {
    margin-bottom: 0.4rem;
    break-inside: avoid;
}

@media (max-width: 768px) {
    .medal-details-list {
        columns: 1;
        font-size: var(--text-sm);
    }
}

.medal-icon {
    height: 48px;
    width: 48px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .medal-icon {
        height: 32px;
        width: 32px;
    }
}