/* ibipax.com: shared styles (header, footer, Polychrome homepage, Polychrome privacy policy).
   The Catholic Treasures page adds catholic-treasures.css on top of this file. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-wght-normal.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: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-wght-italic.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: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/alegreya-latin-wght-normal.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: 'Alegreya'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/alegreya-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/alegreya-latin-wght-italic.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: 'Alegreya'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/alegreya-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/playfair-display-latin-wght-normal.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: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/playfair-display-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/playfair-display-latin-wght-italic.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: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/playfair-display-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-wght-normal.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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --ink: #070a1d;
  --ink-2: #0a0e28;
  --ink-3: #0b1030;
  --ink-deep: #05071a;
  --gold: #d9a441;
  --gold-bright: #ffe39a;
  --gold-hover: #fff4cf;
  --on-gold: #1a1206;
  --ivory: #f4ead2;
  --ivory-strong: #fbf4e2;
  --muted: #cdbf9f;
  --dim: #a59d88;
  --line: rgba(217, 164, 65, 0.24);
  --line-soft: rgba(217, 164, 65, 0.14);
  --line-strong: rgba(217, 164, 65, 0.55);
  --panel: rgba(255, 255, 255, 0.03);
  --ruby: #e2574c;
  --sapphire: #6f97ee;
  --amber: #e0a12a;
  --emerald: #4cc08a;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-text: 'Alegreya', Georgia, 'Times New Roman', serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); }
a:hover { color: var(--gold-hover); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--gold-bright); color: var(--on-gold); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-text); font-size: 18px; line-height: 1.2; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { flex: none; }
.btn--gold {
  background: linear-gradient(180deg, #ffe39a, #d9a441);
  color: var(--on-gold); font-weight: 700;
  box-shadow: 0 6px 22px rgba(217, 164, 65, 0.28);
}
.btn--gold:hover { color: var(--on-gold); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(217, 164, 65, 0.38); }
.btn--ghost { border: 1px solid rgba(244, 234, 210, 0.38); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--large { min-height: 56px; padding: 0 34px; font-size: 19px; }
.btn.is-pending {
  background: transparent; color: var(--muted); font-weight: 500;
  border: 1px dashed rgba(217, 164, 65, 0.5); box-shadow: none; cursor: default;
}
.btn.is-pending:hover { transform: none; box-shadow: none; color: var(--muted); }
.btn.is-pending svg { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 29, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 164, 65, 0.2);
  font-family: var(--font-text);
}
.site-nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 29px; letter-spacing: 0.02em;
  color: var(--ivory); text-decoration: none; white-space: nowrap; line-height: 1;
}
.brand:hover { color: var(--ivory); }
.brand em { font-style: italic; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 0;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }
.nav-links .nav-links__cta { display: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 12px;
  border: 1px solid rgba(217, 164, 65, 0.45); background: transparent; color: var(--gold-bright); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { position: relative; }
  .js .nav-links {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px;
    background: var(--ink);
    border-bottom: 1px solid rgba(217, 164, 65, 0.25);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  }
  .js .site-header.is-open .nav-links { display: flex; }
  .js .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .js .nav-links li:last-child { border-bottom: 0; }
  .js .nav-links:not(:has(.nav-links__cta)) { padding-bottom: 8px; } /* no gold button at the end: even space above and below the links */
  .js .nav-links a { display: block; padding: 15px 0; font-size: 15px; border-bottom: 0; }
  .js .nav-links a[aria-current="page"] { border-bottom: 0; }
  .js .nav-links .nav-links__cta { display: block; border-bottom: 0; padding-top: 18px; }
  .js .nav-links .nav-links__cta a {
    display: flex; justify-content: center; padding: 0; min-height: 52px; align-items: center;
    border-radius: 999px; background: linear-gradient(180deg, #ffe39a, #d9a441);
    color: var(--on-gold); font-weight: 700; letter-spacing: 0.04em; text-transform: none; font-size: 17px;
  }
  html:not(.js) .site-nav { height: auto; flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 4px 20px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; background: var(--ink); }
.section--alt { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 16px; font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4.8vw, 62px); line-height: 1.05; color: var(--ivory);
}
.lede { margin-top: 24px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--muted); }

