/* YVR Radar Deck — map-first homepage hero (no title-screen overlay stack). */

.home-yvr-radar-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.8vw, 1.15rem);
  width: min(1220px, calc(100% - clamp(1rem, 3vw, 2rem)));
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  padding: clamp(0.85rem, 2vw, 1.35rem);
  border: 3px solid rgba(57, 255, 20, 0.65);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 88%, rgba(87, 243, 255, 0.12), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(255, 79, 216, 0.1), transparent 32%),
    linear-gradient(165deg, #04060f 0%, #07111f 42%, #020308 100%);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.85),
    0 24px 64px rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(57, 255, 20, 0.06);
  scroll-margin-top: calc(var(--se-header-height, 72px) + 1rem);
}

.home-yvr-radar-deck__mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.home-yvr-radar-deck__kicker {
  margin: 0;
  color: #57f3ff;
  font-size: clamp(0.48rem, 1vw, 0.68rem);
  letter-spacing: 0.12em;
}

.home-yvr-radar-deck__title {
  margin: 0;
  color: #ffff66;
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-shadow:
    0.05em 0.05em 0 #ff4fd8,
    -0.03em -0.03em 0 #57f3ff,
    0 0 18px rgba(255, 255, 102, 0.35);
}

.home-yvr-radar-deck__pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(0.55rem, 1.2vw, 0.85rem) clamp(0.65rem, 1.5vw, 1rem);
  text-align: center;
  border: 2px solid rgba(255, 79, 216, 0.35);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.08), rgba(87, 243, 255, 0.06)),
    rgba(2, 8, 18, 0.78);
  box-shadow:
    inset 0 0 24px rgba(87, 243, 255, 0.06),
    0 0 20px rgba(255, 79, 216, 0.08);
}

.home-yvr-radar-deck__pitch-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin: 0;
}

.home-yvr-radar-deck__pitch-tag {
  padding: 0.2rem 0.42rem;
  border: 1px solid rgba(87, 243, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 8, 16, 0.55);
  color: rgba(210, 240, 255, 0.92);
  font-size: clamp(0.42rem, 0.88vw, 0.58rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.home-yvr-radar-deck__pitch-tag--accent {
  color: #ffe66d;
  border-color: rgba(255, 230, 109, 0.45);
  background: rgba(255, 230, 109, 0.08);
  box-shadow: 0 0 12px rgba(255, 230, 109, 0.12);
}

.home-yvr-radar-deck__pitch-sep {
  color: rgba(255, 79, 216, 0.65);
  font-size: clamp(0.4rem, 0.82vw, 0.52rem);
}

.home-yvr-radar-deck__pitch-lead {
  margin: 0;
  max-width: 42rem;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: clamp(0.72rem, 1.15vw, 0.92rem);
  line-height: 1.5;
  color: rgba(232, 247, 255, 0.92);
}

.home-yvr-radar-deck__pitch-sub {
  margin: 0;
  color: rgba(150, 190, 180, 0.72);
  font-size: clamp(0.38rem, 0.78vw, 0.48rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* —— Radar unit (the map IS the hero) —— */
.home-yvr-radar-deck__radar-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.home-yvr-radar-deck__unit-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  width: 100%;
  max-width: min(92vw, 680px);
}

.home-yvr-radar-deck__unit-badge {
  padding: 0.28rem 0.55rem;
  border: 2px solid rgba(255, 79, 216, 0.55);
  border-radius: 4px;
  background: rgba(255, 79, 216, 0.12);
  color: #ff4fd8;
  font-size: clamp(0.42rem, 0.9vw, 0.55rem);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(255, 79, 216, 0.45);
}

.home-yvr-radar-deck__unit-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(180, 230, 220, 0.85);
  font-size: clamp(0.4rem, 0.85vw, 0.52rem);
  letter-spacing: 0.08em;
}

.home-yvr-radar-deck__unit-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.85);
  animation: homeYvrRadarPulse 1.4s ease-in-out infinite;
}

@keyframes homeYvrRadarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.home-yvr-radar-deck__bezel {
  position: relative;
  width: min(100%, 680px);
  padding: clamp(0.65rem, 1.5vw, 1rem);
  border-radius: 20px;
  border: 4px solid #1a1e28;
  background:
    linear-gradient(145deg, #2a3040 0%, #12161e 45%, #080a10 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 24px rgba(0, 0, 0, 0.75),
    6px 8px 0 rgba(255, 79, 216, 0.35),
    0 0 32px rgba(87, 243, 255, 0.12);
}

.home-yvr-radar-deck__bezel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  border: 1px solid rgba(87, 243, 255, 0.15);
  pointer-events: none;
}

.home-yvr-radar-deck__crt-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(52vh, 520px);
  min-height: 220px;
  margin: 0 auto;
}

