:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --border: #e2ded4;
    --ink: #1b2321;
    --ink-soft: #5c6664;
    --brand: #1f5f5b;
    --accent: #b8862f;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(27 35 33 / 6%), 0 8px 24px rgb(27 35 33 / 6%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121a19;
        --surface: #1a2523;
        --border: #2b3937;
        --ink: #eef2f0;
        --ink-soft: #9aa8a5;
        --brand: #7fc8bf;
        --accent: #e0b25f;
        --shadow: none;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.head { text-align: center; margin-bottom: 2.5rem; }
.mark { border-radius: 18px; box-shadow: var(--shadow); }

h1 {
    margin: 1rem 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.sub { margin: 0; color: var(--ink-soft); }

.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.app > a,
.app.is-soon {
    display: block;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 120ms ease, border-color 120ms ease;
}

.app > a:hover { border-color: var(--brand); transform: translateY(-1px); }
.app > a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.app.is-soon { opacity: 0.62; }

.app-name { display: block; font-weight: 600; color: var(--brand); }
.app-desc { display: block; margin-top: 0.2rem; font-size: 0.925rem; color: var(--ink-soft); }

/* A card with the game's own icon beside its text. The icon PNG already has
 * rounded corners and transparent edges, so it needs no radius of its own. */
.app > a.has-icon { display: flex; align-items: center; gap: 1rem; }
.app-icon { flex: none; width: 56px; height: 56px; }
.app-text { min-width: 0; }

.tag {
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 0.1em;
}

.foot { margin-top: 2.5rem; text-align: center; font-size: 0.85rem; color: var(--ink-soft); }
.foot p { margin: 0; }
.foot a { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
    .app > a { transition: none; }
}
