:root {
    color-scheme: dark;
    --bg: #0d1117;
    --panel: #151c26;
    --panel-soft: #202936;
    --text: #f6f8fb;
    --muted: #aeb9c7;
    --line: rgba(255, 255, 255, 0.16);
    --life: #f4ca55;
    --neutral: #36d3a1;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 66px;
    padding: 12px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    background: #111720;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 900;
}

.brand img {
    width: 42px;
    height: 36px;
    object-fit: contain;
}

.back-link {
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.games-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(32px, 7vw, 72px) 0 48px;
}

.games-intro {
    margin-bottom: 24px;
}

.games-intro p,
.game-content p {
    margin: 0;
    color: var(--life);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 7px 0;
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: 0;
    line-height: 1;
}

.games-intro > span,
.game-description {
    color: var(--muted);
    line-height: 1.5;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 14px;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.game-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-media > span {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 7px;
    border-radius: 5px;
    color: #052016;
    background: var(--neutral);
    font-size: 11px;
    font-weight: 900;
}

.game-card.is-unavailable .game-media img {
    opacity: 0.52;
}

.game-card.is-unavailable .game-media > span {
    color: #2b2102;
    background: var(--life);
}

.game-card.is-unavailable .prepare-action {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--panel-soft);
}

.game-content {
    display: grid;
    gap: 13px;
    padding: 15px;
}

h2 {
    margin: 4px 0 0;
    font-size: 25px;
    letter-spacing: 0;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-tags span {
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.prepare-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 7px;
    color: #171202;
    background: var(--life);
    font-weight: 900;
}

@media (min-width: 720px) {
    .game-card {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
    }

    .game-media {
        height: 100%;
        min-height: 300px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .game-content {
        align-content: center;
        padding: 20px;
    }
}
