/* ===== WOAH! Iteration 2 — Cyberpunk extras CSS ===== */

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on * { cursor: none !important; }
}
.cur-dot, .cur-halo, .cur-trails, .cur-pulse, .cur-trail {
  position: fixed; pointer-events: none;
  /* z-index above any element on the page including the fixed nav (z-index 100)
     and popups (z-index 60). Cursor must always render on top. */
  z-index: 99999;
  will-change: transform, opacity;
  /* Isolate from parent stacking contexts created by backdrop-filter,
     so the cursor stays visible when passing over the navbar. */
  isolation: isolate;
}
.cur-trails { inset: 0; }
.cur-dot {
  left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #00F0FF; box-shadow: 0 0 14px #00F0FF, 0 0 28px #00F0FF;
  transition: background .15s, box-shadow .15s, width .12s, height .12s;
  /* mix-blend-mode is intentionally OMITTED — using it together with backdrop-filter
     parents (the nav) makes the cursor disappear in some browsers. The neon glow
     comes from box-shadow alone now. */
}
.cur-dot::before {
  content:''; position:absolute; inset: 30%; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px #fff;
}
.cur-halo {
  left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(0,240,255,.5);
  box-shadow: 0 0 28px rgba(0,240,255,.5), inset 0 0 14px rgba(0,240,255,.25);
  transition: border-color .15s, box-shadow .15s, width .15s, height .15s;
}
.cur-trail {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%,-50%); opacity: .6;
  animation: curTrailFade .6s linear forwards;
}
@keyframes curTrailFade {
  0% { opacity: .55; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(.3); }
}
.cur-pulse {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #00F0FF; transform: translate(-50%,-50%);
  animation: curPulse .42s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes curPulse {
  0% { width: 16px; height: 16px; opacity: .9; box-shadow: 0 0 14px #00F0FF; }
  100% { width: 90px; height: 90px; opacity: 0; box-shadow: 0 0 0 #00F0FF; }
}
@media (prefers-reduced-motion: reduce) {
  .cur-trails, .cur-pulse { display: none !important; }
}

/* ---------- Cyberpunk nav links override ---------- */
.nav__links { gap: clamp(14px, 1.4vw, 26px) !important; }
.nav__links a {
  font-family: 'Orbitron', 'Rajdhani', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .2em !important;
  font-size: 12.5px !important;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,240,255,.28);
  position: relative;
  padding: 6px 4px 8px !important;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s ease, text-shadow .25s ease;
}
.nav__links a::before {
  content: attr(data-num);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .04em;
  color: rgba(0, 240, 255, .55);
  margin-right: 6px;
}
.nav__links li {
  display: flex; align-items: center;
}
.nav__links li::after {
  content: '│';
  color: rgba(0, 240, 255, .22);
  font-size: 14px;
  margin-left: clamp(6px, .9vw, 14px);
  pointer-events: none;
}
.nav__links li:last-child::after { display: none; }
.nav__links a .nav__triangle {
  opacity: 0; transform: translateX(-2px);
  color: #00F0FF;
  transition: opacity .2s ease, transform .2s ease;
  text-shadow: 0 0 8px #00F0FF;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: linear-gradient(90deg, #00F0FF, transparent);
  box-shadow: 0 0 10px rgba(0,240,255,.7);
  transition: right .25s ease;
}
.nav__links a:hover {
  color: #00F0FF;
  text-shadow: 0 0 16px rgba(0,240,255,.85), 1px 0 0 #FF2E97, -1px 0 0 #00F0FF;
  animation: navGlitch .18s steps(2,end) 1;
}
.nav__links a:hover::after { right: 0; }
.nav__links a:hover .nav__triangle { opacity: 1; transform: translateX(0); }
.nav__links a:hover::before { color: #00F0FF; }
@keyframes navGlitch {
  0%   { transform: translateX(0); }
  33%  { transform: translateX(-1px); }
  66%  { transform: translateX(1px); }
  100% { transform: translateX(0); }
}
.nav__links a.is-active {
  color: #00F0FF;
  text-shadow: 0 0 14px rgba(0,240,255,.7);
  animation: navActivePulse 2.2s ease-in-out infinite;
}
.nav__links a.is-active::before {
  content: attr(data-num-active);
  color: #00F0FF;
  text-shadow: 0 0 8px rgba(0,240,255,.6);
}
.nav__links a.is-active::after { right: 0; }
.nav__links a.is-active .nav__triangle { opacity: 1; transform: translateX(0); }
@keyframes navActivePulse {
  0%, 100% { text-shadow: 0 0 12px rgba(0,240,255,.55); }
  50%      { text-shadow: 0 0 20px rgba(0,240,255,1); }
}
.nav__sys-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .12em;
  color: rgba(0,240,255,.5);
  border-left: 1px solid rgba(0,240,255,.22);
  padding-left: 12px; margin-left: 4px;
  white-space: nowrap;
}
@media (max-width: 1100px) { .nav__sys-tag { display: none; } }

/* ---------- Music player in nav ---------- */
.mplayer {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 4px 8px 4px 4px;
  border-radius: 12px;
  background: rgba(15, 14, 26, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 0 18px rgba(0,240,255,.12), inset 0 0 10px rgba(0,240,255,.06);
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  min-width: 280px;
}
.mplayer.is-playing {
  border-color: rgba(0,240,255,.5);
  box-shadow: 0 0 26px rgba(0,240,255,.28), inset 0 0 12px rgba(0,240,255,.12);
  animation: mpRipple 2.4s ease-out infinite;
}
@keyframes mpRipple {
  0% { box-shadow: 0 0 26px rgba(0,240,255,.28), inset 0 0 12px rgba(0,240,255,.12), 0 0 0 0 rgba(0,240,255,.4); }
  100% { box-shadow: 0 0 26px rgba(0,240,255,.28), inset 0 0 12px rgba(0,240,255,.12), 0 0 0 14px rgba(0,240,255,0); }
}
.mplayer__art {
  position: relative; width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #FF2E97, #00F0FF, #8B5CF6);
  display: grid; place-items: center;
  font-family: 'Orbitron', sans-serif; font-weight: 900; color: #fff;
  font-size: 11px; flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.mplayer.is-playing .mplayer__art {
  animation: mpArtSpin 4s linear infinite;
}
@keyframes mpArtSpin {
  0% { box-shadow: 0 0 0 0 rgba(0,240,255,.6); }
  50% { box-shadow: 0 0 0 3px rgba(255,46,151,.4); }
  100% { box-shadow: 0 0 0 0 rgba(0,240,255,.6); }
}
.mplayer__art-glow {
  position: absolute; inset: -2px; border-radius: 9px;
  background: conic-gradient(from 0deg, #FF2E97, #00F0FF, #8B5CF6, #FF2E97);
  z-index: -1; opacity: .5; filter: blur(6px);
}
.mplayer__info {
  display: flex; flex-direction: column; gap: 0;
  min-width: 0; flex: 0 0 100px; max-width: 110px;
}
.mplayer__title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: .06em;
  color: #00F0FF; text-shadow: 0 0 6px rgba(0,240,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mplayer__title-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px; letter-spacing: .25em;
  color: rgba(0,240,255,.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 1px;
}
.mplayer__sub {
  font-size: 9.5px; color: rgba(255,255,255,.65); letter-spacing: .04em;
  display: flex; gap: 6px; align-items: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'JetBrains Mono', monospace;
}
.mplayer__live {
  color: #FF3B5B; font-weight: 700;
  animation: mpLiveBlink 1.1s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(255,59,91,.7);
}
@keyframes mpLiveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mplayer__wave {
  display: flex; align-items: center; gap: 1.5px;
  width: 78px; height: 28px;
  flex-shrink: 0;
}
.mplayer__wave span {
  flex: 1; min-width: 2px;
  background: linear-gradient(to top, rgba(0,240,255,.3), #00F0FF);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(0,240,255,.5);
  transition: height .12s linear, opacity .12s linear;
}
.mplayer__ctrls {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.mplayer__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: rgba(0,240,255,.65);
  margin-right: 2px;
}
.mplayer__btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(0,240,255,.3);
  background: rgba(0,240,255,.08);
  color: #00F0FF;
  display: grid; place-items: center;
  cursor: pointer; transition: all .2s;
  position: relative;
}
.mplayer__btn:hover {
  background: rgba(0,240,255,.18);
  border-color: rgba(0,240,255,.6);
  box-shadow: 0 0 10px rgba(0,240,255,.5);
  transform: scale(1.08);
}
.mplayer__btn--play {
  width: 30px; height: 30px;
  background: rgba(0,240,255,.18);
  border-color: rgba(0,240,255,.55);
  box-shadow: 0 0 10px rgba(0,240,255,.4);
}
.mplayer__btn--up { font-size: 0; }

/* === Volume control: slider popup that appears on hover === */
.mplayer__vol {
  position: relative;
  display: inline-flex;
}
/* Invisible bridge so the cursor can move from the button to the popup
   without leaving the hover area. */
.mplayer__vol::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 14px;
  pointer-events: none;
}
.mplayer__vol:hover::after {
  pointer-events: auto;
}
.mplayer__vol-popup {
  position: absolute;
  /* No vertical gap — popup connects directly to the bridge above.
     Visual breathing space comes from padding-top below. */
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(6,6,12,.92);
  border: 1px solid rgba(0,240,255,.35);
  border-radius: 8px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.5),
    0 0 18px rgba(0,240,255,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(.96);
  transform-origin: top right;
  /* Delay closing so cursor crossing the small gap doesn't kill the popup */
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1.05),
    visibility 0s .25s;
  pointer-events: none;
  z-index: 60;
}
/* Show whenever wrapper, popup, or bridge is hovered/focused */
.mplayer__vol:hover .mplayer__vol-popup,
.mplayer__vol:focus-within .mplayer__vol-popup,
.mplayer__vol-popup:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.7,.2,1.05),
    visibility 0s 0s;
}

/* The slider itself — custom styling for cyberpunk vibe */
.mplayer__vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, #FF2E97 0%, #00F0FF var(--vol, 50%), rgba(255,255,255,.1) var(--vol, 50%));
  outline: none;
  cursor: pointer;
  margin: 0;
}
.mplayer__vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #00F0FF;
  box-shadow: 0 0 10px rgba(0,240,255,.6), 0 0 4px rgba(255,46,151,.5);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mplayer__vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(0,240,255,.85), 0 0 8px rgba(255,46,151,.7);
}
.mplayer__vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #00F0FF;
  box-shadow: 0 0 10px rgba(0,240,255,.6);
  cursor: pointer;
}
.mplayer__vol-slider::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #FF2E97 0%, #00F0FF var(--vol, 50%), rgba(255,255,255,.1) var(--vol, 50%));
}

