:root {
  --phone-width: 430px;
  --visual-width: 854;
  --visual-height: 1842;
  --bg: #03071f;
  --ink: #ffffff;
  --muted: #d6dcff;
  --brand-primary: #1969ff;
  --brand-accent: #ff6a13;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

.phone {
  position: relative;
  width: min(100vw, var(--phone-width));
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

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

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

.brand-lockup {
  position: absolute;
  z-index: 3;
  left: 2.8%;
  top: 1.05%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 20%;
  height: 4.25%;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 74px;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
}

.brand-logo[hidden] {
  display: none;
}

.brand-lockup span {
  display: none;
}

.hotspot,
.faq-hit,
.nav-hit {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 106, 19, 0.18);
}

.hotspot:focus-visible,
.faq-hit:focus-visible,
.nav-hit:focus-visible,
.brand-lockup:focus-visible {
  outline: 2px solid rgba(255, 119, 17, 0.95);
  outline-offset: -2px;
}

.hotspot:active,
.faq-hit:active,
.nav-hit:active {
  background: rgba(255, 106, 19, 0.08);
}

.top-login { left: 45.7%; top: 1.7%; width: 12.2%; height: 3.25%; }
.top-register { left: 60.1%; top: 1.65%; width: 16.2%; height: 3.35%; }
.support-hit { left: 78.4%; top: 1.55%; width: 7.5%; height: 3.65%; border-radius: 50%; }
.search-hit { left: 88.6%; top: 1.55%; width: 7.6%; height: 3.65%; border-radius: 50%; }

.daily-pack { left: 6%; top: 7.35%; width: 28.4%; height: 7.55%; }
.newbie-kit { left: 35.7%; top: 7.35%; width: 28.4%; height: 7.55%; }
.travel-pass { left: 65.4%; top: 7.35%; width: 28.4%; height: 7.55%; }
.spin-now { left: 6%; top: 15.5%; width: 28.4%; height: 7.55%; }
.bonus-ticket { left: 35.7%; top: 15.5%; width: 28.4%; height: 7.55%; }
.app-gift { left: 65.4%; top: 15.5%; width: 28.4%; height: 7.55%; }
.game-card { left: 6%; top: 23.55%; width: 28.4%; height: 7.55%; }
.coins { left: 35.7%; top: 23.55%; width: 28.4%; height: 7.55%; }
.phone-draw { left: 65.4%; top: 23.55%; width: 28.4%; height: 7.55%; }

.hero-banner { left: 2.9%; top: 32.1%; width: 94.5%; height: 21.65%; }
.slider-dot-one { left: 41%; top: 53.9%; width: 4.3%; height: 1.7%; border-radius: 50%; }
.slider-dot-two { left: 45.5%; top: 53.9%; width: 4.3%; height: 1.7%; border-radius: 50%; }
.slider-dot-three { left: 50%; top: 53.9%; width: 4.3%; height: 1.7%; border-radius: 50%; }

.rewards-card { left: 3.05%; top: 55.05%; width: 40.7%; height: 30.2%; }
.reward-one { left: 5.5%; top: 58.55%; width: 36.6%; height: 5.15%; }
.reward-two { left: 5.5%; top: 64.05%; width: 36.6%; height: 5.15%; }
.reward-three { left: 5.5%; top: 69.55%; width: 36.6%; height: 5.15%; }
.reward-four { left: 5.5%; top: 75.1%; width: 36.6%; height: 5.15%; }
.view-rewards { left: 5.35%; top: 81.35%; width: 36.9%; height: 3.55%; }

.live-card { left: 45.7%; top: 55.05%; width: 51.2%; height: 30.2%; }
.live-play { left: 48.3%; top: 81.35%; width: 45.9%; height: 3.6%; }

.telegram-card { left: 3.05%; top: 86.35%; width: 93.9%; height: 6.5%; }
.telegram-button { left: 62.55%; top: 87.7%; width: 30.7%; height: 3.45%; }

.faq-hit {
  left: 4%;
  width: 40%;
  height: 3.2%;
}

.faq-one { top: 56.2%; }
.faq-two { left: 50%; top: 56.2%; width: 45%; }

.visual-nav {
  position: static;
}

.nav-hit {
  top: 94.35%;
  height: 5.25%;
  border-radius: 16px;
}

.nav-hit.active {
  background: rgba(255, 106, 19, 0.07);
}

.nav-hit[data-tab="rewards"] { left: 3%; width: 17%; }
.nav-hit[data-tab="game"] { left: 22%; width: 17%; }
.nav-hit[data-tab="home"] { left: 41%; width: 17.6%; }
.nav-hit[data-tab="charity"] { left: 61.5%; width: 18%; }
.nav-hit[data-tab="account"] { left: 82.1%; width: 15.8%; }

.faq-answer[hidden] {
  display: none;
}

.faq-answer {
  position: absolute;
  z-index: 4;
  left: 5%;
  right: 5%;
  top: 78.7%;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(69, 141, 255, 0.78);
  border-radius: 12px;
  background: rgba(6, 11, 42, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52), 0 0 24px rgba(25, 105, 255, 0.22);
  color: var(--ink);
}

.faq-answer strong {
  font-size: 14px;
}

.faq-answer span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.register-modal[hidden] {
  display: none;
}

.register-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 7, 31, 0.78);
  backdrop-filter: blur(7px);
}

.register-card {
  position: relative;
  z-index: 1;
  width: min(382px, 100%);
  border: 1px solid rgba(255, 106, 19, 0.74);
  border-radius: 18px;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(20, 19, 79, 0.98), rgba(4, 7, 31, 0.98) 60%, rgba(44, 21, 104, 0.96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72), 0 0 30px rgba(25, 105, 255, 0.2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.register-card h2 {
  margin: 0 48px 10px 0;
  font-size: 29px;
  line-height: 1.05;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.register-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.register-submit {
  margin-top: 4px;
  background: linear-gradient(180deg, #ff8c21, #ff4b0a);
  color: #fff;
}

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