/*
 * Advanced Shooting Center — animacja powitalna (intro)
 * Style nakladki wyswietlanej przy wejsciu na strzelnicadomaniow.pl
 */

.asc-intro-lock,
.asc-intro-lock body {
  overflow: hidden !important;
  touch-action: none;
}

.asc-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity 700ms ease, transform 700ms ease;
  -webkit-tap-highlight-color: transparent;
  contain: strict;
}

.asc-intro:focus { outline: none; }

.asc-intro__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Na telefonach (wąski ekran) kadr wypełnia cały ekran zamiast pasów po bokach */
@media (max-aspect-ratio: 3/4) {
  .asc-intro__video { object-fit: cover; }
}

/* Delikatna winieta — miękkie przejście kadru w czerń strony */
.asc-intro__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.75) 100%);
}

/* --- Przyciski --------------------------------------------------------- */

.asc-intro__btn {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 10px 18px;
  font: 600 11px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 12, 14, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 500ms ease, color 200ms ease, background-color 200ms ease,
    border-color 200ms ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  appearance: none;
}

.asc-intro.is-ready .asc-intro__btn { opacity: 1; }

.asc-intro__btn:hover,
.asc-intro__btn:focus-visible {
  color: #0b0b0d;
  background: rgba(255, 255, 255, 0.92);
  border-color: #fff;
  outline: none;
}

.asc-intro__btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

.asc-intro__skip {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
}

.asc-intro__sound {
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
}

@media (max-width: 480px) {
  .asc-intro__btn { padding: 9px 14px; font-size: 10px; letter-spacing: 0.14em; }
}

/* --- Pasek postępu ------------------------------------------------------ */

.asc-intro__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 500ms ease;
}

.asc-intro.is-ready .asc-intro__progress { opacity: 1; }

.asc-intro__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.95));
  transform-origin: left center;
}

/* --- Wyjście ------------------------------------------------------------ */

.asc-intro.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

@media print { .asc-intro { display: none !important; } }
