/*
 * Public site: the guild roll (leaderboard.php), the guild page (guild.php),
 * the dungeon pages (dungeons.php, dungeon.php), the FAQ (faq.php), the
 * download page (download.php) and the home page (index.php).
 *
 * The values are those of the approved mockups in design/leaderboard/ and, for
 * the home page, design/home/; the dungeon pages, the FAQ and the download
 * page have none and follow them. The
 * pages are served with a Content Security Policy that forbids inline styles:
 * everything is a class here, and a page never carries a style attribute.
 * Below 640px the layout is the one of the two phone mockups.
 */

/* Fraunces, Manrope and Cinzel, SIL Open Font License: see fonts/OFL-*.txt */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #17110d;
  --paper: #f4ead8;
  --gold: #e9b84f;
  --gold-ink: #1a1206;
  --muted: #c9b696;
  --soft: #e3d3b6;
  --line: #4a382a;
  --line-soft: #3a2c21;
  --line-dotted: #6b5540;
  --line-field: #9c8566;
  --line-top: rgba(244, 234, 216, 0.3);
  --focus: #7fd8f0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;
  --display: 'Cinzel', serif;
}

/* Base */

body {
  position: relative; margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
}
a { color: var(--paper); }
a:hover { color: var(--gold); }
a:hover .guild-name { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.narrow { display: none; }

.backdrop { position: absolute; top: 0; left: 0; right: 0; height: 840px; pointer-events: none; }
.backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0.3; filter: saturate(0.8); }
.backdrop-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 400px; background: linear-gradient(to bottom, rgba(23, 17, 13, 0), var(--ink)); }
.page-guild .backdrop { height: 640px; }
.page-guild .backdrop img { object-position: center 34%; opacity: 0.24; }
.page-guild .backdrop-fade { height: 360px; }
.site { position: relative; }

