:root {
  --bg: #0d0812;
  --lacquer: #1a1024;
  --lacquer-2: #24152f;
  --text: #ece4f6;
  --muted: #b3a9c6;
  --gold: #e8c46a;
  --gold-line: #c9a24a;
  --red: #8a2a30;
  --jade: #3fbf9a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, sans-serif;
}
h1, h2, h3, .logo, .eyebrow, .join-title { font-family: Georgia, 'Times New Roman', serif; }
a { color: var(--gold); }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Top navigation ------------------------------------------------------------ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px; background: linear-gradient(180deg, #0d0812ee, #0d081200);
}
.logo { display: flex; align-items: center; gap: 10px; color: #ffe2a0; font-size: 20px; font-weight: 700; text-decoration: none; text-shadow: 0 2px 6px #000; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(160deg, #8a2a30, #3a1018); border: 1px solid var(--gold-line); color: #ffe2a0; font-size: 18px; }
.topnav-links { display: flex; align-items: center; gap: 20px; }
.topnav-links a { color: #e8dcc0; text-decoration: none; font-weight: 600; text-shadow: 0 1px 4px #000; }
.topnav-links a:hover { color: #ffe2a0; }
.nav-cta { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--gold-line); background: #2a1520cc; }

/* --- Hero banner --------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 110px 16px 80px; text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d081255 0%, #0d081200 30%, #0d0812cc 82%, var(--bg) 100%), url('/img/bg-3.webp') center / cover;
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.08); } }
.hero-figures { position: absolute; inset: auto 0 0 0; height: 82vh; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.fig { position: absolute; bottom: 0; height: 74vh; max-height: 720px; filter: drop-shadow(0 10px 30px #000c); }
.fig-left { left: 4%; height: 66vh; animation: rise 1.1s .2s both; }
.fig-mid { left: 50%; transform: translateX(-50%); height: 80vh; opacity: .18; animation: fadein 1.6s both; }
.fig-right { right: 4%; height: 68vh; animation: rise 1.1s .4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes fadein { from { opacity: 0; } }
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.eyebrow { margin: 0 0 6px; letter-spacing: 4px; text-transform: uppercase; font-size: 13px; color: #ffb48a; }
.hero h1 {
  margin: 0; font-size: clamp(54px, 10vw, 110px); line-height: 1; letter-spacing: 2px;
  color: #ffe2a0; text-shadow: 0 0 30px #ff9a3c88, 0 6px 18px #000;
  animation: slam .8s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero h1 span { display: block; font-size: .55em; letter-spacing: 10px; color: #f0d79a; }
@keyframes slam { from { transform: scale(1.6); opacity: 0; } }
.tagline { margin: 12px 0 28px; font-size: 21px; color: #f3e8d4; text-shadow: 0 2px 6px #000; }
.join-box {
  position: relative; padding: 22px 24px 16px; border-radius: 16px;
  background: linear-gradient(170deg, #2a1830ee, #160f20ee); border: 1px solid var(--gold-line);
  box-shadow: 0 0 0 4px #0d0812, 0 0 0 5px #c9a24a55, 0 20px 60px #000c;
}
.join-box::before, .join-box::after { content: ''; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold-line); }
.join-box::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.join-box::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.join-title { margin: 0 0 12px; font-size: 20px; color: #ffe2a0; }
.join { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.join input { flex: 1 1 240px; min-width: 0; padding: 14px 16px; border-radius: 10px; border: 1px solid #5a4a70; background: #0d0812; color: var(--text); font: inherit; }
.join input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.join button, .big-cta {
  padding: 14px 26px; border: 1px solid #ffe2a0; border-radius: 10px; cursor: pointer; font: 700 17px system-ui, sans-serif;
  background: linear-gradient(180deg, #ffd36a, #c98a2a); color: #2a1600; box-shadow: 0 0 20px #ffb44a66; text-decoration: none; display: inline-block;
}
.join button:hover, .big-cta:hover { filter: brightness(1.1); }
.join button:disabled { opacity: .6; cursor: wait; }
.join-message { min-height: 1.4em; margin: 10px 0 0; }
.join-message.ok { color: #8ff0c0; }
.join-message.error { color: #ff9a8a; }
.fine { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 34px; color: #ffe2a0; text-decoration: none; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* --- Bands ----------------------------------------------------------------------- */
.band { padding: 90px 24px; opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.band.seen { opacity: 1; transform: none; }
.band-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.band h2 { margin: 0; font-size: clamp(32px, 5vw, 48px); color: #ffe2a0; }
.lede { color: var(--muted); font-size: 18px; }
.heroes { background: radial-gradient(ellipse at 50% 30%, #3a1a2a, var(--bg) 70%); }
.class-show { max-width: 1100px; margin: 0 auto; }
.class-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.class-tab {
  display: grid; padding: 10px 26px; border-radius: 4px 4px 0 0; cursor: pointer; text-align: center; font: inherit;
  background: #1a1024; border: 1px solid #5a4060; border-bottom: 3px solid #5a4060; color: #c8b8d8;
}
.class-tab b { font-family: Georgia, serif; font-size: 18px; }
.class-tab small { color: var(--muted); }
.class-tab.active { background: linear-gradient(180deg, #6a2430, #3a1420); border-color: var(--gold-line); border-bottom-color: #ffd36a; color: #ffe2a0; box-shadow: 0 0 18px #c9a24a44; }
.class-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; align-items: center; padding: 26px; border-radius: 18px;
  background: linear-gradient(170deg, var(--lacquer-2), var(--lacquer) 60%); border: 1px solid var(--gold-line); box-shadow: 0 0 0 4px #0d0812, 0 0 0 5px #c9a24a44;
}
.class-figure { display: grid; place-items: center; min-height: 460px; border-radius: 14px; background: radial-gradient(ellipse at 50% 85%, #ffd36a33, transparent 55%), radial-gradient(circle at 50% 35%, #3a2a50, #120b1a 75%); }
.class-figure img { max-height: 440px; filter: drop-shadow(0 12px 20px #000a); }
.class-figure img.in { animation: rise .6s both; }
.class-text h3 { margin: 0; font-size: 38px; color: #ffe2a0; }
.role { display: inline-block; margin: 6px 0 12px; padding: 2px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.role.tank { background: #10203a; color: #8fc8ff; } .role.damage { background: #3a1414; color: #ff9a8a; } .role.healer { background: #103a26; color: #8ff0c0; }
.skills { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.skills li { padding: 8px 12px; border-radius: 8px; background: #120b1a; border-left: 3px solid var(--gold-line); }
.skills li:last-child { border-left-color: #ff9a3c; color: #ffe2a0; }
.gender-toggle { display: flex; gap: 8px; }
.gender { padding: 8px 18px; border-radius: 99px; border: 1px solid #5a4060; background: #1a1024; color: var(--muted); cursor: pointer; font: inherit; }
.gender.active { border-color: var(--gold-line); color: #ffe2a0; }
.companions { max-width: 1100px; margin: 50px auto 0; text-align: center; }
.faces, .bosses { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.faces img, .bosses img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 3px #0d0812, 0 0 0 4px var(--gold-line), 0 8px 20px #000a; transition: transform .2s; }
.faces img:hover, .bosses img:hover { transform: scale(1.08); }
figcaption { font-weight: 700; display: grid; } figcaption small { color: var(--muted); font-weight: 400; font-size: 13px; }

.features { background: linear-gradient(180deg, var(--bg), #160c1c 40%, var(--bg)); }
.feature-rows { max-width: 1100px; margin: 0 auto; display: grid; gap: 60px; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.feature.seen { opacity: 1; transform: none; }
.feature.flip img { order: 2; }
.feature img { border-radius: 14px; border: 1px solid var(--gold-line); box-shadow: 0 0 0 4px #0d0812, 0 20px 50px #000c; }
.feature h3 { margin: 0 0 8px; font-size: 30px; color: #ffe2a0; }
.feature p { color: var(--muted); font-size: 18px; }

.world { background: linear-gradient(180deg, #0d0812dd, #0d0812ee), url('/img/bg-1.webp') center / cover; text-align: center; }
.bosses figure.villain img { width: 140px; height: 140px; box-shadow: 0 0 0 3px #0d0812, 0 0 0 5px #b03050, 0 0 40px #b03050aa; }
.bosses figure.villain figcaption { color: #ff9ab0; font-size: 20px; }

.final { text-align: center; background: radial-gradient(ellipse at 50% 100%, #6a2a1a66, var(--bg) 70%); }
.final .big-cta { margin-top: 10px; font-size: 20px; padding: 16px 40px; }

footer { padding: 30px 16px; text-align: center; color: var(--muted); border-top: 1px solid #2a1e36; font-size: 14px; }

@media (max-width: 860px) {
  .topnav-links a:not(.nav-cta) { display: none; }
  .fig-left, .fig-right { height: 40vh; opacity: .55; }
  .class-stage, .feature { grid-template-columns: 1fr; }
  .feature.flip img { order: 0; }
  .class-figure { min-height: 320px; } .class-figure img { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .band, .feature { opacity: 1; transform: none; }
}
.hero .eyebrow { color: #ffd0a8; text-shadow: 0 1px 4px #000, 0 0 10px #000; }
@media (max-width: 600px) {
  .topnav { padding: 8px 12px; }
  .logo { font-size: 16px; } .nav-cta { white-space: nowrap; padding: 6px 12px; font-size: 14px; }
  .hero .eyebrow { letter-spacing: 2px; font-size: 11px; }
  .fig-left, .fig-right { display: none; }
  .fig-mid { opacity: .25; height: 60vh; }
}
