/* Daily Mosaic — custom styles */
/* Scoped to cells rendered by daily-mosaic.js */

/* Cell fill transition */
.fap-cell {
    transition: background-color 0.1s ease, border-color 0.1s ease;
}

/* Victory banner pulse */
@keyframes mosaic-victory-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.fap-victory-active {
    animation: mosaic-victory-pulse 1.5s ease-in-out infinite;
}

/* Clue number satisfied glow */
.fap-clue-satisfied {
    text-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

/* Presentation Wrapper for Mascot */
.mosaic-presentation-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin-top: 1rem;
    margin-left: 5rem;
}

.mosaic-gecko {
    max-width: 200px;
    margin-right: -1rem;
    position: relative;
    z-index: 30;
}

.mosaic-gecko-mobile-toggle {
    display: none !important;
}

@media (min-width: 768px) {
    .mosaic-gecko-mobile-toggle {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .mosaic-presentation-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        margin-left: 0;
    }

    .mosaic-gecko {
        margin-bottom: -1rem;
        margin-right: 0;
        max-width: 150px;
    }
}

/* 3x3 Grid Hover Highlight Overlay */
.fap-cell.fap-hover-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(58, 134, 255, 0.15);
    /* Accent color transparent */
    pointer-events: none;
    z-index: 10;
}

.dark .fap-cell.fap-hover-highlight::after {
    background-color: rgba(58, 134, 255, 0.25);
}

.fap-cell.is-filled {
    background-color: #334155;
    color: #ffffff;
}

.dark .fap-cell.is-filled {
    background-color: #1e293b;
    color: #ffffff;
}

.fap-cell.is-empty {
    background-color: #f1f5f9;
    color: #1e293b;
}

.dark .fap-cell.is-empty {
    background-color: #334155;
    color: #e2e8f0;
}

.fap-cell.clue-satisfied {
    color: #10b981 !important;
    text-decoration: line-through;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.fap-cell.clue-overfilled {
    color: #ff6b6b !important;
    text-decoration: underline;
    background-color: #fee2e2 !important;
}

.dark .fap-cell.clue-overfilled {
    background-color: #4c1d1d !important;
}