/* feudofkings.com: parchment and gold (light), leather and gold (dark). Colours follow the
   game's UITheme tokens; every text pair is WCAG AA (4.5:1 or more). No third-party resources. */

@font-face {
    font-family: "Cinzel";
    src: url("/fonts/Cinzel-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --bg: #f3e5c3;
    --surface: #f8eed6;
    --raised: #e5d1a4;
    --text: #2e2216;
    --muted: #5c4630;
    --heading: #4a2f12;
    --link: #7a3f0c;
    --link-hover: #4a2408;
    --border: #8c6a3c;
    --rule: rgba(140, 106, 60, 0.45);
    --focus: #1c2b4f;
    --bar: #3c2919;
    --bar-text: #f4e0aa;
    --bar-link: #f4e0aa;
    --gold: #d7ac52;
    --foot: #251910;
    --foot-text: #f4e0aa;
    --foot-link: #e8c46a;
    --bar-focus: #f6dc96;
    --quote: #efdfb8;
    --ph-bg: #f6d77e;
    --ph-text: #2e2216;
    --cond-bg: #dfe6f3;
    --cond-text: #1c2b4f;
    --draft-bg: #9e2e25;
    --draft-text: #ffffff;
    --gutter: 16px;
    --measure: 46rem;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --font-head: "Cinzel", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c130c;
        --surface: #2a1d12;
        --raised: #3a2918;
        --text: #f1e4c4;
        --muted: #cbb48a;
        --heading: #e8c46a;
        --link: #e8c46a;
        --link-hover: #f6dc96;
        --rule: rgba(140, 106, 60, 0.6);
        --focus: #f6dc96;
        --bar: #120c07;
        --foot: #120c07;
        --quote: #2a1d12;
        --ph-bg: #5a4310;
        --ph-text: #fff3d0;
        --cond-bg: #22304f;
        --cond-text: #e6ecf8;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.wrap {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
}

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

main:focus {
    outline: none;
}

.skip {
    position: absolute;
    left: var(--gutter);
    top: -10rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--surface);
    color: var(--link);
    border: 2px solid var(--focus);
    border-radius: 6px;
    font-weight: 700;
}

.skip:focus {
    top: 0.5rem;
}

/* Chinese, Japanese and Korean: no synthesized italics, Korean breaks between words. */

:lang(ja) em,
:lang(ko) em,
:lang(zh-Hans) em,
:lang(zh-Hant) em {
    font-style: normal;
}

:lang(ko) {
    word-break: keep-all;
}

/* Japanese headings and hero lines break between phrases where the browser can tell them apart. */

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) .hero-copy {
    word-break: auto-phrase;
}

/* Header */

.site-header {
    background: var(--bar);
    color: var(--bar-text);
    border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand lang" "nav nav";
    align-items: center;
    gap: 0.25rem 1rem;
    padding-block: 0.5rem;
}

.top-nav {
    grid-area: nav;
}

@media (min-width: 48rem) {
    .site-header .wrap {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "brand nav lang";
    }
}

.site-header a,
.site-footer a {
    color: var(--bar-link);
}

.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--bar-focus);
}

.brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.6rem;
    min-height: 48px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--gold);
}

.top-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.1rem;
    margin: 0 -0.4rem;
    padding: 0;
    list-style: none;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.25rem 0.4rem;
    font-size: 0.95rem;
}

.top-nav a[aria-current="page"] {
    text-decoration-thickness: 3px;
    text-decoration-color: var(--gold);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Language menu: a <details> that opens a list under its summary, no script. */

.lang-menu {
    grid-area: lang;
    position: relative;
    justify-self: end;
}

.lang-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--bar-link);
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu summary::after {
    content: "";
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
}

.lang-menu[open] summary::after {
    transform: translateY(0.1em) rotate(225deg);
}

.lang-menu summary:focus-visible {
    outline: 3px solid var(--bar-focus);
    outline-offset: 2px;
}

.lang-menu ul {
    position: absolute;
    right: 0;
    z-index: 20;
    min-width: 12rem;
    margin: 0.35rem 0 0;
    padding: 0.35rem 0;
    list-style: none;
    background: var(--bar);
    border: 1px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lang-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.25rem 1rem;
    text-decoration: none;
}

.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

.lang-menu a[aria-current="true"] {
    font-weight: 700;
}

