@font-face { font-family: 'Kreon'; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/kreon-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kreon'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/kreon-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kreon'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/kreon-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kreon'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/kreon-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cinzel-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/cinzel-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 900; font-style: normal; font-display: swap; src: url(/fonts/cinzel-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel Decorative'; font-weight: 900; font-style: normal; font-display: swap; src: url(/fonts/cinzel-decorative-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); }

:root {
  --bg: #0E0B0F;
  --bg-alt: #120E14;
  --panel: #141016;
  --line: #2A2219;
  --line-soft: #2E2620;
  --ink: #EDE4D3;
  --ink-strong: #F1E6CC;
  --ink-soft: #C9BFAD;
  --ink-muted: #B9AE9A;
  --ink-faint: #A99E8A;
  --gold: #D4A63A;
  --gold-light: #E8C46A;
  --gold-ink: #1E1505;
  --numeral: #8A6E2C;
  --display: 'Cinzel', Georgia, serif;
  --display-deco: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --card: 'Kreon', Georgia, serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); }
a:hover { color: #F7DD94; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

/* Pointer cursor on everything you can click or that reacts when hovered */
a, button, .btn, label[for], select, summary,
.chapter, .hero-card, .boss, .foe, .ally, .feature, .gcard { cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 6px; font-family: var(--display); font-weight: 700;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { position: relative; border-bottom: 1px solid var(--line); padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; gap: 48px; }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.eyebrow { margin: 0; font-family: var(--display); font-size: 0.85rem; letter-spacing: 4px; color: var(--ink-muted); text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--gold); }
h3 { color: var(--ink-strong); }
p { margin: 0; }
.muted { color: var(--ink-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(14, 11, 15, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-family: var(--display); font-size: 0.85rem; letter-spacing: 1.5px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; padding: 12px 0; transition: color 120ms ease; }
.nav-links a:hover { color: var(--gold-light); }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 6px;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 1.5px; text-decoration: none;
  transition: transform 80ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { color: var(--gold-ink); background: #E3B64A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 166, 58, 0.25); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 6px;
  border: 1px solid #8A6E2C; background: rgba(14, 11, 15, 0.55); color: var(--gold-light);
  font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 1.5px;
}

/* Hero with the key art */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 72% 40%; animation: slowZoom 24s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 11, 15, 0.96) 0%, rgba(14, 11, 15, 0.82) 34%, rgba(14, 11, 15, 0.25) 62%, rgba(14, 11, 15, 0) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 11, 15, 0) 22%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 80px; }
.hero-copy { max-width: 600px; display: flex; flex-direction: column; gap: 22px; }
.hero-logo { width: 100%; max-width: 520px; margin: -12px 0 -8px -12px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.hero h1 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; color: var(--ink-strong); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.hero .lede { font-size: 1.3rem; color: var(--ink); max-width: 560px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.platforms { font-size: 1rem; color: var(--ink-muted); }
@keyframes slowZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Story */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.chapter { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); transition: border-color 160ms ease, transform 160ms ease; }
.chapter:hover { border-color: #4A3D2C; transform: translateY(-3px); }
.numeral { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--numeral); }
.chapter h3 { font-size: 1.25rem; }

/* Heroes */
.hero-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel);
  border-top: 4px solid var(--c); transition: transform 160ms ease, box-shadow 160ms ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--c); }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: #1A1520; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 300ms ease; }
