/* =========================================================================
   DIABLO 3D · Return to Tristram
   ========================================================================= */
@font-face { font-family: "Exocet"; src: url("../fonts/exocet-heavy.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Exocet"; src: url("../fonts/exocet-medium.woff2") format("woff2"); font-weight: 100 600; font-display: swap; }

:root {
  --void: #030202;
  --bg: #070404;
  --bg2: #0e0807;
  --stone: #2c2824;
  --ink: #e9dcc4;
  --ink2: #b9a98c;
  --mute: #7d6d58;
  --gold: #c8a463;
  --gold2: #f4dc9e;
  --unique: #c7b377;   /* D1 unique item text */
  --magic: #8080ff;    /* D1 magic item text */
  --blood: #8e0c0c;
  --blood2: #d0201c;
  --ember: #ff6a1a;
  --mana: #2e54ff;
  --line: rgba(200, 164, 99, .18);
  --line2: rgba(200, 164, 99, .42);
  --metal: linear-gradient(180deg, #fff4cf 0%, #f1d38d 26%, #b3833a 50%, #f3d892 60%, #7a4f19 100%);
  --metal-red: linear-gradient(180deg, #ffd9b0 0%, #ff8a3d 30%, #c3200f 55%, #ff6a1a 66%, #5c0805 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --rock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='5' seed='7'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='3.2'%3E%3CfeDistantLight azimuth='225' elevation='42'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  --f-x: "Exocet", "Trajan Pro", Georgia, serif;
  --f-b: "EB Garamond", Garamond, Georgia, serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .75, .15, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(17px, 1.05vw + 11px, 21px)/1.6 var(--f-b);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.glyph { display: inline-block; width: 1.5em; height: .75em; vertical-align: -.02em; overflow: visible; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blood); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; padding: 10px 16px; background: var(--blood); color: #fff; font-family: var(--f-x); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ------------------------------------------------------------- type */
.x { font-family: var(--f-x); font-weight: 500; letter-spacing: .08em; }
.kick {
  display: inline-flex; align-items: center; gap: .9em; margin: 0 0 1.2rem;
  font: 500 clamp(12px, .5vw + 9px, 15px)/1 var(--f-x); letter-spacing: .32em; text-transform: uppercase; color: var(--blood2);
  text-shadow: 0 0 18px rgba(208, 32, 28, .55);
}
.kick::before, .kick::after { content: ""; width: 2.6em; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.kick::after { transform: scaleX(-1); }
.kick.l::before { display: none; }
.metal {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #1a0d04) drop-shadow(0 0 1px #000);
}
.metal.hot { filter: drop-shadow(0 2px 0 #1a0d04) drop-shadow(0 0 22px rgba(255, 106, 26, .35)); }
.metal .ch { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 {
  margin: 0; font: 900 clamp(40px, 6.4vw, 104px)/.92 var(--f-x); letter-spacing: .015em; text-wrap: balance;
}
.h3 { margin: 0; font: 900 clamp(26px, 2.6vw, 40px)/1 var(--f-x); letter-spacing: .02em; }
.lede { max-width: 38em; color: var(--ink2); font-size: 1.08em; text-wrap: pretty; }
.lede em, .lede i { color: var(--gold2); }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.sec { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(48px, 7vw, 96px); display: grid; justify-items: center; }
.sec-head .lede { margin: 1.4rem auto 0; }

/* letters that ignite on reveal */
.split .ch { display: inline-block; opacity: 0; transform: translateY(.35em) scale(1.08); filter: blur(8px); }
.split.on .ch { animation: ignite 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 38ms); }
@keyframes ignite {
  0% { opacity: 0; transform: translateY(.35em) scale(1.08); filter: blur(8px) brightness(3) sepia(1) saturate(6) hue-rotate(-20deg); }
  45% { opacity: 1; filter: blur(0) brightness(2.2) sepia(1) saturate(5) hue-rotate(-25deg); }
  100% { opacity: 1; transform: none; filter: none; }
}
[data-r] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); filter: blur(6px); }
[data-r].on { opacity: 1; transform: none; filter: none; }
[data-r="2"] { transition-delay: .12s; } [data-r="3"] { transition-delay: .24s; } [data-r="4"] { transition-delay: .36s; }

/* ------------------------------------------------------------- buttons */
.btn {
  --h: 58px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: var(--h); padding: 0 1.8em; text-decoration: none; white-space: nowrap;
  font: 700 clamp(14px, .4vw + 11px, 17px)/1 var(--f-x); letter-spacing: .16em; text-transform: uppercase;
  color: #f2d792; isolation: isolate; transition: transform .35s var(--ease), color .3s;
  background: var(--noise), linear-gradient(180deg, #5f5953 0%, #3c3732 48%, #26221f 100%);
  border: 1px solid #0b0908; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(0, 0, 0, .35),
              0 0 0 1px #6b6258, 0 0 0 3px #120e0c, 0 10px 30px rgba(0, 0, 0, .7);
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(0, 0, 0, .8);
}
.btn::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  box-shadow: 0 0 24px 2px rgba(255, 106, 26, .55), 0 0 70px 6px rgba(208, 32, 28, .35);
}
.btn:hover { color: #fff1c9; }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn.blood {
  color: #ffe2b0;
  background: var(--noise), linear-gradient(180deg, #a31b12 0%, #6c0b07 50%, #3a0503 100%);
  box-shadow: inset 0 1px 0 rgba(255, 200, 150, .35), inset 0 -3px 0 rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(0, 0, 0, .3),
              0 0 0 1px #b8873e, 0 0 0 3px #1a0805, 0 0 34px rgba(208, 32, 28, .45), 0 12px 34px rgba(0, 0, 0, .7);
}
.btn.ghost { background: rgba(10, 6, 5, .35); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line2), inset 0 0 0 1px rgba(0,0,0,.5); color: var(--ink); }
.btn.big { --h: 76px; padding: 0 2.6em; font-size: clamp(16px, .6vw + 12px, 21px); }
.btn.sm { --h: 40px; padding: 0 1.1em; font-size: 12px; letter-spacing: .14em; }

/* ------------------------------------------------------------- global overlays */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .07; background-image: var(--noise);
  animation: grain 1s steps(6) infinite; mix-blend-mode: overlay;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); } }
.torch {
  position: fixed; inset: 0; z-index: 61; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle 460px at var(--cx, 50%) var(--cy, 50%), rgba(255, 170, 90, .32), transparent 70%);
}
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.has-cur .cur { display: block; }
.has-cur, .has-cur a, .has-cur button, .has-cur [role="slider"], .has-cur .cmp { cursor: none; }
.cur-dot { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffd08a; box-shadow: 0 0 10px 2px rgba(255, 140, 50, .9); }
.cur-ring {
  position: absolute; width: 38px; height: 38px; margin: -19px; border-radius: 50%; border: 1px solid rgba(244, 220, 158, .55);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-color .3s, background .3s;
}
.cur-ring::before, .cur-ring::after { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 7px; background: rgba(244, 220, 158, .8); }
.cur-ring::after { top: auto; bottom: -5px; }
.cur.big .cur-ring { width: 74px; height: 74px; margin: -37px; border-color: rgba(255, 120, 40, .9); background: rgba(255, 90, 20, .08); }
.cur.down .cur-ring { width: 26px; height: 26px; margin: -13px; }
.cur-lbl { position: absolute; left: 22px; top: 18px; font: 500 10px/1 var(--f-x); letter-spacing: .2em; color: var(--gold2); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.cur.lbl .cur-lbl { opacity: 1; }

/* ------------------------------------------------------------- dock */
.dock {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 72px; padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: background .5s, transform .5s var(--ease), box-shadow .5s;
}
.dock.solid { background: linear-gradient(180deg, rgba(5, 3, 3, .92), rgba(5, 3, 3, .7)); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.dock.hide { transform: translateY(-100%); }
.dock-logo { display: block; width: 92px; flex: none; transition: transform .4s var(--ease), filter .4s; filter: drop-shadow(0 0 12px rgba(255, 90, 20, .35)); }
.dock-logo:hover { transform: scale(1.06) rotate(-2deg); filter: drop-shadow(0 0 20px rgba(255, 90, 20, .7)); }
.dock-nav { display: flex; gap: clamp(14px, 1.6vw, 30px); }
.dock-nav a {
  position: relative; text-decoration: none; font: 500 12px/1 var(--f-x); letter-spacing: .22em; text-transform: uppercase; color: var(--ink2);
  padding: 8px 0; transition: color .3s;
}
.dock-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--ember); box-shadow: 0 0 8px var(--ember); transition: left .35s var(--ease), right .35s var(--ease); }
.dock-nav a:hover, .dock-nav a.on { color: var(--gold2); }
.dock-nav a:hover::after, .dock-nav a.on::after { left: 0; right: 0; }
.dock-r { display: flex; align-items: center; gap: 12px; }
.snd { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; font: 500 11px/1 var(--f-x); letter-spacing: .2em; color: var(--ink2); }
.snd .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.snd .bars i { width: 2px; height: 30%; background: currentColor; }
.snd[aria-pressed="true"] { color: var(--gold2); }
.snd[aria-pressed="true"] .bars i { animation: eq 1s ease-in-out infinite alternate; }
.snd .bars i:nth-child(2) { animation-delay: -.3s; } .snd .bars i:nth-child(3) { animation-delay: -.6s; } .snd .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--gold2); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 26px; }
.menu-open .menu-btn i:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 79; display: grid; place-items: center; padding: 90px var(--gut) 40px;
  background: radial-gradient(ellipse at 50% 120%, rgba(142, 12, 12, .5), transparent 60%), rgba(4, 2, 2, .97);
  clip-path: circle(0 at calc(100% - 44px) 36px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: m; text-align: center; }
