:root {
    color-scheme: light;
    --page: #ede4d4;
    --panel: #fffaf1;
    --panel-soft: #f5eddf;
    --line: #d0bea2;
    --line-strong: #937856;
    --text: #1d1b17;
    --muted: #665e51;
    --accent: #8b2f23;
    --blue: #1f5f87;
    --shadow: 0 18px 40px rgba(50, 40, 26, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Yu Gothic", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
    background:
        linear-gradient(90deg, rgba(29, 27, 23, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(29, 27, 23, 0.035) 1px, transparent 1px),
        var(--page);
    background-size: 30px 30px;
}

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

.wrap {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 0 48px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.back-link {
    order: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 72px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 250, 241, 0.78);
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.lead {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.game-card {
    display: block;
    min-height: 190px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: border-color 140ms ease, transform 140ms ease;
}

.game-card:hover,
.game-card:focus-visible,
.back-link:hover,
.back-link:focus-visible {
    border-color: var(--blue);
    transform: translateY(-1px);
    outline: none;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
}

.game-card h2 {
    margin: 18px 0 10px;
    font-size: 1.7rem;
    letter-spacing: 0;
}

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

@media (max-width: 720px) {
    .page-header {
        display: grid;
    }

    .back-link {
        order: 0;
        width: fit-content;
    }

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