/* Screen-only presentation controls and motion. Print output remains unchanged. */
@media screen {
  html,
  body {
    overscroll-behavior: none;
  }

  .deck {
    touch-action: pan-y;
  }

  .slide {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: none;
    margin-top: -360px;
    margin-left: -640px;
  }

  .slide:first-child {
    opacity: 1;
    visibility: visible;
  }

  .slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .slide.leftout {
    transform: none;
  }

  .slide.is-animating {
    will-change: transform, opacity, clip-path;
  }

  .slide .anim,
  .slide.active .anim {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide .stage {
    isolation: isolate;
    overflow: hidden;
  }

  .ui {
    font-family: Poppins, Arial, sans-serif;
    -webkit-user-select: none;
    user-select: none;
  }

  .prog {
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 58%, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: none;
  }

  .counter {
    bottom: 28px;
    left: 24px;
    min-width: 74px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    background: rgba(5, 14, 22, 0.72);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    text-align: center;
  }

  .dots {
    bottom: 26px;
    left: 50%;
    display: flex;
    gap: 2px;
    align-items: center;
    transform: translateX(-50%);
  }

  .deck-dot {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    place-items: center;
  }

  .deck-dot::before {
    width: 7px;
    height: 7px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.32);
    content: "";
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
  }

  .deck-dot:hover::before {
    background: rgba(255, 255, 255, 0.72);
    transform: scale(1.45);
  }

  .deck-dot.on::before {
    background: var(--accent);
    transform: scale(1.6);
  }

  .ctrl {
    right: 22px;
    bottom: 20px;
    display: flex;
    gap: 8px;
  }

  .ctrl button {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 14, 22, 0.76);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    cursor: pointer;
    place-items: center;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease, border-color 180ms ease;
  }

  .ctrl button:hover {
    border-color: var(--accent);
    color: var(--onAccent);
    background: var(--accent);
    transform: translateY(-2px);
  }

  .ctrl button:active {
    transform: translateY(0) scale(0.94);
  }

  .ctrl button:disabled {
    cursor: default;
    opacity: 0.34;
    transform: none;
  }

  .ctrl svg {
    width: 19px;
    height: 19px;
    pointer-events: none;
  }

  .deck-dot:focus-visible,
  .ctrl button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
    outline-offset: 3px;
  }

  .deck-hint {
    top: 22px;
    right: 24px;
    bottom: auto;
    left: auto;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.67);
    background: rgba(5, 14, 22, 0.62);
    backdrop-filter: blur(10px);
    font-size: 11px;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  @media (max-width: 720px) {
    .dots {
      display: none;
    }

    .counter {
      bottom: 22px;
      left: 16px;
    }

    .ctrl {
      right: 14px;
      bottom: 14px;
    }

    .deck-hint {
      display: none;
    }
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .deck-hint,
  .sr-only {
    display: none !important;
  }
}
