/* Keep full-bleed decoration inside the page's horizontal bounds. */
body { overflow-x: clip; }

/* Decorative route lines stay behind the studio controls and copy. */
.hero-orbit svg {
  opacity: .42;
  overflow: visible;
  animation: relay-route-sway 12s ease-in-out infinite alternate;
}

.hero-orbit svg path {
  stroke: #76adbf;
  stroke-width: 2.8;
  stroke-dasharray: 16 16;
  stroke-linecap: round;
  opacity: .72;
  animation: relay-route-dashes 18s linear infinite;
}

.hero-orbit svg path + path {
  stroke: #6b9cad;
  stroke-width: 2.2;
  stroke-dasharray: 12 20;
  opacity: .42;
  animation: relay-route-dashes 32s linear infinite reverse;
}

@keyframes relay-route-dashes {
  to { stroke-dashoffset: -256; }
}

@keyframes relay-route-sway {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}

.coin-ticker {
  position: relative;
  width: 100vw;
  margin: 24px calc(50% - 50vw) 0;
  padding: 15px 0 18px;
  overflow: hidden;
  border-top: 1px solid #203842;
  border-bottom: 1px solid #203842;
  background: #09161b;
}

.ticker-head {
  max-width: 1320px;
  margin: 0 auto 12px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7799a6;
  font: 8px/1.5 Mono, monospace;
  letter-spacing: .08em;
}

.ticker-head > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ticker-head > span::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #80a9b9;
}

.ticker-viewport {
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: relay-ticker 90s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  width: max-content;
  padding-right: 16px;
}

.ticker-coin {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 38px;
  padding: 6px 12px 6px 7px;
  border: 1px solid #294a56;
  border-radius: 999px;
  background: #0b1b22;
  color: #d4e5ec;
  font: 11px/1.3 Sora, Arial, sans-serif;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}

.ticker-coin:hover {
  border-color: #658fa2;
  background: #132d38;
}

.ticker-avatar {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 1px solid #365361;
  border-radius: 50%;
  background: #1b3b48;
  color: #a7ccd9;
  font-size: 11px;
  font-weight: 650;
}

.ticker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticker-symbol { font-weight: 650; }
.ticker-change { font: 10px/1.3 Mono, monospace; }
.ticker-change.positive { color: #70cdb0; }
.ticker-change.negative { color: #df8ea0; }

@keyframes relay-ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .coin-ticker { margin-top: 18px; padding: 11px 0 13px; }
  .ticker-head { padding: 0 20px; gap: 10px; font-size: 7px; margin-bottom: 8px; }
  .ticker-head > span { gap: 6px; }
  .ticker-coin { min-height: 44px; padding: 8px 12px 8px 8px; font-size: 11px; }
  .ticker-group { gap: 12px; padding-right: 12px; }
  .ticker-avatar { width: 25px; height: 25px; flex-basis: 25px; }
  .ticker-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
}

@media (pointer: coarse) {
  .ticker-coin { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit svg,
  .hero-orbit svg path,
  .ticker-track { animation: none !important; transform: none !important; }
  .ticker-track { will-change: auto; }
  .ticker-viewport { overflow-x: auto; padding: 5px 20px 10px; scrollbar-width: thin; }
  .ticker-group[data-ticker-group="duplicate"] { display: none; }
}
