/* =========================================================================
   Queen Raid — faceted crystal UI (not the chess-club layout)
   ========================================================================= */

:root {
  --ink:        #06030e;
  --ink-2:      #0c0618;
  --panel:      rgba(28, 12, 52, 0.72);
  --line:       rgba(181, 124, 255, 0.28);
  --line-soft:  rgba(126, 240, 255, 0.12);

  --cream:      #f3ecff;
  --cream-dim:  #c7b6dc;
  --muted:      #8b799e;

  --violet:     #b57cff;
  --violet-dk:  #6d32d6;
  --cyan:       #7ef0ff;
  --gold:       #e4c36a;
  --gold-lt:    #f3dc96;
  --wine:       #c45a78;

  --font-display: 'Cinzel', Georgia, serif;
  --font-ui:      'Outfit', system-ui, sans-serif;

  --shell: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cut: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(109,50,214,0.28), transparent 55%), var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; }

.shell { width: min(100% - 2rem, var(--shell)); margin-inline: auto; }
::selection { background: var(--violet); color: #fff; }

.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.22;
  background-image:
    linear-gradient(rgba(126,240,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,124,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 75%);
}

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0 0 1.1rem; padding: 0.35rem 0.8rem 0.35rem 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--line-soft);
  background: rgba(126,240,255,0.06);
  clip-path: var(--cut);
}
.chip::before {
  content: ''; width: 7px; height: 7px; background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 12px var(--cyan);
}

.kicker {
  flex: none; width: 52px; height: 52px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.95rem; color: var(--gold);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(181,124,255,0.2), transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
  color: var(--cyan);
}
.section-head {
  display: flex; align-items: flex-start; gap: 1.2rem;
  text-align: left; margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: 0.03em; }
.section-sub { max-width: 54ch; margin: 0.7rem 0 0; color: var(--cream-dim); font-size: 1.05rem; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem; padding: 0.95rem 1.7rem;
  font-family: var(--font-ui); font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  clip-path: var(--cut);
  transition: transform 0.3s var(--ease), filter 0.3s;
}
.btn--gold {
  background: linear-gradient(120deg, var(--gold-lt), var(--gold) 55%, #c9a24a);
  color: #1a1206;
  box-shadow: 0 0 28px rgba(228,195,106,0.28);
}
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost { background: rgba(181,124,255,0.08); color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--quiet { background: transparent; color: var(--muted); clip-path: none; border: 0; padding-inline: 0.6rem; }
.btn--quiet:hover { color: var(--cream); }
.btn--sm { padding: 0.58rem 1.15rem; font-size: 0.78rem; }
.btn--lg { padding: 1.1rem 2.2rem; }
.btn--block { width: 100%; }

.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.linkbtn:hover { color: var(--cyan); }
.linkbtn--center { display: block; margin: 1.1rem auto 0; }

.nav {
  position: sticky; top: 12px; z-index: 50; padding: 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 12px auto; padding: 0.55rem 0.7rem 0.55rem 1rem;
  width: min(100% - 1.5rem, var(--shell));
  background: rgba(8,4,18,0.72);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.nav.is-stuck .nav__inner { box-shadow: 0 18px 40px -24px rgba(109,50,214,0.9); }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--gold); font-size: 0.85rem;
  background: linear-gradient(160deg, rgba(181,124,255,0.35), transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.08em; }
.brand__text em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; gap: 1.4rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.nav__links a { color: var(--cream-dim); }
.nav__links a:hover { color: var(--cyan); }

.nav__actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }

.lang { display: inline-flex; overflow: hidden; border: 1px solid var(--line-soft); clip-path: var(--cut); }
.lang button {
  min-height: 32px; padding: 0 0.55rem;
  font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
}
.lang button.is-on { background: var(--violet); color: #fff; font-weight: 700; }

.burger {
  display: none; width: 40px; height: 40px; place-items: center; gap: 5px;
  flex-direction: column; background: transparent; border: 1px solid var(--line-soft); cursor: pointer; padding: 0;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--cyan); }

.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; gap: 10px; padding: 10px;
  background: rgba(10, 5, 22, 0.94); border: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; justify-content: center; }

.hero { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -10% 0 auto; height: 640px;
  background:
    radial-gradient(50% 50% at 70% 30%, rgba(126,240,255,0.16), transparent 70%),
    radial-gradient(40% 50% at 20% 40%, rgba(109,50,214,0.5), transparent 70%);
  filter: blur(8px);
}
.hero__sigil {
  position: absolute; right: -4%; top: 8%; width: min(52vw, 520px); opacity: 0.22;
  filter: drop-shadow(0 0 40px rgba(181,124,255,0.4));
  pointer-events: none; animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(-4deg); } }