/* Tiny numeric percentage display */
.mplayer__vol-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #00F0FF;
  letter-spacing: .05em;
  min-width: 22px;
  text-align: right;
  text-shadow: 0 0 6px rgba(0,240,255,.5);
  user-select: none;
}

@media (max-width: 900px) {
  .mplayer { display: none; }
}

/* ---------- Video Player ---------- */
.vbroadcast {
  margin: clamp(40px, 6vw, 80px) auto 0;
  max-width: 1100px;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
}
.vbroadcast__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.vbroadcast__head .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .18em;
  color: #00F0FF;
  border: 1px solid rgba(0,240,255,.4);
  padding: 5px 10px; border-radius: 4px;
  background: rgba(0,240,255,.06);
}
.vbroadcast__head h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800; font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: .04em; color: #fff; margin: 0;
  text-shadow: 0 0 12px rgba(0,240,255,.4);
}
.vbroadcast__hud-r {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(0,240,255,.55);
  letter-spacing: .1em;
}
.vplayer {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 40px rgba(0,240,255,.18), 0 0 80px rgba(255,46,151,.1);
}
.vplayer::before {
  content: ''; position: absolute; inset: -3px; z-index: -1;
  background: conic-gradient(from 0deg, #FF2E97, #00F0FF, #8B5CF6, #FF2E97);
  animation: vpBorder 4s linear infinite;
  border-radius: 14px;
}
@keyframes vpBorder { 100% { filter: hue-rotate(360deg); } }
.vplayer video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vplayer__corner {
  position: absolute; color: #00F0FF; font-size: 18px;
  text-shadow: 0 0 8px #00F0FF; z-index: 5;
}
.vplayer__corner--tl { top: 10px; left: 12px; }
.vplayer__corner--tr { top: 10px; right: 12px; }
.vplayer__corner--bl { bottom: 50px; left: 12px; }
.vplayer__corner--br { bottom: 50px; right: 12px; }
.vplayer__hud-tl, .vplayer__hud-tr, .vplayer__hud-br {
  position: absolute; z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(0,240,255,.7);
  letter-spacing: .12em; padding: 3px 8px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(0,240,255,.25);
  border-radius: 3px;
  display: flex; align-items: center; gap: 8px;
}
.vplayer__hud-tl { top: 16px; left: 32px; }
.vplayer__hud-tr { top: 16px; right: 32px; }
.vplayer__hud-br { bottom: 56px; right: 32px; }
.vplayer__hud-tl .rec {
  color: #FF3B5B; animation: mpLiveBlink 1s infinite;
  text-shadow: 0 0 6px #FF3B5B;
}
.vplayer__eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.vplayer__eq i {
  width: 2px; background: #00F0FF; border-radius: 1px;
  animation: vpEq .8s ease-in-out infinite;
  box-shadow: 0 0 4px #00F0FF;
}
.vplayer__eq i:nth-child(1) { height: 30%; animation-delay: -.0s; }
.vplayer__eq i:nth-child(2) { height: 80%; animation-delay: -.2s; }
.vplayer__eq i:nth-child(3) { height: 50%; animation-delay: -.4s; }
.vplayer__eq i:nth-child(4) { height: 90%; animation-delay: -.1s; }
.vplayer__eq i:nth-child(5) { height: 40%; animation-delay: -.3s; }
@keyframes vpEq {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.vplayer__empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  background: radial-gradient(ellipse at center, #0F0E1A, #06060C);
}
.vplayer__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,.04) 3px, rgba(0,240,255,.04) 4px);
  animation: vpScan 5s linear infinite;
}
@keyframes vpScan { 100% { background-position: 0 200px; } }
.vplayer__nosig {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800; font-size: clamp(20px, 3vw, 36px);
  color: #00F0FF; letter-spacing: .2em;
  text-shadow: 0 0 14px rgba(0,240,255,.7), 1px 0 0 #FF2E97;
  position: relative; z-index: 2;
}
.vplayer__await {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(0,240,255,.7); letter-spacing: .1em;
  position: relative; z-index: 2;
}
.vplayer__await .blink {
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.vplayer__load {
  z-index: 2; position: relative;
}
.vplayer__ctrls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0));
  z-index: 6;
}
.vplayer__btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(0,240,255,.4);
  background: rgba(0,240,255,.1);
  color: #00F0FF;
  display: grid; place-items: center;
  cursor: pointer; transition: all .2s;
}
.vplayer__btn:hover {
  background: rgba(0,240,255,.22);
  box-shadow: 0 0 10px rgba(0,240,255,.5);
  transform: scale(1.08);
}
.vplayer__progress {
  flex: 1; height: 4px; background: rgba(0,240,255,.15);
  border-radius: 2px; cursor: pointer; overflow: hidden;
}
.vplayer__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00F0FF, #FF2E97);
  box-shadow: 0 0 8px #00F0FF;
  transition: width .12s linear;
}
.vplayer__tc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #00F0FF; letter-spacing: .08em;
}

