/* Shadowkey Reforged landing page.
   Look: old leather, parchment, gold and brass, the violet of the Shadowkey's gem. */

:root {
  --ink: #0f0819;
  --night: #170d27;
  --plum: #241339;
  --violet: #8a5cf0;
  --violet-glow: rgba(160, 110, 255, .55);
  --gold: #d6a23e;
  --gold-hi: #f7d98a;
  --gold-lo: #8a5a17;
  --brass: #b4842c;
  --leather: #2b1a11;
  --leather-hi: #4a2e1c;
  --parch: #e9c96d;
  --parch-ink: #2b1d0c;
  --text: #efe3c6;
  --text-dim: #bfae8c;
  --radius: 4px;
  --wrap: 1180px;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --parch-css:
    radial-gradient(ellipse at 30% 15%, rgba(255, 245, 210, .55), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(150, 90, 20, .35), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .05 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f2d47c, #e2b84f);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  /* dark tooled leather: fine grain, with a soft violet glow fixed to the window (body::before) */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(120, 70, 200, .16), transparent),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(214, 162, 62, .06), transparent);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3c8; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --h: 3.3rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h);
  padding: 0 1.9rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  border: 0; border-radius: 2px;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), filter .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn span, .btn svg { position: relative; z-index: 2; }
/* corner diamonds, like the dragon frame's studs */
.btn::before {
  content: ""; position: absolute; inset: 4px; z-index: 1; pointer-events: none;
  border: 1px solid currentColor; opacity: .35; border-radius: 1px;
  -webkit-mask: linear-gradient(#000 0 0) top/100% 1px no-repeat, linear-gradient(#000 0 0) bottom/100% 1px no-repeat, linear-gradient(#000 0 0) left/1px 100% no-repeat, linear-gradient(#000 0 0) right/1px 100% no-repeat;
}
/* the light sweep */
.btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 250, 225, .55), transparent);
  transform: skewX(-20deg) translateX(0);
  transition: transform .75s var(--ease);
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { transform: skewX(-20deg) translateX(420%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn-brass {
  color: #2a1606;
  background:
    linear-gradient(180deg, #fbe7a3 0%, #e7b955 22%, #c48a2a 55%, #9a6316 80%, #d9a744 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 0 rgba(70, 35, 0, .55),
    0 0 0 1px #5a3608,
    0 0 0 3px #e2b555,
    0 0 0 4px #4b2c05,
    0 8px 22px rgba(0, 0, 0, .55);
  text-shadow: 0 1px 0 rgba(255, 240, 190, .6);
}
.btn-brass:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -2px 0 rgba(70, 35, 0, .55),
    0 0 0 1px #5a3608,
    0 0 0 3px #f3cd6f,
    0 0 0 4px #4b2c05,
    0 0 28px rgba(247, 205, 110, .55),
    0 10px 26px rgba(0, 0, 0, .6);
}
.btn-leather {
  color: var(--gold-hi);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 160, .12), transparent 70%),
    linear-gradient(180deg, #4a2c1a, #2b170c);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, .15),
    0 0 0 1px #120803,
    0 0 0 2px var(--brass),
    0 0 0 3px #120803,
    0 8px 20px rgba(0, 0, 0, .5);
}
.btn-leather:hover { box-shadow: inset 0 1px 0 rgba(255, 220, 160, .2), 0 0 0 1px #120803, 0 0 0 2px var(--gold-hi), 0 0 0 3px #120803, 0 0 24px rgba(214, 162, 62, .35), 0 10px 24px rgba(0, 0, 0, .55); }
.btn-sm { --h: 2.6rem; padding: 0 1.2rem; font-size: .78rem; }
.btn[disabled] { cursor: default; filter: saturate(.55) brightness(.85); }
.btn[disabled]:hover { transform: none; }
.btn[disabled]::after { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  /* solid, on its own layer: a blurred see-through header flickered in Chrome/Arc while scrolling */
  background: linear-gradient(180deg, #160c26, #140b22);
  box-shadow: 0 1px 0 rgba(214, 162, 62, .45), 0 6px 24px rgba(0, 0, 0, .45);
  transform: translateZ(0);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1320px, 100% - 32px); margin-inline: auto; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--gold-hi); }
.brand-key { width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 6px var(--violet-glow)); }
.brand-text { font-family: var(--display); font-weight: 900; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; }
.brand-text small { display: block; font-weight: 500; font-size: .58rem; letter-spacing: .24em; color: var(--text-dim); }
.brand-text em { font-style: normal; color: #c9a8ff; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  position: relative;
  font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: .4rem 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: var(--gold-hi); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-current::after { left: -6px; right: -6px; }
.burger { display: none; }

/* the compass strip under the nav turns as you scroll */
.compass {
  position: relative; overflow: hidden;
  height: 18px;
  border-top: 1px solid #5a3608; border-bottom: 1px solid #5a3608;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 160, .25);
  opacity: .95;
}
/* the strip itself slides sideways (transform only, no repaint) */
.compass::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 450px);
  background: url("img/compass.webp") 0 50% / auto 100% repeat-x;
  transform: translate3d(var(--cx, 0px), 0, 0);
  will-change: transform;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
