:root {
  --gate-primary: #1678ff;
  --gate-success: #22c821;
  --gold: #f2d289;
  --gold-deep: #6d5422;
  --page-black: #080808;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  overflow-x: hidden;
  color: #333;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  overflow-y: auto;
  background: #fff url("assets/bg-base-BpUpsidY.png") center / cover no-repeat;
  transition: opacity .45s ease, visibility .45s ease;
}

.gate.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.gate-content {
  width: 100%;
  max-width: 860px;
  padding: 28px 0;
  text-align: center;
  transform: translateY(-2%);
}

.gate-title {
  padding-bottom: 20px;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.2;
}

.gate-subtitle {
  margin: 0 auto 60px;
  font-size: 30px;
  line-height: 48px;
}

.slider-track {
  position: relative;
  width: 400px;
  height: 80px;
  margin: 0 auto;
  overflow: hidden;
  color: #999;
  font-size: 16px;
  line-height: 80px;
  background: #eee;
  border-radius: 10px;
  user-select: none;
  touch-action: none;
  transform: translateZ(0);
}

.slider-instruction {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-progress {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 80px;
  overflow: hidden;
  color: #fff;
  background: var(--gate-success);
  border-radius: 10px;
  pointer-events: none;
}

.slider-success {
  display: block;
  width: 400px;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
}

.slider-handle {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  cursor: grab;
  touch-action: none;
}

.slider-handle:active {
  cursor: grabbing;
}

.slider-track:not(.is-dragging) .slider-handle,
.slider-track:not(.is-dragging) .slider-progress {
  transition: all .3s ease-in-out;
}

.handle-arrow::before,
.handle-arrow::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 18px;
  width: 24px;
  height: 4px;
  border-radius: 3px;
  background: var(--gate-primary);
  transform-origin: 96% 50%;
  transition: all .3s ease;
}

.handle-arrow::before { transform: rotate(45deg); }
.handle-arrow::after { transform: rotate(-45deg); }

