:root {
  --bg: #0f0a0b;
  --bg-2: #1a0e12;
  --panel: rgba(32, 14, 20, 0.78);
  --panel-2: rgba(46, 18, 26, 0.72);
  --ink: #f7efe6;
  --muted: rgba(247, 239, 230, 0.68);
  --line: rgba(247, 239, 230, 0.14);
  --shadow: 0 18px 50px rgba(8, 4, 5, 0.55);

  --gold: #f2c56b;
  --gold-2: #ffd98c;
  --wine: #5a0d1f;
  --wine-2: #7f152b;
  --ember: #ff9d6f;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 700px at 12% -10%, rgba(242, 197, 107, 0.14), transparent 60%),
    radial-gradient(900px 520px at 86% 10%, rgba(90, 13, 31, 0.22), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(247, 239, 230, 0.045) 0 1px, transparent 1px 20px),
    radial-gradient(1200px 600px at 50% 120%, rgba(242, 197, 107, 0.1), transparent 60%);
  opacity: 0.7;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: -10vh 0 -10vh;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(9, 6, 7, 0.75), rgba(9, 6, 7, 0.35)),
    url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
  filter: saturate(0.8) contrast(1.1);
  opacity: 0.55;
  z-index: -3;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-2);
}

h1, h2, h3, h4 {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.05;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(247, 239, 230, 0.86);
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 197, 107, 0.35);
  color: var(--gold-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  background: transparent;
  color: var(--ink);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a0e12;
  border-color: rgba(242, 197, 107, 0.5);
  box-shadow: 0 12px 30px rgba(242, 197, 107, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(247, 239, 230, 0.2);
  background: rgba(20, 10, 14, 0.6);
}

.btn-ghost:hover {
  border-color: rgba(242, 197, 107, 0.5);
  transform: translateY(-1px);
}

.btn-link {
  border-color: transparent;
  text-decoration: underline;
}

.card {
  background: linear-gradient(160deg, rgba(55, 16, 28, 0.9), rgba(28, 10, 15, 0.9));
  border: 1px solid rgba(247, 239, 230, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 239, 230, 0.08);
  font-size: 0.9rem;
}

.topbar strong {
  color: var(--gold-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 10, 11, 0.82);
  border-bottom: 1px solid rgba(247, 239, 230, 0.08);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(242, 197, 107, 0.35);
  box-shadow: 0 12px 30px rgba(242, 197, 107, 0.2);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 60%),
    linear-gradient(135deg, var(--wine) 0%, var(--gold) 100%);
  box-shadow: 0 10px 30px rgba(242, 197, 107, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(247, 239, 230, 0.1);
  background: rgba(20, 10, 14, 0.55);
  margin-left: 14px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  color: rgba(247, 239, 230, 0.8);
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(242, 197, 107, 0.5);
  background: rgba(90, 13, 31, 0.35);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(242, 197, 107, 0.35);
  background: rgba(28, 10, 15, 0.8);
  color: var(--gold-2);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  flex-direction: column;
}

.menu-toggle .bar {
  width: 18px;
  height: 2px;
  background: var(--gold-2);
  border-radius: 999px;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 197, 107, 0.35);
  color: var(--gold-2);
  background: rgba(30, 12, 18, 0.6);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  padding: 80px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(150deg, rgba(90, 13, 31, 0.6), rgba(22, 8, 12, 0.9));
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(247, 239, 230, 0.1);
  box-shadow: var(--shadow);
}

.hero-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(247, 239, 230, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fact {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(247, 239, 230, 0.1);
  background: rgba(30, 12, 18, 0.6);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(247, 239, 230, 0.1);
  background: linear-gradient(160deg, rgba(70, 16, 30, 0.75), rgba(20, 8, 12, 0.95));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 197, 107, 0.4);
}

.game-card img {
  border-radius: var(--radius-md);
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-2);
}

.banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(247, 239, 230, 0.12);
  background: linear-gradient(150deg, rgba(90, 13, 31, 0.65), rgba(25, 10, 14, 0.92));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline-step {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(247, 239, 230, 0.1);
  background: rgba(28, 10, 15, 0.7);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.list li {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(247, 239, 230, 0.1);
  background: rgba(24, 10, 14, 0.65);
}

.output,
.contact-status {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(247, 239, 230, 0.12);
  background: rgba(24, 10, 14, 0.75);
  color: rgba(247, 239, 230, 0.92);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(247, 239, 230, 0.12);
  background: rgba(20, 10, 14, 0.7);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.faq-item .answer {
  padding: 0 18px 16px;
  color: var(--muted);
  display: none;
}

.faq-item.open .answer {
  display: block;
}

.game-surface {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(247, 239, 230, 0.12);
  background: linear-gradient(160deg, rgba(80, 18, 34, 0.7), rgba(20, 8, 12, 0.95));
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

select,
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(247, 239, 230, 0.14);
  background: rgba(20, 10, 14, 0.7);
  color: var(--ink);
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.footer {
  margin-top: 40px;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(247, 239, 230, 0.08);
  background: rgba(8, 5, 6, 0.85);
}

.footer-aurora {
  position: relative;
  overflow: hidden;
}

.footer-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 220px at 10% 10%, rgba(242, 197, 107, 0.16), transparent 60%),
    radial-gradient(500px 220px at 90% 20%, rgba(127, 21, 43, 0.24), transparent 60%),
    repeating-linear-gradient(135deg, rgba(247, 239, 230, 0.03) 0 1px, transparent 1px 20px);
  opacity: 0.8;
  pointer-events: none;
}

.footer-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0 24px;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(242, 197, 107, 0.4);
  box-shadow: 0 14px 36px rgba(242, 197, 107, 0.25);
}

.footer-name {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.2rem;
}

.footer-tagline {
  margin: 0;
  max-width: 60ch;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  z-index: 1;
}

.footer-rail {
  grid-column: span 3;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(247, 239, 230, 0.1);
  background: rgba(18, 8, 11, 0.7);
}

.footer-rail h4 {
  margin: 0 0 8px;
}

.footer-rail a {
  display: block;
  padding: 6px 0;
  color: rgba(247, 239, 230, 0.8);
  font-weight: 600;
}

.footer-note {
  grid-column: span 3;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(247, 239, 230, 0.12);
  background: linear-gradient(150deg, rgba(90, 13, 31, 0.55), rgba(18, 8, 11, 0.8));
}

.footer-note h4 {
  margin: 0 0 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.overlay.show {
  display: flex;
}

.overlay-card {
  max-width: 520px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(247, 239, 230, 0.18);
  background: rgba(20, 10, 14, 0.92);
  text-align: center;
}

.cookie-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(247, 239, 230, 0.14);
  background: rgba(20, 10, 14, 0.95);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.cookie-box.show {
  display: block;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reel-window {
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(247, 239, 230, 0.14);
  background: rgba(20, 10, 14, 0.85);
}

.reel-track {
  display: grid;
}

.reel-cell {
  height: 100px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}

.wheel-wrap {
  display: grid;
  place-items: center;
  position: relative;
}

.wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(247, 239, 230, 0.2);
  background: conic-gradient(
    from 0deg,
    rgba(242, 197, 107, 0.8) 0 40deg,
    rgba(90, 13, 31, 0.85) 40deg 85deg,
    rgba(242, 197, 107, 0.8) 85deg 130deg,
    rgba(90, 13, 31, 0.85) 130deg 175deg,
    rgba(242, 197, 107, 0.8) 175deg 220deg,
    rgba(90, 13, 31, 0.85) 220deg 265deg,
    rgba(242, 197, 107, 0.8) 265deg 310deg,
    rgba(90, 13, 31, 0.85) 310deg 360deg
  );
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.wheel-label {
  position: absolute;
  transform: rotate(var(--slice-angle)) translateY(-110px) rotate(calc(-1 * var(--slice-angle)));
  font-weight: 700;
  font-size: 0.9rem;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid var(--gold);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.echo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.echo-pad {
  height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(247, 239, 230, 0.2);
  background: rgba(30, 12, 18, 0.75);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--gold-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.echo-pad.active {
  transform: scale(1.04);
  box-shadow: 0 0 22px rgba(242, 197, 107, 0.35);
  border-color: rgba(242, 197, 107, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.float {
  animation: float 5s ease-in-out infinite;
}

@media (max-width: 980px) {
  .topbar {
    order: 2;
    border-top: 1px solid rgba(247, 239, 230, 0.08);
    border-bottom: 0;
    margin-top: 10px;
    font-size: 0.78rem;
  }

  .header-bar {
    order: 1;
  }

  .topbar {
    padding: 12px 0 14px;
    font-size: 0.95rem;
  }

  .topbar span {
    display: block;
    line-height: 1.4;
  }

  .hero-grid,
  .banner,
  .split {
    grid-template-columns: 1fr;
  }

  .game-grid,
  .facts-grid,
  .timeline,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-hero {
    grid-template-columns: 1fr;
  }

  .footer-flow {
    grid-template-columns: 1fr;
  }

  .footer-rail,
  .footer-note {
    grid-column: span 12;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(247, 239, 230, 0.1);
    background: rgba(15, 10, 11, 0.95);
    display: none;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .wallet-pill {
    display: none;
  }
}

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