:root {
  --source-width: 853;
  --source-height: 1640;
  --phone-width: 430px;
  --nav-space: 132px;
  --brand-primary: #ffdc27;
  --brand-accent: #1357ff;
  --page-bg: #04101a;
  --text-main: #fff8dc;
  --text-soft: #cbd4e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 220, 39, .18), transparent 32rem),
    linear-gradient(180deg, #06101a 0%, #01050a 100%);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
}

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(--page-bg);
  box-shadow: 0 0 44px rgba(0, 0, 0, .5);
  isolation: isolate;
}

.visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--source-width) / var(--source-height);
  overflow: hidden;
  line-height: 0;
  background: #04101a;
}

.visual-stage::after {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background:
    linear-gradient(180deg, rgba(4, 16, 26, 0), rgba(4, 16, 26, .9) 28%, #08213a 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 220, 39, .18), transparent 40%);
  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: 2.9%;
  top: 1.4%;
  width: 24.8%;
  height: 5.0%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
}

.logo-mark.has-logo {
  opacity: 1;
  background: center / contain no-repeat;
}

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

.hotspot:focus-visible,
.nav-hit:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 84%, #ffffff 16%);
  outline-offset: -2px;
}

.hotspot:active,
.nav-hit:active {
  background: rgba(255, 220, 39, .09);
}

.logo-hotspot { left: 2.8%; top: 1.40%; width: 25.4%; height: 5.0%; }
.theme-toggle { left: 51.7%; top: 1.74%; width: 6.9%; height: 4.4%; border-radius: 999px; }
.top-login { left: 60.5%; top: 1.74%; width: 15.6%; height: 4.4%; }
.top-register { left: 78.8%; top: 1.74%; width: 17.8%; height: 4.4%; }

.hero-prev { left: 3.1%; top: 19.2%; width: 6.0%; height: 5.4%; border-radius: 999px; }
.hero-next { left: 90.9%; top: 19.2%; width: 6.0%; height: 5.4%; border-radius: 999px; }
.hero-guide { left: 2.0%; top: 7.55%; width: 96.0%; height: 25.9%; }
.visit-quest { left: 16.2%; top: 26.3%; width: 30.8%; height: 4.05%; border-radius: 999px; }

.search-zone { left: 2.9%; top: 34.9%; width: 94.0%; height: 4.7%; border-radius: 999px; }
.cat-hot { left: 2.9%; top: 40.95%; width: 14.8%; height: 9.17%; }
.cat-lottery { left: 19.2%; top: 40.95%; width: 14.8%; height: 9.17%; }
.cat-bingo { left: 35.5%; top: 40.95%; width: 14.8%; height: 9.17%; }
.cat-slot { left: 51.7%; top: 40.95%; width: 14.8%; height: 9.17%; }
.cat-sports { left: 68.0%; top: 40.95%; width: 14.8%; height: 9.17%; }
.cat-casino { left: 84.2%; top: 40.95%; width: 13.2%; height: 9.17%; }

.filter-hot { left: 3.2%; top: 51.4%; width: 14.8%; height: 4.0%; border-radius: 999px; }
.filter-scatter { left: 19.6%; top: 51.4%; width: 15.8%; height: 4.0%; border-radius: 999px; }
.filter-bonus { left: 36.4%; top: 51.4%; width: 18.0%; height: 4.0%; border-radius: 999px; }
.filter-new { left: 55.9%; top: 51.4%; width: 19.5%; height: 4.0%; border-radius: 999px; }
.filter-live { left: 77.0%; top: 51.4%; width: 20.2%; height: 4.0%; border-radius: 999px; }

.wins-guide { left: 2.7%; top: 56.6%; width: 43.0%; height: 30.0%; }
.wins-see { left: 18.8%; top: 82.6%; width: 19.5%; height: 3.4%; border-radius: 999px; }
.race-guide { left: 47.2%; top: 56.6%; width: 50.2%; height: 30.0%; }
.race-details { left: 55.8%; top: 83.1%; width: 24.8%; height: 4.45%; border-radius: 999px; }
.why-guide { left: 81.9%; top: 82.2%; width: 16.5%; height: 8.1%; }

.card-prize { left: 3.0%; top: 90.0%; width: 31.2%; height: 9.9%; }
.card-promo { left: 35.7%; top: 90.0%; width: 28.3%; height: 9.9%; }
.card-telegram { left: 65.5%; top: 90.0%; width: 31.8%; height: 9.9%; }

.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(255, 220, 39, .42);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(19, 87, 255, .3), transparent 42%),
    linear-gradient(180deg, rgba(8, 42, 77, .95), rgba(3, 10, 18, .98));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.nav-hit {
  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(255, 255, 255, .73);
  background: transparent;
  cursor: pointer;
  font-size: .69rem;
  font-weight: 900;
  line-height: 1;
}

.nav-icon {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  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(0, 0, 0, .32));
}

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

.nav-hit.active {
  color: var(--brand-primary);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 220, 39, .28), transparent 58%),
    rgba(255, 220, 39, .1);
}

.nav-hit.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(255, 220, 39, .7);
  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(255, 220, 39, .4);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 16, 26, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
  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: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 220, 39, .16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(19, 87, 255, .2), transparent 40%),
    linear-gradient(180deg, #08213a 0%, #04101a 54%, #01050a 100%);
}

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

.seo-kicker {
  margin: 0 0 8px;
  color: #ffe267;
  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.62rem, 7vw, 2.08rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}

.seo-lead {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .84);
  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(255, 220, 39, .34);
  border-radius: 12px;
  color: #fff3bf;
  background: linear-gradient(180deg, rgba(255, 220, 39, .12), rgba(19, 87, 255, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: .8rem;
  font-weight: 900;
}

.seo-card {
  position: relative;
  margin: 10px 0 0;
  padding: 15px;
  border: 1px solid rgba(255, 220, 39, .28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(19, 87, 255, .14), transparent 45%),
    rgba(4, 16, 26, .84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 12px 28px rgba(0, 0, 0, .28);
}

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

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

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

.token-text {
  color: #ffe267;
  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(255, 255, 255, .1);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

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

.faq-card summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  color: #fff;
  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(19, 87, 255, .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(255, 255, 255, .72);
  font-size: .78rem;
  font-weight: 900;
}

.seo-footer a,
.seo-footer span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 220, 39, .24);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .055);
  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;
  }
}
