:root {
  --bg: #06111c;
  --bg-deep: #041b2c;
  --surface: rgba(9, 27, 41, 0.78);
  --surface-strong: #0a2233;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(116, 194, 255, 0.22);
  --text: #eff7ff;
  --muted: #aab9c8;
  --accent: #ffb648;
  --accent-strong: #ff8855;
  --accent-cool: #59d7d0;
  --success: #8cf2bd;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1180px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(rgba(5, 16, 26, 0.82), rgba(4, 21, 32, 0.82)),
    radial-gradient(circle at top left, rgba(89, 215, 208, 0.14), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 182, 72, 0.12), transparent 26%),
    url("images/background.jpg") center / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
}

body.is-locked {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.1;
}

p,
ul {
  margin-top: 0;
}

ul {
  padding-left: 1.25rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(4, 18, 28, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 96px 0 72px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(89, 215, 208, 0.22), transparent 24%),
    radial-gradient(circle at 75% 16%, rgba(255, 182, 72, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero h1,
.page-hero h1 {
  max-width: 12ch;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text,
.page-hero p:last-child {
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #11202e;
}

.button-ghost,
.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-points li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(5, 20, 31, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel__glow {
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 182, 72, 0.22), transparent 65%);
}

.hero-panel__label,
.game-card__tag {
  margin-bottom: 18px;
  color: var(--accent-cool);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel__games {
  display: grid;
  gap: 16px;
}

.hero-panel__games article,
.feature-card,
.story-card,
.policy-card,
.support-card,
.contact-form,
.game-card,
.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 27, 39, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel__games article {
  padding: 18px 20px;
}

.hero-panel__games strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.hero-panel__games span {
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p:last-child {
  color: var(--muted);
}

.about-grid,
.story-grid,
.policy-grid {
  display: grid;
  gap: 22px;
}

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

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

.policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.story-card,
.support-card,
.contact-form,
.legal-card {
  padding: 28px;
}

.feature-card p,
.story-card p,
.policy-card p,
.support-card p,
.contact-form label,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.story-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 182, 72, 0.18), rgba(89, 215, 208, 0.14));
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.policy-card {
  display: block;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.policy-card:hover,
.policy-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 182, 72, 0.3);
}

.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

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

.faq-list details {
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin-top: 14px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(89, 215, 208, 0.45);
  outline-offset: 2px;
}

.form-feedback {
  margin: 6px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(140, 242, 189, 0.35);
  border-radius: 14px;
  background: rgba(140, 242, 189, 0.14);
  color: var(--success);
  font-weight: 700;
}

.page-hero {
  padding: 84px 0 38px;
}

.page-hero--compact h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.games-grid {
  display: grid;
  gap: 24px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.game-card__media {
  background: rgba(255, 255, 255, 0.03);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 28px;
}

.game-card__body p:not(.game-card__tag) {
  margin-bottom: 22px;
  color: var(--muted);
}

.legal-card h2 {
  margin-top: 1.9rem;
  font-size: 1.36rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 36px 0 20px;
  background: rgba(2, 11, 18, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-footer {
  margin-bottom: 18px;
}

.site-footer h3 {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li,
.footer-copy,
.footer-bottom p {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.iframe-page {
  display: flex;
  flex-direction: column;
}

.iframe-page main {
  flex: 1;
}

.game-frame {
  display: block;
  width: 100%;
  height: 78svh;
  min-height: calc(100svh - 260px);
  border: 0;
  background: #020910;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 9, 15, 0.82);
  backdrop-filter: blur(18px);
}

.age-gate__panel {
  width: min(560px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 182, 72, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    #071925;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 182, 72, 0.22), rgba(89, 215, 208, 0.18));
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.age-gate__panel h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-transform: uppercase;
}

.age-gate__panel p,
.age-gate__panel li {
  color: var(--muted);
}

.age-gate__list {
  margin: 22px 0;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1080px) {
  .hero-layout,
  .faq-grid,
  .contact-grid,
  .about-grid,
  .story-grid,
  .policy-grid,
  .footer-grid,
  .game-card {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .game-card__media {
    max-height: 360px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(5, 19, 29, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .header-row {
    min-height: 78px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .hero-actions,
  .age-gate__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .story-card,
  .support-card,
  .contact-form,
  .legal-card,
  .hero-panel,
  .age-gate__panel,
  .game-card__body {
    padding: 22px;
  }

  .section,
  .page-hero {
    padding: 60px 0;
  }

  .page-hero {
    padding-bottom: 28px;
  }

  .game-frame {
    height: 84svh;
    min-height: calc(100svh - 220px);
  }
}
