@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg: #031f19;
  --bg-deep: #021510;
  --panel: #0a342b;
  --panel-2: #0f4134;
  --green: #20e76f;
  --green-bright: #59ff9a;
  --gold: #ffc85b;
  --cream: #fff8e8;
  --text: #f5fff9;
  --muted: #a7bdb3;
  --line: rgba(255, 255, 255, .1);
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
  --radius: 28px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 28%, rgba(26, 199, 105, .12), transparent 28%),
    linear-gradient(180deg, #04251d 0%, var(--bg) 52%, var(--bg-deep) 100%);
  font-family: 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', 'DM Sans', Arial, sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] .primary-button,
html[lang="hi"] .benefit-card h3 {
  font-family: 'Noto Sans Devanagari', 'DM Sans', Arial, sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  color: #002317;
  background: var(--green-bright);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 18px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease, backdrop-filter .3s ease, transform .3s ease;
}

.site-header.is-scrolled {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 26, 20, .78);
  backdrop-filter: blur(20px) saturate(140%);
}

.language-switcher {
  position: fixed;
  z-index: 215;
  top: 76px;
  right: 12px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(2, 31, 23, .88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}

.language-switcher button {
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.language-switcher button.is-active {
  color: #052317;
  background: var(--green-bright);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
}

.brand {
  margin-right: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.site-header.is-scrolled .brand { opacity: 1; pointer-events: auto; }
.brand img { width: 174px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.header-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 26, 18, .34);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.header-play:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 255, 154, .55);
  background: rgba(11, 74, 51, .7);
}

.live-dot,
.game-count i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(89, 255, 154, .14), 0 0 14px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(89, 255, 154, 0), 0 0 18px var(--green); }
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-image: url('%E8%A1%A5%E5%85%85%E5%9B%BE/star99_landing%20%E6%8B%B7%E8%B4%9D.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #06372b;
}

html[lang="hi"] .hero {
  background-image: url('%E8%A1%A5%E5%85%85%E5%9B%BE/star99_landing-india.jpg');
}

.hero-actions {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12.4%;
  width: min(66%, 1270px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 110px);
}

.hero-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  height: clamp(58px, 6.2vw, 94px);
  align-items: center;
  gap: clamp(10px, 1.15vw, 20px);
  padding: 8px clamp(14px, 1.6vw, 28px);
  overflow: hidden;
  border: clamp(2px, .24vw, 4px) solid #ffeaa0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #66d4ff 0%, #168bf1 48%, #0750bd 100%);
  box-shadow:
    0 0 0 clamp(2px, .2vw, 4px) rgba(86, 43, 9, .8),
    0 15px 25px rgba(0, 20, 75, .42),
    inset 0 3px 0 rgba(255, 255, 255, .72),
    inset 0 -5px 0 rgba(0, 29, 112, .42);
  text-shadow: 0 2px 3px rgba(0, 0, 0, .42);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.hero-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 5px;
  right: 9%;
  left: 9%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-cta.app-cta {
  background: linear-gradient(180deg, #73ff8e 0%, #16d84d 47%, #07952e 100%);
  box-shadow:
    0 0 0 clamp(2px, .2vw, 4px) rgba(86, 43, 9, .8),
    0 15px 25px rgba(0, 69, 24, .42),
    inset 0 3px 0 rgba(255, 255, 255, .72),
    inset 0 -5px 0 rgba(0, 91, 28, .4);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-5px) scale(1.02);
  filter: brightness(1.1) saturate(1.08);
}

.hero-cta-icon {
  display: grid;
  width: clamp(34px, 4.1vw, 62px);
  height: clamp(34px, 4.1vw, 62px);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(0, 41, 130, .28);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, .28);
  font-size: clamp(12px, 1.3vw, 20px);
}

.download-icon { background: rgba(0, 87, 28, .28); font-size: clamp(20px, 2vw, 32px); }
.hero-cta-copy { display: flex; min-width: 0; flex-direction: column; }

