:root {
  --paper: #fffaf1;
  --paper-strong: #fff3d4;
  --text: #1f1f1f;
  --muted: #5d5a4f;
  --yellow: #ffd24d;
  --yellow-strong: #ffb400;
  --red: #ff5a3d;
  --red-deep: #ef3b24;
  --sky: #44c6ff;
  --sky-deep: #1596e6;
  --shadow: 0 22px 60px rgba(56, 43, 16, 0.16);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 210, 77, 0.34), transparent 30%),
    radial-gradient(circle at top right, rgba(68, 198, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #fff8ea 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.25;
  mix-blend-mode: soft-light;
}

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

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(89, 59, 8, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: "Baloo 2", cursive;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 800;
  color: #58471b;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease;
}

.nav a:hover {
  background: rgba(255, 210, 77, 0.3);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 38px;
  border-radius: 42px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02) brightness(1.03);
}

.hero-overlay {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 239, 200, 0.34) 100%);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding: 12px 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 16px;
  border: 2px solid rgba(255, 90, 61, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--red-deep);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Baloo 2", cursive;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: #4a4334;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #241900;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe680 100%);
  box-shadow: 0 14px 26px rgba(255, 196, 56, 0.36);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(31, 31, 31, 0.08);
  box-shadow: 0 10px 20px rgba(69, 48, 11, 0.09);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span,
.game-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-points span {
  background: rgba(255, 255, 255, 0.84);
  color: #503d13;
  border: 1px solid rgba(255, 210, 77, 0.45);
}

.carousel-panel {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 45px rgba(92, 54, 0, 0.12);
  backdrop-filter: blur(18px);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.carousel-header p {
  margin: 0;
  color: #5b4717;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow-strong));
  color: white;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(239, 59, 36, 0.28);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 28px;
}

.carousel-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
  flex: 0 0 100%;
  min-height: 320px;
  padding: 30px;
  border-radius: 28px;
  color: #1f1f1f;
}

.slide h2 {
  margin: 16px 0 10px;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.slide p {
  max-width: 24ch;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 700;
}

.slide-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slide-yellow {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(135deg, #ffe46f 0%, #fff3bf 100%);
}

.slide-sky {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 28%),
    linear-gradient(135deg, #a8e6ff 0%, #e5f9ff 100%);
}

.slide-red {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(135deg, #ff8d78 0%, #ffe5dc 100%);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, width 180ms ease;
}

.carousel-dots button.active {
  width: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--yellow-strong));
}

.stats,
.section,
.cta {
  margin-top: 22px;
}

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

.stats article,
.game-card,
.feature-item,
.cta,
.section-heading {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stats article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.stats strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--sky-deep);
  font-size: 1.25rem;
  font-weight: 900;
}

.stats h3,
.section-heading h2,
.game-card h3,
.feature-item h3,
.cta h2 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  line-height: 1.02;
}

.stats h3 {
  font-size: 1.6rem;
}

.stats p,
.section-heading p,
.game-card p,
.feature-item p,
.cta p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.section {
  padding: 6px 0;
}

.section-heading {
  padding: 6px 2px 20px;
}

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

.section-heading p {
  max-width: 780px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.game-card ul {
  padding-left: 18px;
  margin: 16px 0 22px;
  color: #484339;
  line-height: 1.8;
  font-weight: 700;
}

.game-card li + li {
  margin-top: 6px;
}

.game-badge {
  width: fit-content;
  margin-bottom: 14px;
  color: #fff;
}

.game-card-sky .game-badge {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
}

.game-card-red .game-badge {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
}

.game-card-sky {
  border-top: 7px solid var(--sky);
}

.game-card-red {
  border-top: 7px solid var(--red);
}

.game-card h3 {
  font-size: 2rem;
}

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

.section-heading.compact {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #ffe780);
  color: #3b2a00;
  font-weight: 900;
}

.feature-item h3 {
  font-size: 1.5rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 222, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.reveal {
  animation: rise 0.8s ease both;
}

.reveal:nth-child(2) {
  animation-delay: 0.05s;
}

.reveal:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-content,
  .split,
  .cta,
  .stats,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 24px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .carousel-panel {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    border-radius: 28px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .hero {
    border-radius: 28px;
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .slide {
    min-height: 290px;
    padding: 22px;
  }

  .stats article,
  .game-card,
  .feature-item,
  .cta,
  .carousel-panel {
    border-radius: 24px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