/* ---------- Memories Gallery v2 ---------- */
.galv2__bar {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.galv2__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.galv2__pill {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid rgba(0,240,255,.28);
  background: rgba(0,240,255,.04);
  color: rgba(255,255,255,.7);
  cursor: pointer; transition: all .2s;
}
.galv2__pill:hover {
  border-color: rgba(0,240,255,.7);
  color: #00F0FF;
  box-shadow: 0 0 10px rgba(0,240,255,.3);
}
.galv2__pill.is-on {
  background: linear-gradient(135deg, rgba(0,240,255,.25), rgba(255,46,151,.18));
  border-color: #00F0FF;
  color: #fff;
  box-shadow: 0 0 14px rgba(0,240,255,.5);
}
.galv2__upload { margin-left: auto; }

.galv2 {
  columns: 3; column-gap: 16px;
}
@media (max-width: 1024px) { .galv2 { columns: 2; } }
@media (max-width: 640px)  { .galv2 { columns: 1; } }
.galv2__card {
  width: 100%; margin-bottom: 16px;
  break-inside: avoid;
  position: relative; overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0,240,255,.2);
  background: #0F0E1A;
  cursor: pointer; padding: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
  display: block;
}
.galv2__card.is-placeholder { cursor: default; }
.galv2__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,46,151,.3), 0 0 0 1px rgba(0,240,255,.5);
}
.galv2__card:hover .galv2__edge { opacity: 1; }
.galv2__card:hover .galv2__img { transform: scale(1.06); }
.galv2__corner {
  position: absolute; color: #00F0FF; font-size: 14px;
  text-shadow: 0 0 6px #00F0FF; z-index: 4; pointer-events: none;
}
.galv2__corner--tl { top: 8px; left: 10px; }
.galv2__corner--br { bottom: 8px; right: 10px; }
.galv2__num {
  position: absolute; top: 8px; right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: rgba(0,240,255,.7);
  letter-spacing: .1em;
  background: rgba(0,0,0,.5);
  padding: 2px 6px; border-radius: 3px; z-index: 4;
  border: 1px solid rgba(0,240,255,.25);
}
.galv2__inner {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  overflow: hidden;
}
.galv2__inner .galv2__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,.06) 3px, rgba(0,240,255,.06) 4px);
  animation: vpScan 6s linear infinite;
}
.galv2__await {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em;
  color: rgba(0,240,255,.6);
  text-shadow: 0 0 8px rgba(0,240,255,.4);
  position: relative; z-index: 2;
}
.galv2__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.galv2__edge {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,240,255,.18)),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,.05) 3px, rgba(0,240,255,.05) 4px);
  opacity: 0; transition: opacity .3s;
}

