:root {
    --bg: #0a0a0a;
    --bg-raised: #141414;
    --border: #262626;
    --text: #e0e0e0;
    --text-bright: #ffffff;
    --text-dim: #888;
    --text-faint: #555;
    --accent: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.wordmark {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-bright);
}

.nav-links a[aria-current="page"] {
    color: var(--accent);
}

main.container {
    flex: 1;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

h1 {
    color: var(--text-bright);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

h2 {
    color: var(--text-bright);
    font-size: 1.35rem;
    margin: 2.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
    text-decoration-color: currentColor;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 40rem;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.25rem 0;
}

.hero {
    padding: 2.5rem 0 1.5rem;
}

.hero h1 {
    font-size: 2.75rem;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.button:hover {
    background: #2f6fd6;
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    margin: 1.5rem 0;
}

.card h2 {
    margin-top: 0;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.meta {
    color: var(--text-faint);
    font-size: 0.9rem;
}

.meta a {
    color: var(--text-dim);
    text-decoration-color: color-mix(in srgb, var(--text-dim) 40%, transparent);
}

.meta a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}

.game-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
    min-width: 14rem;
}

.game-info h2,
.game-info .meta {
    margin-bottom: 0.3rem;
}

.game-info :last-child {
    margin-bottom: 0;
}

.store-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.store-badge {
    display: inline-block;
    transition: filter 0.35s ease;
}

/* Glow blooms in via the transition, then the delayed animation takes over
   from the same value and breathes between the two keyframes. */
.store-badge:hover {
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--text-bright) 18%, transparent));
    animation: badge-glow 1s ease-in-out 0.35s infinite alternate;
}

.store-badge:active {
    animation: none;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--text-bright) 10%, transparent));
}

@keyframes badge-glow {
    from {
        filter: drop-shadow(0 0 10px color-mix(in srgb, var(--text-bright) 18%, transparent));
    }

    to {
        filter: drop-shadow(0 0 14px color-mix(in srgb, var(--text-bright) 65%, transparent));
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-badge:hover {
        animation: none;
    }
}

.store-badge img {
    display: block;
    height: 60px;
    width: auto;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.site-footer .container {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-faint);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .nav-links {
        gap: 1.1rem;
    }
}
