:root {
  --plum: #d45ba8;
  --plum-dark: #a83d82;
  --turquoise: #5ce1e6;
  --turquoise-dark: #3bb8bd;
  --peru: #e5894b;
  --bg: #07070b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.72);
  --border: rgba(180, 140, 255, 0.22);
  --nav-height: 80px;
  --max-width: 1200px;
  --font: "Work Sans", "Lato", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Nav ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.55) 0%, rgba(7, 7, 11, 0.15) 100%);
  backdrop-filter: blur(4px);
  border-bottom: none;
}

.nav-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--plum), var(--turquoise));
  transform-origin: left center;
  z-index: 101;
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  justify-self: start;
  grid-column: 1;
  flex-shrink: 0;
}

.nav-logo img,
.nav-logo-image {
  width: 8.5rem;
  max-width: 36vw;
  height: auto;
  max-height: 2.35rem;
  display: block;
  object-fit: contain;
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 1rem;
  padding: 0.15rem 0.35rem;
  font-family: "Work Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-dropdown-toggle:hover {
  color: var(--turquoise);
}

.nav-links a.is-active {
  border-color: var(--plum);
}

.nav-dropdown-toggle .nav-chevron {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.9;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 180px;
  padding: 0.5rem;
  background: #12121a;
  border: 1px solid var(--border);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s ease;
  list-style: none;
  margin: 0;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  border: none;
}

.nav-dropdown-menu a:hover {
  color: var(--turquoise);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ── Hero grid ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 600px;
  overflow: hidden;
}

.hero-grid-floor,
.hero-grid-ceiling {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 55%;
  transform: rotateX(68deg);
  background-image:
    linear-gradient(var(--turquoise) 1px, transparent 1px),
    linear-gradient(90deg, var(--turquoise) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.hero-grid-floor {
  bottom: -10%;
  animation: grid-scroll 18s linear infinite;
}

.hero-grid-ceiling {
  top: -10%;
  animation: grid-scroll 22s linear infinite reverse;
  opacity: 0.2;
}

@keyframes grid-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 80px; }
}

.hero-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-left {
  left: -20%;
  top: 20%;
  background: radial-gradient(circle, var(--turquoise) 0%, transparent 70%);
}

.hero-glow-right {
  right: -10%;
  bottom: 10%;
  background: radial-gradient(circle, var(--plum) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 4rem 0 6rem;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  margin: 0 0 1.75rem;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, var(--plum) 0%, var(--turquoise) 55%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.game-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.game-card {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-radius: 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.game-card.plum { background: var(--plum); }
.game-card.turquoise { background: var(--turquoise); }

.game-card-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── World collage ── */
.world-section {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.world-ellipse {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(92, 225, 230, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.world-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px) 1fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 520px;
}

.world-center {
  text-align: center;
  z-index: 2;
  padding: 1rem;
}

.world-heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.world-media-btn {
  min-width: 140px;
}

.world-col {
  position: relative;
  min-height: 420px;
}

.world-tile {
  position: absolute;
  margin: 0;
  width: clamp(120px, 16vw, 180px);
}

.world-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.world-tile a:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(92, 225, 230, 0.2);
}

.world-tile figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--peru);
}

.world-col-left .world-tile-a { top: 0; left: 18%; }
.world-col-left .world-tile-b { top: 28%; left: 0; }
.world-col-left .world-tile-c { top: 52%; left: 22%; }
.world-col-left .world-tile-d { bottom: 0; left: 8%; }

.world-col-right .world-tile-e { top: 5%; right: 10%; }
.world-col-right .world-tile-f { top: 38%; right: 0; }
.world-col-right .world-tile-g { bottom: 5%; right: 18%; }

/* ── Sections ── */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
}

.section-intro {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-muted);
}

.section-faq {
  padding-top: 3rem;
}

.section-contact {
  padding-top: 2rem;
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 2px;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.faq-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(90deg, #e8a0c8, var(--turquoise));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--peru);
  transition: transform 0.25s;
  font-size: 0.75rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.faq-panel a {
  color: var(--turquoise);
  text-decoration: underline;
}

.faq-panel ul {
  padding-left: 1.25rem;
}

/* ── Contact form ── */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.contact-heading {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: rgba(245, 245, 247, 0.55);
}

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

.btn-contact {
  align-self: center;
  min-width: 160px;
  background: #6b5b95;
  color: #fff;
  border: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-contact:hover {
  background: #5a4d80;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-name-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.meta-name-at {
  padding: 0.85rem 0 0.85rem 1rem;
  color: var(--turquoise);
  font-weight: 700;
  user-select: none;
}

.meta-name-field input {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-left: 0.25rem;
}

.contact-form-status {
  margin: 0.5rem 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form-status.is-success {
  color: var(--turquoise);
}

.contact-form-status.is-error {
  color: #f08a8a;
}

.form-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.form-note a {
  color: var(--turquoise);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-plum {
  background: var(--plum);
  color: #fff;
}

.btn-turquoise {
  background: var(--turquoise);
  color: #111;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Game / content pages ── */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
}

.page-hero .game-logo {
  max-height: 80px;
  margin: 0 auto 1.5rem;
}

.platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.platform-logos img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.content-block {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-muted);
}

.content-block h2 {
  color: var(--text);
  margin-top: 2rem;
}

.legal-effective {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-document {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-document h2 {
  margin: 2.5rem 0 1rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-document h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-document p {
  margin: 0 0 1rem;
}

.legal-document ul,
.legal-document ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document a {
  color: var(--turquoise);
  text-decoration: underline;
  word-break: break-word;
}

.legal-document strong {
  color: var(--text);
}

.legal-document .legal-caps {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(92, 225, 230, 0.04));
}

.footer-glow {
  position: absolute;
  left: -20%;
  top: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at left center, rgba(92, 225, 230, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 150px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--peru);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--turquoise);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-legal a {
  color: var(--peru);
}

.footer-legal a:hover {
  color: var(--turquoise);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .world-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .world-col {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: static;
  }

  .world-tile {
    position: static;
    width: 100%;
    margin: 0 auto;
    max-width: 180px;
  }

  .world-center {
    order: -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-logo {
    grid-column: 1;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(7, 7, 11, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }

  .nav-links a,
  .nav-dropdown-toggle {
    margin: 0.25rem 0;
    font-size: 1rem;
  }

  .site-header.menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}