/* Header, navigation, footer */

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  max-width: 1240px; margin: 0 auto; padding: 18px 5%; box-sizing: content-box;
  border-bottom: 1px solid var(--line-top);
}
.brand { margin-right: auto; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.24em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.site-nav a, .site-menu nav a { padding: 14px 0; text-decoration: none; }
.site-nav a.current, .site-menu nav a.current { text-decoration: underline; text-underline-offset: 6px; }
.site-lang { display: flex; gap: 14px; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; }
.site-lang a { padding: 14px 0; text-decoration: none; color: var(--muted); }
.site-lang a:hover { color: var(--gold); }
.site-lang a.current { color: var(--paper); text-decoration: underline; text-underline-offset: 6px; }
.site-menu { display: none; position: relative; }
.site-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu nav {
  position: absolute; z-index: 2; top: 100%; right: 0; display: flex; flex-direction: column; min-width: 180px;
  padding: 4px 20px; background: var(--ink); border: 1px solid var(--line-top);
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}

main { max-width: 1240px; margin: 0 auto; box-sizing: content-box; }
.main-roll { padding: 76px 5% 72px; }
.main-guild { padding: 36px 5% 72px; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: 1240px; margin: 0 auto; padding: 24px 5% 36px; box-sizing: content-box;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}

/* Footer: the rebuild button of the roll, printed only on the hosts of leaderboard.rebuild_hosts */

.site-footer { align-items: center; }
.rebuild { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 auto 0 0; }
.rebuild .button { border: 0; border-radius: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
.rebuild-note { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--soft); }
.rebuild-failed { color: #f0a48c; }

/* Shared pieces */

.icon-discord { width: 1.3em; height: 1.3em; margin-right: 0.5em; vertical-align: -0.28em; fill: currentColor; }

.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.section-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.section-rule { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.button { display: inline-block; padding: 13px 30px; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; background: var(--gold); color: var(--gold-ink); }
.button:hover { color: var(--gold-ink); background: #f2cd7c; }
.note { margin: 0; padding: 28px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.guild-unnamed { font-style: italic; color: var(--soft); }
.guild-number { font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.unit { color: var(--muted); }
.value-note { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; line-height: 1.3; letter-spacing: 0; color: var(--muted); }

/* Roll: title and rankings. The title block is lower than in the mockup: about seven tenths of its height. */

.roll-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 56px; margin-bottom: 68px; }
.roll-hero { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.roll-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.3vw, 108px); line-height: 0.9; letter-spacing: -0.03em; }
.roll-title-em { font-style: italic; color: var(--gold); }
.roll-tagline { margin: 0; max-width: 460px; }
.world { flex: 0 1 470px; min-width: 0; }
.world-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.world-figures { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-top); padding-top: 12px; }

.tabs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  border-top: 1px solid var(--line-top); border-bottom: 1px solid var(--line-top); margin-bottom: 48px;
}
.tabs-list { display: flex; flex-wrap: wrap; gap: 0 36px; }
.tab {
  display: inline-flex; align-items: center; min-height: 64px; padding: 0 2px; box-sizing: border-box;
  font-family: var(--serif); font-size: 26px; text-decoration: none; color: var(--soft);
  border-bottom: 3px solid transparent;
}
.tab.current { color: var(--paper); border-bottom-color: var(--gold); }
.tabs-caption { margin: 0; padding: 12px 0; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Roll: podium, the first guild alone (the mockup draws the second and the
   third too). Lower than in the mockup: about seven tenths of its height. */

.podium { margin-bottom: 40px; }
.podium a { text-decoration: none; }
.podium-first { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 56px; }
.podium-first-name { flex: 1 1 460px; min-width: 0; display: flex; align-items: baseline; gap: 20px; }
.podium-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 54px); line-height: 0.98; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.podium-title .guild-number { font-size: 0.3em; }
.podium-figures {
  flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  border-top: 1px solid var(--line); padding-top: 12px; align-items: end;
}
.figure-label { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.figure-value { margin: 2px 0 0; font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.podium-pos { flex: none; font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 0.85; color: var(--muted); white-space: nowrap; }
.podium-ord { margin-left: 2px; font-size: 0.36em; line-height: 0; vertical-align: super; letter-spacing: 0.04em; }
.podium-arts { flex: none; align-self: center; display: flex; gap: 8px; }
.podium-art { display: block; width: 52px; height: 52px; }

/* Roll: list, search, pager */

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; border-bottom: 3px solid var(--paper); }
.search { display: flex; align-items: center; gap: 12px; margin: 0; }
.search label { font-size: 14px; color: var(--muted); }
.search input {
  font: inherit; font-size: 16px; width: 220px; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 2px;
  background: transparent; color: var(--paper); border: none; border-bottom: 1px solid var(--line-field); border-radius: 0;
}

.rows { list-style: none; margin: 0; padding: 0; }
.row, .pos-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.row-pos { flex: none; width: 56px; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--muted); }
.row-name { flex: 0 1 auto; min-width: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; text-decoration: none; }
.row-leader { flex: 1 1 40px; min-width: 24px; align-self: center; border-bottom: 2px dotted var(--line-dotted); }
/* The artifacts a guild took on an expedition, as icons on the right, before its figures: not in the mockups */
.row-arts { flex: none; align-self: center; display: flex; gap: 6px; }
.row-art { display: block; width: 40px; height: 40px; }
/* Floors and Single: the illustration of the first guild's dungeon behind the figures of the podium, dimmed
   and fading out towards the name, as on the guild page: not in the mockups */
.mapped { position: relative; z-index: 0; overflow: hidden; }
.podium-figures.mapped { padding: 14px 16px 16px; }
.map-art {
  position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.4;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), #000 45%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), #000 45%);
}
.row-tally { flex: none; display: flex; gap: 20px; font-variant-numeric: tabular-nums; }
.row-tally .tally-sep { display: none; }
.row-tally .tally-gold { width: 100px; text-align: right; }
.row-tally .tally-creatures { width: 130px; text-align: right; }
.row-end { display: contents; } /* value before level in the source, level before value on a wide row */
.row-level { order: 1; flex: none; width: 56px; text-align: right; color: var(--muted); }
.row-value { order: 2; flex: none; min-width: 150px; max-width: 240px; text-align: right; font-family: var(--serif); font-size: 28px; line-height: 1.15; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; }
.pager-count { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.pager-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-left: auto; }
.pager-prev { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }

/* Guild page. Lower than in the mockup, like the podium: about seven tenths of its height. */

.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.guild-hero { margin: 48px 0 50px; }
.guild-hero .eyebrow { margin-bottom: 10px; }
.guild-title { margin: 0; max-width: 1000px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 0.94; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.guild-title .guild-number { font-size: 0.26em; }
.guild-meta { margin: 12px 0 0; font-size: 18px; }

.guild-figures { display: flex; flex-wrap: wrap; gap: 32px 56px; border-top: 3px solid var(--paper); padding-top: 16px; margin-bottom: 52px; }
.guild-figure { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.figure-text { display: contents; }
.figure-title { order: 1; margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.figure-big { order: 2; margin: 4px 0 0; font-family: var(--serif); font-size: 60px; line-height: 1; letter-spacing: -0.02em; }
.figure-note { order: 3; margin: 6px 0 0; color: var(--muted); }

.guild-floors { margin-bottom: 52px; }
.floor-cards { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-top: 18px; }
.floor-card { flex: 1 1 380px; min-width: 0; display: flex; align-items: flex-start; gap: 28px; }
.floor-best { flex: none; min-width: 104px; font-family: var(--serif); font-style: italic; font-size: 100px; line-height: 0.82; color: var(--gold); }
.floor-text { flex: 1; min-width: 0; }
.floor-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.floor-attempts { margin: 4px 0 8px; color: var(--muted); }
.floor-bar { display: block; width: 100%; height: 6px; background: var(--line-soft); }
.floor-bar-fill { fill: var(--gold); }
.floor-scale { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
/* The dungeon's illustration behind its entry, dimmed and fading out towards the number: not in the mockups */
.floor-card-art { position: relative; z-index: 0; overflow: hidden; padding: 22px 26px 24px; }
.floor-art {
  position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.42;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15), #000 55%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15), #000 55%);
}
.floor-card-art .floor-attempts, .floor-card-art .floor-scale { color: var(--soft); }

.pos-name, .pos-value { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.pos-value { text-align: right; }
.pos-none { font-family: var(--sans); font-size: 16px; color: var(--muted); }

/* Guild page: most played cards, most used artifacts. Not in the mockups: they follow what the mockups draw. */

.guild-positions { margin-bottom: 52px; }
.guild-cards { margin-bottom: 52px; }
.card-row { list-style: none; display: flex; flex-wrap: wrap; gap: 32px 0; margin: 0; padding: 30px 0 0; }
.card-slot { display: flex; flex-direction: column; align-items: center; }
.card-plays { margin: 14px 0 0; color: var(--muted); }

.artifact-list { list-style: none; display: flex; flex-wrap: wrap; gap: 24px 56px; margin: 0; padding: 22px 0 0; }
.artifact { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: 22px; }
.artifact-icon { flex: none; display: block; width: 96px; height: 96px; }
.artifact-icon .game-img { display: block; width: 100%; height: 100%; }
.artifact-text { min-width: 0; }
.artifact h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.artifact-runs { margin: 4px 0 0; color: var(--muted); }

/* A picture of the game that the image index does not have: a neutral box in its place, sized by what holds it. */

.game-img-none { box-sizing: border-box; border: 1px dashed var(--line-dotted); border-radius: 10px; background: rgba(244, 234, 216, 0.06); }

/* Game card: htdocs/game-card.css, linked by the pages that draw one (src/GameCard.php). */


/*
 * Wide screens: everything is drawn at three quarters of the mockups' size, as
 * a browser zoomed to 75% would. The phone layout keeps its own sizes.
 */

/* FAQ (faq.php). No mockup: one column of readable width under a title block like the guild page's, every answer shown. */

.page-faq .backdrop { height: 640px; }
.page-faq .backdrop img { object-position: center 34%; opacity: 0.24; }
.page-faq .backdrop-fade { height: 360px; }
.main-faq { padding: 36px 5% 72px; }
.faq-hero { margin: 48px 0 50px; }
.faq-hero .eyebrow { margin-bottom: 10px; }
.faq-title { margin: 0; max-width: 1000px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 0.94; letter-spacing: -0.03em; }
.faq-tagline { margin: 16px 0 0; max-width: 620px; font-size: 18px; }
/* The categories, as the tabs of the roll: one is shown at a time. They wrap, a FAQ can have many. */
.faq-tabs { max-width: 960px; margin-bottom: 40px; }
.faq-tabs .tabs-list { gap: 0 36px; }
.faq-tabs + .faq-entry { border-top: 0; padding-top: 0; }
.faq-tabs + .faq-entry:target { border-top: 3px solid var(--gold); padding-top: 28px; }
.faq-index { max-width: 960px; margin-bottom: 52px; border-top: 3px solid var(--paper); padding-top: 14px; }
.faq-tabs + .faq-index { border-top: 0; padding-top: 0; }
.faq-index ol { margin: 0; padding: 0 0 0 1.5em; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.faq-index li { padding: 7px 0; }
.faq-index li::marker { font-style: italic; color: var(--gold); }
.faq-index a { text-decoration: none; }
.faq-entry { max-width: 960px; padding: 30px 0 36px; border-top: 1px solid var(--line); scroll-margin-top: 24px; overflow-wrap: anywhere; }
/* The question a link points at (faq.php#id) */
.faq-entry:target { border-top: 3px solid var(--gold); padding-top: 28px; }
.faq-entry:target .faq-question { color: var(--gold); }
.faq-question { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; }
.faq-answer { font-size: 22px; line-height: 1.55; color: var(--soft); }
.faq-answer p, .faq-answer ul, .faq-answer ol { margin: 0 0 16px; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { padding-left: 1.4em; }
.faq-answer li { margin: 6px 0; }
.faq-answer li::marker { color: var(--gold); }
.faq-answer strong { font-weight: 600; color: var(--paper); }
.faq-answer a { color: var(--gold); text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--paper); }
.faq-back { margin: 28px 0 0; }

/* Download (download.php). No mockup: the title beside a framed panel holding the build, the warnings as numbered notes, then Discord. */

.page-download .backdrop { height: 640px; }
.page-download .backdrop img { object-position: center 28%; opacity: 0.34; }
.page-download .backdrop-fade { height: 320px; }
.main-download { padding: 16px 5% 48px; }
.download-top { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 64px; margin: 40px 0 56px; }
.download-hero { flex: 1 1 440px; min-width: 0; }
.download-hero .eyebrow { margin-bottom: 12px; }
.download-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.6vw, 88px); line-height: 0.92; letter-spacing: -0.03em; }
.download-tagline { margin: 18px 0 0; max-width: 520px; font-size: 19px; line-height: 1.45; color: var(--soft); }
/* The panel: a double frame, gold outside and faint gold inside, with a gem on its top edge. */
.download-panel {
  position: relative; flex: 1 1 420px; max-width: 560px; min-width: 0; box-sizing: border-box;
  padding: 28px 34px 24px; background: rgba(23, 17, 13, 0.8); border: 1px solid rgba(233, 184, 79, 0.5);
  box-shadow: inset 0 0 0 7px rgba(23, 17, 13, 0.85), inset 0 0 0 8px rgba(233, 184, 79, 0.2), 0 28px 70px rgba(0, 0, 0, 0.5);
}
.download-panel::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: var(--gold); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 4px var(--ink); }
.download-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
/* A file name is one word up to 128 characters long: it breaks anywhere rather than scroll a phone sideways. */
.download-file { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.download-facts { display: flex; flex-wrap: wrap; gap: 10px 44px; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.download-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.download-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; padding: 16px 24px; font-size: 15px; text-align: center; }
.icon-download { flex: none; width: 20px; height: 20px; }
.download-permanent { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.icon-chain { flex: none; width: 17px; height: 17px; color: var(--gold); }
.download-permanent a { font-weight: 600; color: var(--gold); text-underline-offset: 3px; }
.download-permanent a:hover { color: var(--paper); }
.download-permanent span { flex: 1 1 100%; }
.download-none { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--soft); }
.download-notes { margin-bottom: 44px; }
.download-note-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 26px 48px; margin: 0; padding: 20px 0 0; list-style: none; }
.download-note { display: flex; align-items: flex-start; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.download-note-num { flex: none; min-width: 0.62em; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 0.82; color: var(--gold); }
.download-note h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.download-note p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--soft); }
.download-cheer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 56px; padding: 26px 40px; border-left: 3px solid var(--gold); background: linear-gradient(to right, rgba(233, 184, 79, 0.12), rgba(233, 184, 79, 0)); }
.download-cheer p { flex: 1 1 440px; margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.38; }
.button-ghost { flex: none; background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.button-ghost:hover { background: var(--gold); color: var(--gold-ink); }

/* Dungeons (dungeons.php, dungeon.php). No mockup: each dungeon a row over its dimmed illustration, fading out
   towards the figures; a dungeon's page a heading over the same picture, then the roll's rows for its guilds. */

.page-dungeons .backdrop { height: 640px; }
.page-dungeons .backdrop img { object-position: center 34%; opacity: 0.24; }
.page-dungeons .backdrop-fade { height: 360px; }
.main-dungeons { padding: 36px 5% 72px; }
.dungeons-hero { margin: 48px 0 50px; }
.dungeons-hero .eyebrow, .dungeon-hero .eyebrow { margin-bottom: 10px; }
.dungeons-title, .dungeon-title { margin: 0; max-width: 1000px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 0.94; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.dungeons-tagline { margin: 16px 0 0; max-width: 620px; font-size: 18px; }

.dungeon-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--paper); }
.dungeon { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 44px; padding: 26px 28px; border-bottom: 1px solid var(--line-soft); }
.dungeon-art, .dungeon-hero-art { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.dungeon-art {
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.06) 85%); mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.06) 85%);
}
.dungeon-main { flex: 1 1 340px; min-width: 0; }
.dungeon-kind { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.dungeon-name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
.dungeon-name a { text-decoration: none; }
.dungeon-name, .dungeon-holder-name, .dungeon-title { text-shadow: 0 1px 14px rgba(23, 17, 13, 0.85); }
.dungeon-played { margin: 4px 0 0; color: var(--soft); }
.dungeon-holder { flex: 1 1 220px; min-width: 0; }
.dungeon-holder-name { display: inline-block; margin-top: 2px; font-family: var(--serif); font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; text-decoration: none; }
.dungeon-figures { flex: 0 1 280px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dungeon-open { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.dungeon-open:hover { color: var(--paper); }
.icon-arrow { flex: none; width: 18px; height: 18px; }

.dungeon-hero { margin: 36px 0 50px; }
.dungeon-hero.mapped { display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; box-sizing: border-box; padding: 40px 40px 34px; }
.dungeon-hero-art {
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2), #000 60%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2), #000 60%);
}
.dungeon-caption { margin: 14px 0 0; font-size: 18px; }
/* What a dungeon's tier does (dungeon_tier_note), under the caption of a dungeon page that has one. */
.dungeon-tier-note { margin: 6px 0 0; color: var(--soft); }
.row-tally .tally-px { width: 110px; text-align: right; }
.main-dungeons .row-value { min-width: 120px; }
/* A guild that reached the dungeon's last floor: a small gold word under its floor (lastFloorMark()). */
.last-floor { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
/* A PX the dungeon tier cut (pxShareMark()): the share under the value, like the last floor's mark but muted; inline in a tally. */
.px-share { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tally-share { color: var(--muted); }

/* A dungeon named in a ranking or on a guild page leads to its page */
.value-note a, .floor-card h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-dotted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.value-note a:hover, .floor-card h3 a:hover { color: var(--gold); text-decoration-color: currentColor; }

/* Home (index.php): design/home/index.html, "a run in three acts", approved on 2026-10-27. The header sits on the
   home's own illustration, which fades out towards the text; its screenshots and its clip are files of img/
   (HOME_MEDIA), and a box holding their description (.home-media-none) takes their place until they are there. While
   the clip is not there its box shows the slideshow the panel saved (.home-slides), or a still alone (.home-clip-shot). */

.page-home .backdrop { height: 740px; }
.page-home .backdrop img {
  object-position: center 40%; opacity: 0.5; filter: saturate(0.85);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25) 38%, #000 70%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25) 38%, #000 70%);
}
.page-home .backdrop-fade { height: 260px; }
.page-home .site-header { border-bottom: 0; }
.page-home .brand { font-size: 18px; }
.page-home .site-nav { gap: 4px 28px; font-size: 13px; font-weight: 600; }
.page-home .site-lang { font-size: 13px; font-weight: 600; }
.page-home .site-footer { border-top: 0; }

.main-home { padding: 0 5% 48px; }
.home-hero { display: flex; align-items: center; min-height: 640px; box-sizing: border-box; padding: 24px 0 72px; }
/* Wider than drawn by 30% (user's request, 2026-10-27): "Prepara. Costruisci." on one line */
.home-hero-text { max-width: 832px; }
.home-eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.home-eyebrow-alpha { color: var(--gold); }
.home-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 8.6vw, 120px); line-height: 0.92; letter-spacing: -0.03em; }
.home-title-em { font-style: italic; color: var(--gold); }
.home-tagline { margin: 20px 0 0; max-width: 520px; font-size: 19px; line-height: 1.55; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 28px 0 0; }
.home-cta { padding: 15px 28px; letter-spacing: 0.14em; }
.home-follow { font-size: 15px; text-underline-offset: 5px; }

.home-act { padding-bottom: 72px; line-height: 1.55; }
.home-act-first { padding-top: 32px; }
.home-act-split { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 72px; }
.home-act-text { flex: 1 1 380px; min-width: 0; }
.home-act-media { flex: 1.4 1 520px; min-width: 0; }
.home-act-head { max-width: 760px; margin-bottom: 24px; }
.home-act-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.home-act-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; }
.home-act-title em { font-style: italic; }
.home-act-lead { margin: 16px 0 0; color: var(--soft); }

