@font-face {
  font-family: "Kalam";
  src: url("assets/kalam-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #14080c;
  --night-soft: #211015;
  --wine: #4d101d;
  --wine-bright: #7b1f2b;
  --ember: #e65428;
  --ember-deep: #b83224;
  --gold: #e7bf6b;
  --gold-light: #f4dda2;
  --parchment: #f3dfbd;
  --parchment-light: #fff3d7;
  --ink: #32151a;
  --ash: #d6c4b2;
  --white: #fff8eb;
  --line: rgba(231, 191, 107, 0.3);
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", "Gill Sans", sans-serif;
  --utility: "Courier New", monospace;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 79% 9%, rgba(137, 29, 36, 0.34), transparent 29rem),
    radial-gradient(circle at 11% 43%, rgba(209, 70, 36, 0.12), transparent 31rem),
    var(--night);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--parchment-light);
  color: var(--ink);
  transform: translateY(-160%);
  clip-path: inset(50%);
}

.skip-link:focus { transform: translateY(0); clip-path: none; }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
  transition: none !important;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 1360px);
  margin: 0 auto;
  padding: 1.45rem 0;
  border-bottom: 1px solid rgba(231, 191, 107, 0.18);
}

.sigil {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sigil-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  color: var(--night);
  background: var(--gold);
  border-radius: 50% 50% 45% 55%;
  font: 700 1.35rem/1 var(--display);
  transform: rotate(-7deg);
  box-shadow: 0 0 30px rgba(231, 191, 107, 0.2);
}

.sigil-copy { display: grid; line-height: 1.05; }
.sigil-copy b { font: 1rem var(--display); letter-spacing: 0.04em; }
.sigil-copy small { margin-top: 0.3rem; color: var(--gold); font: 0.62rem var(--utility); letter-spacing: 0.19em; text-transform: uppercase; }

nav { display: flex; gap: clamp(1.1rem, 3vw, 2.8rem); }
nav a { color: var(--ash); font: 0.74rem var(--utility); letter-spacing: 0.11em; text-decoration: none; text-transform: uppercase; }
nav a:hover { color: var(--gold-light); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(30rem, 1.12fr);
  align-items: center;
  min-height: 100svh;
  width: min(92%, 1360px);
  margin: 0 auto;
  padding: 9rem 0 6rem;
}

.hero::after {
  content: "";
  position: absolute;
  right: 52%;
  bottom: 2rem;
  width: 1px;
  height: 8vh;
  background: linear-gradient(var(--gold), transparent);
}

