:root {
  --bg-primary: #0a0a0d;
  --bg-secondary: #141417;
  --card-bg: rgba(255, 255, 255, 0.03);
  --accent-primary: #4f6f8f;
  --accent-secondary: #7e9ebf;
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  --border-soft: rgba(126, 158, 191, 0.26);
  --glass-bg: rgba(20, 20, 23, 0.72);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.38);
  --shadow-neon: 0 0 0 1px rgba(79, 111, 143, 0.45), 0 0 22px rgba(79, 111, 143, 0.16);
  --radius-card: 18px;
  --radius-btn: 14px;
  --container-max: 1400px;
  --space-desktop: 100px;
  --space-tablet: 70px;
  --space-mobile: 50px;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(79, 111, 143, 0.2), transparent 55%),
    radial-gradient(800px 400px at 15% 0%, rgba(126, 158, 191, 0.13), transparent 60%),
    var(--bg-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

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

.site-main {
  padding-top: calc(var(--header-height) + 8px);
}

.container {
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding-inline: 22px;
}

.section {
  padding-block: var(--space-mobile);
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(79, 111, 143, 0.25), 0 8px 28px rgba(0, 0, 0, 0.26);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-toggle {
  appearance: none;
  border: 1px solid rgba(126, 158, 191, 0.35);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-menu {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  background: rgba(10, 10, 13, 0.96);
  border-bottom: 1px solid var(--border-soft);
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 16px 24px 22px;
  display: grid;
  gap: 10px;
}

.nav-menu a {
  color: var(--text-secondary);
  padding: 10px 4px;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: calc(100% - 8px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-open .nav-menu {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.btn,
button.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 13px 22px;
  font-weight: 600;
  color: #eef4ff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 10px 20px rgba(79, 111, 143, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 16px 28px rgba(79, 111, 143, 0.34), 0 0 24px rgba(126, 158, 191, 0.28);
}

.btn:focus-visible,
button.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

.header-cta {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  border: 1px solid rgba(126, 158, 191, 0.18);
  box-shadow: var(--shadow-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10, 10, 13, 0.52), rgba(10, 10, 13, 0.92)),
    radial-gradient(circle at 50% 20%, rgba(79, 111, 143, 0.24), transparent 55%);
}

.hero-content {
  max-width: 820px;
  padding: 42px 24px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.hero p {
  margin: 0 auto 18px;
  color: var(--text-secondary);
  max-width: 700px;
}

.legal-inline {
  color: #cdd5df;
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
}

.section-subtitle {
  margin: 0 auto 26px;
  max-width: 760px;
  text-align: center;
  color: var(--text-secondary);
}

.game-area {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.game-frame-wrap {
  width: min(90%, 1300px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(126, 158, 191, 0.38);
  box-shadow: var(--shadow-neon), var(--shadow-soft);
  background: #0f1015;
}

.game-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 74vh;
  border: 0;
  background: #0f1015;
}

.grid-2 {
  display: grid;
  gap: 22px;
}

.info-panel {
  padding: 26px;
}

.info-panel h3 {
  margin-top: 0;
}

.info-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.legal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.legal-item {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(126, 158, 191, 0.2);
}

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

.banner {
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(126, 158, 191, 0.24);
}

.banner img {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(10, 10, 13, 0.44), rgba(10, 10, 13, 0.76));
}

.banner-content {
  position: absolute;
  inset: auto 22px 22px 22px;
  z-index: 1;
}

.icon-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.icon-card {
  text-align: center;
  padding: 18px;
}

.icon-symbol {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

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

.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(126, 158, 191, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

textarea.input-field {
  min-height: 140px;
  resize: vertical;
}

.footer {
  border-top: 1px solid rgba(126, 158, 191, 0.22);
  padding-block: 24px 32px;
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.8s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-tablet); }
  .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .section { padding-block: var(--space-desktop); }
  .container { padding-inline: 30px; }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
    justify-content: center;
    align-items: center;
  }

  .header-cta {
    display: inline-flex;
  }

  .game-frame-wrap {
    width: min(88%, 1280px);
  }

  .game-frame-wrap iframe {
    min-height: 78vh;
  }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .game-frame-wrap { width: 100%; }
  .game-frame-wrap iframe { min-height: 70vh; }
}