.draft-banner {
    background: var(--draft-bg);
    color: var(--draft-text);
    font-size: 0.95rem;
}

.draft-banner p {
    margin: 0;
    padding-block: 0.6rem;
}

/* Content */

main {
    display: block;
    padding-block: 1.5rem 3rem;
}

.doc {
    max-width: var(--measure);
}

.doc p,
.doc li,
.doc td,
.doc th,
.doc blockquote {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    color: var(--heading);
    line-height: 1.25;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    scroll-margin-top: 1rem;
}

h1,
h2 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.5rem);
    margin: 0.5rem 0 1rem;
}

h2 {
    font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
    margin: 2.25rem 0 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--gold);
}

h3 {
    font-size: 1.18rem;
    margin: 1.75rem 0 0.5rem;
}

h4 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

li {
    margin: 0.3rem 0;
}

li > ul,
li > ol {
    margin: 0.3rem 0 0.5rem;
}

li > p {
    margin: 0.5rem 0;
}

hr {
    border: 0;
    border-top: 2px solid var(--rule);
    margin: 2rem 0;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--raised);
    border-radius: 3px;
    padding: 0.05em 0.3em;
    overflow-wrap: anywhere;
}

pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--quote);
    border-left: 4px solid var(--gold);
    border-radius: 0 6px 6px 0;
}

blockquote > :last-child {
    margin-bottom: 0;
}

a.url {
    overflow-wrap: anywhere;
}

/* Tables scroll inside their own region on narrow screens; the page itself never does. */

.table-wrap {
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
}

thead th {
    background: var(--raised);
    color: var(--text);
}

tbody th {
    font-weight: 700;
    width: 34%;
}

tbody tr:last-child > * {
    border-bottom: 0;
}

.wide th,
.wide td {
    min-width: 8.5rem;
}

/* Placeholders and conditions still waiting for the owner (draft builds only). */

.ph {
    background: var(--ph-bg);
    color: var(--ph-text);
    border: 1px dashed var(--border);
    border-radius: 3px;
    padding: 0 0.2em;
    font-family: var(--font-mono);
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

.cond {
    background: var(--cond-bg);
    color: var(--cond-text);
    border-radius: 3px;
    padding: 0 0.2em;
    font-style: italic;
}

/* Table of contents */

.toc {
    margin: 1.5rem 0 2rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.toc h2 {
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    font-size: 1.1rem;
}

.toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc li {
    margin: 0.2rem 0;
}

/* Home: a full-bleed hero on the key art, the trailer, the screenshot strip, four feature blocks and the
   fair-play strip; help and legal links are in the footer. Mobile first: phones get the tall art with the
   text at the bottom; from 48em in a landscape-ish window (the WIDE query in build.mjs) the wide art with
   the text on the left. The hero and the three bands stay dark in both colour schemes (they sit on the art). */

.home {
    --band: #1b120b;
    --band-raised: #2a1d12;
    --band-text: #f1e4c4;
    --band-muted: #d2bd95;
    --gold-hi: #f3d488;
    --card-shadow: 0 10px 30px rgba(28, 18, 8, 0.18);
}

@media (prefers-color-scheme: dark) {
    .home {
        --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    }
}

.home main {
    padding: 0;
}

/* The header lies over the hero art: out of the flow, on a shade that fades into the picture. */

.home .site-header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(12, 8, 4, 0.88), rgba(12, 8, 4, 0.55) 70%, rgba(12, 8, 4, 0));
    border-bottom: 0;
}

.home .site-header .wrap {
    padding-block: 0.5rem 1rem;
}

/* Hero */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    background: #120c07;
    color: #fff6e3;
    overflow: hidden;
}

.hero-art,
.hero-art img {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-art img {
    object-fit: cover;
    object-position: 50% 18%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(12, 8, 4, 0) 34%, rgba(12, 8, 4, 0.72) 58%, rgba(12, 8, 4, 0.94) 78%, #120c07 100%);
}

.hero-inner {
    width: 100%;
    padding-block: 9rem 2.25rem;
}

.hero-copy {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
}

.hero-title {
    margin: 0;
    color: var(--gold-hi);
    font-family: var(--font-head);
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
    -webkit-hyphens: none;
    hyphens: none;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 1.6rem + 5.2vw, 5.25rem);
}

