/* Ready Check landing. Dark stone and forged gold from the game's own menus
   (Diablo IV and WoW frames as the reference), the logo's crystal for focus,
   WoW's ready-check green for "ready". Telegraph red never appears here. */
:root {
  --well: #0d0e12;
  --stone: #16171d;
  --slab: #1f2129;
  --slab-hi: #2a2c36;
  --edge: #3a3d4a;
  --gold: #eab84a;
  --gold-hi: #ffd98a;
  --gold-lo: #9a6a1e;
  --crystal: #74ccff;
  --ink: #ede6d6;
  --dim: #a7a196;
  --ready: #4fc760;
  --display: "Grenze", Georgia, serif;
  --body: "Noto Sans", system-ui, sans-serif;
  --wrap: 1200px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--stone) var(--grain); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: -.005em; }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); text-shadow: 0 2px 0 #000, 0 0 40px rgba(0,0,0,.6); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.lede { color: var(--dim); max-width: 34em; margin-top: 1rem; font-size: 1.125rem; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: .6rem 1rem; background: var(--gold); color: #1b1307; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--crystal); outline-offset: 3px; }
button { font: inherit; color: inherit; }

/* ---------- buttons: forged gold and dark slab ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.6rem; border-radius: 4px; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .12s ease, filter .12s ease, box-shadow .2s ease; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .6s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); filter: brightness(.92); }
.btn-gold { color: #20160a; border: 1px solid #4d3410; background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, #c58a2b 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(234,184,74,.25), 0 8px 24px -8px rgba(234,184,74,.45); }
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(234,184,74,.45), 0 10px 30px -8px rgba(234,184,74,.6); }
.btn-stone { color: var(--ink); border: 1px solid #4a4d5c; background: linear-gradient(180deg, #2c2e39, #1c1d24); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px -8px #000; }
.btn-stone:hover { border-color: var(--gold-lo); }
.btn-stone::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9375rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { color: var(--dim); text-underline-offset: 3px; }
.link:hover { color: var(--gold-hi); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 2rem; padding: .7rem max(24px, calc((100% - var(--wrap)) / 2)); transition: background .25s ease, box-shadow .25s ease, padding .25s ease; }
.nav.is-stuck { background: rgba(16,17,22,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(234,184,74,.18), 0 10px 30px -12px #000; padding-block: .45rem; }
/* the hero carries the big logo, so the nav's appears once the hero scrolls away */
.nav-logo { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.nav-logo img { width: 72px; }
.nav.is-stuck .nav-logo { opacity: 1; transform: none; pointer-events: auto; }
.nav nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav nav a { position: relative; text-decoration: none; font-weight: 500; color: var(--dim); padding: .35rem 0; transition: color .15s ease; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.nav nav a[aria-current]::after { transform: scaleX(1); }

/* ---------- hero: the Sevarog pull ---------- */
.hero { position: relative; min-height: max(640px, min(100svh, 1000px)); display: grid; grid-template-rows: 1fr auto; overflow: hidden; background: var(--well); }
/* mirrored so the giant and the party stand right of the copy, the party clear of the ready check */
.hero-shot { position: absolute; top: 0; left: 9%; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; transform: scaleX(-1); will-change: translate, scale; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 22%); mask-image: linear-gradient(270deg, transparent 0, #000 22%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(13,14,18,.92) 0%, rgba(13,14,18,.66) 28%, rgba(13,14,18,.08) 50%, transparent 62%),
  linear-gradient(0deg, var(--stone) 0%, rgba(22,23,29,.35) 9%, transparent 22%),
  linear-gradient(180deg, rgba(13,14,18,.7), transparent 18%); }
/* the floor fade sits over the mist and embers too, so the hero always ends in the page's stone */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1; pointer-events: none; background: var(--grain), var(--stone); -webkit-mask-image: linear-gradient(0deg, #000 12%, rgba(0,0,0,.6) 45%, transparent); mask-image: linear-gradient(0deg, #000 12%, rgba(0,0,0,.6) 45%, transparent); }
.hero-body { position: relative; z-index: 2; align-self: center; width: min(var(--wrap), 100% - 48px); margin: 7rem auto 2rem; }
.hero-logo img { width: clamp(240px, 24vw, 360px); filter: drop-shadow(0 12px 30px rgba(0,0,0,.7)); margin-left: -14px; }
.hero-pitch { max-width: 22em; margin-top: 1.25rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; text-shadow: 0 1px 2px #000; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* the ready check, WoW's raid popup in the game's frame */
.check { position: relative; z-index: 2; width: min(var(--wrap), 100% - 48px); margin: 0 auto 3rem; }
.check-title { font: 600 1.25rem/1 var(--display); color: var(--gold); margin-bottom: .7rem; letter-spacing: .01em; }
.check-row { display: flex; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.seat { --c: var(--gold); position: relative; width: 68px; aspect-ratio: 1; border-radius: 6px; background: var(--well); box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 0 3px color-mix(in srgb, var(--c) 35%, #1c1d24), 0 10px 24px -10px #000; }
.seat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 6px; filter: grayscale(.85) brightness(.55); transition: filter .35s ease; }
.seat-tick { position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7fe28b, var(--ready) 55%, #2a8a37); color: #fff; box-shadow: 0 0 0 2px var(--well), 0 0 14px rgba(79,199,96,.55); transform: scale(0); opacity: 0; }
.seat-tick svg { width: 15px; height: 15px; }
.seat.is-ready { box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 0 3px var(--c), 0 0 22px -4px var(--c), 0 10px 24px -10px #000; transition: box-shadow .35s ease; }
.seat.is-ready img { filter: none; }
.seat.is-ready .seat-tick { animation: tick .42s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes tick { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.seat-you { box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 0 3px var(--gold-lo); background: radial-gradient(circle at 50% 40%, #2c2a24, var(--well)); }
.seat-you a, .seat-you > .you-mark { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; border-radius: 6px; }
.you-mark { font: 700 2.4rem/1 var(--display); color: var(--gold); text-shadow: 0 0 18px rgba(234,184,74,.6); }
.check.is-waiting .seat-you, .join .seat-you:not(.is-ready) { animation: waiting 1.6s ease-in-out infinite; }
@keyframes waiting { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 0 3px var(--gold), 0 0 26px -2px rgba(234,184,74,.7); } }
.seat-you.is-ready { animation: none; box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 0 3px var(--ready), 0 0 22px -4px var(--ready); }
.seat-you a:hover .you-mark { color: var(--gold-hi); }
/* WoW's ready-check countdown: it drains while the raid waits, and fills green once you ready up */
.check-timer { width: calc(6 * 68px + 5 * .7rem); height: 5px; margin-top: 1rem; border-radius: 3px; background: rgba(0,0,0,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.check-timer i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: left; }
.check.is-waiting .check-timer i { animation: drain 24s linear forwards; }
@keyframes drain { to { transform: scaleX(.12); } }
.check.is-done .check-timer i { animation: none; transform: none; background: linear-gradient(90deg, #2a8a37, #7fe28b); transition: transform .4s ease; }

/* ---------- sections open under a forged rule, Diablo IV's divider ---------- */
section { position: relative; }
.raid::before, .bosses::before, .heroes::before, .media::before, .join::before { content: ""; position: absolute; top: 0; left: 50%; z-index: 2; width: min(760px, 86%); height: 18px; transform: translateX(-50%); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 18'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23eab84a' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23eab84a' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%23eab84a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect y='8.5' width='760' height='1' fill='url(%23g)'/%3E%3Cpath d='M380 1l8 8-8 8-8-8z' fill='%2316171d' stroke='%23eab84a' stroke-width='1.5'/%3E%3Cpath d='M380 5.5l3.5 3.5-3.5 3.5-3.5-3.5z' fill='%23eab84a'/%3E%3Ccircle cx='356' cy='9' r='1.6' fill='%23eab84a' opacity='.8'/%3E%3Ccircle cx='404' cy='9' r='1.6' fill='%23eab84a' opacity='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat; clip-path: inset(0); transition: clip-path 1.3s cubic-bezier(.65,0,.25,1); }
.raid::before { display: none; }

/* ---------- the raid ---------- */
.raid { padding: 6rem 0 5rem; }
.raid-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.modes { margin: 2.25rem 0 0; display: grid; gap: 1.1rem; }
.mode { padding-left: 1.1rem; border-left: 2px solid var(--gold-lo); }
.mode dt { font: 600 1.45rem/1.1 var(--display); color: var(--gold); }
.mode dd { margin: .2rem 0 0; color: var(--dim); }
.frame { margin: 0; padding: 0; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; background: var(--well); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 0 4px rgba(0,0,0,.35), 0 30px 60px -24px #000; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.zoom:hover img { transform: scale(1.025); filter: brightness(1.08); }
.raid-shot { margin: 0; }
.shot-frame { position: relative; }
.raid-shot .zoom { aspect-ratio: 16 / 9; }
/* numbered pins over the HUD, each matched to its legend line */
.pin { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); color: #20160a; font: 700 .8rem/1 var(--body); box-shadow: 0 0 0 2px rgba(13,14,18,.9), 0 4px 10px rgba(0,0,0,.6); pointer-events: none; transition: transform .2s ease, box-shadow .2s ease; }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(234,184,74,.6); opacity: 0; transition: opacity .2s ease, inset .2s ease; }
.pin.is-lit { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 2px rgba(13,14,18,.9), 0 0 20px rgba(234,184,74,.8); }
.pin.is-lit::after { opacity: 1; inset: -9px; }
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: pin; }
.legend li { position: relative; padding: .35rem .5rem .35rem 2.1rem; border-radius: 4px; color: var(--dim); font-size: .95rem; line-height: 1.4; cursor: default; transition: background .15s ease, color .15s ease; counter-increment: pin; }
.legend li::before { content: counter(pin); position: absolute; left: .45rem; top: .4rem; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold-lo); color: var(--gold); font: 700 .7rem/1 var(--body); }
.legend b { color: var(--ink); font-weight: 600; }
.legend li.is-lit { background: rgba(234,184,74,.08); color: var(--ink); }
.legend li.is-lit::before { background: var(--gold); color: #20160a; border-color: var(--gold); }
.legend li:focus-visible { outline-offset: 0; }
/* the fact band: a dark slab split by hairlines, each fact under its own glyph */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; padding: 0; list-style: none; border: 1px solid #34302a; border-radius: 6px; background: linear-gradient(180deg, rgba(31,33,41,.9), rgba(22,23,29,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 40px -24px #000; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1.3rem 1.4rem; }
.facts li + li { border-left: 1px solid #2c2a26; }
.facts svg { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: var(--gold); background: radial-gradient(circle at 50% 35%, #34302a, #1a1a1f); box-shadow: inset 0 0 0 1px rgba(234,184,74,.35); }
.facts b { font: 600 1.3rem/1.1 var(--display); color: var(--ink); }
.facts span { color: var(--dim); font-size: .9rem; line-height: 1.35; }

/* ---------- bosses: the game's boss board ---------- */
.bosses { padding: 6rem 0 7rem; overflow: hidden; isolation: isolate; }
/* the chosen boss's arena, blurred into the band behind the board, so each fight brings its own light */
.bosses-mood { position: absolute; inset: -14% -10%; z-index: -1; width: 120%; height: 128%; object-fit: cover; filter: blur(48px) saturate(1.5) brightness(.6); transition: opacity .35s ease; }
.bosses::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), linear-gradient(180deg, var(--stone) 0%, rgba(22,23,29,.2) 22%, rgba(22,23,29,.2) 78%, var(--stone) 100%); }
.board { position: relative; display: grid; grid-template-columns: 280px 1fr; margin-top: 2.75rem; border: 1px solid #4b4031; border-radius: 6px; background: var(--slab) var(--grain); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 0 4px rgba(0,0,0,.4), 0 40px 80px -30px #000; }
.board::before, .board::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--well); z-index: 3; }
.board::before { top: -7px; left: -7px; }
.board::after { bottom: -7px; right: -7px; }
.board-picks { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-right: 1px solid #34302a; background: rgba(0,0,0,.25); }
.pick { position: relative; display: flex; align-items: center; gap: .9rem; padding: 8px 12px 8px 8px; border: 0; border-radius: 4px; background: transparent; text-align: left; cursor: pointer; font-weight: 500; color: var(--dim); transition: background .15s ease, color .15s ease; }
.pick img { width: 58px; height: 58px; flex: none; object-fit: cover; object-position: 50% 32%; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #3b3e4b; filter: saturate(.6) brightness(.8); transition: filter .2s ease, box-shadow .2s ease; }
.pick:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.pick:hover img { filter: none; }
.pick[aria-selected="true"] { background: linear-gradient(90deg, rgba(234,184,74,.16), rgba(234,184,74,.02)); color: var(--gold-hi); }
.pick[aria-selected="true"]::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.pick[aria-selected="true"] img { filter: none; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold); }
.board-stage { position: relative; min-height: 520px; overflow: hidden; border-radius: 0 6px 6px 0; }
.stage-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: drift 24s ease-in-out infinite alternate; transform: translate(var(--bx, 0px), var(--by, 0px)); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.board-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,14,18,.95) 0%, rgba(13,14,18,.55) 26%, transparent 50%), radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0,0,0,.5)); }
.stage-copy { translate: var(--cx, 0px) var(--cy, 0px); transition: translate .8s cubic-bezier(.2,.8,.2,1); position: absolute; z-index: 1; left: clamp(1.5rem, 3vw, 2.5rem); right: clamp(1.5rem, 3vw, 2.5rem); bottom: clamp(1.5rem, 3vw, 2.25rem); }
.stage-copy h3 { font-size: clamp(2.2rem, 4vw, 3.25rem); color: var(--ink); text-shadow: 0 2px 0 #000, 0 0 30px #000; }
.stage-copy p { max-width: 36em; margin-top: .6rem; color: #d6cfc0; text-shadow: 0 1px 2px #000; }
.board-stage.is-swapping .stage-shot { animation: swap .6s cubic-bezier(.2,.7,.2,1), drift 24s ease-in-out infinite alternate; }
.board-stage.is-swapping .stage-copy { animation: copy .45s ease-out; }
@keyframes swap { from { opacity: 0; filter: brightness(1.7) saturate(.6) blur(6px); } }
@keyframes drift { from { scale: 1.03; translate: -1.2% .6%; } to { scale: 1.1; translate: 1.2% -1.4%; } }
@keyframes copy { from { opacity: 0; transform: translateY(8px); } }

/* ---------- heroes ---------- */
.heroes { padding: 5rem 0; }
.roster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; margin: 2.75rem 0 0; padding: 0; list-style: none; }
.card { position: relative; border-radius: 6px; overflow: hidden; background: var(--slab); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 0 1px #000, 0 20px 40px -20px #000; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 116px); height: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.card h3 { padding: 1.1rem 1.1rem 0; }
.role { display: flex; align-items: center; gap: .45rem; padding: .35rem 1.1rem 0; color: var(--ink); font-size: .95rem; font-weight: 500; }
.specs { padding: .2rem 1.1rem 1.15rem; color: var(--dim); font-size: .875rem; }
.role svg { width: 16px; height: 16px; color: var(--c); }
.card:hover { --ty: -4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px #000, 0 0 0 3px color-mix(in srgb, var(--c) 40%, transparent), 0 26px 50px -20px #000; }

/* ---------- media ---------- */
.media { padding: 5rem 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 1rem; margin-top: 2.75rem; }
.gallery .zoom { position: relative; aspect-ratio: 16 / 9; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease; }
.gallery .zoom.is-tilting { transition-duration: .1s, .2s; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(0deg, rgba(13,14,18,.92), transparent); text-align: left; font-size: .9rem; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.zoom:hover .cap, .zoom:focus-visible .cap { opacity: 1; transform: none; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.trailer { margin-top: 1rem; aspect-ratio: 16 / 9; }
.trailer iframe { width: 100%; height: 100%; border: 0; }

/* ---------- join ---------- */
.join { padding: 7rem 0; text-align: center; overflow: hidden; isolation: isolate; }
.join-mood { position: absolute; inset: -12% -2%; z-index: -2; width: 104%; height: 124%; object-fit: cover; filter: blur(6px) saturate(1.1) brightness(.5); }
.join::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), linear-gradient(180deg, var(--stone), rgba(22,23,29,.35) 25%, rgba(22,23,29,.35) 75%, var(--well)); }
.join-embers { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.join-body { display: flex; flex-direction: column; align-items: center; }
/* the ready check popup: a forged plate with gold corner studs */
.plate { position: relative; width: min(680px, 100% - 32px); padding: 3rem clamp(1.5rem, 5vw, 3.5rem) 2.5rem; border: 1px solid #4b4031; border-radius: 6px; background: linear-gradient(180deg, rgba(36,38,47,.94), rgba(22,23,29,.96)) , var(--grain); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 4px rgba(0,0,0,.25), 0 0 0 4px rgba(0,0,0,.4), 0 40px 90px -30px #000; backdrop-filter: blur(6px); }
.plate::before, .plate::after { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--well); }
.plate::before { left: -7px; }
.plate::after { right: -7px; }
.plate .signup { margin-inline: auto; }
.check-mini { justify-content: center; margin-bottom: 2.25rem; }
.check-mini .seat { width: 52px; }
.check-mini .seat-tick { width: 20px; height: 20px; right: -5px; bottom: -5px; }
.check-mini .seat-tick svg { width: 12px; height: 12px; }
.check-mini .you-mark { font-size: 1.9rem; }
.check-mini .seat.is-ready .seat-tick { animation: none; transform: none; opacity: 1; }
.check-mini .seat-you.is-ready .seat-tick { animation: tick .42s cubic-bezier(.3,1.6,.5,1) forwards; }
.signup { display: grid; grid-template-columns: 1fr auto; gap: .7rem; width: min(520px, 100%); margin-top: 2rem; }
.signup input { min-width: 0; padding: .85rem 1rem; border: 1px solid #4a4d5c; border-radius: 4px; background: var(--well); color: var(--ink); font: inherit; box-shadow: inset 0 2px 6px rgba(0,0,0,.5); transition: border-color .15s ease, box-shadow .15s ease; }
.signup input::placeholder { color: #6f6b64; }
.signup input:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(234,184,74,.25); }
.signup input[aria-invalid="true"] { border-color: #d0674f; }
.form-note { grid-column: 1 / -1; min-height: 1.6em; font-size: .95rem; text-align: left; }
.form-note.is-ok { color: #8ad995; }
.form-note.is-err { color: #f0a08c; }
.join-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }
.follow { display: contents; }
.follow a { color: var(--dim); text-decoration: none; }
.follow a:hover { color: var(--gold-hi); }
.steam-slot iframe { width: min(646px, 100%); height: 190px; border: 0; margin-top: 1.5rem; }

/* ---------- footer, lightbox, preview chip ---------- */
.foot { display: flex; align-items: center; gap: 2rem; padding: 2rem max(24px, calc((100% - var(--wrap)) / 2)); border-top: 1px solid rgba(255,255,255,.06); background: var(--well); color: var(--dim); font-size: .9rem; }
.foot-logo { width: 84px; }
.foot nav { display: flex; gap: 1.5rem; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.lightbox { max-width: min(1600px, 96vw); padding: 0; border: 1px solid var(--edge); border-radius: 6px; background: var(--well); color: var(--ink); }
.lightbox::backdrop { background: rgba(5,5,8,.88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; }
.lightbox button { position: absolute; top: 12px; right: 12px; }
.preview-chip { position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: .45rem .8rem; border-radius: 4px; background: #2b2410; border: 1px solid var(--gold-lo); color: var(--gold-hi); font-size: .85rem; cursor: pointer; }

/* ---------- motion: one opening, then the page answers the scroll and the pointer ---------- */
/* the opening: the arena lights up and pushes in, the logo flares, the copy and the ready check follow, then the heroes tick in */
.hero-embers { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
@media (min-width: 721px) { .hero-embers { -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 28%, #000 52%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 28%, #000 52%); } } /* the copy panel stays dark */
.js .hero-shot { animation: push 2.8s cubic-bezier(.16,.7,.2,1) both, breathe 26s 2.8s ease-in-out infinite alternate; }
@keyframes breathe { from { scale: 1.02; } to { scale: 1.07; } }
@keyframes push { from { scale: 1.16; filter: brightness(.25) saturate(.6); } 40% { filter: brightness(.8) saturate(.9); } to { scale: 1.02; filter: none; } }
.hero-logo { position: relative; }
.hero-logo::before { content: ""; position: absolute; left: -12%; top: -18%; width: 115%; height: 135%; z-index: -1; background: radial-gradient(closest-side, rgba(255,190,90,.38), rgba(234,140,40,.12) 55%, transparent); opacity: .3; pointer-events: none; }
.js .hero-logo::before { animation: flare 2.2s .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes flare { from { opacity: 0; scale: .7; } 35% { opacity: 1; scale: 1.06; } to { opacity: .3; scale: 1; } }
.js .hero-logo img { animation: rise 1.2s .4s cubic-bezier(.2,.8,.2,1) both; }
.js .hero-pitch { animation: rise .9s .8s cubic-bezier(.2,.8,.2,1) both; }
.js .hero-cta { animation: rise .9s .95s cubic-bezier(.2,.8,.2,1) both; }
.js .check { animation: rise .9s 1.15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
.hero-body, .check { will-change: opacity, translate; }

/* dividers forge outward from their diamond as each section arrives */
.js section:not(.hero):not(.is-seen)::before { clip-path: inset(0 50%); }

/* the HUD callouts drop onto the raid shot in order, each with a ping */
.js .pin { transition: transform .2s ease, box-shadow .2s ease, scale .5s cubic-bezier(.3,1.6,.5,1) var(--d), opacity .25s ease var(--d); }
.js .raid-shot:not(.is-seen) .pin { scale: 0; opacity: 0; }
.raid-shot.is-seen .pin::after { animation: ping 1s calc(var(--d) + .15s) ease-out; }
@keyframes ping { from { opacity: 1; inset: -3px; } to { opacity: 0; inset: -22px; } }

/* the class cards are dealt in, then tilt under the pointer with a light that follows it */
.js .roster .card { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, opacity .6s ease, translate .8s cubic-bezier(.2,.8,.2,1), rotate .8s cubic-bezier(.2,.8,.2,1); }
.js .roster:not(.is-seen) .card { opacity: 0; translate: 0 40px; rotate: -3deg; }
.roster .card:nth-child(2) { transition-delay: 0s, 0s, .08s, .08s, .08s; }
.roster .card:nth-child(3) { transition-delay: 0s, 0s, .16s, .16s, .16s; }
.roster .card:nth-child(4) { transition-delay: 0s, 0s, .24s, .24s, .24s; }
.roster .card:nth-child(5) { transition-delay: 0s, 0s, .32s, .32s, .32s; }
.roster .card.is-tilting { transition-duration: .1s, .2s, .6s, .8s, .8s; transition-delay: 0s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at var(--lx, 50%) var(--ly, 0%), rgba(255,236,190,.2), transparent 50%); opacity: 0; transition: opacity .3s ease; }
.card:hover::before { opacity: 1; }
/* the portrait sits deeper than the frame: it slides against the tilt */
.card img { scale: 1.06; translate: var(--px, 0px) var(--py, 0px); transition: translate .5s cubic-bezier(.2,.8,.2,1); }
.card.is-tilting img { transition-duration: .1s; }
.card > :not(img) { position: relative; background: var(--slab); } /* covers the portrait's scaled edge */

/* the signup's ready check replays when you reach it: the party ticks in, then waits on you */
.check-mini .seat img { transition: filter .35s ease; }
.js .join:not(.is-seen) .check-mini .seat:not(.seat-you) img { filter: grayscale(.85) brightness(.55); }
.js .check-mini .seat:not(.seat-you) .seat-tick { transition: opacity .25s ease var(--t), scale .42s cubic-bezier(.3,1.6,.5,1) var(--t); }
.js .check-mini .seat:not(.seat-you) img { transition-delay: var(--t); }
.js .join:not(.is-seen) .check-mini .seat:not(.seat-you) .seat-tick { opacity: 0; scale: .4; }
.check-mini .seat:nth-child(1) { --t: .4s; } .check-mini .seat:nth-child(2) { --t: .6s; } .check-mini .seat:nth-child(3) { --t: .8s; } .check-mini .seat:nth-child(4) { --t: 1s; } .check-mini .seat:nth-child(5) { --t: 1.2s; }

/* gallery shots drift inside their frames as the page scrolls */
[data-parallax="inner"] img { scale: 1.12; }

/* scroll-linked where the browser supports it: the raid shot lifts from a tilt as it arrives,
   the gallery's big shot opens out, and a gold thread under the nav tracks the page */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .raid-shot .shot-frame { transform-origin: 50% 100%; animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    @keyframes lift { from { transform: perspective(1400px) rotateX(16deg) scale(.92); opacity: .35; } }
    .gallery .g-wide { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes open { from { clip-path: inset(8% 10% round 6px); } to { clip-path: inset(0 round 6px); } }
    .facts li { animation: band linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    .facts li:nth-child(2) { animation-range: entry 18% cover 36%; } .facts li:nth-child(3) { animation-range: entry 26% cover 42%; } .facts li:nth-child(4) { animation-range: entry 34% cover 48%; }
    @keyframes band { from { opacity: 0; translate: 0 14px; } }
  }
  @supports (animation-timeline: scroll()) {
    .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); box-shadow: 0 0 8px rgba(234,184,74,.6); transform-origin: left; opacity: 0; transition: opacity .25s ease; animation: thread linear both; animation-timeline: scroll(root); }
    .nav.is-stuck::after { opacity: 1; }
    @keyframes thread { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .raid-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid #2c2a26; }
  .board { grid-template-columns: 1fr; }
  .board-picks { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #34302a; scrollbar-width: thin; }
  .pick { flex-direction: column; flex: none; gap: .4rem; padding: 8px; font-size: .85rem; text-align: center; }
  .pick[aria-selected="true"]::before { left: 10px; right: 10px; top: auto; bottom: -12px; width: auto; height: 3px; }
  .board-stage { min-height: 420px; border-radius: 0 0 6px 6px; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .hero::before { background: linear-gradient(0deg, var(--stone) 0%, rgba(13,14,18,.75) 40%, rgba(13,14,18,.55) 100%); }
  .hero-shot { left: 0; object-position: 45% 50%; }
  .seat { width: 48px; }
  .check-timer { width: calc(6 * 48px + 5 * .55rem); }
  .check-row { gap: .55rem; }
  .you-mark { font-size: 1.8rem; }
  /* the classes swipe sideways, a card and a half in view, rather than leaving the Archer alone on a row */
  .roster { display: flex; gap: .9rem; margin-inline: -24px; padding: 0 24px 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
  .roster .card { flex: 0 0 62%; scroll-snap-align: start; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid #2c2a26; }
  .signup { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .pin { width: 20px; height: 20px; font-size: .7rem; }
  .plate { padding-top: 2.25rem; }
  .foot { flex-wrap: wrap; gap: 1rem; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
