/* Colour tokens — override to re-skin the effect:
   --ink    main text colour (defaults to currentColor)
   --ink-2  primary accent   --ink-3  secondary accent */
:root {
  --ink: currentColor;
  --ink-2: #f0d7d5;
  --ink-3: #de1f1f;
}

/* 31 Holograph — translucent scanline projection with drifting chroma edges */
.fx-hologram {
  position: relative;
  /* font: 600 28px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .12em; */
  color: color-mix(in srgb, var(--ink-3) 72%, var(--ink));
  text-shadow:
    0 0 6px color-mix(in srgb, var(--ink-3) 60%, transparent),
    0 0 22px color-mix(in srgb, var(--ink-3) 45%, transparent);
  isolation: isolate;
  animation: fx-hologram-float 3.8s ease-in-out infinite;
}

.fx-hologram::before,
.fx-hologram::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-hologram::before {
  color: var(--ink-2);
  clip-path: inset(0 0 0% 0);
  opacity: .58;
  animation: fx-hologram-split 2.8s steps(1) infinite;
}

.fx-hologram::after {
  color: transparent;
  background: repeating-linear-gradient(0deg,
      color-mix(in srgb, var(--ink) 70%, transparent) 0 1px,
      transparent 1px 4px);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .48;
  animation: fx-hologram-lines 1.2s linear infinite;
}

@keyframes fx-hologram-float {

  0%,
  100% {
    transform: translateY(2px) skewX(0deg);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-4px) skewX(-3deg);
    filter: brightness(1.35);
  }
}

@keyframes fx-hologram-split {

  0%,
  14%,
  40%,
  72%,
  100% {
    transform: translateX(0);
    opacity: .22;
  }

  15% {
    transform: translateX(-5px);
    opacity: .8;
  }

  17% {
    transform: translateX(4px);
    opacity: .6;
  }

  74% {
    transform: translateX(3px);
    opacity: .7;
  }
}

@keyframes fx-hologram-lines {
  to {
    background-position: 0 12px;
  }
}








/* Le cône de lumière */
.torch {
  position: absolute;
  left: 50%;
  bottom: -380px;
  /* la source est sous le chrono */
  width: 1100px;
  height: 760px;
  transform: translateX(-50%);
  z-index: 0;
  /* au-dessus du fond du chrono, sous les chiffres */
  pointer-events: none;
  mix-blend-mode: screen;
  /* la lumière s'ajoute à ce qu'il y a derrière */

  background:
    /* point chaud à la source de la lampe */
    radial-gradient(ellipse 180px 90px at 50% 100%,
      #f1ebeb 0%,
      #f29898 40%,
      transparent 100%),
    /* le cône : 40° d'ouverture, bords adoucis */
    conic-gradient(from -45deg at 50% 100%,
      transparent 0deg,
      #f2787887 12deg,
      #f2787887 78deg,
      transparent 90deg);

  /* la lumière s'éteint en montant */
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 95%);
  mask-image: linear-gradient(to top, #000 15%, transparent 95%);

  filter: blur(14px);
  animation: torch-flicker 4s ease-in-out infinite;
}


.points {
  position: relative;
  z-index: 1;
}

/* Reflet de la lumière sur les chiffres */
.number {
  text-shadow: 0 -3px 12px #de1f1f;
}

@keyframes torch-flicker {

  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: 0.92;
  }

  50% {
    opacity: 0.78;
  }

  55% {
    opacity: 0.96;
  }
}