.hero-card:hover .portrait img { transform: scale(1.04); }
.hero-card .text { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.role { font-family: var(--display); font-size: 0.75rem; letter-spacing: 2.5px; color: var(--ink-muted); }
.hero-card h3 { font-size: 1.35rem; }
.title { font-style: italic; color: var(--gold-light); }
.hero-card .line { margin-top: 6px; font-size: 1.05rem; color: var(--ink-soft); }
.wyatt { --c: #8A2A26; }
.demetri { --c: #7A5836; }
.lilliana { --c: #2F8A4C; }
.wendell { --c: #6E3A94; }

/* Act I: Terellen Forest */
.act { overflow: hidden; }
.act-bg { position: absolute; inset: 0; }
.act-bg img { width: 100%; height: 100%; object-fit: cover; }
.act::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14, 11, 15, 0.92) 0%, rgba(14, 11, 15, 0.78) 40%, rgba(14, 11, 15, 0.92) 100%);
}
.act .wrap { position: relative; z-index: 2; }
.boss {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px;
  border: 1px solid #3B4A2E; border-radius: 16px; overflow: hidden; background: rgba(12, 20, 14, 0.7);
}
.boss-stage { position: relative; min-height: 420px; height: 100%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.boss-stage > img.arena { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.boss-stage > img.figure { position: relative; height: 400px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); margin-bottom: 6px; transition: transform 300ms ease; }
.boss:hover .boss-stage > img.figure { transform: scale(1.03); }
.boss-copy { display: flex; flex-direction: column; gap: 14px; padding: 36px 36px 36px 0; }
.boss-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #C7E6A4; }
.tag { font-family: var(--display); font-size: 0.75rem; letter-spacing: 2.5px; color: var(--ink-muted); }
.quote { font-style: italic; color: var(--gold-light); font-size: 1.25rem; }
.foes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.foe {
  display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden;
  background: rgba(20, 16, 22, 0.85); transition: transform 160ms ease, border-color 160ms ease;
}
.foe:hover { transform: translateY(-4px); border-color: #5A4A30; }
.foe-stage {
  position: relative; height: 240px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 50% 85%, rgba(120, 150, 80, 0.18), rgba(0, 0, 0, 0) 70%);
}
.foe-stage::after {
  content: ""; position: absolute; bottom: 14px; left: 50%; width: 60%; height: 14px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 70%);
}
.foe-stage img { position: relative; z-index: 1; width: auto; max-width: 90%; object-fit: contain; margin-bottom: 18px; transition: transform 220ms cubic-bezier(.2, .9, .3, 1.3); }
.foe:hover .foe-stage img { transform: translateY(-6px) scale(1.04); }
.foe .text { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.foe h3 { font-size: 1.05rem; }
.foe p { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.45; }
/* Heights follow the combat stage scale: enemies are bigger than heroes */
.h-villager { height: 147px; }
.h-wolf { height: 134px; }
.h-fae { height: 98px; }
.h-knight { height: 183px; }
.h-galeth { height: 214px; }

/* Allies on the road */
.allies { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ally { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); transition: transform 160ms ease, box-shadow 160ms ease; }
.ally:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); }
.ally-stage { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ally-stage img.place { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.ally:hover .ally-stage img.place { transform: scale(1.05); }
.ally-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, rgba(20, 16, 22, 0) 45%); }
.ally-stage img.figure { position: relative; z-index: 1; height: 260px; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)); }
.ally .text { padding: 4px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.ally h3 { font-size: 1.3rem; }

/* Features */
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 28px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature .icon { width: 64px; height: 64px; border-radius: 12px; border: 1px solid #6B5420; background: rgba(212, 166, 58, 0.06); display: flex; align-items: center; justify-content: center; transition: transform 160ms ease; }
.feature:hover .icon { transform: scale(1.08) rotate(-3deg); }
.feature .icon img { width: 48px; height: 48px; }
.feature .icon img.lift { filter: brightness(2.1) contrast(1.1) drop-shadow(0 0 6px rgba(232, 196, 106, 0.35)); }
.feature h3 { font-size: 1.2rem; }

/* Cards, built on the real frames (positions measured from the frame art) */
#cards { overflow-x: clip; }
.cards-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.cards-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fan { display: flex; justify-content: center; align-items: flex-end; padding: 8px 0 40px; }
.gcard {
  --w: clamp(190px, 19vw, 250px); position: relative; width: var(--w); aspect-ratio: 2 / 3; container-type: inline-size; flex: none;
  transition: transform 200ms cubic-bezier(.2, .9, .3, 1.25), filter 200ms ease;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55));
}
.gcard + .gcard { margin-left: -18px; }
.gcard .art { position: absolute; left: 23.2%; top: 27.3%; width: 53.6%; height: 34.2%; overflow: hidden; z-index: 0; background: #120E10; }
.gcard .art img { width: 100%; height: 100%; object-fit: cover; }
.gcard .art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 5cqw rgba(0, 0, 0, 0.55); }
.gcard .frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* Card text copies Slay the Spire 2: Kreon throughout, outlined title and cost,
   semibold type label, cream rules text with gold keywords on a dark panel */
.gcard .cost {
  position: absolute; left: 20%; top: 21%; transform: translate(-50%, -54%); z-index: 3;
  font-family: var(--card); font-weight: 700; font-size: 11.5cqw; line-height: 1; color: #FFF6E2;
  -webkit-text-stroke: 1.6cqw #1A0E06; paint-order: stroke fill; text-shadow: 0 0.8cqw 0.8cqw rgba(0, 0, 0, 0.5);
}
/* Card names, inspired by Hearthstone's lettering: white letters, thick black outline,
   soft drop shadow, shrunk to fit and bent along a slight arc that follows the ribbon */
