/*
    What every page of the site shares: its header, footer and buttons. Each page keeps its own layout in its own <style>.
    The wiki adds its own, wiki/wiki.css.
*/
:root {
    --bg-color: #0f1115;
    --card-bg: #181c24;
    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --text-main: #f9fafb;
    --text-muted: #d1d5db;
    --border-color: #2d3748;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem 1.5rem;
    width: 100%;
    padding: 0.6rem 5%;
    background-color: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}

/* The game's own icon, pixel art drawn at twice its size without blurring */
.site-header .brand img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-left: auto;
}

.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
    color: var(--text-main);
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Specific enough that a page's own .btn style does not make the header taller */
.site-header .btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
}

/* On a phone the brand and the download button stay, the links move under them */
@media (max-width: 600px) {
    .site-header {
        flex-wrap: wrap;
    }

    .site-header nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .site-header .btn-small {
        margin-left: auto;
    }
}

/* The pages every visitor may need but no one looks for first */
.site-footer {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-hover);
}

.site-footer a + a::before {
    content: "·";
    margin: 0 0.6rem;
    color: var(--border-color);
}
