:root {
  --phone-width: 430px;
  --visual-w: 853;
  --visual-crop-h: 1650;
  --primary: #1678ff;
  --accent: #ffd53c;
  --ink: #08215a;
  --muted: rgba(8, 33, 90, .68);
  --page-bg: #11274f;
  --surface: #eff8ff;
  --surface-strong: #ffffff;
  --line: rgba(36, 126, 234, .18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: #111827;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(62, 153, 255, .22), transparent 36%),
    linear-gradient(180deg, #102452 0%, #0d1835 48%, #0a1228 100%);
}

a,
button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.phone {
  position: relative;
  width: min(100%, var(--phone-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #eaf7ff 0, #f7fbff 56%, #e9f6ff 100%);
  box-shadow: 0 0 48px rgba(0, 0, 0, .46);
}

.visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--visual-w) / var(--visual-crop-h);
  overflow: hidden;
  background: #dff5ff;
}

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

.visual-hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.visual-hotspot:focus-visible,
.guide-card:focus-visible,
.site-footer a:focus-visible,
.nav-hit:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 78%, #fff);
  outline-offset: 2px;
}

.logo-slot {
  left: 5.2%;
  top: 3.25%;
  width: 35%;
  height: 6.5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  box-shadow: none;
}

.logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  object-fit: contain;
  object-position: left center;
  border: 0;
  box-shadow: none;
}

.top-login { left: 44.5%; top: 3.6%; width: 17.8%; height: 4.45%; }
.top-register { left: 62.8%; top: 3.6%; width: 20.7%; height: 4.45%; }
.top-telegram { left: 85.4%; top: 3.6%; width: 9.2%; height: 4.45%; border-radius: 50%; }
.hero-action { left: 7%; top: 30.3%; width: 40%; height: 6.6%; }
.visual-games { left: 6%; top: 21.2%; width: 90%; height: 10.5%; }
.visual-promo { left: 2.5%; top: 63.7%; width: 95%; height: 17.8%; }
.visual-rewards { left: 2.5%; top: 82.5%; width: 95%; height: 7.2%; }

.seo-panel {
  position: relative;
  z-index: 1;
  padding: 18px 14px calc(116px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 0, rgba(255, 213, 60, .24), transparent 34%),
    linear-gradient(180deg, #eaf7ff 0, #f8fcff 34%, #e8f3ff 100%);
}

.kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #061d55;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.guide-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(232, 246, 255, .95));
  box-shadow: 0 14px 30px rgba(32, 104, 197, .13);
}

.guide-card {
  min-height: 82px;
  padding: 13px;
  text-decoration: none;
}

.guide-card span {
  display: inline-flex;
  min-width: 56px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #073061;
  background: color-mix(in srgb, var(--accent) 72%, #fff);
  font-size: 11px;
  font-weight: 900;
}

.guide-card strong {
  display: block;
  margin-top: 9px;
  color: #08215a;
  font-size: 15px;
  line-height: 1.18;
}

.content-card {
  margin-top: 12px;
  padding: 15px;
}

.content-card h2 {
  margin: 0 0 8px;
  color: #061d55;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.category-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  padding: 10px 11px;
  border: 1px solid rgba(22, 120, 255, .14);
  border-radius: 11px;
  color: rgba(8, 33, 90, .78);
  background: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.42;
}

.faq-card details {
  border-top: 1px solid rgba(22, 120, 255, .14);
}

.faq-card details:first-of-type {
  border-top: 0;
}

.faq-card summary {
  padding: 12px 0;
  color: #08215a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

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

.safety-note {
  border-color: rgba(255, 169, 33, .32);
  background:
    linear-gradient(180deg, rgba(255, 249, 229, .98), rgba(242, 249, 255, .98));
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 16px;
  padding: 16px 8px 0;
}

.site-footer a {
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid rgba(22, 120, 255, .18);
  border-radius: 999px;
  color: #0c3d7a;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nav-hits {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100vw - 20px), 410px);
  min-height: 66px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(226, 243, 255, .96));
  box-shadow: 0 16px 38px rgba(0, 41, 95, .32);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.nav-hit {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-radius: 17px;
  color: rgba(8, 33, 90, .62);
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

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

.nav-hit.active {
  color: #073061;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), #ffb72f);
  box-shadow: inset 0 -2px 0 rgba(151, 90, 0, .18);
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 35, 88, .94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 800;
}

.toast[hidden] {
  display: none;
}

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

  h1 {
    font-size: 23px;
  }

  .nav-hit span {
    font-size: 9px;
  }
}
