:root {
  --phone-width: 430px;
  --visual-width: 852;
  --visual-height: 1846;
  --nav-space: 132px;
  --bg: #f1f8ff;
  --ink: #071b54;
  --muted: #476188;
  --brand-primary: #0c7bff;
  --brand-accent: #f7b71f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(12, 123, 255, .16), transparent 30rem),
    linear-gradient(180deg, #f1f8ff 0%, #dfeeff 42%, #f5f9ff 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

.phone {
  position: relative;
  width: min(100vw, var(--phone-width));
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(7, 27, 84, .22);
}

.visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--visual-width) / var(--visual-height);
  overflow: hidden;
}

.visual-stage::after {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8.0%;
  background:
    linear-gradient(180deg, rgba(241, 248, 255, 0), rgba(231, 242, 255, .96) 32%, #eaf4ff 86%),
    radial-gradient(circle at 50% 24%, rgba(12, 123, 255, .16), transparent 36%);
  pointer-events: none;
  content: "";
}

.visual {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-layer {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.logo-layer {
  left: 5.45%;
  top: 1.65%;
  width: 18.9%;
  height: 4.65%;
  display: grid;
  place-items: center;
}

.logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  background: center / contain no-repeat;
  opacity: 0;
}

.logo-mark.logo-ready {
  opacity: 1;
}

.hotspot {
  position: absolute;
  z-index: 6;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(12, 123, 255, 0.18);
}

.hotspot:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid rgba(12, 123, 255, 0.95);
  outline-offset: -2px;
}

.hotspot:active,
.nav-item:active {
  background: rgba(12, 123, 255, 0.08);
}

.logo-hotspot { left: 5.45%; top: 1.65%; width: 18.9%; height: 4.65%; border-radius: 0; }
.register-login { left: 48.7%; top: 2.15%; width: 34.2%; height: 3.95%; border-radius: 28px; }
.search-hit { left: 87.1%; top: 2.15%; width: 7.8%; height: 3.95%; border-radius: 50%; }

.hero-banner { left: 0; top: 7.15%; width: 100%; height: 28.55%; }
.hero-prev { left: 3.1%; top: 16.1%; width: 7.6%; height: 6.1%; border-radius: 50%; }
.hero-next { left: 89.4%; top: 16.1%; width: 7.6%; height: 6.1%; border-radius: 50%; }
.hero-slot { left: 2.6%; top: 22.1%; width: 15.2%; height: 9.2%; }
.hero-treasure { left: 18.9%; top: 22.1%; width: 15.2%; height: 9.2%; }
.hero-fishing { left: 35.2%; top: 22.1%; width: 15.2%; height: 9.2%; }
.hero-perya { left: 51.4%; top: 22.1%; width: 15.2%; height: 9.2%; }
.hero-lotto { left: 67.6%; top: 22.1%; width: 15.2%; height: 9.2%; }
.hero-sports { left: 83.8%; top: 22.1%; width: 13.4%; height: 9.2%; }

.dot-one { left: 39.4%; top: 32.75%; width: 4%; height: 1.8%; border-radius: 50%; }
.dot-two { left: 44%; top: 32.75%; width: 4%; height: 1.8%; border-radius: 50%; }
.dot-three { left: 48.6%; top: 32.75%; width: 4%; height: 1.8%; border-radius: 50%; }
.dot-four { left: 53.2%; top: 32.75%; width: 4%; height: 1.8%; border-radius: 50%; }
.dot-five { left: 57.8%; top: 32.75%; width: 4%; height: 1.8%; border-radius: 50%; }

.game-gallery { left: 5.1%; top: 36.6%; width: 42%; height: 3.1%; }
.view-all { left: 81.9%; top: 36.65%; width: 14.2%; height: 3.05%; }
.gallery-lion { left: 3.8%; top: 40%; width: 14.6%; height: 8.55%; }
.gallery-egypt { left: 19.5%; top: 40%; width: 14.6%; height: 8.55%; }
.gallery-dragon { left: 35.2%; top: 40%; width: 14.6%; height: 8.55%; }
.gallery-gem { left: 50.9%; top: 40%; width: 14.6%; height: 8.55%; }
.gallery-buffalo { left: 66.7%; top: 40%; width: 14.6%; height: 8.55%; }
.gallery-panda { left: 82.4%; top: 40%; width: 14%; height: 8.55%; }

.tab-popular { left: 2.8%; top: 50.2%; width: 15.8%; height: 6.2%; }
.tab-slot { left: 19.6%; top: 50.2%; width: 15.8%; height: 6.2%; }
.tab-perya { left: 36.4%; top: 50.2%; width: 15.8%; height: 6.2%; }
.tab-casino { left: 53.2%; top: 50.2%; width: 15.8%; height: 6.2%; }
.tab-sports { left: 70%; top: 50.2%; width: 15.8%; height: 6.2%; }
.tab-lotto { left: 86.8%; top: 50.2%; width: 10.4%; height: 6.2%; }

.bonus-banner { left: 2.7%; top: 57.55%; width: 94.8%; height: 15.6%; }
.app-guide-hit { left: 2.8%; top: 74.7%; width: 45.4%; height: 8.05%; }
.payment-guide-hit { left: 51.1%; top: 74.7%; width: 46%; height: 8.05%; }
.promo-guide { left: 2.8%; top: 83.7%; width: 45.4%; height: 8.05%; }
.telegram-card { left: 51.1%; top: 83.7%; width: 46%; height: 8.05%; }

.nav-hits {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100vw - 24px), calc(var(--phone-width) - 24px));
  min-height: 76px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(12, 123, 255, .34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(247, 183, 31, .25), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(226, 239, 255, .96));
  box-shadow:
    0 18px 42px rgba(7, 27, 84, .24),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.nav-item {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 5px 2px 4px;
  border: 0;
  border-radius: 18px;
  color: rgba(7, 27, 84, .66);
  background: transparent;
  cursor: pointer;
  font-size: .69rem;
  font-weight: 900;
  line-height: 1;
}