.menu a { display: inline-block; text-decoration: none; font: 900 clamp(24px, min(7.4vw, 5.4vh), 58px)/1.12 var(--f-x); color: var(--ink2); transition: color .3s, transform .3s var(--ease); }
.menu a:hover { color: var(--gold2); transform: scale(1.04); }
.menu li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
.menu-open .menu li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .05s); }

/* section tracker */
.tracker { position: fixed; right: 22px; top: 50%; z-index: 75; transform: translateY(-50%); display: grid; gap: 14px; opacity: 0; transition: opacity .6s; }
.tracker.show { opacity: 1; }
.tracker a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; height: 12px; }
.tracker .tk { width: 14px; height: 1px; background: rgba(233, 220, 196, .3); transition: width .4s var(--ease), background .3s, box-shadow .3s; }
.tracker .tl { font: 500 10px/1 var(--f-x); letter-spacing: .22em; color: var(--gold2); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.tracker a:hover .tl, .tracker a.on .tl { opacity: 1; transform: none; }
.tracker a.on .tk { width: 34px; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.tracker a:hover .tk { width: 24px; background: var(--gold2); }

/* life & mana orbs */
.orb {
  --s: 88px; --f: .5; position: fixed; bottom: 18px; z-index: 76; width: var(--s); height: var(--s); border-radius: 50%;
  overflow: hidden; isolation: isolate; opacity: 0; transform: scale(.6); transition: opacity .6s, transform .6s var(--ease);
  box-shadow: 0 0 0 3px #1a1714, 0 0 0 5px #5a524a, 0 0 0 7px #0d0b0a, 0 0 30px var(--glow), inset 0 0 18px #000;
  background: radial-gradient(circle at 50% 45%, #1a1010, #040202 75%);
}
.orb.show { opacity: 1; transform: none; }
.orb-life { left: 18px; --c1: #ff4a3a; --c2: #9a0c0c; --c3: #3a0303; --glow: rgba(208, 32, 28, .35); }
.orb-mana { right: 18px; --c1: #6f8bff; --c2: #1f33c9; --c3: #070c4a; --glow: rgba(46, 84, 255, .35); }
.orb .liq {
  position: absolute; left: -25%; right: -25%; bottom: 0; height: calc(var(--f) * 100%); transition: height .5s var(--ease);
  background: radial-gradient(circle at 50% 0%, var(--c1), var(--c2) 45%, var(--c3) 100%);
}
.orb .liq::before {
  content: ""; position: absolute; inset: -40% 0 0; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.25), transparent 30%, rgba(0,0,0,.35), transparent 60%, rgba(255,255,255,.15), transparent);
  filter: blur(6px); animation: swirl 7s linear infinite; mix-blend-mode: overlay;
}
.orb .liq::after {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--c1), transparent 70%); opacity: .9; animation: slosh 3.2s ease-in-out infinite;
}
@keyframes swirl { to { transform: rotate(360deg); } }
@keyframes slosh { 50% { transform: translateX(8%) scaleY(1.4); } }
.orb .glass { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.55), rgba(255,255,255,.05) 22%, transparent 40%), radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,0,0,.6)); z-index: 2; }
.orb .ov { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font: 700 11px/1 var(--f-x); letter-spacing: .12em; color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px #000; opacity: 0; transition: opacity .3s; }
.orb:hover .ov { opacity: 1; }
.orb.flash { animation: orbflash .6s; }
@keyframes orbflash { 30% { box-shadow: 0 0 0 3px #1a1714, 0 0 0 5px #b8a27a, 0 0 0 7px #0d0b0a, 0 0 60px 10px var(--c1); } }

/* toast in D1 style */
.toast {
  position: fixed; left: 50%; bottom: 120px; z-index: 85; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  font: 500 clamp(14px, 1vw + 8px, 18px)/1.2 var(--f-x); letter-spacing: .1em; color: var(--ink); text-shadow: 0 2px 3px #000;
  padding: 12px 20px; background: rgba(0, 0, 0, .78); border: 1px solid var(--line2); transition: opacity .35s, transform .35s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #020205; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; transform: scale(calc(1.06 + var(--hp, 0) * .25)); transform-origin: 50% 60%; }
.hero-bg .pan { position: absolute; inset: -3%; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s var(--ease); }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: var(--hx, 50%) 0;
  animation: drift 70s ease-in-out infinite alternate;
}
@keyframes drift { from { object-position: 30% 0; } to { object-position: 70% 0; } }
.hero-bg .dark { filter: brightness(.42) saturate(.8) contrast(1.1); }
.hero-bg .lit {
  filter: brightness(1.25) saturate(1.15) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle var(--lr, 300px) at var(--lx, 50%) var(--ly, 55%), #000 0%, rgba(0,0,0,.6) 40%, transparent 100%);
          mask-image: radial-gradient(circle var(--lr, 300px) at var(--lx, 50%) var(--ly, 55%), #000 0%, rgba(0,0,0,.6) 40%, transparent 100%);
}
.hero::before { /* top & bottom shade */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,2,4,.85) 0%, transparent 22%, transparent 55%, rgba(7,4,4,.95) 92%, var(--bg) 100%),
              radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(0,0,0,.6) 100%);
}
.fog {
  position: absolute; inset: 35% -30% -10%; z-index: -1; pointer-events: none; mix-blend-mode: screen; filter: blur(30px);
  background: radial-gradient(ellipse 30% 22% at 18% 62%, rgba(120, 130, 170, .2), transparent 70%),
              radial-gradient(ellipse 26% 18% at 52% 74%, rgba(120, 130, 170, .16), transparent 70%),
              radial-gradient(ellipse 34% 20% at 84% 58%, rgba(120, 130, 170, .18), transparent 70%);
  animation: fog 38s ease-in-out infinite alternate;
}
.fog.f2 { inset: 50% -30% -20%; opacity: .8; animation-duration: 54s; animation-direction: alternate-reverse;
  background: radial-gradient(ellipse 30% 25% at 30% 50%, rgba(160, 90, 60, .14), transparent 70%), radial-gradient(ellipse 30% 25% at 72% 60%, rgba(110, 120, 160, .16), transparent 70%); }
@keyframes fog { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
.hero-c {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 90px var(--gut) 120px;
  transform: translateY(calc(var(--hp, 0) * -18vh)); opacity: calc(1 - var(--hp, 0) * 1.6);
}
.hero-k { font: 500 clamp(11px, .5vw + 8px, 15px)/1.4 var(--f-x); letter-spacing: .42em; color: var(--ink2); text-transform: uppercase; margin: 0 0 1vh; text-shadow: 0 2px 8px #000; }
.hero-logo { margin: 0; width: min(78vw, 640px, 62vh * 1.29); perspective: 900px; }
.hero-logo .tilt { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .8s var(--ease); transform-style: preserve-3d; }
.logo-fx { position: relative; display: block; animation: logoIn 2.4s var(--ease) backwards; cursor: pointer; }
.hero-logo img { display: block; width: 100%; height: auto; animation: burn 3.8s ease-in-out 2.4s infinite alternate; }
/* WebGL redraw of the logo with the burning 3D; padded 1100 x 830 around the 940 x 730 logo */
.logo-fx canvas { position: absolute; left: -8.511%; top: -5.479%; width: 117.021%; height: 113.699%; pointer-events: none; opacity: 0; }
.logo-fx.on canvas { opacity: 1; }
.logo-fx.on img { visibility: hidden; animation: none; }
@keyframes logoIn {
  0% { opacity: 0; transform: scale(1.35) translateY(-4%); filter: blur(24px) brightness(3) drop-shadow(0 0 0 transparent); }
  60% { opacity: 1; filter: blur(0) brightness(1.6) drop-shadow(0 0 60px rgba(255, 90, 20, .9)); }
  100% { opacity: 1; transform: none; filter: blur(0) brightness(1) drop-shadow(0 0 0 transparent); }
}
@keyframes burn {
  from { filter: drop-shadow(0 0 22px rgba(255, 80, 20, .35)) drop-shadow(0 18px 30px rgba(0,0,0,.8)); }
  to { filter: drop-shadow(0 0 46px rgba(255, 100, 30, .65)) drop-shadow(0 18px 30px rgba(0,0,0,.8)) brightness(1.08); }
}
.hero-line { margin: 1.2vh 0 0; font: 400 italic clamp(20px, 1.6vw + 10px, 34px)/1.2 var(--f-b); color: var(--ink); text-shadow: 0 2px 10px #000, 0 0 30px rgba(0,0,0,.9); letter-spacing: .01em; }
.hero-line .ch { opacity: 0; display: inline-block; animation: wisp .9s var(--ease) forwards; animation-delay: calc(1.4s + var(--i) * 45ms); white-space: pre; }
@keyframes wisp { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 4vh; opacity: 0; animation: up 1.2s var(--ease) 2.2s forwards; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hud { position: absolute; z-index: 2; font: 500 11px/1.7 var(--f-x); letter-spacing: .24em; color: rgba(233, 220, 196, .62); text-transform: uppercase; pointer-events: none; text-shadow: 0 1px 4px #000; }
.hud b { color: var(--gold2); font-weight: 500; }
.hud.tl { left: var(--gut); top: 96px; } .hud.tr { right: var(--gut); top: 96px; text-align: right; }
.hud.bl { left: var(--gut); bottom: 30px; } .hud.br { right: var(--gut); bottom: 30px; text-align: right; }
.hud .live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--blood2); box-shadow: 0 0 10px var(--blood2); animation: blink 1.6s infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: .2; } }
.cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; text-decoration: none; font: 500 10px/1 var(--f-x); letter-spacing: .4em; color: var(--ink2); }
.cue i { width: 1px; height: 54px; background: linear-gradient(transparent, var(--ember)); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 14px; background: #ffd08a; box-shadow: 0 0 8px var(--ember); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { from { top: -14px; } to { top: 100%; } }

/* ------------------------------------------------------------- rebirth (before / after) */
.rebirth { position: relative; height: 560vh; background: #000; }
.rb-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rb-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rb-cap { position: absolute; z-index: 3; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.rb-cap .kick { margin-bottom: .8rem; }
.rb-cap.c1 { left: var(--gut); top: 50%; transform: translateY(-50%); width: min(34vw, 560px); }
.rb-cap.c1 .rb-big { font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02; }
.rb-cap.c2 { right: var(--gut); bottom: 16vh; max-width: 26ch; text-align: right; }
.rb-cap.c3 { left: 50%; top: 14vh; transform: translateX(-50%); text-align: center; width: min(92vw, 900px); }
.rb-cap.c4 { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(94vw, 1200px); }
.rb-cap.c5 { left: 50%; bottom: 9vh; transform: translateX(-50%); text-align: center; width: min(94vw, 1100px); }
.rb-cap.c5 .rb-big { font-size: clamp(26px, 3.4vw, 58px); }
.rb-cap.c5 .rb-txt { max-width: 46em; margin-inline: auto; }
.rb-big { margin: 0; font: 900 clamp(34px, 5.6vw, 92px)/.95 var(--f-x); text-shadow: 0 4px 30px #000; }
.rb-huge { margin: 0; font: 900 clamp(56px, 13vw, 230px)/.85 var(--f-x); letter-spacing: -.01em; }
.rb-txt { margin: .8rem 0 0; color: var(--ink); font-size: clamp(17px, 1.1vw + 10px, 24px); line-height: 1.45; text-shadow: 0 2px 12px #000, 0 0 2px #000; }
.rb-txt em { color: var(--gold2); }
.rb-hud {
  position: absolute; z-index: 3; left: calc(var(--gut) + 100px); bottom: 28px; display: grid; grid-template-columns: repeat(4, auto); gap: 6px 34px;
  font: 500 10px/1.3 var(--f-x); letter-spacing: .24em; color: rgba(233, 220, 196, .55); text-transform: uppercase; text-shadow: 0 1px 4px #000;
}
.rb-hud b { display: block; margin-top: 6px; font: 700 clamp(14px, 1vw + 8px, 20px)/1 var(--f-x); letter-spacing: .08em; color: var(--gold2); font-variant-numeric: tabular-nums; }
.rb-hud b.now { color: #ffb070; text-shadow: 0 0 14px rgba(255, 106, 26, .7); }
.rb-bar { position: absolute; z-index: 3; right: calc(var(--gut) + 100px); bottom: 30px; width: min(240px, 30vw); height: 1px; background: rgba(233, 220, 196, .18); }
.rb-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #6b6258, var(--ember)); box-shadow: 0 0 10px var(--ember); }
.rb-bar span { position: absolute; right: 0; bottom: 10px; font: 500 10px/1 var(--f-x); letter-spacing: .24em; color: var(--ink2); }
.rb-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 50% 60%, rgba(255, 150, 60, .7), rgba(208, 32, 28, .25) 40%, transparent 70%); opacity: 0; mix-blend-mode: screen; }
.rb-static { display: none; }
.rebirth.static { height: auto; }
.rebirth.static .rb-pin { position: relative; height: auto; padding: 120px var(--gut); display: grid; gap: 40px; }
.rebirth.static .rb-gl, .rebirth.static .rb-hud, .rebirth.static .rb-bar, .rebirth.static .rb-flash { display: none; }
.rebirth.static .rb-cap { position: static; opacity: 1; transform: none; max-width: none; width: auto; text-align: center; }
.rebirth.static .rb-static { display: grid; gap: 24px; justify-items: center; }
.rb-static img { width: 100%; border: 1px solid var(--line); }
.rb-static .old { width: min(100%, 640px); image-rendering: pixelated; }

/* ------------------------------------------------------------- compare */
.compare { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(142, 12, 12, .22), transparent 70%), var(--bg); }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cmp {
  --x: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; touch-action: pan-y; border-radius: 2px;
  box-shadow: 0 0 0 1px #000, 0 0 0 6px #2b2622, 0 0 0 7px #6b6258, 0 0 0 9px #0c0a09, 0 40px 90px rgba(0, 0, 0, .85), 0 0 120px rgba(208, 32, 28, .15);
  background: #000;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp .old { clip-path: inset(0 calc(100% - var(--x)) 0 0); image-rendering: pixelated; }
.cmp .old::after { content: ""; }
.cmp .scan { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, #ffcf8a 12%, #ff6a1a 50%, #ffcf8a 88%, transparent); box-shadow: 0 0 14px 2px rgba(255, 106, 26, .8), 0 0 50px 6px rgba(208, 32, 28, .4); pointer-events: none; }
.cmp-k {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ff9a5a, #b8150e 45%, #3a0303 80%); box-shadow: 0 0 0 3px #1a1714, 0 0 0 5px #b38c4a, 0 0 0 7px #0d0b0a, 0 0 30px rgba(255, 90, 20, .9);
  transition: transform .3s var(--ease);
}
.cmp-k svg { width: 26px; height: 26px; fill: #ffe2b0; filter: drop-shadow(0 1px 1px #000); }
.cmp.drag .cmp-k { transform: scale(1.12); }
.cmp-l { position: absolute; top: 18px; padding: 8px 14px; font: 700 clamp(14px, 1.2vw + 6px, 22px)/1 var(--f-x); letter-spacing: .14em; color: #fff; text-shadow: 0 2px 4px #000; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255,255,255,.12); pointer-events: none; transition: opacity .3s; }
.cmp-l small { display: block; margin-top: 4px; font: 500 9px/1 var(--f-x); letter-spacing: .24em; color: var(--ink2); }
.cmp-l.l { left: 18px; } .cmp-l.r { right: 18px; text-align: right; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.cmp-modes { display: flex; gap: 10px; margin-top: 26px; }
.cmp-modes button { flex: 1; height: 44px; font: 500 12px/1 var(--f-x); letter-spacing: .2em; color: var(--ink2); border: 1px solid var(--line); transition: color .3s, border-color .3s, background .3s; }
.cmp-modes button:hover, .cmp-modes button.on { color: var(--gold2); border-color: var(--line2); background: rgba(200, 164, 99, .06); }
.cmp-side .h2 { margin-bottom: 1.4rem; font-size: clamp(38px, 4.6vw, 76px); }
.cmp-col { width: min(100%, 76vh * 4 / 3); justify-self: center; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92em; color: var(--ink2); }
.facts .a { font: 500 12px/1 var(--f-x); letter-spacing: .14em; color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(208, 32, 28, .7); }
.facts .b { font: 700 13px/1 var(--f-x); letter-spacing: .12em; color: var(--gold2); }

/* ------------------------------------------------------------- tristram / kindling */
.town { overflow: hidden; }
.town::before { content: ""; position: absolute; inset: 0; background: url("../img/town.webp") center / cover; opacity: .14; filter: grayscale(.4); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.kindle { position: relative; margin: 0 auto; max-width: 22em; text-align: center; font: 400 clamp(28px, 3.6vw, 60px)/1.22 var(--f-b); letter-spacing: -.005em; text-wrap: balance; }
.kindle .w { color: rgba(185, 169, 140, .16); transition: color .5s, text-shadow .5s; }
.kindle .w.lit { color: var(--ink); }
.kindle .w.lit.gold { color: var(--gold2); text-shadow: 0 0 24px rgba(255, 140, 50, .45); font-style: italic; }
.after-kindle { margin: 4rem auto 0; text-align: center; font: 500 clamp(14px, .6vw + 10px, 18px)/1.4 var(--f-x); letter-spacing: .3em; color: var(--blood2); text-transform: uppercase; }

.band { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, #070404, #120807, #070404); }
.band .row { display: flex; width: max-content; animation: mq 46s linear infinite; }
.band.rev .row { animation-direction: reverse; animation-duration: 60s; }
.band span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font: 900 clamp(26px, 3.4vw, 54px)/1 var(--f-x); letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(200, 164, 99, .5); white-space: nowrap; }
.band span:nth-child(odd) { color: var(--ink); -webkit-text-stroke: 0; }
.band svg { width: .7em; height: .7em; fill: none; stroke: var(--blood2); stroke-width: 6; }
@keyframes mq { to { transform: translateX(-50%); } }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(64px, 8vw, 120px); background: var(--line); border: 1px solid var(--line); }
.pillar { position: relative; padding: clamp(26px, 3vw, 44px) clamp(20px, 2vw, 32px); background: var(--bg); overflow: hidden; transition: background .5s; }
.pillar::before { content: ""; position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(0deg, rgba(208, 32, 28, .22), transparent); transition: height .6s var(--ease); }
.pillar:hover::before { height: 100%; }
.pillar .n { position: relative; display: block; font: 900 clamp(48px, 5vw, 84px)/1 var(--f-x); }
.pillar h3 { position: relative; margin: 1rem 0 .5rem; font: 700 16px/1.2 var(--f-x); letter-spacing: .16em; color: var(--gold2); text-transform: uppercase; }
.pillar p { position: relative; margin: 0; font-size: .9em; color: var(--ink2); }

/* ------------------------------------------------------------- souls (horizontal) */
.souls { position: relative; background: linear-gradient(180deg, var(--bg), #0b0606 50%, var(--bg)); }
.souls-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.souls-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 0 var(--gut); margin-bottom: clamp(20px, 3vh, 40px); }
.souls-top .h2 { font-size: clamp(36px, 5vw, 84px); }
.souls-count { font: 900 clamp(28px, 3vw, 46px)/1 var(--f-x); color: var(--mute); white-space: nowrap; }
.souls-count b { color: var(--gold2); font-weight: 900; }
.souls-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.soul {
  position: relative; flex: none; width: clamp(260px, 26vw, 380px); height: min(64vh, 560px); margin: 0; overflow: hidden; border-radius: 2px;
  background: #000; transform: perspective(900px) rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); transition: transform .5s var(--ease);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0,0,0,.6);
}
.soul img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.12); transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.7) saturate(.85); }
.soul:hover img { transform: scale(1.2); filter: brightness(1) saturate(1.05); }
.soul::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 45%, rgba(4, 2, 2, .96) 88%); pointer-events: none; }
.soul .glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 200, 140, .22), transparent 50%); opacity: 0; transition: opacity .4s; mix-blend-mode: screen; }
.soul:hover .glare { opacity: 1; }
.soul .no { position: absolute; z-index: 2; top: 18px; left: 20px; font: 900 15px/1 var(--f-x); letter-spacing: .2em; color: var(--gold); }
.soul figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.soul .role { display: block; font: 500 11px/1 var(--f-x); letter-spacing: .26em; color: var(--blood2); text-transform: uppercase; }
.soul .nm { display: block; margin: 10px 0 0; font: 900 clamp(26px, 2.2vw, 36px)/1 var(--f-x); color: var(--unique); text-shadow: 0 2px 6px #000; }
.soul q { display: block; margin-top: 12px; font-style: italic; font-size: .95em; line-height: 1.4; color: var(--ink); quotes: "\201C" "\201D"; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.soul:hover q, .soul:focus-within q, .soul.near q { max-height: 8em; opacity: 1; }
.soul.intro { width: clamp(280px, 30vw, 440px); background: transparent; box-shadow: none; display: grid; align-content: center; padding-right: 2vw; }
.soul.intro::after { display: none; }
.soul.intro p { margin: 0 0 1em; color: var(--ink2); }
.soul.intro .big { font: 400 italic clamp(26px, 2.3vw, 38px)/1.2 var(--f-b); color: var(--ink); }
.souls-prog { margin: clamp(22px, 3.5vh, 40px) var(--gut) 0; height: 1px; background: var(--line); position: relative; }
.souls-prog i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--sp, 0) * 100%); background: linear-gradient(90deg, var(--blood), var(--ember)); box-shadow: 0 0 10px var(--ember); }

/* ------------------------------------------------------------- cathedral descent */
.descent { position: relative; height: 420vh; background: #000; }
.ds-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ds-layer { position: absolute; inset: 0; will-change: transform, opacity; }
.ds-layer img { width: 100%; height: 100%; object-fit: cover; }
.ds-door { transform-origin: 50% 32%; }
.ds-cath { opacity: 0; }
.ds-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 20%, rgba(0,0,0,.85) 85%), linear-gradient(180deg, rgba(0,0,0,.6), transparent 30%, transparent 70%, rgba(0,0,0,.9)); }
.ds-blood { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(160, 10, 10, .55), transparent 65%); mix-blend-mode: screen; opacity: 0; }
.ds-head { position: absolute; top: 14vh; left: 0; right: 0; text-align: center; z-index: 3; padding: 0 var(--gut); }
.ds-ch { position: absolute; z-index: 3; left: 50%; top: 52%; width: min(92vw, 920px); transform: translate(-50%, -50%); text-align: center; opacity: 0; }
.ds-ch .num { display: block; font: 500 13px/1 var(--f-x); letter-spacing: .4em; color: var(--blood2); margin-bottom: 18px; text-shadow: 0 0 14px rgba(208,32,28,.7); }
.ds-ch p { margin: 0; font: 400 clamp(28px, 3.8vw, 62px)/1.15 var(--f-b); color: var(--ink); text-shadow: 0 4px 30px #000, 0 0 3px #000; text-wrap: balance; }
.ds-ch p em { font-style: normal; font-family: var(--f-x); font-weight: 900; color: var(--blood2); text-shadow: 0 0 30px rgba(208, 32, 28, .8), 0 4px 20px #000; }
.ds-end { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12vh; text-align: center; opacity: 0; padding: 0 var(--gut); }
.ds-end .lede { margin: 1rem auto 0; color: var(--ink); text-shadow: 0 2px 10px #000; }
.gauge { position: absolute; z-index: 4; left: var(--gut); top: 50%; transform: translateY(-50%); height: 50vh; width: 120px; font: 500 10px/1.2 var(--f-x); letter-spacing: .2em; color: var(--ink2); text-transform: uppercase; }
.gauge::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), var(--blood2), rgba(255,255,255,.1)); }
.gauge span { position: absolute; left: 18px; transform: translateY(-50%); white-space: nowrap; }
.gauge span::before { content: ""; position: absolute; left: -17px; top: 50%; width: 9px; height: 1px; background: currentColor; }
.gauge .lock { color: var(--mute); }
.gauge .mark { position: absolute; left: 0; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: #ffd08a; box-shadow: 0 0 12px 3px var(--ember); top: calc(var(--d, 0) * 70%); }
.gauge .ft { position: absolute; left: 18px; top: calc(var(--d, 0) * 70%); transform: translateY(-50%); font: 700 13px/1 var(--f-x); color: var(--gold2); margin-left: 40px; }

/* ------------------------------------------------------------- heroes */
.heroes { background: radial-gradient(ellipse 60% 70% at 70% 50%, rgba(142, 12, 12, .2), transparent 70%), var(--bg); }
.sel { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
.sel-tabs { display: grid; gap: 14px; align-content: start; }
.sel-tab {
  position: relative; display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; text-align: left;
  background: var(--noise), linear-gradient(180deg, #3b3632, #1e1b18); border: 1px solid #0b0908;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px #4a433c, 0 0 0 3px #0d0b0a; transition: transform .35s var(--ease), box-shadow .35s;
}
.sel-tab img { width: 74px; height: 74px; object-fit: cover; filter: grayscale(.8) brightness(.6); transition: filter .4s; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6b6258; }
.sel-tab .rn { display: block; font: 500 10px/1 var(--f-x); letter-spacing: .3em; color: var(--ink2); opacity: .7; }
.sel-tab .cn { display: block; margin-top: 8px; font: 900 22px/1 var(--f-x); color: var(--ink2); transition: color .3s; }
.sel-tab:hover { transform: translateX(6px); }
.sel-tab[aria-selected="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px #b38c4a, 0 0 0 3px #0d0b0a, 0 0 30px rgba(208, 32, 28, .35); transform: translateX(10px); }
.sel-tab[aria-selected="true"] img { filter: none; }
.sel-tab[aria-selected="true"] .cn { color: var(--unique); }
.sel-tab[aria-selected="true"]::after { content: ""; position: absolute; right: -14px; top: 50%; width: 0; height: 0; border: 9px solid transparent; border-left-color: #b38c4a; transform: translateY(-50%); }
.sel-view { position: relative; min-height: 640px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #000, 0 0 0 6px #2b2622, 0 0 0 7px #6b6258, 0 0 0 9px #0c0a09, 0 40px 90px rgba(0,0,0,.8); }
.sel-img { position: absolute; inset: 0; }
.sel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1s var(--ease), transform 1.6s var(--ease), clip-path 1s var(--ease-io); clip-path: inset(0 0 0 100%); }
.sel-img img.on { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.sel-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,2,2,.94) 0%, rgba(4,2,2,.75) 38%, transparent 70%), linear-gradient(0deg, rgba(4,2,2,.7), transparent 40%); pointer-events: none; }
.sel-info { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px); max-width: 560px; }
.sel-info .cls { margin: 0; font: 900 clamp(48px, 6vw, 96px)/.9 var(--f-x); }
.sel-info .q { margin: 1rem 0 0; font-style: italic; font-size: 1.15em; color: var(--gold2); }
.sel-info .d { margin: 1rem 0 0; color: var(--ink2); }
.stats { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 14px; }
.stats li { display: grid; grid-template-columns: 110px 1fr 74px; gap: 14px; align-items: center; font: 500 12px/1 var(--f-x); letter-spacing: .16em; color: var(--ink2); text-transform: uppercase; }
.stats .bar { position: relative; height: 10px; background: #120d0b; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #3a332d; overflow: hidden; }
.stats .bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--m) * 100%); background: rgba(200, 164, 99, .18); transition: width 1s var(--ease); }
.stats .bar b { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, #6b0a07, #e0331f, #ffb15a); box-shadow: 0 0 10px rgba(255, 106, 26, .7); transition: width 1.1s var(--ease) .1s; }
.stats .num { text-align: right; color: var(--gold2); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats .num small { color: var(--mute); font-weight: 500; }
.gear { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.8rem; }
.gear span { padding: 9px 12px; font: 500 11px/1 var(--f-x); letter-spacing: .14em; color: var(--ink); background: rgba(16, 12, 30, .55); border: 1px solid rgba(128, 128, 255, .3); box-shadow: inset 0 0 12px rgba(80, 80, 200, .15); }
.gear span:first-child { color: var(--magic); }
.sel-anim { animation: selIn .8s var(--ease) both; }
@keyframes selIn { from { opacity: 0; transform: translateX(-24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ------------------------------------------------------------- bestiary */
.bestiary { background: #050303; }
.beasts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.beast { position: relative; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(208, 32, 28, .2); transition: box-shadow .4s, transform .5s var(--ease); }
.beast:hover { box-shadow: 0 0 0 1px rgba(208, 32, 28, .7), 0 0 40px rgba(208, 32, 28, .3); transform: translateY(-6px); }
.beast .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.beast .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.beast:hover .ph img { transform: scale(1.14); }
.beast .ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle var(--br, 190px) at var(--bx, -999px) var(--by, -999px), transparent 0%, rgba(2, 1, 1, .2) 45%, rgba(2, 1, 1, .86) 100%);
}
.beast .lvl { position: absolute; z-index: 2; top: 14px; left: 14px; font: 500 10px/1 var(--f-x); letter-spacing: .26em; color: var(--blood2); padding: 6px 8px; background: rgba(0,0,0,.7); border: 1px solid rgba(208, 32, 28, .4); }
.beast .body { padding: 20px 22px 24px; background: linear-gradient(180deg, #0c0707, #070404); }
.beast h3 { margin: 0; font: 900 24px/1 var(--f-x); color: var(--ink); letter-spacing: .03em; }
.beast p { margin: 10px 0 0; font-size: .9em; color: var(--ink2); line-height: 1.45; }
.beast dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border-top: 1px solid rgba(208, 32, 28, .25); }
.beast dl div { padding-top: 12px; }
.beast dt { font: 500 9px/1 var(--f-x); letter-spacing: .24em; color: var(--mute); text-transform: uppercase; }
.beast dd { margin: 6px 0 0; font: 700 18px/1 var(--f-x); color: var(--gold2); }

/* ------------------------------------------------------------- grimoire */
.grimoire { overflow: hidden; background: radial-gradient(ellipse 60% 50% at 30% 30%, rgba(46, 84, 255, .1), transparent 70%), radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255, 106, 26, .1), transparent 70%), var(--bg); }
.spells { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.spell {
  --sc: var(--ember); position: relative; display: block; width: 100%; text-align: left; overflow: hidden; isolation: isolate;
  background: #000; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s, transform .5s var(--ease);
}
.spell[data-s="lightning"] { --sc: #7c9bff; }
.spell:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--sc), 0 0 50px color-mix(in srgb, var(--sc) 35%, transparent); }
.spell .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.spell .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; filter: brightness(.75); }
.spell:hover .ph img { transform: scale(1.08); filter: brightness(1.05); }
.spell .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #070404, transparent 60%); }
.spell .body { position: relative; padding: 4px 22px 24px; }
.spell .sch { font: 500 10px/1 var(--f-x); letter-spacing: .3em; color: var(--sc); text-transform: uppercase; }
.spell h3 { margin: 10px 0 0; font: 900 clamp(26px, 2.2vw, 34px)/1 var(--f-x); color: var(--ink); }
.spell p { margin: 10px 0 0; font-size: .9em; color: var(--ink2); line-height: 1.45; }
.spell .meta { display: flex; gap: 18px; margin-top: 16px; font: 500 11px/1 var(--f-x); letter-spacing: .16em; color: var(--mute); }
.spell .meta b { color: #8fa6ff; font-weight: 700; }
.spell .cast { position: absolute; right: 18px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--f-x); letter-spacing: .22em; color: var(--sc); opacity: .7; transition: opacity .3s, letter-spacing .4s var(--ease); }
.spell:hover .cast { opacity: 1; letter-spacing: .3em; }
.spell .cast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 10px 2px var(--sc); animation: blink 1.2s infinite; }
.minor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(14px, 1.6vw, 24px); background: var(--line); border: 1px solid var(--line); }
.minor button { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 22px; text-align: left; background: #090605; transition: background .4s; }
.minor button:hover { background: #140b09; }
.minor .ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); box-shadow: inset 0 0 20px rgba(0,0,0,.8); }
.minor .ic svg { width: 26px; height: 26px; }
.minor b { display: block; font: 700 17px/1 var(--f-x); color: var(--ink); letter-spacing: .04em; }
.minor small { display: block; margin-top: 6px; font: 500 10px/1 var(--f-x); letter-spacing: .2em; color: var(--mute); }
.minor span.t { display: block; margin-top: 8px; font-size: .85em; line-height: 1.35; color: var(--ink2); }
.grim-hint { margin-top: 22px; text-align: center; font: 500 11px/1.5 var(--f-x); letter-spacing: .26em; color: var(--mute); text-transform: uppercase; }

