/* Start systemu: oczy sowy otwierają się, mrugają, a prawa tęczówka wraca na swoje miejsce na tapecie.
   Nakładkę dodaje js/intro.js, raz na sesję i nie dłużej niż 1,9 s. Strona pod spodem rysuje się od razu. */
.intro { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  .intro { --D: calc(var(--E) * .16); display: block; position: fixed; z-index: 100; inset: 0 0 auto; height: 100vh; height: 100lvh; overflow: hidden; color: #e8f0f8; font-family: Commissioner, "Segoe UI", "Noto Sans", sans-serif; cursor: pointer; transition: opacity .15s; }
  .intro.koniec { opacity: 0; pointer-events: none; }
  .intro div, .intro i { position: absolute; }
  .i-tlo { inset: 0; background: #08111e; animation: i-znika .55s ease-in 1.3s both; }
  .i-oko { left: 50%; top: 50%; width: 0; height: 0; translate: calc(var(--s) * var(--D) * .56); }
  .i-lewe { --s: -1; } .i-prawe { --s: 1; }
  .i-bialko, .i-powieka { left: calc(var(--D) / -2); top: calc(var(--D) / -2); width: var(--D); height: var(--D); border-radius: 50%; }
  .i-bialko { background: radial-gradient(circle at 40% 32%, #fff, #eef4f9 52%, #b9cbdc); }
  .i-tecza { left: calc(var(--E) / -2); top: calc(var(--E) / -2); width: var(--E); height: var(--E); scale: .1013; will-change: transform; }
  .i-tecza::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--oko) center / 100% 100% no-repeat, radial-gradient(closest-side, #8fd0f5 30%, #2f7fc1 70%, transparent 92%); }
  .i-tecza i { inset: 37.500%; background: radial-gradient(closest-side, var(--zrenica) 91%, transparent); scale: 1.6; }
  .i-tecza b { position: absolute; left: 18%; top: 14%; width: 22%; height: 22%; border-radius: 50%; background: #fff; }
  /* powieka ma kolor tła: zamknięte oko znika w ciemności */
  .i-powieka { left: calc(var(--D) / -2 - 2px); top: calc(var(--D) / -2 - 2px); width: calc(var(--D) + 4px); height: calc(var(--D) + 4px); overflow: hidden; }
  .i-powieka i { inset: 0; background: #08111e; border-bottom: 3px solid #8cc8f5; border-radius: 0 0 50% 50%; animation: i-mruga 1.1s linear .1s both; }
  .i-napis { left: 0; right: 0; top: calc(50% + var(--D) * .86); text-align: center; font-size: 1.25rem; font-weight: 600; animation: i-znika .25s linear 1.15s both; }
  .i-pasek { left: 50%; top: 2.6rem; width: 12rem; height: 3px; margin-left: -6rem; background: #24364d; }
  .i-pasek i { inset: 0; background: #8cc8f5; transform-origin: 0 0; animation: i-laduje 1.05s cubic-bezier(.3, .2, .3, 1) .05s both; }
  .i-bialko, .i-lewe .i-tecza, .i-tecza b { animation: i-znika .22s linear 1.15s both; }
  .i-prawe .i-tecza { animation: i-leci .65s cubic-bezier(.6, 0, .2, 1) 1.15s both, i-znika .3s linear 1.55s forwards; }
  .i-prawe .i-tecza i { animation: i-zrenica .65s cubic-bezier(.6, 0, .2, 1) 1.15s both; }
  @keyframes i-znika { to { opacity: 0; } }
  @keyframes i-laduje { from { transform: scaleX(0); } }
  @keyframes i-leci { to { translate: calc(var(--ox) - var(--D) * .56) var(--oy); scale: 1; } }
  @keyframes i-zrenica { to { scale: 1; } }
  @keyframes i-mruga {
    0%, 8% { transform: none; animation-timing-function: cubic-bezier(.3, .8, .3, 1); }
    28%, 50% { transform: translateY(-101%); animation-timing-function: ease-in; }
    57% { transform: none; animation-timing-function: ease-out; }
    65%, 73% { transform: translateY(-101%); animation-timing-function: ease-in; }
    80% { transform: none; animation-timing-function: ease-out; }
    90%, 100% { transform: translateY(-101%); }
  }
}
@media print { .intro { display: none; } }