/* Stained-glass rule under section titles */
.glass-rule { display: flex; gap: 3px; margin-top: 22px; }
.glass-rule span { width: 22px; height: 5px; border-radius: 2px; background: var(--c, var(--gold)); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(7, 10, 29, 0.96) 0%, rgba(7, 10, 29, 0.82) 40%, rgba(7, 10, 29, 0.6) 72%, rgba(7, 10, 29, 0.88) 100%),
    url(../img/polychrome/hero-map.webp);
  background-size: cover; background-position: center;
  border-bottom: 1px solid rgba(217, 164, 65, 0.18);
}
.hero__inner {
  padding-top: clamp(44px, 5.5vw, 80px); padding-bottom: clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.46fr);
  grid-template-areas: "title title" "copy media";
  column-gap: clamp(36px, 5vw, 72px); row-gap: clamp(32px, 4vw, 52px);
  align-items: center;
}
.hero__title { grid-area: title; }
.hero__copy { grid-area: copy; min-width: 0; }
.hero__media { grid-area: media; min-width: 0; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.hero__eyebrow img {
  width: 40px; height: 40px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 227, 154, 0.35), 0 8px 24px rgba(58, 111, 214, 0.35);
}
.hero__wordmark {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 8.6vw, 124px); line-height: 0.92; letter-spacing: 0.1em;
  color: var(--ivory-strong);
  text-shadow: 0 0 44px rgba(217, 164, 65, 0.38), 0 4px 14px rgba(0, 0, 0, 0.6);
}
.hero__subtitle {
  display: block; margin-top: 14px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(14px, 1.65vw, 24px); letter-spacing: 0.46em; text-transform: uppercase; color: var(--gold);
}
.hero__tagline { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.25; color: var(--ivory); }
.hero__lede { margin-top: 14px; max-width: 540px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Store badges */
.stores { margin-top: 38px; }
.stores__label { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.stores__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 999px; }
.store-badge img { height: 40px; width: auto; }
.steam-badge {
  height: 40px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px 0 13px;
  border-radius: 999px; border: 2px solid #fff; background: #000; color: #fff; text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1;
}
.steam-badge:hover { color: #fff; border-color: var(--gold-bright); }
.steam-badge__text { display: flex; flex-direction: column; }
.steam-badge__small { font-size: 9.5px; letter-spacing: 0.01em; }
.steam-badge__big { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* ---------- Before / after slider ---------- */
.compare {
  padding: 7px; border-radius: 18px; border: 1px solid var(--line-strong); background: #0b0f26;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 120px rgba(58, 111, 214, 0.2);
}
.compare__viewport {
  --pos: 50%;
  position: relative; aspect-ratio: 1400 / 781; border-radius: 12px; overflow: hidden; background: #15182a;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare__img--after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__chip {
  position: absolute; top: 14px; z-index: 1; padding: 7px 14px; border-radius: 999px;
  background: rgba(7, 10, 29, 0.78); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2;
  pointer-events: none;
}
.compare__chip--after { left: 14px; border: 1px solid rgba(217, 164, 65, 0.6); color: var(--gold-bright); }
.compare__chip--before { right: 14px; border: 1px solid rgba(244, 234, 210, 0.35); color: var(--ivory); }
.compare__range { position: absolute; inset: auto 0 0 0; width: 100%; opacity: 0; pointer-events: none; margin: 0; height: 1px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 0; pointer-events: none; }
.compare__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--gold-bright); box-shadow: 0 0 18px rgba(255, 227, 154, 0.85); }
.compare__knob {
  position: absolute; top: 50%; left: -26px; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  background: rgba(7, 10, 29, 0.86); border: 2px solid var(--gold-bright);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform .15s ease;
}
.compare__viewport.is-dragging .compare__knob { transform: scale(1.08); }
.compare__range:focus-visible ~ .compare__handle .compare__knob { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.compare__caption {
  margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  font-size: 15px; color: var(--dim); text-align: center;
}
.compare__caption strong { color: var(--ivory); font-weight: 400; }

/* Gameplay clip: plays over the slider once, then hands over to it (site.js). */
.compare__video {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover;
  background: #15182a; transition: opacity .6s ease;
}
.compare__video.is-gone { opacity: 0; pointer-events: none; }
.compare__chip, .compare__handle { transition: opacity .5s ease; }
.compare__viewport.is-clip { cursor: pointer; }
.compare__viewport.is-clip .compare__chip, .compare__viewport.is-clip .compare__handle { opacity: 0; }
.compare__skip {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 16px;
  border-radius: 999px; border: 1px solid rgba(244, 234, 210, 0.4); background: rgba(7, 10, 29, 0.62); color: var(--ivory);
  font-family: var(--font-text); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; cursor: pointer;
}
.compare__skip:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
@media (max-width: 600px) {
  .compare__skip { top: 8px; right: 8px; min-height: 32px; padding: 4px 9px 4px 12px; font-size: 11px; letter-spacing: 0.14em; }
}
.compare__skip[hidden] { display: none; }
.compare__replay {
  min-height: 32px; padding: 0; border: 0; border-bottom: 1px solid rgba(255, 227, 154, 0.5); background: none;
  font: inherit; font-size: 15px; color: var(--gold-bright); cursor: pointer;
}
.compare__replay:hover { border-bottom-color: var(--gold-bright); }
.compare__replay[hidden] { display: none; }

/* ---------- Homepage: the game's menu map behind the page ----------
   The painted map of Europe from Polychrome's main menu stays fixed behind the whole homepage,
   under a navy veil and a vignette as in the game, and the sections are see-through over it,
   the way the night sky shows through the Catholic Treasures page. */
.page-poly::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: -1;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(5, 7, 26, 0) 35%, rgba(5, 7, 26, 0.7) 100%),
    linear-gradient(rgba(7, 10, 29, 0.6), rgba(7, 10, 29, 0.6)),
    url(../img/polychrome/menu-map.webp) center / cover no-repeat var(--ink);
}
.page-poly .site-header { background: rgba(7, 10, 29, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.page-poly .hero { background: linear-gradient(90deg, rgba(7, 10, 29, 0.7) 0%, rgba(7, 10, 29, 0.45) 40%, rgba(7, 10, 29, 0.1) 72%, rgba(7, 10, 29, 0.35) 100%); }
.page-poly .section { background: rgba(7, 10, 29, 0.7); }
.page-poly .section--alt, .page-poly .section--wishlist { background: rgba(10, 14, 40, 0.76); }
.page-poly .section--pledge { background: rgba(11, 16, 48, 0.78); }
.page-poly .site-footer { background: rgba(5, 7, 26, 0.85); }
@media (max-width: 600px) {
  .page-poly .hero { background: linear-gradient(180deg, rgba(7, 10, 29, 0.3) 0%, rgba(7, 10, 29, 0.55) 100%); }
}

/* ---------- How it plays ---------- */
.play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
.play-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.play-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.play-card__body { padding: 28px 30px 34px; }
.play-card__num { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 24px; color: var(--c); }
.play-card__title { margin: 2px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.1; color: var(--ivory); }
.play-card__text { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ---------- The pilgrimage ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 16px;
  max-width: 920px; margin: clamp(40px, 5vw, 56px) auto 0; text-align: center; list-style: none;
}
.stat__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1; color: var(--gold-bright); }
.stat__label { display: block; margin-top: 8px; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.atlas {
  width: 100%; margin-top: clamp(40px, 5vw, 56px); border-radius: 16px;
  border: 1px solid rgba(217, 164, 65, 0.4); box-shadow: 0 36px 90px rgba(0, 0, 0, 0.6);
}
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; margin-top: 28px; list-style: none; }
.chapter { padding: 24px 24px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.chapter__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chapter__num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--c); }
/* Chapter I's badge: "Free to play" over "on iOS and Android", no taller than the numeral
   (40 px) so that the four chapter titles stay level. */
