@font-face { font-family: "Cinzel"; font-weight: 600 700; font-display: swap; src: url("media/fonts/cinzel-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Cinzel"; font-weight: 600 700; font-display: swap; src: url("media/fonts/cinzel-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 600; font-display: swap; src: url("media/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 600; font-display: swap; src: url("media/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #0F1115;
  --surface: #15181E;
  --plate: #14111C;
  --line: #272B34;
  --brass: #D99B38;
  --brass-hi: #E8AE4E;
  --brass-dim: #8F6A2A;
  --bone: #F1EDE6;
  --muted: #B3AC9D;
  --faint: #8A8475;
  --display: "Cinzel", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --top: 60px;
  --rail: 0px;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
@media (min-width: 1024px) { :root { --rail: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); scrollbar-color: var(--brass-dim) var(--ground); overflow-x: clip; }
body { margin: 0; padding-left: var(--rail); background: var(--ground); color: var(--bone); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--brass); color: var(--ground); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
a { color: inherit; }
[id] { scroll-margin-top: var(--top); }
.px { image-rendering: pixelated; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 88rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 5rem); }
.ico { width: 1em; height: 1em; flex: none; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--brass); color: var(--ground); padding: 0.6rem 1rem; font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--brass); color: #171106; font: 600 1rem/1 var(--body); padding: 0.95rem 1.6rem; text-decoration: none; transition: background-color 0.15s, transform 0.1s; }
.btn:hover { background: var(--brass-hi); }
.btn:active { transform: translateY(1px); }
.btn .ico { transition: transform 0.3s var(--out); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }
.btn-lg { padding: 1.2rem 2.4rem; font-size: 1.125rem; }
.link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 0.35em; transition: color 0.15s; }
.link:hover { color: var(--brass-hi); }

/* Top bar and floor rail */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: clamp(1rem, 2vw, 1.5rem); background: rgb(15 17 21 / 0.95); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 1.125rem/1 var(--display); letter-spacing: 0.14em; text-decoration: none; }
.depth { margin: 0 auto 0 0.5rem; font: 600 0.8125rem/1 var(--display); letter-spacing: 0.08em; color: var(--brass); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .depth { display: none; } }
.top nav { display: none; gap: 2.25rem; margin-left: auto; margin-right: 1.5rem; }
.top nav a, .foot nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s; }
.top nav a:hover, .foot nav a:hover { color: var(--bone); }
@media (min-width: 720px) { .top nav { display: flex; } }

.rail { display: none; }
@media (min-width: 1024px) {
  .rail { display: block; position: fixed; inset: var(--top) auto 0 0; width: var(--rail); z-index: 10; background: var(--ground); border-right: 1px solid var(--line); }
  .rail ol { height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; padding-block: 1rem; }
  .rail a { position: relative; display: block; padding: 0.35rem 0.5rem; font: 600 0.9375rem/1 var(--display); color: var(--faint); text-decoration: none; font-variant-numeric: tabular-nums; transition: color 0.2s, transform 0.4s var(--out); }
  .rail a:hover { color: var(--bone); }
  .rail a::before { content: ""; position: absolute; left: -0.55rem; top: 50%; width: 7px; height: 7px; background: var(--brass); transform: translateY(-50%) rotate(45deg) scale(0); transition: transform 0.4s var(--out); }
  .rail a[aria-current] { color: var(--brass); transform: translateX(4px) scale(1.25); }
  .rail a[aria-current]::before { transform: translateY(-50%) rotate(45deg) scale(1); }
}

/* Hero */
.hero { display: grid; gap: 1.5rem 3rem; padding-top: calc(var(--top) + clamp(1.75rem, 4vw, 3.5rem)); padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.hero h1 { font-size: clamp(4.75rem, 19vw, 14.25rem); font-weight: 700; line-height: 0.82; letter-spacing: 0.02em; margin-left: -0.04em; }
.hero-copy p { max-width: 26rem; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 1.5rem; }
.hero-copy .note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1200px) { .hero { grid-template-columns: auto minmax(18rem, 26rem); justify-content: space-between; align-items: end; } .hero h1 { font-size: min(15vw, 15rem); } }