.hero__inner { position: relative; max-width: 720px; }
.hero__title { margin-bottom: 1rem; }
.hero__title-sm {
  display: block; font-family: var(--font-ui); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 0.45rem;
}
.hero__title-lg {
  display: block; font-size: clamp(3.4rem, 11vw, 7.2rem); font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--gold-lt);
  background: linear-gradient(180deg, #fff 0%, var(--gold-lt) 42%, #d4a0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lede { max-width: 44ch; color: var(--cream-dim); margin: 0 0 1.6rem; font-size: 1.12rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hexchip {
  min-width: 140px; padding: 0.85rem 1.1rem 0.9rem 1.35rem;
  background: linear-gradient(135deg, rgba(181,124,255,0.22), rgba(12,6,24,0.7));
  border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.hexchip strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold-lt); }
.hexchip span { display: block; margin-top: 0.2rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hexchip--ghost { background: rgba(126,240,255,0.06); border-color: var(--line-soft); }
.hexchip--ghost strong { color: var(--cyan); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; gap: 0.4rem; }
.hero__trust li::before {
  content: ''; width: 6px; height: 6px; background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.raid, .clip, .how, .vault, .faq { scroll-margin-top: 92px; }
.raid {
  position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.quiz {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}

.quiz__steps {
  display: flex; list-style: none; margin: 0; padding: 1rem 1rem 0;
  gap: 0.6rem; flex-wrap: wrap;
}
.quiz__step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  clip-path: var(--cut);
}
.quiz__step i { font-style: normal; }
.quiz__step.is-active { color: #081018; background: var(--cyan); }
.quiz__step.is-done { color: var(--gold-lt); border-color: rgba(228,195,106,0.35); }

.quiz__body {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(1.2rem, 3vw, 2.2rem); padding: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.quiz__boardwrap { display: flex; flex-direction: column; gap: 0.8rem; }

.boardframe {
  position: relative;
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(181,124,255,0.22), transparent 70%),
    #090414;
  border: 1px solid var(--line-soft);
}

.cluster-mount { position: relative; width: 100%; aspect-ratio: 400 / 430; }
.cluster { width: 100%; height: 100%; display: block; }
.cluster.is-locked .gem { cursor: default; }
.cluster.is-wrong { animation: shake 0.42s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.gem { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.gem:hover { filter: brightness(1.18); }
.gem.is-lit .gem__halo { opacity: 0.85; }
.gem.is-lit .gem__core { opacity: 1; }
.gem.is-lit .gem__body { filter: url(#qr-glow); }
.gem.is-hint { animation: hintpulse 1.1s ease-in-out 3; }
.gem.is-shatter { animation: shatter 0.85s var(--ease) forwards; }
@keyframes gemin { from { opacity: 0; transform: translateY(12px) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes hintpulse {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.8) drop-shadow(0 0 10px #e4c36a); }
}
@keyframes shatter {
  to { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.15); opacity: 0; }
}

.board__flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan);
  background: rgba(7,4,15,0.45);
}
.board__flash.is-on { animation: flash 1.15s var(--ease); }
@keyframes flash {
  0% { opacity: 0; transform: scale(0.85); }
  25% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); }
}

.board__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.board__turn { display: flex; align-items: center; gap: 0.55rem; }
.board__tools { display: flex; align-items: center; gap: 1rem; }
.dot { width: 8px; height: 8px; background: var(--cyan); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.quiz__panel { display: flex; flex-direction: column; padding-top: 0.4rem; }
.quiz__era { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); margin: 0 0 0.45rem; font-weight: 600; }
.quiz__name { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.35rem; }
.quiz__goal { font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-dim); margin: 0 0 1.2rem; }

.quiz__status {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: rgba(126,240,255,0.06); padding: 0.85rem 1rem; margin-bottom: 1.2rem;
  min-height: 76px; font-size: 0.98rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.quiz__status-icon { color: var(--gold); font-size: 0.7rem; margin-top: 0.35rem; }
.quiz__status.is-good { background: rgba(126,240,255,0.12); }
.quiz__status.is-good .quiz__status-icon { color: var(--cyan); }
.quiz__status.is-bad { background: rgba(196,90,120,0.14); }
.quiz__status.is-bad .quiz__status-icon { color: #e07090; }

.quiz__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0 0 1.2rem; padding: 0; }
.quiz__stats div { background: rgba(255,255,255,0.03); padding: 0.65rem 0.7rem; }
.quiz__stats dt { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.quiz__stats dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); }

.quiz__hint {
  padding: 0.85rem 1rem; margin-bottom: 1.1rem;
  font-style: italic; color: var(--cream-dim);
  background: rgba(228,195,106,0.08);
  animation: fadein 0.5s var(--ease);
}
.quiz__hint p { margin: 0; }
.quiz__hint-label {
  font-style: normal; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem !important; font-weight: 700;
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.quiz__actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.quiz__note { margin: auto 0 0; font-size: 0.9rem; color: var(--muted); }

.quiz__prize {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0 1.4rem 1.3rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.quiz__prize-bar { flex: 1; min-width: 140px; height: 4px; background: rgba(244,232,255,0.08); overflow: hidden; }
.quiz__prize-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--gold)); transition: width 0.9s var(--ease); }
.quiz__prize-num strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--cyan); }