.hero-cta-copy small {
  margin-bottom: 1px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(7px, .65vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-cta-copy strong {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(18px, 2.35vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.hero-cta-arrow {
  margin-left: auto;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 800;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 2.25%;
  left: 50%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  transform: translateX(-50%);
}

.scroll-cue i { width: 1px; height: 24px; background: linear-gradient(var(--green-bright), transparent); }

.game-marquee {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 20px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .08);
  background: rgba(2, 27, 20, .92);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.game-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 40px; padding-right: 40px; }

.marquee-set img {
  width: 88px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .34));
  transition: transform .25s ease;
}

.marquee-set img:hover { transform: translateY(-4px) scale(1.06); }

.marquee-fade {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  width: 12vw;
  pointer-events: none;
}

.marquee-fade-left { left: 0; background: linear-gradient(90deg, #031f19, transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(-90deg, #031f19, transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.games-section { padding-top: 122px; padding-bottom: 128px; }

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.eyebrow > span:not([data-i18n]) { display: block; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: 'Outfit', Arial, sans-serif; }

h2 {
  color: var(--cream);
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: .96;
  letter-spacing: -.045em;
}

h2 em, h1 em { color: var(--gold); font-style: normal; }

.section-intro {
  max-width: 440px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }

.filter-chip {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.filter-chip:hover,
.filter-chip.is-active { color: #032016; border-color: var(--green-bright); background: var(--green-bright); }

.game-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

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

.game-card {
  position: relative;
  min-width: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}

.game-card.is-filtered-out {
  display: none !important;
}

.game-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  border-color: rgba(89, 255, 154, .3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .3), 0 0 0 1px rgba(89, 255, 154, .08) inset;
}

.game-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .18), transparent 44%), #0d493a;
}

.game-art::after {
  content: '';
  position: absolute;
  inset: auto 7% 5%;
  height: 13%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  filter: blur(10px);
}

.game-art img {
  position: relative;
  z-index: 1;
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 16px 12px rgba(0, 0, 0, .35));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.game-card:hover .game-art img { transform: scale(1.07) translateY(-2px); }
.game-art.ocean { background-color: #063e52; }
.game-art.amber { background-color: #5c3511; }
.game-art.violet { background-color: #45225d; }
.game-art.red { background-color: #5e1b1d; }
.game-art.rose { background-color: #572149; }
.game-art.gold { background-color: #564213; }
.game-art.cyan { background-color: #144f52; }
.game-art.midnight { background-color: #231f3d; }
.game-art.blue { background-color: #172d63; }
.game-meta { padding: 14px 8px 10px; }

.game-meta strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-meta span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #78988b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-badge {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 17px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #241500;
  background: var(--gold);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .25);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.card-badge.new { color: #00281b; background: var(--green-bright); }

.library-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 25px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 50%, rgba(34, 224, 112, .11), transparent 30%),
    rgba(255, 255, 255, .035);
}

.library-cta strong { display: block; margin-top: 4px; font-family: 'Outfit', Arial, sans-serif; font-size: 22px; }
.mini-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.library-cta a { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; color: var(--green-bright); font-weight: 700; white-space: nowrap; }

.library-cta a > span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(89, 255, 154, .25);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}

.library-cta a:hover > span:last-child { transform: translateX(4px); background: rgba(89, 255, 154, .1); }

.why-section {
  position: relative;
  padding: 125px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(circle at 50% 0, rgba(36, 232, 120, .13), transparent 34%),
    linear-gradient(180deg, #05271f, #032019);
}

.why-section::before {
  content: 'STAR99';
  position: absolute;
  top: 38px;
  left: 50%;
  color: rgba(255, 255, 255, .022);
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 800;
  letter-spacing: -.08em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.center-heading { position: relative; text-align: center; }
.centered { justify-content: center; }

.benefit-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  margin-top: 58px;
}

.benefit-card {
  position: relative;
  min-height: 360px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018));
  box-shadow: 0 28px 60px rgba(0, 0, 0, .18);
}

.benefit-card.feature-large {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 80% 12%, rgba(76, 255, 146, .18), transparent 36%),
    linear-gradient(145deg, rgba(24, 111, 79, .72), rgba(4, 42, 32, .9));
}

.benefit-number {
  position: absolute;
  top: 25px;
  right: 28px;
  color: rgba(255, 255, 255, .2);
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.benefit-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  color: var(--green-bright);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .2);
  font-size: 26px;
}

.benefit-card.feature-large .benefit-icon { margin-bottom: auto; }

.benefit-icon.fast {
  color: #102815;
  background: var(--green-bright);
  box-shadow: 0 0 45px rgba(64, 255, 137, .24);
}

.benefit-icon.shield { border-radius: 22px 22px 30px 30px; }
.benefit-kicker { color: var(--green-bright); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.benefit-card h3 { margin-top: 7px; color: var(--cream); font-size: 28px; line-height: 1.05; }

.benefit-card p {
  max-width: 400px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.speed-lines {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  gap: 8px;
  opacity: .24;
  transform: rotate(-12deg);
}

.speed-lines i { display: block; width: 1px; height: 100px; background: linear-gradient(transparent, var(--green-bright), transparent); }
.speed-lines i:nth-child(2) { height: 145px; }
.speed-lines i:nth-child(3) { height: 75px; }
.install-section { padding-top: 125px; padding-bottom: 125px; }

.install-card {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  padding: 70px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 18%, rgba(47, 238, 121, .17), transparent 30%),
    linear-gradient(135deg, #0b3a2e, #06271f 65%, #041e18);
  box-shadow: var(--shadow);
}

.install-card::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 200, 91, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 200, 91, .025), 0 0 0 84px rgba(255, 200, 91, .018);
}

.install-copy, .install-steps { position: relative; z-index: 1; }
.install-copy > p:not(.eyebrow) { margin: 24px 0 30px; color: var(--muted); line-height: 1.7; }

.primary-button {
  display: flex;
  width: min(100%, 350px);
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 17px;
  color: #052317;
  background: linear-gradient(180deg, #7bffad, #24df70);
  box-shadow: 0 15px 34px rgba(20, 222, 103, .22), inset 0 1px 0 #d4ffe4;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-button:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(20, 222, 103, .3), inset 0 1px 0 #d4ffe4; }

.primary-button small {
  display: block;
  margin-bottom: 1px;
  color: rgba(0, 36, 22, .64);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.primary-button b { margin-left: auto; font-size: 24px; }

.android-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--green-bright);
  background: #073121;
  font-size: 16px;
}

.android-mark img {
  width: 23px;
  height: 23px;
  filter: brightness(0) invert(1);
}

.file-note { display: block; margin: 12px 0 0 8px; color: #719387; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.install-steps { margin: 0; padding: 0; list-style: none; }

.install-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.install-steps li:first-child { padding-top: 0; }
.install-steps li:last-child { padding-bottom: 0; border-bottom: 0; }

.install-steps li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(89, 255, 154, .22);
  border-radius: 50%;
  color: var(--green-bright);
  background: rgba(89, 255, 154, .06);
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 700;
}

.install-steps strong { font-family: 'Outfit', Arial, sans-serif; font-size: 20px; }
.install-steps p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.final-cta {
  position: relative;
  isolation: isolate;
  padding: 115px 0 125px;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(3, 29, 23, .82), rgba(1, 16, 12, .93)),
    url('%E8%A1%A5%E5%85%85%E5%9B%BE/star99_landing%20%E6%8B%B7%E8%B4%9D.jpg') center 56% / cover;
}

.final-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 420px;
  border-radius: 50%;
  background: rgba(35, 225, 112, .12);
  filter: blur(90px);
  transform: translate(-50%, -50%);
}

.final-logo { width: 190px; height: auto; margin: 0 auto 38px; }
.final-inner p { margin: 24px auto 32px; color: var(--muted); font-size: 17px; }
.final-actions { display: flex; justify-content: center; gap: 12px; }

.button {
  display: flex;
  min-width: 190px;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-3px); }
.button-green { color: #032116; background: var(--green-bright); }

.button-ghost {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(12px);
}

.button-ghost:hover { border-color: rgba(89, 255, 154, .4); background: rgba(89, 255, 154, .08); }
.site-footer { padding: 48px 0 34px; background: #01120e; }

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-inner img { width: 150px; height: auto; }
.footer-inner p { margin: 0; color: #738d83; font-size: 13px; }
.footer-links { display: flex; gap: 28px; margin-left: auto; }
.footer-links a { color: #a3b7af; font-size: 13px; transition: color .2s ease; }
.footer-links a:hover { color: var(--green-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: #4e6a60;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-operator {
  margin-top: 14px;
  color: #738d83;
  font-size: 12px;
}

.footer-operator strong { color: #a3b7af; font-weight: 600; }

.mobile-dock { display: none; }

.social-float {
  position: fixed;
  z-index: 195;
  top: 38%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 6px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-right: 0;
  border-radius: 15px 0 0 15px;
  background: rgba(2, 31, 23, .86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

.social-float a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease;
}

.social-float a:hover,
.social-float a:focus-visible {
  background: rgba(255, 255, 255, .08);
  transform: translateX(-4px);
}

.social-float img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.floating-play {
  position: fixed;
  z-index: 190;
  right: 22px;
  top: 62%;
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 999px;
  color: #172000;
  background: #ffc43d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .2s ease;
}

.floating-play:hover,
.floating-play:focus-visible {
  transform: translateY(-3px);
}

.floating-play span {
  font-size: 11px;
}

.download-toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-width: 310px;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid rgba(89, 255, 154, .24);
  border-radius: 16px;
  background: rgba(4, 38, 28, .94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}

.download-toast.is-visible { opacity: 1; transform: translateY(0); }

.toast-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #052417;
  background: var(--green-bright);
  font-weight: 900;
}

.download-toast strong, .download-toast small { display: block; }
.download-toast strong { font-size: 13px; }
.download-toast small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .main-nav { display: none; }
  .header-inner { width: calc(100% - 36px); }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-card:nth-child(10) { display: none; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-card.feature-large { grid-column: 1 / -1; min-height: 330px; }
  .install-card { gap: 52px; padding: 52px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 32px); --radius: 22px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

  .site-header {
    padding: 10px 0;
    background: rgba(2, 26, 20, .86);
    transform: translateY(-110%);
  }

  .site-header.is-scrolled { padding: 10px 0; transform: translateY(0); }
  .brand, .site-header.is-scrolled .brand { opacity: 1; pointer-events: auto; }
  .brand img { width: 142px; }
  .header-play { padding: 9px 13px; font-size: 10px; }

  .language-switcher {
    top: 68px;
    right: 8px;
    padding: 3px;
  }

  .language-switcher button {
    min-width: 50px;
    height: 31px;
    padding-inline: 7px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
    background-position: center;
    background-size: 100% 100%;
  }

  .hero-actions {
    bottom: 10.7%;
    width: 78%;
    grid-template-columns: 1fr;
    gap: 7.5%;
  }

  .hero-cta {
    height: clamp(30px, 9.4vw, 42px);
    gap: 5px;
    padding: 3px 8px;
    border-width: 1.5px;
    box-shadow:
      0 0 0 1.5px rgba(86, 43, 9, .84),
      0 6px 10px rgba(0, 20, 75, .4),
      inset 0 1.5px 0 rgba(255, 255, 255, .68),
      inset 0 -2px 0 rgba(0, 29, 112, .38);
  }

  .hero-cta.app-cta {
    box-shadow:
      0 0 0 1.5px rgba(86, 43, 9, .84),
      0 6px 10px rgba(0, 69, 24, .4),
      inset 0 1.5px 0 rgba(255, 255, 255, .68),
      inset 0 -2px 0 rgba(0, 91, 28, .38);
  }

  .hero-cta-icon { width: 24px; height: 24px; font-size: 8px; }
  .hero-cta-copy small { display: none; }
  .hero-cta-copy strong { font-size: clamp(10px, 3.05vw, 14px); }
  .hero-cta-arrow { font-size: 11px; }
  .download-icon { font-size: 14px; }
  .scroll-cue { display: none; }
  .game-marquee { padding: 15px 0; }
  .marquee-set { gap: 24px; padding-right: 24px; }
  .marquee-set img { width: 68px; height: 58px; }

  .games-section,
  .why-section,
  .install-section { padding-top: 84px; padding-bottom: 84px; }
  .games-section {
    padding-top: 0;
  }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  h2 { font-size: clamp(42px, 12.5vw, 60px); }
  .section-intro { font-size: 15px; }

  .filter-row {
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; padding: 10px 15px; }
  .game-count { flex: 0 0 auto; padding-right: 6px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .game-card:nth-child(10) { display: block; }
  .game-card { padding: 7px; border-radius: 16px; }
  .game-art { border-radius: 11px; }
  .game-meta { padding: 11px 6px 7px; }
  .game-meta strong { font-size: 13px; }
  .card-badge { top: 13px; left: 13px; }

  .library-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .library-cta strong { font-size: 20px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 40px; }
  .benefit-card.feature-large { grid-column: auto; }
  .benefit-card { min-height: 300px; padding: 28px; }
  .benefit-card.feature-large { min-height: 340px; }
  .benefit-icon { margin-bottom: 50px; }

  .install-card {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 32px 24px;
    border-radius: 26px;
  }

  .install-copy > p:not(.eyebrow) { margin-block: 20px 26px; }
  .install-steps strong { font-size: 18px; }
  .install-steps li { grid-template-columns: 46px 1fr; gap: 15px; }
  .install-steps li > span { width: 42px; height: 42px; }

  .final-cta {
    padding: 88px 0 96px;
    background-position: 70% 56%;
  }

  .final-logo { width: 165px; margin-bottom: 30px; }
  .final-inner p { max-width: 300px; font-size: 15px; line-height: 1.6; }
  .final-actions { flex-direction: column; }
  .button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 20px; margin-left: 0; flex-wrap: wrap; }

  .footer-bottom {
    flex-direction: column;
    padding-bottom: 12px;
    line-height: 1.7;
  }

  .mobile-dock {
    position: fixed;
    z-index: 200;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 7px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(3, 30, 22, .85);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .46);
    backdrop-filter: blur(22px) saturate(150%);
  }

  .mobile-dock a {
    display: flex;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
  }

  .dock-download {
    width: 100%;                                    /* 新增：固定撑满栏内宽 */
    color: #032116;
    background: linear-gradient(180deg, #76ffab, #2bdc70);
    box-shadow: 0 8px 22px rgba(32, 231, 111, .2);
  }


  html[lang="hi"] .mobile-dock a {
    gap: 5px;
    font-size: 12px;
  }

  .social-float {
    top: 34%;
    gap: 3px;
    padding: 5px 4px 5px 5px;
    border-radius: 13px 0 0 13px;
  }

  .social-float a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .social-float img {
    width: 37px;
    height: 37px;
  }

  .floating-play {
    top: auto;
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    height: 43px;
    padding: 0 16px;
    font-size: 12px;
  }

  .download-toast {
    right: 16px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    left: 16px;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .hero-actions { width: 80%; gap: 6%; }
  .hero-cta { padding-inline: 6px; }
  .hero-cta-icon { width: 21px; height: 21px; }
  .hero-cta-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