.lbx2 {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,6,12,.92);
  backdrop-filter: blur(40px);
  display: grid; place-items: center;
  animation: lbx2In .3s ease;
}
@keyframes lbx2In { from { opacity: 0; } to { opacity: 1; } }
.lbx2__inner {
  position: relative;
  max-width: 90vw; max-height: 88vh;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(0,240,255,.4);
  box-shadow: 0 0 60px rgba(0,240,255,.4);
}
.lbx2__img {
  display: block; max-width: 90vw; max-height: 88vh;
  animation: lbx2Img .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes lbx2Img {
  from { transform: scale(.94); filter: blur(6px); }
  to { transform: scale(1); filter: blur(0); }
}
.lbx2__close, .lbx2__nav {
  position: absolute; z-index: 5;
  border: 1px solid rgba(0,240,255,.4);
  background: rgba(0,0,0,.6);
  color: #00F0FF; cursor: pointer;
  display: grid; place-items: center;
  transition: all .2s;
}
.lbx2__close {
  top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: 'Orbitron', sans-serif; font-size: 14px;
}
.lbx2__nav {
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
}
.lbx2__nav--l { left: 14px; }
.lbx2__nav--r { right: 14px; }
.lbx2__close:hover, .lbx2__nav:hover {
  box-shadow: 0 0 20px rgba(0,240,255,.6);
  border-color: #00F0FF;
}
.lbx2__counter {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #00F0FF;
  background: rgba(0,0,0,.7);
  padding: 5px 12px; border-radius: 4px;
  border: 1px solid rgba(0,240,255,.3);
  letter-spacing: .12em;
}

/* ---------- Iteration 2 hardcore transition ---------- */
.tx--out {
  animation: txGlitchOut 200ms steps(3, end) forwards !important;
}
@keyframes txGlitchOut {
  0% { filter: none; transform: scale(1); }
  50% { filter: hue-rotate(120deg) contrast(1.3); transform: scale(.985); }
  100% { filter: hue-rotate(240deg) contrast(1.5); transform: scale(.97); opacity: .7; }
}


/* ===== Hero logo + address line + nav/footer logo image ===== */

/* Nav and footer image-logo: drop the heavy text-block padding/border */
.nav__logo-block.nav__logo-block--img {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 12px rgba(255,46,151,.35)) drop-shadow(0 0 22px rgba(0,240,255,.18));
}
.nav__logo-block.nav__logo-block--img img {
  display: block;
}

