:root {
    color-scheme: light;
    --color-canvas: #ffffff;
    --color-surface: #f2f2f0;
    --color-ink: #050505;
    --color-muted-strong: #3f3f3c;
    --color-muted: #666662;
    --color-border: #d6d6d1;
    --color-border-strong: #8c8c86;
    --color-brand: #b11235;
    --color-brand-dark: #8c0d2a;
    --color-brand-light: #f4c5cf;
    --color-brand-soft: #f5e8eb;
    --color-white: #ffffff;
    --color-on-dark-muted: #bdbdb8;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --content-max: 80rem;
    --gutter: clamp(1rem, 4vw, 2.25rem);
    --space-6: clamp(4rem, 9vw, 7rem);
    --radius-xs: 0.1rem;
    --radius-sm: 0.15rem;
    --radius-md: 0.2rem;
    --radius-lg: 0.25rem;
    --radius-xl: 0.3rem;
    --shadow-lg: 0 1.5rem 4rem rgba(5, 5, 5, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-canvas);
    color: var(--color-ink);
    font-family: var(--font-body);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    color: var(--color-ink);
    font-family: var(--font-display);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

a {
    text-decoration-thickness: 0.08em;
}

.site-header a.brand,
.site-header a.brand:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 4px;
}

h1[tabindex="-1"]:focus {
    outline: none;
}

::selection {
    background: var(--color-brand);
    color: var(--color-white);
}

@media (max-width: 67.99rem) {
    body:has(.site-nav.is-open) {
        overflow: hidden;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.page-content {
    display: grid;
    gap: clamp(3.5rem, 8vw, 6rem);
    padding-block: clamp(3rem, 8vw, 6.5rem) 1rem;
}

/* These classes are applied to the root element of ContentContainer. They live
   globally because that reusable component owns the rendered DOM element. */
.header-inner {
    position: relative;
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-page {
    display: grid;
    gap: clamp(5rem, 11vw, 8.5rem);
    padding-block: clamp(2.5rem, 7vw, 6.5rem) 1rem;
}

.game-page {
    display: grid;
    gap: clamp(4.5rem, 10vw, 8rem);
    padding-block: clamp(2.5rem, 7vw, 5.5rem) 1rem;
}

.guide-page {
    display: grid;
    gap: clamp(3.5rem, 8vw, 6.5rem);
    padding-block: clamp(2rem, 5vw, 4rem) 1rem;
}

.credits-page {
    display: grid;
    gap: clamp(3rem, 7vw, 5rem);
    padding-block: clamp(2rem, 5vw, 4rem) 1rem;
}

.guide-article {
    padding-block: clamp(2rem, 5vw, 4rem) 1rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-block: 3.5rem 2.75rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--color-on-dark-muted);
    font-size: 0.82rem;
}

.not-found {
    display: grid;
    min-height: 65vh;
    align-content: center;
    justify-items: start;
    padding-block: 5rem;
}

.page-hero {
    max-width: 58rem;
}

.page-hero .eyebrow,
.tag {
    margin: 0;
    color: var(--color-ink);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 1rem 0 0;
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.page-hero .lead {
    max-width: 46rem;
    margin: 1.5rem 0 0;
    color: var(--color-muted-strong);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.75;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.surface-card {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-ink);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.surface-card h2 {
    margin: 2.5rem 0 0;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.surface-card p:not(.tag) {
    color: var(--color-muted-strong);
    line-height: 1.75;
}

@media (min-width: 48rem) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(10rem, 0.7fr));
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    max-width: 48rem;
    margin-inline: auto;
    padding: 1rem 3rem 1rem 1rem;
    border-radius: var(--radius-sm);
    background: #5f0b1d;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

#blazor-error-ui a {
    color: var(--color-white);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    padding: 0.2rem 0.45rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.loading-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    color: var(--color-muted-strong);
}

.loading-shell img {
    width: 5rem;
    margin: 0 auto 1rem;
}

.loading-shell p {
    margin: 0;
    font-weight: 700;
}
