/* OPALHOOD home, live market layer: ticker tape under the nav, the hero stage (WebGL opal orb + live terminal), and the
   "Pons right now" section (bubble map + closest to graduating). Loaded after home-more.css. Data: home-live.js. */

@keyframes hl-tk { to { transform: translateX(-50%); } }
@keyframes hl-blink { 50% { opacity: .35; } }
@keyframes hl-sk { to { background-position: -200% 0; } }
@keyframes hl-flash { 0% { background: rgba(157, 245, 122, .2); transform: translateX(-8px); } 100% { background: transparent; transform: none; } }
@keyframes hl-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes hl-pop { from { opacity: 0; scale: .35; } }
@keyframes hl-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes hl-float { 50% { transform: translateY(-10px); } }
.hl-sk, .hx-term__r--sk span, .pn-r--sk span { background: linear-gradient(90deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .03) 100%); background-size: 200% 100%; animation: hl-sk 1.5s linear infinite; }

/* ---------------- ticker tape ---------------- */
.hx-tk { position: absolute; left: 0; right: 0; top: var(--o-nav); z-index: 2; display: flex; align-items: stretch; height: 42px;
  border-top: 1px solid var(--o-line); border-bottom: 1px solid var(--o-line); background: rgba(10, 10, 10, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hx-tk__lbl { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px 0 var(--o-gut); border-right: 1px solid var(--o-line); background: var(--o-bg);
  font: 700 10.5px/1 var(--o-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--o-t); }
.hx-tk__lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--o-live); box-shadow: 0 0 0 3px rgba(59, 227, 106, .18); animation: hl-blink 1.6s ease-in-out infinite; }
.hx-tk__vp { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 64px), transparent); }
.hx-tk__track { display: flex; width: max-content; height: 100%; animation: hl-tk var(--tk-dur, 60s) linear infinite; }
.hx-tk:hover .hx-tk__track, .hx-tk:focus-within .hx-tk__track { animation-play-state: paused; }
.hx-tk__set { display: flex; height: 100%; }
.hx-tk__i { display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 20px; border-right: 1px solid var(--o-line);
  font: 500 12px/1 var(--o-mono); color: var(--o-t2); text-decoration: none; white-space: nowrap; transition: background .25s, color .25s; }
.hx-tk__i:hover, .hx-tk__i:focus-visible { background: rgba(255, 255, 255, .05); color: var(--o-t); }
.hx-tk__i b { font-weight: 700; color: var(--o-t); }
.hx-tk__img { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--o-bg3); filter: grayscale(1); transition: filter .3s; }
.hx-tk__i:hover .hx-tk__img { filter: none; }
.hx-tk__img--ph { display: inline-grid; place-items: center; font-size: 8px; font-weight: 700; color: var(--o-t3); }
.hx-tk__bar { width: 40px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hx-tk__bar i { display: block; height: 100%; border-radius: inherit; background: var(--o-iri); background-size: 40px 100%; }
.hx-tk__pc { color: var(--o-t); font-variant-numeric: tabular-nums; }
.hx-tk__grad { padding: 4px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--o-live); background: rgba(59, 227, 106, .12); }
.hx-tk__age { color: var(--o-t3); }
.h-still-only .hx-tk, .h-still-only .hx-stage { visibility: hidden !important; }

/* ---------------- hero stage: the orb and the live terminal ---------------- */
.hx-stage { position: relative; animation: hl-rise 1.3s var(--o-ease) .45s backwards; }
.hx-orb { position: absolute; z-index: 0; aspect-ratio: 1; pointer-events: none; }
.hx-orb__gl { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--o-ease); }
.has-orb .hx-orb__gl { opacity: 1; }
.hx-orb__css { position: absolute; inset: 14%; border-radius: 50%; opacity: 0; transition: opacity 1s;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 14%), radial-gradient(circle at 62% 64%, rgba(165, 139, 255, .6), transparent 46%),
    radial-gradient(circle at 34% 66%, rgba(110, 240, 224, .5), transparent 42%), radial-gradient(circle at 68% 32%, rgba(247, 166, 232, .5), transparent 40%), #101014;
  box-shadow: 0 0 90px rgba(165, 139, 255, .28), inset 0 0 40px rgba(255, 255, 255, .08); }
.no-orb-gl .hx-orb__css { opacity: 1; }

