/*
 * The public page of Feodaris (templates/landing): the game's night, its wood and its brass, its own
 * gilded buttons and map plaques. Imported after tokens.css, whose materials the emblems are drawn in;
 * its own tokens are prefixed --l-.
 */

:root {
    --l-night: #07090d;
    --l-deep: #0c0f15;
    --l-walnut: #1a110a;
    --l-plate: rgb(26 17 10 / 0.88);
    --l-ink: #f3e6c6;
    --l-ink-soft: #c9b48a;
    --l-gold: #d6ad55;
    --l-gold-light: #f6dc98;
    --l-line: rgb(214 173 85 / 0.28);
    --l-display: "Grenze Gotisch", "Grenze", Georgia, serif;
    --l-text: "Grenze", Georgia, serif;
    --l-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --l-gutter: max(28px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--l-night); }
body { margin: 0; background: var(--l-night); color: var(--l-ink); font-family: var(--l-text); font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--l-gold-light); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--l-gold); color: #241405; }
.skip:focus { top: 16px; }

/* ---- The game's gilded button, engraved; the trailer's round play mark ---- */
.seal {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 6px;
    text-decoration: none; font-family: var(--l-text); font-weight: 700; font-size: 17px; color: #2a1606; white-space: nowrap;
    background: linear-gradient(180deg, #f6dc98 0%, #d6ad55 55%, #a77c2c 100%);
    box-shadow: 0 0 0 1px #5d3d10, 0 2px 0 #5d3d10, inset 0 1px 0 rgb(255 248 220 / .7), 0 12px 28px -10px rgb(214 173 85 / .7);
    text-shadow: 0 1px 0 rgb(255 240 200 / .6); transition: transform .2s var(--l-ease), filter .2s;
}
.seal:hover { transform: translateY(-2px); filter: brightness(1.08); }
.seal:active { transform: translateY(1px); }
.seal svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.seal-large { min-height: 56px; padding: 0 28px; font-size: 19px; }
.watch { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--l-ink); font: inherit; font-size: 17px; cursor: pointer; text-shadow: 0 2px 10px rgb(0 0 0 / .9); }
.watch i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgb(246 220 152 / .7); transition: background-color .25s, transform .25s var(--l-ease); }
.watch svg { width: 11px; height: 11px; margin-left: 2px; fill: var(--l-gold-light); }
.watch:hover i { background: rgb(246 220 152 / .18); transform: scale(1.08); }
.watch small { color: var(--l-ink-soft); font-size: 15px; }

/* ---- The bar: over the night at first, a dark glass once the camera has passed ---- */
.bar {
    position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; gap: 26px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) var(--l-gutter) 16px; border-bottom: 1px solid transparent;
    transition: background-color .4s, border-color .4s, padding .4s var(--l-ease);
}
.bar.is-solid { background: rgb(7 9 13 / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--l-line); padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--l-display); font-size: 25px; line-height: 1; color: var(--l-gold-light); text-shadow: 0 2px 10px rgb(0 0 0 / .8); }
.bar .brand { margin-right: auto; }
.bar-links { display: flex; gap: 26px; }
.bar-links a { position: relative; text-decoration: none; font-size: 17px; color: var(--l-ink-soft); transition: color .2s; text-shadow: 0 2px 10px rgb(0 0 0 / .9); }
.bar-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--l-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--l-ease); }
.bar-links a:hover { color: var(--l-ink); }
.bar-links a:hover::after { transform: scaleX(1); }

/* ---- The journey: a stage pinned for four screens while the camera pulls back ---- */
.journey { position: relative; height: 420svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--l-night); }
.layer { position: absolute; will-change: transform; }
.layer video, .layer img { width: 100%; height: 100%; object-fit: cover; }
.layer-map { opacity: 0; }
/* The day's map seen by night */
.layer-map::after { content: ""; position: absolute; inset: 0; background: rgb(18 30 58 / .55); mix-blend-mode: multiply; }
.shade { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 40%, rgb(7 9 13 / .75) 100%),
        linear-gradient(180deg, rgb(7 9 13 / .65) 0%, transparent 18%, transparent 62%, rgb(7 9 13 / .92) 100%); }
