/* Games menu — frogswiper.cloud */

body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(45, 212, 191, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(94, 234, 212, 0.06) 0%, transparent 50%);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.back-link {
    align-self: flex-start;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.back-link:hover {
    color: var(--primary);
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.hero .logo {
    font-size: 3.5rem;
    display: inline-block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 24px rgba(139, 92, 246, 0.15));
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.hero .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.6rem;
    font-weight: 400;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
}

.game-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.game-card.featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
}

.game-card:hover:not(.coming-soon) {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 20px 48px var(--primary-glow),
        0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(139, 92, 246, 0.25);
}

.game-card.coming-soon {
    opacity: 0.65;
    cursor: default;
}

.game-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%),
        linear-gradient(135deg, rgba(12, 12, 13, 0.85) 0%, rgba(31, 31, 35, 0.85) 100%);
    min-height: 180px;
    flex-shrink: 0;
}
.game-art.rentday-art {
    background:
        radial-gradient(ellipse at top right, rgba(255, 200, 100, 0.25), transparent 60%),
        linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
}

.game-card.featured .game-art {
    width: 280px;
    min-height: 100%;
}

.game-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.4));
}

.game-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
}

.game-body {
    padding: 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.game-body .game-meta {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.game-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.page-footer {
    margin-top: auto;
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.page-footer a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .game-card.featured {
        grid-column: span 2;
        flex-direction: column;
    }
    .game-card.featured .game-art {
        width: 100%;
        min-height: 140px;
    }
}

@media (max-width: 560px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    .game-card.featured {
        grid-column: span 1;
    }
    .game-card {
        grid-column: span 1;
    }
}
