@view-transition {
  navigation: auto;
}

@font-face {
  font-family: "Telly Trace";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

[data-threshold-role="telly"] [data-art-score] {
  view-transition-name: telly-glyphica-scoreline;
}

[data-threshold-role="telly"] [data-threshold-route] > span {
  view-transition-name: telly-glyphica-name;
}

[data-threshold-role="glyphica"][data-entry="telly"] [data-threshold-arrival] {
  view-transition-name: telly-glyphica-scoreline;
}

[data-threshold-role="glyphica"][data-entry="telly"] [data-threshold-name-carry] {
  view-transition-name: telly-glyphica-name;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1ms;
  animation-fill-mode: both;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: threshold-root-release;
}

::view-transition-new(root) {
  animation-name: threshold-root-receive;
}

::view-transition-group(telly-glyphica-scoreline) {
  z-index: 100;
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(telly-glyphica-scoreline) {
  animation: threshold-scoreline-old 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  mix-blend-mode: screen;
}

::view-transition-new(telly-glyphica-scoreline) {
  animation: threshold-scoreline-new 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  mix-blend-mode: screen;
}

::view-transition-group(telly-glyphica-name) {
  z-index: 101;
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(telly-glyphica-name) {
  animation: threshold-name-old 900ms ease both;
}

::view-transition-new(telly-glyphica-name) {
  animation: threshold-name-new 900ms ease both;
}

@keyframes threshold-root-release {
  to { opacity: 0; }
}

@keyframes threshold-root-receive {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes threshold-scoreline-old {
  0% {
    opacity: 1;
    filter: saturate(1);
  }
  68% {
    opacity: 0.92;
    filter: saturate(1.22) contrast(1.08);
  }
  100% {
    opacity: 0.08;
    filter: saturate(1.4) contrast(1.16);
  }
}

@keyframes threshold-scoreline-new {
  0% { opacity: 0; }
  54% { opacity: 0.08; }
  100% { opacity: 1; }
}

@keyframes threshold-name-old {
  0%, 48% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes threshold-name-new {
  0%, 38% { opacity: 0; }
  100% { opacity: 1; }
}

.threshold-name-carry {
  position: fixed;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(8.2rem, 42vw);
  height: 2.75rem;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  color: rgba(240, 236, 223, 0.92);
  font-family: "Telly Trace", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.64rem, 1.2vw, 0.76rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

[data-entry="telly"] .threshold-name-carry {
  opacity: 1;
  animation: threshold-name-received 920ms cubic-bezier(0.16, 1, 0.3, 1) 680ms both;
}

@keyframes threshold-name-received {
  0%, 34% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.12em;
  }
  100% {
    opacity: 0;
    filter: blur(3px);
    letter-spacing: 0.34em;
  }
}

.threshold-arrival-mark {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 2px;
  height: min(68vh, 38rem);
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(85, 231, 238, 0.72) 28%,
      rgba(240, 236, 223, 0.96) 50%,
      rgba(239, 57, 125, 0.72) 72%,
      transparent
    );
  box-shadow:
    0 0 1.8rem rgba(85, 231, 238, 0.18),
    0 0 3.2rem rgba(239, 57, 125, 0.12);
  transform: translate(-50%, -50%);
  transform-origin: center;
  overflow: visible;
}

[data-entry="telly"] .threshold-arrival-mark {
  opacity: 1;
  animation: threshold-first-breath 1480ms cubic-bezier(0.16, 1, 0.3, 1) 620ms both;
}

.threshold-arrival-mark__ring {
  --threshold-ring-start: -8deg;
  --threshold-ring-end: 17deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(16vmin, 8rem);
  height: min(12vmin, 6rem);
  border: 1px solid rgba(240, 236, 223, 0.34);
  border-radius: 46% 54% 61% 39% / 58% 43% 57% 42%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.08) rotate(-8deg);
}

.threshold-arrival-mark__ring--one {
  border-color: rgba(85, 231, 238, 0.48);
}

.threshold-arrival-mark__ring--two {
  --threshold-ring-start: 11deg;
  --threshold-ring-end: -13deg;
  border-color: rgba(239, 57, 125, 0.44);
  border-radius: 58% 42% 49% 51% / 43% 62% 38% 57%;
  transform: translate(-50%, -50%) scale(0.08) rotate(11deg);
}

.threshold-arrival-mark__ring--three {
  --threshold-ring-start: -19deg;
  --threshold-ring-end: 9deg;
  border-color: rgba(233, 255, 87, 0.38);
  border-radius: 41% 59% 54% 46% / 61% 39% 58% 42%;
  transform: translate(-50%, -50%) scale(0.08) rotate(-19deg);
}

[data-entry="telly"] .threshold-arrival-mark__ring {
  animation: threshold-ring-breath 1320ms cubic-bezier(0.16, 1, 0.3, 1) var(--threshold-ring-delay, 700ms) both;
}

[data-entry="telly"] .threshold-arrival-mark__ring--two {
  --threshold-ring-delay: 770ms;
}

[data-entry="telly"] .threshold-arrival-mark__ring--three {
  --threshold-ring-delay: 850ms;
}

@keyframes threshold-first-breath {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%);
  }
  34% {
    opacity: 0.92;
    filter: blur(0.45px);
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    filter: blur(9px);
    transform: translate(-50%, -50%);
  }
}

@keyframes threshold-ring-breath {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08) rotate(var(--threshold-ring-start));
  }
  18% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.6) rotate(var(--threshold-ring-end));
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(telly-glyphica-scoreline),
  ::view-transition-group(telly-glyphica-name),
  ::view-transition-old(telly-glyphica-scoreline),
  ::view-transition-new(telly-glyphica-scoreline),
  ::view-transition-old(telly-glyphica-name),
  ::view-transition-new(telly-glyphica-name) {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }

  [data-entry="telly"] .threshold-arrival-mark,
  [data-entry="telly"] .threshold-arrival-mark__ring,
  [data-entry="telly"] .threshold-name-carry {
    animation: none !important;
  }

  [data-entry="telly"] .threshold-arrival-mark {
    opacity: 0.48;
  }

  [data-entry="telly"] .threshold-arrival-mark__ring {
    display: none;
  }

  [data-entry="telly"] .threshold-name-carry {
    opacity: 0;
  }
}