/* Hero title + logo masthead row (also kept compatible with legacy .hero__title-row) */
.hero__masthead, .hero__title-row {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  width: 100%;
}
.hero__title-col {
  flex: 1 1 auto;
  min-width: 0;
}

/* Hero WOAH! logo — original small size next to the title */
.hero__logo-wrap, .hero__bg-logo {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 320px;
  /* Inner padding so the 3D rotation + drop-shadows don't get clipped on the right edge */
  padding: 20px;
  box-sizing: border-box;
  /* Push slightly away from the viewport edge */
  margin-right: 1rem;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* Multi-layer animation: dance 3D + fade-in + breathing */
  animation:
    heroLogoDance 6s ease-in-out infinite,
    heroLogoIn 600ms cubic-bezier(.2,.7,.2,1.05) 350ms both,
    heroLogoBreathe 2.4s ease-in-out infinite;
  cursor: pointer;
  pointer-events: auto;
}

/* Override: when logo is acting as the background element, it's HUGE,
   absolutely positioned, semi-transparent, and integrated atmospherically. */
.hero__bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  margin: 0;
  width: min(85vh, 70vw, 1000px);
  height: min(85vh, 70vw, 1000px);
  padding: 0;
  z-index: 1;
  transform-origin: center center;
  opacity: .42;
  filter: blur(.5px) saturate(1.15);
  mix-blend-mode: screen;
}
/* Override the dance keyframes for the bg-logo so it keeps the centering translate */
.hero__bg-logo {
  animation:
    heroBgLogoDance 9s ease-in-out infinite,
    heroLogoIn 800ms cubic-bezier(.2,.7,.2,1.05) 200ms both,
    heroLogoBreathe 2.6s ease-in-out infinite;
}
@keyframes heroBgLogoDance {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  25%      { transform: translate(calc(-50% + 6px), calc(-50% - 12px)) rotate(.8deg) scale(1.01); }
  50%      { transform: translate(calc(-50% - 4px), calc(-50% + 6px)) rotate(-.6deg) scale(1.02); }
  75%      { transform: translate(calc(-50% + 8px), calc(-50% - 8px)) rotate(.4deg) scale(1.005); }
}
.hero__bg-logo:hover {
  opacity: .60;
  filter: blur(0) saturate(1.3);
  transition: opacity .5s ease, filter .5s ease;
}
.hero__logo-img {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 24px rgba(255,46,151,.55))
    drop-shadow(0 0 48px rgba(139,92,246,.45))
    drop-shadow(0 0 80px rgba(0,240,255,.3));
  transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1));
  transition: transform .25s ease, filter .35s ease;
  animation: heroLogoGlowPulse 2.6s ease-in-out infinite;
  will-change: opacity, transform, filter;
}

