body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f6f8fa 0%, #e3e9f7 100%);
    color: #222;
    min-height: 100vh;
}
.header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; height: 180px;
    background: linear-gradient(90deg, #2a7cff 0%, #6a82fb 100%);
    z-index: 0;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    opacity: 0.12;
    pointer-events: none;
}
header {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding: 2.5rem 0 1.2rem 0;
    text-align: center;
    z-index: 1;
}
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}
.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2a7cff;
    text-shadow: 0 2px 8px rgba(42,124,255,0.08);
}
.tagline {
    font-size: 1.15rem;
    color: #4a5a7a;
    margin-top: 0.3rem;
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.main-nav {
    margin: 0.5rem 0 0.5rem 0;
}
main {
    max-width: 1400px;
    margin: 2.5rem auto 0 auto;
    padding: 0 2rem;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.game-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(42,124,255,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-height: 300px;
    border: 1.5px solid #e3e9f7;
}
.game-card:hover, .game-card:focus {
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 12px 36px rgba(42,124,255,0.18), 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
}
.game-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #e3e9f7;
    border-bottom: none;
    display: block;
}
.game-card .card-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(0deg, rgba(42,124,255,0.85) 0%, rgba(42,124,255,0.0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0.7rem 1rem 1.1rem 1rem;
}
.game-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.7rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(42,124,255,0.18);
    letter-spacing: 0.5px;
}
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5rem 1.4rem;
    background: linear-gradient(90deg, #2a7cff 0%, #6a82fb 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42,124,255,0.13);
    transition: background 0.15s, transform 0.15s;
    text-align: center;
    text-decoration: none;
    outline: none;
    border: 2px solid transparent;
}
.play-btn:hover, .play-btn:focus {
    background: linear-gradient(90deg, #1a5fd0 0%, #4a6edb 100%);
    transform: scale(1.07);
    border: 2px solid #fff;
}
.play-btn .play-icon {
    font-size: 1.2em;
    margin-right: 0.2em;
}
.load-more-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}
#load-more-btn {
    padding: 0.8rem 2.5rem;
    font-size: 1.15rem;
    background: linear-gradient(90deg, #2a7cff 0%, #6a82fb 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42,124,255,0.10);
    transition: background 0.15s;
    margin-bottom: 0.5rem;
}
#load-more-btn:disabled {
    background: #b3d1ff;
    cursor: not-allowed;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2a7cff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0.5rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
footer {
    background: #fff;
    color: #888;
    text-align: center;
    padding: 1.5rem 0 1.5rem 0;
    font-size: 1.08rem;
    border-top: 1.5px solid #e3e9f7;
    margin-top: 2.5rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}
.footer-social-link {
    font-size: 1.5rem;
    color: #2a7cff;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-social-link:hover, .footer-social-link:focus {
    color: #6a82fb;
}
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    .game-card img {
        height: 110px;
    }
}
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    .game-card {
        border-radius: 10px;
        box-shadow: none;
        border: none;
        min-height: unset;
        padding: 0.2rem 0.1rem 0.5rem 0.1rem;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: none;
        position: relative;
        cursor: pointer;
    }
    .game-card img {
        width: 72px;
        height: 72px;
        border-radius: 12px;
        object-fit: cover;
        margin-bottom: 0.3rem;
        background: #f0f0f0;
        border: 1px solid #eee;
    }
    .game-title {
        color: #222;
        font-size: 0.92rem;
        font-weight: 500;
        margin: 0;
        padding: 0 0.1rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: none;
        width: 100%;
    }
    .game-card .card-overlay,
    .play-btn {
        display: none !important;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    main {
        margin: 0.5rem 0 0 0;
        padding: 0 0.2rem;
    }
    #load-more-btn {
        font-size: 0.98rem;
        padding: 0.5rem 0.8rem;
        border-radius: 18px;
    }
    .footer-content {
        font-size: 0.92rem;
    }
}

/* Desktop Card Style */
@media (min-width: 601px) {
    .game-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 6px 32px rgba(42,124,255,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
        border: 1.5px solid #e3e9f7;
        overflow: hidden;
        transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-decoration: none;
        color: inherit;
        position: relative;
        min-height: 0;
        padding: 0;
    }
    .game-card:hover, .game-card:focus {
        transform: translateY(-10px) scale(1.045);
        box-shadow: 0 16px 48px rgba(42,124,255,0.18), 0 2px 8px rgba(0,0,0,0.10);
        outline: none;
    }
    .game-card img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        background: #e3e9f7;
        border-bottom: none;
        display: block;
        transition: filter 0.18s;
    }
    .game-card .card-overlay {
        position: absolute;
        left: 0; right: 0; top: 0; bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        opacity: 0;
        background: linear-gradient(180deg, rgba(42,124,255,0.10) 0%, rgba(42,124,255,0.30) 100%);
        transition: opacity 0.18s;
    }
    .game-card:hover .card-overlay,
    .game-card:focus .card-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .game-title {
        color: #222;
        font-size: 1.18rem;
        font-weight: 700;
        margin: 1.1rem 0 0.7rem 0;
        text-align: center;
        letter-spacing: 0.5px;
        text-shadow: none;
        background: none;
        padding: 0 0.5rem;
    }
    .card-overlay .game-title {
        color: #fff;
        font-size: 1.22rem;
        font-weight: 700;
        margin: 0 0 1.2rem 0;
        text-shadow: 0 2px 8px rgba(42,124,255,0.18);
        background: none;
        padding: 0 0.5rem;
    }
    .play-btn {
        display: flex;
        align-items: center;
        gap: 0.5em;
        padding: 0.7rem 2.2rem;
        background: linear-gradient(90deg, #2a7cff 0%, #6a82fb 100%);
        color: #fff;
        border: none;
        border-radius: 32px;
        font-size: 1.15rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(42,124,255,0.13);
        transition: background 0.15s, transform 0.15s;
        text-align: center;
        text-decoration: none;
        outline: none;
        border: 2px solid transparent;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px) scale(0.95);
        animation: none;
    }
    .game-card:hover .play-btn,
    .game-card:focus .play-btn {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1.08);
        animation: popIn 0.22s cubic-bezier(.4,2,.6,1);
    }
    @keyframes popIn {
        0% { opacity: 0; transform: translateY(20px) scale(0.95); }
        100% { opacity: 1; transform: translateY(0) scale(1.08); }
    }
    .play-btn .play-icon {
        font-size: 1.3em;
        margin-right: 0.2em;
    }
}

#game-iframe-container {
    display: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 2rem 0;
    text-align: center;
}
#game-iframe {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(42,124,255,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    border: 1.5px solid #e3e9f7;
    background: #fff;
}
.back-btn {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #2a7cff 0%, #6a82fb 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42,124,255,0.10);
    transition: background 0.15s;
}
.back-btn:hover, .back-btn:focus {
    background: linear-gradient(90deg, #1a5fd0 0%, #4a6edb 100%);
    outline: none;
}
@media (max-width: 900px) {
    #game-iframe {
        height: 55vw;
        min-height: 220px;
    }
    #game-iframe-container {
        padding: 1rem 0 1rem 0;
    }
}
@media (max-width: 600px) {
    #game-iframe {
        height: 45vw;
        min-height: 120px;
    }
    .back-btn {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
        border-radius: 18px;
    }
} 