.hero-copy { position: relative; z-index: 2; max-width: 42rem; }

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font: 0.72rem/1.4 var(--utility);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--white); }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.03;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.65rem, 7.2vw, 7.5rem);
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: var(--gold-light);
  font-size: 0.55em;
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--ash);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font: 700 0.72rem var(--utility);
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { color: #260b0f; background: var(--gold); border-color: var(--gold); box-shadow: 8px 8px 0 rgba(109, 28, 33, 0.55); }
.button-primary:hover { background: var(--gold-light); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.soundtrack-seal {
  width: min(100%, 36rem);
  margin-top: 2rem;
}

.soundtrack-trigger {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-height: 3.6rem;
  padding: .45rem 1rem .45rem .55rem;
  color: var(--gold-light);
  background: rgba(20, 8, 12, .72);
  border: 1px solid rgba(231, 191, 107, .45);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.soundtrack-trigger:hover { background: rgba(77, 16, 29, .8); border-color: var(--gold); }
.soundtrack-trigger > span:last-child { display: grid; font: 1rem/1.15 var(--display); }
.soundtrack-trigger small, .music-player-heading small { margin-bottom: .25rem; color: var(--ash); font: .56rem var(--utility); letter-spacing: .12em; text-transform: uppercase; }
.soundtrack-rune { display: grid; width: 2.45rem; aspect-ratio: 1; place-items: center; color: var(--night); background: var(--gold); border-radius: 50%; font: 700 1.1rem var(--display); box-shadow: 0 0 20px rgba(231, 191, 107, .2); }

.music-player {
  margin-top: .8rem;
  padding: .85rem;
  background: linear-gradient(145deg, rgba(77, 16, 29, .96), rgba(20, 8, 12, .98));
  border: 1px solid rgba(231, 191, 107, .55);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .25);
}

.music-player[hidden] { display: none; }
.music-player-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.music-player-heading p { margin: 0; color: var(--ash); font-size: .83rem; }
.music-player-heading b { color: var(--gold-light); font-family: var(--display); font-size: 1.05rem; font-weight: 400; }
.music-close { flex: 0 0 auto; min-height: 2.75rem; padding: .45rem .65rem; color: var(--gold-light); background: transparent; border: 1px solid rgba(231, 191, 107, .42); cursor: pointer; font: .6rem var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.music-close:hover { color: var(--night); background: var(--gold); }
.music-close span { margin-left: .3rem; font-size: 1rem; }
.music-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #080304; border: 1px solid rgba(231, 191, 107, .22); }
.music-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.music-note { margin: .7rem 0 0; color: #c8b7a8; font-size: .72rem; line-height: 1.45; }
.music-note a { color: var(--gold-light); text-underline-offset: .2rem; }

.hero-art { position: relative; min-height: 34rem; }
.book-shadow { position: absolute; left: 13%; right: 6%; bottom: 5%; height: 13%; border-radius: 50%; background: #000; filter: blur(24px); opacity: 0.65; }

.grimoire {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  width: min(46rem, 95%);
  height: 25rem;
  perspective: 1000px;
  transform: translate(-50%, -43%) rotate(-4deg);
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.48));
}

.book-page {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 94%, rgba(93, 46, 35, 0.12)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(91, 47, 37, 0.08) 28px),
    var(--parchment);
  border: 1px solid #ad8255;
}

.book-page::before, .book-page::after { content: ""; position: absolute; width: 4rem; height: 4rem; border-color: #9e672b; opacity: 0.65; }
.book-page::before { top: 1rem; left: 1rem; border-top: 2px solid; border-left: 2px solid; }
.book-page::after { right: 1rem; bottom: 1rem; border-right: 2px solid; border-bottom: 2px solid; }
.page-left { padding: 4.8rem 2.1rem 2rem 3rem; border-radius: 1.4rem 0.2rem 0.7rem 1rem; transform: rotateY(8deg); transform-origin: right; }
.page-right { display: grid; place-items: center; padding: 1.35rem; border-radius: 0.2rem 1.3rem 1rem 0.5rem; transform: rotateY(-5deg); transform-origin: left; }
.page-left p { margin-top: 3.1rem; font: italic clamp(1.2rem, 2vw, 1.65rem)/1.55 var(--display); }
.page-corner { font: 0.8rem var(--utility); letter-spacing: 0.2em; }
.ink-flourish { color: var(--wine); font-size: 2.7rem; }
.character-plate { position: absolute; inset: 1.25rem 1.15rem 3.4rem 1.4rem; overflow: hidden; background: #170b0c; border: 1px solid rgba(105, 48, 35, .62); box-shadow: inset 0 0 0 4px rgba(243, 223, 189, .28), 0 8px 20px rgba(79, 34, 25, .2); }
.character-plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 58%, rgba(30, 8, 12, .26)), linear-gradient(90deg, rgba(243, 223, 189, .1), transparent 14% 86%, rgba(243, 223, 189, .1)); }
.character-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.93) contrast(1.04); }
.character-name { position: absolute; top: 2rem; right: 1.7rem; z-index: 1; color: rgba(255, 243, 215, .86); font: 700 .48rem/1.4 var(--utility); letter-spacing: .11em; text-align: right; text-shadow: 0 1px 4px #14080c; text-transform: uppercase; }
.page-right p { position: absolute; bottom: 1.45rem; z-index: 1; margin: 0; color: var(--wine); font: italic 1.25rem var(--display); }
.book-spine { position: absolute; left: 49.2%; z-index: 3; width: 2.8%; height: 100%; background: linear-gradient(90deg, rgba(50, 17, 18, 0.7), rgba(255, 239, 198, 0.45), rgba(50, 17, 18, 0.65)); filter: blur(3px); }

.orbit { position: absolute; top: 50%; left: 52%; border: 1px solid rgba(231, 191, 107, 0.27); border-radius: 50%; transform: translate(-50%, -50%) rotate(-11deg); }
.orbit::after { content: "✦"; position: absolute; top: -0.65rem; left: 50%; color: var(--gold); text-shadow: 0 0 12px var(--gold); }
.orbit-one { width: 32rem; height: 32rem; animation: orbit 22s linear infinite; }
.orbit-two { width: 38rem; height: 27rem; animation: orbitReverse 28s linear infinite; }
.art-caption { position: absolute; right: 0; bottom: 1.6rem; display: grid; padding-left: 1rem; border-left: 2px solid var(--ember); }
.art-caption span { color: var(--gold); font: 0.63rem var(--utility); letter-spacing: 0.11em; text-transform: uppercase; }
.art-caption b { font: italic 1rem var(--display); }

.ember-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ember-field span { position: absolute; bottom: -1rem; width: 3px; height: 3px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: emberRise 11s linear infinite; opacity: 0; }
.ember-field span:nth-child(1) { left: 8%; animation-delay: 0s; }.ember-field span:nth-child(2) { left: 24%; animation-delay: 7s; }.ember-field span:nth-child(3) { left: 48%; animation-delay: 3s; }.ember-field span:nth-child(4) { left: 67%; animation-delay: 9s; }.ember-field span:nth-child(5) { left: 83%; animation-delay: 5s; }.ember-field span:nth-child(6) { left: 94%; animation-delay: 1s; }

.section-shell { position: relative; width: min(88%, 1180px); margin-inline: auto; }
.oath { display: grid; grid-template-columns: 0.25fr 0.9fr 0.8fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 42rem; padding-block: 8rem; }
.vertical-mark { position: absolute; left: -4rem; color: rgba(231, 191, 107, 0.44); font: 0.58rem var(--utility); letter-spacing: 0.2em; writing-mode: vertical-rl; }
.oath-number { color: rgba(231, 191, 107, 0.11); font: 10rem/1 var(--display); }
.oath h2, .section-heading h2, .lioness-copy h2, .closing-section h2 { margin-bottom: 1.4rem; font-size: clamp(2.8rem, 5.5vw, 5.3rem); letter-spacing: -0.045em; }
.oath-copy > p:last-child { color: var(--ash); }
blockquote { position: relative; margin: 0; padding: 2rem 0 2rem 2rem; border-left: 1px solid var(--gold); color: var(--gold-light); font: italic clamp(1.35rem, 2.2vw, 2rem)/1.45 var(--display); }
blockquote span { position: absolute; top: -1rem; left: 1rem; color: rgba(231, 191, 107, 0.18); font-size: 7rem; }

.lioness-section { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 47rem; overflow: hidden; background: var(--wine); }
.lioness-section::after { content: "MANA ZONE"; position: absolute; right: -1rem; bottom: -3.7rem; color: rgba(255,255,255,.035); font: 9vw var(--utility); letter-spacing: -0.08em; white-space: nowrap; }
.lioness-art { position: relative; display: grid; place-items: center; min-height: 47rem; overflow: hidden; background: radial-gradient(circle, rgba(239, 82, 35, 0.42), transparent 54%); }
.tribute-portrait { position: relative; z-index: 2; width: min(76%, 32rem); padding: .65rem; background: rgba(20, 8, 12, .78); border: 1px solid rgba(244, 221, 162, .62); box-shadow: 1.1rem 1.1rem 0 rgba(40, 8, 14, .48), 0 0 55px rgba(238, 82, 35, .36); transform: rotate(-2deg); }
.tribute-portrait::before, .tribute-portrait::after { content: ""; position: absolute; z-index: 1; width: 3rem; height: 3rem; border-color: var(--gold-light); pointer-events: none; }
.tribute-portrait::before { top: 1.1rem; left: 1.1rem; border-top: 1px solid; border-left: 1px solid; }
.tribute-portrait::after { right: 1.1rem; bottom: 2.9rem; border-right: 1px solid; border-bottom: 1px solid; }
.tribute-portrait img { width: 100%; }
.tribute-portrait span { display: block; padding: .65rem .45rem .15rem; color: var(--gold-light); font: .58rem var(--utility); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.sun-disc { position: absolute; width: 29rem; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 60px rgba(230, 84, 40, .3), 0 0 60px rgba(230, 84, 40, .23); }
.sun-disc::before, .sun-disc::after { content: ""; position: absolute; inset: 2rem; border: 1px dashed rgba(231, 191, 107, .45); border-radius: 50%; }
.sun-disc::after { inset: 5rem; }
.flame-stroke { position: absolute; width: 8rem; height: 24rem; border: 2px solid var(--ember); border-radius: 70% 0 70% 0; opacity: .38; filter: blur(1px); }
.flame-a { left: 9%; bottom: -7rem; transform: rotate(-24deg); }.flame-b { right: 7%; top: -8rem; transform: rotate(30deg); }.flame-c { right: 27%; bottom: -12rem; transform: rotate(8deg); }
.lioness-copy { position: relative; z-index: 2; align-self: center; max-width: 38rem; padding: 6rem clamp(2rem, 7vw, 8rem); padding-left: clamp(2rem, 6vw, 6rem); }
.lioness-copy p:not(.eyebrow) { color: #ead7ca; font-size: 1.08rem; }
.traits { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2rem; }
.traits span { padding: .55rem .8rem; border: 1px solid rgba(244, 221, 162, .42); color: var(--gold-light); font: .67rem var(--utility); letter-spacing: .07em; text-transform: uppercase; }

.letter-section { padding-block: clamp(6rem, 12vw, 10rem); color: var(--ink); }
.letter-section::before { content: ""; position: absolute; inset: 0 50% 0 -20vw; z-index: -1; background: rgba(231, 191, 107, 0.03); }
.section-heading { max-width: 48rem; margin: 0 auto 3.5rem; color: var(--white); text-align: center; }
.section-heading > p:last-child { max-width: 37rem; margin-inline: auto; color: var(--ash); }
.letter-wrap { position: relative; max-width: 54rem; margin: auto; filter: drop-shadow(0 35px 50px rgba(0, 0, 0, 0.42)); }
.letter-ribbon { position: absolute; top: 2rem; left: -3rem; z-index: 3; padding: .75rem 1.6rem; color: var(--parchment-light); background: var(--wine-bright); font: .65rem var(--utility); letter-spacing: .13em; text-transform: uppercase; transform: rotate(-4deg); box-shadow: 8px 8px 0 rgba(62,15,25,.25); }
.letter-paper { position: relative; padding: clamp(3.5rem, 8vw, 6rem); background: linear-gradient(90deg, rgba(95,44,32,.08) 1px, transparent 1px) 3rem 0 / calc(100% - 6rem), var(--parchment); border: 1px solid #a97846; clip-path: polygon(0 1.2%, 5% 0, 46% .7%, 72% 0, 100% 1.3%, 99% 96%, 95% 100%, 63% 98.8%, 35% 100%, 1% 98%); }
.letter-paper::after { content: ""; position: absolute; inset: 1.4rem; pointer-events: none; border: 1px solid rgba(104, 49, 36, .25); }
.letter-glyph { position: absolute; right: 2.7rem; top: 2rem; color: rgba(82, 18, 30, .09); font: 10rem var(--display); }
.letter-content { position: relative; z-index: 1; min-height: 25rem; padding: .5rem; border: 1px dashed transparent; font: 400 1.25rem/1.55 "Kalam", "Segoe Print", cursive; white-space: pre-line; overflow-wrap: anywhere; }
.letter-content:has(p) { white-space: normal; }
.letter-content p { margin: 0 0 .4em; white-space: pre-line; }
.letter-content p:last-child { margin-bottom: 0; }
.letter-content:hover { border-color: rgba(82, 18, 30, .25); }
.letter-content:focus { background: rgba(255, 248, 235, .45); }
.letter-content p:first-child { font-size: 1.65rem; font-style: normal; margin-bottom: .45em; }
.letter-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(80,25,30,.25); }
.button-ink { color: var(--parchment-light); background: var(--ink); border-color: var(--ink); }
.button-ink:hover { background: var(--wine); }
.text-button { min-height: 2.75rem; padding: .45rem; border: 0; color: #6d2630; background: transparent; cursor: pointer; font: 700 .7rem var(--utility); text-decoration: underline; text-underline-offset: .25rem; }
.save-status { flex-basis: 100%; min-height: 1.4rem; margin: 0; color: #5c2730; font: .72rem var(--utility); }

.trials-section { position: relative; padding: clamp(6rem, 12vw, 10rem) max(4vw, calc((100vw - 1240px)/2)); overflow: hidden; background: #200b11; border-block: 1px solid rgba(231, 191, 107, .24); }
.trials-section::before { content: ""; position: absolute; top: -18rem; left: 50%; width: 48rem; aspect-ratio: 1; background: radial-gradient(circle, rgba(169, 38, 32, .22), transparent 67%); transform: translateX(-50%); }
.light-heading { position: relative; }
.games-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.game-card { padding: clamp(1.25rem, 3vw, 2rem); background: rgba(36, 13, 18, .83); border: 1px solid rgba(231, 191, 107, .28); box-shadow: var(--shadow); }
.game-header { display: flex; gap: 1rem; min-height: 5.5rem; }
.game-number { flex: 0 0 auto; color: var(--ember); font: .66rem var(--utility); letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.game-header h3 { margin: 0 0 .5rem; color: var(--gold-light); font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.game-header p { margin: 0; color: var(--ash); font-size: .92rem; }
.game-stats { display: flex; justify-content: space-between; margin: 1.2rem 0 .8rem; padding: .7rem .9rem; color: var(--ash); background: rgba(0,0,0,.22); border-block: 1px solid rgba(231, 191, 107, .15); font: .65rem var(--utility); letter-spacing: .09em; text-transform: uppercase; }
.game-stats b { margin-left: .4rem; color: var(--white); }

.flame-arena { position: relative; min-height: 24rem; overflow: hidden; background: radial-gradient(circle at 50% 105%, rgba(214, 63, 30, .4), transparent 45%), linear-gradient(rgba(20, 8, 12, .1), rgba(20, 8, 12, .82)), repeating-linear-gradient(90deg, transparent 0 49px, rgba(231,191,107,.04) 50px), repeating-linear-gradient(0deg, transparent 0 49px, rgba(231,191,107,.04) 50px); border: 1px solid rgba(231,191,107,.2); }
.flame-arena::after { content: ""; position: absolute; inset: auto 0 0; height: 2rem; background: linear-gradient(transparent, rgba(230,84,40,.12)); pointer-events: none; }
.arena-intro, .game-result { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; padding: 2rem; background: rgba(20,8,12,.82); text-align: center; }
.arena-intro p { max-width: 17rem; color: var(--ash); }
kbd { padding: .13rem .35rem; color: var(--ink); background: var(--parchment); border: 1px solid var(--gold); box-shadow: 0 2px 0 #8f673b; font: .7rem var(--utility); }
.mini-flame, .catch-flame span { display: block; width: 2.5rem; height: 3.4rem; margin-bottom: 1rem; background: linear-gradient(145deg, var(--gold-light) 15%, var(--ember) 57%, var(--wine-bright)); border-radius: 70% 28% 63% 37%; box-shadow: 0 0 22px rgba(230,84,40,.72); transform: rotate(45deg); }
.catch-flame { position: absolute; z-index: 2; display: grid; place-items: center; width: 4.2rem; min-height: 4.2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(-50%, -50%); transition: left 120ms ease, top 120ms ease; }
.catch-flame span { width: 2.1rem; height: 2.9rem; margin: 0; animation: flamePulse .75s ease-in-out infinite alternate; }
.catch-flame:hover span { filter: brightness(1.25); }
.arena-intro[hidden], .catch-flame[hidden], .game-result[hidden], .match-complete[hidden] { display: none; }
.game-result { background: radial-gradient(circle, rgba(124,31,43,.35), rgba(20,8,12,.94)); }
.result-sigil { color: var(--gold); font-size: 3rem; }
.game-result h4 { margin: .5rem 0; color: var(--gold-light); font-size: 2.1rem; }
.game-result p { color: var(--ash); }
.button-small { min-height: 2.8rem; color: var(--gold-light); background: transparent; border-color: var(--gold); }
.button-small:hover { color: var(--night); background: var(--gold); }

.unlock-note { display: flex; align-items: center; gap: 1rem; min-height: 6rem; margin-top: 1rem; padding: 1rem; background: rgba(0,0,0,.18); border: 1px dashed rgba(231,191,107,.28); }
.seal { display: grid; flex: 0 0 3rem; place-items: center; width: 3rem; aspect-ratio: 1; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; font: 1rem var(--display); }
.unlock-note small { color: var(--gold); font: .61rem var(--utility); letter-spacing: .1em; text-transform: uppercase; }
.unlock-note p { margin: .2rem 0 0; color: var(--ash); font: italic 1rem var(--display); }
.unlock-note.is-unlocked { background: rgba(78, 17, 29, .42); border-style: solid; }
.unlock-note.is-unlocked .seal { color: var(--night); background: var(--gold); box-shadow: 0 0 25px rgba(231,191,107,.3); }

.match-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; min-height: 16rem; }
.match-card { position: relative; min-width: 0; min-height: 7.7rem; padding: 0; border: 1px solid rgba(231,191,107,.35); color: var(--gold-light); background: transparent; cursor: pointer; perspective: 600px; }
.match-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 420ms cubic-bezier(.2,.7,.2,1); }
.match-card.is-revealed .match-card-inner, .match-card.is-matched .match-card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; }
.card-back { background: linear-gradient(135deg, rgba(110,26,36,.8), rgba(29,10,15,.95)); }
.card-back::before { content: ""; width: 55%; aspect-ratio: 1; border: 1px solid var(--gold); transform: rotate(45deg); }
.card-back::after { content: "N"; position: absolute; font: 1.1rem var(--display); }
.card-front { padding: .5rem; background: var(--parchment); color: var(--wine); transform: rotateY(180deg); }
.card-symbol { font-size: 2rem; line-height: 1; }
.card-name { color: var(--ink); font: .56rem var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.match-card.is-matched { border-color: var(--gold); box-shadow: inset 0 0 0 2px rgba(231,191,107,.38), 0 0 14px rgba(231,191,107,.14); }
.match-card:disabled { cursor: default; opacity: 1; }
.match-complete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; min-height: 7.3rem; margin-top: .7rem; padding: 1rem; background: rgba(78,17,29,.55); border: 1px solid var(--gold); }
.match-complete p { margin: 0; color: var(--ash); }
.match-complete b { display: block; color: var(--gold-light); font-family: var(--display); font-size: 1.2rem; }

/* The trials use a carved grimoire aesthetic: disciplined around the controls,
   expressive only inside each magical play surface. */
.game-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(92, 20, 31, .24), transparent 42%),
    #1b090e;
  border-color: rgba(231, 191, 107, .42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 243, 215, .025);
}
.game-card::before, .game-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 3rem;
  height: 3rem;
  border-color: rgba(231, 191, 107, .58);
  pointer-events: none;
}
.game-card::before { inset: .55rem auto auto .55rem; border-top: 1px solid; border-left: 1px solid; }
.game-card::after { inset: auto .55rem .55rem auto; border-right: 1px solid; border-bottom: 1px solid; }
.game-header { align-items: flex-start; }
.game-number { padding-top: .2rem; color: #ff784b; }
.game-stats {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  background: #10060a;
  border-top-color: rgba(231, 191, 107, .24);
  border-bottom: 0;
}
.trial-progress { height: 3px; background: rgba(255, 243, 215, .08); }
.trial-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #b8201d, #ff7a2f, #ffe17a); box-shadow: 0 0 12px #e65428; transition: width 180ms ease-out; }

.flame-arena {
  min-height: 28rem;
  background:
    radial-gradient(ellipse at 50% 96%, rgba(236, 72, 25, .3), transparent 41%),
    radial-gradient(circle at 50% 45%, rgba(91, 20, 29, .2), transparent 52%),
    linear-gradient(#17070c, #090306);
  border-color: rgba(231, 191, 107, .32);
  box-shadow: inset 0 -36px 70px rgba(177, 35, 21, .15);
}
.flame-arena::before {
  content: "MANA ZONE · VII";
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(244, 221, 162, .5);
  font: .57rem var(--utility);
  letter-spacing: .18em;
}
.flame-arena::after { height: 20%; background: linear-gradient(transparent, rgba(180, 39, 22, .18)); }
.arena-runes { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(231, 191, 107, .25); stroke-width: 1.1; }
.arena-runes .rune-marks { fill: rgba(230, 84, 40, .1); stroke: rgba(255, 136, 67, .5); }
.arena-embers i { position: absolute; bottom: 11%; z-index: 1; width: 3px; height: 3px; background: #ffb04d; border-radius: 50%; box-shadow: 0 0 8px #ff5b28; animation: arenaEmber 3.8s ease-in infinite; opacity: 0; }
.arena-embers i:nth-child(1) { left: 18%; animation-delay: .3s; }.arena-embers i:nth-child(2) { left: 35%; animation-delay: 2.1s; }.arena-embers i:nth-child(3) { left: 54%; animation-delay: 1.2s; }.arena-embers i:nth-child(4) { left: 72%; animation-delay: 2.8s; }.arena-embers i:nth-child(5) { left: 86%; animation-delay: .8s; }
.arena-intro, .game-result {
  background: radial-gradient(circle at 50% 55%, rgba(72, 14, 20, .66), rgba(10, 3, 6, .91) 68%);
  backdrop-filter: blur(2px);
}
.arena-intro p { margin-bottom: .65rem; }
.arena-intro p b, .match-intro p b { display: block; margin-bottom: .3rem; color: var(--gold-light); font: 1.15rem var(--display); }
.arena-intro .input-hint { margin-bottom: 1.5rem; color: #c8b7a8; font-size: .78rem; }
.flame-svg { display: block; overflow: visible; filter: drop-shadow(0 0 9px rgba(230, 53, 25, .7)); }
.flame-outer { fill: #a81722; }
.flame-mid { fill: #f05222; }
.flame-core { fill: #fff4c4; stroke: #ffc755; stroke-width: 1; }
.flame-emblem { width: 4.6rem; height: 6rem; margin-bottom: 1rem; }
.catch-flame {
  width: 5rem;
  min-height: 5.5rem;
  border-radius: 46% 46% 50% 50%;
  transition: left 160ms cubic-bezier(.2,.8,.2,1), top 160ms cubic-bezier(.2,.8,.2,1);
}
.catch-flame .flame-svg { width: 3.5rem; height: 4.7rem; transform-origin: 50% 90%; animation: flameFlicker 860ms ease-in-out infinite alternate; }
.catch-flame:hover .flame-svg { filter: drop-shadow(0 0 16px #ff632f) brightness(1.12); }
.catch-flame:active .flame-svg { transform: scale(.86); }
.combo-callout { position: absolute; top: 1rem; right: 1rem; z-index: 4; color: #fff2c9; font: 700 .62rem var(--utility); letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateY(.35rem); }
.combo-callout.is-active { animation: comboCallout 580ms ease-out both; }
.flame-hit-burst { position: absolute; z-index: 5; width: 1px; height: 1px; pointer-events: none; }
.flame-hit-burst i { position: absolute; width: 4px; height: 18px; border-radius: 50%; background: linear-gradient(#fff6c9, #ff642e); transform-origin: 2px 0; animation: hitSpark 480ms ease-out both; }
.flame-hit-burst i:nth-child(2) { transform: rotate(60deg); }.flame-hit-burst i:nth-child(3) { transform: rotate(120deg); }.flame-hit-burst i:nth-child(4) { transform: rotate(180deg); }.flame-hit-burst i:nth-child(5) { transform: rotate(240deg); }.flame-hit-burst i:nth-child(6) { transform: rotate(300deg); }
.result-sigil { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; color: #1a070b; background: var(--gold); border: 4px double #4d101d; border-radius: 50%; font: 700 .8rem var(--utility); letter-spacing: .08em; box-shadow: 0 0 38px rgba(231, 191, 107, .35); }

.match-stage { position: relative; min-height: 28.2rem; padding: .8rem; background: linear-gradient(150deg, #100509, #210a11); border: 1px solid rgba(231, 191, 107, .3); }
.match-intro { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; padding: 2rem; background: radial-gradient(circle, rgba(91, 20, 29, .7), #0e0408 70%); text-align: center; }
.match-intro p { max-width: 21rem; margin-bottom: 1.5rem; color: var(--ash); }
.match-intro[hidden], .match-board[hidden] { display: none; }
.sigil-preview { position: relative; width: 9rem; height: 5rem; margin-bottom: 1.3rem; }
.sigil-preview span { position: absolute; top: .25rem; left: 3rem; width: 3rem; height: 4.3rem; background: #611522; border: 1px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.sigil-preview span::after { content: ""; position: absolute; inset: .65rem; border: 1px solid rgba(231,191,107,.75); transform: rotate(45deg); }
.sigil-preview span:first-child { transform: translateX(-2rem) rotate(-15deg); }.sigil-preview span:last-child { transform: translateX(2rem) rotate(15deg); }
.match-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; min-height: 26.5rem; }
.match-card { min-height: 0; aspect-ratio: .72; border-color: rgba(231,191,107,.52); background: #18070d; box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.match-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.match-card-inner { transition-duration: 500ms; }
.card-face { overflow: hidden; }
.card-back {
  background:
    linear-gradient(45deg, transparent 46%, rgba(231,191,107,.12) 47% 53%, transparent 54%) 0 0 / 18px 18px,
    linear-gradient(145deg, #741727, #260911 68%);
  box-shadow: inset 0 0 0 5px #260911, inset 0 0 0 6px rgba(231,191,107,.52);
}
.card-back::before { width: 46%; border: 1px solid var(--gold); box-shadow: inset 0 0 0 5px rgba(46,8,15,.9), 0 0 0 4px rgba(231,191,107,.12); }
.card-back::after { content: "II"; color: var(--gold-light); font: .66rem var(--utility); letter-spacing: .1em; }
.card-front { grid-template-rows: 1fr auto; gap: .4rem; padding: .7rem .5rem .8rem; background: radial-gradient(circle at 50% 35%, #fff3d7, #d7b879); box-shadow: inset 0 0 0 5px #5a1720, inset 0 0 0 7px #d8af5a; }
.card-symbol { align-self: end; width: min(4.4rem, 72%); color: #681523; }
.card-symbol svg { display: block; width: 100%; fill: currentColor; filter: drop-shadow(0 2px 0 rgba(255,255,255,.35)); }
.card-symbol .sigil-detail { fill: none; stroke: #d69b42; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card-name { align-self: start; color: #3b1116; font-size: clamp(.48rem, .7vw, .58rem); font-weight: 700; }
.match-card.is-matched { border-color: #ffe093; box-shadow: 0 0 0 2px rgba(231,191,107,.24), 0 0 24px rgba(240,84,34,.22); animation: matchedSeal 480ms ease-out; }
.match-card[aria-disabled="true"] { cursor: wait; }
.match-complete { border-color: rgba(255, 222, 143, .75); background: linear-gradient(100deg, rgba(91,20,34,.85), rgba(35,9,15,.9)); }

@keyframes flameFlicker { from { transform: rotate(-2deg) scale(.96, 1.02); } to { transform: rotate(2deg) scale(1.04, .98); } }
@keyframes arenaEmber { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: .8; } 100% { transform: translate(1rem, -9rem) scale(.3); opacity: 0; } }
@keyframes hitSpark { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -2.3rem; } }
@keyframes comboCallout { 0% { opacity: 0; transform: translateY(.35rem); } 20%, 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-.35rem); } }
@keyframes matchedSeal { 50% { transform: translateY(-3px); } }

.final-seal { position: relative; display: flex; align-items: center; gap: 2rem; max-width: 48rem; margin: 3rem auto 0; padding: 1.5rem; border-block: 1px solid rgba(231,191,107,.38); }
.final-seal-mark { display: grid; flex: 0 0 5rem; place-items: center; width: 5rem; aspect-ratio: 1; color: rgba(231,191,107,.5); border: 1px solid rgba(231,191,107,.4); border-radius: 50%; font: 2rem var(--display); }
.final-seal h3 { margin: 0 0 .4rem; font-size: 1.7rem; }
.final-seal p:last-child { margin: 0; color: var(--ash); }
.final-seal.is-open .final-seal-mark { color: var(--night); background: var(--gold); box-shadow: 0 0 50px rgba(231,191,107,.28); }

.closing-section { position: relative; display: grid; justify-items: center; min-height: 42rem; place-content: center; padding: 8rem 5vw; text-align: center; overflow: hidden; }
.closing-section::before { content: ""; position: absolute; width: 36rem; aspect-ratio: 1; border: 1px solid rgba(231,191,107,.13); border-radius: 50%; }
.closing-section > * { position: relative; z-index: 1; }
.closing-section h2 { max-width: 11ch; color: var(--gold-light); }
.closing-section > p:not(.eyebrow) { max-width: 38rem; margin-bottom: 2rem; color: var(--ash); }
.closing-flame { width: 3.4rem; height: 4.6rem; margin-bottom: 2rem; }
.closing-flame .flame-svg { width: 100%; height: 100%; animation: flameFlicker 1.2s ease-in-out infinite alternate; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 5vw; color: #bba997; border-top: 1px solid rgba(231,191,107,.16); font: .63rem var(--utility); letter-spacing: .1em; text-transform: uppercase; }
footer p { margin: 0; }

@keyframes orbit { to { transform: translate(-50%,-50%) rotate(349deg); } }
@keyframes orbitReverse { to { transform: translate(-50%,-50%) rotate(-371deg); } }
@keyframes emberRise { 0% { transform: translateY(0) scale(.7); opacity: 0; } 12% { opacity: .8; } 100% { transform: translateY(-105vh) translateX(7rem) scale(1.5); opacity: 0; } }
@keyframes flamePulse { from { transform: rotate(45deg) scale(.9); } to { transform: rotate(45deg) scale(1.08); filter: brightness(1.2); } }

/* Volume II refinement: the interface stays quiet so the book, photographs,
   and future-night illustration carry the emotion. */
.ember-field { display: none; }
.hero { min-height: min(58rem, 100svh); }
.dedication { margin: -0.45rem 0 1.8rem; color: var(--gold-light); font: 1.15rem/1.4 "Kalam", "Segoe Print", cursive; }
.grimoire { animation: bookArrives 900ms cubic-bezier(.2,.75,.2,1) both; }
.page-left { animation: openLeftPage 1100ms 180ms cubic-bezier(.2,.72,.2,1) both; }
.page-right { animation: openRightPage 1100ms 180ms cubic-bezier(.2,.72,.2,1) both; }
@keyframes bookArrives { from { opacity: 0; transform: translate(-50%, -40%) rotate(-1deg) scale(.96); } }
@keyframes openLeftPage { from { transform: rotateY(30deg); } to { transform: rotateY(8deg); } }
@keyframes openRightPage { from { transform: rotateY(-30deg); } to { transform: rotateY(-5deg); } }

.soundtrack-trigger { width: 100%; padding: .65rem .85rem; border-color: rgba(231, 191, 107, .28); }
.soundtrack-trigger > span:last-child { flex: 1; }
.soundtrack-trigger strong { display: block; margin-top: .35rem; color: var(--ash); font: 400 .68rem/1.4 var(--body); }
.record-art { position: relative; display: grid; flex: 0 0 3.2rem; width: 3.2rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: repeating-radial-gradient(circle, #231017 0 3px, #4d101d 4px 6px); box-shadow: 0 0 0 1px rgba(231,191,107,.38), 0 7px 16px rgba(0,0,0,.35); }
.record-art::before { content: ""; width: 1rem; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.record-art i { position: absolute; width: .22rem; aspect-ratio: 1; border-radius: 50%; background: var(--wine); }

.memories-section { padding-block: clamp(5rem, 9vw, 8rem); }
.memories-section .section-heading { margin-bottom: 4.5rem; }
.photo-spread { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; gap: clamp(1rem, 2vw, 2rem); max-width: 68rem; margin: auto; padding: clamp(1rem, 3vw, 2.5rem); background: linear-gradient(135deg, rgba(77,16,29,.28), rgba(255,255,255,.015)); }
.photo-print { position: relative; z-index: 1; margin: 0; padding: .65rem .65rem 1.8rem; color: var(--ink); background: #f7e8cb; box-shadow: 0 18px 38px rgba(0,0,0,.34); transition: transform 220ms ease, box-shadow 220ms ease; }
.photo-print::before { content: ""; position: absolute; top: -.7rem; left: 50%; width: 4.5rem; height: 1.35rem; background: rgba(231,191,107,.55); transform: translateX(-50%) rotate(-2deg); box-shadow: 0 2px 5px rgba(0,0,0,.12); }
.photo-print:hover { z-index: 3; box-shadow: 0 24px 48px rgba(0,0,0,.43); }
.photo-primary { grid-column: span 3; }
.photo-primary:nth-child(2), .photo-primary:nth-child(4) { margin-top: 3rem; }
.photo-button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #1a0b0f; cursor: zoom-in; }
.photo-button img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.86) sepia(.06) contrast(1.03); transition: filter 220ms ease, transform 350ms ease; }
.photo-button:hover img { filter: saturate(1) sepia(0) contrast(1.02); transform: scale(1.018); }
.photo-print figcaption { min-height: 2rem; margin-top: .8rem; font: 1rem/1.1 "Kalam", "Segoe Print", cursive; text-align: center; }
.tilt-left { transform: rotate(-2.2deg); }.tilt-right { transform: rotate(2deg); }.tilt-left-soft { transform: rotate(-.9deg); }.tilt-right-soft { transform: rotate(.8deg); }
.tilt-left:hover, .tilt-right:hover, .tilt-left-soft:hover, .tilt-right-soft:hover { transform: rotate(0) translateY(-4px); }
.photo-encore { grid-column: 3 / 11; display: grid; grid-template-columns: repeat(2, minmax(0, 12rem)); justify-content: center; gap: 2rem; margin-top: -1rem; }
.photo-small { padding-bottom: 1.2rem; }
.photo-small .photo-button img { aspect-ratio: 1; }
.photo-small figcaption { font-size: .9rem; }

.photo-viewer { width: min(92vw, 54rem); max-height: 92vh; padding: 1rem; color: var(--parchment-light); background: #13080c; border: 1px solid rgba(231,191,107,.35); box-shadow: 0 35px 90px rgba(0,0,0,.65); }
.photo-viewer::backdrop { background: rgba(6,2,4,.88); backdrop-filter: blur(5px); }
.photo-viewer img { width: 100%; max-height: 76vh; object-fit: contain; }
.photo-viewer p { margin: .8rem 0 .1rem; font: 1.1rem "Kalam", "Segoe Print", cursive; text-align: center; }
.viewer-close { display: block; min-height: 2.75rem; margin: 0 0 .7rem auto; padding: .45rem .7rem; color: var(--gold-light); background: transparent; border: 1px solid rgba(231,191,107,.3); cursor: pointer; font: .65rem var(--utility); letter-spacing: .08em; text-transform: uppercase; }

.letter-wrap { max-width: 61rem; }
.letter-paper { padding: clamp(3.5rem, 7vw, 5.5rem); }
.letter-reader[hidden], .full-letter[hidden] { display: none; }
.letter-page-heading { position: relative; z-index: 1; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(80,25,30,.18); }
.letter-page-kicker { margin-bottom: .35rem; color: #7b2733; font: .62rem var(--utility); letter-spacing: .13em; text-transform: uppercase; }
.letter-page-heading h3 { margin: 0; color: var(--wine); font-size: clamp(1.8rem, 4vw, 3rem); }
.letter-page-content { position: relative; z-index: 1; min-height: 27rem; padding-block: 1.6rem .7rem; font: 1.16rem/1.58 "Kalam", "Segoe Print", cursive; }
.letter-page-content p { margin-bottom: .72em; white-space: pre-line; }
.letter-page-content.is-turning { animation: pageTurn 320ms ease-out both; }
@keyframes pageTurn { from { opacity: .25; transform: translateX(8px); } }
.letter-pagination { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(80,25,30,.2); }
.letter-pagination .button { min-width: 7.8rem; }
.letter-pagination .button:disabled { cursor: not-allowed; opacity: .38; transform: none; }
.page-dots { display: flex; justify-content: center; gap: .45rem; }
.page-dots i { width: .4rem; aspect-ratio: 1; border-radius: 50%; background: rgba(77,16,29,.25); }
.page-dots i.is-current { background: var(--wine); box-shadow: 0 0 0 3px rgba(77,16,29,.11); }
.read-full-letter { position: relative; z-index: 2; display: block; margin: 1rem auto 0; }
.full-letter .letter-content { min-height: 35rem; }
.full-letter .letter-actions { margin-top: 1.5rem; }

.future-section { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(20rem, .82fr); align-items: center; background: #160a1b; }
.future-scene { min-width: 0; }
.future-scene img { width: 100%; min-height: 34rem; object-fit: cover; }
.future-copy { max-width: 40rem; padding: clamp(3rem, 7vw, 7rem); }
.future-copy h2 { margin-bottom: 1.3rem; font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -.045em; }
.future-copy > p:not(.eyebrow) { color: var(--ash); }
.cat-names { display: flex; gap: .6rem; margin-top: 1.8rem; }
.cat-names span { padding: .45rem .75rem; color: var(--gold-light); border-bottom: 1px solid rgba(231,191,107,.48); font: .68rem var(--utility); letter-spacing: .12em; text-transform: uppercase; }

.oath { min-height: 36rem; padding-block: 6rem; }
.lioness-section, .lioness-art { min-height: 41rem; }
.letter-section, .trials-section { padding-block: clamp(5rem, 9vw, 8rem); }
.game-card { border-color: rgba(231,191,107,.24); box-shadow: 0 22px 55px rgba(0,0,0,.38); }
.game-card::before, .game-card::after { opacity: .5; }
.closing-section { min-height: 34rem; padding-block: 6rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 10rem; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero h1 { margin-inline: auto; }
  .hero-intro { margin-inline: auto; }
  .soundtrack-seal { margin-inline: auto; text-align: left; }
  .hero-art { min-height: 31rem; }
  .art-caption { right: 5%; }
  .oath { grid-template-columns: .25fr 1fr; }
  .oath blockquote { grid-column: 2; }
  .games-grid { grid-template-columns: 1fr; max-width: 45rem; margin-inline: auto; }
  .future-section { grid-template-columns: 1fr; }
  .future-scene img { min-height: 0; max-height: 38rem; }
  .future-copy { max-width: 48rem; margin: auto; text-align: center; }
  .cat-names { justify-content: center; }
}

@media (max-width: 720px) {
  .site-header { width: 90%; }
  .sigil-copy { display: none; }
  nav { gap: 1rem; }
  nav a { font-size: .62rem; }
  .hero { width: 90%; min-height: auto; padding-bottom: 3rem; }
  .soundtrack-trigger { width: 100%; }
  .music-player { padding: .65rem; }
  .hero-art { min-height: 26rem; overflow: visible; }
  .grimoire { width: 100%; height: 18rem; transform: translate(-50%, -43%) rotate(-2deg); }
  .page-left { padding: 3.6rem 1rem 1rem 1.5rem; }
  .page-left p { margin-top: 2.3rem; }
  .page-right { padding: 1rem; }
  .character-plate { inset: .85rem .75rem 2.8rem .9rem; }
  .character-name { top: 1.3rem; right: 1.15rem; font-size: .39rem; }
  .page-right p { bottom: 1.25rem; font-size: 1rem; }
  .book-page::before, .book-page::after { width: 2.3rem; height: 2.3rem; }
  .orbit-one { width: 22rem; height: 22rem; }
  .orbit-two { width: 26rem; height: 19rem; }
  .art-caption { bottom: -.5rem; }
  .oath { grid-template-columns: 1fr; gap: 1.3rem; min-height: 0; padding-block: 6rem; }
  .oath-number { font-size: 6rem; }
  .oath blockquote { grid-column: auto; }
  .vertical-mark { display: none; }
  .lioness-section { grid-template-columns: 1fr; }
  .lioness-art { min-height: 32rem; }
  .tribute-portrait { width: min(72%, 23rem); }
  .sun-disc { width: min(82vw, 25rem); }
  .lioness-copy { padding: 4rem 7vw 6rem; }
  .letter-ribbon { left: -.5rem; top: 1.5rem; }
  .letter-paper { padding: 5.2rem 1.5rem 3.5rem; clip-path: none; }
  .letter-paper::after { inset: .75rem; }
  .letter-content { font-size: 1.125rem; }
  .letter-actions { align-items: stretch; flex-direction: column; }
  .photo-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem .85rem; padding: 1.2rem .65rem 2rem; }
  .photo-primary { grid-column: span 1; }
  .photo-primary:nth-child(2), .photo-primary:nth-child(4) { margin-top: 2rem; }
  .photo-encore { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 8.5rem)); gap: 1rem; margin-top: 0; }
  .photo-print { padding: .42rem .42rem 1.25rem; }
  .photo-print figcaption { margin-top: .6rem; font-size: .86rem; }
  .letter-page-content { min-height: 31rem; font-size: 1.05rem; }
  .letter-pagination { gap: .55rem; }
  .letter-pagination .button { min-width: 0; padding-inline: .75rem; font-size: .62rem; }
  .future-copy { padding: 4rem 7vw 5rem; }
  .match-board { grid-template-columns: repeat(2, 1fr); }
  .match-stage { min-height: 35rem; }
  .match-board { min-height: 33.4rem; }
  .match-card { min-height: 0; aspect-ratio: .82; }
  .flame-arena { min-height: 25rem; }
  .final-seal { align-items: flex-start; gap: 1rem; }
  .final-seal-mark { flex-basis: 3.5rem; width: 3.5rem; }
  footer { align-items: center; flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
  h1 { font-size: 3.25rem; }
  .hero-art { min-height: 23rem; }
  .grimoire { height: 17rem; }
  .page-left p { font-size: 1rem; }
  .character-plate { inset: .75rem .6rem 2.5rem .75rem; }
  .character-name { top: 1.1rem; right: .95rem; }
  .art-caption { display: none; }
  .hero { padding-top: 8rem; }
  .hero-art { min-height: 22rem; }
  .orbit-one { width: 19rem; height: 19rem; }
  .orbit-two { width: 21rem; height: 16rem; }
  .photo-print figcaption { font-size: .78rem; }
  .letter-page-content { min-height: 34rem; }
  .page-dots { gap: .28rem; }
  .game-card { padding: 1rem; }
  .game-header h3 { font-size: 1.45rem; }
  .flame-arena { min-height: 21rem; }
  .match-stage { min-height: 32rem; }
  .match-board { min-height: 30.4rem; gap: .55rem; }
  .card-front { padding: .55rem .4rem .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