/* The two stacked logos cycle visibility — the new (holographic) is the default,
   the old (chrome) appears briefly during glitches */
.hero__logo-img--new {
  animation:
    heroLogoGlowPulse 2.6s ease-in-out infinite,
    heroLogoCycleNew 8s steps(1, end) infinite;
}
.hero__logo-img--old {
  /* Slightly different glow color to match the rainbow chrome look */
  filter:
    drop-shadow(0 0 24px rgba(255,255,255,.45))
    drop-shadow(0 0 48px rgba(255,46,151,.35))
    drop-shadow(0 0 80px rgba(0,240,255,.25));
  animation:
    heroLogoCycleOld 8s steps(1, end) infinite,
    heroLogoGlitchOld 8s linear infinite;
  opacity: 0;
}

/* Glitch overlay: scanlines + chromatic aberration burst, only visible during transitions */
.hero__logo-glitch {
  position: absolute;
  inset: -8%;
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background:
    /* Horizontal scanlines */
    repeating-linear-gradient(
      0deg,
      rgba(0, 240, 255, 0.0) 0px,
      rgba(0, 240, 255, 0.0) 2px,
      rgba(0, 240, 255, 0.18) 2px,
      rgba(0, 240, 255, 0.18) 3px
    ),
    /* RGB chromatic split tint */
    linear-gradient(90deg,
      rgba(255, 46, 151, 0.25) 0%,
      rgba(0, 240, 255, 0.25) 100%);
  mix-blend-mode: screen;
  animation: heroLogoGlitchOverlay 8s linear infinite;
}

