/* Hāvin public website v0.5.7 — approved Halo identity + seamless center-focus asset wheel */

:root {
  --wheel-focus-width: 182px;
}

/* ---------- Approved Hāvin Halo mark ---------- */
.rc5-halo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.rc5-halo-mark img,
.halo-nav-icon img,
.halo-action-label img,
.rc5-mobile-bottom > span.halo > img,
.story-icon-halo img,
.halo-section-brand > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.halo-nav-icon {
  width: 17px !important;
  height: 17px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 17px;
}

.rc5-nav span.halo b.halo-nav-icon {
  color: inherit;
}

.halo-action-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.halo-action-label img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.rc5-mobile-halo .rc5-halo-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  margin-top: 0;
}

.rc5-mobile-bottom > span.halo {
  transform: translateY(-5px);
  color: var(--rc5-gold);
}

.rc5-mobile-bottom > span.halo::first-letter {
  font-size: inherit;
}

.rc5-mobile-bottom > span.halo > img {
  width: 22px;
  height: 22px;
  margin: -4px auto 1px;
}

.story-icon-halo {
  padding: 2px;
  border-color: rgba(63, 167, 225, 0.15) !important;
  background:
    radial-gradient(circle at 50% 58%, rgba(63, 167, 225, 0.16), transparent 64%),
    rgba(13, 20, 38, 0.05) !important;
}

.story-icon-halo img {
  width: 42px;
  height: 42px;
}

.halo-section-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.halo-section-brand > img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 12px rgba(63, 167, 225, 0.12));
}

.halo-section-brand .eyebrow {
  margin: 0;
}

.halo-chat-top .rc5-halo-mark {
  width: 48px;
  height: 48px;
}

/* ---------- Seamless, bidirectional asset wheel ---------- */
.ownership-wheel-stage {
  position: relative;
  isolation: isolate;
  margin-top: 8px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fixed focus field. It does not move with the scrolling pills. */
.ownership-wheel-stage::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: calc(var(--wheel-focus-width) + 28px);
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(63, 167, 225, 0.11) 42%,
      rgba(30, 58, 138, 0.08) 62%,
      rgba(75, 42, 114, 0.05) 73%,
      transparent 82%);
  box-shadow:
    0 0 20px rgba(63, 167, 225, 0.08),
    0 0 38px rgba(30, 58, 138, 0.08);
  filter: blur(3px);
  pointer-events: none;
}

.ownership-wheel-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: var(--wheel-focus-width);
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(63, 167, 225, 0.17);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 15px rgba(63, 167, 225, 0.075);
  pointer-events: none;
}

.ownership-wheel {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 16px max(18px, calc(50% - (var(--wheel-focus-width) / 2))) 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - (var(--wheel-focus-width) / 2));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  /* Edge fade stays fixed because the stage clips the moving track. */
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,.42) 5%,
    #000 17%,
    #000 83%,
    rgba(0,0,0,.42) 95%,
    transparent 100%);
}

.ownership-wheel::-webkit-scrollbar {
  display: none;
}

/* Disable the older scrolling glow layers; the fixed stage owns focus now. */
.ownership-wheel::before,
.ownership-wheel::after {
  content: none !important;
}

.ownership-wheel .asset-wheel-item {
  --wheel-scale: 0.86;
  --wheel-opacity: 0.28;
  --wheel-blur: 2.2px;
  --wheel-rotate: 0deg;
  --wheel-lift: 2px;
  --wheel-focus: 0;
  position: relative;
  z-index: 1;
  flex: 0 0 var(--wheel-focus-width);
  width: var(--wheel-focus-width);
  min-width: var(--wheel-focus-width);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, calc(0.08 + (var(--wheel-focus) * 0.09)));
  border-radius: 999px;
  color: rgb(235 242 252 / calc(0.58 + (var(--wheel-focus) * 0.42)));
  background:
    linear-gradient(180deg,
      rgb(255 255 255 / calc(0.025 + (var(--wheel-focus) * 0.025))),
      rgb(255 255 255 / 0.012)),
    linear-gradient(145deg,
      rgb(24 37 62 / calc(0.72 + (var(--wheel-focus) * 0.18))),
      rgb(13 20 38 / 0.94));
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.12),
    0 0 calc(4px + (var(--wheel-focus) * 12px)) rgb(63 167 225 / calc(var(--wheel-focus) * 0.10)),
    inset 0 1px 0 rgb(255 255 255 / calc(0.025 + (var(--wheel-focus) * 0.025)));
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: translateY(var(--wheel-lift)) rotateY(var(--wheel-rotate)) scale(var(--wheel-scale));
  transform-origin: center center;
  filter: blur(var(--wheel-blur));
  opacity: var(--wheel-opacity);
  /* Do not tween scroll-driven filter/transform values; rAF drives these continuously. */
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  will-change: transform, filter, opacity;
  -webkit-user-select: none;
  user-select: none;
}

.ownership-wheel .asset-wheel-item[data-clone="true"] {
  cursor: grab;
}

.ownership-wheel .asset-wheel-item:focus-visible {
  outline: 2px solid rgba(63, 167, 225, 0.50);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  :root {
    --wheel-focus-width: 168px;
  }

  .ownership-wheel .asset-wheel-item {
    font-size: 15px;
  }
}

@media (max-width: 620px) {
  :root {
    --wheel-focus-width: 156px;
  }

  .ownership-wheel-stage {
    width: 100%;
    margin-top: 4px;
  }

  .ownership-wheel-stage::before {
    width: calc(var(--wheel-focus-width) + 24px);
    height: 56px;
  }

  .ownership-wheel-stage::after {
    height: 40px;
  }

  .ownership-wheel {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .ownership-wheel .asset-wheel-item {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .halo-section-brand > img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 390px) {
  :root {
    --wheel-focus-width: 148px;
  }

  .ownership-wheel .asset-wheel-item {
    font-size: 13px;
  }

  .rc5-mobile-bottom > span.halo > img {
    width: 20px;
    height: 20px;
  }
}

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

  .ownership-wheel .asset-wheel-item {
    transition: none;
  }
}
