:root {
  --ink: #f7fbff;
  --muted: #adc2cf;
  --bg: #071016;
  --panel: #0d222d;
  --line: rgba(255, 255, 255, 0.13);
  --gold: #ffbd36;
  --coral: #ff3f65;
  --teal: #16d8c4;
  --green: #6bdd80;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

body.locked { overflow: hidden; }

a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 22, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #061016;
  box-shadow: 0 10px 30px rgba(255, 189, 54, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 8px;
}

.hero {
  min-height: calc(100svh - 72px);
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/hero.png") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 16, 22, 0.94) 0%, rgba(7, 16, 22, 0.72) 42%, rgba(7, 16, 22, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 16, 22, 0) 30%);
}

.hero-inner, .section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(650px, 100%);
  padding: 54px 0 130px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: 0; }

h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 { font-size: 1.35rem; }

p { color: var(--muted); margin: 0; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin-top: 22px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  background: var(--gold);
  color: #071016;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.danger {
  background: rgba(255, 63, 101, 0.16);
  color: #ffdce4;
  border: 1px solid rgba(255, 63, 101, 0.42);
}

.button:hover { transform: translateY(-1px); }

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a1921;
}

.trust-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-item {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.025);
}

.trust-item strong { display: block; color: var(--ink); }

.section {
  padding: 88px 0;
}

.section.alt {
  background: #0a1820;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 440px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

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

.game-card {
  border: 1px solid var(--line);
  background: #0e242f;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.game-body {
  padding: 18px;
}

.game-body p { min-height: 52px; }

.game-body .button {
  width: 100%;
  margin-top: 18px;
}

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

.info-box, .content-card {
  border: 1px solid var(--line);
  background: #0d222d;
  border-radius: 8px;
  padding: 24px;
}

.content-card + .content-card { margin-top: 18px; }

.disclaimer {
  border: 1px solid rgba(255, 189, 54, 0.38);
  background: linear-gradient(135deg, rgba(255, 189, 54, 0.12), rgba(22, 216, 196, 0.08));
  border-radius: 8px;
  padding: 26px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-list a { color: var(--teal); }

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

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

.field-hidden { display: none; }

.form-note { font-size: 0.92rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #050c11;
  padding: 34px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.76);
}

.modal-backdrop.active { display: flex; }

.modal {
  width: min(1100px, 100%);
  max-height: 92svh;
  background: #071016;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.game-frame {
  width: 100%;
  height: min(72svh, 720px);
  border: 0;
  display: block;
  background: #000;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 12, 0.9);
}

.age-gate[hidden] {
  display: none !important;
}

.age-box {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: #0d222d;
  box-shadow: var(--shadow);
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.access-denied {
  display: none;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: #071016;
}

body.denied > *:not(.access-denied) { display: none !important; }
body.denied .access-denied { display: grid !important; }

.page-hero {
  padding: 86px 0 50px;
  background: #0a1921;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.legal-content {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 82px;
}

.legal-content h2 { font-size: 1.6rem; margin: 30px 0 12px; }
.legal-content p, .legal-content li { color: var(--muted); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0a1921;
  }
  .nav-links.open { display: flex; }
  .trust-grid, .games-grid, .info-grid, .contact-layout, .section-head {
    grid-template-columns: 1fr;
  }
  .games-grid { gap: 22px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 60px 0 96px; }
}

@media (max-width: 560px) {
  .brand span:last-child { max-width: 175px; }
  .section { padding: 62px 0; }
  .hero-actions, .age-actions { grid-template-columns: 1fr; display: grid; }
  .button { width: 100%; }
  .age-box { padding: 24px; }
  .game-frame { height: 70svh; }
}