.plaque { position: absolute; z-index: 2; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; }
.plaque b { padding: 5px 12px 6px; border-radius: 5px; background: var(--l-plate); box-shadow: 0 0 0 1.5px var(--l-gold), 0 8px 18px rgb(0 0 0 / .55); font-weight: 600; font-size: 16px; line-height: 1.1; color: var(--l-ink); white-space: nowrap; }
.plaque small { color: var(--l-gold-light); font-weight: 500; font-size: 14px; }
.plaque::after { content: ""; width: 2px; height: 14px; background: var(--l-gold); }
.beat { position: absolute; z-index: 3; opacity: 0; pointer-events: none; text-shadow: 0 2px 18px rgb(0 0 0 / .85); }
.beat.is-on { pointer-events: auto; }
.beat-open { inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0 24px; text-align: center; }
h1 { font-family: var(--l-display); font-weight: 700; font-size: clamp(84px, 14vw, 210px); line-height: .85; color: var(--l-gold-light);
    text-shadow: 0 3px 0 #3a230b, 0 0 60px rgb(255 190 90 / .35), 0 20px 50px rgb(0 0 0 / .8); }
.kind { font-size: clamp(19px, 1.8vw, 24px); }
.open-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 26px; }
.beat-text { max-width: 40rem; }
.beat-text h2, .section-head h2, .trailer-text h2, .final h2 { font-family: var(--l-text); font-weight: 700; font-size: clamp(44px, 5.4vw, 84px); line-height: .98; letter-spacing: -.01em; color: var(--l-ink); }
.beat-text h2 { margin-bottom: 14px; }
.beat-text p { font-size: clamp(19px, 1.7vw, 24px); color: #e3d3ad; }
.beat-town { left: max(28px, 6vw); bottom: 14svh; }
.beat-isles { right: max(28px, 6vw); bottom: 14svh; }
.beat-name { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.beat-name .seal { margin-top: 26px; }
.beat-isles::before, .beat-name::before { content: ""; position: absolute; z-index: -1; inset: -18% -22%; background: radial-gradient(closest-side, rgb(7 9 13 / .82), rgb(7 9 13 / .55) 55%, transparent); }

/* ---- Sections after the journey ---- */
.trailer, .questions { padding: clamp(110px, 12vw, 180px) var(--l-gutter) 0; }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { font-size: clamp(19px, 1.5vw, 22px); color: var(--l-ink-soft); }
.section-head-split { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }

/* ---- The four banners: hung cloths on a brass rod; the chosen one opens on its elite ---- */
.factions { --hue: 31 63 138; position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 100svh; padding: clamp(100px, 10vw, 150px) var(--l-gutter) 0; overflow: hidden;
    background: radial-gradient(ellipse 80% 70% at 50% 60%, rgb(var(--hue) / .38), transparent 70%), var(--l-night); transition: background-color .8s; }
.factions[data-chosen="military_order"] { --hue: 200 200 210; }
.factions[data-chosen="church"] { --hue: 150 30 40; }
.factions[data-chosen="guild"] { --hue: 30 110 70; }
.factions-head { display: grid; gap: 12px; margin-bottom: 40px; }
.factions-head h2 { font-family: var(--l-text); font-weight: 700; font-size: clamp(44px, 5.4vw, 84px); line-height: .98; }
.factions-head p { font-size: clamp(19px, 1.5vw, 22px); color: var(--l-ink-soft); }
.factions-row { position: relative; display: flex; gap: clamp(10px, 1.6vw, 26px); height: min(74svh, 720px); padding: 22px 2% 0; }
.factions-rod { position: absolute; left: 0; right: 0; top: 8px; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #f6dc98, #b98a32 60%, #6e4b16); box-shadow: 0 6px 14px rgb(0 0 0 / .6); }
.factions-rod::before, .factions-rod::after { content: ""; position: absolute; top: -7px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1c4, #b98a32 70%); }
.factions-rod::before { left: -6px; }
.factions-rod::after { right: -6px; }

.faction {
    --cloth: #1f3f8a; --cloth-dark: #12275a; --cloth-ink: #f6dc98;
    position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
    transition: flex-grow .8s var(--l-ease); transform-origin: 50% 0;
}
.faction.is-military_order { --cloth: #e8e2d2; --cloth-dark: #b9b1a0; --cloth-ink: #8e1c1c; }
.faction.is-church { --cloth: #8e1c2a; --cloth-dark: #5a0f18; --cloth-ink: #f6dc98; }
.faction.is-guild { --cloth: #1f5c3a; --cloth-dark: #123a24; --cloth-ink: #f6dc98; }
.faction.is-chosen { flex-grow: 2.6; }
/* The cloth: folds of light and shade, a swallow-tail, a gilded hem, a breath of wind */
.cloth {
    position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; padding: 34px 14px 16%;
    background:
        repeating-linear-gradient(90deg, rgb(0 0 0 / 0) 0, rgb(0 0 0 / .18) 9%, rgb(255 255 255 / .06) 16%, rgb(0 0 0 / 0) 24%),
        linear-gradient(180deg, var(--cloth), var(--cloth-dark));
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    box-shadow: inset 0 0 0 6px rgb(214 173 85 / .55), inset 0 0 0 8px rgb(0 0 0 / .35);
    transform-origin: 50% 0; animation: sway 7s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -1.7s);
    transition: filter .5s;
}
@keyframes sway { from { transform: skewX(-1.2deg) scaleY(1); } to { transform: skewX(1.2deg) scaleY(.985); } }
.faction:not(.is-chosen) .cloth { filter: brightness(.62) saturate(.8); }
.faction:hover .cloth, .faction:focus-visible .cloth { filter: none; }
.cloth-emblem { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #f6e8c4, #c9a96a 75%); box-shadow: 0 0 0 4px var(--cloth-ink), 0 10px 24px rgb(0 0 0 / .45);
    transition: transform .8s var(--l-ease); }
.faction.is-chosen .cloth-emblem { transform: scale(.78); }
.cloth-name { margin-top: 18px; font-family: var(--l-text); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1; color: var(--cloth-ink); text-align: center; text-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.faction.is-military_order .cloth-name { text-shadow: none; }
/* The elite steps forth on the chosen cloth only */
.cloth-elite { align-self: center; opacity: 0; transform: translateY(40px) scale(.7); transition: opacity .6s, transform .9s var(--l-ease); filter: drop-shadow(0 18px 24px rgb(0 0 0 / .55)); }
.cloth-elite svg { width: clamp(150px, 16vw, 240px); height: auto; }
.cloth-words { display: grid; gap: 6px; justify-items: center; opacity: 0; transform: translateY(16px); transition: opacity .6s .15s, transform .8s .15s var(--l-ease); text-align: center; }
.cloth-words strong { font-family: var(--l-display); font-size: clamp(26px, 2.6vw, 40px); line-height: 1; color: var(--cloth-ink); }
.cloth-words em { font-style: normal; font-size: 18px; color: var(--cloth-ink); opacity: .9; }
.faction.is-chosen .cloth-elite, .faction.is-chosen .cloth-words { opacity: 1; transform: none; }

/* ---- The army, marching: two lines, the land's one way, the sea's the other ---- */
.army { padding: clamp(110px, 12vw, 180px) 0 0; overflow: hidden; }
.army .section-head { padding: 0 var(--l-gutter); }
.parade { overflow: hidden; padding: 12px 0; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-track { display: flex; gap: 26px; width: max-content; animation: march 60s linear infinite; }
.parade-sea .parade-track { animation-direction: reverse; animation-duration: 48s; }
.parade:hover .parade-track { animation-play-state: paused; }
@keyframes march { to { transform: translateX(-50%); } }
.parade-unit { display: grid; justify-items: center; gap: 8px; width: 128px; }
.parade-portrait { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 18px;
    background: radial-gradient(circle at 50% 30%, #2b3d52, #121a24 80%); box-shadow: 0 0 0 1.5px var(--l-line), 0 14px 30px -12px rgb(0 0 0 / .9);
    transition: transform .3s var(--l-ease), box-shadow .3s; }
.parade-sea .parade-portrait { background: radial-gradient(circle at 50% 30%, #2f5f78, #10222e 80%); }
.parade-unit:hover .parade-portrait { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 2px var(--l-gold), 0 18px 34px -12px rgb(214 173 85 / .5); }
.parade-unit small { font-size: 15px; color: var(--l-ink-soft); white-space: nowrap; }

/* ---- The realm: pinned while the page's scroll carries the strip sideways ---- */
.realm { position: relative; padding: 0; background: radial-gradient(ellipse 70% 55% at 80% 30%, rgb(40 90 120 / .22), transparent 70%); }
.realm-stage { padding: clamp(110px, 12vw, 160px) 0 40px; }
.realm .section-head { padding: 0 var(--l-gutter); margin-bottom: 40px; }
.realm-strip { display: flex; gap: 28px; margin: 0; padding: 0 var(--l-gutter); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.realm-strip::-webkit-scrollbar { display: none; }
.realm-shot { flex: 0 0 min(72vw, 1000px); scroll-snap-align: center; }
.realm-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 30%; border-radius: 12px; box-shadow: 0 0 0 1px var(--l-line), 0 30px 60px -30px rgb(0 0 0 / .9); }
.realm-shot figcaption { margin-top: 16px; font-size: 22px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
    .js .realm { height: 360svh; }
    .js .realm-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-top: 80px; overflow: hidden; }
    .js .realm-strip { overflow: visible; scroll-snap-type: none; will-change: transform; }
    .js .realm-shot { flex-basis: min(64vw, 980px); }
}

/* The trailer: its frame, a play mark that breathes */
.trailer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.trailer-frame { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--l-line), 0 40px 80px -30px rgb(0 0 0 / .95); }
.trailer-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--l-ease), filter .6s; filter: brightness(.8); }
.trailer-frame:hover img { transform: scale(1.04); filter: brightness(.95); }
.trailer-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
    background: linear-gradient(180deg, #f6dc98, #b98a32); box-shadow: 0 0 0 1px #5d3d10, 0 0 0 0 rgb(246 220 152 / .5); animation: breathe 2.4s infinite; }
.trailer-play svg { width: 30px; height: 30px; margin-left: 5px; fill: #2a1606; }
@keyframes breathe { 70% { box-shadow: 0 0 0 1px #5d3d10, 0 0 0 22px rgb(246 220 152 / 0); } 100% { box-shadow: 0 0 0 1px #5d3d10, 0 0 0 0 rgb(246 220 152 / 0); } }
.trailer-text p { margin-top: 14px; font-size: 22px; color: var(--l-ink-soft); }

/* The questions: sealed letters, each opened by breaking its wax */
.questions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.questions-grid .section-head { position: sticky; top: 110px; }
.questions-grid .section-head p { margin-top: 18px; font-size: 21px; color: var(--l-ink-soft); }
.letters { display: grid; gap: 22px; interpolate-size: allow-keywords; }
.letter {
    --paper: #ecdcb4; --paper-dark: #cdb27a; --letter-ink: #33200e;
    position: relative; border-radius: 3px; color: var(--letter-ink);
    background:
        radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgb(120 72 24 / .38) 100%),
        radial-gradient(circle at 18% 30%, rgb(255 250 230 / .55), transparent 40%),
        linear-gradient(172deg, var(--paper), var(--paper-dark));
    box-shadow: 0 1px 0 rgb(255 245 220 / .5) inset, 0 24px 40px -22px rgb(0 0 0 / .95), 0 2px 6px rgb(0 0 0 / .5);
    transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--l-ease), box-shadow .5s;
}
.letter:nth-child(odd) { --tilt: -.6deg; }
.letter:nth-child(even) { --tilt: .5deg; }
.letter:hover { transform: rotate(var(--tilt)) translateY(-4px); }
.letter[open] { --tilt: 0deg; }
.letter summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 96px; padding: 18px 26px 18px 30px; cursor: pointer; list-style: none;
    background: linear-gradient(180deg, transparent 49.6%, rgb(110 70 25 / .22) 50%, rgb(255 250 230 / .3) 50.6%, transparent 52%); }
.letter summary::-webkit-details-marker { display: none; }
.letter-q { font-weight: 700; font-size: 24px; line-height: 1.15; text-wrap: balance; }
/* The wax: one seal cut in two halves that part when the letter opens */
.wax { position: relative; width: 66px; height: 66px; flex: none; }
.wax i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 47% 53% 50% 46% / 52% 46% 54% 48%;
    background: radial-gradient(circle at 38% 32%, #d84a36, #9b1d14 55%, #5e0d08);
    box-shadow: inset 0 -3px 6px rgb(40 0 0 / .55), inset 0 3px 4px rgb(255 160 130 / .35), 0 3px 6px rgb(40 10 0 / .5);
    transition: transform .7s var(--l-ease), filter .7s; }
.wax i::before { content: "F"; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--l-display); font-size: 30px; line-height: 1; color: #7c140d;
    box-shadow: inset 0 2px 3px rgb(40 0 0 / .6), 0 1px 0 rgb(255 150 120 / .35); text-shadow: 0 1px 0 rgb(255 140 110 / .45), 0 -1px 0 rgb(40 0 0 / .5); }
.wax i:first-child { clip-path: polygon(0 0, 52% 0, 44% 22%, 56% 41%, 46% 60%, 55% 80%, 48% 100%, 0 100%); }
.wax i:last-child { clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 55% 80%, 46% 60%, 56% 41%, 44% 22%); }
.letter:hover .wax i { filter: brightness(1.12); }
.letter[open] .wax i:first-child { transform: translate(-9px, 4px) rotate(-16deg); filter: brightness(.85); }
.letter[open] .wax i:last-child { transform: translate(8px, -2px) rotate(13deg); filter: brightness(.85); }
.letter::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--l-ease), content-visibility .6s allow-discrete; }
.letter[open]::details-content { block-size: auto; }
.letter-body { padding: 4px 30px 28px; transform-origin: top; transform: perspective(900px) rotateX(-55deg); opacity: 0; transition: transform .7s var(--l-ease), opacity .5s; }
.letter[open] .letter-body { transform: none; opacity: 1; }
.letter-body p { max-width: 40rem; font-size: 20px; line-height: 1.55; }

/* The last call: the rose turning over the night */
.final { position: relative; display: grid; justify-items: center; gap: 26px; padding: clamp(150px, 16vw, 230px) var(--l-gutter); text-align: center; overflow: hidden; }
.final-rose { position: relative; width: 150px; height: 150px; }
.final-rose img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgb(214 173 85 / .4)); }
.final-rose::before { content: ""; position: absolute; inset: -260%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgb(214 173 85 / .14) 0deg .5deg, transparent .5deg 11.25deg);
    mask: radial-gradient(circle, #000 10%, transparent 62%); -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); animation: turn 160s linear infinite; }
@keyframes turn { to { transform: rotate(1turn); } }
.final .fine { font-size: 16px; color: var(--l-ink-soft); }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 28px var(--l-gutter) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--l-line); font-size: 15px; color: var(--l-ink-soft); }
.footer nav { display: flex; gap: 22px; }
.footer nav a, .footer p a { color: inherit; text-decoration: none; }
.footer nav a:hover, .footer p a:hover { color: var(--l-ink); }
.footer p { margin-left: auto; }
.footer .brand span { font-size: 22px; }

.trailer-dialog { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 10px; background: #000; box-shadow: 0 0 0 1.5px var(--l-gold), 0 30px 80px rgb(0 0 0 / .85); overflow: hidden; }
.trailer-dialog::backdrop { background: rgb(5 6 9 / .86); }
.trailer-dialog video { width: 100%; }
.close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .65); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* Sections rise as they come in; without the script they simply stand */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--l-ease), transform .9s var(--l-ease), box-shadow .4s; transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .bar-links { display: none; }
    .trailer { grid-template-columns: minmax(0, 1fr); }
    .questions-grid { grid-template-columns: minmax(0, 1fr); }
    .questions-grid .section-head { position: static; }
}
@media (max-width: 640px) {
    :root { --l-gutter: max(20px, env(safe-area-inset-left, 0px)); }
    body { font-size: 17px; }
    .bar { gap: 14px; }
    .brand span { font-size: 22px; }
    .bar .watch span, .bar .seal span { display: none; }
    .bar .seal { min-height: 40px; padding: 0 12px; }
    .open-actions { flex-direction: column; gap: 18px; }
    .beat-town, .beat-isles { left: 20px; right: 20px; bottom: 10svh; max-width: none; }
    .beat-name { width: calc(100% - 40px); }
    .plaque b { font-size: 14px; padding: 4px 9px 5px; }
    .factions-row { flex-direction: column; height: auto; gap: 10px; padding: 0; }
    .factions-rod { display: none; }
    .faction { flex: none; height: 92px; transition: height .7s var(--l-ease); }
    .faction.is-chosen { height: 440px; }
    .cloth { clip-path: none; border-radius: 10px; padding: 18px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; justify-items: start; align-items: center; column-gap: 16px; animation: none; }
    .cloth-emblem { width: 58px; height: 58px; grid-row: 1; }
    .cloth-emblem svg { width: 48px; height: 48px; }
    .faction.is-chosen .cloth-emblem { transform: none; }
    .cloth-name { margin: 0; grid-row: 1; text-align: left; }
    .cloth-elite { grid-column: 1 / -1; justify-self: center; }
    .cloth-elite svg { width: 200px; }
    .cloth-words { grid-column: 1 / -1; justify-self: center; }
    .parade-unit { width: 104px; }
    .parade-portrait { width: 92px; height: 92px; }
    .parade-portrait svg { width: 76px; height: 76px; }
    .realm-shot, .js .realm-shot { flex-basis: 86vw; }
    .realm-shot img { aspect-ratio: 4 / 3; }
    .js .realm-stage { padding-top: 70px; }
    .realm-shot figcaption { font-size: 19px; }
    .letter summary { min-height: 84px; padding: 14px 16px 14px 20px; gap: 14px; }
    .letter-q { font-size: 20px; }
    .wax { width: 56px; height: 56px; }
    .wax i::before { width: 38px; height: 38px; font-size: 25px; }
    .letter-body { padding: 2px 20px 22px; }
    .letter-body p { font-size: 18px; }
    .footer p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .trailer-play, .final-rose::before { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .seal, .watch i, .faction, .cloth-emblem, .cloth-elite, .cloth-words, .trailer-frame img { transition: none; }
    .cloth, .parade-track { animation: none; }
    .letter, .wax i, .letter-body, .letter::details-content { transition: none; }
}

/* ---- The game's emblems (game/_emblem.html.twig), in the materials of tokens.css ---- */
.unit-svg { display: block; }
.unit-svg polygon { stroke: var(--walnut-edge); stroke-width: .5; stroke-linejoin: round; }
.unit-svg .u-shadow { fill: rgb(0 0 0 / 0.3); }
.unit-svg .u-skin { fill: #e3b68c; }
.unit-svg .u-skin-s { fill: #c28f66; }
.unit-svg .u-pants { fill: #5a4632; }
.unit-svg .u-pants-s { fill: #44341f; }
.unit-svg .u-leather { fill: var(--walnut-light); }
.unit-svg .u-leather-s { fill: var(--walnut); }
.unit-svg .u-brown { fill: #8a6440; }
.unit-svg .u-brown-s { fill: #6b4b2d; }
.unit-svg .u-beige { fill: var(--limestone-shade); }
.unit-svg .u-beige-s { fill: var(--limestone-dark); }
.unit-svg .u-green { fill: #5f7a3c; }
.unit-svg .u-green-s { fill: #475d2b; }
.unit-svg .u-blue { fill: #3f6688; }
.unit-svg .u-blue-s { fill: #2e4c67; }
.unit-svg .u-white { fill: var(--limestone); }
.unit-svg .u-white-s { fill: var(--limestone-shade); }
.unit-svg .u-wax { fill: var(--wax); }
.unit-svg .u-wax-s { fill: #7a2016; }
.unit-svg .u-iron { fill: var(--iron-light); }
.unit-svg .u-iron-s { fill: var(--iron-dark); }
.unit-svg .u-iron-l { fill: #c4c8cc; }
.unit-svg .u-wood { fill: var(--timber); }
.unit-svg .u-wood-s { fill: var(--timber-dark); }
.unit-svg .u-brass { fill: var(--brass); }
.unit-svg .u-brass-s { fill: var(--brass-dark); }
.unit-svg .u-dark { fill: var(--walnut-edge); }
.unit-svg .u-horse { fill: #8a5a36; }
.unit-svg .u-horse-s { fill: #5f3c22; }
.unit-svg .u-mane { fill: #2b1d12; }
.unit-svg .u-sail { fill: var(--limestone); }
.unit-svg .u-sail-s { fill: var(--limestone-shade); }
.unit-svg .u-hull { fill: var(--timber-dark); }
.unit-svg .u-hull-l { fill: var(--timber); }
.unit-svg .u-water { fill: var(--sea); stroke: none; }
.unit-svg .u-water-l { fill: var(--sea-shallow); stroke: none; }
.unit-svg .u-fire { fill: #e0702c; }
.unit-svg .u-fire-l { fill: #f2c14e; }
/* The buildings' materials (game/_building_emblem.html.twig), those of the city view */
.unit-svg .u-roof { fill: var(--terracotta); }
.unit-svg .u-roof-s { fill: var(--terracotta-dark); }
.unit-svg .u-slate { fill: var(--slate); }
.unit-svg .u-slate-s { fill: var(--slate-dark); }
.unit-svg .u-straw { fill: var(--straw); }
.unit-svg .u-straw-s { fill: #b0913f; }
.unit-svg .u-rock { fill: var(--rock); }
.unit-svg .u-rock-s { fill: var(--rock-shade); }
.unit-svg .u-rock-top { fill: var(--rock-top); }