.clip { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.clip__frame {
  border: 1px solid var(--line);
  background: #090414;
  padding: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.clip__frame video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  display: block;
  aspect-ratio: 720 / 800;
  background: #07040f;
}

.how { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.path { display: grid; gap: 0; position: relative; }
.path::before {
  content: ''; position: absolute; left: 25px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0.35;
}
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 0.35rem 1.1rem; align-items: start;
  padding: 1.1rem 0 1.4rem 0;
}
.step__num {
  width: 52px; height: 52px; display: grid; place-items: center; z-index: 1;
  grid-row: 1 / 3;
  font-family: var(--font-display); font-size: 0.85rem; color: var(--ink);
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.step__glyph { display: none; }
.step h3 { font-size: 1.35rem; margin: 0.15rem 0 0; grid-column: 2; }
.step p { margin: 0; color: var(--cream-dim); max-width: 62ch; grid-column: 2; }

.vault { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier {
  position: relative; overflow: hidden; text-align: left;
  padding: 1.6rem 1.3rem 1.4rem;
  background: linear-gradient(160deg, rgba(181,124,255,0.16), rgba(8,4,18,0.8));
  border: 1px solid var(--line-soft);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.tier__seal {
  width: 42px; height: 42px; margin: 0 0 0.9rem;
  display: grid; place-items: center; font-size: 1.15rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.tier__label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.tier__spins { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; margin: 0; color: var(--cream); }
.tier:not(.is-unlocked) .tier__spins { color: var(--muted); }
.tier__spins span { display: block; font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin-top: 0.35rem; }
.tier__code {
  display: inline-block; margin-top: 0.9rem; padding: 0.3rem 0.7rem;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); filter: blur(4px); user-select: none;
  background: rgba(0,0,0,0.25);
}
.tier.is-unlocked { border-color: var(--cyan); box-shadow: 0 0 32px rgba(126,240,255,0.12); }
.tier.is-unlocked .tier__seal { color: var(--cyan); background: rgba(126,240,255,0.16); }
.tier.is-unlocked .tier__spins { color: var(--gold-lt); }
.tier.is-unlocked .tier__code { filter: none; color: var(--cyan); user-select: all; }

.vault__cta[hidden],
#footerClaim[hidden] { display: none !important; }
.vault__note { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.85rem; }

.games { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.gamegrid { display: grid; gap: 0.7rem; }
.game {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1rem;
  min-height: 0; padding: 1.05rem 1.2rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(90deg, var(--g1), var(--g2));
  clip-path: var(--cut);
  cursor: pointer;
}
.game:hover { border-color: var(--cyan); }
.game:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.game__glyph { position: static; font-size: 1.5rem; color: var(--gold-lt); line-height: 1; grid-row: 1 / 3; }
.game h3 { font-size: 1.15rem; grid-column: 2; }
.game p { margin: 0.15rem 0 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); grid-column: 2; }
.game__tag {
  position: static; padding: 0.2rem 0.55rem; grid-column: 3; grid-row: 1 / 3; align-self: center;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  background: var(--cyan); color: #081018;
}

.chronicle { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.chronicle__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
}
.chronicle__prose {
  max-width: 68ch;
  color: var(--cream-dim);
  font-size: 1.02rem;
}
.chronicle__prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--cream);
  letter-spacing: 0.04em;
}
.chronicle__prose p { margin: 0 0 1.05rem; }
.chronicle__prose p:last-child { margin-bottom: 0; }

.faq { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.faq__grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.faq__list details { border-top: 1px solid var(--line-soft); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq__list summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.2rem 1.05rem 0; position: relative;
  font-family: var(--font-ui); font-size: 1.05rem; font-weight: 600;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ''; position: absolute; right: 0.2rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
}
.faq__list details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq__list summary:hover { color: var(--cyan); }
.faq__list p { margin: 0 0 1.2rem; color: var(--cream-dim); }

.closer {
  position: relative; z-index: 1;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.closer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(100deg, rgba(181,124,255,0.2), rgba(126,240,255,0.08));
  border: 1px solid var(--line);
  clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}
.closer__glyph { display: none; }
.closer h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0; }

.footer { position: relative; z-index: 1; padding: 2.6rem 0 2rem; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-soft); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); }
.footer__links a:hover { color: var(--cyan); }
.footer__badges { display: flex; gap: 0.5rem; }
.badge {
  padding: 0.28rem 0.65rem; border: 1px solid var(--line-soft);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.footer__legal { margin: 1.3rem 0 0.7rem; font-size: 0.86rem; color: var(--muted); max-width: 90ch; }
.footer__copy { margin: 0; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(141,122,158,0.65); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,1,10,0.82); backdrop-filter: blur(8px); animation: fadein 0.3s ease; }
.modal__dialog {
  position: relative; width: min(100%, 460px); max-height: 92vh; overflow-y: auto; text-align: left;
  padding: 2.1rem 1.7rem 1.8rem;
  border: 1px solid var(--cyan);
  background: linear-gradient(165deg, #24103c, #0a0616 62%);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  animation: modalin 0.5s var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute; top: 0.55rem; right: 0.8rem; background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--muted);
}
.modal__close:hover { color: var(--cream); }
.modal__kicker { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); margin: 0 0 0.55rem; font-weight: 700; }
.modal__title { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 0.5rem; }
.modal__sub { margin: 0 0 1.3rem; color: var(--cream-dim); }

