/* SalatiPal — Quran recitation-timer wheel picker (sp-quran-timer.js).
   iOS-style scroll wheel in a dark-glass bottom sheet, matching the Quran
   player bar. Premium-locked rows are dimmed with a 🔒. */

.spqt-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0); transition: background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.spqt-overlay.is-open { background: rgba(0, 0, 0, 0.5); }

.spqt-sheet {
  width: 100%; max-width: 520px; margin: 0 8px;
  background: rgba(17, 24, 39, 0.92);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  backdrop-filter: saturate(170%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  color: #f3f5f7;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
.spqt-overlay.is-open .spqt-sheet { transform: translateY(0); }

.spqt-hdr { text-align: center; padding: 6px 0 8px; }
.spqt-grip { display: block; width: 38px; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.28); margin: 0 auto 12px; }
.spqt-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.spqt-sub { font-size: .82rem; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }

/* wheel */
.spqt-wheelwrap {
  position: relative; margin: 10px 0 6px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
}
.spqt-band {
  position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-50%);
  border-radius: 13px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12); pointer-events: none; z-index: 1;
}
.spqt-wheel {
  height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; position: relative; z-index: 2;
  scrollbar-width: none;
  /* Lock the picker to vertical panning so a left/right drag never starts a
     native horizontal pan/overscroll (page slide). */
  touch-action: pan-y; overflow-x: hidden; overscroll-behavior: contain;
}
.spqt-wheel::-webkit-scrollbar { display: none; }
.spqt-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  scroll-snap-align: center; scroll-snap-stop: always;
  font-size: 1.25rem; font-weight: 600; color: rgba(255, 255, 255, 0.42);
  transition: color .15s ease, transform .15s ease, opacity .15s ease;
}
.spqt-item.is-sel { color: #fff; transform: scale(1.06); font-weight: 700; }
.spqt-item.spqt-locked { color: rgba(255, 255, 255, 0.3); }
.spqt-item.spqt-locked.is-sel { color: rgba(255, 224, 138, 0.92); }
.spqt-lock { font-size: .85rem; opacity: .85; }

/* footer */
.spqt-foot { display: flex; gap: 10px; margin-top: 10px; }
.spqt-btn {
  flex: 1; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 14px; padding: 14px 16px; transition: transform .1s ease, opacity .2s, background .2s;
}
.spqt-btn:active { transform: scale(.97); }
.spqt-start { background: linear-gradient(135deg, #27c08a, #1f9e73); color: #04140e; }
.spqt-start.is-locked { background: linear-gradient(135deg, #f0c14b, #e2a83a); color: #2a2207; }
.spqt-off {
  flex: 0 0 auto; min-width: 110px;
  background: rgba(255, 255, 255, 0.1); color: #ffb4a8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
