:root {
    --felt: #135740;
    --felt-dark: #0c3b2b;
    --felt-deep: #082a1f;
    --felt-line: rgba(255, 255, 255, 0.12);
    --cream: #fbf7ee;
    --ink: #1c1c1c;
    --gold: #d9a234;
    --gold-light: #f2c65c;
    --gold-dark: #9e7120;
    --text-light: #eef5f1;
    --text-muted-light: #b5cdc2;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --heading-font: 'Cinzel', Georgia, serif;
}

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--text-light);
    background-color: var(--felt);
    background-image:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.35), transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2 {
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
}

.site-main {
    flex: 1;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.site-footer {
    background: var(--felt-deep);
    color: var(--text-muted-light);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Hero */

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

.hero-cards {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.hero h1 {
    color: var(--gold-light);
    font-size: 2.6rem;
    font-weight: 700;
    margin: 1.25rem 0 0.25rem;
}

.hero p {
    color: var(--text-muted-light);
    font-size: 1.1rem;
    margin: 0;
}

/* Game cards */

.game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--cream);
    color: var(--ink);
    border-radius: var(--radius);
    border: 4px solid transparent;
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover,
.game-card:focus {
    color: var(--ink);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--felt);
    color: var(--gold-light);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.game-card h2 {
    color: var(--felt-deep);
    font-size: 1.5rem;
    font-weight: 700;
}

.game-card p {
    flex: 1;
    color: #4a4a4a;
    margin-bottom: 1.25rem;
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border: 1px solid var(--gold-dark);
    color: var(--felt-deep);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.55rem 1.4rem;
}

.game-card:hover .btn-gold {
    background: var(--gold);
    color: var(--felt-deep);
}

/* Back to top */

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1030;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--felt-deep);
    font-size: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold-light);
    color: var(--felt-deep);
}

@media (max-width: 575.98px) {
    .site-main {
        padding-top: 1.5rem;
    }

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

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
    }
}
