@font-face {
  font-family: Cinzel;
  src: url("assets/Cinzel.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Malachim;
  src: url("assets/Malachim_UI.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #12151e;
  --panel-light: #191e2a;
  --edge: #2b3040;
  --text: #f4f0e8;
  --muted: #b7bacb;
  --gold: #edc990;
  --accent: #c5a7ff;
  --display: Cinzel, Georgia, serif;
  --ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wide: 1360px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 91px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 51% 0, #171927 0, var(--bg) 710px) fixed;
  font: 16px/1.5 var(--ui);
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.06; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--panel-light);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.bar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 max(3.6vw, 22px);
  z-index: 5;
  background: #0b0d13ec;
  backdrop-filter: blur(19px);
  border-bottom: 1px solid #ffffff15;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font: 16px/1.05 var(--display);
  white-space: nowrap;
}
.wordmark b { color: var(--gold); font-weight: 400; }
.mark {
  width: 17px;
  height: 17px;
  display: grid;
  flex: none;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 15px #edc99030;
}
.mark i { width: 6px; height: 6px; background: var(--gold); }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a { border-radius: 9px; padding: 8px 12px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.bar nav a:hover, .bar nav [aria-current="page"] { background: #ffffff0d; color: var(--text); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  background: #1a1e2c;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: background .18s, border-color .18s, transform .18s;
}
.button:hover { background: #282e40; border-color: #ffffff50; }
.button:active { transform: translateY(1px); }
.header-play, .primary { color: #1a1310; border-color: #f6d4a3; background: linear-gradient(135deg,#f7dfb5,#dcb17a); }
.header-play { justify-self: end; min-height: 39px; padding: 7px 19px; }
.header-play:hover, .primary:hover { color: #170f08; background: #f6d4a3; }
.secondary { background: #101420d9; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}
.hunter-index button, .skin-options button {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: #191d2a;
  overflow: hidden;
  padding: 0 5px 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.22;
}
.hunter-index img, .skin-options img { width: 100%; object-fit: cover; object-position: center top; }
.hunter-index img { height: 76px; }
.hunter-index button:hover, .skin-options button:hover,
.hunter-index [aria-pressed=true], .skin-options [aria-pressed=true] {
  border-color: var(--gold);
  background: #262636;
}
.portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 348px;
  background: #151a27;
}
.portrait::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg,#101320e8,#141b2d42),url("assets/archives.webp") center 25%/cover;
}
.portrait img { width: 87%; height: 411px; object-fit: contain; padding: 15px 0; filter: drop-shadow(0 12px 18px #0a0b14); }
.archives { margin-bottom: 74px; }
.archive-feature {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  min-height: 290px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
}
.archive-feature img { width: 100%; height: 100%; min-height: 290px; max-height: 390px; object-fit: cover; object-position: center 43%; }
.archive-feature div { align-self: center; padding: clamp(22px,4vw,50px); }
.archive-feature h3 { font-size: clamp(23px,3vw,36px); font-weight: 710; letter-spacing: -.035em; }
.archive-feature p { margin: 12px 0 21px; color: var(--muted); }
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--edge);
  padding: 24px max(4.5vw,16px);
  color: var(--muted);
  font-size: 14px;
}

.archive-page { margin-bottom: 70px; }
.archive-heading { padding: 61px 0 28px; }
.archive-heading h1 { margin: 10px 0 7px; font-size: clamp(46px,7vw,87px); font-weight: 770; letter-spacing: -.068em; }
.archive-heading p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.hunter-index {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 8px;
  margin-bottom: 26px;
}
.hunter-file {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  align-items: start;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
}
.hunter-copy h2 { margin-top: 0; }
.hunter-story { color: var(--muted); margin-bottom: 25px; }
.hunter-copy h3 { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.skin-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 7px; }
.skin-options img { height: 88px; }
.skin-options small { color: var(--gold); font-size: 11px; }
.hunter-large {
  position: sticky;
  top: 75px;
  height: min(605px,78vh);
  min-height: 424px;
  grid-template-rows: minmax(0,1fr) auto;
  border-radius: 0 21px 21px 0;
  overflow: hidden;
}
.hunter-large img { height: 100%; min-height: 0; }
.skin-preview-controls {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 19px;
  background: #101420db;
}
.skin-preview-controls div { display: grid; gap: 2px; text-align: center; }
.skin-preview-controls small { color: var(--gold); }
.skin-preview-controls small:empty { display: none; }
.skin-preview-controls .button { font-size: 24px; min-width: 44px; padding: 0; }
#file-position { color: var(--muted); font-size: 11px; }

.fruit-options { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; margin-bottom: 23px; }
.fruit-options button {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  gap: 3px;
  padding: 11px 3px 10px;
  color: var(--text);
  border: 1px solid var(--edge);
  border-radius: 15px;
  background: radial-gradient(ellipse at 50% 25%,color-mix(in srgb,var(--fruit-accent) 14%,#111522),#10131e 90%);
  font-size: 13px;
  font-weight: 640;
  transition: border-color .18s, transform .18s;
}
.fruit-options button:hover, .fruit-options [aria-pressed=true] { border-color: var(--fruit-accent); }
.fruit-options button:hover { transform: translateY(-3px); }
.fruit-options [aria-pressed=true] { color: var(--fruit-accent); box-shadow: inset 0 0 22px color-mix(in srgb,var(--fruit-accent) 15%,transparent); }
.fruit-options img { width: 76px; height: 80px; object-fit: contain; filter: drop-shadow(0 7px 8px #040508); }
.fruit-catalogue {
  --fruit-accent: var(--accent);
  border: 1px solid var(--edge);
  border-radius: 21px;
  background: radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--fruit-accent) 10%,var(--panel)),var(--panel) 434px);
  padding: clamp(14px,3vw,34px);
}
.catalogue-header, .catalogue-controls, .affinity-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}
.catalogue-header, .catalogue-controls { justify-content: space-between; }
.affinity-summary h2 { font-size: clamp(31px,4.4vw,56px); letter-spacing: -.06em; line-height: 1.1; }
.affinity-summary img { width: 53px; height: 59px; object-fit: contain; }
.catalogue-controls { margin: 17px 0; }
.segmented { display: flex; flex-wrap: wrap; width: fit-content; gap: 3px; border: 1px solid var(--edge); border-radius: 11px; padding: 3px; background: #0b0e17; }
.segmented button {
  padding: 7px 11px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.segmented button:hover, .segmented [aria-pressed=true] { background: #262b3d; color: var(--text); border-color: #ffffff1a; }
.rank-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.rank-filter select { padding: 9px 10px; color: var(--text); background: #191d2a; border: 1px solid var(--edge); border-radius: 9px; }
.djinn-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(151px,1fr)); gap: 9px; }
.djinn-grid > button, .djinn-grid > figure {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  gap: 4px;
  padding: 8px 6px 11px;
  background: #191e2c;
  border: 1px solid var(--edge);
  border-radius: 13px;
  color: var(--text);
  text-align: center;
}
.djinn-grid button:hover { border-color: var(--fruit-accent); background: #22293b; }
.djinn-grid img { width: 100%; height: 132px; object-fit: contain; }
.djinn-grid button > span { overflow-wrap: anywhere; font: 650 14px/1.25 var(--ui); }
.djinn-grid button > span.malachim, .djinn-dialog h2.malachim { font: 400 14px/1.55 Malachim, sans-serif; }
.djinn-grid small, .djinn-grid figcaption { color: var(--fruit-accent); font-size: 12px; }
.djinn-grid figure.archonte-silhouette { background: radial-gradient(ellipse at 50% 36%,#677084,#222938 80%); }
.catalogue-note { margin-top: 15px; color: var(--muted); font-size: 14px; }

.djinn-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 14px 19px 23px;
  border: 1px solid color-mix(in srgb,var(--fruit-accent),#343642 65%);
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--fruit-accent) 18%,#111722),#10141e 78%);
  color: var(--text);
  text-align: center;
}
.djinn-dialog::backdrop { background: #080a10bd; backdrop-filter: blur(8px); }
.djinn-dialog form { text-align: right; }
.djinn-dialog img { width: 100%; height: min(390px,49vh); object-fit: contain; margin: 10px 0 9px; }
.djinn-dialog p { color: var(--fruit-accent); font-size: 13px; }
.djinn-dialog h2 { margin-top: 5px; font-size: clamp(28px,4.7vw,46px); }
.djinn-dialog h2.malachim { font-size: clamp(18px,4vw,28px); }

.intro-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #080f14; color: var(--text); }
.intro-dialog video { width: 100%; height: 100%; object-fit: contain; display: block; }
.intro-dialog .button { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); }
.intro-dialog .intro-skip { right: max(22px, env(safe-area-inset-right)); }
.intro-dialog .intro-play { left: 50%; transform: translateX(-50%); bottom: 80px; }

@media (max-width: 1050px) {
  .hunter-index { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .fruit-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 109px; }
  .bar { grid-template-columns: 1fr auto; grid-template-rows: 51px 43px; min-height: 0; gap: 0 4px; padding: 0 12px; }
  .bar nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 1px; border-top: 1px solid #ffffff16; align-self: stretch; }
  .bar nav a { padding: 6px 8px; font-size: 13px; }
  .header-play { grid-row: 1; grid-column: 2; min-height: 34px; padding: 6px 12px; }
  .wordmark { font-size: 14px; }
  .mission { margin: 0 auto; max-width: 375px; font-size: 15px; }
  .actions { justify-content: center; gap: 6px; margin-top: 16px; }
  .actions .button { padding-inline: 10px; font-size: 12px; }
  .portrait { min-height: 0; }
  .portrait img { height: 337px; }
  .archive-feature { grid-template-columns: 1fr; min-height: 0; }
  .archive-feature img { min-height: 0; height: 190px; }
  .archive-feature div { padding: 18px; }
  .archives, .archive-page { margin-bottom: 40px; }
  .archive-heading { padding: 30px 0 22px; }
  .archive-heading p:not(.eyebrow) { font-size: 15px; }
  .hunter-index { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .hunter-index img { height: 65px; }
  .hunter-file { grid-template-columns: 1fr; }
  .hunter-large { position: relative; top: auto; height: 370px; min-height: 0; grid-area: 1 / 1; border-radius: 21px 21px 0 0; }
  .hunter-large img { height: 100%; }
  .hunter-copy { grid-area: 2 / 1; }
  .skin-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .skin-options button { font-size: 12px; }
  .fruit-options { gap: 5px; margin-bottom: 16px; }
  .fruit-options button { font-size: clamp(10px,2.8vw,13px); padding-top: 6px; }
  .fruit-options img { width: 55px; height: 57px; }
  .fruit-catalogue { border-radius: 17px; }
  .djinn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .djinn-grid img { height: 113px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}



/* The opening scene is also the roster selector. */
:root {
  --bg: #0a090c;
  --panel: #141218;
  --panel-light: #211a29;
  --edge: #312937;
  --text: #fbf1e7;
  --muted: #d0c3c9;
  --gold: #ffcf9b;
}
body {
  background: radial-gradient(ellipse at 50% 0, #251923 0, var(--bg) 800px) fixed;
}
.bar {
  min-height: 68px;
  background: #0e0b11ed;
  border-bottom-color: #f2c9d21d;
}
.bar nav {
  gap: 5px;
  border: 1px solid #f2c9d221;
  border-radius: 99px;
  padding: 3px 4px;
}
.bar nav a { border-radius: 99px; padding: 6px 13px; }
.button { border-radius: 6px; }
.header-play, .primary { background: #ffca99; border-color: #ffcf9b; }
.secondary { background: #1b1520; }

.pact-stage {
  --stage-accent: #dabaee;
  --scene: url("assets/bibliotheque.webp");
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  grid-template-rows: minmax(clamp(490px, 42vw, 670px), auto);
  overflow: hidden;
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto 0;
  background: #18121b;
  border: 1px solid #edbfd62e;
}
.pact-stage::before, .pact-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  pointer-events: none;
}
.pact-stage::before {
  z-index: -3;
  background: var(--scene) 78% 35% / cover no-repeat;
  opacity: .56;
}
.pact-stage::after {
  z-index: -2;
  background: linear-gradient(90deg,#100b17 1%,#160f1ccb 33%,#17121a08 64%,#130b1891),
    linear-gradient(0deg,#100911 4%,transparent 39%,#170a191f),
    radial-gradient(ellipse at 75% 49%,color-mix(in srgb,var(--stage-accent),transparent 66%),transparent 63%);
}
.stage-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 43%;
  pointer-events: none;
}
.stage-art img {
  position: absolute;
  bottom: 1%;
  left: 48%;
  width: min(79%,660px);
  height: 93%;
  max-width: none;
  object-fit: contain;
  translate: -50% 0;
  filter: drop-shadow(14px 25px 28px #140a1b) drop-shadow(-1px 0 13px #fff4f126);
}
.stage-sigil {
  position: absolute;
  width: min(86%, 600px);
  aspect-ratio: 1;
  top: 9%;
  left: 7%;
  border: 1px solid color-mix(in srgb,var(--stage-accent),transparent 52%);
  border-radius: 50%;
  box-shadow: inset 0 0 75px #e9b7ff17,0 0 38px #c081ca22;
}
.stage-sigil::before, .stage-sigil::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid #ffd8bc4f;
  border-radius: 50%;
}
.stage-sigil::after { inset: 5%; border-style: dashed; border-color: #ffeddd37; }
.stage-copy { place-self: center start; grid-area: 1 / 1; padding: 34px 12px 47px clamp(24px,6vw,94px); }
.stage-copy .button { min-height: 47px; }

.archives { margin-top: clamp(42px,6vw,90px); }
.archives, .archive-page { width: min(1190px, calc(100% - 9vw)); margin-inline: auto; }
.archives h2 { margin: 0 0 18px; font-size: clamp(33px,5.2vw,75px); }
.hunter-copy { padding: clamp(20px,4vw,48px); }
.hunter-copy h2 { margin-bottom: 14px; letter-spacing: -.047em; }
.archives h2, .archive-heading h1 { font-weight: 820; letter-spacing: -.052em; }
.archive-feature { border-radius: 0; background: #17111a; border-color: #cba5bd37; }
.archive-feature img { filter: saturate(.9); }
.archive-feature .guard-demo { margin-top: 20px; border-top: 1px solid #ffffff24; padding-top: 12px; }
.guard-demo label { color: var(--gold); font-size: 13px; }
.archive-feature .guard-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 0 0; }
.guard-controls select { padding: 7px 9px; border: 1px solid var(--edge); border-radius: 6px; background: var(--panel-light); color: var(--text); }
.guard-demo #guard-result { color: var(--text); margin: 7px 0 0; font-size: 13px; }
.guard-demo #guard-result:empty { display: none; }

.archive-heading {
  position: relative;
  padding-top: clamp(32px,5.4vw,81px);
  padding-bottom: 27px;
}
.archive-heading h1 { font-size: clamp(52px,8.6vw,113px); margin-bottom: 10px; }
.archive-heading .eyebrow { color: #eebedf; }
.hunter-index {
  grid-template-columns: none;
  grid-auto-columns: clamp(107px,12vw,158px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 4px 4px 11px;
  margin: 0 -4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-color: #c691b671 #231723;
}
.hunter-reel-controls { display: flex; gap: 7px; justify-content: flex-end; margin-bottom: 6px; }
.hunter-reel-controls .button { min-width: 42px; min-height: 38px; padding: 4px 9px; }
.hunter-index button { scroll-snap-align: start; min-height: 108px; }
.hunter-index button, .skin-options button, .djinn-grid > button, .djinn-grid > figure {
  border-radius: 5px;
  background: #1a1320;
  border-color: #865d7b43;
}
.hunter-index button[aria-pressed=true], .hunter-index button:hover, .skin-options button[aria-pressed=true], .skin-options button:hover {
  background: #3b2840;
  border-color: #e3bde9;
}
.hunter-file {
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  border-radius: 0;
  background: #1a111d;
  border-color: #bf94b144;
}
.hunter-copy { grid-area: 1 / 2; }
.hunter-copy h2 { font-size: clamp(34px,4vw,58px); }
.hunter-large {
  grid-area: 1 / 1;
  border-radius: 0;
  border-right: 1px solid #cba5bd27;
  background: #1a101f;
}
.portrait::before { background: linear-gradient(0deg,#170e22f2,#38223a4d),url("assets/archives.webp") center 23%/cover; }
.skin-preview-controls { background: #1a101edb; }
.skin-preview-controls .button { background: #2e1e34; }

.fruit-options { padding-bottom: 11px; border-bottom: 1px solid #be91b131; }
.fruit-options button {
  border-radius: 6px;
  padding-top: 14px;
  background: radial-gradient(ellipse at 50% 44%,color-mix(in srgb,var(--fruit-accent),transparent 84%),transparent 63%);
  border-color: transparent;
}
.fruit-options img { height: 105px; width: 92px; }
.fruit-options button[aria-pressed=true] {
  background: radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--fruit-accent),#25172b 65%),#1a121e 85%);
  border-color: var(--fruit-accent);
}
.fruit-catalogue {
  border: none;
  border-radius: 0;
  background: radial-gradient(ellipse at 10% 0,color-mix(in srgb,var(--fruit-accent),transparent 92%),transparent 50%);
  padding: 13px 0 0;
}
.catalogue-header { gap: 12px; }
.affinity-summary h2 { font-weight: 825; }
.djinn-grid > button, .djinn-grid > figure { padding-top: 10px; }
.djinn-grid button:hover {
  background: color-mix(in srgb,var(--fruit-accent),#201725 89%);
  border-color: var(--fruit-accent);
}
.djinn-dialog { border-radius: 7px; }

@media (max-width: 700px) {
  .bar nav { border-width: 1px 0 0; padding: 0; border-radius: 0; }
  .bar nav a { padding-inline: 8px; }
  .pact-stage { width: calc(100% - 18px); margin-top: 8px; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(330px, auto); }
  .stage-copy { grid-area: 1 / 1; padding: 27px 15px 8px; }
  .stage-copy .button { min-height: 40px; padding: 6px 11px; font-size: 13px; }
  .pact-stage::before { background-position: 60% 39%; }
  .pact-stage::after { background: linear-gradient(180deg,#160e1eea 3%,#160f1ca6 34%,#170f1e24 67%,#130d18 91%); }
  .stage-art { inset: auto 0 145px 5%; height: 304px; }
  .stage-art img { width: 82%; height: 87%; left: 39%; }
  .stage-sigil { width: 82%; left: 6%; top: 14%; }
  .hunter-file { grid-template-columns: minmax(0,1fr); }
  .hunter-large { grid-area: 1 / 1; border-right: 0; }
  .hunter-copy { grid-area: 2 / 1; padding: 19px 16px; }
  .hunter-index { grid-auto-columns: 108px; }
  .fruit-options img { width: 57px; height: 62px; }
}


/* The site's chrome uses the exact navy and texture sampled from the opening. */
:root {
  --bg: #050b0f;
  --panel: #0b131a;
  --panel-light: #14202a;
  --edge: #29353e;
  --text: #f4eadd;
  --muted: #c1c8cc;
  --gold: #ecd0a0;
}
body {
  background: var(--bg) url("assets/intro-texture.webp") center top / 1080px auto repeat;
}
.bar { background: #050b0fee; border-bottom-color: #e1d5bc25; }
.bar nav { border-color: #e1d5bc26; }
.bar nav a[aria-current="location"] { color: var(--text); background: #e1d5bc17; }
.intro-brand img { display: block; width: clamp(154px,19vw,241px); height: auto; }
.bar .intro-brand { grid-column: 3; justify-self: end; }
.music-switch {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  min-height: 39px;
  border: 1px solid #e1d5bc33;
  border-radius: 7px;
  background: #0b151b;
  color: var(--text);
  font-size: 13px;
}
.music-switch > span:first-child { color: var(--gold); font-size: 17px; }
.music-switch:hover, .music-switch[aria-pressed="true"] { border-color: var(--gold); }
.header-tools { display: flex; align-items: center; justify-self: start; gap: 7px; min-width: 0; }
.language-switch { min-width: 0; max-width: 112px; min-height: 39px; padding: 6px; border: 1px solid #e1d5bc33; border-radius: 7px; background: #0b151b; color: var(--text); font-size: 13px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.pact-stage {
  grid-template-rows: minmax(clamp(490px,42vw,670px),auto) auto;
  border-color: #dcc9a837;
  background: #091219;
}
.stage-art { grid-area: 1 / 1 / 2 / -1; }
.stage-switch-row {
  grid-area: 2 / 1 / 3 / -1;
  padding: 10px clamp(12px,3vw,41px);
  border-top: 1px solid #e4cc9c38;
  background: #081218ed;
}
.pact-stage::after {
  background:
    linear-gradient(90deg,#050b0fb9,#050b0f30 48%,#050b0f06 70%,#050b0f63),
    linear-gradient(0deg,#050b0f 4%,transparent 43%,#050b0f13);
}
.stage-copy { grid-area: 1 / 1 / 2 / -1; place-self: center; padding: 0; z-index: 1; }
.stage-copy .primary {
  min-width: clamp(195px,21vw,310px);
  min-height: clamp(64px,7vw,92px);
  padding: 12px 32px;
  border-radius: 2px;
  outline: 1px solid #e4cc9c9c;
  outline-offset: 6px;
  border: 1px solid #f7e1b9;
  background: linear-gradient(135deg,#f1d7a7,#ba925b);
  color: #0f1519;
  box-shadow: 0 12px 32px #030708d0;
  font-size: clamp(23px,2.4vw,36px);
  font-weight: 840;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.stage-copy .primary:hover { background: #f5ddb7; }
.stage-copy .primary:focus-visible { outline: 2px solid #faf1dd; }
.stage-switch, .segmented { background: #081117; border-color: var(--edge); }
.stage-switch button[aria-pressed=true], .segmented button[aria-pressed=true] { background: #25333f; }
.stage-art img { filter: drop-shadow(14px 25px 28px #04090c) drop-shadow(-1px 0 11px #e6f2ff24); }
.archive-page { margin-bottom: 75px; }
.archive-heading .eyebrow { color: var(--gold); }
.hunter-reel-controls .button, .hunter-index button, .skin-options button, .djinn-grid > button,
.djinn-grid > figure, .rank-filter select { background: #111c25; border-color: var(--edge); }
.hunter-index button[aria-pressed=true], .hunter-index button:hover, .skin-options button[aria-pressed=true], .skin-options button:hover { background: #253744; border-color: var(--gold); }
.hunter-file, .archive-feature { background: #0b131a; border-color: var(--edge); }
.hunter-large, .skin-preview-controls { background: #101b24; }
.skin-preview-controls .button { background: #1c2a36; }
.secondary, .button { background: #14212a; }
.secondary:hover, .button:hover { background: #223543; }
.archive-feature.invocation-preview > img {
  object-fit: contain;
  object-position: center;
  min-height: 0;
  height: 330px;
  padding: 20px;
  background: #071017;
  filter: none;
}
footer { background: #050b0fe8; }
@media (max-width: 700px) {
  .bar { min-height: 0; }
  .bar .intro-brand { grid-area: 1 / 2; }
  .bar .intro-brand img, footer .intro-brand img { width: clamp(120px,43vw,178px); }
  .music-switch { padding: 4px 7px; min-height: 34px; }
  .header-tools { gap: 4px; }
  .language-switch { width: 80px; min-height: 34px; padding-inline: 3px; font-size: 12px; }
  .header-tools .music-switch { padding-inline: 5px; font-size: 11px; gap: 3px; }
  .bar .intro-brand img { width: clamp(120px,38vw,166px); }
  .pact-stage { grid-template-rows: clamp(360px,55vh,490px) auto; }
  .pact-stage::after { background: linear-gradient(180deg,#050b0f08,transparent 28%,#050b0f80 75%,#050b0f); }
  .stage-art { inset: 0 0 auto; height: 100%; }
  .stage-art img { left: 50%; height: 92%; bottom: 4%; }
  .stage-copy { grid-area: 1 / 1; place-self: end center; padding: 0 0 15px; }
  .stage-copy .primary { min-width: 182px; min-height: 55px; padding: 8px 24px; font-size: 23px; }
  .archive-page { margin-bottom: 44px; }
  .archive-feature.invocation-preview > img { height: 245px; padding: 14px; }
}

