@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #09070d;
  --panel: #110d18;
  --panel-soft: #171121;
  --gold: #d9b566;
  --gold-bright: #f4d78e;
  --parchment: #e7d7b4;
  --muted: #a79cad;
  --violet: #7251a4;
  --line: rgba(217, 181, 102, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--parchment);
  background:
    radial-gradient(circle at 78% 8%, rgba(93, 53, 133, .2), transparent 27rem),
    radial-gradient(circle at 12% 42%, rgba(118, 77, 34, .11), transparent 30rem),
    var(--ink);
  font: 400 16px/1.65 Inter, system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header, main, footer { position: relative; z-index: 1; }

.site-header {
  width: min(1380px, calc(100% - 64px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 17px Cinzel, serif; letter-spacing: .07em; }
.brand img { border-radius: 9px; box-shadow: 0 0 25px rgba(186, 139, 75, .16); }
.brand strong, .footer-brand strong { color: var(--gold); }
nav { display: flex; gap: 38px; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
nav a:hover { color: var(--gold-bright); }

.button {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: #f6e8c9;
  background: rgba(255,255,255,.025);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 600;
  transition: transform .2s, border-color .2s, background .2s;
}
.button:hover { transform: translateY(-2px); border-color: var(--gold); }
.button-small { min-height: 39px; padding: 0 18px; }
.button-primary { color: #17100a; border-color: var(--gold); background: linear-gradient(135deg, #f0d58d, #b58a41); box-shadow: 0 14px 40px rgba(186, 139, 75, .18); }
.button-secondary { background: rgba(76, 50, 103, .28); }
.button-icon { font-size: 18px; line-height: 0; }

.hero {
  width: min(1380px, calc(100% - 64px));
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 50px;
  overflow: visible;
}
.hero-copy { padding: 70px 0 90px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 600; }
h1, h2 { margin: 0; font-family: Cinzel, Georgia, serif; line-height: 1.04; font-weight: 600; }
h1 { max-width: 760px; color: #f2e6ce; font-size: clamp(48px, 5.3vw, 82px); letter-spacing: -.035em; }
h1 em { color: var(--gold); font-style: normal; }
h2 { color: #eee0c3; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.025em; }
.hero-intro { max-width: 650px; margin: 28px 0 32px; color: #b9afbc; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.release-note { margin: 18px 0 0; color: #766d7b; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.hero-art { position: relative; height: 600px; perspective: 1200px; }
.hero-art::before { content: ""; position: absolute; inset: 12% 8%; border: 1px solid rgba(217,181,102,.18); border-radius: 50%; transform: rotate(-16deg); }
.magic-orbit { position: absolute; width: 420px; height: 420px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(189,138,60,.18), rgba(91,55,122,.12) 44%, transparent 70%); filter: blur(10px); }
.hero-card { position: absolute; width: 174px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; filter: drop-shadow(0 30px 25px rgba(0,0,0,.55)); transform: translateX(-50%) rotate(var(--rotation)); transform-origin: 50% 90%; transition: transform .35s ease, filter .35s ease; }
.hero-card img { display: block; width: 100%; border-radius: 9px; }
.hero-card:hover, .hero-card:focus-visible { z-index: 10; outline: none; filter: drop-shadow(0 34px 30px rgba(0,0,0,.72)) drop-shadow(0 0 10px rgba(244,215,142,.3)); transform: translateX(-50%) translateY(-15px) rotate(var(--rotation)) scale(1.045); }
.card-one { z-index: 1; left: 13%; top: 30%; --rotation: -20deg; }
.card-two { z-index: 2; left: 31%; top: 23%; --rotation: -10deg; }
.card-three { z-index: 5; left: 50%; top: 18%; --rotation: 0deg; }
.card-four { z-index: 4; left: 69%; top: 23%; --rotation: 10deg; }
.card-five { z-index: 3; left: 87%; top: 30%; --rotation: 20deg; }

.feature-strip { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.feature-strip > div { min-height: 116px; padding: 25px max(30px, 4vw); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-content: center; border-right: 1px solid var(--line); }
.feature-strip > div:last-child { border: 0; }
.feature-strip span { grid-row: 1 / 3; color: #574864; font: 500 26px Cinzel, serif; }
.feature-strip strong { font: 600 14px Cinzel, serif; letter-spacing: .04em; }
.feature-strip small { color: #817686; font-size: 12px; }

.section { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 620px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--muted); }
.rules { border-bottom: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.video-shell { padding: 12px; border: 1px solid var(--line); background: #0b0810; box-shadow: 0 35px 80px rgba(0,0,0,.4); }
.video-shell iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #08060a; }
.video-card h3, .resource-card h3 { margin: 22px 0 7px; color: #eee0c3; font: 600 20px/1.25 Cinzel, Georgia, serif; }
.video-card > p { margin: 0; color: var(--muted); font-size: 13px; }

.gallery { border-top: 1px solid var(--line); }
.gallery-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.gallery-heading > p { max-width: 440px; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-item { position: relative; min-width: 0; padding: 0; border: 1px solid rgba(217,181,102,.13); background: #0d0a12; overflow: hidden; cursor: pointer; aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery-item:hover img { transform: scale(1.025); opacity: .83; }
.gallery-item span { position: absolute; left: 18px; bottom: 16px; padding: 7px 11px; color: #f3dfb6; background: rgba(8,6,10,.78); border-left: 2px solid var(--gold); font: 600 10px Inter, sans-serif; letter-spacing: .13em; text-transform: uppercase; }

.resources { border-top: 1px solid var(--line); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card { min-height: 310px; padding: 34px; display: flex; flex-direction: column; border: 1px solid var(--line); color: inherit; background: linear-gradient(145deg, rgba(29,22,35,.92), rgba(13,10,17,.96)); text-decoration: none; transition: transform .25s, border-color .25s, background .25s; }
.resource-card:hover { transform: translateY(-5px); border-color: var(--gold); background: linear-gradient(145deg, rgba(39,29,43,.96), rgba(15,11,19,.98)); }
.resource-number { color: #5f4e69; font: 500 31px Cinzel, serif; }
.resource-card p { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.resource-card small { margin-top: auto; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.resource-disclaimer { margin: 20px 0 0; color: #716875; font-size: 11px; }

.community { margin-bottom: 100px; padding-inline: 70px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 90px; border: 1px solid var(--line); background: radial-gradient(circle at 10% 50%, rgba(116,77,42,.18), transparent 38%), linear-gradient(120deg, #15101c, #0f0b15); }
.community-copy p { color: var(--muted); margin: 0 0 28px; }
.button-discord { background: linear-gradient(135deg, #6f52a5, #483366); border-color: #8e6abb; }
.button-discord span { font-size: 18px; }

footer { min-height: 150px; padding: 40px max(32px, calc((100% - 1380px)/2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 50px; border-top: 1px solid var(--line); color: #716875; font-size: 11px; }
.footer-brand { color: #d8c9aa; font: 600 15px Cinzel, serif; white-space: nowrap; }
footer p { max-width: 760px; }
footer a { color: #a899a9; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }

.lightbox { width: min(1180px, 92vw); max-width: none; padding: 0; border: 1px solid var(--gold); background: #09070d; box-shadow: 0 40px 120px #000; }
.lightbox::backdrop { background: rgba(4,3,6,.88); backdrop-filter: blur(5px); }
.lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: 86vh; margin: 0 auto; object-fit: contain; }
.lightbox img.is-horizontal { transform: rotate(90deg) scale(.78); }
.lightbox img.card-preview { transition: transform .65s cubic-bezier(.22,.8,.28,1); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); color: white; background: rgba(0,0,0,.72); font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .site-header { width: min(100% - 36px, 720px); height: 72px; }
  .site-header nav, .site-header > .button { display: none; }
  .hero { width: min(100% - 36px, 720px); min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 70px 0 18px; }
  .hero-intro { font-size: 15px; }
  .hero-art { height: 420px; margin-top: 8px; }
  .hero-card { width: 132px; }
  .card-one { left: 14%; top: 27%; }
  .card-two { left: 32%; top: 20%; }
  .card-three { left: 50%; top: 15%; }
  .card-four { left: 68%; top: 20%; }
  .card-five { left: 86%; top: 27%; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip > div { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { width: min(100% - 36px, 720px); padding: 86px 0; }
  .video-grid { grid-template-columns: 1fr; gap: 50px; }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 250px; }
  .community { margin-bottom: 60px; padding: 54px 28px; grid-template-columns: 1fr; gap: 30px; }
  footer { grid-template-columns: 1fr; gap: 8px; padding: 36px 20px; }
  .footer-links { justify-content: flex-start; margin-top: 14px; }
}

@media (max-width: 520px) {
  h1 { font-size: 43px; }
  h2 { font-size: 35px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-art { height: 360px; scale: .92; margin-inline: -15px; }
  .hero-card { width: 112px; }
  .card-one { left: 16%; }
  .card-two { left: 33%; }
  .card-four { left: 67%; }
  .card-five { left: 84%; }
  .lightbox img.is-horizontal { transform: rotate(90deg) scale(.68); }
  .feature-strip > div { padding-inline: 24px; }
  .video-shell { margin-inline: -8px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
