:root {
  --tpl-primary: #ff5d78;
  --tpl-accent: #7b4dff;
  --tpl-bg: #06103a;
  --tpl-panel: rgba(9, 18, 54, .94);
  --tpl-line: rgba(255, 93, 120, .58);
  --tpl-ink: #fff4fb;
  --tpl-muted: #e8def4;
  --nav-height: 92px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--tpl-ink);
  background:
    radial-gradient(circle at 55% 0, rgba(255, 93, 120, .18), transparent 22rem),
    linear-gradient(180deg, #09184c 0%, #051039 58%, #020716 100%);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

img,
svg {
  display: block;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 8%, rgba(123, 77, 255, .18), transparent 12rem),
    linear-gradient(180deg, #08164b 0%, #050d2d 100%);
  box-shadow: 0 0 0 1px rgba(255, 93, 120, .22);
}

.visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 853 / 1844;
  overflow: hidden;
  background: #06103a;
}

.visual-image {
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
}

.logo-hit,
.visual-hit {
  position: absolute;
  z-index: 12;
  display: block;
}

.logo-hit {
  left: 3.2%;
  top: 1%;
  width: 31%;
  height: 4.4%;
}

.logo-hit span {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.top-login-hit {
  left: 52.6%;
  top: 1.65%;
  width: 13.6%;
  height: 3.3%;
}

.top-register-hit {
  left: 68.3%;
  top: 1.6%;
  width: 17.3%;
  height: 3.35%;
}

.top-telegram-hit {
  left: 88.4%;
  top: 1.35%;
  width: 7.6%;
  height: 3.9%;
}

.hero-register-hit {
  left: 5.6%;
  top: 24.55%;
  width: 22.7%;
  height: 4.9%;
}

.hero-login-hit {
  left: 30.1%;
  top: 24.55%;
  width: 18.8%;
  height: 4.9%;
}

.quick-app-hit,
.quick-wallet-hit,
.quick-support-hit,
.quick-game-hit {
  top: 35%;
  height: 10.8%;
}

.quick-app-hit {
  left: 3.4%;
  width: 24.2%;
}

.quick-wallet-hit {
  left: 27.7%;
  width: 23%;
}

.quick-support-hit {
  left: 50.8%;
  width: 23%;
}

.quick-game-hit {
  left: 73.9%;
  width: 22.3%;
}

.sports-hit,
.lobby-hit {
  top: 47%;
  height: 13.2%;
}

.sports-hit {
  left: 3.3%;
  width: 45.4%;
}

.lobby-hit {
  left: 50.7%;
  width: 45.5%;
}

.basketball-hit,
.football-hit,
.casino-hit,
.card-games-hit,
.fishing-hit,
.lotto-hit {
  top: 61.65%;
  height: 11.4%;
}

.basketball-hit {
  left: 3.4%;
  width: 15.9%;
}

.football-hit {
  left: 19.4%;
  width: 16.4%;
}

.casino-hit {
  left: 35.9%;
  width: 15.4%;
}

.card-games-hit {
  left: 51.5%;
  width: 16.3%;
}

.fishing-hit {
  left: 68%;
  width: 15%;
}

.lotto-hit {
  left: 83.2%;
  width: 13.2%;
}

.payment-hit,
.faq-hit {
  top: 74.2%;
  height: 8.5%;
}

.telegram-hit,
.safety-hit {
  top: 83.8%;
  height: 9%;
}

.payment-hit,
.telegram-hit {
  left: 3.4%;
  width: 45.5%;
}

.faq-hit,
.safety-hit {
  left: 50.8%;
  width: 45.5%;
}

.visual-nav-cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  height: 7.9%;
  border-top: 1px solid rgba(255, 93, 120, .34);
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 93, 120, .25), transparent 6rem),
    linear-gradient(180deg, rgba(6, 13, 42, .98), rgba(3, 7, 22, 1));
}

.seo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 24px 14px calc(var(--nav-height) + 44px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(255, 93, 120, .16), transparent 13rem),
    radial-gradient(circle at 0 20%, rgba(123, 77, 255, .16), transparent 13rem),
    linear-gradient(180deg, #08164b 0%, #020716 100%);
}

.seo-eyebrow {
  margin: 0;
  color: #ff6f87;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.seo-panel h1 {
  margin: 0;
  color: #fff;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.seo-lead {
  margin: 0;
  color: var(--tpl-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
}

.seo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seo-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 93, 120, .58);
  border-radius: 12px;
  background: rgba(9, 18, 54, .96);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(255, 93, 120, .12);
}

.seo-actions a:first-child {
  color: #fff;
  border-color: rgba(255, 158, 178, .72);
  background: linear-gradient(180deg, #ff7189, #ef365e);
}

.seo-actions a:last-child {
  grid-column: 1 / -1;
}

.seo-card,
.seo-footer {
  border: 1px solid var(--tpl-line);
  border-radius: 14px;
  background: var(--tpl-panel);
  padding: 16px;
  box-shadow: inset 0 0 22px rgba(255, 93, 120, .08), 0 12px 28px rgba(0, 0, 0, .3);
}

.seo-card h2,
.seo-footer h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.seo-card p,
.seo-footer p {
  margin: 10px 0 0;
  color: var(--tpl-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.58;
}

.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 93, 120, .48);
  border-radius: 10px;
  padding: 0 10px;
  color: #fff;
  background: rgba(11, 25, 70, .88);
  font-size: 12px;
  font-weight: 900;
}

.faq-card {
  display: grid;
  gap: 10px;
}

.faq-card details {
  border: 1px solid rgba(255, 93, 120, .44);
  border-radius: 12px;
  background: rgba(5, 14, 44, .9);
  padding: 12px;
}

.faq-card summary {
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.faq-card details p {
  margin-top: 8px;
}

.safety-card {
  border-color: rgba(123, 77, 255, .48);
  background: linear-gradient(180deg, rgba(123, 77, 255, .12), rgba(9, 18, 54, .94));
}

.seo-footer nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.seo-footer nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  background: rgba(25, 27, 73, .9);
  font-size: 11px;
  font-weight: 900;
}

.nav-hits {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  width: calc(100% - 24px);
  max-width: 406px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 93, 120, .66);
  border-radius: 18px;
  padding: 6px;
  background: rgba(4, 10, 34, .94);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, .42), inset 0 0 18px rgba(255, 93, 120, .1);
  backdrop-filter: blur(14px);
}

.nav-hit {
  height: 64px;
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  color: #e5d9f2;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.nav-hit svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  fill: currentColor;
}

.nav-hit span {
  margin-top: 6px;
  white-space: nowrap;
}

.nav-hit.is-active {
  color: #ff7189;
  background: linear-gradient(180deg, rgba(255, 93, 120, .24), rgba(47, 15, 47, .46));
}

.link-notice {
  position: fixed;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  z-index: 40;
  width: calc(100% - 44px);
  max-width: 386px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 158, 178, .6);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 113, 137, .98), rgba(239, 54, 94, .98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.link-notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .seo-panel h1 {
    font-size: 30px;
  }

  .nav-hit {
    font-size: 10px;
  }

  .category-list {
    grid-template-columns: 1fr;
  }
}
