:root {
    --mint-100: #fbf3dd;
    --mint-200: #f5e4bf;
    --forest-950: #28374a;
    --forest-700: #526076;
    --cream-50: #fffaf0;
    --coral-400: #efc36e;
    --color-bg: var(--mint-100);
    --color-text: var(--forest-950);
    --color-muted: var(--forest-700);
    --color-paper: var(--cream-50);
    --color-accent: var(--coral-400);
    --color-border: #c8b895;
    --font-body: "Trebuchet MS", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    --gutter: clamp(1.25rem, 4vw, 5rem);
    --reading: 42rem;
    --play-bg: var(--color-text);
    --play-text: var(--color-paper);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}
body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font: 1rem/1.6 var(--font-body);
}
body.player-open {
    overflow: hidden;
}
button,
select {
    font: inherit;
}
button,
a,
select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
}
a:hover {
    text-decoration-thickness: 2px;
}
button:hover {
    filter: brightness(0.92);
}
button:active {
    transform: translateY(1px);
}
:focus-visible {
    outline: 3px solid #a42b1a;
    outline-offset: 5px;
}
button:focus-visible {
    filter: none;
}
.complete :focus-visible,
.footer :focus-visible {
    outline-color: var(--color-accent);
}
img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
figure,
h1,
h2,
h3,
p {
    margin: 0;
}
h1,
h2,
h3 {
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.045em;
}
h2 {
    font-size: clamp(1.75rem, 3.8vw, 3.75rem);
}
h3 {
    font-size: 1.4rem;
}
p {
    max-width: 65ch;
}
p + p {
    margin-top: var(--space-2);
}
main > section {
    scroll-margin-top: 1rem;
}
[hidden] {
    display: none !important;
}
.micro {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
}
.small {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-muted);
}
.skip {
    position: fixed;
    top: 1rem;
    left: 1rem;
    transform: translateY(-200%);
    padding: 0.75rem 1rem;
    background: var(--color-paper);
    z-index: 10;
}
.skip:focus {
    transform: none;
}
.play {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 46px;
    padding: 0.65rem 1.2rem;
    color: var(--play-text);
    background: var(--play-bg);
    border: 0;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
}
.play span {
    font-size: 1.3rem;
    font-weight: 400;
}
.mast {
    padding: 1.7rem var(--gutter) 0;
}
.mast-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.context,
.collection-count {
    font-size: 0.75rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: -0.06em;
    font-weight: 700;
}
.mast nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 0.9rem 0 0.7rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.mast nav a {
    font-size: 0.8rem;
    text-decoration: none;
    padding: 0.35rem 0;
}
.mast nav a:hover {
    text-decoration: underline;
}
.footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem var(--gutter);
    background: var(--color-text);
    color: var(--color-paper);
}
.footer-brand {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    font-size: 1.65rem;
    letter-spacing: -0.05em;
    text-decoration: none;
}
.footer-brand span {
    color: var(--color-accent);
}
.footer p {
    font-size: 0.8rem;
}
.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-content: start;
}
.footer nav a {
    font-size: 0.8rem;
}
dialog {
    border: 0;
    padding: 0;
    width: min(1120px, 94vw);
    max-width: none;
    max-height: 94dvh;
    color: var(--color-text);
    background: var(--color-paper);
}
dialog::backdrop {
    background: #0b1813cf;
}
.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}
.player-toolbar h2 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    letter-spacing: -0.025em;
    margin-top: 0.3rem;
}
#close-player {
    flex-shrink: 0;
    min-height: 46px;
    background: var(--color-text);
    color: var(--color-paper);
    border: 0;
    padding: 0.6rem 1rem;
}
#game-frame {
    display: block;
    border: 0;
    width: 100%;
    height: min(66dvh, 650px);
    background: #fff;
}
#player-note {
    max-width: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
}
.legal {
    padding: 4rem var(--gutter) 6rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 7vw;
}
.legal-title > a {
    font-size: 0.85rem;
}
.legal-title h1 {
    font: 400 clamp(2.6rem, 5vw, 5rem)/1.04 var(--font-display);
    margin: 2rem 0 1.5rem;
}
.legal-title p {
    max-width: 30ch;
    color: var(--color-muted);
}
.legal-copy {
    max-width: var(--reading);
}
.legal-copy h2 {
    font-size: 1.55rem;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.03em;
}
.legal-copy h2:first-child {
    margin-top: 0;
}
.legal-copy code {
    overflow-wrap: anywhere;
    font-size: 0.85rem;
}
.storage-definitions {
    border-block: 1px solid var(--color-border);
    padding: 1.5rem 0;
}
.storage-definitions dt {
    font-weight: 700;
    margin-top: 1rem;
}
.storage-definitions dd {
    margin: 0.6rem 0 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
