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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #121212;
  color: #fff;
  overflow-x: hidden;
}

/* ── Fixed header ─────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 40px;
  background: #1e1e1e;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.header-logo img {
  width: 49px;
  height: 49px;
}

.header-title {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 32px;
  color: #f7f7f7;
}


/* ── Hero section ─────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 60px 80px;
  overflow: hidden;
}

/* ── Left content ─────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 2;
  flex: 0 1 670px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}

h1 {
  font-weight: 900;
  font-size: clamp(36px, 5vw, 65px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 400;
  color: #e0e0e0;
}

.store-badges {
  display: flex;
  gap: 10px;
}

.store-badges a {
  display: block;
  transition: transform 0.15s;
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges img {
  display: block;
  height: 49px;
  width: auto;
}

/* ── Phone mockup ─────────────────────────────────── */

.hero-phone {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 700px;
  z-index: 1;
}

.phone-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(40, 215, 101, 0.12) 0%,
    rgba(40, 215, 101, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.phone-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(10.74deg);
  width: 290px;
  background: #1a1a1a;
  border-radius: 38px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #b4ad98,
    0 0 0 4px rgba(0, 0, 0, 0.3),
    4px 4px 18px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(220, 236, 255, 0.08);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* ── How To Play section ─────────────────────────── */

.how-to-play {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 60px;
  scroll-margin-top: 65px;
}

.how-to-play-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(40, 215, 101, 0.10) 0%,
    rgba(40, 215, 101, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.how-to-play-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
}

.how-to-play-content {
  flex: 0 1 466px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-to-play-content .store-badges {
  margin-top: 0;
}

.how-to-play-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

h2 {
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 65px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.how-to-play-subtitle {
  font-size: clamp(16px, 1.8vw, 25px);
  font-weight: 400;
  color: #e0e0e0;
}

.steps {
  flex: 0 1 553px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #2a2a2a;
  border: 1px solid #858585;
  border-radius: 9px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8);
}

.step-label {
  font-size: 16px;
  font-weight: 700;
  color: #28d765;
}

.step-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.step-card p {
  font-size: 16px;
  font-weight: 400;
  color: #e0e0e0;
}

/* ── Desktop/Mobile toggle ────────────────────────── */

.mobile-only {
  display: none;
}

/* ── Desktop responsive ──────────────────────────── */

@media (max-width: 1200px) {
  .hero-phone {
    right: 20px;
    width: 400px;
  }

  .phone-frame {
    width: 250px;
  }

  .hero-content {
    flex: 0 1 550px;
  }
}

/* ── Mobile breakpoint ───────────────────────────── */

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  /* Header */
  .site-header {
    padding: 8px 20px;
  }

  .header-title {
    font-size: 20px;
  }

  .header-logo {
    gap: 12px;
  }

  .header-logo img {
    width: 36px;
    height: 36px;
  }

  /* ── Mobile hero ──────────────────────────────── */

  .m-hero {
    padding: 80px 24px 40px;
    text-align: center;
  }

  .m-logo {
    width: 52px;
    height: 52px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
    margin: 0 auto 24px;
  }

  .m-headline {
    font-weight: 900;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
  }

  .m-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 24px;
  }

  .m-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
  }

  .m-badges a {
    display: block;
  }

  .m-badges img {
    display: block;
    height: 44px;
    width: auto;
  }

  .m-phone {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .m-phone-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(40, 215, 101, 0.12) 0%,
      rgba(40, 215, 101, 0.04) 40%,
      transparent 70%
    );
    pointer-events: none;
  }

  .m-phone-frame {
    position: relative;
    width: 260px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
      0 0 0 2px #b4ad98,
      0 0 0 4px rgba(0, 0, 0, 0.3),
      4px 4px 18px rgba(255, 255, 255, 0.1),
      0 0 60px rgba(220, 236, 255, 0.08);
  }

  .m-phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
  }

  /* ── Mobile how-to-play ───────────────────────── */

  .m-how-to-play {
    padding: 48px 24px;
  }

  .m-htp-headline {
    font-weight: 900;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }

  .m-htp-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 24px;
  }

  .m-how-to-play .m-badges {
    justify-content: flex-start;
    margin-bottom: 32px;
  }

  .m-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* ── Small phones ────────────────────────────────── */

@media (max-width: 400px) {
  .m-headline {
    font-size: 30px;
  }

  .m-phone-frame {
    width: 220px;
    border-radius: 30px;
    padding: 8px;
  }

  .m-phone-frame img {
    border-radius: 22px;
  }

  .m-badges img {
    height: 38px;
  }
}
