/* LibreArcade */


.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.space-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.space-mono-regular-italic {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.space-mono-bold-italic {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
}


:root {
    --bg: #070707;
    --surface: #101010;
    --surface-hover: #151515;
    --border: #222;
    --text: #f5f5f5;
    --muted: #a1a1a1;
    --accent: #457aec;
    --accent-hover: #5b8af0;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(69, 122, 236, 0.12),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;
}

/* Hero */

.hero {
    width: min(850px, 100%);

    padding: 60px 40px;

    text-align: center;

    background: rgba(16, 16, 16, 0.75);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.title {
    margin: 0;

    color: var(--accent);

    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.subtitle {
    max-width: 650px;

    margin: 20px auto 0;

    color: var(--muted);

    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
}

/* Enter button */

.enter-button {
    display: inline-block;

    margin-top: 28px;
    padding: 13px 28px;

    background: var(--accent);
    color: white;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 1.05rem;
    font-weight: 650;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(69, 122, 236, 0.2);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.enter-button:hover {
    background: var(--accent-hover);

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(69, 122, 236, 0.3);
}

.enter-button:active {
    transform: translateY(0);
}

.enter-button:focus-visible {
    outline: 3px solid rgba(69, 122, 236, 0.45);
    outline-offset: 4px;
}

/* Mobile */

@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    .hero {
        padding: 45px 24px;
        border-radius: 16px;
    }

    .title {
        font-size: 3rem;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .enter-button {
        transition: none;
    }
}

/* footer */
footer {
    width: min(850px, 100%);

    margin-top: 24px;
    padding: 18px 24px;

    background: rgba(16, 16, 16, 0.65);

    border: 1px solid var(--border);
    border-radius: 14px;

    text-align: center;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: "Space Mono", monospace;
}

.footer-text {
    margin: 0;

    color: #777;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-text a {
    color: #457aec;
    text-decoration: none;

    transition: color 0.15s ease;
}

.footer-text a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Game list */
.game-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;           /* let buttons wrap to new lines on small screens */
    justify-content: center;   /* center the whole group */
    align-items: center;
    gap: 8px;

    max-width: 900px;
    margin: 24px auto 0;       /* centers the list itself, was margin-left/right: 6px */
}

.game-button {
    display: flex;
    flex-direction: row;    /* Ensures buttons are laid out in a row */
    gap: 5px;             /* Spacing between buttons */
    max-width: 800px;      /* Keeps them from stretching too wide on giant screens */
    margin: 2px auto;
    padding: 13px 28px;

    background: var(--accent);
    color: white;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 1.05rem;
    font-weight: 650;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(69, 122, 236, 0.2);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.repo {
    margin: 0;
    color: #979494;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 600;
}

.repo-button {
    display: inline-block;

    margin-top: 10px;
    padding: 13px 28px;

    background: var(--accent);
    color: white;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 1.05rem;
    font-weight: 650;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(69, 122, 236, 0.2);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

hr {
    border: 2px solid var(--border);
    width: 100%;
    margin: 24px 0;
}