/* D1 item tooltip */
.item-tip {
  position: fixed; z-index: 86; left: 50%; top: 50%; width: min(92vw, 400px); padding: 22px 24px 20px; transform: translate(-50%, -50%) scale(.9); opacity: 0; pointer-events: none;
  background: rgba(0, 0, 0, .92); border: 1px solid #6b6258; box-shadow: 0 0 0 3px #000, 0 0 0 4px #3a332d, 0 30px 80px #000;
  text-align: center; font: 500 13px/1.75 var(--f-x); letter-spacing: .08em; color: #fff; transition: opacity .35s, transform .45s var(--ease);
}
.item-tip.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.item-tip .nm { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 700; color: var(--unique); }
.item-tip .mg { color: var(--magic); }
.item-tip .rq { color: #ff5d5d; }
.item-tip .btn { margin-top: 16px; }
.item-tip .x-close { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; font: 700 16px/1 var(--f-x); color: var(--mute); }

/* ------------------------------------------------------------- visions (gallery) */
.visions { overflow: hidden; padding-bottom: clamp(80px, 10vw, 140px); }
.strip { display: flex; gap: 14px; width: max-content; will-change: transform; padding: 7px 0; }
.strip button { position: relative; flex: none; width: clamp(260px, 30vw, 460px); aspect-ratio: 16 / 9; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.85); transition: transform 1s var(--ease), filter .5s; }
.strip button:hover img { transform: scale(1.08); filter: none; }
.strip .cap { position: absolute; left: 16px; bottom: 14px; right: 16px; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.strip button:hover .cap { opacity: 1; transform: none; }
.strip .cap b { display: block; font: 700 18px/1 var(--f-x); color: var(--unique); text-shadow: 0 2px 6px #000; }
.strip .cap small { display: block; margin-top: 6px; font: 500 10px/1 var(--f-x); letter-spacing: .22em; color: var(--ink2); text-shadow: 0 1px 4px #000; }
.lb { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 70px var(--gut) 90px; background: rgba(2, 1, 1, .95); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lb.on { opacity: 1; visibility: visible; }
.lb figure { margin: 0; max-width: 1500px; width: 100%; }
.lb img { width: 100%; max-height: calc(100vh - 200px); object-fit: contain; box-shadow: 0 0 0 1px var(--line2), 0 40px 100px #000; transform: scale(.96); transition: transform .5s var(--ease), opacity .3s; }
.lb.on img { transform: none; }
.lb figcaption { margin-top: 18px; text-align: center; }
.lb figcaption b { font: 700 22px/1 var(--f-x); color: var(--unique); }
.lb figcaption small { display: block; margin-top: 8px; font: 500 11px/1 var(--f-x); letter-spacing: .24em; color: var(--ink2); }
.lb .nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; font: 500 34px/1 var(--f-b); color: var(--gold2); border: 1px solid var(--line2); background: rgba(0,0,0,.5); }
.lb .prev { left: 16px; } .lb .next { right: 16px; }
.lb .close { position: absolute; top: 18px; right: 18px; height: 44px; padding: 0 16px; font: 500 11px/1 var(--f-x); letter-spacing: .24em; color: var(--ink2); border: 1px solid var(--line); }
.lb .cnt { position: absolute; top: 30px; left: var(--gut); font: 500 11px/1 var(--f-x); letter-spacing: .24em; color: var(--mute); }

/* ------------------------------------------------------------- forged */
.forged { background: linear-gradient(180deg, var(--bg), #0c0606); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.counter { padding: clamp(30px, 4vw, 60px) 16px; text-align: center; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter .n { display: block; font: 900 clamp(60px, 8vw, 130px)/.9 var(--f-x); }
.counter span { display: block; margin-top: 14px; font: 500 12px/1.5 var(--f-x); letter-spacing: .2em; color: var(--ink2); text-transform: uppercase; }
.rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(40px, 5vw, 70px) auto 0; max-width: 980px; }
.rules span { padding: 10px 16px; font: 500 12px/1 var(--f-x); letter-spacing: .18em; color: var(--ink2); border: 1px solid var(--line); transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease); }
.rules span:hover { color: var(--gold2); border-color: var(--line2); background: rgba(208, 32, 28, .1); transform: translateY(-3px); }
.forged-note { margin: clamp(40px, 5vw, 60px) auto 0; text-align: center; max-width: 34em; font-style: italic; font-size: 1.15em; color: var(--ink); }

/* ------------------------------------------------------------- download */
.dl { position: relative; overflow: hidden; padding: clamp(140px, 18vw, 260px) 0 clamp(90px, 10vw, 140px); isolation: isolate; text-align: center; }
.dl-bg { position: absolute; inset: -10% 0; z-index: -2; transform: translateY(var(--dly, 0)); }
.dl-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.1); }
.dl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0,0,0,.2), rgba(0,0,0,.9) 90%), linear-gradient(180deg, var(--bg), transparent 25%, transparent 70%, var(--bg)); }
.dl .h2 { font-size: clamp(54px, 10vw, 180px); line-height: .86; }
.dl .lede { margin: 2rem auto 0; color: var(--ink); text-shadow: 0 2px 10px #000; }
.dl-cta { display: grid; justify-items: center; gap: 16px; margin-top: 3rem; }
.dl-cta small { font: 500 11px/1 var(--f-x); letter-spacing: .26em; color: var(--ink2); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: clamp(50px, 6vw, 80px) auto 0; background: rgba(4, 2, 2, .72); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.specs div { padding: 22px 16px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs dt { font: 500 10px/1 var(--f-x); letter-spacing: .26em; color: var(--mute); text-transform: uppercase; }
.specs dd { margin: 10px 0 0; font: 700 15px/1.2 var(--f-x); letter-spacing: .06em; color: var(--gold2); }
.keys-h { margin: clamp(70px, 9vw, 120px) 0 28px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 28px; max-width: 1080px; margin: 0 auto; text-align: left; }
.keys div { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(200, 164, 99, .1); font-size: .9em; color: var(--ink2); }
.keys kbd {
  flex: none; min-width: 88px; padding: 8px 10px; text-align: center; font: 700 11px/1 var(--f-x); letter-spacing: .1em; color: var(--gold2);
  background: var(--noise), linear-gradient(180deg, #4a4540, #23201d); border: 1px solid #0b0908; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.6), 0 0 0 1px #4a433c, 0 3px 0 #0b0908;
}
.keys-note { margin-top: 22px; font: 500 11px/1.5 var(--f-x); letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }

/* ------------------------------------------------------------- trailer */
.trailer { padding-bottom: clamp(90px, 11vw, 170px); }
.tv { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(8px, 1.1vw, 16px); isolation: isolate;
  background: linear-gradient(180deg, #1c1714, #0a0807);
  border: 1px solid #0b0908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px #6b6258, 0 0 0 4px #120e0c, 0 0 0 5px rgba(200, 164, 99, .3), 0 50px 120px rgba(0, 0, 0, .85);
}
.tv::before { content: ""; position: absolute; inset: 8% 4% -10%; z-index: -1; background: radial-gradient(ellipse at 50% 60%, rgba(255, 80, 20, .32), rgba(208, 32, 28, .12) 45%, transparent 70%); filter: blur(50px); animation: tvGlow 4s ease-in-out infinite alternate; }
@keyframes tvGlow { to { opacity: .55; transform: scale(1.04); } }
/* the screen opens like a letterbox the first time it is seen */
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px #000; clip-path: inset(49.6% 0 49.6% 0); transition: clip-path 1.7s var(--ease-io) .35s; }
.tv.on .tv-screen { clip-path: inset(0 0 0 0); }
.tv-screen::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #ffd9a0; box-shadow: 0 0 24px 6px rgba(255, 120, 40, .9); opacity: 1; transition: opacity .6s 1.2s; pointer-events: none; }
.tv.on .tv-screen::after { opacity: 0; }
.tv-poster, .tv-slot, .tv-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-poster { object-fit: cover; filter: brightness(.75); transition: opacity 1.2s; }
.tv.playing .tv-poster { opacity: 0; }
.tv-slot { opacity: 0; transition: opacity 1.2s .3s; }
.tv.playing .tv-slot { opacity: 1; }
.tv-scan { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(0, 0, 0, .55); }
.tv-c { position: absolute; width: clamp(28px, 4vw, 54px); height: clamp(28px, 4vw, 54px); border: 2px solid var(--gold); pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 140, 50, .45)); }
.tv-c::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--gold2); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 140, 50, .9); }
.tv-c.tl { left: -10px; top: -10px; border-right: 0; border-bottom: 0; } .tv-c.tl::after { left: -5px; top: -5px; }
.tv-c.tr { right: -10px; top: -10px; border-left: 0; border-bottom: 0; } .tv-c.tr::after { right: -5px; top: -5px; }
.tv-c.bl { left: -10px; bottom: -10px; border-right: 0; border-top: 0; } .tv-c.bl::after { left: -5px; bottom: -5px; }
.tv-c.br { right: -10px; bottom: -10px; border-left: 0; border-top: 0; } .tv-c.br::after { right: -5px; bottom: -5px; }
.tv-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 14px 4px 2px; }
.tv-live { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--f-x); letter-spacing: .24em; color: var(--ink2); text-transform: uppercase; }
.tv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--blood2); box-shadow: 0 0 10px var(--blood2); animation: blink 1.6s infinite; }
.tv-acts { display: inline-flex; align-items: center; gap: 22px; }
.tv-yt { text-decoration: none; font: 500 11px/1 var(--f-x); letter-spacing: .22em; color: var(--ink2); text-transform: uppercase; border-bottom: 1px solid var(--line2); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.tv-yt:hover { color: var(--gold2); border-color: var(--gold); }
#tvSound[aria-pressed="true"] { color: var(--gold2); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255, 106, 26, .35); }

/* ------------------------------------------------------------- support */
.support { position: relative; isolation: isolate; overflow: clip; padding: clamp(110px, 13vw, 200px) 0 clamp(90px, 10vw, 150px); background: linear-gradient(180deg, var(--bg), #0a0303 30%, #070202); border-top: 1px solid var(--line); }
.sp-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 76% 82%, rgba(190, 24, 8, .38), transparent 70%), radial-gradient(ellipse 80% 30% at 70% 100%, rgba(255, 90, 20, .22), transparent 70%), radial-gradient(ellipse 40% 40% at 10% 20%, rgba(120, 10, 6, .14), transparent 70%); }
.sp-bg::after { content: ""; position: absolute; inset: 0; background: var(--rock); opacity: .045; mix-blend-mode: screen; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "head fig" "body fig"; column-gap: clamp(30px, 4vw, 72px); align-items: start; }
.sp-head { grid-area: head; }
.sp-head .lede { margin: 1.6rem 0 0; }
.sp-body { grid-area: body; display: grid; gap: clamp(56px, 6vw, 84px); margin-top: clamp(44px, 5vw, 70px); }

/* Diablo: pinned beside the copy, rises out of the fire as the section arrives */
.dia { grid-area: fig; position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; display: grid; align-content: end; justify-items: center; padding-bottom: 3vh; }
.dia-fig { position: relative; width: min(100%, 70vh); transform: translateY(calc((1 - var(--sp, 1)) * 26vh)) scale(calc(.9 + var(--sp, 1) * .1)); transform-origin: 50% 100%; will-change: transform; }
.dia-fig picture { display: block; animation: breathe 5s ease-in-out infinite; transform-origin: 50% 100%; }
.dia-fig img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(255, 50, 20, .28)) drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
@keyframes breathe { 50% { transform: scale(1.012, 1.018); } }
/* darkness he climbs out of, and the flash when he is struck: both cut to his silhouette */
.dia-shade, .dia-hit { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url("../img/diablo-sm.webp") center / 100% 100% no-repeat; mask: url("../img/diablo-sm.webp") center / 100% 100% no-repeat; }
.dia-shade { background: #050101; opacity: calc(1 - var(--sp, 1)); }
.dia-hit { background: #ff2a10; mix-blend-mode: screen; opacity: 0; }
.dia.hit .dia-hit { animation: hit .6s ease-out; }
.dia.hit .dia-fig picture { animation: shake .45s ease-out, breathe 5s ease-in-out infinite; }
@keyframes hit { 0% { opacity: .75; } 100% { opacity: 0; } }
@keyframes shake { 20% { transform: translateX(-8px) rotate(-.6deg); } 45% { transform: translateX(6px) rotate(.4deg); } 70% { transform: translateX(-3px); } }
.dia-eye { position: absolute; width: 4.6%; aspect-ratio: 1; margin: -2.3% 0 0 -2.3%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fffbe0 0 12%, rgba(255, 220, 90, .95) 22%, rgba(255, 120, 20, .45) 45%, transparent 70%);
  opacity: calc(var(--sp, 1) * 1.6 - .6); animation: eye 2.6s ease-in-out infinite; mix-blend-mode: screen; transition: transform .4s var(--ease); }
.dia-eye.a { left: 68.3%; top: 26%; } .dia-eye.b { left: 73%; top: 27.2%; animation-delay: -.3s; }
@keyframes eye { 50% { filter: brightness(1.5); transform: scale(1.25); } }
.support:has(.donate:hover, .donate:focus-visible) .dia-eye { transform: scale(2.1); animation-duration: .5s; }
.support:has(.donate:hover, .donate:focus-visible) .dia-fire { filter: brightness(1.5); }
.dia-fire { position: absolute; left: -10%; right: -10%; bottom: 0; height: 60%; pointer-events: none; transition: filter .6s; }
.dia-fire i { position: absolute; left: 50%; bottom: 0; border-radius: 50%; filter: blur(30px); mix-blend-mode: screen; }
.dia-fire i:nth-child(1) { width: 90%; height: 46%; margin-left: -45%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 70, 10, .55), transparent 70%); animation: flick 2.3s ease-in-out infinite alternate; }
.dia-fire i:nth-child(2) { width: 60%; height: 70%; margin-left: -34%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 150, 40, .32), transparent 65%); animation: flick 1.7s ease-in-out -.6s infinite alternate; }
.dia-fire i:nth-child(3) { width: 120%; height: 24%; margin-left: -60%; background: radial-gradient(ellipse at 50% 100%, rgba(200, 20, 6, .7), transparent 70%); animation: flick 3.1s ease-in-out -1.2s infinite alternate; }
@keyframes flick { 0% { opacity: .65; transform: scaleY(.9); } 60% { opacity: 1; transform: scaleY(1.08) translateX(2%); } 100% { opacity: .8; transform: scaleY(1); } }
.dia-plate { position: relative; display: grid; justify-items: center; gap: 6px; margin-top: -2vh; padding: 14px 26px 12px; min-width: min(320px, 90%); text-align: center;
  background: linear-gradient(180deg, rgba(24, 16, 13, .94), rgba(8, 5, 4, .94)); border: 1px solid #0b0908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px #5a5047, 0 0 0 3px #0d0a09, 0 20px 40px rgba(0, 0, 0, .6);
  opacity: var(--sp, 1); }