.home-yvr-radar-deck__map-wrap {
  position: absolute;
  inset: 7%;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(57, 255, 20, 0.55);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(57, 255, 20, 0.15);
  background: #020610;
  min-height: 180px;
}

.home-yvr-radar-deck__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 180px;
}

.home-yvr-radar-deck__map.is-map-error::after {
  content: attr(data-map-error);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  text-align: center;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: clamp(0.38rem, 0.75vw, 0.5rem);
  letter-spacing: 0.06em;
  color: rgba(255, 230, 109, 0.9);
  background: rgba(2, 6, 10, 0.88);
  pointer-events: none;
}

.home-yvr-radar-deck__map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  background: #020610;
  cursor: grab;
}

.home-yvr-radar-deck__map .leaflet-container:active {
  cursor: grabbing;
}

.home-yvr-radar-deck__map .leaflet-control-zoom {
  border: 1px solid rgba(87, 243, 255, 0.4);
  background: rgba(2, 6, 10, 0.88);
}

.home-yvr-radar-deck__map .leaflet-top.leaflet-left {
  top: 0.35rem;
  left: auto;
  right: 0.35rem;
}

.home-yvr-radar-deck__grid {
  position: absolute;
  inset: 7%;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(rgba(57, 255, 20, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.12) 1px, transparent 1px);
  background-size: 18% 18%;
  opacity: 0.45;
  mask-image: radial-gradient(circle, black 62%, transparent 70%);
}

.home-yvr-radar-deck__sweep {
  position: absolute;
  inset: 7%;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(57, 255, 20, 0.22) 28deg,
    rgba(87, 243, 255, 0.08) 32deg,
    transparent 56deg
  );
  animation: homeYvrRadarSweep 5s linear infinite;
  mask-image: radial-gradient(circle, black 64%, transparent 70%);
}

@keyframes homeYvrRadarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.home-yvr-radar-deck__scan {
  position: absolute;
  inset: 7%;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: homeYvrRadarScan 6s linear infinite;
}

@keyframes homeYvrRadarScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.home-yvr-radar-deck__ring-label {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 5;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(87, 243, 255, 0.3);
  background: rgba(2, 6, 10, 0.82);
  font-size: clamp(0.36rem, 0.72vw, 0.48rem);
  letter-spacing: 0.08em;
  color: rgba(180, 230, 220, 0.88);
  pointer-events: none;
}

.home-yvr-radar-deck__knobs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.home-yvr-radar-deck__knobs span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #333;
  background: radial-gradient(circle at 30% 30%, #666, #111);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.8);
}

.home-yvr-radar-deck__knobs span:nth-child(1) { border-color: rgba(255, 79, 216, 0.55); }
.home-yvr-radar-deck__knobs span:nth-child(2) { border-color: rgba(57, 255, 20, 0.55); }
.home-yvr-radar-deck__knobs span:nth-child(3) { border-color: rgba(87, 243, 255, 0.55); }

.home-yvr-radar-deck__hint {
  margin: 0;
  color: rgba(150, 190, 180, 0.72);
  font-size: clamp(0.38rem, 0.78vw, 0.5rem);
  letter-spacing: 0.08em;
  text-align: center;
}

.home-yvr-radar-deck__wander {
  position: absolute;
  left: 50%;
  top: 14%;
  z-index: 6;
  transform: translateX(-50%);
  width: min(88%, 280px);
  padding: 0.45rem 0.55rem;
  border: 2px solid rgba(255, 230, 109, 0.65);
  border-radius: 6px;
  background: rgba(2, 6, 10, 0.92);
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 230, 109, 0.15);
  pointer-events: auto;
}

.home-yvr-radar-deck__wander-kicker {
  margin: 0 0 0.25rem;
  color: #ffe66d;
  font-size: clamp(0.42rem, 0.85vw, 0.55rem);
  letter-spacing: 0.1em;
}

