/* Bloco de identidade: concentra cores e medidas reutilizadas pelo portal. */
:root {
    color-scheme: dark;
    --background: #080c12;
    --surface: #111824;
    --surface-soft: #182131;
    --border: #2a3547;
    --text: #f5f7fa;
    --muted: #aab5c5;
    --accent: #69e2b3;
    --accent-dark: #102e26;
    --radius: 20px;
}

/* Bloco de normalizacao: cria uma base previsivel em diferentes navegadores. */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(105, 226, 179, 0.12), transparent 32rem),
        var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Bloco do cabecalho: mantem marca e estado do ambiente alinhados. */
.site-header,
.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    min-height: 84px;
    border-bottom: 1px solid rgba(170, 181, 197, 0.16);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #07110e;
    background: var(--accent);
    border-radius: 10px;
}

.environment-badge,
.status {
    padding: 7px 10px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Bloco principal: limita a largura e cria respiro vertical. */
.page-shell {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 164px);
    margin: 0 auto;
    padding: 88px 0;
}

.hero {
    max-width: 720px;
    margin-bottom: 48px;
}

.eyebrow,
.game-type {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 7vw, 5.3rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-text {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.7;
}

/* Bloco dos jogos: organiza os cartoes em uma grade responsiva. */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.game-card {
    min-height: 370px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(145deg, var(--surface-soft), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.game-card-featured {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 30px 90px rgba(0, 0, 0, 0.24);
}

.game-card-muted {
    opacity: 0.55;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--accent);
    background: var(--accent-dark);
    border: 1px solid rgba(105, 226, 179, 0.28);
    border-radius: 15px;
    font-size: 1.65rem;
}

.status-ready {
    color: var(--accent);
    border-color: rgba(105, 226, 179, 0.3);
}

.game-card h2 {
    margin-bottom: 12px;
    font-size: 2rem;
    letter-spacing: -0.035em;
}

.game-card p:not(.game-type) {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.game-action {
    width: fit-content;
    padding: 13px 18px;
    color: #07110e;
    background: var(--accent);
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}

.game-action:hover,
.game-action:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.game-action-disabled {
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
}

/* Bloco do rodape: encerra a pagina com informacoes discretas. */
.site-footer {
    min-height: 80px;
    color: var(--muted);
    border-top: 1px solid rgba(170, 181, 197, 0.16);
    font-size: 0.85rem;
}

/* Bloco responsivo: adapta a grade e os espacamentos a telas pequenas. */
@media (max-width: 720px) {
    .site-header,
    .site-footer,
    .page-shell {
        width: min(100% - 28px, 1120px);
    }

    .page-shell {
        padding: 56px 0;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        min-height: 330px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
}