.home-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-sizing: border-box; border: 1px solid var(--line); }
/* Act one's two screenshots are larger than drawn (user's request, 2026-10-27: the game's screens were unreadable):
   the text gives them room, and the second one, tilted like a card laid on the first, covers less of it */
#act-1 .home-act-text { flex: 1 1 300px; }
#act-1 .home-act-media { flex: 3 1 600px; }
.home-shots { position: relative; padding-bottom: 60px; }
.home-shots .home-shot:first-child { position: relative; width: 84%; }
.home-shots .home-shot + .home-shot {
  position: absolute; z-index: 1; right: 0; bottom: 0; width: 52%; rotate: 1.5deg;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(233, 184, 79, 0.18);
}
.home-media-none {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px;
  background: #0f0b08; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; text-align: center;
}

.home-clip { position: relative; overflow: hidden; aspect-ratio: 16 / 9; box-sizing: border-box; background: #0f0b08; border: 1px solid var(--line); }
.home-clip video, .home-clip-still, .home-clip-shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-clip-still { display: none; }
/* The slideshow (homeSlides()): its screenshots stacked in the box, the first one alone without motion; "Motion and
   light" shows them in turn */
.home-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.home-slide:first-child { opacity: 1; }
.home-clip.home-media-none { padding: 24px; color: var(--soft); font-size: 22px; }
.home-clip.home-media-none svg { color: var(--gold); }
.home-clip.home-media-none p { max-width: 460px; margin: 0; }
/* Less motion: the still of the clip in its place, when there is one */
@media (prefers-reduced-motion: reduce) {
  .home-clip-still { display: block; }
  .home-clip-still + video { display: none; }
}
.home-features { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 28px 0 0; padding: 0; list-style: none; }
.home-feature { flex: 1 1 280px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.home-feature h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.4; }
.home-feature p { margin: 0; color: var(--soft); }

#act-3 .home-act-lead { margin-bottom: 20px; }
.home-town { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.home-town p { margin: 0; }
.home-town-value { display: block; font-family: var(--serif); font-size: 44px; line-height: 1.05; }
.home-town-label { font-size: 14px; color: var(--muted); }
.home-roll-link { margin: 18px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.home-door {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 56px; padding: 40px 0;
  border-top: 3px solid var(--paper); border-bottom: 1px solid var(--line);
}
.home-door-text { flex: 1 1 520px; min-width: 0; }
.home-door-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.05; }
.home-door-facts { margin: 14px 0 0; color: var(--soft); }
.home-door .home-actions { margin: 0; }

@media (min-width: 641px) {
  html { zoom: 0.75; }
}

/* Phone: the layouts of index-phone.html and guild-phone.html */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wide { display: none; }
  .narrow { display: inline; }

  .backdrop { height: 540px; }
  .backdrop img { object-position: 60% 30%; }
  .backdrop-fade { height: 280px; }
  .page-guild .backdrop { height: 480px; }
  .page-guild .backdrop img { object-position: 60% 30%; }
  .page-guild .backdrop-fade { height: 260px; }

  .site-header { flex-wrap: nowrap; gap: 8px 12px; padding: 8px 20px; }
  .brand { font-size: 17px; letter-spacing: 0.16em; white-space: nowrap; }
  .site-nav { display: none; }
  .site-lang { gap: 4px; font-size: 13px; }
  .site-lang a { min-width: 36px; text-align: center; }
  .site-menu { display: block; }
  .main-roll { padding: 72px 20px 40px; }
  .main-guild { padding: 16px 20px 40px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 20px 20px 28px; font-size: 13px; }
  .rebuild { margin: 6px 0; }
  .rebuild-note { font-size: 16px; }

  .eyebrow { margin-bottom: 10px; font-size: 13px; }
  .section-title { margin: 0 0 8px; font-size: 13px; }
  .section-rule { padding-bottom: 12px; font-size: 13px; letter-spacing: 0.18em; }
  .button { padding: 14px 24px; font-size: 13px; }
  .note { padding-top: 22px; font-size: 18px; }
  .guild-number { font-size: 12px; }

  .roll-top { display: block; margin-bottom: 44px; }
  .roll-hero { margin-bottom: 28px; }
  .world-title { font-size: 12px; }
  .world-figures { gap: 10px; padding-top: 10px; }
  .world .figure-label { font-size: 10px; letter-spacing: 0.06em; }
  .world .figure-value { font-size: 21px; }
  .roll-title { font-size: 68px; }
  .roll-tagline { max-width: 300px; }

  .tabs { display: block; border: none; margin-bottom: 36px; }
  .tabs-list { flex-wrap: nowrap; gap: 0 28px; border-top: 1px solid var(--line-top); border-bottom: 1px solid var(--line-top); }
  .tab { min-height: 56px; font-size: 22px; }
  .tabs-caption { padding: 12px 0 0; font-size: 12px; color: var(--soft); }

  .podium { margin-bottom: 40px; }
  .podium-first { display: block; }
  .podium-first-name { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; }
  .podium-arts { grid-column: 2; gap: 6px; margin: -14px 0 20px; }
  .podium-art { width: 36px; height: 36px; }
  .podium-title { margin-bottom: 20px; font-size: 42px; line-height: 1; }
  .podium-figures { gap: 12px; padding-top: 14px; }
  .figure-label { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
  .figure-value { margin-top: 2px; font-size: 23px; line-height: 1.3; }
  .podium-pos { font-size: 52px; }

  .list-head { display: block; padding-bottom: 14px; }
  .search { flex-direction: column; align-items: stretch; gap: 0; }
  .search label { font-size: 13px; }
  .search input { width: 100%; }

  .row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "pos name end" "pos tally end" "pos arts end"; align-items: start; gap: 2px 10px; padding: 14px 0; }
  .row-arts { grid-area: arts; gap: 4px; margin-top: 4px; }
  .row-art { width: 28px; height: 28px; }
  .row-pos { width: auto; font-size: 24px; line-height: 1.1; }
  .row .row-pos { grid-area: pos; }
  .row-name { grid-area: name; font-size: 21px; }
  .row-leader { display: none; }
  .row-tally { grid-area: tally; display: block; font-size: 14px; color: var(--muted); }
  .row-tally .tally-sep { display: inline; }
  .row-tally .tally-gold, .row-tally .tally-creatures { width: auto; }
  .row-end { display: block; grid-area: end; text-align: right; }
  .row-level { display: block; width: auto; margin-top: 2px; font-size: 14px; }
  .row-value { display: block; min-width: 0; max-width: 150px; font-size: 21px; }

  .pager { padding-top: 22px; }
  .pager-count { font-size: 18px; }
  .pager-prev { font-size: 13px; }

  .back { gap: 8px; font-size: 13px; }
  .guild-hero { margin: 48px 0; }
  .guild-hero .eyebrow { margin-bottom: 12px; }
  .guild-title { font-size: 50px; line-height: 0.96; }
  .guild-meta { margin-top: 18px; font-size: 16px; }
  .sep-founded { display: none; }
  .meta-founded { display: block; }

  .guild-figures { display: block; padding-top: 0; margin-bottom: 56px; }
  .guild-figure { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
  .figure-text { display: block; }
  .figure-title { font-size: 13px; letter-spacing: 0.18em; }
  .figure-note { margin-top: 4px; font-size: 14px; }
  .figure-big { margin: 0; font-size: 56px; }

  .guild-floors { margin-bottom: 56px; }
  .floor-cards { display: block; padding-top: 0; }
  .floor-card { gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
  .floor-card-art { padding: 24px 16px; }
  .floor-best { min-width: 84px; font-size: 84px; }
  .floor-card h3 { font-size: 24px; }
  .floor-attempts { margin: 6px 0 14px; font-size: 14px; }
  .floor-scale { margin-top: 8px; font-size: 13px; }
  .floor-scale-start { display: none; }

  .pos-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; padding: 14px 0; }
  .pos-name, .pos-value { font-size: 21px; }
  .pos-none { font-size: 14px; }

  /* Two cards across: a card and its margins are 123 units, the page has 20px on each side */
  .guild-positions, .guild-cards { margin-bottom: 56px; }
  .card-row { --card-unit: clamp(1.2px, calc((100vw - 40px) / 246), 1.9px); gap: 22px 0; padding-top: 22px; justify-content: center; }
  .card-plays { margin-top: 10px; font-size: 14px; }

  .artifact-list { display: block; padding-top: 0; }
  .artifact { gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
  .artifact-icon { width: 72px; height: 72px; }
  .artifact h3 { font-size: 22px; }
  .artifact-runs { font-size: 14px; }

  .page-faq .backdrop { height: 480px; }
  .page-faq .backdrop img { object-position: 60% 30%; }
  .page-faq .backdrop-fade { height: 260px; }
  .main-faq { padding: 16px 20px 40px; }
  .faq-hero { margin: 40px 0; }
  .faq-hero .eyebrow { margin-bottom: 12px; }
  .faq-title { font-size: 44px; line-height: 0.98; }
  .faq-tagline { margin-top: 18px; font-size: 16px; }
  .faq-tabs { margin-bottom: 28px; }
  .faq-tabs .tabs-list { flex-wrap: wrap; gap: 0 24px; }
  .faq-tabs .tab { min-height: 48px; font-size: 20px; }
  .faq-tabs + .faq-entry:target { padding-top: 22px; }
  .faq-index { margin-bottom: 40px; }
  .faq-index ol { font-size: 19px; }
  .faq-entry { padding: 24px 0 28px; }
  .faq-entry:target { padding-top: 22px; }
  .faq-question { margin-bottom: 12px; font-size: 26px; line-height: 1.14; }
  .faq-answer { font-size: 17px; }
  .faq-answer p, .faq-answer ul, .faq-answer ol { margin-bottom: 12px; }

  .page-download .backdrop { height: 440px; }
  .page-download .backdrop img { object-position: 60% 30%; }
  .page-download .backdrop-fade { height: 260px; }
  .main-download { padding: 8px 20px 28px; }
  .download-top { gap: 28px; margin: 24px 0 36px; }
  .download-hero .eyebrow { margin-bottom: 10px; }
  .download-title { font-size: 44px; line-height: 0.96; }
  .download-tagline { margin-top: 12px; font-size: 16px; }
  .download-panel { padding: 24px 20px 20px; }
  .download-file { font-size: 22px; }
  .download-facts { gap: 8px 32px; margin-top: 12px; padding-top: 10px; }
  .download-facts dd { font-size: 20px; }
  .download-button { margin-top: 16px; padding: 15px 16px; font-size: 13px; }
  .download-permanent { font-size: 14px; }
  .download-none { font-size: 20px; }
  .download-notes { margin-bottom: 32px; }
  .download-note-list { gap: 16px; padding-top: 14px; }
  .download-note { gap: 14px; padding-top: 12px; }
  .download-note-num { font-size: 38px; }
  .download-note h3 { margin-bottom: 4px; font-size: 20px; }
  .download-note p { font-size: 15px; line-height: 1.45; }
  .download-cheer { gap: 16px; padding: 20px 18px; }
  .download-cheer p { flex-basis: auto; font-size: 18px; }

  .page-dungeons .backdrop { height: 480px; }
  .page-dungeons .backdrop img { object-position: 60% 30%; }
  .page-dungeons .backdrop-fade { height: 260px; }
  .main-dungeons { padding: 16px 20px 40px; }
  .dungeons-hero { margin: 40px 0; }
  .dungeons-title, .dungeon-title { font-size: 44px; line-height: 0.98; }
  .dungeons-tagline { margin-top: 18px; font-size: 16px; }
  .dungeon { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 16px; padding: 22px 16px; }
  .dungeon-main, .dungeon-holder { grid-column: 1 / -1; }
  .dungeon-kind { font-size: 11px; }
  .dungeon-name { font-size: 26px; }
  .dungeon-played { font-size: 14px; }
  .dungeon-holder-name { font-size: 21px; }
  .dungeon-figures { gap: 12px; }
  .dungeon-open { font-size: 0; gap: 0; min-width: 44px; justify-content: flex-end; }
  .icon-arrow { width: 22px; height: 22px; }
  .dungeon-hero { margin: 32px 0 40px; }
  .dungeon-hero.mapped { min-height: 220px; padding: 24px 16px 20px; }
  .dungeon-caption { margin-top: 12px; font-size: 16px; }
  .dungeon-tier-note { font-size: 14px; }
  .row-tally .tally-px { width: auto; }
  .main-dungeons .row-value { min-width: 0; }
  .last-floor, .px-share { font-size: 10px; letter-spacing: 0.12em; }

  .page-home .backdrop { height: 540px; }
  .page-home .backdrop img { opacity: 0.32; -webkit-mask-image: none; mask-image: none; }
  .main-home { padding: 0 20px 28px; }
  .home-hero { min-height: 0; padding: 48px 0 56px; }
  .home-eyebrow { margin-bottom: 16px; font-size: 12px; }
  .home-title { font-size: 56px; }
  .home-tagline { margin-top: 20px; font-size: 16px; }
  .home-actions { gap: 14px 24px; margin-top: 28px; }
  .home-act { padding-bottom: 52px; }
  .home-act-first { padding-top: 0; }
  .home-act-split { gap: 20px; }
  .home-act-text, .home-act-media { flex-basis: 100%; }
  .home-act-head { margin-bottom: 18px; }
  .home-act-title { font-size: 40px; }
  .home-act-lead { margin-top: 12px; font-size: 16px; }
  .home-shots { padding-bottom: 28px; }
  .home-media-none { font-size: 15px; }
  .home-clip.home-media-none { gap: 10px; padding: 16px; font-size: 16px; }
  .home-clip.home-media-none svg { width: 44px; height: 44px; }
  /* Act three: its text first, as on the other two */
  #act-3 .home-act-media { order: 1; }
  #act-3 .home-act-lead { margin-bottom: 16px; }
  .home-features { gap: 16px; margin-top: 20px; }
  .home-feature h3 { font-size: 21px; }
  .home-feature p { font-size: 15px; }
  .home-town-value { font-size: 34px; }
  .home-door { padding: 40px 0; }
  .home-door-title { font-size: 34px; }
  .home-door-facts { font-size: 15px; }
}

/*
 * Motion and light. Not in the mockups: left to Claude by the user (2026-10-18).
 *
 * Style alone, no script: a page moves only through the animations and
 * transitions below, and every one of them is under prefers-reduced-motion:
 * no-preference, so a visitor who asks the system for less motion gets the
 * still page (hover colours aside). Pointer effects are under (hover: hover),
 * so a tap on a phone leaves nothing lit. The game card is left out on purpose:
 * it does not react to the pointer (user's decision, 2026-10-09).
 */

::selection { background: rgba(233, 184, 79, 0.85); color: var(--gold-ink); }
html { scrollbar-color: var(--line) var(--ink); }
a { transition: color 0.2s ease; }
.brand { text-shadow: 0 0 18px rgba(233, 184, 79, 0.28); }

/* Gold that catches the light: the italic of the roll's title, the podium's place, the record floors, the numbered notes */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .roll-title-em, .podium-pos, .floor-best, .download-note-num, .home-title-em {
    background: linear-gradient(100deg, #d49a35 0%, #e9b84f 36%, #fff1c4 50%, #e9b84f 64%, #d49a35 100%) 0 0 / 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  /* The italic leans out of its box: room for it, without moving the words around it */
  .roll-title-em, .podium-pos, .home-title-em { padding-right: 0.1em; margin-right: -0.1em; }
}

/* Pointer: rows light up, icons lift, tabs and links underline, buttons catch a glint */
.tab { transition: color 0.25s ease, border-color 0.25s ease; }
.site-nav a:not(.current) { background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 9px) / 0 1px; transition: color 0.2s ease, background-size 0.3s ease; }
.button { position: relative; z-index: 0; overflow: hidden; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.button::after {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg); opacity: 0;
}
.row-art, .podium-art, .artifact-icon { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease; }
.floor-art, .dungeon-art { transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease, filter 0.6s ease; }
.faq-index a { transition: color 0.2s ease, padding-left 0.25s ease; }
.home-shot, .home-clip { transition: scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), rotate 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, filter 0.5s ease; }
img.home-shot { filter: saturate(0.9) brightness(0.9); }
.home-feature { transition: translate 0.35s ease; }
.home-feature h3, .home-town-value { transition: color 0.3s ease; }
.home-roll-link a { transition: color 0.2s ease, letter-spacing 0.35s ease; }

@media (hover: hover) {
  .site-nav a:not(.current):hover { background-size: 100% 1px; }
  .tab:not(.current):hover { color: var(--paper); border-bottom-color: rgba(233, 184, 79, 0.45); }

  .row { position: relative; z-index: 0; }
  .row::before {
    content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -18px; right: -18px; pointer-events: none;
    background: linear-gradient(90deg, rgba(233, 184, 79, 0), rgba(233, 184, 79, 0.1) 22%, rgba(233, 184, 79, 0.05) 70%, rgba(233, 184, 79, 0));
    opacity: 0; transition: opacity 0.3s ease;
  }
  .row:hover::before { opacity: 1; }
  .row .row-pos, .row .row-leader { transition: color 0.3s ease, border-color 0.3s ease; }
  .row:hover .row-pos { color: var(--gold); }
  .row:hover .row-leader { border-bottom-color: rgba(233, 184, 79, 0.6); }

  .row-art:hover, .podium-art:hover, .artifact:hover .artifact-icon { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 0 10px rgba(233, 184, 79, 0.55)); }
  .floor-card-art:hover .floor-art { transform: scale(1.06); opacity: 0.55; }
  .dungeon.mapped:hover .dungeon-art { transform: scale(1.06); opacity: 0.52; }
  .faq-index a:hover { padding-left: 0.3em; color: var(--gold); }
  /* The home's screenshots: the one under the pointer comes forward, straightens and lights up, framed in gold. The
     zoom stays slight, an effect and not a magnifier (user's decision, 2026-10-27, after trying one up to twice) */
  img.home-shot:hover, .home-clip:hover {
    z-index: 2; scale: 1.03; rotate: 0deg; filter: none; border-color: rgba(233, 184, 79, 0.7);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 34px -6px rgba(233, 184, 79, 0.45);
  }
  /* The slideshow stops on the screenshot under the pointer */
  .home-slides:hover .home-slide { animation-play-state: paused; }
  /* A feature and a figure of the town warm to gold under the pointer; the way to the roll opens out */
  .home-feature:hover h3, .home-town p:hover .home-town-value { color: var(--gold); }
  .home-feature:hover { translate: 0 -3px; }
  .home-roll-link a:hover { letter-spacing: 0.2em; }

  .button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(233, 184, 79, 0.7); }
  .button-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 12px 30px -10px rgba(233, 184, 79, 0.7); }
  .button:active { transform: translateY(0); }
  .button:hover::after { opacity: 1; transform: skewX(-20deg) translateX(480%); transition: transform 0.8s ease, opacity 0.2s ease; }
}

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

  /* From one page to the next, a crossfade, the header holding still (Chrome and Safari; elsewhere a plain load) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

  /* The backdrop breathes, and embers drift up through it: three layers of sparks, each moving one tile a loop */
  .backdrop { overflow: hidden; }
  .backdrop img { transform-origin: 50% 30%; animation: dcg-drift 40s ease-in-out infinite alternate; }
  .backdrop::after {
    content: ''; position: absolute; top: 0; left: -24px; right: -24px; bottom: 0;
    background-image:
      radial-gradient(circle, rgba(255, 222, 150, 0.95) 0 1px, rgba(233, 184, 79, 0) 3px),
      radial-gradient(circle, rgba(255, 196, 110, 0.8) 0 1.5px, rgba(233, 184, 79, 0) 4px),
      radial-gradient(circle, rgba(255, 240, 200, 0.7) 0 1px, rgba(233, 184, 79, 0) 3px),
      radial-gradient(circle, rgba(255, 210, 130, 0.75) 0 1px, rgba(233, 184, 79, 0) 2.5px),
      radial-gradient(circle, rgba(255, 186, 96, 0.6) 0 2px, rgba(233, 184, 79, 0) 5px);
    background-size: 190px 230px, 290px 310px, 410px 370px, 157px 263px, 523px 449px;
    background-position: 20px 40px, 130px 90px, 260px 10px, 71px 180px, 333px 260px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 12%, #000 40%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 12%, #000 40%, rgba(0, 0, 0, 0) 80%);
    opacity: 0.6;
    animation: dcg-embers 34s linear infinite, dcg-sway 9s ease-in-out infinite alternate, dcg-flicker 5s ease-in-out infinite alternate;
  }

  /* The gold of the titles: a band of light crosses it now and then */
  .roll-title-em, .podium-pos, .home-title-em { animation: dcg-sheen 8s ease-in-out 1.2s infinite; }

  /* Arrival: the title block first, then the podium, then the rows one after another */
  .roll-hero, .guild-hero, .dungeons-hero, .dungeon-hero, .faq-hero, .download-hero, .home-hero { animation: dcg-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .world { animation: dcg-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  .download-panel { animation: dcg-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .podium { animation: dcg-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both; }
  .podium .map-art, .dungeon-hero-art { animation: dcg-drift 30s ease-in-out infinite alternate; }
  .podium-art { animation: dcg-float 3.6s ease-in-out infinite alternate; }
  .podium-art:nth-child(2n) { animation-delay: -1.2s; }
  .podium-art:nth-child(3n) { animation-delay: -2.4s; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li { animation: dcg-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.26s + var(--dcg-n, 12) * 0.045s); }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(1) { --dcg-n: 0; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(2) { --dcg-n: 1; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(3) { --dcg-n: 2; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(4) { --dcg-n: 3; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(5) { --dcg-n: 4; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(6) { --dcg-n: 5; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(7) { --dcg-n: 6; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(8) { --dcg-n: 7; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(9) { --dcg-n: 8; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(10) { --dcg-n: 9; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(11) { --dcg-n: 10; }
  :is(.main-roll .rows, .main-dungeons .rows, .dungeon-list) > li:nth-child(12) { --dcg-n: 11; }

  /* The record bar fills up */
  .floor-bar-fill { transform-box: fill-box; transform-origin: 0 50%; animation: dcg-fill 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both; }

  /* A link that stays on its page (#page_top: rankings, pages of the roll, search, FAQ categories, languages; PAGE_TOP
     in SiteView.php), or one to a question of another category of the FAQ: what it does not change holds still,
     and only what it brings arrives */
  #page_top:target .roll-hero, #page_top:target .world, #page_top:target .guild-hero, #page_top:target .faq-hero,
  #page_top:target .dungeons-hero, #page_top:target .dungeon-hero,
  #page_top:target .download-hero, #page_top:target .download-panel, #page_top:target .floor-bar-fill, #page_top:target .home-hero,
  .page-faq:has(.faq-entry:target) .faq-hero { animation: none; }

  /* Below the fold, a section rises as it scrolls in. The range ends once a box is whole in view, which the
     last one of a page always reaches, so nothing is left faded on a page too short to scroll. */
  @supports (animation-timeline: view()) {
    .guild-figures, .guild-floors, .guild-positions, .guild-cards, .guild-artifacts, .faq-entry, .download-note, .download-cheer,
    .home-act-text, .home-act-media, .home-act-head, .home-clip, .home-features, .home-door {
      animation: dcg-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 90%;
    }
  }

  /* The question a link points at glows for a moment */
  .faq-entry:target .faq-question { animation: dcg-called 1.8s ease-out 0.2s both; }

  /* The download: its button beckons, its gem glows, a glint runs round its frame */
  .download-button, .home-hero .home-cta { animation: dcg-beckon 3.2s ease-in-out 1s infinite; }
  .download-button:hover, .home-hero .home-cta:hover { animation: none; }
  .download-panel::before { animation: dcg-gem 2.8s ease-in-out infinite alternate; }
  .download-panel::after {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--dcg-glint), rgba(255, 241, 196, 0) 0turn, rgba(255, 241, 196, 0) 0.7turn, rgba(255, 241, 196, 0.95) 0.86turn, rgba(255, 241, 196, 0) 1turn);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: dcg-glint 7s linear infinite;
  }

  /* The home's screenshots: the card laid on the first one breathes, the dungeon's still pans slowly across the
     board, and now and then a light passes over it */
  .home-shots .home-shot + .home-shot { animation: dcg-bob 4.5s ease-in-out infinite alternate; }
  .home-shots .home-shot + .home-shot:hover { animation-play-state: paused; }
  .home-clip-shot, .home-clip-still { animation: dcg-pan 28s ease-in-out infinite alternate; }
  /* The slideshow: each screenshot in turn for the seconds of slides-d<seconds>, fading in over the one before by
     the keyframes of slides-n<count> (at the end of the file), while every one of them pans like the still. The
     delays are negative so that each screenshot is already where it belongs in the cycle when the page opens, an
     eighth of a screenshot's time on: past the last one's fade over the first. */
  .home-slide {
    --slide-i: 0;
    animation-name: dcg-slides-2, dcg-pan; animation-duration: calc(var(--slides-n) * var(--slides-d)), 28s;
    animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; animation-direction: normal, alternate;
    animation-delay: calc((var(--slide-i) - var(--slides-n) - 0.125) * var(--slides-d)), 0s;
  }
  .slides-n2 { --slides-n: 2; } .slides-n2 .home-slide { animation-name: dcg-slides-2, dcg-pan; }
  .slides-n3 { --slides-n: 3; } .slides-n3 .home-slide { animation-name: dcg-slides-3, dcg-pan; }
  .slides-n4 { --slides-n: 4; } .slides-n4 .home-slide { animation-name: dcg-slides-4, dcg-pan; }
  .slides-n5 { --slides-n: 5; } .slides-n5 .home-slide { animation-name: dcg-slides-5, dcg-pan; }
  .slides-n6 { --slides-n: 6; } .slides-n6 .home-slide { animation-name: dcg-slides-6, dcg-pan; }
  .slides-n7 { --slides-n: 7; } .slides-n7 .home-slide { animation-name: dcg-slides-7, dcg-pan; }
  .slides-n8 { --slides-n: 8; } .slides-n8 .home-slide { animation-name: dcg-slides-8, dcg-pan; }
  .slides-n9 { --slides-n: 9; } .slides-n9 .home-slide { animation-name: dcg-slides-9, dcg-pan; }
  .slides-n10 { --slides-n: 10; } .slides-n10 .home-slide { animation-name: dcg-slides-10, dcg-pan; }
  .slides-n11 { --slides-n: 11; } .slides-n11 .home-slide { animation-name: dcg-slides-11, dcg-pan; }
  .slides-n12 { --slides-n: 12; } .slides-n12 .home-slide { animation-name: dcg-slides-12, dcg-pan; }
  .home-slide:nth-child(2) { --slide-i: 1; } .home-slide:nth-child(3) { --slide-i: 2; } .home-slide:nth-child(4) { --slide-i: 3; } .home-slide:nth-child(5) { --slide-i: 4; } .home-slide:nth-child(6) { --slide-i: 5; }
  .home-slide:nth-child(7) { --slide-i: 6; } .home-slide:nth-child(8) { --slide-i: 7; } .home-slide:nth-child(9) { --slide-i: 8; } .home-slide:nth-child(10) { --slide-i: 9; } .home-slide:nth-child(11) { --slide-i: 10; } .home-slide:nth-child(12) { --slide-i: 11; }
  .slides-d2 { --slides-d: 2s; } .slides-d3 { --slides-d: 3s; } .slides-d4 { --slides-d: 4s; } .slides-d5 { --slides-d: 5s; } .slides-d6 { --slides-d: 6s; } .slides-d7 { --slides-d: 7s; } .slides-d8 { --slides-d: 8s; } .slides-d9 { --slides-d: 9s; } .slides-d10 { --slides-d: 10s; }
  .slides-d11 { --slides-d: 11s; } .slides-d12 { --slides-d: 12s; } .slides-d13 { --slides-d: 13s; } .slides-d14 { --slides-d: 14s; } .slides-d15 { --slides-d: 15s; } .slides-d16 { --slides-d: 16s; } .slides-d17 { --slides-d: 17s; } .slides-d18 { --slides-d: 18s; } .slides-d19 { --slides-d: 19s; } .slides-d20 { --slides-d: 20s; }
  .home-clip:not(.home-media-none)::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 241, 196, 0), rgba(255, 241, 196, 0.16), rgba(255, 241, 196, 0));
    transform: skewX(-18deg); animation: dcg-pass 9s ease-in-out 2s infinite;
  }

  /* The rest of the home (user's request, 2026-10-27: light effects for the whole page below the title block). A
     few sparks of the title block's embers keep drifting up behind the acts, fainter and slower */
  .main-home { position: relative; }
  .main-home::before {
    content: ''; position: absolute; z-index: -1; top: 700px; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image:
      radial-gradient(circle, rgba(255, 222, 150, 0.9) 0 1px, rgba(233, 184, 79, 0) 3px),
      radial-gradient(circle, rgba(255, 196, 110, 0.7) 0 1.5px, rgba(233, 184, 79, 0) 4px),
      radial-gradient(circle, rgba(255, 240, 200, 0.6) 0 1px, rgba(233, 184, 79, 0) 3px),
      radial-gradient(circle, rgba(255, 210, 130, 0.7) 0 1px, rgba(233, 184, 79, 0) 2.5px),
      radial-gradient(circle, rgba(255, 186, 96, 0.5) 0 2px, rgba(233, 184, 79, 0) 5px);
    background-size: 380px 460px, 580px 620px, 820px 740px, 314px 526px, 1046px 898px;
    background-position: 40px 80px, 260px 180px, 520px 20px, 142px 360px, 666px 520px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 300px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 300px);
    opacity: 0.22;
    animation: dcg-embers 90s linear infinite, dcg-flicker 7s ease-in-out infinite alternate;
  }

  /* An act's eyebrow opens out as it scrolls in, after a short gold rule that draws itself; the features draw their
     gold rule one after another, and the town's figures rise one after another */
  @supports (animation-timeline: view()) {
    .home-act-eyebrow::before {
      content: ''; display: inline-block; width: 32px; height: 1px; margin: 0 12px 0 0; vertical-align: middle;
      background: currentColor; transform-origin: 0 50%;
    }
    .home-act-eyebrow, .home-act-eyebrow::before, .home-feature::before, .home-town p {
      animation-timeline: view(); animation-fill-mode: both; animation-timing-function: ease-out;
    }
    .home-act-eyebrow { animation-name: dcg-spread; animation-range: entry 0% entry 90%; }
    .home-act-eyebrow::before { animation-name: dcg-draw; animation-range: entry 20% entry 90%; }
    .home-feature { position: relative; }
    .home-feature::before {
      content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; pointer-events: none;
      background: linear-gradient(90deg, var(--gold), rgba(233, 184, 79, 0.15)); transform-origin: 0 50%;
      animation-name: dcg-draw; animation-range: entry 30% entry 90%;
    }
    .home-feature:nth-child(2)::before { animation-range: entry 45% entry 90%; }
    .home-feature:nth-child(3)::before { animation-range: entry 60% entry 90%; }
    .home-town p { animation-name: dcg-reveal; animation-range: entry 0% entry 70%; }
    .home-town p:nth-child(2) { animation-range: entry 10% entry 80%; }
    .home-town p:nth-child(3) { animation-range: entry 20% entry 90%; }
    .home-town p:nth-child(4) { animation-range: entry 30% entry 90%; }
  }

  /* The closing band: a glint runs along its rule now and then */
  .home-door { position: relative; }
  .home-door::before {
    content: ''; position: absolute; top: -3px; left: 0; right: 0; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, rgba(233, 184, 79, 0), #fff1c4, rgba(233, 184, 79, 0)) no-repeat -30% 0 / 18% 100%;
    animation: dcg-pass-rule 10s ease-in-out 3s infinite;
  }
}

@property --dcg-glint { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes dcg-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes dcg-reveal { from { opacity: 0; transform: translateY(36px); } }
@keyframes dcg-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
@keyframes dcg-embers { to { background-position: 20px -190px, 130px -220px, 260px -360px, 71px -83px, 333px -189px; } }
@keyframes dcg-sway { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
@keyframes dcg-flicker { 0% { opacity: 0.45; } 40% { opacity: 0.7; } 100% { opacity: 0.5; } }
@keyframes dcg-sheen { 0%, 55% { background-position: 0 0; } 80%, 100% { background-position: 100% 0; } }
@keyframes dcg-float { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes dcg-bob { to { translate: 0 -8px; } }
@keyframes dcg-pan { from { scale: 1.02; translate: 0 0; } to { scale: 1.12; translate: -2.5% -1.5%; } }
@keyframes dcg-pass { 0%, 70% { left: -50%; } 100% { left: 130%; } }
@keyframes dcg-pass-rule { 0%, 75% { background-position: -30% 0; } 100% { background-position: 130% 0; } }
@keyframes dcg-spread { from { opacity: 0; letter-spacing: 0.6em; } }
@keyframes dcg-draw { from { transform: scaleX(0); } }
@keyframes dcg-fill { from { transform: scaleX(0); } }
@keyframes dcg-called { from { text-shadow: 0 0 26px rgba(233, 184, 79, 0.9); transform: translateX(10px); } }
@keyframes dcg-beckon { 0% { box-shadow: 0 0 0 0 rgba(233, 184, 79, 0.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(233, 184, 79, 0); } }
@keyframes dcg-gem { from { box-shadow: 0 0 0 4px var(--ink); } to { box-shadow: 0 0 0 4px var(--ink), 0 0 14px 3px rgba(255, 214, 140, 0.8); } }
@keyframes dcg-glint { to { --dcg-glint: 360deg; } }
/* The slideshow of the home with <n> screenshots (slides-n<n>, 2 to SLIDES_MAX): each one is shown for the first
   n-th of the cycle, having faded in over the one before during the last eighth of that one's time */
@keyframes dcg-slides-2 { 0%, 50% { opacity: 1; } 56.25%, 93.75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-3 { 0%, 33.333% { opacity: 1; } 37.5%, 95.833% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-4 { 0%, 25% { opacity: 1; } 28.125%, 96.875% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-5 { 0%, 20% { opacity: 1; } 22.5%, 97.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-6 { 0%, 16.667% { opacity: 1; } 18.75%, 97.917% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-7 { 0%, 14.286% { opacity: 1; } 16.071%, 98.214% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-8 { 0%, 12.5% { opacity: 1; } 14.062%, 98.438% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-9 { 0%, 11.111% { opacity: 1; } 12.5%, 98.611% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-10 { 0%, 10% { opacity: 1; } 11.25%, 98.75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-11 { 0%, 9.091% { opacity: 1; } 10.227%, 98.864% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dcg-slides-12 { 0%, 8.333% { opacity: 1; } 9.375%, 98.958% { opacity: 0; } 100% { opacity: 1; } }
