/* SET YOUR GAME'S COLOR THEME HERE */
:root {
    --primary-color: #9b59b6;
    --primary-hover: #8e44ad;
    --hero-gradient-start: rgba(155, 89, 182, 0.1);
    --hero-gradient-end: rgba(142, 68, 173, 0.1);
    --section-bg-start: rgba(155, 89, 182, 0.05);
    --section-bg-end: rgba(142, 68, 173, 0.05);
    --primary-shadow: rgba(155, 89, 182, 0.3);
    --feature-shadow: rgba(155, 89, 182, 0.15);
    --focus-shadow: rgba(155, 89, 182, 0.25);
    --mode-shadow: rgba(155, 89, 182, 0.2);
    --btn-shadow: rgba(155, 89, 182, 0.4);
    --summary-bg-start: rgba(155, 89, 182, 0.1);
    --summary-bg-end: rgba(142, 68, 173, 0.05);
    --accordion-icon-filter: invert(47%) sepia(38%) saturate(1142%) hue-rotate(251deg) brightness(89%) contrast(86%);
}

.level-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.sequence-preview {
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
}

.preview-message {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

.memory-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.memory-card {
    width: 120px;
    height: 120px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--primary-shadow);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.play-area {
    margin: 2rem 0;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.card-pool {
    margin-bottom: 2rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 1rem;
    min-height: 140px;
}

.pool-card {
    width: 100px;
    height: 100px;
    background: white;
    border: 3px solid #dee2e6;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.pool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--primary-shadow);
}

.pool-card.used {
    opacity: 0.3;
    pointer-events: none;
}

.sequence-slots {
    margin-top: 2rem;
}

.slots-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 1rem;
    min-height: 140px;
}

.sequence-slot {
    width: 100px;
    height: 100px;
    background: white;
    border: 3px dashed #dee2e6;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.sequence-slot.filled {
    border-style: solid;
    border-color: var(--primary-color);
    background: rgba(155, 89, 182, 0.1);
}

.sequence-slot .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 0.8rem;
    align-items: center;
    justify-content: center;
}

.sequence-slot.filled:hover .remove-btn {
    display: flex;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-game {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-game.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--btn-shadow);
}

.btn-game.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-game.secondary {
    background: #6c757d;
    color: white;
}

.btn-game.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.success-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.success-notification.show {
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.success-message {
    font-size: 1.2rem;
    color: #666;
}

.sequence-comparison {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
}

.comparison-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sequence-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sequence-label {
    font-weight: 600;
    color: #666;
    min-width: 150px;
}

.sequence-values {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sequence-value {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-weight: 600;
}

.sequence-value.correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.sequence-value.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

@keyframes flash-correct {
    0%, 100% {
        background-color: transparent;
        border-color: transparent;
    }
    50% {
        background-color: rgba(76, 175, 80, 0.2);
        border: 3px solid #4caf50;
    }
}

@keyframes flash-wrong {
    0%, 100% {
        background-color: transparent;
        border-color: transparent;
    }
    50% {
        background-color: rgba(244, 67, 54, 0.2);
        border: 3px solid #f44336;
    }
}

.content-card.flash-correct {
    animation: flash-correct 0.6s ease;
}

.content-card.flash-wrong {
    animation: flash-wrong 0.6s ease;
}

.flash-correct {
    animation: flash-correct 0.6s ease;
}

.flash-wrong {
    animation: flash-wrong 0.6s ease;
}

/* Clickable steps */
.step.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.clickable:hover {
    transform: scale(1.05);
}

.step.clickable:hover .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Locked steps (non-clickable) */
.step.locked {
    cursor: not-allowed;
    opacity: 0.5;
}

.step.locked:hover {
    transform: none;
}

/* Force stat cards to stay on one row with equal widths */
.game-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    min-width: 0;
}
