/* =================================================================
   NUMBER SEQUENCE SPECIFIC
   ================================================================= */
.game-presentation-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin-top: 3rem;
    margin-left: 2rem;
}

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

.ns-game-board {
    max-width: 440px;
    width: 100%;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .ns-game-board {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ns-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Slightly smaller radius for small tiles */
    padding: 0.25rem 0.35rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 1.125rem;
    /* text-lg */
    opacity: 0;
    transform: translateY(10px);
    animation: ns-tile-entry 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    min-width: 2.5rem;
    /* Ensure numbers don't squash */
}

@media (min-width: 768px) {
    .ns-tile {
        padding: 0.5rem 1rem;
        /* md:px-4 md:py-2 */
        font-size: 1.5rem;
        /* md:text-2xl */
        border-radius: 12px;
        min-width: 3.5rem;
    }
}

.dark .ns-tile {
    background: #374151;
    border-color: #4b5563;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ns-focal-q {
    color: #3b82f6;
    animation: ns-pulse-q 2s ease-in-out infinite;
    display: inline-block;
}

/* Animations */
@keyframes ns-float-mascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ns-tile-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ns-pulse-q {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 0px rgba(59, 130, 246, 0);
    }

    50% {
        transform: scale(1.2);
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
}

/* Enhanced Buttons */
.sequence-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sequence-option:not(:disabled):hover {
    box-shadow: 0 10px 15px -3px rgba(58, 134, 255, 0.3), 0 4px 6px -2px rgba(58, 134, 255, 0.1) !important;
}

.sequence-option:active {
    transform: scale(0.95);
}

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

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

    .ns-game-board {
        padding: 1.5rem;
    }
}

/* Mobile optimization classes for JS templates */
.ns-gecko-mobile-toggle {
    display: none !important;
}

.ns-header-responsive {
    font-size: 1rem !important;
    /* text-base */
}

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

    .ns-header-responsive {
        font-size: 1.25rem !important;
        /* text-xl */
    }
}

/* Responsive utilities for JS templates */
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =================================================================
   NUMBER SEQUENCE: DESKTOP GAME BOARD SCALING
   ================================================================= */
@media (min-width: 768px) {

    /* Expand the main game board container */
    .ns-game-board {
        max-width: 600px !important;
        padding: 3.5rem !important;
    }

    /* Scale up the top sequence tiles */
    .ns-tile {
        padding: 1rem 1.5rem !important;
        font-size: 2.25rem !important;
        border-radius: 14px !important;
    }

    /* Scale up the 2x2 multiple-choice answer buttons */
    .sequence-option {
        min-width: 6rem !important;
        min-height: 6rem !important;
        font-size: 2.25rem !important;
        border-radius: 14px !important;
    }

    /* Center fixed-width buttons within grid columns and increase grid width */
    .ns-options-grid {
        justify-items: center;
        max-width: 400px !important;
    }
}