.dia-plate b { font: 900 clamp(26px, 2.2vw, 36px)/1 var(--f-x); letter-spacing: .08em; background: var(--metal-red); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255, 60, 20, .5)); }
.dia-plate span { font: 500 10px/1 var(--f-x); letter-spacing: .26em; color: var(--ink2); text-transform: uppercase; }
.dia-hp { display: block; width: 100%; height: 8px; margin-top: 6px; background: #120403; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 164, 99, .3); }
.dia-hp i { display: block; height: 100%; background: linear-gradient(180deg, #ff6a50, #b8100a 55%, #5a0503); box-shadow: 0 0 12px rgba(255, 40, 20, .6); }
.dia-plate small { font: italic 400 15px/1.2 var(--f-b); color: var(--mute); }

.vow { position: relative; margin: 0; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-left: 2px solid var(--blood2); background: linear-gradient(90deg, rgba(142, 12, 12, .2), rgba(142, 12, 12, .04) 70%, transparent); }
.vow::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, #ffb070, transparent); box-shadow: 0 0 18px rgba(255, 106, 26, .8); animation: vowFlow 3.5s ease-in-out infinite; background-size: 100% 200%; }
@keyframes vowFlow { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
.vow p { margin: 0; font: italic 400 clamp(21px, 1.1vw + 13px, 29px)/1.38 var(--f-b); color: var(--ink); text-wrap: pretty; }
.vow em { color: var(--gold2); }
.vow footer { margin-top: 18px; font: 500 11px/1 var(--f-x); letter-spacing: .26em; color: var(--blood2); text-transform: uppercase; }
.vow footer::before { content: "— "; }

.road-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 30px; }
.road-h { margin: 0; font: 700 clamp(18px, .9vw + 11px, 24px)/1.1 var(--f-x); letter-spacing: .1em; color: var(--gold2); text-transform: uppercase; }
.road-n { font: 500 11px/1 var(--f-x); letter-spacing: .24em; color: var(--mute); text-transform: uppercase; }
.road-n b { font-size: 1.6em; color: var(--ember); text-shadow: 0 0 12px rgba(255, 106, 26, .7); }
.road-track { --rp: 0; position: relative; display: grid; grid-template-columns: repeat(16, 1fr); align-items: center; height: 46px; margin: 0; padding: 0; list-style: none; }
.road-track::before, .road-track::after { content: ""; position: absolute; left: 3.125%; top: 50%; height: 2px; margin-top: -1px; }
.road-track::before { right: 3.125%; background: repeating-linear-gradient(90deg, rgba(200, 164, 99, .3) 0 6px, transparent 6px 10px); }
.road-track::after { width: calc(93.75% * var(--rp)); background: linear-gradient(90deg, var(--gold2), var(--ember)); box-shadow: 0 0 12px rgba(255, 106, 26, .9); transition: width 2.4s var(--ease) .5s; }
.road.on .road-track { --rp: .035; }
.road-track li { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; outline: none; cursor: default; }
.road-track li > i { width: 12px; height: 12px; transform: rotate(45deg); background: #17110e; border: 1px solid rgba(200, 164, 99, .45); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.road-track li:hover > i, .road-track li:focus-visible > i { transform: rotate(45deg) scale(1.5); border-color: var(--gold2); }
.road-track li.mark > i { border-color: rgba(255, 70, 40, .8); background: #2a0805; }
.road-track li.done > i { width: 16px; height: 16px; background: var(--gold2); border-color: #fff4cf; box-shadow: 0 0 0 4px rgba(255, 106, 26, .2), 0 0 18px var(--ember); animation: here 1.8s ease-in-out infinite; }
@keyframes here { 50% { box-shadow: 0 0 0 9px rgba(255, 106, 26, 0), 0 0 26px var(--ember); } }
.road-track li.boss > i { display: none; }
.road-track li.boss svg { width: 30px; height: 30px; fill: none; stroke: var(--blood2); stroke-width: 6; filter: drop-shadow(0 0 8px rgba(208, 32, 28, .9)); animation: bossPulse 2.2s ease-in-out infinite; }
@keyframes bossPulse { 50% { filter: drop-shadow(0 0 16px rgba(255, 40, 20, 1)); transform: scale(1.1); } }
.road-track li:nth-child(4n):not(:last-child)::after { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line2); }
.road-track em { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font: 500 9px/1 var(--f-x); font-style: normal; letter-spacing: .2em; white-space: nowrap; color: var(--gold2); text-transform: uppercase; }
.road-track li.done em { left: 0; transform: none; }
.road-track li.boss em { left: auto; right: 0; transform: none; color: var(--blood2); }
.road-track .tt { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 3; padding: 10px 14px; white-space: nowrap; pointer-events: none;
  font: 500 10px/1.5 var(--f-x); letter-spacing: .16em; color: var(--ink2); text-transform: uppercase;
  background: rgba(6, 3, 3, .96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s, transform .25s var(--ease); }
.road-track .tt b { display: block; font-size: 12px; color: var(--gold2); }
.road-track .tt b.red { color: #ff6a50; }
.road-track li:nth-child(-n+3) .tt { left: 0; transform: translate(0, 6px); }
.road-track li:nth-last-child(-n+3) .tt { left: auto; right: 0; transform: translate(0, 6px); }
.road-track li:hover .tt, .road-track li:focus-visible .tt { opacity: 1; transform: translate(-50%, 0); }
.road-track li:nth-child(-n+3):hover .tt, .road-track li:nth-child(-n+3):focus-visible .tt,
.road-track li:nth-last-child(-n+3):hover .tt, .road-track li:nth-last-child(-n+3):focus-visible .tt { transform: none; }
.road-tiers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; text-align: center; font: 500 10px/1 var(--f-x); letter-spacing: .26em; color: var(--mute); text-transform: uppercase; }
.road-tiers span:last-child { color: var(--blood2); text-shadow: 0 0 10px rgba(208, 32, 28, .6); }

.forge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.forge-c { position: relative; padding: 24px 22px 26px; overflow: hidden; background: linear-gradient(180deg, rgba(34, 24, 20, .55), rgba(10, 6, 5, .6)); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease), box-shadow .4s; }
.forge-c::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ember), transparent); transform: scaleX(0); transition: transform .6s var(--ease); }
.forge-c:hover { border-color: var(--line2); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 40px rgba(208, 32, 28, .12); }
.forge-c:hover::after { transform: scaleX(1); }
.forge-c svg { width: 30px; height: 30px; color: var(--ember); filter: drop-shadow(0 0 8px rgba(255, 106, 26, .6)); }
.forge-c h4 { margin: 16px 0 8px; font: 700 15px/1.25 var(--f-x); letter-spacing: .1em; color: var(--gold2); text-transform: uppercase; }
.forge-c p { margin: 0; font-size: .98em; line-height: 1.5; color: var(--ink2); }

.offer { position: relative; padding: clamp(26px, 3vw, 42px);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(142, 12, 12, .16), transparent 70%), linear-gradient(180deg, #16100e, #090605); border: 1px solid #0b0908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px #5a5047, 0 0 0 4px #0d0a09, 0 0 0 5px rgba(200, 164, 99, .35), 0 30px 80px rgba(0, 0, 0, .7), 0 0 120px rgba(208, 32, 28, .16); }
.offer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--rock); opacity: .05; mix-blend-mode: screen; }
.offer > * { position: relative; }
.offer-h { margin: 0 0 26px; text-align: center; font: 900 clamp(26px, 1.6vw + 14px, 38px)/1 var(--f-x); letter-spacing: .03em; }
.offer-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer-tiers button, .offer-freq button { font: 500 13px/1.25 var(--f-x); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s, color .25s; }
.offer-tiers button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; text-align: left; letter-spacing: .05em; color: #e8e4dc; background: rgba(0, 0, 0, .45); border: 1px solid rgba(200, 164, 99, .2); }
.offer-tiers .magic .it { color: #9b9bff; }
.offer-tiers .unique .it { color: var(--unique); }
.offer-tiers b { flex: none; font: 700 19px/1 var(--f-x); color: var(--gold2); }
.offer-tiers button:hover, .offer-freq button:hover { border-color: rgba(200, 164, 99, .5); }
.offer-tiers button.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(142, 12, 12, .38), rgba(60, 6, 4, .3)); box-shadow: inset 0 0 0 1px rgba(244, 220, 158, .22), 0 0 26px rgba(208, 32, 28, .35); }
.offer-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.offer-own { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(200, 164, 99, .2); transition: border-color .25s, box-shadow .25s; }
.offer-own span { font: 700 18px/1 var(--f-x); color: var(--gold2); }
.offer-own input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 15px/1 var(--f-b); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.offer-own input::placeholder { color: var(--mute); font-style: italic; }
.offer-own input::-webkit-inner-spin-button, .offer-own input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.offer-own:focus-within, .offer-own.on { border-color: var(--gold); box-shadow: 0 0 22px rgba(208, 32, 28, .3); }
.offer-freq { display: flex; border: 1px solid rgba(200, 164, 99, .2); background: rgba(0, 0, 0, .45); }
.offer-freq button { height: 48px; padding: 0 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); background: none; border: 0; }
.offer-freq button.on { color: var(--gold2); background: rgba(142, 12, 12, .35); box-shadow: inset 0 0 0 1px rgba(200, 164, 99, .45); }
.donate { width: 100%; margin-top: 24px; }
.donate svg { color: #ff5a40; filter: drop-shadow(0 0 6px rgba(255, 60, 30, .9)); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.22); } 30% { transform: scale(1.05); } }
.pay { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; font: 500 10px/1 var(--f-x); letter-spacing: .22em; color: var(--ink2); text-transform: uppercase; }
.pay > svg { width: 13px; height: 13px; color: var(--gold); }
.pay-b { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 5px; font: 700 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; text-transform: none; }
.pay-b.stripe { background: #635bff; color: #fff; }
.pay-b.paypal { background: #ffc439; color: #009cde; font-style: italic; }
.pay-b.paypal b { color: #003087; }
.offer-note { margin: 16px 0 0; text-align: center; font-size: 15px; font-style: italic; color: var(--mute); }

@media (max-width: 980px) {
  .sp-grid { grid-template-columns: 1fr; grid-template-areas: "head" "fig" "body"; }
  .dia { position: relative; height: auto; padding: 4vh 0 0; }
  .dia-fig { width: min(88vw, 62vh); }
}
@media (max-width: 680px) {
  .forge-grid { grid-template-columns: 1fr; }
  .tv-c { display: none; }
  .tv-bar { justify-content: center; }
  .road-track li > i { width: 9px; height: 9px; }
  .road-track li.done > i { width: 12px; height: 12px; }
  .road-track li.boss svg { width: 22px; height: 22px; }
  .road-tiers { font-size: 8px; letter-spacing: .14em; }
}
@media (max-width: 440px) {
  .offer-tiers { grid-template-columns: 1fr; }
  .offer-freq { flex: 1 1 100%; } .offer-freq button { flex: 1; }
}

/* ------------------------------------------------------------- footer */
.foot { position: relative; padding: 80px var(--gut) 40px; text-align: center; background: #030202; border-top: 1px solid var(--line); overflow: hidden; }
.foot-logo { width: min(420px, 70vw); margin: 0 auto; opacity: .9; filter: drop-shadow(0 0 30px rgba(255, 80, 20, .3)); }
.foot-quote { margin: 30px 0 0; font: italic 400 clamp(20px, 1.6vw + 10px, 30px)/1.3 var(--f-b); color: var(--ink2); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin: 40px 0 0; }
.foot-links a { text-decoration: none; font: 500 11px/1 var(--f-x); letter-spacing: .24em; color: var(--ink2); transition: color .3s; }
.foot-links a:hover { color: var(--gold2); }
.legal { max-width: 760px; margin: 40px auto 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
.copy { margin-top: 18px; font: 500 10px/1 var(--f-x); letter-spacing: .24em; color: #4d4236; }

/* ornament divider */
.orn { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 26px; color: var(--gold); }
.orn::before, .orn::after { content: ""; width: min(120px, 18vw); height: 1px; background: linear-gradient(90deg, transparent, var(--line2)); }
.orn::after { transform: scaleX(-1); }
.orn svg { width: 26px; height: 26px; fill: none; stroke: var(--blood2); stroke-width: 5; filter: drop-shadow(0 0 6px rgba(208, 32, 28, .8)); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .dock-nav { display: none; }
  .menu-btn { display: block; }
  .tracker { display: none; }
}
@media (max-width: 980px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .sel { grid-template-columns: 1fr; }
  .sel-tabs { grid-template-columns: repeat(3, 1fr); }
  .sel-tab { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px; }
  .sel-tab img { width: 100%; height: 80px; }
  .sel-tab .cn { font-size: 17px; }
  .sel-tab:hover, .sel-tab[aria-selected="true"] { transform: translateY(-4px); }
  .sel-tab[aria-selected="true"]::after { display: none; }
  .sel-view { min-height: 0; }
  .beasts, .spells { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2) { border-right: 0; }
  .counter:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(2) { border-right: 0; }
  .specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .keys { grid-template-columns: repeat(2, 1fr); }
  .minor { grid-template-columns: 1fr; }
  .gauge { display: none; }
  .rb-hud { grid-template-columns: repeat(2, auto); gap: 10px 22px; }
}
@media (max-width: 680px) {
  .dock { height: 62px; }
  .dock-logo { width: 74px; }
  .snd .t { display: none; }
  .hud.tl, .hud.tr { top: 76px; font-size: 9px; }
  .hud.tr { top: 120px; }
  .hud.bl, .hud.br { display: none; }
  .beasts, .spells { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .sel-info { padding: 24px 20px; }
  .sel-view::after { background: linear-gradient(0deg, rgba(4,2,2,.96) 30%, rgba(4,2,2,.6) 70%, rgba(4,2,2,.2)); }
  .sel-img { position: relative; height: 240px; }
  .stats li { grid-template-columns: 84px 1fr 60px; font-size: 10px; }
  .orb { --s: 50px; bottom: 12px; }
  .orb-life { left: 12px; } .orb-mana { right: 12px; }
  .rb-bar { display: none; }
  .rb-cap.c1 { top: 11vh; transform: none; width: auto; right: var(--gut); }
  .rb-hud { left: calc(var(--gut) + 64px); }
  .rb-cap.c2 { bottom: 20vh; }
  .rb-hud { bottom: 18px; }
  .souls-top { flex-direction: column; align-items: start; }
  .lb .nav { top: auto; bottom: 18px; margin: 0; }
  .lb .prev { left: calc(50% - 70px); } .lb .next { right: calc(50% - 70px); }
}
/* touch: horizontal souls become a native swipe row */
.souls.native { height: auto !important; }
.souls.native .souls-pin { position: relative; height: auto; padding: clamp(96px, 14vw, 160px) 0; }
.souls.native .souls-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; }
.souls.native .souls-track::-webkit-scrollbar { display: none; }
.souls.native .soul { scroll-snap-align: center; height: 480px; }
.souls.native .soul q { max-height: 8em; opacity: 1; }
.souls.native .souls-prog { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-r], .split .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
  .grain { display: none; }
}