/* the banner: the emblem and the title as text, in a soft violet glow over the page's leather */
.banner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(360px, 58vh, 600px);
  padding: clamp(2.5rem, 7vh, 4.5rem) 16px clamp(1.5rem, 4vh, 2.5rem);
  background: radial-gradient(ellipse 55% 50% at 50% 40%, rgba(138, 92, 240, .28), transparent 72%);
  animation: hero-in 1.6s var(--ease) both;
}
.banner p { margin: 0; }
.banner-emblem { width: clamp(84px, 11vw, 128px); height: auto; margin-bottom: 1.4rem; color: var(--gold); filter: drop-shadow(0 0 18px var(--violet-glow)); }
.banner-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95;
  font-size: clamp(2.6rem, 8.4vw, 6.6rem); letter-spacing: .05em;
  background: linear-gradient(180deg, #fff1d0 0%, var(--gold-hi) 45%, #b77f22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .8));
}
.banner .banner-sub {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .7rem;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .42em; padding-left: .42em;
  font-size: clamp(1rem, 2.6vw, 1.9rem); color: #c9a8ff; text-shadow: 0 0 22px rgba(160, 110, 255, .6);
}
.banner-sub::before, .banner-sub::after { content: ""; width: clamp(40px, 9vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.banner-sub::after { transform: scaleX(-1); }
/* "Project" above the name, as in the game's title (2026-11-14) */
.banner .banner-sub-top { margin: 0 0 .5rem; }
.banner .banner-note { margin: 1.3rem auto 0; max-width: 34em; font-style: italic; color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* drifting motes of light */
.hero-motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-motes i {
  position: absolute; bottom: -10px; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%;
  background: radial-gradient(circle, #fff6d6, rgba(247, 205, 110, .8) 40%, transparent 70%);
  box-shadow: 0 0 8px rgba(247, 205, 110, .9);
  opacity: 0;
  animation: mote var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .6; }
  100% { transform: translate(var(--x, 40px), -95vh); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2;
  width: min(820px, 100% - 32px);
  margin: 0 auto;
  text-align: center;
  padding: 1.6rem 0 clamp(3.5rem, 8vh, 6rem);
}
.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.1rem;
  padding: .35rem 1rem .35rem .8rem;
  font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(20, 10, 30, .7);
  border: 1px solid rgba(214, 162, 62, .6);
  border-radius: 99px;
  box-shadow: 0 0 20px rgba(138, 92, 240, .35);
}
.status-pill .pill-text { position: relative; top: 2px; } /* Cinzel caps sit high in the line */
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #c9a8ff; box-shadow: 0 0 0 0 var(--violet-glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 168, 255, .7); } 70% { box-shadow: 0 0 0 10px rgba(201, 168, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 168, 255, 0); } }
/* the countdown to the first release, above everything else under the banner */
.countdown { margin: 0 0 1.6rem; }
.countdown[hidden] { display: none; }
.countdown-label {
  margin: 0 0 .7rem;
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.countdown-label span { display: block; margin-top: .3rem; font-family: var(--serif); font-weight: 400; font-size: 1rem; letter-spacing: .02em; text-transform: none; color: #e6d8ba; }
.countdown-clock { display: flex; justify-content: center; gap: clamp(.5rem, 2vw, 1rem); }
.countdown-clock span {
  display: flex; flex-direction: column; align-items: center;
  min-width: clamp(4.2rem, 14vw, 5.6rem); padding: .55rem .4rem .45rem;
  background: rgba(20, 10, 30, .72);
  border: 1px solid rgba(214, 162, 62, .6); border-radius: 6px;
  box-shadow: 0 0 20px rgba(138, 92, 240, .3), inset 0 1px 0 rgba(255, 220, 160, .12);
}
.countdown-clock b {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1;
  color: #fff1d0; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(247, 205, 110, .45);
}
.countdown-clock small { margin-top: .2rem; font-family: var(--display); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
/* once the countdown ends: the big download button, or the line while the release tags are still empty */
.release-cta, .release-soon { margin: 0 0 1.8rem; }
.release-cta[hidden], .release-soon[hidden] { display: none; }
.release-soon .countdown-label { margin: 0; }
.btn-xl {
  --h: clamp(4.2rem, 11vw, 5.2rem);
  padding: 0 clamp(2.2rem, 7vw, 3.6rem); gap: .9rem;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem); letter-spacing: .18em;
}
.btn-xl svg { width: 1.25em; height: 1.25em; }
.dl-noscript { margin: -1.4rem 0 2.6rem; text-align: center; color: var(--text-dim); }
.dl-help[hidden] { display: none; }
.hero-kicker {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: .02em; text-wrap: balance;
  color: #fff1d0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
.hero-kicker span { color: var(--gold-hi); text-shadow: 0 0 22px rgba(247, 205, 110, .5), 0 2px 10px rgba(0, 0, 0, .8); }
.hero-lede { margin: 1rem auto 0; max-width: 40em; color: #e6d8ba; font-size: clamp(1.08rem, 1.6vw, 1.28rem); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: 2rem; }
.hero-platforms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.6rem; margin: 1.8rem 0 0; padding: 0; font-family: var(--display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.hero-platforms li { display: flex; align-items: center; gap: .45rem; }
.hero-platforms svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section + .section::before {
  /* gold rule with a diamond, between sections */
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% -50%;
  width: min(520px, 70%); height: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0l7 7-7 7-7-7z' fill='%23d6a23e'/%3E%3Cpath d='M7 4l3 3-3 3-3-3z' fill='%23170d27'/%3E%3C/svg%3E") center/14px 14px no-repeat,
    linear-gradient(90deg, transparent, var(--gold-lo) 20%, var(--gold) 50%, var(--gold-lo) 80%, transparent) center/100% 1px no-repeat;
}
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.eyebrow { margin: 0 0 .5rem; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: #c9a8ff; }
h2 {
  margin: 0;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff1c4 0%, #f2cd72 45%, #b77f22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 20, 0, .9)) drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
.sec-lede { margin: 1rem auto 0; color: var(--text-dim); font-size: 1.22rem; }
.sec-lede strong { color: var(--gold-hi); }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: .03em; color: var(--gold-hi); line-height: 1.2; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Ornate frame (gold, as on the HUD) ---------- */
.frame {
  position: relative;
  padding: 10px;
  background:
    linear-gradient(135deg, #fbe39a, #b98327 28%, #f0c968 50%, #8c5a14 72%, #e9be5f);
  border-radius: 3px;
  box-shadow: 0 0 0 1px #3a2203, 0 20px 50px rgba(0, 0, 0, .65), 0 0 60px rgba(138, 92, 240, .15);
}
.frame::before { /* inner dark bevel */
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(40, 20, 0, .8); box-shadow: inset 0 0 0 1px rgba(255, 240, 190, .35); pointer-events: none; z-index: 3;
}
.frame::after { /* corner studs */
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 4;
  background:
    radial-gradient(circle, #fff3c4 0 2px, #c48a2a 3px 5px, #3a2203 6px, transparent 7px) top left/14px 14px no-repeat,
    radial-gradient(circle, #fff3c4 0 2px, #c48a2a 3px 5px, #3a2203 6px, transparent 7px) top right/14px 14px no-repeat,
    radial-gradient(circle, #fff3c4 0 2px, #c48a2a 3px 5px, #3a2203 6px, transparent 7px) bottom left/14px 14px no-repeat,
    radial-gradient(circle, #fff3c4 0 2px, #c48a2a 3px 5px, #3a2203 6px, transparent 7px) bottom right/14px 14px no-repeat;
}
.frame > * { position: relative; z-index: 2; }
.frame-tight { padding: 7px; }
.frame-tight::before { inset: 5px; }

/* ---------- Video ---------- */
.video-section { padding-top: clamp(3rem, 6vw, 5rem); }
.ornate-head { position: relative; display: grid; place-items: center; width: min(760px, 100%); margin: 0 auto 2.2rem; container-type: inline-size; }
.ornate-head img { width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.ornate-head h2 {
  position: absolute; top: 45%; left: 50%; translate: -50% -50%;
  font-size: 2.55cqw; letter-spacing: .06em; white-space: nowrap;
}
.video-frame { max-width: 1060px; margin: 0 auto; }
.video-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-player > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.62); }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(76px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: #2a1606;
  border: 0;
  background: radial-gradient(circle at 35% 30%, #fff1b8, #e3b04c 40%, #9a6316 85%);
  box-shadow: 0 0 0 3px #4b2c05, 0 0 0 6px #e2b555, 0 0 0 7px #4b2c05, 0 0 40px rgba(247, 205, 110, .5), 0 0 90px rgba(138, 92, 240, .45);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.video-play svg { width: 42%; height: 42%; margin-left: 8%; }
.video-play:hover { transform: scale(1.07); box-shadow: 0 0 0 3px #4b2c05, 0 0 0 6px #f6d27a, 0 0 0 7px #4b2c05, 0 0 60px rgba(247, 205, 110, .7), 0 0 120px rgba(138, 92, 240, .6); }
.video-play::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(247, 205, 110, .5); animation: ring 2.6s infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-caption { margin: 0; padding: .9rem 1.2rem; text-align: center; font-size: 1.05rem; color: var(--text-dim); background: #0a0610; }
.video-caption strong { font-family: var(--display); color: var(--gold-hi); letter-spacing: .06em; }

/* ---------- About: the parchment ---------- */
.parchment {
  position: relative; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: url("img/parchment-plain.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .7));
  color: var(--parch-ink);
}
.parchment-body {
  position: absolute; left: 50%; top: 31%; translate: -50% 0;
  width: 62%;
  font-size: clamp(1rem, 1.55vw, 1.32rem); line-height: 1.55;
}
.parchment p { margin: 0 0 .85em; }
.parchment strong { color: #4a1f00; }
.drop::first-letter {
  float: left; font-family: "Cinzel Decorative", var(--display); font-size: 3.6em; line-height: .8; margin: .06em .1em 0 0;
  color: #6b2a00; text-shadow: 0 1px 0 rgba(255, 240, 190, .6);
}
.sign { font-style: italic; font-weight: 600; text-align: center; color: #5b2a00; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 1.4rem; }
.feature, .fb-card, .req-card {
  position: relative;
  padding: 1.8rem 1.7rem 1.7rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 210, 140, .09), transparent 60%),
    linear-gradient(180deg, #2f1d13, #1e120b);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, .1),
    0 0 0 1px #0d0703,
    0 0 0 2px rgba(180, 132, 44, .55),
    0 0 0 3px #0d0703,
    0 14px 30px rgba(0, 0, 0, .45);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* stitched edge */
.feature::before, .fb-card::before, .req-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(214, 162, 62, .28); border-radius: 2px; pointer-events: none;
}
/* the light sweep on hover */
.feature::after, .fb-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 235, 180, .1), transparent);
  transform: skewX(-18deg); transition: left .9s var(--ease); pointer-events: none;
}
.feature:hover, .fb-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, .14), 0 0 0 1px #0d0703, 0 0 0 2px var(--gold-hi), 0 0 0 3px #0d0703, 0 0 30px rgba(214, 162, 62, .22), 0 18px 36px rgba(0, 0, 0, .55);
}
.feature:hover::after, .fb-card:hover::after { left: 130%; }
.f-icon { width: 44px; height: 44px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(214, 162, 62, .35)); transition: color .3s, transform .4s var(--ease); }
.feature:hover .f-icon, .fb-card:hover .f-icon { color: var(--gold-hi); transform: rotate(-6deg) scale(1.08); }
.feature h3, .fb-card h3 { margin: .9rem 0 .5rem; font-size: 1.22rem; }
.feature p, .fb-card p { margin: 0; color: var(--text-dim); font-size: 1.08rem; }
.feature-wide { grid-column: span 2; background: radial-gradient(ellipse at 90% 10%, rgba(138, 92, 240, .2), transparent 60%), linear-gradient(180deg, #2b1a2f, #1a0f1c); }
.mode-toggle { display: inline-flex; margin-top: 1.2rem; padding: 4px; border-radius: 99px; background: #0c0610; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), 0 0 0 1px var(--brass); }
.mode-toggle button {
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem 1.2rem; border: 0; border-radius: 99px; cursor: pointer; color: var(--text-dim); background: transparent;
  transition: color .3s, background .3s, box-shadow .3s;
}
.mode-toggle button.is-on { color: #2a1606; background: linear-gradient(180deg, #fbe7a3, #d9a744 60%, #a46c1a); box-shadow: 0 0 14px rgba(247, 205, 110, .5); }

.more { margin: 2rem auto 0; max-width: 900px; }
.more summary {
  list-style: none; cursor: pointer; text-align: center;
  font-family: var(--display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; color: var(--gold-hi);
}
.more summary::-webkit-details-marker { display: none; }
.more summary span { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem; border-bottom: 1px solid rgba(214, 162, 62, .5); }
.more summary span::after { content: "+"; font-size: 1.2em; transition: transform .3s; }
.more[open] summary span::after { transform: rotate(45deg); }
.more-list { columns: 2 280px; column-gap: 2.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.more-list li { break-inside: avoid; padding: .35rem 0 .35rem 1.6rem; position: relative; color: var(--text-dim); }
.more-list li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: 8px; height: 8px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 6px rgba(214, 162, 62, .6); }

/* Install: the Morrowind audio guide, in the same fold-out as More features */
.guide-body { margin: 1.6rem 0 0; color: var(--text-dim); }
.guide-body h3 { margin: 1.8rem 0 .4rem; color: var(--text); font-family: var(--display); letter-spacing: .08em; font-size: 1.1rem; }
.guide-body h4 { margin: 1.2rem 0 .3rem; color: var(--gold); font-size: 1rem; }
.guide-body p { margin: .4rem 0; }
.guide-body a { color: var(--gold); }
.guide-body strong { color: var(--text); }
.guide-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; color: var(--text); }
.guide-body pre { margin: .5rem 0; padding: .8rem 1rem; overflow-x: auto; background: rgba(0, 0, 0, .35); border: 1px solid rgba(214, 162, 62, .25); border-radius: 6px; }
.guide-body pre code { display: block; font-size: .84rem; line-height: 1.5; white-space: pre; }

/* Modes card on its own row above the feature tabs; feature and gallery tabs use the full width */
.feature-intro { margin-bottom: 2.4rem; }
.feature-full { grid-column: 1 / -1; }
.tab-panel.tab-panel-wide { max-width: none; }

/* ---------- Updates log ---------- */
.log { max-width: 900px; margin: 0 auto; display: grid; gap: .9rem; }
.log-entry {
  border-radius: 2px; background: linear-gradient(180deg, #24160e, #170d08);
  box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(180, 132, 44, .45), 0 10px 22px rgba(0, 0, 0, .4);
}
.log-entry[open] { box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(214, 162, 62, .8), 0 10px 22px rgba(0, 0, 0, .4); }
.log-entry summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1.2rem;
  padding: 1rem 1.4rem;
}
.log-entry summary::-webkit-details-marker { display: none; }
.log-entry summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--gold-hi); transition: transform .3s; }
.log-entry[open] summary::after { transform: rotate(45deg); }
.log-entry time { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; }
.log-entry summary span { color: var(--text); }
.log-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .4rem 2.5rem; padding: 0 1.4rem 1.3rem; border-top: 1px solid rgba(214, 162, 62, .2); }
.log-body h3 { margin: 1rem 0 .3rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.log-body ul { margin: 0; padding: 0; list-style: none; }
.log-body li { position: relative; padding: .25rem 0 .25rem 1.4rem; color: var(--text-dim); font-size: 1.08rem; }
.log-art { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1rem 0 0; }
.log-art figure { margin: 0; display: grid; justify-items: center; gap: .4rem; text-align: center; }
.log-art img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.log-art .log-art-wide img { width: 180px; height: auto; border-radius: 2px; }
.log-art .log-art-shot img { width: min(360px, 100%); height: auto; border-radius: 2px; }
.log-art figcaption { font-size: .92rem; color: var(--text-dim); }
.log-body li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: 7px; height: 7px; rotate: 45deg; background: var(--gold); }

/* ---------- FAQ: groups of fold-outs, styled like the updates log ---------- */
.faq-groups { max-width: 900px; margin: 0 auto; display: grid; gap: 2.4rem; }
.faq-group { display: grid; gap: .7rem; }
.faq-group > h3 { margin: 0 0 .4rem; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; }
.faq-item {
  border-radius: 2px; background: linear-gradient(180deg, #24160e, #170d08);
  box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(180, 132, 44, .45), 0 10px 22px rgba(0, 0, 0, .4);
  scroll-margin-top: 1.2rem;
}
.faq-item[open] { box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(214, 162, 62, .8), 0 10px 22px rgba(0, 0, 0, .4); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: .95rem 1.4rem; color: var(--text); font-size: 1.12rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--gold-hi); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover span { color: var(--gold-hi); }
.faq-item .guide-body { margin: 0; padding: .7rem 1.4rem 1.1rem; border-top: 1px solid rgba(214, 162, 62, .2); font-size: 1.06rem; }
.faq-item .guide-body p { margin: .45rem 0; }
.faq-item .guide-body code { overflow-wrap: anywhere; }

/* ---------- Gallery: Then & Now, then the screenshots ---------- */
.sub-head { margin: 0 0 .4rem; text-align: center; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.sub-lede { margin: 0 auto 1.4rem; max-width: 700px; text-align: center; color: var(--text-dim); }
#screenshots { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- Then & Now ---------- */
.compare { background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(138, 92, 240, .12), transparent); }
.tabs { display: flex; justify-content: center; gap: .5rem; margin: 0 auto 1.6rem; flex-wrap: wrap; }
.tabs button, .chip {
  font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  padding: .7rem 1.4rem; cursor: pointer; border: 0; border-radius: 2px;
  color: var(--text-dim); background: linear-gradient(180deg, #2b1a10, #1a0e07);
  box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(180, 132, 44, .45);
  transition: color .25s, box-shadow .25s, background .25s;
}
.tabs button:hover, .chip:hover { color: var(--gold-hi); }
.tabs button[aria-selected="true"] { color: #2a1606; background: linear-gradient(180deg, #fbe7a3, #d9a744 55%, #a46c1a); box-shadow: 0 0 0 1px #4b2c05, 0 0 0 2px #e2b555, 0 0 18px rgba(247, 205, 110, .35); }
.slider-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { font-size: .7rem; padding: .45rem .9rem; border-radius: 99px; }
.chip.is-on { color: var(--gold-hi); box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px var(--gold-hi); }
.tab-panel { max-width: 1060px; margin: 0 auto; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* before / after slider */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: #000; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { position: absolute; inset: 0; }
.ba-label {
  position: absolute; top: 1rem; z-index: 3; padding: .3rem .8rem;
  font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-hi); background: rgba(12, 6, 3, .75); border: 1px solid rgba(214, 162, 62, .6); border-radius: 2px;
}
.ba-label-l { left: 1rem; }
.ba-label-r { right: 1rem; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 3px; translate: -50% 0; background: linear-gradient(180deg, #fbe7a3, #c48a2a, #fbe7a3); box-shadow: 0 0 12px rgba(247, 205, 110, .7); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1b8, #e3b04c 45%, #9a6316 90%);
  box-shadow: 0 0 0 2px #4b2c05, 0 0 0 4px #e2b555, 0 0 0 5px #4b2c05, 0 6px 16px rgba(0, 0, 0, .6);
}
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; translate: 0 -50%; }
.ba-handle span::before { left: 6px; border-right-color: #3a1e04; }
.ba-handle span::after { right: 6px; border-left-color: #3a1e04; }
.ba-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba.is-dragging .ba-handle span { box-shadow: 0 0 0 2px #4b2c05, 0 0 0 4px #f6d27a, 0 0 0 5px #4b2c05, 0 0 24px rgba(247, 205, 110, .8); }
.ba-range:focus-visible ~ .ba-handle span, .ba:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid #fff; outline-offset: 3px; }

/* then / now pairs */
.then-now { display: grid; grid-template-columns: minmax(0, 300px) auto minmax(0, 1fr); align-items: center; gap: 1.6rem; }
.then-now figure { margin: 0; }
.then-now.is-portrait { grid-template-columns: minmax(0, 300px) auto minmax(0, 300px); justify-content: center; }
.then-now figcaption { margin-top: .9rem; text-align: center; color: var(--text-dim); font-size: 1rem; }
.then-now figcaption strong { display: block; font-family: var(--display); color: var(--gold-hi); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.then-now-arrow { color: var(--gold); width: 40px; height: 40px; }
.then-now-arrow svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(214, 162, 62, .5)); }
/* a stylised N-Gage around the 176x208 screen */
.ngage {
  position: relative; padding: 18px 16px 22px; border-radius: 22px;
  background: linear-gradient(160deg, #6a6f78, #33373e 35%, #1b1d22 70%, #3c4048);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .25), inset 0 -3px 6px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .6);
}
.ngage::before { content: ""; position: absolute; left: 50%; top: 7px; translate: -50% 0; width: 40px; height: 4px; border-radius: 3px; background: #0c0d10; }
.ngage > img, .ngage > .placeholder { border-radius: 2px; box-shadow: 0 0 0 3px #0c0d10, 0 0 14px rgba(120, 160, 255, .15); }
.pixel { image-rendering: pixelated; width: 100%; height: auto; aspect-ratio: 176 / 208; }
.placeholder {
  display: grid; place-items: center; align-content: center; gap: .8rem; text-align: center;
  color: var(--text-dim); font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5;
  background: repeating-linear-gradient(45deg, #1a1220 0 10px, #140d19 10px 20px);
}
.placeholder svg { width: 54px; height: 54px; color: var(--gold); opacity: .8; }
.placeholder-portrait { aspect-ratio: 176 / 208; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.g-item {
  position: relative; display: block; overflow: hidden; border-radius: 2px; aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(180, 132, 44, .55), 0 0 0 3px #0d0703, 0 12px 26px rgba(0, 0, 0, .5);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
.g-item::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .8rem;
  font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-hi);
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.g-item:hover { box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px var(--gold-hi), 0 0 0 3px #0d0703, 0 0 28px rgba(214, 162, 62, .3), 0 16px 30px rgba(0, 0, 0, .55); transform: translateY(-3px); }
.g-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.g-item:hover::after, .g-item:focus-visible::after { transform: none; }
.g-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-empty {
  display: grid; place-items: center;
  font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
  background: repeating-linear-gradient(45deg, #1a1220 0 10px, #140d19 10px 20px);
}
.g-empty:hover { transform: none; }
.gallery-two { grid-template-columns: 1fr 1fr; }
.gallery-note { margin: 0 0 1.2rem; text-align: center; color: var(--text-dim); }
.gallery-ngage { grid-template-columns: repeat(5, 1fr); }
.gallery-ngage .g-item { aspect-ratio: 176 / 208; }
.gallery-ngage .g-big { aspect-ratio: auto; }
.gallery-ngage img, .lightbox img[src*="ngage-"] { image-rendering: pixelated; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 2rem; background: rgba(8, 4, 14, .92); backdrop-filter: blur(6px); animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .8rem; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 2px; box-shadow: 0 0 0 2px var(--gold), 0 30px 80px rgba(0, 0, 0, .8); }
.lightbox figcaption { font-family: var(--display); color: var(--gold-hi); letter-spacing: .1em; }
.lightbox button { border: 0; cursor: pointer; color: var(--gold-hi); background: rgba(40, 24, 12, .8); width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px var(--brass); display: grid; place-items: center; font-size: 1.8rem; transition: background .25s; }
.lightbox button:hover { background: rgba(90, 54, 8, .9); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-prev svg { transform: scaleX(-1); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Status road ---------- */
.road { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; position: relative; }
.road::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 4.5rem; width: 2px; background: linear-gradient(var(--gold) 0 55%, rgba(214, 162, 62, .2) 70%); }
.road li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 0 0 1.7rem; }
.road h3 { margin: .55rem 0 .2rem; font-size: 1.2rem; }
.road p { margin: 0; color: var(--text-dim); }
.seal {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: .95rem; color: rgba(255, 220, 200, .35);
  background: radial-gradient(circle at 35% 30%, #3a2a3e, #1a1020);
  box-shadow: 0 0 0 2px #0d0703, 0 0 0 3px rgba(180, 132, 44, .35);
}
.road .done .seal { color: #ffe9c8; background: radial-gradient(circle at 35% 30%, #c2463a, #7d1a14 60%, #4d0b08); box-shadow: 0 0 0 2px #2a0503, 0 0 0 3px #a8342a, 0 4px 10px rgba(0, 0, 0, .5); }
.road .done h3::after { content: " \2713"; color: #e48b7e; font-size: .9em; }
.road .now .seal { color: #2a1606; background: radial-gradient(circle at 35% 30%, #fff1b8, #e3b04c 45%, #9a6316); box-shadow: 0 0 0 2px #4b2c05, 0 0 0 3px #e2b555, 0 0 24px rgba(247, 205, 110, .6); animation: glow 2.6s ease-in-out infinite; }
.road .now h3 { color: #fff3cc; }
.road .now h3::after { content: "In progress"; margin-left: .7rem; padding: .1rem .55rem; vertical-align: middle; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid #c9a8ff; border-radius: 99px; color: #c9a8ff; }
.road li:not(.done):not(.now) h3 { color: var(--text-dim); }
@keyframes glow { 50% { box-shadow: 0 0 0 2px #4b2c05, 0 0 0 3px #f6d27a, 0 0 36px rgba(247, 205, 110, .85); } }

/* ---------- Requirements ---------- */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.req-grid .req-note { grid-column: 1 / -1; }
.req-card h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font-size: 1.3rem; }
.req-card h3 svg { width: 24px; height: 24px; color: var(--gold); }
.req-card dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; }
.req-card dt { font-family: var(--display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #c9a8ff; padding-top: .3rem; }
.req-card dd { margin: 0; color: var(--text); font-size: 1.05rem; }
.req-card ul { margin: 0; padding: 0 0 0 1.1rem; color: var(--text-dim); font-size: 1.05rem; }
.req-card li { margin-bottom: .5rem; }
.req-card li::marker { color: var(--gold); }
.req-note { background: radial-gradient(ellipse at 80% 0%, rgba(138, 92, 240, .2), transparent 60%), linear-gradient(180deg, #2b1a2f, #1a0f1c); }

/* ---------- Install ---------- */
.downloads { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; margin: 0 auto 2.6rem; }
.dl { --h: 4.4rem; padding: 0 2rem; gap: 1rem; text-align: left; width: 23.5rem; max-width: 100%; justify-content: flex-start; }
.dl svg { width: 1.7em; height: 1.7em; }
.dl-text { display: grid; line-height: 1.25; }
.dl-ver { font-family: var(--serif); font-weight: 500; font-size: .95rem; letter-spacing: 0; text-transform: none; opacity: .85; }
.dl[aria-disabled="true"] { cursor: default; filter: saturate(.6) brightness(.95); }
.dl[aria-disabled="true"]:hover { transform: none; }
.dl[aria-disabled="true"]::after { display: none; }
.install-card {
  position: relative; max-width: 960px; margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--parch-ink);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 245, 210, .5), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(150, 90, 20, .35), transparent 50%),
    url("img/parchment-plain.webp") 50% 65% / 220% auto;
  border-radius: 3px;
  box-shadow: inset 0 0 60px rgba(110, 60, 10, .55), 0 0 0 1px #3a2203, 0 24px 50px rgba(0, 0, 0, .6);
}
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.4rem; }
.steps li { counter-increment: s; position: relative; padding-left: 4rem; }
.steps li::before {
  content: counter(s, upper-roman); position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; color: #ffe9c8; font-size: .95rem;
  background: radial-gradient(circle at 35% 30%, #c2463a, #7d1a14 60%, #4d0b08);
  box-shadow: 0 0 0 2px #2a0503, 0 4px 8px rgba(60, 20, 0, .45);
}
.steps h3 { margin: .2rem 0 .3rem; color: #4a1f00; font-size: 1.15rem; }
.steps p { margin: 0; font-size: 1.08rem; }
.stamp {
  position: absolute; right: clamp(.5rem, 3vw, 2rem); top: -1.4rem;
  padding: .55rem 1rem; transform: rotate(8deg);
  font-family: var(--display); font-weight: 900; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1.25;
  color: #a4261b; border: 3px double #a4261b; border-radius: 4px;
  background: rgba(240, 210, 140, .85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

/* ---------- Feedback ---------- */
.fb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.fb-card { display: flex; flex-direction: column; align-items: flex-start; }
.fb-card p { flex: 1; margin-bottom: 1.4rem; }
.fb-discord { margin: 2.2rem 0 0; text-align: center; color: var(--text-dim); font-size: 1.12rem; }

/* ---------- Footer ---------- */
.footer { margin-top: 2rem; background: linear-gradient(180deg, #0c0614, #07030b); }
.footer-inner { padding: 3rem 0 2.5rem; text-align: center; }
.foot-brand { margin: 0 0 1rem; font-family: var(--display); font-weight: 900; font-size: 1.4rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.foot-brand em { font-style: normal; color: #c9a8ff; }
.disclaimer { max-width: 760px; margin: 0 auto 1.2rem; font-size: .98rem; color: var(--text-dim); }
.disclaimer strong { color: var(--text); }
/* a button styled as a text link (the board's Log out) */
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--gold-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff3c8; }
.foot-small { margin: 0; font-size: .92rem; color: #8f7f62; }
/* the legal notice: small print under the footer, here and on the board's pages */
.small-print { max-width: 760px; margin-left: auto; margin-right: auto; padding: 1.6rem 0 2.4rem; border-top: 1px solid rgba(214, 162, 62, .15); font-size: .84rem; line-height: 1.55; color: #8f7f62; text-align: left; overflow-wrap: break-word; }
.small-print .sp-title { margin: 0 0 .7rem; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #a8936a; }
footer .small-print p { margin: 0 0 .7rem; }
footer .small-print p:last-child { margin-bottom: 0; }
.small-print a { color: #c2a76c; }

/* ---------- Forms: the contact form here, and the board's pages ---------- */
.contact { max-width: 760px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 2px;
  background: linear-gradient(180deg, #24160e, #170d08);
  box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(180, 132, 44, .45), 0 10px 22px rgba(0, 0, 0, .4); }
.contact > h3 { margin: 0; font-size: 1.4rem; text-align: center; }
.contact-lede { margin: .5rem 0 1.4rem; text-align: center; color: var(--text-dim); }
.contact-lede a { color: var(--gold-hi); }
.contact-form, .form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span:first-child { font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.field > span:first-child em { font-family: var(--serif); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--text-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; border-radius: 3px; border: 1px solid rgba(214, 162, 62, .35);
  background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; font-size: 1.05rem;
}
.field input[type="radio"], .field input[type="checkbox"] { width: auto; padding: 0; }
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%);
  background-position: right 1.1rem center, right .75rem center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field select option { background: #1a0e07; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 2px rgba(247, 217, 138, .25); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #e0705a; }
.field-note { margin: 0; font-size: .95rem; color: var(--text-dim); }
.field-error { margin: 0; font-size: .95rem; color: #f0a08e; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--text-dim); }
.form-status.is-ok { color: var(--gold-hi); }
.form-status.is-bad { color: #f0a08e; }
.turnstile-box:empty { display: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a:not(.btn) { font-size: .74rem; letter-spacing: .1em; white-space: nowrap; }
  .brand-text small { display: none; }
}
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .req-grid, .fb-grid { grid-template-columns: 1fr 1fr; }
  .req-grid .req-note { grid-column: auto; }
}
@media (max-width: 900px) {
  .burger {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer;
    background: transparent;
  }
  .burger span { display: block; width: 24px; height: 2px; background: var(--gold-hi); transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.2rem;
    background: rgba(20, 11, 34, .98);
    box-shadow: 0 1px 0 rgba(214, 162, 62, .45), 0 18px 30px rgba(0, 0, 0, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav-links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(214, 162, 62, .15); }
  .nav-links .btn { margin-top: 1rem; }
  .feature-wide { grid-column: auto; }
  .then-now { grid-template-columns: 1fr; justify-items: center; }
  .then-now .then { width: min(280px, 80%); }
  .then-now .now { width: 100%; }
  .then-now.is-portrait .now { width: min(280px, 80%); }
  .then-now-arrow { transform: rotate(90deg); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery-ngage { grid-template-columns: repeat(4, 1fr); }
  .gallery-ngage .g-big { grid-column: auto; grid-row: auto; aspect-ratio: 176 / 208; }
  }
@media (max-width: 760px) {
  /* the parchment image's open area is too small for the text: plain parchment instead */
  .parchment {
    aspect-ratio: auto;
    padding: 2rem 1.4rem 1.6rem;
    background: var(--parch-css);
    border-radius: 3px;
    box-shadow: inset 0 0 50px rgba(110, 60, 10, .6);
  }
  .parchment-body { position: static; translate: none; width: auto; font-size: 1.1rem; }
  .req-grid, .fb-grid, .steps, .feature-grid, .field-row { grid-template-columns: 1fr; }
  .install-card { background: var(--parch-css); padding-top: 2.6rem; }
  .req-note { grid-column: auto; }
  .banner { min-height: 0; }
  .hero-platforms { gap: 1rem; font-size: .7rem; }
  .lightbox { grid-template-columns: 1fr; padding: 4rem 12px; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 1.1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-big { grid-column: auto; }
  .gallery-ngage { grid-template-columns: 1fr 1fr; }
  .gallery-two { grid-template-columns: 1fr; }
  .gallery-ngage .g-big { grid-column: span 2; grid-row: auto; aspect-ratio: 176 / 208; }
  .log-entry summary { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .log-entry summary span { grid-row: 2; }
  .brand-text small { display: none; }
  .ba-label { top: .5rem; font-size: .6rem; }
  .ba-handle span { width: 38px; height: 38px; }
  .btn { padding: 0 1.3rem; letter-spacing: .1em; }
  .btn-xl { padding: 0 2.2rem; letter-spacing: .14em; }
  .pay-actions { width: 100%; flex-wrap: nowrap; }
  .pay-actions .btn { flex: 1; padding: 0 .6rem; }
  .modal-note { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-motes { display: none; }
}

/* ---- Models: a turnable picture (main.js). The pictures are on true black and blended, so the stage's dim light shows round them */
.tabs button[aria-pressed="true"] { color: #2a1606; background: linear-gradient(180deg, #fbe7a3, #d9a744 55%, #a46c1a); box-shadow: 0 0 0 1px #4b2c05, 0 0 0 2px #e2b555, 0 0 18px rgba(247, 205, 110, .35); }
#model-picker[hidden] { display: none; }
.models .tabs button { padding: .6rem 1rem; font-size: .74rem; }
@media (max-width: 480px) { .models .tabs { gap: .4rem; margin-bottom: 1.2rem; } .models .tabs button { padding: .5rem .65rem; font-size: .64rem; letter-spacing: .1em; } }
.mv-stage {
  position: relative; isolation: isolate; width: min(100%, 460px); aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(ellipse 46% 5% at 50% 94.5%, rgba(214, 162, 62, .16), transparent),
    radial-gradient(ellipse 80% 70% at 50% 44%, rgba(138, 92, 240, .1), transparent),
    #0a0510;
  box-shadow: 0 0 0 1px #0d0703, 0 0 0 2px rgba(180, 132, 44, .45);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.mv-stage.is-turning { cursor: grabbing; }
.mv-stage:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.mv-still, .mv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: lighten; pointer-events: none; }
.mv-still[hidden], .mv-canvas[hidden] { display: none; }
.mv-hint {
  position: absolute; left: 50%; top: .8rem; translate: -50% 0; padding: .25rem .7rem; white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-weight: 700; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-hi); background: rgba(12, 6, 3, .75); border: 1px solid rgba(214, 162, 62, .6); border-radius: 2px; transition: opacity .4s;
}
.mv-stage.was-turned .mv-hint { opacity: 0; }
.mv-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(var(--loaded, 0)); transform-origin: left; opacity: .8; transition: opacity .4s; }
.mv-stage.is-loaded .mv-bar { opacity: 0; }

/* ---- Artwork progress (tools/art_progress.py writes the numbers) */
.art-progress { margin: 2.5rem auto 0; max-width: 46rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(214, 162, 62, .35); border-radius: 10px; background: rgba(15, 8, 25, .55); }
.art-progress h3 { margin: 0 0 .35rem; color: var(--gold-hi); }
.art-progress .art-total { margin: 0 0 1.1rem; }
.art-progress ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.art-progress li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name num" "what what" "bar bar"; gap: .15rem .75rem; align-items: baseline; }
.art-progress .ap-name { grid-area: name; font-weight: 600; }
.art-progress .ap-what { grid-area: what; font-size: .9rem; opacity: .75; }
.art-progress .ap-num { grid-area: num; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.art-progress .ap-bar { grid-area: bar; display: block; height: 8px; margin-top: .3rem; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.art-progress .ap-bar > span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.art-progress .art-note { margin: 1.1rem 0 0; font-size: .85rem; opacity: .7; }