.nav-icon {
  width: 25px;
  height: 25px;
  max-width: 25px;
  max-height: 25px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 10px rgba(7, 27, 84, .18));
}

.nav-icon path {
  fill: none;
  stroke: currentColor;
}

.nav-item.active {
  color: var(--brand-primary);
  background:
    radial-gradient(circle at 50% 20%, rgba(12, 123, 255, .16), transparent 58%),
    rgba(12, 123, 255, .08);
}

.nav-item.active::after {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 12px rgba(12, 123, 255, .42);
  content: "";
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 14px;
  border: 1px solid rgba(12, 123, 255, .2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(7, 27, 84, .22);
  transform: translateX(-50%);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.25;
}

.toast[hidden] {
  display: none;
}

.seo-layer {
  position: relative;
  padding: 18px 16px calc(var(--nav-space) + 72px + env(safe-area-inset-bottom));
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0, rgba(12, 123, 255, .12), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(247, 183, 31, .2), transparent 36%),
    linear-gradient(180deg, #eaf4ff 0%, #f8fbff 46%, #eaf3ff 100%);
}

.seo-layer::before {
  position: absolute;
  inset: 0 12px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 123, 255, .36), transparent);
  content: "";
}

.seo-kicker {
  margin: 0 0 8px;
  color: var(--brand-primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seo-layer h1,
.seo-layer h2,
.seo-layer p {
  margin-top: 0;
}

.seo-layer h1 {
  margin-bottom: 10px;
  font-size: clamp(1.68rem, 7vw, 2.12rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink);
}

.seo-lead {
  margin-bottom: 14px;
  color: rgba(7, 27, 84, .78);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.52;
}

.seo-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.seo-links a {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(12, 123, 255, .22);
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(220, 236, 255, .75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  font-size: .8rem;
  font-weight: 900;
}

.seo-card {
  position: relative;
  margin: 10px 0 0;
  padding: 15px;
  border: 1px solid rgba(12, 123, 255, .18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(12, 123, 255, .08), transparent 45%),
    rgba(255, 255, 255, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 12px 28px rgba(7, 27, 84, .1);
}

.seo-card h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.seo-card p,
.seo-card li {
  color: rgba(7, 27, 84, .76);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.48;
}

.seo-card p {
  margin-bottom: 0;
}

.token-text {
  color: #0b67d8;
  overflow-wrap: anywhere;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(12, 123, 255, .15);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(12, 123, 255, .06);
}

.faq-card details {
  margin-top: 8px;
  border: 1px solid rgba(12, 123, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  overflow: hidden;
}

.faq-card summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.25;
}

.faq-card details p {
  padding: 0 12px 12px;
}

.safety-card {
  border-color: rgba(247, 183, 31, .42);
}

.seo-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 0 0;
  scroll-margin-bottom: calc(var(--nav-space) + 30px);
  color: rgba(7, 27, 84, .66);
  font-size: .78rem;
  font-weight: 900;
}

.seo-footer a,
.seo-footer span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(12, 123, 255, .16);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .68);
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  .phone {
    width: 100vw;
  }
}

@media (max-width: 360px) {
  .seo-layer {
    padding-inline: 12px;
  }

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

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