/* Games landing page. Retro look: neon arcade. Modernized: the site theme
   from styles.css (including dark mode). */

.games-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    box-sizing: border-box;
}

.games-heading {
    margin: 8px 0 0;
    text-align: center;
    font-size: clamp(32px, 7vw, 52px);
}
.games-tagline { text-align: center; margin: 6px 0 24px; opacity: 0.85; }
.games-more { text-align: center; margin-top: 28px; opacity: 0.7; font-size: 14px; }

.game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }

.game-card {
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid rgba(127, 127, 127, 0.3);
}

.game-thumb {
    position: relative;
    display: block;
    line-height: 0;
    overflow: hidden;
}
.game-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.game-thumb:hover img, .game-thumb:focus-visible img { transform: scale(1.03); }
.game-play {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 18px;
    line-height: 1;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #140e0a;
    background: #fcd624;
    border: 3px solid #140e0a;
    border-radius: 6px;
    box-shadow: 0 4px 0 #140e0a;
    transition: transform 0.15s ease;
}
.game-thumb:hover .game-play, .game-thumb:focus-visible .game-play { transform: translateY(-3px); }

.game-info { padding: 16px 20px 20px; }
.game-info h2 { margin: 0 0 6px; font-size: 24px; }
.game-info h2 a { color: inherit; text-decoration: none; }
.game-info h2 a:hover { text-decoration: underline; }
.game-info p { margin: 0 0 12px; line-height: 1.5; }

.game-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; }
.game-tags li {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid currentColor;
    opacity: 0.8;
}

.game-button {
    display: inline-block;
    padding: 10px 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border-radius: 6px;
}
.game-button:hover { filter: brightness(1.1); }

/* ---------- retro: neon arcade ---------- */
body.retro-mode.games { background: #0e1a12; color: #e8f5e0; }
body.retro-mode .games-heading {
    font-family: Impact, "Arial Black", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fcd624;
    text-shadow: 3px 3px 0 #140e0a, 0 0 14px rgba(134, 184, 90, 0.7);
}
body.retro-mode .game-card {
    background: #16251b;
    color: #e8f5e0;
    border: 4px solid #140e0a;
    border-radius: 8px;
    box-shadow: 0 0 0 3px #fcd624, 0 12px 30px rgba(0, 0, 0, 0.5);
}
body.retro-mode .game-info h2 {
    font-family: Impact, "Arial Black", sans-serif;
    letter-spacing: 0.03em;
    color: #fcd624;
}
body.retro-mode .game-tags li { color: #7dff9a; }
body.retro-mode .game-button {
    color: #140e0a;
    background: #fcd624;
    border: 3px solid #140e0a;
    box-shadow: 0 4px 0 #ce8c10;
}
body.retro-mode .games-more { color: #7dff9a; }

@media (max-width: 520px) {
    .game-play { right: 8px; bottom: 8px; padding: 6px 12px; font-size: 14px; }
    .game-info { padding: 12px 14px 16px; }
    .game-info h2 { font-size: 20px; }
}
