:root {
  color-scheme: dark;
  --bg: #050a12;
  --surface: rgba(13, 24, 39, 0.82);
  --surface-strong: #101d2d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f9fc;
  --muted: #9baabd;
  --accent: #57e5df;
  --accent-blue: #58a6ff;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(52, 120, 246, 0.18), transparent 33rem),
    radial-gradient(circle at 92% 88%, rgba(31, 219, 194, 0.12), transparent 32rem),
    linear-gradient(145deg, #050a12 0%, #07111f 52%, #050a12 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(114, 214, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before {
  top: -15rem;
  right: -8rem;
  box-shadow: 0 0 0 5rem rgba(93, 196, 255, 0.018), 0 0 0 10rem rgba(93, 196, 255, 0.012);
}

body::after {
  bottom: -17rem;
  left: -10rem;
  box-shadow: 0 0 0 5rem rgba(68, 233, 203, 0.018), 0 0 0 10rem rgba(68, 233, 203, 0.012);
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.card {
  position: relative;
  width: min(100%, 520px);
  padding: 22px 28px 24px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(18, 32, 51, 0.94), var(--surface));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.card::before {
  position: absolute;
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 231, 255, 0.6), transparent);
  content: "";
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(63, 188, 255, 0.2);
}

.one-link-badge {
  padding: 6px 9px;
  color: #a9bacb;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-mark {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  margin: 30px auto 22px;
  place-items: center;
}

.hero-mark::before {
  position: absolute;
  width: 62px;
  height: 62px;
  background: linear-gradient(145deg, #397cff, #52e7d5);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(59, 157, 255, 0.32), inset 0 1px rgba(255, 255, 255, 0.35);
  content: "";
  transform: rotate(12deg);
}

.hero-mark-core {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(125, 226, 255, 0.22);
  border-radius: 50%;
}

.orbit-one {
  width: 88px;
  height: 40px;
  transform: rotate(-24deg);
}

.orbit-two {
  width: 42px;
  height: 92px;
  transform: rotate(37deg);
}

.intro {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.subtitle {
  max-width: 390px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
  margin: 21px 0 13px;
  color: #a7b8ca;
  font-size: 0.77rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(87, 229, 223, 0.09), 0 0 13px rgba(87, 229, 223, 0.65);
}

.is-redirecting .status-dot {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

.store-list {
  display: grid;
  gap: 10px;
}

.store-link {
  position: relative;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  padding: 10px 16px 10px 12px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.store-link::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--store-accent, #fff);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.store-link:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.store-link:hover::before,
.store-link.is-detected::before {
  opacity: 1;
}

.store-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(100, 224, 255, 0.75);
  outline-offset: 3px;
}

.store-link.is-detected {
  background: rgba(87, 211, 229, 0.075);
  border-color: rgba(87, 229, 223, 0.26);
}

.store-apple {
  --store-accent: #ffffff;
}

.store-play {
  --store-accent: #56d7a2;
}

.store-huawei {
  --store-accent: #fa4c57;
}

.store-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
}

.store-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  overflow: visible;
}

.store-apple .store-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.play-blue {
  fill: #52a8f2;
}

.play-green {
  fill: #56d7a2;
}

.play-yellow {
  fill: #f4cf58;
}

.play-red {
  fill: #f56a69;
}

.bag-body {
  fill: #f44752;
  rx: 5px;
}

.bag-handle {
  fill: none;
  stroke: #f44752;
  stroke-width: 3;
  stroke-linecap: round;
}

.bag-face {
  fill: white;
}

.store-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.store-copy small {
  margin-bottom: 1px;
  color: #94a5b8;
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  line-height: 1.1;
}

.store-copy strong {
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-arrow {
  color: #718399;
  font-size: 1rem;
  transition: color 160ms ease, transform 160ms ease;
}

.store-link:hover .store-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

.no-script-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #b7c4d2;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
  color: #8a9bb0;
  font-size: 0.67rem;
  font-weight: 620;
  letter-spacing: 0.045em;
}

.footer-separator {
  width: 3px;
  height: 3px;
  background: #53677c;
  border-radius: 50%;
}

@media (max-width: 520px) {
  .page {
    align-items: start;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .card {
    min-height: calc(100svh - 24px);
    padding: 18px 17px 20px;
    border-radius: 24px;
  }

  .hero-mark {
    margin-top: 25px;
    margin-bottom: 18px;
  }

  .subtitle {
    max-width: 330px;
    font-size: 0.9rem;
  }

  .status {
    margin-top: 18px;
  }

  footer {
    margin-top: 17px;
  }
}

@media (max-width: 360px) {
  .card {
    padding-inline: 13px;
  }

  .store-link {
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    padding-right: 13px;
  }

  .store-icon {
    width: 42px;
    height: 42px;
  }
}

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

@media (forced-colors: active) {
  .card,
  .store-link,
  .store-icon {
    border: 1px solid CanvasText;
  }

  .status-dot,
  .footer-separator {
    background: CanvasText;
  }
}