.gcard .name-arc {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible;
  filter: drop-shadow(0 0.6cqw 0.5cqw rgba(0, 0, 0, 0.55));
}
.gcard .name-arc text {
  font-family: var(--card); font-weight: 700; font-size: 64px; fill: #FFFFFF;
  stroke: #0E0804; stroke-width: 15px; stroke-linejoin: round; paint-order: stroke fill;
}
.gcard .type {
  position: absolute; left: 50%; top: 64.6%; transform: translate(-50%, -50%); z-index: 3;
  padding: 0.5cqw 4cqw 0.6cqw; border-radius: 1.2cqw; white-space: nowrap; line-height: 1.15;
  background: linear-gradient(180deg, #EBDDBA, #CDB487); box-shadow: 0 0 0 0.45cqw #5C4024, 0 0.6cqw 1cqw rgba(0, 0, 0, 0.45);
  font-family: var(--card); font-weight: 600; font-size: 4cqw; color: #000000C0;
}
.gcard .panel {
  position: absolute; left: 25.6%; top: 66.9%; width: 48.2%; height: 11.4%; z-index: 2; border-radius: 1.4cqw;
  background: radial-gradient(ellipse at 50% 40%, #2B1F17 0%, #17100B 100%);
  box-shadow: inset 0 0 2.4cqw rgba(0, 0, 0, 0.7), 0 0 0 0.35cqw rgba(92, 64, 36, 0.8);
}
.gcard .rules {
  position: absolute; left: 26.5%; width: 46.4%; top: 67.4%; height: 10.4%; z-index: 3;
  display: flex; align-items: center; justify-content: center; text-align: center; text-wrap: balance;
  font-family: var(--card); font-weight: 400; font-size: 5cqw; line-height: 1.12; color: #FFF6E2;
  text-shadow: 0 0.3cqw 0.4cqw rgba(0, 0, 0, 0.8);
}
.gcard .rules b { font-weight: 400; color: #EFC851; }
.gcard .rules .block { color: #87CEEB; }
.gcard .owner {
  position: absolute; left: 50%; top: 85.4%; transform: translate(-50%, -50%); z-index: 3;
  padding: 0.7cqw 3.6cqw 0.8cqw; border-radius: 99px; background: #1C140E; box-shadow: 0 0 0 0.5cqw rgba(201, 160, 90, 0.45);
  color: #FFF6E2; font-family: var(--card); font-weight: 600; font-size: 3.6cqw; letter-spacing: 0.25cqw; line-height: 1.1;
}
.gcard.c1 { transform: rotate(-10deg) translateY(30px); z-index: 1; }
.gcard.c2 { transform: rotate(-3.5deg) translateY(6px); z-index: 2; }
.gcard.c3 { transform: rotate(3.5deg) translateY(6px); z-index: 3; }
.gcard.c4 { transform: rotate(10deg) translateY(30px); z-index: 4; }
.gcard:hover { z-index: 5; transform: translateY(-26px) scale(1.1) rotate(0deg); }
.gcard.rare { filter: drop-shadow(0 0 12px rgba(59, 111, 209, 0.6)) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55)); }
.gcard.exotic { animation: exoticPulse 2.4s ease-in-out infinite; }
.gcard.exotic::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 236, 190, 0.32) 50%, rgba(255, 255, 255, 0) 60%) no-repeat;
  background-size: 250% 100%; animation: foil 4.5s ease-in-out infinite;
  -webkit-mask: url(/img/cards/frame_exotic.webp) center / 100% 100% no-repeat; mask: url(/img/cards/frame_exotic.webp) center / 100% 100% no-repeat;
}
@keyframes exoticPulse { 0%, 100% { filter: drop-shadow(0 0 10px rgba(224, 122, 31, 0.45)) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55)); } 50% { filter: drop-shadow(0 0 22px rgba(224, 122, 31, 0.85)) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55)); } }
@keyframes foil { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }

/* Rarity ladder under the card fan */
.rarity { display: flex; flex-direction: column; gap: 24px; }
.rarity-title { font-size: 1.4rem; color: var(--ink-strong); }
.rarity-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tier {
  --t: #C9BFAD; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 22px 14px 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel);
  border-top: 3px solid var(--t); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 18px -6px var(--t); }