.hx-term { position: relative; z-index: 2; overflow: hidden; border: 1px solid var(--o-line2); border-radius: 16px;
  background: rgba(13, 13, 15, .7); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); font-family: var(--o-mono); }
.hx-term::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--o-iri); opacity: .75; }
.hx-term__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--o-line); font-size: 11.5px; color: var(--o-t2); }
.hx-term__dots { display: flex; gap: 6px; }
.hx-term__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.hx-term__dots i:first-child { background: var(--o-live); box-shadow: 0 0 8px rgba(59, 227, 106, .6); animation: hl-blink 1.6s ease-in-out infinite; }
.hx-term__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--o-t); }
.hx-term__t span { font-weight: 400; color: var(--o-t3); }
.hx-term__eth { white-space: nowrap; color: var(--o-t3); }
.hx-term__eth b { font-weight: 600; color: var(--o-t); font-variant-numeric: tabular-nums; }
.hx-term__head, .hx-term__r a { display: grid; grid-template-columns: minmax(0, 1fr) 70px 96px 32px; gap: 10px; align-items: center; }
.hx-term__head { padding: 10px 22px 4px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--o-t3); }
.hx-term__head span:nth-child(2), .hx-term__head span:last-child { text-align: right; }
.hx-term__list { margin: 0; padding: 0 8px 6px; list-style: none; }
.hx-term__r a { height: 46px; padding: 0 14px 0 10px; border-radius: 10px; font-size: 12px; color: var(--o-t2); text-decoration: none; transition: background .2s; }
.hx-term__r a:hover, .hx-term__r a:focus-visible { background: rgba(255, 255, 255, .055); }
.hx-term__r.is-new a { animation: hl-flash 2.6s var(--o-ease) both; }
.hx-term__r--sk span { display: block; height: 36px; margin: 5px 8px; border-radius: 9px; }
.hx-term__tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx-term__tok > span { display: grid; gap: 2px; min-width: 0; }
.hx-term__tok b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--o-t); }
.hx-term__tok small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px/1.2 var(--o-sans); color: var(--o-t3); }
.hx-term__img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--o-bg3); filter: grayscale(1); transition: filter .3s; }
.hx-term__r a:hover .hx-term__img { filter: none; }
.hx-term__img--ph { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--o-t3); }
.hx-term__mc { text-align: right; color: var(--o-t); font-variant-numeric: tabular-nums; }
.hx-term__cv { display: flex; align-items: center; gap: 8px; }
.hx-term__cv i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hx-term__cv s { display: block; height: 100%; border-radius: inherit; background: var(--o-iri); background-size: 64px 100%; text-decoration: none; }
.hx-term__cv em { min-width: 36px; font-style: normal; font-size: 11px; text-align: right; color: var(--o-t); font-variant-numeric: tabular-nums; }
.hx-term__cv em.is-grad { min-width: 0; color: var(--o-live); }
.hx-term__age { text-align: right; color: var(--o-t3); font-variant-numeric: tabular-nums; }
.hx-term__x { display: flex; align-items: center; gap: 8px; margin: 2px 10px 0; padding: 5px 5px 5px 13px; border: 1px solid var(--o-line2); border-radius: 12px; background: rgba(0, 0, 0, .4); transition: border-color .25s; }
.hx-term__x:focus-within { border-color: rgba(255, 255, 255, .55); }
.hx-term__x.is-bad { border-color: var(--o-warn); animation: hl-shake .4s; }
.hx-term__pr { font-weight: 700; color: var(--o-live); }
.hx-term__x input { flex: 1; min-width: 0; height: 34px; padding: 0; border: 0; outline: 0; background: none; font: 12.5px var(--o-mono); color: var(--o-t); }
.hx-term__x input::placeholder { color: var(--o-t3); }
.hx-term__x button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: #fff; color: #0A0A0A; font: 700 12.5px var(--o-sans); cursor: pointer; transition: transform var(--o-press); }
.hx-term__x button:active { transform: scale(.96); }
.hx-term__x button svg { width: 14px; height: 14px; }
.hx-term__msg { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 16px 11px; font-size: 10.5px; color: var(--o-t3); white-space: nowrap; }
.hx-term__msg b { font-weight: 500; color: var(--o-t2); }
.hx-term__err { color: var(--o-warn); }
.hx-term__err:not(:empty) ~ .hx-term__n { display: none; }

