/* Cinematic motion for the how-to stage. Copy and voice stay unchanged. */

.how-visual {
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 224, 198, 0.16), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(109, 77, 255, 0.16), transparent 36%),
    #060b14;
  box-shadow: inset 0 0 0 1px rgba(0, 224, 198, 0.16);
}

.how-visual[data-show="royalty"] {
  background:
    radial-gradient(circle at 50% 40%, rgba(140, 90, 255, 0.22), transparent 46%),
    #070814;
}

.how-visual[data-show="hold"],
.how-visual[data-show="withdraw"] {
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 193, 74, 0.14), transparent 46%),
    #090c12;
}

.how-visual[data-show="stack"] {
  background:
    radial-gradient(circle at 50% 36%, rgba(122, 162, 255, 0.18), transparent 46%),
    #070b14;
}

.how-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.how-sky__grid {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 8%;
  height: 140%;
  background-image:
    linear-gradient(rgba(0, 224, 198, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 224, 198, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center top;
  animation: how-grid 16s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 55%, transparent);
}

.how-sky__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: how-drift 9s ease-in-out infinite;
}

.how-sky__orb--a {
  width: 180px;
  height: 180px;
  left: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(0, 224, 198, 0.28), transparent 68%);
}

.how-sky__orb--b {
  width: 220px;
  height: 220px;
  right: 4%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(240, 193, 74, 0.18), transparent 70%);
  animation-delay: -3s;
}

.how-sky__rings {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(520px, 120%);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  animation: how-spin 36s linear infinite;
}

.how-sky__rings circle {
  fill: none;
  stroke: rgba(0, 224, 198, 0.28);
  stroke-dasharray: 3 10;
}

.how-sky__rings circle:nth-child(2) {
  stroke: rgba(240, 193, 74, 0.35);
}

.how-sky__dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  left: calc(6% + var(--n) * 6.5%);
  top: calc(14% + (var(--n) * var(--n)) * 0.32%);
  box-shadow: 0 0 8px rgba(0, 224, 198, 0.8);
  animation: how-twinkle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--n) * -0.22s);
}

.how-slide {
  position: relative;
  z-index: 1;
  height: 100%;
  animation: how-arrive 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-visual[data-beat="1"] .how-slide,
.how-visual[data-beat="4"] .how-slide {
  animation-name: how-arrive-left;
}

.how-visual[data-beat="2"] .how-slide,
.how-visual[data-beat="5"] .how-slide {
  animation-name: how-arrive-right;
}

.how-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.16), transparent 64%);
  transform: translateX(-130%);
  animation: how-sweep 0.9s ease 0.05s both;
}

.how-visual .how-canvas {
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.18), rgba(5, 10, 16, 0.42));
}

.how-sheen {
  position: absolute;
  z-index: 0;
  top: -30%;
  bottom: -30%;
  left: -40%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(16deg);
  animation: how-sheen 3.2s ease-in-out infinite;
}

.how-visual .how-browser {
  position: relative;
  z-index: 1;
  border-color: rgba(0, 224, 198, 0.35);
  background:
    linear-gradient(180deg, rgba(18, 36, 52, 0.96), rgba(10, 20, 32, 0.96));
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 224, 198, 0.12),
    0 0 40px rgba(0, 224, 198, 0.08);
  animation: how-float 6s ease-in-out infinite;
}

.how-visual .how-field.is-hot,
.how-visual .how-chip-btn.is-hot,
.how-visual .how-go.is-hot {
  border-color: rgba(0, 224, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 224, 198, 0.12), 0 0 22px rgba(0, 224, 198, 0.28);
  animation: how-glow 1.2s ease-in-out infinite;
}

.how-visual .how-meter.is-on u {
  background: linear-gradient(90deg, #04786c, var(--vela-acc));
  box-shadow: 0 0 12px rgba(0, 224, 198, 0.7);
}

.how-visual .how-split li {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 224, 198, 0.28);
  box-shadow: inset 0 0 16px rgba(0, 224, 198, 0.08);
  animation: how-pop 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.how-visual .how-split li:nth-child(2) { animation-delay: 0.08s; }
.how-visual .how-split li:nth-child(3) { animation-delay: 0.16s; }
.how-visual .how-split li:nth-child(4) { animation-delay: 0.24s; }

.how-visual .how-split li::after {
  content: "";
  position: absolute;
  inset: auto 18% -8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 224, 198, 0.45);
  filter: blur(6px);
}

.how-radar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64px;
}

.how-radar > i {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 224, 198, 0.2);
  border-top-color: var(--vela-acc);
  opacity: 0;
}

.how-radar.is-on > i {
  opacity: 1;
  animation: how-spin 1.15s linear infinite;
}

.how-visual .how-id.is-in {
  position: relative;
  z-index: 1;
  min-width: 72px;
  justify-content: center;
  font-size: 28px;
  text-shadow: 0 0 18px rgba(62, 224, 160, 0.7);
  box-shadow: 0 0 24px rgba(62, 224, 160, 0.25);
}

