:root {
  --bg: #fafbff;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #fb923c;
  --accent-2: #22d3ee;
  --accent-soft: #fce7f3;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px -18px rgba(15, 23, 42, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.bg-orbits {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbits::before,
.bg-orbits::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.bg-orbits::before {
  background: radial-gradient(circle, #fed7aa 0%, transparent 65%);
  top: -15%;
  right: -10%;
}

.bg-orbits::after {
  background: radial-gradient(circle, #a5f3fc 0%, #fbcfe8 45%, transparent 70%);
  bottom: -20%;
  left: -15%;
}

.page-wrap {
  position: relative;
  z-index: 1;
}

.disclaimer-bar {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.12), rgba(34, 211, 238, 0.1));
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  padding: 0.55rem 1rem;
}

.disclaimer-bar strong {
  color: var(--text);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 251, 255, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(249, 115, 22, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px -6px rgba(249, 115, 22, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

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

.btn-dark:hover {
  opacity: 0.92;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1rem 0 3rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 2rem 0 4rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero-stats div {
  font-size: 0.9rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.card-stack {
  position: absolute;
  inset: 0;
  perspective: 800px;
}

.float-card {
  position: absolute;
  width: 72%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.float-card:nth-child(1) {
  top: 8%;
  right: 12%;
  transform: rotate(6deg);
}

.float-card:nth-child(2) {
  top: 28%;
  right: 32%;
  transform: rotate(-4deg);
  z-index: 1;
}

.float-card:nth-child(3) {
  top: 48%;
  right: 4%;
  transform: rotate(2deg);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

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

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-soft), #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.games-showcase {
  margin-top: 3.5rem;
}

.featured-game {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .featured-game {
    grid-template-columns: 1.2fr 1fr;
  }
}

.featured-game-media {
  min-height: 200px;
  background: linear-gradient(135deg, #1e293b, #334155, #0ea5e9);
  position: relative;
}

.featured-game-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.featured-game-body {
  padding: 1.75rem;
}

.featured-game-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.featured-game-body p {
  color: var(--muted);
  margin: 0 0 1rem;
}

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

@media (min-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card,
a.game-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

a.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card:hover,
a.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card-thumb {
  aspect-ratio: 3 / 2;
  background: linear-gradient(145deg, #cbd5e1, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.game-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.game-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.game-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.play-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--text), #334155);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-block {
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
}

.trust-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.trust-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.bottom-disclaimer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand a.brand {
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.35rem 0;
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.social-row {
  display: flex;
  gap: 0.65rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.social-row a:hover {
  background: rgba(15, 23, 42, 0.14);
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.footer-legal-text {
  flex: 1 1 100%;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

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

.copyright {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* Inner pages */
.page-hero {
  padding: 1rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.legal-content {
  padding-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Game player (iframe) */
.game-play-intro {
  padding: 0 0 1rem;
}

.game-play-intro h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.game-play-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.game-play-back {
  margin-bottom: 1rem;
}

.game-frame-shell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0f172a;
  position: relative;
}

.game-frame-shell iframe {
  display: block;
  width: 100%;
  min-height: min(85vh, 920px);
  height: 80vh;
  border: 0;
}

/* Age modal */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.age-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.age-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 25px 60px -20px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border);
  text-align: center;
}

.age-overlay .age-badge {
  margin: 0 auto 1rem;
}

.age-modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.age-modal p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.age-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.age-modal-actions .btn {
  width: 100%;
}

@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-main {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  .header-cta {
    margin-left: auto;
  }
}
