/* The foil texture and stencil come from the approved transparent Copa lettering. */
.emblem .highlight, .emblem .grid-light, .emblem .entry-glint {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: var(--foil-stencil) center / 100% 100% no-repeat;
  mask: var(--foil-stencil) center / 100% 100% no-repeat;
}
.emblem .highlight {
  transition: opacity 180ms;
  background:
    radial-gradient(ellipse 6% 70% at var(--beam-x, 50%) var(--beam-y, 50%), white 5%, #e2faffbf 38%, transparent 100%),
    radial-gradient(ellipse 13% 88% at calc(var(--beam-x, 50%) + 5%) var(--beam-y, 50%), #1270b968, transparent);
}
.emblem .highlight.webgl { background: none; }
.emblem .highlight canvas { display: block; width: 100%; height: 100%; }
.emblem .grid-light { background: #52e1ff; }
.emblem .grid-light.first { clip-path: polygon(0 0,14% 0,9% 39%,0 40%); }
.emblem .grid-light.last { clip-path: polygon(89% 50%,100% 50%,100% 91%,87% 91%); }
.emblem .entry-glint {
  background: linear-gradient(115deg, transparent 34%, #b7f5ff66 45%, #fff 50%, #e4fbff80 55%, transparent 66%) 0 0 / 48% 100% no-repeat;
}
@media (prefers-reduced-motion:no-preference) {
  .emblem.is-lit .highlight { opacity: .88; }
}
@media (prefers-reduced-motion:reduce) {
  .emblem .highlight, .emblem .grid-light, .emblem .entry-glint, .fold .track-heat { display:none!important; }
}
.track i { transform-origin: left center; }
.race-depth {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  visibility: hidden;
  transform: scale(1.037);
}
.race-depth > picture,
.race-depth > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.race-depth > picture > img {
  object-fit: cover;
  object-position: var(--race-crop, 50% 50%);
}
.race-depth.is-ready { visibility: visible; }
.fold { touch-action: pan-y pinch-zoom; }
.tilt-permission {
  position: absolute;
  z-index: 2;
  top: max(env(safe-area-inset-top), 12px);
  right: max(5%, env(safe-area-inset-right));
  padding: 6px 11px;
  min-height: 40px;
  border: 1px solid #ffffff62;
  border-radius: 5px;
  background: #06263fe0;
  color: white;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.tilt-permission[hidden] { display: none; }
.tilt-permission:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (max-width: 760px) {
  .fold .race-depth {
    grid-area: art;
    grid-column: 1 / -1;
    top: -68.6%;
    bottom: auto;
    height: 263.75%;
    z-index: -1;
    --race-crop: 50% 48%;
    transform: scale(1.065);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fold .race-depth { transform: none; }
}
@media (prefers-reduced-motion:no-preference) {
  .race-depth.is-ready > picture { will-change: transform; }
  /* Additional independent wind on cloud images. The parent picture follows the camera. */
  .clouds-near > img { animation: cloud-wind 20s ease-in-out infinite alternate; }
  .clouds-far > img { animation: cloud-wind 35s ease-in-out -8s infinite alternate-reverse; }
  @keyframes cloud-wind {
    from { transform: translateX(-.6%); }
    to { transform: translateX(.6%); }
  }
}
@media (min-aspect-ratio: 19/10) {
  .race-depth { --race-crop: 50% 15%; }
}
.fold .track-heat {
  position:absolute; pointer-events:none;
  -webkit-mask:radial-gradient(ellipse at center, black 14%, transparent 73%);
  mask:radial-gradient(ellipse at center, black 14%, transparent 73%);
}