@media (min-width: 992px) {
  .hx__in { grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); grid-template-rows: 1fr auto auto 1fr auto; column-gap: clamp(32px, 4vw, 72px); padding-top: calc(var(--o-nav) + 62px); }
  .hx__h { grid-column: 1; grid-row: 2; align-self: end; font-size: clamp(34px, calc((100vw - 170px) * .0455), 86px); }
  .hx__side { grid-column: 1; grid-row: 3; align-self: start; max-width: 540px; padding-top: 26px; }
  .hx__cta { margin-top: 30px; }
  .hx-ca { margin-top: 26px; }
  .hx__bot { grid-row: 5; }
  .hx-stage { grid-column: 2; grid-row: 1 / 5; align-self: start; justify-self: end; width: min(100%, 620px, calc(100svh - 300px)); aspect-ratio: 1; margin-top: 6px; }
  .hx-orb { right: -7%; top: -13%; width: 92%; }
  .hx-orb__gl, .hx-orb__css { animation: hl-float 9s ease-in-out infinite; }
  .hx-term { position: absolute; left: 0; bottom: 0; width: min(84%, 470px); }
}
@media (min-width: 992px) { .hx-term__r:nth-child(5) { display: none; } }
@media (min-width: 992px) and (max-height: 760px) { .hx-term__r:nth-child(4) { display: none; } }

/* ---------------- Pons right now ---------------- */
.pn { padding: clamp(30px, 4vw, 60px) 0 clamp(90px, 9vw, 140px); }
.pn__live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--o-live); box-shadow: 0 0 0 3px rgba(59, 227, 106, .18); animation: hl-blink 1.6s ease-in-out infinite; }
.pn__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr); gap: 20px; }
.pn__map { display: flex; flex-direction: column; min-height: 620px; padding: 14px; }
.pn__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 14px; }
.pn__tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--o-line); border-radius: 999px; background: rgba(0, 0, 0, .3); }
.pn__tabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 600 13px var(--o-sans); color: var(--o-t2); cursor: pointer; transition: background .25s, color .25s; }
.pn__tabs button:hover { color: var(--o-t); }
.pn__tabs button.is-on { background: #fff; color: #0A0A0A; }
.pn__src { font: 11px var(--o-mono); color: var(--o-t3); }
.pn__stage { position: relative; flex: 1; min-height: 500px; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(55% 60% at 50% 50%, rgba(165, 139, 255, .08), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 56px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 56px), #0B0B0D; }
.pn__stage:not(.is-ready)::after { content: 'Reading Pons…'; position: absolute; inset: 0; display: grid; place-items: center; font: 12px var(--o-mono); color: var(--o-t3); }
.pn__info { min-height: 18px; margin: 12px 4px 2px; overflow: hidden; font: 12px var(--o-mono); color: var(--o-t3); white-space: nowrap; text-overflow: ellipsis; }
.pn__info b { color: var(--o-t); }
.pn-b { position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 50%; color: var(--o-t); text-decoration: none; will-change: transform;
  animation: hl-pop .8s var(--o-ease) backwards; animation-delay: calc(var(--k, 0) * 28ms); transition: scale .35s var(--o-ease); }
.pn-b::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 26px rgba(var(--c), .3); opacity: calc(.25 + var(--p) * .75); pointer-events: none; }
.pn-b__img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; object-fit: cover; background: var(--o-bg3); filter: grayscale(1) brightness(.5); transition: filter .35s; }
.pn-b__img--ph { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--o-t3); }
.pn-b__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgb(var(--c)) calc(var(--p) * 1turn), rgba(255, 255, 255, .13) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.pn-b__t { position: relative; display: none; padding: 0 4px; text-align: center; line-height: 1.15; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.pn-b__t b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 700 12px var(--o-mono); }
.pn-b__t small { display: none; font: 10.5px var(--o-mono); color: rgba(255, 255, 255, .8); }
.pn-b.has-l .pn-b__t { display: block; }
.pn-b.has-m .pn-b__t small { display: block; }
.pn-b.has-m .pn-b__t b { font-size: 13.5px; }
.pn-b:hover, .pn-b:focus-visible { z-index: 3; scale: 1.1; }
.pn-b:hover .pn-b__img, .pn-b:focus-visible .pn-b__img { filter: none; }
.pn-b.is-grad::after { box-shadow: 0 0 30px rgba(59, 227, 106, .42); }