.hero-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    margin-top: 0.55em;
    color: #efe2c2;
    font-size: clamp(0.95rem, 0.8rem + 0.9vw, 1.35rem);
    letter-spacing: 0.32em;
}

.hero-sub::before,
.hero-sub::after {
    content: "";
    flex: 0 1 3rem;
    height: 1px;
    background: linear-gradient(to right, rgba(243, 212, 136, 0), var(--gold-hi));
}

.hero-sub::after {
    background: linear-gradient(to left, rgba(243, 212, 136, 0), var(--gold-hi));
}

.tagline {
    margin: 1.4rem 0 0.6rem;
    color: #fff6e3;
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.pitch {
    margin: 0 auto 1.5rem;
    max-width: 30rem;
    color: #eadbbb;
    font-size: 1.02rem;
    line-height: 1.55;
}

/* Before the listings open the hero ends with the plain-text note, no badge artwork. Once live, the
   official badges: unaltered artwork, equal height, App Store first, on a solid dark plate whose
   padding is their clear space (a quarter of the badge height or more), so no art shows inside it. */

.badge-note {
    margin: 0;
    color: var(--gold-hi);
    font-family: var(--font-head);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    letter-spacing: 0.03em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.store-badges {
    display: inline-block;
    margin: 0;
    padding: 12px;
    background: #120c07;
    border-radius: 16px;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.badge-list li {
    margin: 0;
}

.badge {
    display: block;
    line-height: 0;
    border-radius: 9px;
}

.badge img {
    display: block;
    width: auto;
    height: 44px;
}

@media (min-width: 25em) {
    .badge img {
        height: 48px;
    }
}

a.badge:focus-visible {
    outline: 3px solid var(--gold-hi);
    outline-offset: 4px;
}

@media (min-width: 48em) and (min-aspect-ratio: 4/5) {
    .hero {
        justify-content: center;
        min-height: clamp(36rem, 92vh, 56rem);
    }

    .hero-art img {
        object-position: 62% 40%;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(12, 8, 4, 0.9) 0%, rgba(12, 8, 4, 0.72) 32%, rgba(12, 8, 4, 0.12) 62%, rgba(12, 8, 4, 0) 75%),
            linear-gradient(to bottom, rgba(12, 8, 4, 0) 70%, rgba(18, 12, 7, 0.85) 100%);
    }

    .hero-inner {
        padding-block: 8rem 4rem;
    }

    .hero-copy {
        margin-inline: 0;
        text-align: left;
    }

    .hero-sub {
        justify-content: flex-start;
    }

    .hero-sub::before {
        display: none;
    }

    .pitch {
        margin-left: 0;
        font-size: 1.1rem;
    }

    .store-badges {
        margin-left: -14px;
        padding: 14px;
    }

    .badge-list {
        justify-content: flex-start;
        gap: 14px;
    }

    .badge img {
        height: 52px;
    }
}

/* Dark bands (trailer, screenshots, fair play) */

.band {
    background: var(--band);
    color: var(--band-text);
    padding-block: 3rem;
}

.band-title,
.feature-text h2 {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
    font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem);
    letter-spacing: 0.02em;
}

.band-title {
    color: var(--gold-hi);
    text-align: center;
}

.band-title::after {
    content: "";
    display: block;
    width: 5rem;
    height: 2px;
    margin: 0.7rem auto 0;
    background: linear-gradient(90deg, rgba(243, 212, 136, 0), var(--gold-hi), rgba(243, 212, 136, 0));
}

.band a {
    color: var(--gold-hi);
}

.band :focus-visible {
    outline-color: var(--gold-hi);
}

/* Trailer: the 30 s video right under the hero, carrying on its dark edge; 16:9 at every width, framed like the
   feature art. It plays only when started (no autoplay, preload="none"); the poster is a still of the trailer. With
   script a play button (a dark disc with a gold ring and a cream triangle; owner #492) sits on the poster until
   playback; after the end the last frame (the end card with the store badges) stays and a small replay button
   sits in the bottom-left corner (owner #493); without script the native controls do the same job. */

.band-trailer {
    padding-block: 2.5rem 3rem;
    background: linear-gradient(to bottom, #120c07, var(--band));
}

.trailer-frame {
    position: relative;
    max-width: 60rem;
    margin-inline: auto;
}

/* The play button is 14.5 % of the video's width (owner #561: the 108 px one was too small, 164 px a bit too big; the
   video is the viewport less the two gutters, at most 60rem): 140 px on a desktop's 960 px video, never under 80 px
   on a phone. The ring keeps the 3 px : 108 px share it had. The triangle's SVG fills the disc inside the ring, so the
   triangle is placed in the disc's own coordinates (trailer.mjs playButton) and stays on its centre at every size. */
.trailer-play {
    --play-size: clamp(5rem, (100vw - 2 * var(--gutter)) * 0.145, 8.75rem);
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: var(--play-size);
    height: var(--play-size);
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    color: #f3d488;
    background: radial-gradient(circle at 50% 35%, rgba(52, 36, 20, 0.78), rgba(12, 8, 5, 0.86));
    border: max(3px, var(--play-size) * 0.028) solid #d7ac52;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 236, 190, 0.35), 0 0 26px rgba(215, 172, 82, 0.35), 0 12px 30px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.trailer-play[hidden],
.trailer-replay[hidden] {
    display: none;
}

.trailer-play svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.trailer-play:hover {
    color: #fff1c8;
    background: radial-gradient(circle at 50% 35%, rgba(70, 49, 26, 0.82), rgba(18, 12, 7, 0.9));
    box-shadow: inset 0 0 0 1px rgba(255, 236, 190, 0.5), 0 0 34px rgba(243, 212, 136, 0.5), 0 12px 30px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.06);
}

.trailer-play:focus-visible,
.trailer-replay:focus-visible {
    outline: 3px solid #fff6e3;
    outline-offset: 5px;
}

/* The small replay button after the end (owner #493): bottom-left like YouTube's, the same dark glass and gold. */
.trailer-replay {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    color: #f3d488;
    background: rgba(12, 8, 5, 0.78);
    border: 2px solid #d7ac52;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease;
}

.trailer-replay svg {
    display: block;
    width: 58%;
    height: 58%;
}

.trailer-replay:hover {
    color: #fff1c8;
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .trailer-play,
    .trailer-replay {
        transition: none;
    }

    .trailer-play:hover {
        transform: translate(-50%, -50%);
    }

    .trailer-replay:hover {
        transform: none;
    }
}

.trailer-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 2px solid var(--gold);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Screenshots: a swipeable, snapping strip on phones and tablets; a 4 x 2 grid on desktops. Only the
   strip scrolls sideways, never the page. */

.band-shots {
    padding-block: 3rem 2.5rem;
    background: radial-gradient(ellipse at 50% 0%, #2c1e12 0%, var(--band) 70%);
}

.shots-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: #8c6a3c transparent;
}

.shots-scroll:focus-visible {
    outline: 3px solid var(--gold-hi);
    outline-offset: -3px;
}

.shots {
    display: flex;
    gap: 0.9rem;
    width: max-content;
    margin: 0;
    padding: 0.25rem var(--gutter) 1rem;
    list-style: none;
}

.shots li {
    flex: 0 0 auto;
    width: 64vw;
    max-width: 17rem;
    margin: 0;
    scroll-snap-align: center;
}

.shots picture,
.shots img {
    display: block;
    width: 100%;
    height: auto;
}

.shots img {
    aspect-ratio: 640 / 1391;
    border: 1px solid rgba(215, 172, 82, 0.55);
    border-radius: 14px;
    background: var(--band-raised);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

@media (min-width: 40em) {
    .shots li {
        width: 15rem;
    }
}

@media (min-width: 64em) {
    .shots-scroll {
        overflow: visible;
    }

    .shots {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
        width: auto;
        max-width: 72rem;
        margin-inline: auto;
        padding-inline: var(--gutter);
    }

    .shots li {
        width: auto;
        max-width: none;
    }
}

/* Features */

.features {
    padding-block: 3.5rem 1rem;
}

.feature {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3.25rem;
}

.feature-art,
.feature-art img {
    display: block;
    width: 100%;
    height: auto;
}

.feature-art img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 2px solid var(--gold);
    border-radius: 14px;
    background: var(--raised);
    box-shadow: var(--card-shadow);
}

.feature-text h2 {
    color: var(--heading);
}

.feature-text p {
    margin: 0;
    max-width: 34rem;
    font-size: 1.06rem;
    line-height: 1.65;
}

@media (min-width: 48em) {
    .feature {
        grid-template-columns: 1.1fr 1fr;
        align-items: center;
        gap: 2.5rem;
        margin-bottom: 4.5rem;
    }

    .feature-text p {
        font-size: 1.12rem;
    }

    .feature:nth-child(even) .feature-art {
        order: 2;
    }
}

/* Fair play */

.band-fair {
    padding-block: 3rem 3.5rem;
    background:
        linear-gradient(to bottom, rgba(215, 172, 82, 0.5), rgba(215, 172, 82, 0) 2px),
        radial-gradient(ellipse at 50% 100%, #2c1e12 0%, var(--band) 70%);
}

.fair-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fair-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--band-raised);
    border: 1px solid rgba(215, 172, 82, 0.35);
    border-radius: 12px;
}

.fair-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-top: 0.1rem;
    color: var(--gold-hi);
}

