/* Kan kırmızısı kronometre */
.blood-stopwatch {
  position: relative;
  margin: 3rem 0 3.5rem;
  padding: 1rem 0 2rem;
  text-align: center;
  user-select: none;
  overflow: hidden;
  width: 100%;
}

.blood-stopwatch__glow {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(100%, 36rem);
  height: 10rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(196, 30, 58, 0.45) 0%,
    rgba(139, 0, 0, 0.2) 50%,
    transparent 75%
  );
  pointer-events: none;
  animation: blood-pulse 3s ease-in-out infinite;
}

@keyframes blood-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.blood-stopwatch__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  padding: 0 0.15rem;
}

.blood-stopwatch__icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}

.blood-stopwatch__icon {
  flex-shrink: 0;
  width: clamp(1.2rem, 4.5vw, 2.4rem);
  height: auto;
  filter: drop-shadow(0 0 6px rgba(196, 30, 58, 0.8));
  animation: blood-icon-sway 3s ease-in-out infinite;
}

.blood-stopwatch__icon--2 {
  animation-delay: 0.6s;
}

.blood-stopwatch__icon--3 {
  animation-delay: 1.2s;
}

@keyframes blood-icon-sway {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(4px) rotate(-4deg);
  }
}

.blood-stopwatch__display {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0 0.25rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
}

.blood-stopwatch__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.blood-stopwatch__label {
  font-size: clamp(0.78rem, 2.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: rgba(196, 30, 58, 0.72);
  text-transform: lowercase;
}

.blood-stopwatch__num {
  font-size: clamp(2.2rem, 12vw, 5rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #c41e3a;
  text-shadow:
    0 0 8px #ff2a3a,
    0 0 22px rgba(196, 30, 58, 0.95),
    0 0 48px rgba(139, 0, 0, 0.7),
    0 3px 0 #6b0010,
    0 6px 0 #4a0008,
    0 9px 14px rgba(0, 0, 0, 0.85),
    2px 14px 0 rgba(139, 0, 0, 0.55),
    4px 22px 0 rgba(92, 0, 0, 0.35),
    6px 30px 4px rgba(60, 0, 0, 0.25);
  animation: blood-throb 2.5s ease-in-out infinite;
}

@keyframes blood-throb {
  0%,
  100% {
    color: #b81830;
    text-shadow:
      0 0 8px #ff2a3a,
      0 0 20px rgba(196, 30, 58, 0.85),
      0 0 40px rgba(139, 0, 0, 0.6),
      0 3px 0 #6b0010,
      0 6px 0 #4a0008,
      0 9px 14px rgba(0, 0, 0, 0.85),
      2px 14px 0 rgba(139, 0, 0, 0.5),
      4px 22px 0 rgba(92, 0, 0, 0.3);
  }
  50% {
    color: #ff3347;
    text-shadow:
      0 0 12px #ff5566,
      0 0 32px rgba(255, 50, 70, 1),
      0 0 60px rgba(196, 30, 58, 0.85),
      0 4px 0 #6b0010,
      0 8px 0 #4a0008,
      0 12px 18px rgba(0, 0, 0, 0.9),
      3px 18px 0 rgba(139, 0, 0, 0.65),
      5px 28px 0 rgba(92, 0, 0, 0.45),
      7px 38px 6px rgba(60, 0, 0, 0.35);
  }
}

.blood-stopwatch__dripbar {
  width: min(100%, 32rem);
  height: 3.5rem;
  margin-top: 0.15rem;
  padding: 0 0.5rem;
}

.blood-stopwatch__dripbar .drip {
  fill: url(#bloodGrad);
  filter: drop-shadow(0 0 4px rgba(196, 30, 58, 0.7));
}

.blood-stopwatch__dripbar .drip--a {
  animation: drip-stretch 2.8s ease-in-out infinite;
  transform-origin: 50% 0%;
}

.blood-stopwatch__dripbar .drip--b {
  animation: drip-stretch 3.2s ease-in-out 0.5s infinite;
  transform-origin: 50% 0%;
}

.blood-stopwatch__dripbar .drip--c {
  animation: drip-stretch 2.5s ease-in-out 1s infinite;
  transform-origin: 50% 0%;
}

.blood-stopwatch__dripbar .drip--d {
  animation: drip-stretch 3.5s ease-in-out 0.3s infinite;
  transform-origin: 50% 0%;
}

.blood-stopwatch__dripbar .drip--e {
  animation: drip-stretch 2.6s ease-in-out 0.8s infinite;
  transform-origin: 50% 0%;
}

.blood-stopwatch__dripbar .fall {
  fill: #8b0000;
  opacity: 0;
  animation: drip-fall 2.4s ease-in infinite;
}

.blood-stopwatch__dripbar .fall--1 {
  animation-delay: 0s;
}

.blood-stopwatch__dripbar .fall--2 {
  animation-delay: 0.8s;
}

.blood-stopwatch__dripbar .fall--3 {
  animation-delay: 1.6s;
}

@keyframes drip-stretch {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.25);
  }
}

@keyframes drip-fall {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10% {
    opacity: 0.95;
  }
  80% {
    opacity: 0.6;
    transform: translateY(28px);
  }
  100% {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* Tablet ve üzeri: tek satır */
@media (min-width: 560px) {
  .blood-stopwatch__display {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    max-width: 36rem;
  }

  .blood-stopwatch__segment {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
  }

  .blood-stopwatch__label {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
}

/* Küçük telefonlar */
@media (max-width: 380px) {
  .blood-stopwatch {
    margin: 1.75rem 0 2rem;
    padding: 0.75rem 0 1.25rem;
  }

  .blood-stopwatch__display {
    gap: 0.85rem 0.5rem;
    max-width: 18rem;
  }

  .blood-stopwatch__num {
    font-size: clamp(1.9rem, 14vw, 2.6rem);
    letter-spacing: 0.02em;
    text-shadow:
      0 0 6px #ff2a3a,
      0 0 16px rgba(196, 30, 58, 0.85),
      0 2px 0 #6b0010,
      0 4px 0 #4a0008,
      0 6px 10px rgba(0, 0, 0, 0.8),
      1px 10px 0 rgba(139, 0, 0, 0.45);
  }

  .blood-stopwatch__label {
    font-size: 0.72rem;
  }

  .blood-stopwatch__dripbar {
    height: 2rem;
    margin-top: 0;
  }

  .blood-stopwatch__glow {
    height: 7rem;
  }
}

@media (max-width: 540px) {
  .blood-stopwatch__dripbar {
    height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blood-stopwatch__glow,
  .blood-stopwatch__icon,
  .blood-stopwatch__num,
  .blood-stopwatch__dripbar .drip,
  .blood-stopwatch__dripbar .fall {
    animation: none;
  }
}