.pn__race { display: flex; flex-direction: column; padding: 22px 18px 20px; }
.pn__rh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 12px; border-bottom: 1px solid var(--o-line); margin-bottom: 8px; }
.pn__rh h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--o-t); }
.pn__rh span { display: inline-flex; align-items: center; gap: 8px; font: 10.5px var(--o-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--o-t3); }
.pn__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pn-r a { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--o-t2); text-decoration: none; transition: background .25s; }
.pn-r a:hover, .pn-r a:focus-visible { background: rgba(255, 255, 255, .045); }
.pn-r__n { font: 11px var(--o-mono); color: var(--o-t3); }
.pn-r__img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--o-bg3); filter: grayscale(1); transition: filter .3s; }
.pn-r a:hover .pn-r__img { filter: none; }
.pn-r__img--ph { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--o-t3); }
.pn-r__b { display: grid; gap: 7px; min-width: 0; }
.pn-r__top { display: flex; justify-content: space-between; gap: 8px; }
.pn-r__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px var(--o-mono); color: var(--o-t); }
.pn-r__top em { font: 600 13px var(--o-mono); font-style: normal; color: var(--o-t); font-variant-numeric: tabular-nums; }
.pn-r__bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pn-r__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--o-iri); background-size: 320px 100%; transition: width 1.4s var(--o-ease); }
.is-in .pn-r__bar i { width: var(--w); }
.pn-r:first-child .pn-r__bar i { box-shadow: 0 0 14px rgba(157, 245, 122, .55); }
.pn-r small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px var(--o-mono); color: var(--o-t3); }
.pn-r--sk span { display: block; height: 54px; margin: 3px 0; border-radius: 12px; }
.pn__note { margin: auto 0 0; padding: 16px 8px 0; font-size: 12.5px; line-height: 1.55; color: var(--o-t3); }
.pn__more { display: inline-flex; align-items: center; gap: 8px; margin: 14px 8px 0; font-size: 14px; font-weight: 600; color: var(--o-t); text-decoration: none; }
.pn__more svg { width: 14px; height: 14px; transition: transform .35s var(--o-ease); }
.pn__more:hover svg { transform: translate(2px, -2px); }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1180px) {
  .pn__grid { grid-template-columns: 1fr; }
  .pn__map { min-height: 560px; }
  .pn__list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 12px; }
}
@media (max-width: 991px) {
  .hx__in { padding-top: calc(var(--o-nav) + 42px + 5vh); }
  .hx-stage { grid-column: 1; width: 100%; max-width: 560px; margin: 10px 0 0; }
  .hx-orb { position: relative; width: min(88%, 440px); margin: -30px auto -120px; }
  .hx-term { width: 100%; }
}
@media (max-width: 600px) {
  .hx-tk { height: 38px; }
  .hx-tk__lbl { padding: 0 12px 0 16px; font-size: 9.5px; }
  .hx-tk__i { padding: 0 14px; font-size: 11px; }
  .hx-term__t span, .hx-term__eth { display: none; }
  .hx-term__head, .hx-term__r a { grid-template-columns: minmax(0, 1fr) 58px 72px 28px; gap: 8px; }
  .hx-term__head { padding: 10px 18px 4px; }
  .hx-term__r a { padding: 0 10px 0 8px; font-size: 11px; }
  .hx-term__cv em { min-width: 30px; font-size: 10px; }
  .hx-term__x input { font-size: 16px; } /* no zoom on iOS */
  .hx-orb { margin-bottom: -96px; }
  .pn__map { min-height: 0; padding: 10px; }
  .pn__stage { min-height: 430px; }
  .pn__tabs button { padding: 0 11px; font-size: 12px; }
  .pn__src { display: none; }
  .pn__race { padding: 18px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-tk__track { animation: none; }
  .hx-tk__vp { overflow-x: auto; }
  .hx-stage, .hx-orb__gl, .hx-orb__css, .pn-b, .hx-term__r.is-new a { animation: none !important; }
  .hl-sk, .hx-term__r--sk span, .pn-r--sk span, .hx-tk__lbl i, .pn__live, .hx-term__dots i:first-child { animation: none; }
  .pn-r__bar i { transition: none; }
}
