/* =========================
   Stream card hover effect
   index.html の Streamカード用
========================= */

.stream-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stream-card::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 106, 168, .20), transparent 24%),
    repeating-linear-gradient(0deg, rgba(244,239,231,.06) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 74% 70%, rgba(110, 168, 255, .15), transparent 32%);
  opacity: 0;
  transform: translateY(10px) scale(1.04);
  filter: blur(3px);
  transition:
    opacity .32s ease,
    transform .5s ease,
    filter .5s ease;
  pointer-events: none;
}

.stream-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(9, 9, 9, .18), rgba(9, 9, 9, .70));
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.stream-card:hover {
  border-color: rgba(110, 168, 255, .52);
}

.stream-card:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(1px);
}

.stream-card:hover::after {
  opacity: 1;
}

.stream-card > * {
  position: relative;
  z-index: 2;
}


/* =========================
   Stream page loader
   stream.html 用
========================= */

.stream-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(244,239,231,.035) 0 1px, transparent 1px 10px),
    radial-gradient(circle at 50% 50%, rgba(110, 168, 255, .13), transparent 34%),
    var(--bg);
  overflow: hidden;
  animation: streamLoaderExit .85s ease forwards;
  animation-delay: 1.8s;
}

.stream-loader-mark {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: clamp(66px, 11vw, 140px);
  font-weight: 900;
  letter-spacing: -0.09em;
}

.stream-loader-mark span {
  display: inline-block;
  color: var(--ink);
  text-shadow: 0 0 38px rgba(110, 168, 255, .22);
  animation: streamLetterSignal 1.55s ease-in-out infinite;
}

.stream-loader-mark span:nth-child(1) {
  color: var(--blue);
}

.stream-loader-mark span:nth-child(2) {
  animation-delay: .1s;
}

.stream-loader-mark span:nth-child(3) {
  color: var(--pink);
  animation-delay: .2s;
}

.stream-loader-mark span:nth-child(4) {
  animation-delay: .3s;
}

.stream-signal {
  position: absolute;
  display: grid;
  place-items: center;
  margin-top: 210px;
}

.stream-signal span {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(110, 168, 255, .55);
  border-radius: 999px;
  opacity: 0;
  animation: streamSignal 1.8s ease-out infinite;
}

.stream-signal span:nth-child(2) {
  animation-delay: .28s;
  border-color: rgba(255, 106, 168, .50);
}

.stream-signal span:nth-child(3) {
  animation-delay: .56s;
  border-color: rgba(216, 255, 95, .45);
}

.stream-loader p {
  position: absolute;
  margin-top: 292px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  opacity: .72;
}

@keyframes streamLetterSignal {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-7px);
    opacity: .72;
  }
}

@keyframes streamSignal {
  0% {
    transform: scale(.3);
    opacity: .7;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes streamLoaderExit {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