/* Floors */
.band { position: relative; overflow: hidden; height: max(168px, calc((100vw - var(--rail)) * 200 / 1280)); border-block: 2px solid var(--brass-dim); background: var(--plate); }
.band-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.walker { position: absolute; left: 33%; bottom: 12%; height: 66%; transform: scaleX(-1); filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.55)); }
.walker img { display: block; height: 100%; width: auto; max-width: none; }
.rival { position: absolute; left: 53%; bottom: 14%; width: auto; height: auto; max-height: 56%; max-width: 24%; filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.55)); }

.floor-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem 1.5rem; padding-block: 1.75rem clamp(3.5rem, 7vw, 5.5rem); }
.floor-num { font: 700 clamp(3.25rem, 7vw, 6rem)/0.8 var(--display); color: var(--brass); font-variant-numeric: tabular-nums; }
.floor-text h2 { font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: 0.03em; }
.floor-text p { margin-block: 0.6rem 0; color: var(--muted); max-width: 46ch; }
.foes { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: 0.6rem; margin-top: 1.5rem; max-width: 44rem; }
.foes li { display: grid; grid-template-rows: 5.5rem auto; gap: 0.5rem; padding: 0.6rem 0.4rem 0.55rem; background: var(--plate); border: 1px solid var(--line); text-align: center; font-size: 0.75rem; line-height: 1.25; color: var(--muted); }
.foes img { width: 100%; height: 100%; object-fit: contain; }
.rival.flip { transform: scaleX(-1); }
@media (max-width: 819px) {
  .walker { left: 20%; }
  .rival { left: 57%; max-width: 38%; }
  .foes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .foes li { grid-column: span 2; }
  .foes li:nth-child(n + 4) { grid-column: span 3; }
}
.boss { align-self: start; max-width: 22rem; margin-top: 0.75rem; background: var(--plate); border: 1px solid var(--brass-dim); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.9); }
.boss img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 1.25rem 1.25rem 0.25rem; }
.boss figcaption { padding: 0.7rem 1rem 0.85rem; font: 600 1rem/1.25 var(--display); letter-spacing: 0.04em; }
.boss figcaption span { display: block; margin-top: 0.3rem; font: 400 0.8125rem/1.2 var(--body); letter-spacing: 0; color: var(--muted); }
@media (min-width: 700px) {
  .floor-info { grid-template-columns: auto minmax(0, 1fr) minmax(0, clamp(15rem, 26vw, 21rem)); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
  .boss { grid-column: auto; position: relative; z-index: 1; margin-top: -5rem; }
}

/* Chambers: the stops between floors */
.chamber { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(4rem, 9vw, 7.5rem); }
.chamber h2 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); font-weight: 700; line-height: 1.02; letter-spacing: 0.02em; }
.lede { margin-top: 1rem; max-width: 54ch; font-size: 1.125rem; color: var(--muted); }