.slider-track.is-complete .slider-handle {
  background: radial-gradient(circle, var(--gate-success) 49%, #fff 52%);
}

.slider-track.is-complete .handle-arrow::before {
  top: 40px;
  left: 18px;
  width: 14px;
  background: #fff;
}

.slider-track.is-complete .handle-arrow::after {
  top: 24px;
  left: 24px;
  background: #fff;
}

.gate-service {
  display: block;
  width: 100%;
  margin-top: 76px;
  border: 0;
  color: var(--gate-primary);
  font-size: 30px;
  line-height: 1.4;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.gate-service:hover,
.gate-service:focus-visible {
  opacity: .88;
}

.browser-recommendations {
  width: 100%;
  max-width: 760px;
  margin: 30px auto 0;
}

.browser-recommendations h2 {
  margin-bottom: 18px;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.browser-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.browser-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.browser-link:hover,
.browser-link:focus-visible {
  color: var(--gate-primary);
}

.browser-icon-wrap {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 120, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 18px rgba(62, 108, 150, .12);
}

.browser-fallback {
  color: var(--gate-primary);
  font-size: 24px;
  font-weight: 700;
}

.browser-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.browser-icon-wrap.is-missing .browser-icon {
  display: none;
}

.browser-name {
  display: block;
  min-height: 38px;
  overflow-wrap: anywhere;
}

.landing {
  min-height: 100svh;
  color: #fff;
  background: #120f0a;
}

.phone-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page-black);
  box-shadow: 0 0 20px rgba(10, 21, 16, .9);
}

.landing-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(430px, 100vw);
  height: 80px;
  background: linear-gradient(180deg, #17130d 0%, #080808 100%);
  border-bottom: 1px solid var(--gold-deep);
}

.brand-logo {
  width: 80%;
  height: auto;
  margin: 2% 0 0;
}

.image-button {
  display: block;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.image-button img {
  display: block;
  width: 100%;
  pointer-events: none;
}

.service-button {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 60px;
  height: 50px;
}

.landing-content {
  flex: 1;
  padding-top: 80px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 350;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.quick-actions {
  display: flex;
  color: #fff;
  text-align: center;
}

.quick-actions .image-button {
  width: 50%;
  height: 40px;
  margin-top: 15px;
}

.quick-actions img {
  width: 80%;
  margin: 0 auto;
}

.pulse img {
  animation: pulse 2.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.1); opacity: 1; }
}

.security-warning {
  width: 100%;
  margin-top: 30px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.security-warning strong {
  color: #f00;
  font-weight: 400;
}

.channel-list {
  margin-top: 18px;
}

.channel-card {
  width: 94%;
  margin: 20px auto;
  padding: 6px;
  border: 1px solid var(--gold-deep);
  border-radius: 10px;
  background: #0b0a0a;
  box-shadow: inset 0 0 10px rgba(201, 157, 74, .1);
}

.channel-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 94px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.channel-icon {
  width: 34px;
  height: 34px;
}

.channel-label {
  min-width: 0;
  color: #f7e7bc;
  font-size: 23px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: .3px;
  text-align: left;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .85), 0 0 6px rgba(207, 162, 74, .28);
  white-space: nowrap;
}

.enter-pill {
  width: 94px;
  height: 34px;
  border: 1px solid var(--gold-deep);
  border-radius: 17px;
  color: #1a1206;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  background: linear-gradient(180deg, #f3dc9e 0%, #cfa24a 100%);
  box-shadow: 0 0 10px rgba(201, 157, 74, .45);
}

.domain-card {
  width: 100%;
  min-height: 92px;
  margin: 20px auto;
  padding: 8px 0 8px 3%;
  color: #fef9bd;
  font-size: 44.8px;
  line-height: 64px;
  text-align: center;
  background: url("assets/name.png") center / 103% 100% no-repeat;
}

.about-card {
  width: 94%;
  margin: 0 auto;
  padding: 10px 15px;
  border: 2px solid var(--gold-deep);
  border-radius: 10px;
  box-shadow: inset 0 0 10px 5px rgba(201, 157, 74, .16);
}

.about-card h2 {
  height: 28px;
  color: var(--gold);
  font-size: 16px;
  line-height: 28px;
  text-align: center;
}

.about-card h2 span:first-child,
.about-card h2 span:last-child {
  font-size: 10px;
}

.about-card h2 span:nth-child(2),
.about-card h2 span:nth-last-child(2) {
  margin: 0 4px;
  font-size: 12px;
}

.about-card p {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.copyright {
  margin: 10px 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 560px) {
  .gate {
    padding: 20px;
  }

  .gate-content {
    padding: 22px 0;
    transform: none;
  }

  .gate-title {
    padding-bottom: 16px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .gate-subtitle {
    max-width: 360px;
    margin-bottom: 42px;
    font-size: 20px;
    line-height: 1.65;
  }

  .slider-track {
    width: min(400px, calc(100vw - 40px));
  }

  .slider-success {
    width: min(400px, calc(100vw - 40px));
  }

  .gate-service {
    margin-top: 40px;
    font-size: 24px;
  }

  .browser-recommendations {
    margin-top: 24px;
  }

  .browser-recommendations h2 {
    margin-bottom: 14px;
  }

  .browser-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .browser-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .browser-name {
    min-height: 38px;
  }
}

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

  .landing-header {
    width: 100vw;
    height: 60px;
  }

  .landing-content {
    padding-top: 60px;
  }

  .channel-label {
    font-size: clamp(17px, 5.35vw, 23px);
  }

  .domain-card {
    min-height: 82px;
    font-size: clamp(34px, 10.4vw, 44.8px);
    line-height: 58px;
  }
}

@media (max-width: 350px) {
  .channel-button {
    grid-template-columns: 30px minmax(0, 1fr) 78px;
    gap: 7px;
  }

  .channel-icon {
    width: 30px;
    height: 30px;
  }

  .enter-pill {
    width: 78px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
