:root {
  --phone-width: 430px;
  --source-width: 851;
  --source-height: 1847;
  --primary-color: #0bd9ff;
  --accent-color: #1b79ff;
  --bg: #010712;
  --surface: #041321;
  --line: rgba(11, 217, 255, .26);
  --ink: #f8fbff;
  --muted: #b9cadd;
}

* { 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(11, 217, 255, .18), transparent 34rem),
    linear-gradient(180deg, #010712 0%, #021222 52%, #061827 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a,
button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: rgba(11, 217, 255, .22);
}

a { text-decoration: none; }

.page-shell {
  width: min(100%, var(--phone-width));
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(11, 217, 255, .1), 0 24px 64px rgba(0, 0, 0, .58);
}

.visual-stage {
  width: 100%;
  background: var(--bg);
}

.visual-slice {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.visual-slice-hero {
  aspect-ratio: 851 / 640;
}

.visual-slice-guide {
  aspect-ratio: 851 / 540;
}

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

.visual-image-guide {
  transform: translateY(-58.47%);
}

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

.logo-slot {
  left: 4.9%;
  top: 2.25%;
  width: 33%;
  height: 7.9%;
  background: left center / contain no-repeat;
  pointer-events: none;
}

.visual-hit {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
}

.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 12%);
  outline-offset: 2px;
}

.top-login { left: 49.1%; top: 3.6%; width: 16.3%; height: 9.95%; }
.top-register { left: 67.2%; top: 3.6%; width: 21%; height: 9.95%; }
.hero-login { left: 5.35%; top: 75.5%; width: 19.5%; height: 11.8%; }
.hero-register { left: 27%; top: 75.5%; width: 21.7%; height: 11.8%; }
.support-hit { left: 1.7%; top: 25.8%; width: 96.6%; height: 22.8%; }

.seo-panel {
  position: relative;
  z-index: 1;
  padding: 18px 18px calc(310px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(3, 18, 32, .97), rgba(4, 21, 36, 1) 46%, rgba(1, 7, 18, 1)),
    var(--surface);
}

.seo-prelude {
  display: grid;
  gap: 3px;
  margin: 0 0 36px;
  padding: 0 2px;
}

.seo-prelude span {
  color: #f8fbff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.seo-prelude p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-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(8, 33, 55, .95), rgba(2, 11, 22, .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: #eaf8ff;
  font-size: 15px;
  font-weight: 800;
}

.action-card.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-color: rgba(255, 255, 255, .24);
}

.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(11, 217, 255, .18);
  border-radius: 8px;
  background: rgba(2, 11, 22, .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(11, 217, 255, .42);
}

.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: #eaf8ff;
  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(11, 217, 255, .36);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(6, 24, 41, .94), rgba(9, 13, 24, .94));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .48), 0 0 26px rgba(11, 217, 255, .18);
  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(--primary-color);
  background: linear-gradient(145deg, rgba(11, 217, 255, .24), rgba(27, 121, 255, .14));
}

.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(11, 217, 255, .44);
  border-radius: 8px;
  background: rgba(1, 7, 18, .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;
  }
}
