:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071224;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #071224;
}

button, a { -webkit-tap-highlight-color: transparent; }

.gallery {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.gallery::-webkit-scrollbar { display: none; }

.poster-slide {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    radial-gradient(circle at 50% 20%, rgba(24, 84, 160, .28), transparent 54%),
    #050b15;
}

.poster-slide img {
  display: block;
  width: min(100vw, 80dvh);
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.page-counter {
  position: fixed;
  z-index: 10;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  min-width: 70px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 11, 25, .72);
  box-shadow: 0 4px 18px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.controls {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.nav-button, .call-button {
  height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(2, 11, 25, .78);
  box-shadow: 0 5px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  font: inherit;
  font-weight: 800;
}

.nav-button {
  width: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.nav-button:disabled { opacity: .35; }

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 104px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  background: #0759b8;
}

.nav-button:focus-visible, .call-button:focus-visible {
  outline: 3px solid #7ec8ff;
  outline-offset: 3px;
}

@media (min-width: 800px) {
  .controls { right: 20px; left: auto; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery { scroll-behavior: auto; }
}
