:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;
  --bg: #071121;
  --bg-soft: #0c1e38;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #b5c5d8;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #23a7ff;
  --accent-2: #77d7ff;
  --gold: #ffd76a;
  --gold-deep: #d89420;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 106, 0.18), transparent 28%),
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 34%),
    radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-soft) 58%, #06101c);
  color: var(--text);
}

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

button {
  font: inherit;
}

.site {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 22px;
}

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

.brand img {
  width: 156px;
  height: auto;
  display: block;
}

.theme-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.06);
}

.theme-links a.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.lang-toggle {
  min-height: 38px;
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 999px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.2), rgba(255, 255, 255, 0.07));
  color: #ffe7a5;
  cursor: pointer;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: center;
  min-height: 560px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.luck-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.luck-strip span {
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 999px;
  padding: 9px 13px;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.18), rgba(255, 255, 255, 0.06));
  color: #ffe7a5;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(216, 148, 32, 0.14);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--accent-2) 48%, var(--accent));
  color: #04101c;
  font-weight: 900;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 34%, transparent);
  cursor: pointer;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

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

.phone {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 215, 106, 0.32);
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 215, 106, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.phone::before {
  width: 120px;
  height: 120px;
  right: -28px;
  top: 34px;
  background: radial-gradient(circle, rgba(255, 215, 106, 0.62), transparent 62%);
}

.phone::after {
  width: 150px;
  height: 150px;
  left: -42px;
  bottom: 40px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 48%, transparent), transparent 66%);
}

.phone-screen {
  overflow: hidden;
  border-radius: 24px;
  min-height: 620px;
  background:
    radial-gradient(circle at 30% 8%, rgba(255, 215, 106, 0.22), transparent 24%),
    #07101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
}

.phone-logo {
  width: 156px;
  display: block;
  margin: 8px auto 18px;
}

.phone-hero {
  display: block;
  width: min(180px, 62%);
  margin: -22px auto 12px;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.35));
}

.lucky-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 106, 0.36);
  border-radius: 18px;
  min-height: 360px;
  background: #160b10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 36px rgba(0, 0, 0, 0.35);
}

.lucky-hero {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 106, 0.58);
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.94), rgba(255, 118, 58, 0.9));
  color: #240b06;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.badge-top {
  top: 14px;
  right: 14px;
}

.badge-bottom {
  left: 14px;
  bottom: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-grid.compact {
  position: relative;
  margin-top: -22px;
  grid-template-columns: repeat(4, 1fr);
  z-index: 2;
}

.game-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 215, 106, 0.12), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.game-card strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-grid.compact .game-card {
  padding: 6px;
  border-color: rgba(255, 215, 106, 0.26);
}

.mini-grid.compact .game-card strong {
  display: none;
}

.tabs-panel {
  margin-top: 26px;
  border: 1px solid rgba(255, 215, 106, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 215, 106, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.tab {
  border: 0;
  color: var(--muted);
  background: rgba(4, 12, 24, 0.72);
  min-height: 58px;
  cursor: pointer;
  font-weight: 800;
}

.tab.is-active {
  color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, rgba(4, 12, 24, 0.82)), rgba(216, 148, 32, 0.24));
}

.tab-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 30px;
  align-items: center;
}

.tab-content.is-active {
  display: grid;
}

.tab-content h2 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4vw, 44px);
}

.tab-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
}

.feature-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.showcase.feature-games {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.showcase.feature-games .game-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(255, 215, 106, 0.3);
}

.showcase.feature-games .game-card img {
  max-height: 138px;
}

.showcase.feature-games .game-card strong {
  font-size: 15px;
  text-align: center;
  color: #ffe7a5;
}

.contact-box {
  border: 1px solid rgba(255, 215, 106, 0.28);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 215, 106, 0.18), transparent 42%),
    var(--panel);
}

.contact-box span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.contact-box strong {
  display: block;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  padding-top: 28px;
  font-size: 14px;
}

body[data-theme="red"] {
  --bg: #21070d;
  --bg-soft: #3b0d18;
  --accent: #ff3d57;
  --accent-2: #ffb36e;
}

body[data-theme="green"] {
  --bg: #061910;
  --bg-soft: #0d3322;
  --accent: #22d07a;
  --accent-2: #b8ff72;
}

body[data-theme="color"] {
  --bg: #10102c;
  --bg-soft: #30105a;
  --accent: #ff4ed8;
  --accent-2: #40e7ff;
}

@media (max-width: 860px) {
  .site {
    width: min(100% - 24px, 720px);
    padding-top: 14px;
  }

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

  .theme-links {
    justify-content: flex-start;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-screen {
    min-height: auto;
  }

  .lucky-hero {
    height: 420px;
    object-position: center 12%;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-content {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 136px;
  }

  .theme-links a {
    padding: 8px 10px;
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-btn,
  .ghost-btn {
    width: 100%;
  }

  .showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .lucky-hero {
    height: 340px;
  }
}