.how-visual .how-dash span {
  border: 1px solid rgba(0, 224, 198, 0.16);
  animation: how-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.how-visual .how-dash span:nth-of-type(2) { animation-delay: 0.06s; }
.how-visual .how-dash span:nth-of-type(3) { animation-delay: 0.12s; }
.how-visual .how-dash span:nth-of-type(4) { animation-delay: 0.18s; }
.how-visual .how-dash span:nth-of-type(5) { animation-delay: 0.24s; }
.how-visual .how-dash span:nth-of-type(6) { animation-delay: 0.3s; }

.how-visual .how-ref__stem {
  position: relative;
  width: 48px;
  height: 78px;
  background: none;
}

.how-visual .how-ref__stem svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.how-visual .how-ref__stem path {
  fill: none;
  stroke: rgba(0, 224, 198, 0.85);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  filter: drop-shadow(0 0 4px rgba(0, 224, 198, 0.8));
  animation: how-dash 1s linear infinite;
}

.how-visual .how-node {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.how-visual .how-node--you {
  box-shadow: 0 0 0 1px rgba(0, 224, 198, 0.4), 0 0 28px rgba(0, 224, 198, 0.2);
}

.how-visual .how-node--new.is-in {
  animation: how-pop 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-visual .how-coin.is-fly {
  z-index: 3;
  box-shadow: 0 0 0 6px rgba(240, 193, 74, 0.18), 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: how-fly 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.how-visual .how-pips li {
  animation: how-pop 0.45s ease both;
  animation-delay: calc(var(--n) * 45ms);
}

.how-visual .how-pips li.is-on {
  box-shadow: 0 0 16px rgba(240, 193, 74, 0.35);
  animation: how-pip 1.4s ease-in-out infinite;
  animation-delay: calc(var(--n) * 0.08s);
}

.how-seek {
  width: min(440px, 92%);
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.how-seek i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--vela-gold));
  box-shadow: 0 0 14px var(--vela-gold);
  animation: how-seek 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.how-level[data-beat="0"] .how-seek i { --w: 16%; }
.how-level[data-beat="1"] .how-seek i { --w: 38%; }
.how-level[data-beat="2"] .how-seek i { --w: 56%; }
.how-level[data-beat="3"] .how-seek i { --w: 74%; }
.how-level[data-beat="4"] .how-seek i { --w: 100%; }

.how-visual .how-level,
.how-visual .how-chain,
.how-visual .how-pips {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.how-visual .how-chain li {
  backdrop-filter: blur(6px);
  animation: how-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.07s);
}

.how-visual .how-chain li.pay,
.how-visual .how-chain li.done {
  box-shadow: 0 0 18px rgba(0, 224, 198, 0.18);
}

.how-visual .how-chain li.skip {
  animation-name: how-skip;
}

.how-visual .how-ring {
  width: min(100%, 340px);
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  justify-self: center;
}

.how-visual .how-ring__side {
  justify-self: center;
  width: min(280px, 100%);
}

.how-visual .how-ring__side li {
  grid-template-columns: 10px auto auto;
  justify-content: start;
  gap: 8px;
}

.how-visual .how-ring__spin {
  animation: how-spin 22s linear infinite;
  box-shadow: inset 0 0 30px rgba(0, 224, 198, 0.08);
}

.how-visual .how-ring.is-cycle .how-ring__spin {
  animation-duration: 7s;
  border-style: solid;
  border-color: rgba(0, 224, 198, 0.45);
}

.how-ring__comet {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  pointer-events: none;
  animation: how-spin 5.5s linear infinite;
}

.how-ring__comet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 12px 4px rgba(0, 224, 198, 0.85),
    0 18px 22px rgba(0, 224, 198, 0.25);
}

.how-visual .how-ring > span.is-on {
  box-shadow: 0 0 16px rgba(0, 224, 198, 0.45);
}

.how-visual .how-place__src {
  box-shadow: 0 0 0 8px rgba(0, 224, 198, 0.08), 0 0 32px rgba(0, 224, 198, 0.25);
  animation: how-glow 2s ease-in-out infinite;
}

.how-visual .how-place li.is-in {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.how-visual .how-clubs i {
  transform-origin: bottom;
  box-shadow: 0 0 16px rgba(0, 224, 198, 0.25);
  animation: how-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.how-visual .how-clubs li:nth-child(2) i { animation-delay: 0.06s; }
.how-visual .how-clubs li:nth-child(3) i { animation-delay: 0.12s; }
.how-visual .how-clubs li:nth-child(4) i { animation-delay: 0.18s; }
.how-visual .how-clubs li:nth-child(5) i { animation-delay: 0.24s; }
.how-visual .how-clubs li:nth-child(6) i { animation-delay: 0.3s; }

.how-visual .how-tree__row span.is-on {
  animation: how-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 0 18px rgba(122, 162, 255, 0.25);
}

.how-visual .how-tree__row:nth-child(3) span:nth-child(2) { animation-delay: 0.08s; }
.how-visual .how-tree__row:nth-child(4) span { animation-delay: 0.12s; }
.how-visual .how-tree__row:nth-child(4) span:nth-child(2) { animation-delay: 0.18s; }
.how-visual .how-tree__row:nth-child(4) span:nth-child(3) { animation-delay: 0.24s; }
.how-visual .how-tree__row:nth-child(4) span:nth-child(4) { animation-delay: 0.3s; }

.how-visual .how-tree__pay.is-in b {
  text-shadow: 0 0 18px rgba(0, 224, 198, 0.7);
}

.how-pool__jar {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 10px rgba(109, 77, 255, 0.12), 0 0 36px rgba(109, 77, 255, 0.35);
}

.how-pool__liquid {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 0;
  border-radius: 46%;
  background: linear-gradient(180deg, rgba(210, 190, 255, 0.35), rgba(90, 50, 220, 0.85));
  animation: how-pour 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.how-pool__jar b,
.how-pool__jar span {
  position: relative;
  z-index: 1;
}

.how-legbar {
  width: 72%;
  height: 7px;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.how-legbar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6d4dff, #d2beff);
  box-shadow: 0 0 12px rgba(176, 140, 255, 0.7);
  animation: how-leg 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.how-legs article.is-ok {
  box-shadow: 0 0 24px rgba(140, 90, 255, 0.28);
}

.how-visual .how-ranks li,
.how-visual .how-share li,
.how-visual .how-counts li {
  animation: how-pop 0.45s ease both;
}

.how-visual .how-ranks li:nth-child(2),
.how-visual .how-share li:nth-child(2) { animation-delay: 0.04s; }
.how-visual .how-ranks li:nth-child(3),
.how-visual .how-share li:nth-child(3) { animation-delay: 0.08s; }
.how-visual .how-ranks li:nth-child(4),
.how-visual .how-share li:nth-child(4) { animation-delay: 0.12s; }
.how-visual .how-ranks li:nth-child(5),
.how-visual .how-share li:nth-child(5) { animation-delay: 0.16s; }
.how-visual .how-ranks li:nth-child(6) { animation-delay: 0.2s; }
.how-visual .how-ranks li:nth-child(7) { animation-delay: 0.24s; }

.how-visual .how-share li.is-on,
.how-visual .how-faces.is-in span {
  box-shadow: 0 0 16px rgba(176, 140, 255, 0.3);
}

.how-visual .how-faces.is-in span {
  animation: how-pop 0.45s ease both;
}

.how-visual .how-faces.is-in span:nth-child(2) { animation-delay: 0.06s; }
.how-visual .how-faces.is-in span:nth-child(3) { animation-delay: 0.12s; }
.how-visual .how-faces.is-in span:nth-child(4) { animation-delay: 0.18s; }

.how-tank {
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(240, 193, 74, 0.25);
}

.how-tank i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6a5010, var(--vela-gold));
  box-shadow: 0 0 14px rgba(240, 193, 74, 0.65);
  animation: how-tank 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.how-tank.is-pour i {
  --w: 94%;
}

.how-tank.is-full i {
  --w: 100%;
  background: linear-gradient(90deg, #0c6e63, var(--vela-acc));
  box-shadow: 0 0 14px rgba(0, 224, 198, 0.7);
}

.how-visual .how-wd[data-beat="4"] .how-success,
.how-visual .how-join[data-beat="6"] .how-success {
  box-shadow: 0 0 24px rgba(62, 224, 160, 0.28);
}

.how-visual .how-pop {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 224, 198, 0.25);
  animation: how-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes how-grid {
  to { background-position: 0 46px; }
}

@keyframes how-drift {
  50% { transform: translate3d(12px, -16px, 0) scale(1.06); }
}

@keyframes how-twinkle {
  50% { opacity: 0.2; transform: scale(0.6); }
}

@keyframes how-arrive {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes how-arrive-left {
  from { opacity: 0; transform: translate3d(-28px, 10px, 0) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes how-arrive-right {
  from { opacity: 0; transform: translate3d(28px, 10px, 0) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes how-sweep {
  to { transform: translateX(130%); }
}

@keyframes how-sheen {
  50% { left: 110%; }
}

@keyframes how-float {
  50% { transform: translateY(-7px); }
}

@keyframes how-glow {
  50% { box-shadow: 0 0 0 6px rgba(0, 224, 198, 0.08), 0 0 28px rgba(0, 224, 198, 0.4); }
}

@keyframes how-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes how-dash {
  to { stroke-dashoffset: -26; }
}

@keyframes how-pip {
  50% { transform: translateY(-5px); }
}

@keyframes how-seek {
  to { width: var(--w, 20%); }
}

@keyframes how-skip {
  0% { opacity: 0; transform: translateY(10px) scale(0.92); }
  60% { opacity: 1; transform: none; }
  100% { opacity: 0.72; transform: translateX(4px); }
}

@keyframes how-rise {
  from { height: 8px; filter: brightness(1.6); }
  to { height: var(--h); filter: none; }
}

@keyframes how-pour {
  to { height: 58%; }
}

@keyframes how-leg {
  to { width: 100%; }
}

@keyframes how-tank {
  to { width: var(--w, 72%); }
}

@media (max-width: 980px) {
  .how-slide {
    height: auto;
    min-height: 280px;
  }

  .how-sky__rings {
    opacity: 0.28;
  }

  .how-visual .how-browser {
    animation: none;
  }
}
