.game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.game-card.football {
    border-top: 5px solid var(--football-primary);
}

.game-card.cricket {
    border-top: 5px solid var(--cricket-primary);
}

.game-card.f1 {
    border-top: 5px solid var(--f1-primary);
}

.game-card.tennis {
    border-top: 5px solid var(--tennis-primary);
}

.game-card.golf {
    border-top: 5px solid var(--golf-primary);
}

.game-card.basketball {
    border-top: 5px solid var(--basketball-primary);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-medium));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.football {
    background: linear-gradient(to bottom, var(--football-primary), var(--football-hover));
}

.cta-button.cricket {
    background: linear-gradient(to bottom, var(--cricket-primary), var(--cricket-hover));
    color: var(--black);
}

.cta-button.f1 {
    background: linear-gradient(to bottom, var(--f1-primary), var(--f1-hover));
}

.cta-button.tennis {
    background: linear-gradient(to bottom, var(--tennis-primary), var(--tennis-hover));
    color: var(--black);
}

.cta-button.golf {
    background: linear-gradient(to bottom, var(--golf-primary), var(--golf-hover));
}

.cta-button.basketball {
    background: linear-gradient(to bottom, var(--basketball-primary), var(--basketball-hover));
}

/* Help Button and Overlay */
.help-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-button:hover {
    background: var(--primary-medium);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-overlay.active {
    opacity: 1;
    visibility: visible;
}

.help-modal {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary-light);
}

.help-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.help-close:hover {
    background: var(--primary-medium);
}

.help-title {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.help-section {
    margin-bottom: 2rem;
}

.help-section h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.help-section p {
    color: var(--off-white);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-clues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.help-clue-item {
    background: var(--primary-medium);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-clue-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.help-clue-icon.flag {
    background: linear-gradient(45deg, #e74c3c, #3498db);
}

.help-clue-icon.club {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.help-clue-icon.text {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.help-clue-icon.number {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.help-clue-content {
    flex: 1;
}

.help-clue-content h4 {
    color: var(--primary-light);
    margin-bottom: 0.25rem;
    font-family: 'Oswald', sans-serif;
}

.help-clue-content p {
    color: var(--off-white);
    margin: 0;
    font-size: 0.9rem;
}

.help-range {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.help-indicators {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.help-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-indicator-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.help-indicator-box.correct {
    background-color: #4CAF50;
}

.help-indicator-box.close {
    background-color: #FFC107;
}

.help-indicator span {
    color: var(--off-white);
    font-size: 0.9rem;
}

/* Game Overview Cards */
.game-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.overview-card {
    background: var(--primary-medium);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--primary-light);
}

.overview-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.overview-card h3 {
    color: var(--primary-light);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.overview-card p {
    color: var(--off-white);
    margin: 0;
    line-height: 1.5;
}

/* Tutorial Steps */
.tutorial-step {
    background: var(--primary-medium);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-light);
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.step-number {
    background: var(--primary-light);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h4 {
    color: var(--primary-light);
    font-family: 'Oswald', sans-serif;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--off-white);
    margin: 0;
    line-height: 1.5;
}

/* Pro Tips */
.pro-tips p {
    background: var(--primary-medium);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    border-left: 3px solid var(--primary-light);
}

@media (max-width: 768px) {
    .help-modal {
        margin: 0.5rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .help-title {
        font-size: 1.5rem;
    }
    
    .help-clue-item {
        flex-direction: column;
        text-align: center;
    }
    
    .help-clues {
        grid-template-columns: 1fr;
    }
    
    .help-indicators {
        justify-content: center;
    }
    
    .game-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }
    
    .step-number {
        margin: 0;
    }
    
    .step-content {
        text-align: center;
    }
    
    .tutorial-step {
        padding: 1rem;
    }
}