.chapter__tag { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 14px 4px; border-radius: 14px; border: 1px solid rgba(217, 164, 65, 0.6); font-size: 12px; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); white-space: nowrap; text-align: center; }
.chapter__tag-sub { font-size: 13.5px; font-style: italic; letter-spacing: 0.02em; text-transform: none; color: var(--ivory); }
.chapter__title { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 27px; line-height: 1.1; color: var(--ivory); }
.chapter__places { font-size: 15px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.chapter__places span { white-space: nowrap; } /* each place stays whole, and no line starts with a dot */

/* ---------- Masterpieces ---------- */
/* Two works lead, the Last Supper wide and the altarpiece beside it, then three to a row (as in Phil's V2). */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); margin-top: clamp(48px, 6vw, 64px); list-style: none; }
.gallery > li { grid-column: span 2; min-width: 0; }
.gallery > .gallery__featured--milan { grid-column: span 4; }
.gallery__frame { overflow: hidden; border: 1px solid rgba(217, 164, 65, 0.3); background: rgba(5, 7, 26, 0.5); }
.gallery__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover .gallery__frame img { transform: scale(1.04); }
/* Leonardo's wall is shown whole on a dark ground, never cropped. */
.gallery__featured--milan .gallery__frame img { aspect-ratio: 2.3; object-fit: contain; }
.gallery__featured--milan .gallery__item:hover .gallery__frame img { transform: none; }
/* Taller, so that its frame ends level with the Last Supper's at every width. */
.gallery__featured--altarpiece .gallery__frame img { aspect-ratio: 1.095; }
@media (max-width: 670px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .gallery > li { grid-column: span 1; }
  .gallery > .gallery__featured { grid-column: 1 / -1; }
  .gallery__featured--milan .gallery__frame img { aspect-ratio: 16 / 10; }
  .gallery__featured--altarpiece .gallery__frame img { aspect-ratio: 1.85; }
}
.gallery__item figcaption { margin-top: 10px; }
.gallery__title { display: block; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.15; color: var(--ivory); }
.gallery__meta { display: block; margin-top: 4px; font-size: 15px; color: var(--dim); }
.gallery-more { margin-top: 44px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--muted); }

