:root {
    --bg: #090c0a;
    --surface: #0f1410;
    --surface-2: #131915;
    --surface-hover: #172019;
    --border: #273029;
    --border-soft: #1d251f;
    --text: #f2f5f2;
    --muted: #819084;
    --muted-2: #647067;
    --green: #17d964;
    --green-dark: #0d6f34;
    --blue: #56a5ff;
    --orange: #ffad32;
    --purple: #b883ff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -160px, rgba(30, 104, 52, 0.14), transparent 420px),
        var(--bg);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

a {
    color: inherit;
}

.topbar {
    height: 53px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #111612;
    display: flex;
    align-items: center;
}

.topbar-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .04em;
}

.brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 6px;
    border: 1px solid #0c8c40;
    background: #0c5c2c;
    color: #2cf075;
    display: grid;
    place-items: center;
    font-size: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.brand-text {
    font-size: 16px;
}

.game-count {
    border: 1px solid var(--border);
    background: #101511;
    color: #849187;
    padding: 7px 11px;
    border-radius: 5px;
    font-size: 12px;
}

.page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0 28px;
}

.hero {
    border-bottom: 1px solid var(--border-soft);
    padding: 0 0 28px;
    margin-bottom: 22px;
}

.eyebrow {
    color: #7f9b86;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -.05em;
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
    margin: 15px 0 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.game-card {
    --accent: var(--green);
    --accent-soft: rgba(23, 217, 100, .10);

    min-height: 255px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, #121713 0%, #0f1410 100%);
    text-decoration: none;
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent);
    opacity: .8;
}

.game-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    top: -110px;
    border-radius: 50%;
    background: var(--accent-soft);
    filter: blur(3px);
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent), var(--border) 62%);
    background: linear-gradient(180deg, #151c17 0%, #111712 100%);
}

.game-card.accent-blue {
    --accent: var(--blue);
    --accent-soft: rgba(86, 165, 255, .11);
}

.game-card.accent-orange {
    --accent: var(--orange);
    --accent-soft: rgba(255, 173, 50, .11);
}

.game-card.accent-purple {
    --accent: var(--purple);
    --accent-soft: rgba(184, 131, 255, .11);
}

.game-card.is-disabled {
    opacity: .48;
    cursor: default;
}

.game-card.is-disabled:hover {
    transform: none;
    border-color: var(--border);
}

.game-card-top,
.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.game-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 52%);
    background: color-mix(in srgb, var(--accent), transparent 82%);
    color: var(--accent);
    font-weight: 900;
    font-size: 18px;
}

.game-badge {
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #829086;
    background: rgba(8, 11, 9, .36);
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.game-card-content {
    position: relative;
    z-index: 1;
    margin: 35px 0 25px;
}

.game-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -.03em;
}

.game-card p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.game-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    padding-top: 14px;
    color: var(--accent);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .04em;
}

.arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform .14s ease;
}

.game-card:hover .arrow {
    transform: translateX(4px);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    font-size: 11px;
    padding: 36px 0 10px;
}

.footer-dot {
    color: #354039;
}

@media (max-width: 760px) {
    .topbar-inner,
    .page {
        width: min(100% - 22px, 1180px);
    }

    .page {
        padding-top: 30px;
    }

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

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

    .game-count {
        display: none;
    }
}
