/* Vector Hoops — viral remaster surface (landing + win share)
   Court-night energy: asphalt field, Okabe accents, brand-first hero.
   Extends existing tokens from hoops.css / shell.css. */

:root {
  --vh-asphalt: #0b1018;
  --vh-asphalt-2: #141c28;
  --vh-court-line: rgba(240, 228, 66, 0.55);
  --vh-spark: #56b4e9;
  --vh-heat: #d55e00;
  --vh-mark: #f0e442;
}

/* ----- Landing hero: one composition ----- */
.landing-hero-band.vh-viral-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 20%, rgba(86, 180, 233, 0.22), transparent 55%),
    radial-gradient(90% 80% at 12% 90%, rgba(213, 94, 0, 0.18), transparent 50%),
    linear-gradient(165deg, var(--vh-asphalt) 0%, var(--vh-asphalt-2) 48%, #0a0e14 100%);
  border-bottom: 2px solid #111;
  padding-top: clamp(28px, 5vw, 56px) !important;
  padding-bottom: clamp(36px, 6vw, 64px) !important;
  color: #f4f6f8;
}

.landing-hero-band.vh-viral-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.landing-hero-band.vh-viral-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40%;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 228, 66, 0.12), transparent 60%);
}

.vh-viral-hero .landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--page-gutter, 16px);
}

@media (max-width: 860px) {
  .vh-viral-hero .landing-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.vh-viral-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.vh-viral-brand__v { color: #fff; }
.vh-viral-brand__h {
  color: var(--vh-heat);
  text-shadow: 0 0 28px rgba(213, 94, 0, 0.35);
}

.vh-viral-hero .landing-hero__eyebrow {
  color: rgba(244, 246, 248, 0.62) !important;
  margin-bottom: 8px !important;
}

.vh-viral-hero .landing-hero__title {
  color: #fff !important;
  font-size: clamp(34px, 5.6vw, 58px) !important;
  margin: 0 0 14px !important;
}

.vh-viral-hero .landing-hero__title-accent {
  color: var(--vh-mark) !important;
  text-decoration-color: var(--vh-heat) !important;
}

.vh-viral-hero .landing-tagline {
  color: rgba(244, 246, 248, 0.78) !important;
  max-width: 36ch !important;
  margin: 0 0 18px !important;
}

.vh-viral-hero .landing-puzzle-line {
  color: rgba(244, 246, 248, 0.55) !important;
  margin: 0 0 20px !important;
}

.vh-viral-hero .landing-puzzle-line b { color: var(--vh-mark); }

.vh-viral-hero .landing-favorite__label { color: rgba(244, 246, 248, 0.7); }
.vh-viral-hero .landing-favorite { margin: 0 0 18px !important; }

.vh-viral-hero .vh-btn--primary {
  background: var(--vh-mark);
  color: #111;
  border-color: #111;
}
.vh-viral-hero .vh-btn--accent {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.vh-viral-hero .vh-btn--accent:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Dominant equation plane — not a floating media card */
.vh-viral-eq {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  min-height: clamp(200px, 28vw, 280px);
  padding: 28px 18px;
  border: 0;
  background: transparent;
}

.vh-viral-eq__halo {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 180, 233, 0.2), transparent 68%);
  animation: vh-halo-pulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

.vh-viral-eq__tile {
  position: relative;
  width: clamp(64px, 12vw, 92px);
  height: clamp(84px, 16vw, 118px);
  border: 2.5px solid #111;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  box-shadow: 5px 5px 0 #000;
  animation: vh-tile-float 5.2s ease-in-out infinite;
}

.vh-viral-eq__tile--a {
  background: #0d3a5c;
  color: var(--vh-spark);
  border-color: var(--vh-spark);
  animation-delay: 0s;
}
.vh-viral-eq__tile--b {
  background: #4a2208;
  color: #ffb38a;
  border-color: var(--vh-heat);
  animation-delay: 0.35s;
}
.vh-viral-eq__tile--target {
  width: clamp(78px, 14vw, 112px);
  background: #111;
  color: #fff;
  border-color: var(--vh-mark);
  box-shadow: 5px 5px 0 var(--vh-heat);
  animation: vh-target-pulse 2.8s ease-in-out infinite;
}

.vh-viral-eq__op {
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.85);
}

.vh-viral-eq__line {
  width: 48%;
  height: 5px;
  background: var(--vh-mark);
  border-radius: 2px;
  display: block;
}

.vh-viral-eq__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(244, 246, 248, 0.5);
  letter-spacing: 0.04em;
}

@keyframes vh-tile-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes vh-target-pulse {
  0%, 100% { transform: scale(1); box-shadow: 5px 5px 0 var(--vh-heat); }
  50% { transform: scale(1.04); box-shadow: 7px 7px 0 var(--vh-heat); }
}
@keyframes vh-halo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .vh-viral-eq__tile,
  .vh-viral-eq__tile--target,
  .vh-viral-eq__halo,
  .vh-reveal.is-win-flash::before {
    animation: none !important;
  }
}

/* City tour — slightly taller spectacle band */
#city-intro.city-intro {
  height: clamp(360px, 48vh, 520px) !important;
  min-height: 360px !important;
}

/* Modes label pop */
.landing-section__label--heat {
  color: var(--vh-heat) !important;
  letter-spacing: 0.16em !important;
}

/* Sticky CTA boost */
.sticky-cta .vh-btn--primary {
  background: var(--vh-mark);
  color: #111;
}

/* ----- Win / share moment ----- */
.vh-reveal {
  position: relative;
  overflow: hidden;
}
.vh-reveal.is-win-flash::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgba(240, 228, 66, 0.35), transparent 40%);
  animation: vh-win-spin 1.1s ease-out forwards;
  pointer-events: none;
}
@keyframes vh-win-spin {
  from { opacity: 0.9; transform: rotate(0deg) scale(0.8); }
  to { opacity: 0; transform: rotate(180deg) scale(1.3); }
}

.vh-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 228, 66, 0.18);
  border: 1px solid rgba(240, 228, 66, 0.45);
  color: var(--vh-mark);
  font-weight: 800;
}
.vh-streak-chip[hidden] { display: none !important; }

.vh-mode-rails {
  background: var(--vh-asphalt-2, #141c28);
  border-bottom: 2px solid #111;
}
.vh-mode-rails__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--page-gutter, 16px);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vh-mode-rails__inner::-webkit-scrollbar { display: none; }
.vh-mode-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 #111;
}
.vh-mode-pill.is-hot {
  background: #F0E442;
}
.vh-mode-pill__hot {
  background: #111;
  color: #F0E442;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 9px;
}
.vh-proof-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px var(--page-gutter, 16px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vh-proof-strip b { color: var(--vh-mark); }

.vh-heat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.vh-heat[hidden] { display: none !important; }
.vh-heat__label {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
}
.vh-heat__dots {
  display: flex;
  gap: 3px;
}
.vh-heat__dots i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  display: block;
}
.vh-heat__dots i.is-played { background: rgba(86,180,233,0.55); }
.vh-heat__dots i.is-won { background: #F0E442; }
.vh-heat__dots i.is-today { outline: 1px solid #fff; outline-offset: 1px; }

/* confetti burst on win */
.vh-reveal.is-win-flash .vh-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.vh-confetti i {
  position: absolute;
  top: -8px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: vh-confetti-fall 1.15s ease-in forwards;
}
@keyframes vh-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(220px) rotate(540deg); opacity: 0; }
}

.vh-share-card-preview {
  display: none;
}