/* ---------- Conservator's Pledge ---------- */
.section--pledge { background: var(--ink-3); border-top: 1px solid rgba(217, 164, 65, 0.2); border-bottom: 1px solid rgba(217, 164, 65, 0.2); padding: clamp(80px, 9vw, 120px) 0; }
.pledge { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 88px); }
.pledge__seal { flex: 0 1 360px; min-width: 0; margin: 0 auto; }
.pledge__seal img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); }
.pledge__copy { flex: 1 1 480px; min-width: 0; }
.pledge__copy .section-title { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; }
.pledge__copy .lede { max-width: 620px; }
.pledge__stat { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(217, 164, 65, 0.25); }
.pledge__number { font-family: var(--font-display); font-weight: 600; font-size: 88px; line-height: 0.9; color: var(--gold-bright); }
.pledge__stat-text { flex: 1 1 220px; min-width: 200px; }
.pledge__stat-text p:first-child { font-size: 18px; line-height: 1.5; color: var(--ivory); }
.pledge__stat-text p + p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--dim); font-style: italic; }

/* ---------- Facts ---------- */
.section--facts { padding: clamp(64px, 7vw, 96px) 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px; list-style: none; }
.fact__title { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--ivory); }
.fact__text { font-size: 16px; line-height: 1.6; color: var(--dim); }
.fact__text [lang] { white-space: nowrap; } /* keep 简体中文, 繁體中文 and 日本語 each in one piece */

