:root {
  --bg: #f1f8ff;
  --bg-soft: #ffffff;
  --text: #183048;
  --muted: #4a6073;
  --primary: #ffcf2e;
  --primary-dark: #f0b900;
  --blue: #3f8cff;
  --green: #37c978;
  --red: #ff5b61;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(25, 67, 115, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #d8efff 0%, var(--bg) 56%, #eef8ff 100%);
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(24, 48, 72, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ffd95f);
  box-shadow: 0 6px 16px rgba(255, 184, 0, 0.35);
  position: relative;
}

.logo-badge::after {
  content: "";
  position: absolute;
  inset: 10px 7px 10px 7px;
  border-radius: 6px;
  background: #24394f;
}

.menu-btn {
  display: none;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  box-shadow: var(--shadow);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.menu a {
  font-weight: 700;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #163046;
  box-shadow: 0 8px 18px rgba(255, 196, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(24, 48, 72, 0.12);
}

.hero {
  padding: 3.5rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

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

.hero p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual {
  background: linear-gradient(160deg, #faf8ef, #f3efe3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(155, 129, 91, 0.2);
}

.hero-tile {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #776e65;
  box-shadow: 0 8px 14px rgba(60, 50, 30, 0.18);
  animation: float 3.5s ease-in-out infinite;
}

.hero-tile.t2 {
  background: #eee4da;
  top: 48px;
  left: 16%;
}

.hero-tile.t4 {
  background: #ede0c8;
  top: 134px;
  left: 34%;
}

.hero-tile.t8 {
  background: #f2b179;
  color: #f9f6f2;
  top: 72px;
  right: 26%;
  animation-delay: 0.35s;
}

.hero-tile.t16 {
  background: #f59563;
  color: #f9f6f2;
  top: 196px;
  left: 24%;
  animation-delay: 0.7s;
}

.hero-tile.t32 {
  background: #f67c5f;
  color: #f9f6f2;
  top: 170px;
  right: 14%;
  animation-delay: 1.05s;
}

.section {
  padding: 2rem 0;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.lead {
  color: var(--muted);
  max-width: 760px;
}

.cards {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem;
  border: 1px solid rgba(24, 48, 72, 0.08);
}

.card h3 {
  margin: 0 0 0.35rem;
}

.game-preview {
  margin-top: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.mock-screen {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #bbada0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 72, 0.08);
}

.mock-grid {
  position: absolute;
  inset: 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.mock-tile {
  border-radius: 8px;
  min-height: 56px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #776e65;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.tile-2 {
  background: #eee4da;
}
.tile-4 {
  background: #ede0c8;
}
.tile-8 {
  background: #f2b179;
  color: #f9f6f2;
}
.tile-16 {
  background: #f59563;
  color: #f9f6f2;
}
.tile-32 {
  background: #f67c5f;
  color: #f9f6f2;
}
.tile-64 {
  background: #f65e3b;
  color: #f9f6f2;
}
.tile-128 {
  background: #edcf72;
}

.cta {
  margin: 2rem 0 1rem;
  background: linear-gradient(155deg, #4a95ff, #5ca6ff 55%, #7fc4ff);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 14px 28px rgba(41, 111, 204, 0.3);
}

.embed-wrap {
  margin-top: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.game-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #d8e8f7;
}

.game-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.info-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.faq {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.faq details {
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(24, 48, 72, 0.08);
}

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

.site-footer {
  margin-top: 2rem;
  background: #15293b;
  color: #d6e4f4;
}

.footer-grid {
  padding: 1.5rem 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.8rem 0 1rem;
  color: #aac2d8;
  font-size: 0.95rem;
}

.page-title {
  padding: 2.2rem 0 0.8rem;
}

.content-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  border: 1px solid rgba(24, 48, 72, 0.08);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 74px;
    right: 1rem;
    left: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(24, 48, 72, 0.08);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .menu.open {
    display: flex;
  }

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

@media (max-width: 640px) {
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