.tier img { width: 92px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); transition: transform 200ms cubic-bezier(.2, .9, .3, 1.3); }
.tier:hover img { transform: translateY(-4px) rotate(-3deg); }
.tier h4 { margin: 0; font-family: var(--display); font-size: 1.1rem; color: var(--t); }
.tier .swatch { font-family: var(--display); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); }
.tier p:last-child { font-size: 0.98rem; line-height: 1.45; color: var(--ink-soft); }
.tier-starter { --t: #E3706A; }
.tier-common { --t: #C9C2B8; }
.tier-uncommon { --t: #9BD26A; }
.tier-rare { --t: #7FA7DE; }
.tier-rare img { filter: drop-shadow(0 0 10px rgba(59, 111, 209, 0.6)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.tier-exotic { --t: #F09A4C; }
.tier-exotic img { filter: drop-shadow(0 0 12px rgba(224, 122, 31, 0.65)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.tier-lumen { --t: #F2D468; }
.tier-lumen img { filter: drop-shadow(0 0 16px rgba(240, 200, 96, 0.8)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
@media (max-width: 1100px) { .rarity-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rarity-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Closing */
.closing { position: relative; overflow: hidden; }
.closing-bg { position: absolute; inset: 0; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(14, 11, 15, 0.72), rgba(14, 11, 15, 0.94)); }
.closing .wrap { position: relative; z-index: 2; max-width: 820px; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.closing h2 { color: var(--ink-strong); font-size: clamp(2rem, 4.5vw, 3.2rem); }
.closing p { font-size: 1.25rem; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-top: 8px; font-family: var(--display); font-size: 0.85rem; letter-spacing: 1.5px; }
.socials a { padding: 12px 0; text-decoration: none; transition: color 120ms ease; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0B090C; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; color: var(--ink-faint); }

@media (max-width: 860px) {
  .boss { grid-template-columns: 1fr; }
  .boss-copy { padding: 0 24px 28px; }
  .boss-stage { min-height: 340px; }
  .boss-stage > img.figure { height: 320px; }
}
@media (max-width: 700px) {
  .section { padding: 76px 0; }
  .hero { min-height: auto; align-items: flex-end; }
  .hero-bg img { object-position: 42% 20%; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 11, 15, 0.9) 45%, rgba(14, 11, 15, 0.35) 75%, rgba(14, 11, 15, 0.2) 100%); }
  .hero .wrap { padding-top: 220px; padding-bottom: 56px; }
  .hero-logo { margin: -6px 0 -4px -6px; }
  .nav-links { gap: 0 18px; }
  .fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 8px; justify-items: center; }
  .gcard { --w: min(42vw, 180px); width: var(--w); }
  .gcard + .gcard { margin-left: 0; }
  .gcard.c1, .gcard.c2, .gcard.c3, .gcard.c4 { transform: none; }
  .gcard:hover { transform: translateY(-6px); }
}

/* Phones: tighter spacing, two-up grids instead of tall single columns */
@media (max-width: 700px) {
  body { font-size: 1.08rem; }
  h2 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .stack { gap: 32px; }
  .section { padding: 60px 0; }
  .chapter { padding: 22px; }
  #heroes .grid-4, .foes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portrait { aspect-ratio: 3 / 4; }
  .hero-card .text { padding: 12px 12px 16px; gap: 2px; }
  .hero-card h3 { font-size: 1.1rem; }
  .role { font-size: 0.62rem; letter-spacing: 1.5px; }
  .hero-card .line { font-size: 0.92rem; line-height: 1.4; margin-top: 4px; }
  .foe-stage { height: 170px; }
  .foe-stage img { margin-bottom: 14px; }
  .h-villager { height: 106px; } .h-wolf { height: 96px; } .h-fae { height: 72px; } .h-knight { height: 132px; } .h-galeth { height: 152px; }
  .foe .text { padding: 10px 12px 14px; }
  .foes .foe:last-child { grid-column: span 2; }
  .foes .foe:last-child .foe-stage { height: 200px; }
  .foes .foe:last-child .h-galeth { height: 180px; }
  .foe h3 { font-size: 0.95rem; }
  .foe p { font-size: 0.88rem; }
  .tag { font-size: 0.62rem; letter-spacing: 1.5px; }
  .boss-copy { padding: 0 20px 24px; }
  .boss-stage { min-height: 300px; }
  .boss-stage > img.figure { height: 280px; }
  .ally-stage { height: 230px; }
  .ally-stage img.figure { height: 200px; }
  .grid-features { gap: 22px; }
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
  .feature .icon { grid-row: span 2; width: 52px; height: 52px; }
  .feature .icon img { width: 40px; height: 40px; }
  .feature h3 { font-size: 1.05rem; align-self: center; }
  .feature p { font-size: 0.98rem; }
  .rarity-title { font-size: 1.15rem; }
  .tier { padding: 16px 10px 14px; }
  .tier img { width: 70px; }
  .tier p:last-child { font-size: 0.88rem; }
  .closing .wrap { padding-top: 80px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