/* ---------- Wishlist ---------- */
.section--wishlist { background: var(--ink-2); border-top: 1px solid var(--line-soft); padding: clamp(80px, 9vw, 120px) 0; }
.wishlist { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wishlist__emblem { width: 190px; height: 190px; filter: drop-shadow(0 0 50px rgba(58, 111, 214, 0.45)); }
.wishlist__title { margin-top: 24px; font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 5.4vw, 72px); line-height: 1; color: var(--ivory); }
.wishlist__text { margin-top: 18px; max-width: 560px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--muted); }
.wishlist .btn { margin-top: 32px; }
.wishlist .stores { margin-top: 34px; }
.wishlist .stores__row { justify-content: center; gap: 14px; }
.wishlist .store-badge img { height: clamp(44px, 12vw, 54px); }
.wishlist .community { width: 100%; max-width: 560px; margin-top: 46px; padding-top: 38px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: center; }
.community__text { margin: 0; max-width: 470px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.community__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.wishlist .community .btn { margin-top: 0; min-width: 236px; }
.btn__icon { display: block; flex: none; background-color: currentColor; }
.btn__icon--discord { width: 23px; height: 18px; -webkit-mask: url("../img/social/discord-symbol-white.svg") center / contain no-repeat; mask: url("../img/social/discord-symbol-white.svg") center / contain no-repeat; }
.btn__icon--x { width: 17px; height: 17px; -webkit-mask: url("../img/social/x-logo-white.svg") center / contain no-repeat; mask: url("../img/social/x-logo-white.svg") center / contain no-repeat; }

/* ---------- Catholic Treasures band ---------- */
.section--band { padding: clamp(64px, 7vw, 96px) 0; }
.app-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px;
  padding: clamp(24px, 3vw, 40px); border-radius: 22px; border: 1px solid rgba(217, 164, 65, 0.28); background: var(--panel);
}
.app-band__icon { width: 96px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.app-band__copy { flex: 1 1 420px; min-width: 0; }
.app-band__copy .eyebrow { font-size: 13px; margin-bottom: 8px; }
.app-band__title { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.1; color: var(--ivory); }
.app-band__text { margin-top: 10px; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px;
  font-size: 17px; font-weight: 500; color: var(--gold-bright); text-decoration: none;
  border-bottom: 1px solid rgba(255, 227, 154, 0.5);
}
.text-link:hover { border-bottom-color: var(--gold-bright); }
.app-band__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.app-band__badges img { height: 44px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); border-top: 1px solid rgba(217, 164, 65, 0.2); padding: 64px 0 30px; font-family: var(--font-text); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand .brand { font-size: 30px; }
.footer-brand p { margin-top: 12px; max-width: 280px; font-size: 15px; line-height: 1.6; color: var(--dim); }
.social { list-style: none; display: flex; gap: 12px; margin: 22px 0 0; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(217, 164, 65, 0.45); transition: border-color .2s ease, background-color .2s ease; }
.social__link:hover, .social__link:focus-visible { border-color: var(--gold); background-color: rgba(217, 164, 65, 0.1); }
.social__icon { display: block; background-color: var(--gold); transition: background-color .2s ease; }
.social__link:hover .social__icon, .social__link:focus-visible .social__icon { background-color: var(--gold-bright); }
.social__icon--discord { width: 24px; height: 18px; -webkit-mask: url("../img/social/discord-symbol-white.svg") center / contain no-repeat; mask: url("../img/social/discord-symbol-white.svg") center / contain no-repeat; }
.social__icon--x { width: 18px; height: 18px; -webkit-mask: url("../img/social/x-logo-white.svg") center / contain no-repeat; mask: url("../img/social/x-logo-white.svg") center / contain no-repeat; }
.footer-col h2 { margin: 0 0 14px; font-family: var(--font-text); font-weight: 400; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-col li > span { color: var(--dim); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(217, 164, 65, 0.16);
  font-size: 14px; color: var(--dim);
}

/* ---------- Legal pages (Polychrome privacy policy) ---------- */
.legal { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 112px); }
.legal__inner { max-width: 780px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; color: var(--ivory); }
.legal__date { margin-top: 12px; font-size: 15px; color: var(--dim); }
.legal__intro { margin-top: 28px; font-size: 19px; line-height: 1.65; color: var(--ivory); }
.legal h2 { margin-top: 44px; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; color: var(--ivory); }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ivory); font-weight: 500; }
.legal .summary { margin-top: 30px; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.legal .summary p { margin-top: 0; color: var(--ivory); }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "media" "copy"; row-gap: 28px; }
  .hero__eyebrow { margin-bottom: 18px; }
  .compare__caption { margin-top: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { background-image:
    linear-gradient(180deg, rgba(7, 10, 29, 0.7) 0%, rgba(7, 10, 29, 0.86) 55%, rgba(7, 10, 29, 0.97) 100%),
    url(../img/polychrome/hero-map.webp); background-position: 30% center; }
  .hero__inner { padding-top: 36px; padding-bottom: 56px; }
  .hero__eyebrow { font-size: 12px; gap: 12px; letter-spacing: 0.22em; }
  .hero__eyebrow img { width: 34px; height: 34px; border-radius: 9px; }
  .hero__subtitle { letter-spacing: 0.4em; }
  .hero__ctas { flex-direction: column; margin-top: 26px; }
  .hero__ctas .btn { width: 100%; }
  .stores { margin-top: 30px; text-align: center; }
  .stores__row { justify-content: center; }
  .compare { padding: 5px; border-radius: 14px; }
  .compare__viewport { border-radius: 10px; }
  .compare__chip { top: 10px; padding: 5px 10px; font-size: 10px; letter-spacing: 0.18em; }
  .compare__chip--after { left: 10px; }
  .compare__chip--before { right: 10px; }
  .compare__knob { width: 44px; height: 44px; left: -22px; margin-top: -22px; }
  .compare__caption { font-size: 14px; }
  .compare__caption svg { display: none; }
  .section { padding: 72px 0; }
  .section--pledge, .section--wishlist { padding: 72px 0; }
  .section--facts, .section--band { padding: 56px 0; }
  .eyebrow { font-size: 13px; margin-bottom: 12px; }
  .glass-rule { margin-top: 18px; }
  .glass-rule span { width: 18px; height: 4px; }
  .lede { margin-top: 18px; }
  .play-grid { gap: 20px; margin-top: 40px; }
  .play-card__body { padding: 20px 22px 24px; }
  .play-card__title { font-size: 30px; margin-bottom: 8px; }
  .play-card__text { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 34px; }
  .stat__num { font-size: 46px; }
  .stat__label { font-size: 12px; }
  .atlas { margin-top: 32px; border-radius: 12px; }
  .chapters { gap: 12px; margin-top: 20px; }
  .chapter { padding: 18px 20px; }
  .chapter__num { font-size: 32px; }
  .chapter__tag { margin-block: -4px; } /* the numeral is 32 px here: the badge overhangs a little rather than lowering the title */
  .chapter__title { font-size: 24px; margin-top: 10px; }
  .chapter__places { font-size: 14px; }
  .gallery { margin-top: 34px; }
  .gallery__title { font-size: 19px; }
  .gallery__meta { font-size: 13px; }
  .gallery-more { margin-top: 30px; font-size: 21px; }
  .pledge__seal { flex-basis: 210px; }
  .pledge__seal img { max-width: 210px; }
  .pledge__copy .section-title { font-size: 34px; }
  .pledge__number { font-size: 64px; }
  .pledge__stat { margin-top: 26px; padding-top: 22px; }
  .facts { gap: 28px; }
  .fact { display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; }
  .fact svg { width: 30px; height: 30px; grid-row: span 2; }
  .fact__title { margin: 0 0 4px; font-size: 23px; }
  .fact__text { font-size: 15px; }
  .wishlist__emblem { width: 150px; height: 150px; }
  .wishlist .btn { width: 100%; }
  .app-band { padding: 24px 22px 26px; gap: 16px; }
  .app-band__icon { width: 64px; border-radius: 15px; }
  .app-band__title { font-size: 26px; }
  .app-band__text { font-size: 16px; }
  .app-band__badges img { height: 40px; }
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery__frame img, .compare__knob { transition: none; }
}
