@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
    color-scheme: dark;
    --ink: #090a12;
    --velvet: #111225;
    --panel: #17182d;
    --panel-soft: #1d1e35;
    --gold: #d8b34c;
    --gold-bright: #f4d87a;
    --ivory: #f1ead7;
    --copy: #cbc7bb;
    --muted: #9693a5;
    --rule: rgba(216, 179, 76, 0.26);
    --red: #b64654;
    --max-width: 76rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 6%, rgba(93, 64, 132, 0.22), transparent 27rem),
        linear-gradient(180deg, #0c0d19 0%, var(--ink) 100%);
    color: var(--copy);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.72;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
    color: var(--gold-bright);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: #fff1b5;
}

a:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 4px;
    border-radius: 2px;
}

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--rule);
    background: rgba(9, 10, 18, 0.88);
    backdrop-filter: blur(16px);
}

.site-header .container {
    min-height: 5.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.site-name {
    color: var(--ivory);
    font-family: Cinzel, Georgia, serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem 1.35rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-header nav a {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    color: var(--gold-bright);
}

.play-link {
    border: 1px solid var(--gold);
    padding: 0.65rem 0.9rem;
    color: var(--ink);
    background: linear-gradient(180deg, var(--gold-bright), #c99c2b);
    box-shadow: 0 8px 24px rgba(216, 179, 76, 0.16);
    font-family: Cinzel, Georgia, serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

main.container {
    max-width: 66rem;
    padding-block: clamp(3rem, 8vw, 6.5rem);
}

article,
main.container > section,
main.container > aside {
    max-width: 52rem;
    margin-inline: auto;
}

.page-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--gold);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    background:
        linear-gradient(135deg, rgba(216, 179, 76, 0.09), transparent 45%),
        var(--panel);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.page-intro::after {
    content: "♠  ♥  ♦  ♣";
    position: absolute;
    right: -0.3rem;
    bottom: -1.45rem;
    color: rgba(216, 179, 76, 0.08);
    font-family: Georgia, serif;
    font-size: clamp(3.7rem, 10vw, 8rem);
    letter-spacing: -0.08em;
    white-space: nowrap;
}

.page-intro > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

h1,
h2 {
    color: var(--ivory);
    font-family: Cinzel, Georgia, serif;
    line-height: 1.18;
}

h1 {
    max-width: 17ch;
    margin: 0 0 1.25rem;
    font-size: clamp(2.15rem, 6vw, 4.7rem);
    letter-spacing: -0.035em;
}

h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

p,
li {
    max-width: 72ch;
}

section {
    position: relative;
    margin-top: 0;
    padding: 2.2rem 0 2.5rem 2rem;
    border-top: 1px solid var(--rule);
}

section::before {
    content: "♦";
    position: absolute;
    left: 0;
    top: 2.35rem;
    color: var(--gold);
    font-size: 0.9rem;
}

section:nth-of-type(even)::before {
    content: "♠";
}

ul,
ol {
    padding-left: 1.4rem;
}

li + li {
    margin-top: 0.45rem;
}

.notice,
.disclosure {
    margin-top: 2.5rem;
    border: 1px solid rgba(182, 70, 84, 0.5);
    padding: 1.35rem 1.5rem;
    background: rgba(182, 70, 84, 0.08);
}

.notice h2,
.disclosure h2 {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.notice p:last-child,
.disclosure p:last-child {
    margin-bottom: 0;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
}

.related-links a {
    display: inline-block;
    border: 1px solid var(--rule);
    padding: 0.5rem 0.8rem;
    background: var(--panel-soft);
    text-decoration: none;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--rule);
    padding: 2.6rem 0 3.2rem;
    background: #080911;
}

.site-footer .container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.5rem 2rem;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
}

.fine-print {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.78rem;
}

.public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin: 0 0 2rem;
    font-size: 0.8rem;
}

.public-nav a {
    color: var(--gold);
}

.public-nav--footer {
    margin: 2.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

@media (max-width: 860px) {
    .site-header .container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding-block: 1rem;
    }

    .site-header nav {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-x: auto;
    }

    .site-header nav ul {
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: max-content;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 1rem;
    }

    .container {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .site-header .container {
        grid-template-columns: 1fr;
    }

    .play-link {
        justify-self: start;
    }

    .site-header nav {
        grid-row: auto;
    }

    main.container {
        padding-block: 2rem 4rem;
    }

    .page-intro {
        padding: 1.35rem;
    }

    section {
        padding-left: 1.35rem;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        justify-content: flex-start;
    }

    .fine-print {
        grid-column: auto;
        margin-top: 0.75rem !important;
    }
}

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