html, body { height: 100%; margin: 0; }
body { background: #000; font-family: Arial, sans-serif; overflow: hidden; }

/* Fullscreen slider */
.slider {
  position: fixed;
  inset: 0;
  background: #000;
  user-select: none;
}

.empty { color:#fff; padding:18px; text-align:center; }

/* Slide wrapper */
.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden; /* important for pan/zoom */
  touch-action: pan-y; /* allow page UI; JS will handle zoom/swipe */
}
.slide.active { display: block; }

/* Image fits screen */
.slide-img {
  width: 100vw;
  height: 100dvh;      /* better on phone */
  object-fit: cover;   /* desktop fill */
  display: block;
  transform-origin: center center;
  will-change: transform;
}

/* On phone: show whole image (less cropping) */
@media (max-width: 700px) {
  .slide-img { object-fit: contain; }
}

/* title overlay */
.title-overlay {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 15;
}

/* Nav arrows (desktop) */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 20;
}
.nav-btn:active { transform: translateY(-50%) scale(0.98); }
.nav-left { left: 12px; }
.nav-right { right: 12px; }

@media (max-width: 700px) {
  .nav-btn { display: none; }
}

/* Help icon bottom-right */
.help-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(6px);
}

/* Help modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 50;
}
.modal-backdrop.open { display: block; }

/* Popup above help icon (right side) */
.modal {
  position: fixed;
  right: 14px;
  bottom: 80px;
  width: min(92vw, 420px);
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  color: #fff;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal h3 { margin: 0 0 8px 0; font-size: 16px; }
.modal .info { font-size: 13px; opacity: 0.95; margin-bottom: 10px; line-height: 1.4; }
.modal label { font-size: 12px; opacity: 0.9; display: block; margin: 8px 0 4px; }

.modal input, .modal textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 10px;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
}
.modal textarea { min-height: 90px; resize: vertical; }

.modal .actions { display: flex; gap: 10px; margin-top: 10px; }
.modal button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}
.btn-send { background: #ffffff; color: #000; }
.btn-close { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.15); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 80;
  display: none;
  max-width: 92vw;
}
.toast.show { display: block; }