.fair-list p {
    margin: 0;
    color: var(--band-text);
    font-size: 1rem;
    line-height: 1.55;
}

.fair-list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--band-text);
    font-size: 1.05rem;
}

@media (min-width: 40em) and (max-width: 63.99em) {
    .fair-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .fair-list li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 64em) {
    .fair-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .fair-list li {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.4rem 1rem;
        text-align: center;
    }

    .fair-icon {
        width: 34px;
        height: 34px;
    }
}

/* Chinese, Japanese and Korean headings: a serif of the script when the system has one. Thai below. */

:lang(ja) {
    --font-head: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

:lang(ko) {
    --font-head: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
}

:lang(zh-Hans) {
    --font-head: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

:lang(zh-Hant) {
    --font-head: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
}

/* Thai: Cinzel has no Thai letters, so headings take a Thai face; the stacked vowel and tone marks need more line
   height, and Thai is never letter-spaced. The selectors test the element's own language, so the English name lockup
   (lang="en") keeps its own line height. */

:lang(th) {
    --font-head: "Thonburi", "Noto Serif Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

h1:lang(th),
h2:lang(th),
h3:lang(th),
h4:lang(th),
.tagline:lang(th),
.badge-note:lang(th) {
    line-height: 1.5;
    letter-spacing: 0;
}

:lang(en) {
    --font-head: "Cinzel", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-reduced-motion: no-preference) {
    .shots-scroll {
        scroll-behavior: smooth;
    }
}

/* 404 */

.notfound main {
    min-height: 70vh;
}

/* Footer */

.site-footer {
    background: var(--foot);
    color: var(--foot-text);
    border-top: 3px solid var(--gold);
    font-size: 0.95rem;
}

.site-footer .wrap {
    padding-block: 1.5rem 2rem;
}

.site-footer a {
    color: var(--foot-link);
}

/* The game's social media links (site/social.mjs): the platforms' own glyphs in white, one colour as their brand rules
   allow, each a 48 px target. */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    color: #ffffff;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-langs a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.2rem 0;
}

.footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.footer-langs a[aria-current="true"] {
    font-weight: 700;
    text-decoration: none;
}

.legal-lines {
    margin: 0;
    max-width: var(--measure);
}

.site-footer .ph,
.site-footer .cond {
    color: var(--ph-text);
}

/* Print: the documents print as plain black-on-white text with their link addresses. */

@media print {
    :root {
        --bg: #ffffff;
        --surface: #ffffff;
        --raised: #eeeeee;
        --text: #000000;
        --muted: #333333;
        --heading: #000000;
        --link: #000000;
        --quote: #ffffff;
        --gold: #999999;
        --border: #999999;
    }

    body {
        font-size: 11pt;
        line-height: 1.45;
    }

    .skip,
    .top-nav,
    .lang-menu,
    .toc,
    .footer-social,
    .footer-links,
    .footer-langs,
    .hero-art,
    .band-trailer,
    .shots-scroll,
    .feature-art,
    .fair-icon {
        display: none;
    }

    .site-header,
    .site-footer {
        background: #ffffff;
        color: #000000;
        border-color: #999999;
    }

    .site-header a,
    .site-footer a {
        color: #000000;
    }

    .draft-banner {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }

    .doc {
        max-width: none;
    }

    .doc a[href^="http"]:not(.url)::after,
    .doc a[href^="/"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
    }

    .table-wrap {
        overflow: visible;
        border: 0;
    }

    h1,
    h2,
    h3,
    h4 {
        break-after: avoid;
    }

    tr,
    blockquote,
    li {
        break-inside: avoid;
    }
}
