/* ============================================================
   ROYAL PATTI CLUB - OFFICIAL LANDING & DIRECT DOWNLOAD PORTAL
   Domain: royalpatticlub.com
   Pixel-Perfect Match to Official Flyer Artwork (ZERO Overlaps)
   ============================================================ */

#screenLanding {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 20%, #1a0309 0%, #0c0205 60%, #030002 100%);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
}

#screenLanding.active {
  display: flex !important;
}

.landing-container {
  width: 100%;
  max-width: 440px;
  min-height: 100%;
  background: #120207;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
  padding: 0;
  box-sizing: border-box;
}

/* ================= POSTER STAGE ================= */
.landing-poster-stage {
  width: 100%;
  padding: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-poster-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.landing-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

/* ================= REAL 3D CYAN DOWNLOAD BUTTON ================= */
.landing-3d-download-btn {
  position: absolute;
  left: 8.5%;
  top: 42.4%;
  width: 83%;
  height: 7.4%;
  background: linear-gradient(180deg, #1fe3ff 0%, #009ce4 48%, #006dae 100%);
  border: 2.5px solid #a8f5ff;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(0, 156, 228, 0.75), 0 0 16px rgba(0, 229, 255, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.9), inset 0 -2px 6px rgba(0, 50, 90, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  z-index: 25;
  text-decoration: none;
  overflow: hidden;
  padding: 0 16px;
  box-sizing: border-box;
  animation: downloadBtnPulse 2s infinite ease-in-out;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.landing-3d-download-btn:active {
  transform: scale(0.96);
  filter: brightness(1.15);
  box-shadow: 0 4px 14px rgba(0, 156, 228, 0.9), inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

@keyframes downloadBtnPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(0, 156, 228, 0.7), 0 0 12px rgba(0, 229, 255, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.85);
  }
  50% {
    box-shadow: 0 10px 32px rgba(0, 156, 228, 0.95), 0 0 24px rgba(0, 229, 255, 0.9), inset 0 2px 5px #ffffff;
  }
}

.btn-shine-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  animation: btnSweepShine 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes btnSweepShine {
  0%, 30% { left: -100%; }
  60%, 100% { left: 160%; }
}

.btn-icon-wrap {
  font-size: clamp(20px, 4.5vw, 26px);
  color: #fff;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: downloadArrowBounce 1.5s infinite;
}

@keyframes downloadArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.btn-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.btn-main-title {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: clamp(19px, 4.4vw, 24px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0, 40, 80, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
}

.btn-sub-badge {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(9.5px, 2.2vw, 11px);
  font-weight: 700;
  color: #e0f9ff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Bottom CTA Banner */
.landing-bottom-cta-banner {
  width: 100%;
  max-width: 440px;
  margin: 12px auto 24px;
  padding: 0 12px;
  box-sizing: border-box;
}

.landing-direct-apk-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(145deg, #1a050f 0%, #0d0105 100%);
  border: 1.8px solid #ffd700;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 215, 0, 0.3);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.landing-direct-apk-btn:active {
  transform: scale(0.97);
}

.apk-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #ffd700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.apk-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apk-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.apk-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.apk-name {
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffd700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apk-badge-tag {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  padding: 1px 5px;
  line-height: 1.2;
}

.apk-sub-desc {
  font-size: 11px;
  color: #eed6c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apk-download-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  border-radius: 14px;
  color: #000;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.apk-arrow {
  font-size: 13px;
  font-weight: 900;
}

/* Precise Interactive Hotspot directly over the printed cyan Download Now button in the flyer */
.landing-hotspot-btn {
  position: absolute;
  left: 10.5%;
  top: 42.6%;
  width: 79%;
  height: 7.2%;
  border-radius: 40px;
  cursor: pointer;
  z-index: 20;
  text-decoration: none;
  display: none;
}

/* Hotspot over Teen Patti game card */
.landing-hotspot-tp {
  position: absolute;
  left: 6%;
  top: 61%;
  width: 44%;
  height: 27%;
  border-radius: 14px;
  cursor: pointer;
  z-index: 15;
}

/* Discreet floating iOS helper pill */
.landing-ios-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 215, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.landing-ios-badge:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

/* ================= MODAL OVERLAYS ================= */
.install-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.install-modal-content {
  background: linear-gradient(145deg, #1f050d 0%, #0d0105 100%);
  border: 2px solid #ffd700;
  border-radius: 18px;
  padding: 22px 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
  color: #fff;
}

.install-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  padding-bottom: 10px;
}

.install-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffd700;
}

.btn-modal-x {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.install-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.install-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #f1e1d0;
}

.step-number {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #000;
  font-weight: 900;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.btn-modal-close {
  width: 100%;
  padding: 10px;
  background: linear-gradient(180deg, #ffd700 0%, #d4a017 100%);
  border: none;
  border-radius: 20px;
  color: #000;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.modal-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(180deg, #00d2ff 0%, #00619e 100%);
  border: 1px solid #00d2ff;
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
}


/* ================= iOS INSTALL HERO & ICONS ================= */
.ios-install-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  margin-bottom: 18px;
}

.ios-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid #ffd700;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.ios-hero-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ios-hero-text strong {
  font-size: 14.5px;
  color: #fff;
}

.ios-hero-text span {
  font-size: 11.5px;
  color: #d4a017;
}

.ios-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #007aff;
  border-radius: 5px;
  color: #007aff;
  font-size: 14px;
  font-weight: bold;
  vertical-align: middle;
  margin: 0 3px;
  background: rgba(0, 122, 255, 0.12);
}

.ios-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #888;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  vertical-align: middle;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.1);
}

.ios-install-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  font-size: 12px;
  color: #4ade80;
  margin-top: 14px;
  line-height: 1.4;
}

/* ================= iOS FLOATING INSTALL DOCK ================= */
.landing-ios-dock {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 9999;
}

.landing-ios-dock-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1f050d 0%, #0d0105 100%);
  border: 1.5px solid #ffd700;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 215, 0, 0.3);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.dock-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid #ffd700;
  object-fit: cover;
  flex-shrink: 0;
}

.dock-app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dock-app-info strong {
  font-size: 14px;
  color: #ffd700;
}

.dock-app-info span {
  font-size: 11.5px;
  color: #eed6c4;
}

.dock-app-action {
  padding: 6px 14px;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  border-radius: 20px;
  color: #000;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

