/* HAMBURG.GAMES THREE CINEMA V13 */
.hg-cinema-three {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(.2,.72,.2,1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 18%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 18%, #000 42%, #000 100%);
}

.hg-cinema-launch .hg-cinema-wash { z-index: 2; }
.hg-cinema-launch .hg-cinema-lockup { z-index: 4; }
.hg-cinema-launch .hg-cinema-skip { z-index: 5; }
.hg-cinema-launch .hg-cinema-progress { z-index: 6; }
.hg-cinema-launch .hg-cinema-shot,
.hg-cinema-launch .hg-cinema-progress i { animation-duration: 7.8s; }

.hg-cinema-launch[data-three="ready"] .hg-cinema-three {
  opacity: 1;
}

.hg-cinema-three-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(.98) contrast(1.07) drop-shadow(0 28px 42px rgba(0,0,0,.32));
}

.hg-cinema-launch[data-three="ready"] .hg-cinema-shot-heroes {
  opacity: 0 !important;
}

.hg-cinema-launch[data-three="ready"] .hg-cinema-shot-dock {
  opacity: .72;
  filter: saturate(.72) contrast(1.08) brightness(.72);
}

.hg-cinema-launch[data-three="ready"] .hg-cinema-wash {
  background:
    linear-gradient(90deg, rgba(8,10,14,.88) 0%, rgba(8,10,14,.68) 30%, rgba(8,10,14,.04) 62%, rgba(227,6,19,.12) 100%),
    linear-gradient(0deg, rgba(8,10,14,.58), transparent 44%);
}

.hg-cinema-language {
  position: absolute;
  z-index: 12;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(248,245,239,.3);
  border-radius: 999px;
  background: rgba(8,10,14,.58);
  backdrop-filter: blur(16px);
}

.hg-cinema-language button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248,245,239,.7);
  font: 800 12px/1 system-ui, sans-serif;
  letter-spacing: .1em;
  cursor: pointer;
}

.hg-cinema-language button[aria-pressed="true"] {
  background: #f8f5ef;
  color: #b00016;
}

@media (max-width: 640px) {
  .hg-cinema-three {
    inset: max(58px, calc(env(safe-area-inset-top) + 48px)) -5% 39% -5%;
    -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 10%, #000 96%, transparent 100%);
    mask-image: linear-gradient(0deg, transparent 0, #000 10%, #000 96%, transparent 100%);
  }

  .hg-cinema-launch[data-three="ready"] .hg-cinema-shot-dock {
    opacity: .48;
  }

  .hg-cinema-launch[data-three="ready"] .hg-cinema-wash {
    background:
      linear-gradient(0deg, rgba(8,10,14,.96) 0%, rgba(8,10,14,.12) 48%, rgba(8,10,14,.48) 100%),
      linear-gradient(90deg, rgba(227,6,19,.18), transparent 72%);
  }

  .hg-cinema-language {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .hg-cinema-three {
    inset: 52px -3% 43% -3%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-cinema-three {
    transition-duration: .01ms;
  }
}
