/* SET YOUR GAME'S COLOR THEME HERE */
:root {
    --primary-color: #35CE8D;
    --primary-hover: #2DB67C;
    --hero-gradient-start: rgba(53, 206, 141, 0.1);
    --hero-gradient-end: rgba(45, 182, 124, 0.1);
    --section-bg-start: rgba(53, 206, 141, 0.05);
    --section-bg-end: rgba(45, 182, 124, 0.05);
    --primary-shadow: rgba(53, 206, 141, 0.3);
    --feature-shadow: rgba(53, 206, 141, 0.15);
    --focus-shadow: rgba(53, 206, 141, 0.25);
    --mode-shadow: rgba(53, 206, 141, 0.2);
    --btn-shadow: rgba(53, 206, 141, 0.4);
    --summary-bg-start: rgba(53, 206, 141, 0.1);
    --summary-bg-end: rgba(45, 182, 124, 0.05);
    --accordion-icon-filter: invert(63%) sepia(44%) saturate(511%) hue-rotate(110deg) brightness(92%) contrast(88%);
    --btn-text-color: #ffffff;
}

/* ===== GAME STATS - FLEX OVERRIDE ===== */

.game-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.game-stats .stat-card {
    flex: 1;
    min-width: 0;
}

/* ===== DIFFICULTY PILLS (Settings) ===== */

.difficulty-pills {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.difficulty-pill {
    background: rgba(53, 206, 141, 0.05);
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.difficulty-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.difficulty-pill.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(53, 206, 141, 0.15) 0%, rgba(45, 182, 124, 0.1) 100%);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.difficulty-pill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.difficulty-pill-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.difficulty-pill-description {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== GAME CARD OVERFLOW ===== */

#gameView .content-card {
    overflow: visible !important;
    min-height: auto !important;
    max-height: none !important;
    padding-bottom: 3rem !important;
}

#gameView .quiz-content {
    overflow: visible !important;
}

/* ===== 3-COLUMN GAME LAYOUT ===== */

.game-layout {
    align-items: stretch;
    min-height: 400px;
}

/* Column headings */
.column-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Col 1: Audio prompts stacked vertically */
.audio-column {
    padding-top: 0.5rem;
}

.clue-pill {
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    background: white;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.6rem;
    text-align: center;
    transition: all 0.3s ease;
}

.clue-pill.has-audio {
    cursor: pointer;
}

.clue-pill.has-audio:hover {
    background: rgba(53, 206, 141, 0.08);
    box-shadow: 0 2px 8px var(--feature-shadow);
}

.clue-pill.playing {
    background: var(--primary-color);
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.clue-pill.playing .clue-pill-icon,
.clue-pill.playing .clue-pill-label {
    color: white;
}

.clue-pill.playing .clue-pill-text {
    color: rgba(255, 255, 255, 0.85);
}

.clue-pill-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.15rem;
}

.clue-pill-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.clue-pill-text {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 0.4rem;
    text-align: left;
    border-top: 1px solid rgba(53, 206, 141, 0.15);
    padding-top: 0.4rem;
}

/* Col 3: Lives stacked vertically */
.lives-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
}

#livesDisplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.life-heart {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.life-heart.lost {
    opacity: 0.2;
    filter: grayscale(1);
}

/* ===== ANSWER SLOTS ===== */

.answer-slots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.answer-slot {
    width: 42px;
    height: 52px;
    border-bottom: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.answer-slot.filled {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.answer-slot.current {
    border-bottom-color: var(--primary-color);
    background: rgba(53, 206, 141, 0.08);
    border-radius: 4px 4px 0 0;
}

.answer-slot.fixed {
    color: #adb5bd;
    border-bottom-color: transparent;
    font-size: 1.3rem;
}

.answer-slot.revealed {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

/* ===== LETTER WHEEL ===== */

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 1rem;
}

.letter-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 206, 141, 0.04) 0%, rgba(53, 206, 141, 0.10) 100%);
    border: 3px solid rgba(53, 206, 141, 0.15);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(53, 206, 141, 0.12), rgba(45, 182, 124, 0.22));
    border: 3px solid rgba(53, 206, 141, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.wheel-center-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.wheel-center-label {
    font-size: 0.6rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wheel-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: white;
    color: #212529;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)));
}

.wheel-letter:hover:not(.used):not(:disabled) {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px var(--primary-shadow);
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1.12);
}

.wheel-letter:active:not(.used):not(:disabled) {
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(0.95);
}

.wheel-letter.used {
    opacity: 0.15;
    pointer-events: none;
    background: #e9ecef;
    border-color: #dee2e6;
    color: #adb5bd;
    box-shadow: none;
}

.wheel-letter.wrong-flash {
    animation: letterWrongFlash 0.5s ease;
}

@keyframes letterWrongFlash {
    0%, 100% { background: white; border-color: var(--primary-color); }
    50% { background: rgba(220, 53, 69, 0.35); border-color: #dc3545; color: #dc3545; }
}

/* ===== WHEEL CONTROLS (Delete / Shuffle) ===== */

.wheel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.wheel-control-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 2rem;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.wheel-control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px var(--feature-shadow);
}

.wheel-control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wheel-control-btn:disabled:hover {
    border-color: #dee2e6;
    color: #495057;
    box-shadow: none;
}

/* ===== FEEDBACK MESSAGE ===== */

.feedback-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feedback-message.correct {
    color: #28a745;
}

.feedback-message.incorrect {
    color: #dc3545;
}

/* ===== FLASH ANIMATIONS ===== */

@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: flashCorrect 800ms ease;
}

.flash-wrong {
    animation: flashWrong 800ms ease;
}

@keyframes flashCorrect {
    0% { background: rgba(76, 175, 80, 0); }
    50% { background: rgba(76, 175, 80, 0.5); }
    100% { background: rgba(76, 175, 80, 0); }
}

@keyframes flashWrong {
    0% { background: rgba(244, 67, 54, 0); }
    50% { background: rgba(244, 67, 54, 0.5); }
    100% { background: rgba(244, 67, 54, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STEPPER - CLICKABLE / LOCKED ===== */

.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;
}

.step.locked {
    cursor: not-allowed;
    opacity: 0.5;
}

.step.locked:hover {
    transform: none;
}

/* ===== RESPONSIVE - TABLET ===== */

@media (max-width: 768px) {
    .difficulty-pills {
        flex-direction: column;
        align-items: center;
    }

    .difficulty-pill {
        max-width: 100%;
        width: 100%;
    }

    /* On mobile: columns stack naturally via Bootstrap */
    .game-layout {
        min-height: auto;
    }

    .audio-column {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .audio-column .clue-pill {
        flex: 1;
        margin-bottom: 0;
    }

    .clue-pill-text {
        display: none;
    }

    .lives-column {
        margin-bottom: 1rem;
    }

    #livesDisplay {
        flex-direction: row;
        gap: 0.3rem;
    }

    .wheel-container {
        width: 260px;
        height: 260px;
    }

    .wheel-letter {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .wheel-center {
        width: 60px;
        height: 60px;
    }

    .answer-slot {
        width: 36px;
        height: 46px;
        font-size: 1.3rem;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */

@media (max-width: 576px) {
    .wheel-container {
        width: 240px;
        height: 240px;
    }

    .wheel-letter {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .wheel-center {
        width: 54px;
        height: 54px;
    }

    .wheel-center-count {
        font-size: 1.25rem;
    }

    .answer-slot {
        width: 32px;
        height: 42px;
        font-size: 1.2rem;
        gap: 0.3rem;
    }

    .wheel-control-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .clue-section {
        padding: 1rem;
    }
}