/* Cycle the NEW (holographic) logo: visible most of the time, hidden during the brief slot
   when the OLD (chrome) shows. 8s total cycle. */
@keyframes heroLogoCycleNew {
  /* 0-50% visible (4s holographic) */
  0%   { opacity: 1; }
  50%  { opacity: 1; }
  /* 50-52% glitch out (160ms) */
  52%  { opacity: 0; }
  /* 52-72% hidden while OLD shows (~1.6s) */
  72%  { opacity: 0; }
  /* 72-74% glitch back in (160ms) */
  74%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes heroLogoCycleOld {
  0%   { opacity: 0; }
  50%  { opacity: 0; }
  /* OLD pops in during the glitch */
  52%  { opacity: 1; }
  72%  { opacity: 1; }
  74%  { opacity: 0; }
  100% { opacity: 0; }
}

/* RGB shift jitter on the OLD logo while it's visible — pure cyberpunk vibe */
@keyframes heroLogoGlitchOld {
  /* Stays calm most of the cycle (when not visible) */
  0%, 50% {
    transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1)) translate(0, 0);
    filter:
      drop-shadow(0 0 24px rgba(255,255,255,.45))
      drop-shadow(0 0 48px rgba(255,46,151,.35))
      drop-shadow(0 0 80px rgba(0,240,255,.25));
  }
  /* In/out glitch transitions: chromatic aberration with offset jitter */
  52% {
    transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1)) translate(-2px, 1px);
    filter:
      drop-shadow(-4px 0 0 rgba(255,46,151,.9))
      drop-shadow( 4px 0 0 rgba(0,240,255,.9))
      drop-shadow(0 0 30px rgba(255,255,255,.7));
  }
  54% {
    transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1)) translate(2px, -2px);
    filter:
      drop-shadow(3px 0 0 rgba(0,240,255,.8))
      drop-shadow(-3px 0 0 rgba(255,46,151,.8))
      drop-shadow(0 0 20px rgba(255,255,255,.6));
  }
  /* Hold steady while visible (54-72%) */
  56%, 70% {
    transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1)) translate(0, 0);
    filter:
      drop-shadow(0 0 24px rgba(255,255,255,.45))
      drop-shadow(0 0 48px rgba(255,46,151,.35))
      drop-shadow(0 0 80px rgba(0,240,255,.25));
  }
  /* Glitch out as it disappears */
  72% {
    transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1)) translate(2px, 0);
    filter:
      drop-shadow(-5px 0 0 rgba(255,46,151,.9))
      drop-shadow( 5px 0 0 rgba(0,240,255,.9))
      drop-shadow(0 0 35px rgba(255,255,255,.8));
  }
  74%, 100% {
    transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) scale(var(--lsc, 1)) translate(0, 0);
    filter:
      drop-shadow(0 0 24px rgba(255,255,255,.45))
      drop-shadow(0 0 48px rgba(255,46,151,.35))
      drop-shadow(0 0 80px rgba(0,240,255,.25));
  }
}

/* Glitch overlay flashes during transitions, invisible the rest of the time */
@keyframes heroLogoGlitchOverlay {
  0%, 49%   { opacity: 0; transform: translateY(0); }
  /* Glitch flash during transition into OLD */
  50%       { opacity: .85; transform: translateY(-3px); }
  51%       { opacity: .4;  transform: translateY(2px); }
  52%       { opacity: .85; transform: translateY(-1px); }
  53%       { opacity: 0;   transform: translateY(0); }
  /* Brief micro-glitch in the middle of the chrome show */
  60%       { opacity: 0; }
  61%       { opacity: .3; }
  62%       { opacity: 0; }
  /* Glitch flash during transition back to NEW */
  69%       { opacity: 0; }
  70%       { opacity: .85; transform: translateY(2px); }
  71%       { opacity: .4;  transform: translateY(-2px); }
  72%       { opacity: .85; transform: translateY(1px); }
  73%       { opacity: 0;   transform: translateY(0); }
  100%      { opacity: 0; }
}
.hero__logo-halo {
  position: absolute;
  inset: -8%;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255,46,151,.65),
    rgba(0,240,255,.65),
    rgba(139,92,246,.65),
    rgba(255,46,151,.65)
  );
  filter: blur(36px);
  opacity: .6;
  animation:
    heroLogoHalo 6s linear infinite,
    heroLogoHaloPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