.class-grid { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.stage { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.stage-art { flex: none; filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.6)); }
.stage-art img { display: block; width: clamp(128px, 20vw, 192px); }
.stage-text h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 700; line-height: 1; }
.role { margin-top: 0.4rem; color: var(--brass); font-weight: 600; }
.role + p { margin-top: 0.9rem; max-width: 42ch; }
.passive { margin-top: 0.9rem; max-width: 42ch; font-size: 0.9375rem; color: var(--muted); }
.passive b { display: block; color: var(--bone); font-weight: 600; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.pick, .gem { font: inherit; color: var(--bone); background: var(--ground); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.pick { width: 100%; min-height: 4rem; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; font-size: 0.875rem; font-weight: 600; text-align: left; }
.pick img { height: 48px; width: 48px; object-fit: contain; }
.pick:hover, .gem:hover { border-color: var(--brass-dim); }
.pick[aria-pressed="true"], .gem[aria-pressed="true"] { border-color: var(--brass); background: #1E190F; color: var(--brass-hi); }
@media (min-width: 620px) {
  .picks { grid-template-columns: repeat(4, 1fr); }
  .pick { flex-direction: column; justify-content: center; gap: 0.4rem; padding: 0.9rem 0.4rem 0.7rem; font-size: 0.8125rem; text-align: center; }
  .pick img { height: 76px; width: 76px; }
}
@media (min-width: 1100px) { .class-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4rem; } }

.party { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.party h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; }
.party ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; margin-top: 2rem; }
.party li { display: grid; grid-template-rows: 185px auto auto; justify-items: center; text-align: center; }
.party img { align-self: end; margin-bottom: 0.75rem; image-rendering: pixelated; }
.party b { font: 600 1.125rem/1.2 var(--display); }
.party span { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 720px) { .party ul { grid-template-columns: repeat(4, 1fr); } }

.forge-grid { display: grid; gap: 3rem; }
.gear { display: grid; grid-template-columns: repeat(4, 80px); gap: 0.75rem 0.625rem; margin-top: 2.25rem; }
.gear li { display: grid; justify-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); }
.gear img { width: 80px; height: 80px; background: var(--ground); border: 1px solid var(--line); image-rendering: pixelated; }
.anvil { display: grid; justify-items: center; gap: 1.75rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ground); border: 1px solid var(--brass-dim); text-align: center; }
.item { position: relative; padding: 0 2.5rem 1rem 0; }
.item > img { display: block; width: 160px; height: 160px; }
.socket { position: absolute; right: 0; bottom: 0; width: 92px; height: 92px; display: grid; place-items: center; background: #15171C; border: 2px solid var(--brass); box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.9); }
.socket img { display: block; width: 80px; height: 80px; }
.readout { min-height: 6.5rem; }
.readout h3 { font-size: 1.375rem; font-weight: 600; color: var(--brass-hi); }
.readout p { margin-top: 0.4rem; max-width: 34ch; color: var(--muted); }
.gems { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.gem { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; }
.gem img { width: 40px; height: 40px; image-rendering: pixelated; }
.gem span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 960px) { .forge-grid { grid-template-columns: 1fr minmax(0, 30rem); align-items: center; gap: 5rem; } }

.ascend { background: var(--ground); border-bottom: 0; text-align: center; }
.ascend h2 { font-size: clamp(3rem, 11vw, 8rem); }
.ascend .lede { margin-inline: auto; }
.ascend .stage-art { display: inline-block; margin-bottom: 1.5rem; }
.ascend .stage-art img { width: clamp(128px, 16vw, 192px); }
.ascend .btn { margin-top: 2.25rem; }
.stores { margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--muted); font-size: 0.875rem; }
.stores ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.75rem; }
.stores li { padding: 0.5rem 1rem; border: 1px dashed #444A56; }

.foot { border-top: 1px solid var(--line); padding-block: 2.25rem; font-size: 0.875rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.foot .brand { color: var(--bone); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot nav a { padding-block: 0.5rem; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 1.25rem; padding: 2rem clamp(1.25rem, 6vw, 5rem); }
.lost h1 { font-size: clamp(2.5rem, 9vw, 6rem); line-height: 1; }
.lost p { color: var(--muted); max-width: 40ch; }

/* Motion: floors open as you reach them; on phones the arena drifts past the hero. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    .floor:not(#floor-01) .band { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    .floor:not(#floor-01) .floor-num { animation: drop linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
  @media (max-width: 767px) { .band-art { animation: drift 26s ease-in-out infinite alternate; } }
}
@keyframes open { from { clip-path: inset(30% 0); filter: brightness(0.6); } to { clip-path: inset(0); filter: brightness(1); } }
@keyframes drop { from { transform: translateY(-0.5em); opacity: 0.25; } to { transform: none; opacity: 1; } }
@keyframes drift { from { object-position: 40% 50%; } to { object-position: 60% 50%; } }

/* Tablets: the boss plate sits clear of the band so it never covers the opponent. */
@media (min-width: 700px) and (max-width: 819px) {
  .boss { margin-top: 0.25rem; }
  .walker { left: 27%; }
}
