.wpjl-games-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
}

.wpjl-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.wpjl-tab {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
}
.wpjl-tab:hover {
    background: #f1f5f9;
    color: #334155;
}
.wpjl-tab.wpjl-active {
    color: #0f172a;
    border-bottom-color: #3b82f6;
    background: #eff6ff;
}

.wpjl-tab-count {
    background: rgba(100, 116, 139, 0.2);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.wpjl-tab-content {
    display: none;
}
.wpjl-tab-content:first-of-type {
    display: block;
}

.wpjl-game-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.wpjl-game-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wpjl-game-card.wpjl-diff-facil {
    border-top: 4px solid #10b981;
}
.wpjl-game-card.wpjl-diff-medio {
    border-top: 4px solid #f59e0b;
}
.wpjl-game-card.wpjl-diff-experto {
    border-top: 4px solid #ef4444;
}

.wpjl-game-header {
    padding: 20px 24px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}
.wpjl-game-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wpjl-game-number {
    background: #3b82f6;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.wpjl-game-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    min-width: 200px;
}
.wpjl-difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.wpjl-badge-facil {
    background: #d1fae5;
    color: #065f46;
}
.wpjl-badge-medio {
    background: #fef3c7;
    color: #92400e;
}
.wpjl-badge-experto {
    background: #fee2e2;
    color: #991b1b;
}

.wpjl-game-mechanic {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}
.wpjl-mechanic-label {
    font-weight: 600;
    margin-right: 4px;
}
.wpjl-game-tagline {
    margin: 10px 0 0;
    font-style: italic;
    color: #475569;
    font-size: 14px;
}

.wpjl-game-section {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.wpjl-game-section:last-of-type {
    border-bottom: none;
}
.wpjl-section-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wpjl-solution-title {
    color: #065f46;
}

.wpjl-story-content p {
    margin: 0 0 10px;
    line-height: 1.7;
    color: #334155;
}
.wpjl-story-content p:last-child {
    margin-bottom: 0;
}
.wpjl-story-content .accent {
    background: linear-gradient(transparent 60%, #fde68a 60%);
    font-weight: 500;
}

.wpjl-facts-list {
    margin: 0;
    padding-left: 20px;
}
.wpjl-facts-list li {
    margin: 6px 0;
    line-height: 1.6;
    color: #334155;
}

.wpjl-hints-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wpjl-hint-item {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px 8px;
}
.wpjl-hint-summary {
    cursor: pointer;
    padding: 8px 10px;
    font-weight: 600;
    color: #3b82f6;
    list-style: none;
    user-select: none;
}
.wpjl-hint-summary::-webkit-details-marker {
    display: none;
}
.wpjl-hint-summary::before {
    content: "💡 ";
}
.wpjl-hint-content {
    padding: 8px 10px 12px;
    color: #334155;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

.wpjl-mechanic-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.wpjl-hypotheses-list,
.wpjl-chain-options,
.wpjl-step-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.wpjl-hypothesis-item,
.wpjl-chain-option,
.wpjl-step-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    transition: all 0.15s ease;
}
.wpjl-hypothesis-item:hover,
.wpjl-chain-option:hover,
.wpjl-step-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.wpjl-hypothesis-item input[type="radio"],
.wpjl-chain-option input[type="radio"],
.wpjl-step-option input[type="radio"] {
    margin-right: 10px;
}
.wpjl-hypothesis-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.wpjl-hypothesis-title {
    display: block;
}
.wpjl-hypothesis-note {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.wpjl-chain-step,
.wpjl-step-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}
.wpjl-chain-step:last-child,
.wpjl-step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.wpjl-chain-step-label,
.wpjl-step-question {
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
    line-height: 1.5;
}
.wpjl-step-num {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
}

.wpjl-hypothesis-feedback,
.wpjl-chain-feedback,
.wpjl-step-feedback {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.wpjl-feedback-correct {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}
.wpjl-feedback-incorrect {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.wpjl-hypotheses-actions,
.wpjl-chain-actions,
.wpjl-steps-actions,
.wpjl-open-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpjl-hypotheses-result,
.wpjl-chain-result,
.wpjl-steps-result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 600;
}
.wpjl-result-correct {
    background: #ecfdf5;
    color: #047857;
    border: 2px solid #10b981;
}
.wpjl-result-partial {
    background: #fffbeb;
    color: #92400e;
    border: 2px solid #f59e0b;
}
.wpjl-result-empty {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.wpjl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}
.wpjl-btn-primary {
    background: #3b82f6;
    color: white;
}
.wpjl-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.wpjl-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.wpjl-btn-secondary:hover {
    background: #e2e8f0;
}
.wpjl-btn-toggle-solution {
    background: #0f172a;
    color: white;
}
.wpjl-btn-toggle-solution:hover {
    background: #1e293b;
}

.wpjl-solution {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    animation: wpjlFadeIn 0.3s ease;
}
@keyframes wpjlFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.wpjl-solution-headline {
    font-size: 16px;
    padding: 10px 14px;
    background: #10b981;
    color: white;
    border-radius: 6px;
    margin: 0 0 14px;
    line-height: 1.5;
}
.wpjl-solution-body {
    margin-bottom: 14px;
}
.wpjl-solution-body p {
    margin: 0 0 10px;
    line-height: 1.7;
    color: #334155;
}
.wpjl-solution-body p:last-child {
    margin-bottom: 0;
}
.wpjl-solution-trap,
.wpjl-solution-lesson {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    line-height: 1.6;
}
.wpjl-solution-trap {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}
.wpjl-solution-trap strong,
.wpjl-solution-lesson strong {
    display: block;
    margin-bottom: 4px;
}
.wpjl-solution-lesson {
    background: #ede9fe;
    color: #5b21b6;
    border-left: 3px solid #8b5cf6;
}

.wpjl-game-footer {
    padding: 16px 24px 20px;
    background: #f8fafc;
    text-align: center;
}

.wpjl-open-desc {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.6;
}

.wpjl-no-games {
    padding: 30px;
    text-align: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    font-style: italic;
}