.hero__logo-halo::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,10,20,.85) 0%, rgba(10,10,20,0) 70%);
}

/* === SUPER SAIYAN ENERGY AURA — pure CSS ===
   Goku-style: concentric ki spheres expanding outward as flame-like waves,
   not geometric spokes. No "clock-face" feel. */
.hero__logo-wrap::before,
.hero__logo-wrap::after {
  content: '';
  position: absolute;
  inset: -2%;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  /* Soft turbulent ki cloud — radial gradient with multiple stops to mimic
     the layered glow of a Saiyan aura */
  background:
    radial-gradient(circle at 50% 55%,
      rgba(255, 46, 151, 0.0)   0%,
      rgba(255, 46, 151, 0.55) 38%,
      rgba(139, 92, 246, 0.45) 52%,
      rgba(0, 240, 255, 0.30)  68%,
      rgba(0, 240, 255, 0.0)   85%
    );
  filter: blur(18px);
  opacity: 0;
  animation: heroLogoAuraWave 2.4s ease-out infinite;
}
.hero__logo-wrap::after {
  /* Second wave offset in time — creates a continuous "breathing flame" effect
     where one wave is going out as the next is starting */
  animation: heroLogoAuraWave 2.4s ease-out infinite;
  animation-delay: 1.2s;
  filter: blur(28px);
}

.hero__logo-wrap:hover {
  --lsc: 1.06;
}
.hero__logo-wrap:hover .hero__logo-img {
  filter:
    drop-shadow(0 0 32px rgba(255,46,151,.85))
    drop-shadow(0 0 60px rgba(139,92,246,.65))
    drop-shadow(0 0 100px rgba(0,240,255,.45));
}
.hero__logo-wrap:hover .hero__logo-halo {
  opacity: .9;
  filter: blur(40px);
}

/* The logo "dances" — slight 3D rotation in X & Y while gently floating up/down. */
@keyframes heroLogoDance {
  0%   { transform: translateY(-6px) rotateX( 4deg) rotateY(-6deg) rotateZ(-1deg); }
  25%  { transform: translateY( 4px) rotateX(-3deg) rotateY( 5deg) rotateZ( 1deg); }
  50%  { transform: translateY(-2px) rotateX( 5deg) rotateY( 4deg) rotateZ(-1deg); }
  75%  { transform: translateY( 6px) rotateX(-4deg) rotateY(-5deg) rotateZ( 1deg); }
  100% { transform: translateY(-6px) rotateX( 4deg) rotateY(-6deg) rotateZ(-1deg); }
}

/* Subtle "breathing" — brightness pulse */
@keyframes heroLogoBreathe {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}

/* Initial entrance */
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes heroLogoHalo {
  to { transform: rotate(360deg); }
}

/* Logo image glow intensity pulses with the energy charge rhythm */
@keyframes heroLogoGlowPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 24px rgba(255,46,151,.55))
      drop-shadow(0 0 48px rgba(139,92,246,.45))
      drop-shadow(0 0 80px rgba(0,240,255,.3));
  }
  50% {
    filter:
      drop-shadow(0 0 38px rgba(255,46,151,.9))
      drop-shadow(0 0 72px rgba(139,92,246,.7))
      drop-shadow(0 0 120px rgba(0,240,255,.55));
  }
}

/* Halo intensity pulses with the rhythm of energy charging */
@keyframes heroLogoHaloPulse {
  0%, 100% { opacity: .6;  filter: blur(36px); }
  50%      { opacity: .95; filter: blur(46px); }
}

/* Saiyan ki aura wave — starts small & bright at the logo, expands outward
   and fades, like a sphere of energy radiating out. Two of these run offset. */
@keyframes heroLogoAuraWave {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  18% {
    opacity: 0.95;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Mobile: stack logo above title */
@media (max-width: 760px) {
  .hero__masthead, .hero__title-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
  .hero__title-col {
    order: 2;
    width: 100%;
  }
  .hero__logo-wrap {
    order: 1;
    width: 50vw;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
