.theme-color {
    color: #2563eb !important;
}

.theme-back-color {
    background-color: #2563eb !important;
    color: white !important;
}


/* ============================= */
/* PRIMARY COLOR OVERRIDE       */
/* ============================= */

:root {
    --primary-color: #2563eb;
    /* change this */
}

/* Normal state */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Hover state */
.hover\:text-primary:hover {
    color: var(--primary-color) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--primary-color) !important;
}

.hover\:border-primary:hover {
    border-color: var(--primary-color) !important;
}

/* Common Tailwind blues fallback */
.text-blue-500,
.text-blue-600 {
    color: var(--primary-color) !important;
}

.bg-blue-500,
.bg-blue-600 {
    background-color: var(--primary-color) !important;
}

.hover\:bg-blue-500:hover,
.hover\:bg-blue-600:hover {
    background-color: var(--primary-color) !important;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Main Button */
.btn-3d-shimmer {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.75rem;

    /* Blue gradient */
    background: linear-gradient(135deg, #60a5fa, #2563eb);

    /* 3D depth */
    box-shadow:
        0 10px 0 #1e40af,
        0 15px 25px rgba(0, 0, 0, 0.35);

    overflow: hidden;
    transition: all 0.25s ease;
}

/* Hover = lift */
.btn-3d-shimmer:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 0 #1e40af,
        0 22px 35px rgba(0, 0, 0, 0.45);
}

/* Active = press */
.btn-3d-shimmer:active {
    transform: translateY(4px);
    box-shadow:
        0 5px 0 #1e40af,
        0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Shimmer effect */
.btn-3d-shimmer .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.45),
            transparent);
    animation: shimmer 2.8s infinite;
}

/* Animation */
@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 140%;
    }
}

.winner-scroll {
    animation: scroll-left 25s linear infinite;
    width: max-content;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Card */
.game-card {
    background-color: #ffffff;
    border: 2px solid #2563eb;
    /* blue border */
    border-radius: 1rem;
    box-sizing: border-box;
}

/* Hover glow */
.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(37, 99, 235, 0.08),
            transparent,
            rgba(37, 99, 235, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover::after {
    opacity: 1;
}

/* Title */
.game-title {
    color: #1f2937;
    /* dark gray */
}

/* Result text */
.game-result {
    color: #4b5563;
}

/* Chart links */
.game-links a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dotted #2563eb;
}

.game-links span {
    color: #9ca3af;
}

/* Info text */
.game-info {
    color: #6b7280;
    cursor: pointer;
}

/* Play button */
.play-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

/* Mobile view adjustments */
@media (max-width: 640px) {

    .game-card {
        padding: 0.75rem !important;
        /* smaller card height */
    }

    .game-title {
        font-size: 0.95rem;
    }

    .game-result {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    .game-links {
        margin-top: 0.4rem;
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .play-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .play-btn svg {
        width: 14px;
        height: 14px;
    }

    .game-info {
        font-size: 0.65rem;
    }
}