.modal__prize { margin-bottom: 1.2rem; }
.modal__prize-num {
  display: block; font-family: var(--font-display); font-size: clamp(3.6rem, 12vw, 5.4rem); font-weight: 700; line-height: 0.9;
  background: linear-gradient(180deg, #fff, var(--gold) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.modal__prize-label { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-dim); }

.modal__code { background: rgba(126,240,255,0.06); padding: 0.8rem 0.9rem; margin-bottom: 1.3rem; }
.modal__code-label { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.modal__code-row { margin-top: 0.3rem; }
.modal__code-row code { font-family: var(--font-ui); font-size: 1.2rem; letter-spacing: 0.12em; color: var(--cyan); }
.modal__legal { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(141,122,158,0.75); margin: 1.2rem 0 0; }

.sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.spark {
  position: absolute; top: 48%; left: 50%; width: 6px; height: 6px;
  background: var(--cyan); opacity: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: spark 1.5s ease-out forwards;
}
@keyframes spark {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay { transition-delay: 0.12s; }
.reveal--delay2 { transition-delay: 0.22s; }

@media (max-width: 1080px) {
  .quiz__body { grid-template-columns: minmax(0, 1fr); }
  .quiz__panel { order: -1; }
  .faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { top: 0; }
  .nav__inner { position: relative; flex-wrap: wrap; clip-path: none; width: min(100% - 1rem, var(--shell)); }
  .nav__links {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #10081c; border: 1px solid var(--line); padding: 0.4rem; z-index: 30;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.85rem 0.7rem; }
  .burger { display: grid; }
  .nav__actions .btn--sm { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .path::before { left: 25px; }
  .sticky-cta:not([hidden]):not(.is-raid-cover) { display: flex; }
  .sticky-cta .btn[hidden] { display: none !important; }
  body:has(.sticky-cta:not([hidden]):not(.is-raid-cover)) { padding-bottom: 84px; }
  .hero__sigil { width: min(80vw, 380px); top: -2%; opacity: 0.16; }
  .closer__inner { clip-path: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .quiz__steps { gap: 0.4rem; }
  .quiz__step {
    padding: 0.45rem 0.65rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
  .quiz__step span {
    max-width: 9.5ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero__title-lg { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .game { grid-template-columns: auto 1fr; }
  .game__tag { grid-column: 2; justify-self: start; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
