:root {
  --purple: #3c1a6b;
  --purple-deep: #2a114d;
  --yellow: #f5c518;
  --orange: #f0a10a;
  --telegram: #2aabee;
  --telegram-dark: #229ed9;
  --gray: #6b7285;
  --muted: #8b93a7;
  --bg: #f4f2f7;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(60, 26, 107, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: Poppins, sans-serif;
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 197, 24, 0.12), transparent 22%),
    radial-gradient(circle at 92% 62%, rgba(60, 26, 107, 0.06), transparent 24%),
    linear-gradient(180deg, #f7f6fb 0%, #f3f1f6 48%, #efeef5 100%);
  color: var(--purple);
}

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

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

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

.float-star,
.float-puzzle {
  position: absolute;
  opacity: 0.45;
}

.float-star.s1 {
  width: 28px;
  top: 18%;
  right: 8%;
}
.float-star.s2 {
  width: 22px;
  top: 46%;
  right: 3%;
}
.float-star.s3 {
  width: 18px;
  top: 72%;
  right: 14%;
}
.float-puzzle.p1 {
  width: 42px;
  top: 58%;
  right: 6%;
  opacity: 0.35;
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 16px 12px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-radhe {
  color: var(--purple);
  font-size: 15px;
}

.brand-book {
  color: var(--orange);
  font-size: 15px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.nav a {
  color: var(--purple);
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.nav a.is-active,
.nav a:hover {
  border-bottom-color: var(--purple);
}

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #ffe27a 0%, #f5c518 42%, #f0a10a 100%);
  color: var(--purple);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(240, 161, 10, 0.28);
  white-space: nowrap;
}

.join-btn img {
  width: 16px;
  height: 16px;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.tagline {
  display: inline-block;
  margin-top: 14px;
  color: var(--gray);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
}

.feature-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  display: block;
  background: var(--white);
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(60, 26, 107, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(60, 26, 107, 0.12);
}

.feature-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h2 {
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.tg-btn {
  margin-top: 22px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--telegram);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(42, 171, 238, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}

.tg-btn:hover {
  background: var(--telegram-dark);
  transform: translateY(-1px);
}

.tg-btn svg {
  width: 28px;
  height: 28px;
}

.trust-line {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.trust-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-visual {
  display: block;
  position: relative;
  min-height: 520px;
}

.hero-visual .asset {
  position: absolute;
  filter: drop-shadow(0 18px 24px rgba(42, 17, 77, 0.16));
  user-select: none;
  pointer-events: none;
}

.asset.ludo {
  width: 58%;
  top: 8%;
  left: 2%;
  z-index: 2;
}
.asset.puzzle {
  width: 46%;
  top: 4%;
  right: 2%;
  z-index: 3;
}
.asset.knight {
  width: 38%;
  bottom: 8%;
  left: 18%;
  z-index: 4;
}
.asset.bubble {
  width: 28%;
  bottom: 18%;
  right: 10%;
  z-index: 5;
}
.asset.bulb {
  width: 16%;
  top: 38%;
  right: 0;
  z-index: 4;
}
.asset.mini-puzzle {
  width: 12%;
  bottom: 6%;
  right: 28%;
  opacity: 0.9;
}
.asset.mini-star.a {
  width: 8%;
  top: 2%;
  left: 46%;
}
.asset.mini-star.b {
  width: 7%;
  bottom: 12%;
  right: 2%;
}

.games,
.support {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
}

.section-head {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 32px;
}

.section-head p {
  margin-top: 8px;
  color: var(--gray);
}

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

.game-card {
  display: block;
  background: var(--white);
  border-radius: 20px;
  padding: 18px 16px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(60, 26, 107, 0.12);
}

.game-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.game-card h3 {
  font-size: 20px;
}

.game-card p {
  margin-top: 6px;
  color: var(--gray);
  font-size: 14px;
}

.support-card {
  display: block;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 42px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 8px;
}

.support-icon {
  width: 84px;
  margin: 0 auto 8px;
}

.support-card h2 {
  font-size: 28px;
}

.support-card p {
  margin: 10px auto 0;
  max-width: 46ch;
  color: var(--gray);
}

.support-card .tg-btn {
  max-width: 420px;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 36px 16px 28px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 420px;
  }

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

@media (max-width: 640px) {
  .topbar,
  .hero,
  .games,
  .support {
    width: calc(100% - 24px);
  }

  .nav {
    gap: 22px;
  }

  .join-btn {
    font-size: 12px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
  }

  .feature-row,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
  }

  .tg-btn {
    font-size: 17px;
  }

  .trust-line {
    font-size: 12px;
  }
}
