:root {
  --bg: #08051a;
  --bg-2: #0f0a2e;
  --card: #1a1240;
  --card-2: #251952;
  --line: #2e2160;
  --primary: #9333ea;
  --primary-2: #c084fc;
  --primary-glow: rgba(147, 51, 234, 0.48);
  --gold: #facc15;
  --text: #ffffff;
  --muted: #a89fc4;
  --success: #2bd17e;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(147, 51, 234, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(192, 132, 252, 0.1), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* type ------------------------------------------------------------- */
.display {
  font-family: 'Anton', 'Bowlby One', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.badge-font {
  font-family: 'Bowlby One', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* layout ----------------------------------------------------------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* header ----------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 5, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.logo-text {
  font-family: 'Bowlby One', sans-serif;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* buttons ---------------------------------------------------------- */
.btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary-2) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 17px;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 18px;
}

/* hero ------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 340px;
  background:
    radial-gradient(800px 400px at 75% 60%, rgba(147, 51, 234, 0.58), transparent 65%),
    linear-gradient(135deg, #190a3a 0%, #2a0c5c 50%, #150832 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  align-items: center;
}

.hero-copy {
  padding: 48px 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 211, 77, 0.12);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 211, 77, 0.3);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 64px;
  margin: 0 0 22px 0;
}

.hero-title .gold {
  color: var(--gold);
}

.hero-sub {
  color: #e7e3f3;
  max-width: 420px;
  font-size: 15px;
  margin: 0 0 28px 0;
}

.hero-art {
  position: relative;
  height: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
}

/* sections --------------------------------------------------------- */
.section {
  margin: 72px 0 0 0;
}

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

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: 38px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0 0;
}

.section-link {
  color: var(--primary-2);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.section-link:hover {
  color: #fff;
}

/* games grid ------------------------------------------------------- */
.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.game {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  isolation: isolate;
  background: #190a3a;
  padding: 0;
}

.game:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 51, 234, 0.55);
  box-shadow: 0 20px 40px -20px rgba(147, 51, 234, 0.55);
}

.game:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.game-art {
  position: absolute;
  inset: 0;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(150% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 50%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.game-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 70%);
  color: #fff;
  font-family: 'Bowlby One', sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.game-provider {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #2a1a00;
  font-family: 'Bowlby One', sans-serif;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-tag.new {
  background: var(--success);
  color: #062a17;
}

.game-tag.hot {
  background: var(--primary);
  color: #fff;
}

.game-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 23, 0.6);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.game:hover .game-play {
  opacity: 1;
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

/* feature row ------------------------------------------------------ */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(147, 51, 234, 0.18);
  color: var(--primary-2);
  margin-bottom: 16px;
}

.feature h3 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* promo card ------------------------------------------------------- */
.promo {
  margin-top: 72px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(147, 51, 234, 0.6), transparent 65%),
    linear-gradient(135deg, #190a3a 0%, #2a0c5c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.promo-art {
  font-size: 0;
  line-height: 0;
  margin-bottom: 8px;
}

.promo h2 {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.promo h2 .gold {
  color: var(--gold);
}

.promo p {
  color: #e7e3f3;
  margin: 0 0 12px 0;
  max-width: 520px;
  font-size: 15px;
}

/* footer ----------------------------------------------------------- */
.footer {
  margin-top: 96px;
  background: #050314;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 56px 0 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer h4 {
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.age-pill {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Bowlby One', sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

/* modal ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 2, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  width: 100%;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  animation: slideUp .3s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background .15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* game iframe modal ------------------------------------------------ */
.game-modal {
  max-width: 1100px;
  width: 96vw;
  height: 88vh;
  max-height: 760px;
  display: flex;
  flex-direction: column;
}

.game-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 60px 16px 22px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.28), rgba(192, 132, 252, 0.14));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.game-modal-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #08051a;
}

.game-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-modal-title {
  font-family: "Anton", sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.game-modal-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.game-modal-frame {
  flex: 1 1 auto;
  position: relative;
  background: #000;
  min-height: 0;
}

.game-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.game-modal-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #08051a;
  color: var(--muted);
  font-size: 14px;
  gap: 14px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.game-modal-disclaimer {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}

/* age gate --------------------------------------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(135deg, #08051a 0%, #1d0c45 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.age-gate-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.age-gate-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.age-gate-title {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.age-gate-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.age-gate-btns {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.age-gate-fine {
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.age-gate-fine a {
  color: var(--primary-2);
  text-decoration: underline;
}

/* cookie banner ---------------------------------------------------- */
.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 1232px;
  margin: 0 auto;
  background: rgba(15, 10, 46, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  animation: slideUp .35s ease;
}

.cookie p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: #cfc8e0;
  line-height: 1.5;
}

.cookie a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie .btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* legal page (terms/privacy/etc) ----------------------------------- */
.legal {
  max-width: 820px;
  margin: 48px auto 0;
  padding: 0 28px;
}

.legal h1 {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.legal .lede {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 36px 0 12px;
  color: var(--primary-2);
}

.legal h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 24px 0 8px;
  color: #fff;
}

.legal p,
.legal li {
  color: #cfc8e0;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

.legal a {
  color: var(--primary-2);
}

.legal strong {
  color: #fff;
}

.legal .callout {
  background: rgba(251, 211, 77, 0.06);
  border: 1px solid rgba(251, 211, 77, 0.25);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
  color: #fff;
  font-size: 14px;
}

/* responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 36px 28px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-art {
    display: none;
  }

  .games {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo h2 {
    font-size: 34px;
  }

  .section-title {
    font-size: 30px;
  }

  .game-modal {
    height: 94vh;
    max-height: none;
    width: 100vw;
    border-radius: 0;
  }

  .legal h1 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .games {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrap {
    padding: 0 18px;
  }

  .hero-title {
    font-size: 34px;
  }
}