:root {
  --phone-width: 430px;
  --primary-color: #b8ff1a;
  --accent-color: #1bb4ff;
  --bg: #02090b;
  --surface: #07141a;
  --surface-strong: #0c2028;
  --line: rgba(122, 233, 255, .22);
  --ink: #f7fbff;
  --muted: #b6c7d2;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(184, 255, 26, .16), transparent 34rem),
    linear-gradient(180deg, #02090b 0%, #061017 52%, #091921 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a,
button {
  color: inherit;
  -webkit-tap-highlight-color: rgba(184, 255, 26, .22);
}

a {
  text-decoration: none;
}

.page-shell {
  width: min(100%, var(--phone-width));
  margin: 0 auto;
  overflow: hidden;
  background: #02090b;
  box-shadow: 0 0 0 1px rgba(184, 255, 26, .08), 0 24px 64px rgba(0, 0, 0, .58);
}

.visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 853 / 1708;
  overflow: hidden;
  background: #02090b;
}

.visual-image {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.logo-slot,
.visual-hit {
  position: absolute;
  z-index: 2;
}

.logo-slot {
  left: 3.75%;
  top: .9%;
  width: 15.6%;
  height: 4.1%;
  background: center / contain no-repeat;
  pointer-events: none;
}

.visual-hit {
  display: block;
  border-radius: 8px;
  background: transparent;
}

.visual-hit:focus-visible,
.nav-item:focus-visible,
.action-card:focus-visible,
.site-footer a:focus-visible,
details:focus-within {
  outline: 2px solid color-mix(in srgb, var(--primary-color), white 10%);
  outline-offset: 2px;
}

.top-login { left: 53.4%; top: 1.25%; width: 13.7%; height: 3.35%; }
.top-register { left: 68.5%; top: 1.2%; width: 16.9%; height: 3.45%; }
.hero-login { left: 4%; top: 27.5%; width: 22.7%; height: 3.8%; }
.hero-register { left: 28.8%; top: 27.5%; width: 23.2%; height: 3.8%; }
.app-guide-hit { left: 4%; top: 45.9%; width: 92%; height: 5.9%; }
.wallet-guide-hit { left: 4%; top: 52.2%; width: 92%; height: 6.1%; }
.game-guide-hit { left: 4%; top: 58.7%; width: 92%; height: 6.1%; }
.promo-guide-hit { left: 4%; top: 65.6%; width: 92%; height: 10.3%; }
.channel-hit { left: 4%; top: 77.1%; width: 92%; height: 6.8%; }

.seo-panel {
  position: relative;
  z-index: 1;
  padding: 26px 18px calc(310px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(5, 20, 25, .96), rgba(8, 25, 33, 1) 42%, rgba(3, 10, 14, 1)),
    var(--surface);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  color: #f8fbff;
  font-size: 38px;
  line-height: .98;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.action-card,
.guide-block,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 36, 45, .94), rgba(3, 13, 18, .96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  color: #eaf7ff;
  font-size: 15px;
  font-weight: 800;
}

.action-card.primary {
  color: #081015;
  background: linear-gradient(135deg, var(--primary-color), #2fc8ff);
  border-color: rgba(255, 255, 255, .28);
}

.guide-block {
  margin-top: 12px;
  padding: 16px;
}

.guide-block h2 {
  margin-bottom: 8px;
  color: #f8fbff;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.guide-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.faq-section h2 {
  margin-bottom: 2px;
}

details {
  border: 1px solid rgba(122, 233, 255, .16);
  border-radius: 8px;
  background: rgba(3, 13, 18, .74);
}

summary {
  min-height: 46px;
  padding: 13px 38px 13px 14px;
  color: #f8fbff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

details p {
  padding: 0 14px 14px;
}

.safety-note {
  border-color: rgba(184, 255, 26, .32);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.site-footer a {
  color: #eaf7ff;
  font-weight: 800;
}

.site-footer span {
  flex-basis: 100%;
}

.nav-hits {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 20px), 390px);
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(122, 233, 255, .3);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(9, 31, 39, .94), rgba(20, 23, 24, .94));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .48), 0 0 26px rgba(27, 180, 255, .16);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  border-radius: 18px;
  color: rgba(248, 251, 255, .78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.nav-item.active {
  color: var(--accent-color);
  background: linear-gradient(145deg, rgba(27, 180, 255, .28), rgba(184, 255, 26, .08));
}

.nav-item svg {
  width: 24px;
  max-width: 24px;
  height: 24px;
  max-height: 24px;
  flex: 0 0 24px;
}

.nav-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 340px);
  padding: 11px 13px;
  border: 1px solid rgba(184, 255, 26, .42);
  border-radius: 8px;
  background: rgba(2, 9, 11, .94);
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46);
}

.notice[hidden] {
  display: none;
}

@media (min-width: 420px) {
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions .action-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
