@font-face {
    font-family: "Roses FF0000 Local";
    src: url("../fonts/RosesareFF0000.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --page-bg: #f7f4ef;
    --surface: #ffffff;
    --surface-muted: #fbf8f2;
    --surface-hover: #ffffff;
    --surface-translucent: rgba(255, 255, 255, 0.96);
    --border: #d8d1c7;
    --text: #221f1a;
    --muted: #635c53;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        color-scheme: dark;
        --page-bg: #1b1815;
        --surface: #242019;
        --surface-muted: #2c2620;
        --surface-hover: #35302a;
        --surface-translucent: rgba(36, 32, 25, 0.96);
        --border: #3a332b;
        --text: #f2ede4;
        --muted: #b8ada0;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #1b1815;
    --surface: #242019;
    --surface-muted: #2c2620;
    --surface-hover: #35302a;
    --surface-translucent: rgba(36, 32, 25, 0.96);
    --border: #3a332b;
    --text: #f2ede4;
    --muted: #b8ada0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 40px 20px 56px;
    font-family: "Trebuchet MS", "Avenir Next", sans-serif;
    color: var(--text);
    background: var(--page-bg);
}

.page-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    margin-bottom: 28px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-family: "Roses FF0000 Local", cursive;
    font-size: clamp(2.2rem, 5.4vw, 4.1rem);
    line-height: 1;
    letter-spacing: 0.01em;
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.hero p a,
.hero p a:visited {
    color: var(--text);
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card-grid[hidden] {
    display: none;
}

.card {
    flex: 1 1 320px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.card h2 {
    margin: 0 0 6px;
    font-family: "Roses FF0000 Local", cursive;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 760px) {
    .games-card .link-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.link-item,
.link-item:visited {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.link-item:hover,
.link-item:focus-visible {
    border-color: #bdb5aa;
    background: var(--surface-hover);
    outline: none;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-hover);
    color: var(--text);
}

.icon i {
    font-size: 20px;
    line-height: 1;
}

.link-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.link-title {
    display: block;
    font-weight: 700;
}

.link-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.92rem;
}

.status {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--muted);
}

.status[hidden] {
    display: none;
}

.status strong {
    color: var(--text);
}

@media (max-width: 700px) {
    body {
        padding: 18px 12px 32px;
    }

    .hero,
    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .hero {
        margin-bottom: 18px;
    }

    .eyebrow {
        max-width: 100%;
        white-space: normal;
    }

    .link-item,
    .link-item:visited {
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        align-items: flex-start;
    }

    .icon {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .icon i {
        font-size: 18px;
    }

    .status {
        padding: 18px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.35rem, 8.5vw, 2.6rem);
        line-height: 0.98;
    }

    .hero p,
    .card p {
        font-size: 0.95rem;
    }

    .link-meta {
        font-size: 0.82rem;
    }

    .card-grid {
        gap: 14px;
    }

    .link-list {
        gap: 10px;
    }
}