.home-yvr-radar-deck__wander-body {
  margin: 0 0 0.4rem;
  color: rgba(200, 240, 230, 0.88);
  font-size: clamp(0.38rem, 0.75vw, 0.5rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.home-yvr-radar-deck__wander-dismiss {
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 2px solid rgba(57, 255, 20, 0.55);
  border-radius: 4px;
  background: rgba(57, 255, 20, 0.12);
  color: #39ff14;
  font-size: clamp(0.38rem, 0.75vw, 0.48rem);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.home-yvr-radar-deck__wander-dismiss:hover,
.home-yvr-radar-deck__wander-dismiss:focus-visible {
  background: rgba(57, 255, 20, 0.22);
}

.home-yvr-radar-deck__map-wrap.is-discover .home-yvr-leaflet-pin span {
  animation: homeYvrPinDiscover 1.6s ease-in-out infinite;
}

.home-yvr-radar-deck__map-wrap.is-loading .home-yvr-radar-deck__ring-label {
  color: #ffb347;
  text-shadow: 0 0 10px rgba(255, 179, 71, 0.65);
  animation: homeYvrRingLive 0.85s ease-in-out infinite;
}

.home-yvr-radar-deck__map-wrap.is-loading .home-yvr-radar-deck__sweep {
  opacity: 0.45;
  animation-duration: 2.2s;
}

.home-yvr-radar-deck__map-wrap.is-listening .home-yvr-radar-deck__ring-label {
  color: #39ff14;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.65);
  animation: homeYvrRingLive 1.1s ease-in-out infinite;
}

.home-yvr-radar-deck__map-wrap.is-listening .home-yvr-radar-deck__sweep {
  opacity: 0.55;
}

@keyframes homeYvrRingLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.home-yvr-leaflet-pin--anchor span {
  box-shadow: 0 0 10px currentColor, 0 0 18px rgba(87, 243, 255, 0.35);
}

@keyframes homeYvrPinDiscover {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px currentColor; }
  50% { transform: scale(1.35); box-shadow: 0 0 16px currentColor, 0 0 24px currentColor; }
}

/* —— Deck output (single column under radar) —— */
.home-yvr-radar-deck__deck {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1vw, 0.65rem);
  width: 100%;
  max-width: min(100%, 680px);
  margin: 0 auto;
}

.home-yvr-radar-deck__deck-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.home-yvr-radar-deck__deck-badge {
  padding: 0.24rem 0.5rem;
  border: 2px solid rgba(57, 255, 20, 0.5);
  border-radius: 4px;
  background: rgba(57, 255, 20, 0.1);
  color: #39ff14;
  font-size: clamp(0.4rem, 0.85vw, 0.52rem);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.home-yvr-radar-deck__deck-status {
  color: rgba(180, 230, 220, 0.78);
  font-size: clamp(0.38rem, 0.78vw, 0.48rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.home-yvr-radar-deck__rack {
  min-width: 0;
  padding: clamp(0.35rem, 0.8vw, 0.5rem);
  border-radius: 12px;
  border: 1px solid rgba(87, 243, 255, 0.28);
  background: rgba(2, 8, 18, 0.55);
}

.home-yvr-radar-deck__deck-foot {
  margin: 0;
  text-align: center;
}

.home-yvr-radar-deck__work-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  color: rgba(180, 230, 220, 0.82);
  font-size: clamp(0.4rem, 0.82vw, 0.52rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(87, 243, 255, 0.35);
}

.home-yvr-radar-deck__work-link:hover,
.home-yvr-radar-deck__work-link:focus-visible {
  color: #57f3ff;
  border-bottom-color: #57f3ff;
}

/* Radar deck start animation (arcade-start.js — optional elsewhere) */
.home-yvr-radar-deck.is-starting {
  animation: homeYvrRadarCoin 900ms steps(4, end) 1;
}

.home-yvr-radar-deck.is-signal-locking .home-yvr-radar-deck__sweep {
  animation-duration: 1.2s;
}

@keyframes homeYvrRadarCoin {
  0%, 100% { filter: none; }
  25% { filter: brightness(1.15); }
  50% { filter: brightness(0.92); }
  75% { filter: brightness(1.08); }
}

@media (max-width: 820px) {
  .home-yvr-radar-deck__crt-ring {
    max-height: min(46vh, 380px);
  }
}

@media (max-width: 520px) {
  .home-yvr-radar-deck {
    padding: 0.75rem;
  }

  .home-yvr-radar-deck__title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .home-yvr-radar-deck__crt-ring {
    max-height: min(42vh, 320px);
  }

  .home-yvr-radar-deck__map-wrap {
    inset: 6%;
  }

  .home-yvr-radar-deck__grid,
  .home-yvr-radar-deck__sweep,
  .home-yvr-radar-deck__scan {
    inset: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-yvr-radar-deck__sweep,
  .home-yvr-radar-deck__scan,
  .home-yvr-radar-deck__unit-status::before,
  .home-yvr-radar-deck.is-starting,
  .home-yvr-radar-deck__map-wrap.is-discover .home-yvr-leaflet-pin span,
  .home-yvr-radar-deck__map-wrap.is-listening .home-yvr-radar-deck__ring-label,
  .home-yvr-radar-deck__map-wrap.is-loading .home-yvr-radar-deck__ring-label,
  .home-yvr-radar-deck__map-wrap.is-listening .home-yvr-radar-deck__sweep {
    animation: none !important;
  }

  .home-yvr-radar-deck__sweep,
  .home-yvr-radar-deck__scan {
    opacity: 0.22;
  }
}
