.game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600&display=swap');
.game-card {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.1);
    margin-bottom:35px;
}

.game-card:hover {
    transform: none;
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.game-card-image {
    position: relative;
    padding-top: 135%; /* slightly taller */
    overflow: hidden;
}

.game-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-card-image img {
    transform: scale(1.06);
}

/* Title overlay inside image */
.game-card-title {
    position: absolute;
    left: calc(25px + 0.1rem);
    bottom: calc(25px + 0.1rem);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    z-index: 3;
}

.game-card-title i {
    margin-right: 8px;
}

/* Bottom-half gradient overlay from 50% to 100% */
.game-card-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 30%;
    height: 70%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.96) 100%
    );
    z-index: 1;
}

.swal2-input-label {
    color: #ffc107 !important;
}

.game-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.game-card-badges-right {
    left: auto;
    right: 15px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    background: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.game-badge.credit {
    background: linear-gradient(135deg, #ffd54f, #ffc107);
    color: #1a1a1a;
}

.game-badge i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Overlayed content */
.game-card-content {
    display: none; /* hidden in new design */
}

.game-card-content h3 { display: none; }

.game-card-content p { display: none; }

.game-card-actions { display: flex; justify-content: center; align-items: center; gap: 12px; }

.btn-leaderboard, .btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-leaderboard {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.2);
}

.btn-leaderboard:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
    transform: translateY(-2px);
}

.btn-play {
    background: #fff;
    color: #000;
    padding-right: 22px;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.0);
    font-family: 'Roboto Mono', monospace;
    width: 100%;
    max-width: 240px;
    justify-content: center;
}

.btn-play:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    text-decoration: none;
}

.btn-play:focus { text-decoration: none; }
.btn-play span { text-decoration: none; }

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.game-badge {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .game-card-image { padding-top: 145%; }
    .game-card-content { padding: 1.25rem 1.25rem 1.25rem 1.25rem; }
    .game-card-content h3 { font-size: 1.25rem; }
    .game-card-actions { flex-direction: column; gap: 10px; }
    .btn-leaderboard, .btn-play { width: 100%; justify-content: center; }
}

/* Extras */
.game-badge.coming-soon { background: #6c757d; animation: pulse 2s infinite; }
.btn-leaderboard.disabled, .btn-play.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1);} 50% { transform: scale(1.05);} 100% { transform: scale(1);} }


