/* ==========================================================================
   PK888 Game — Homepage
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(46px, 6vw, 88px) clamp(56px, 7vw, 104px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Pointer parallax wrapper — kept separate from .hero__mesh so its own
   drift keyframes are never overwritten by the inline transform. */
.hero__parallax {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Slow parallax royal mesh */
.hero__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38rem 28rem at 22% 18%, rgba(176, 16, 48, 0.28), transparent 62%),
    radial-gradient(40rem 30rem at 78% 26%, rgba(212, 175, 55, 0.22), transparent 62%),
    radial-gradient(32rem 24rem at 50% 88%, rgba(42, 21, 71, 0.9), transparent 66%);
  animation: meshDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes meshDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* Gold ember particles injected by particle-hero.js */
.hero__embers {
  position: absolute;
  inset: 0;
}

.ember {
  position: absolute;
  bottom: -20px;
  width: var(--e-size, 4px);
  height: var(--e-size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2, #d4af37 45%, rgba(156, 122, 30, 0) 72%);
  opacity: 0;
  animation: emberRise var(--e-dur, 14s) linear var(--e-delay, 0s) infinite;
  will-change: transform, opacity;
}

@keyframes emberRise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: var(--e-opacity, 0.8); }
  78% { opacity: var(--e-opacity, 0.8); }
  100% { transform: translate3d(var(--e-drift, 30px), calc(-100vh - 60px), 0) scale(1.1); opacity: 0; }
}

/* Named grid areas (rather than DOM order + `order:`) so the markup can read
   top-copy -> mockup -> bonus/CTA in source order — matching the mobile stack
   the mockup sits above the bonus button — while desktop still lays the
   mockup out beside both copy blocks as one tall right-hand column. */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas: 'top visual' 'bottom visual';
  column-gap: clamp(30px, 5vw, 70px);
  row-gap: 0;
  align-items: center;
}

.hero__copy-top {
  grid-area: top;
  min-width: 0;
}

.hero__copy-bottom {
  grid-area: bottom;
  min-width: 0;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-5);
}

.hero__title .line {
  display: block;
}

.hero__title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.35));
}

.hero__sub {
  max-width: 58ch;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
}

.hero__urdu {
  display: inline-block;
  margin-bottom: var(--sp-5);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(42, 21, 71, 0.55);
  font-size: 0.95rem;
  color: var(--color-gold-bright);
}

/* Bonus badge with count-up */
.hero__bonus {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding: 14px 26px 14px 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(122, 10, 33, 0.55), rgba(42, 21, 71, 0.75));
  box-shadow: var(--shadow-card), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.hero__bonus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--gradient-gold-diag);
  color: #23180a;
  box-shadow: var(--shadow-gold-glow);
  animation: crestPulse 3.4s ease-in-out infinite;
}

.hero__bonus-mark svg {
  width: 26px;
  height: 26px;
}

@keyframes crestPulse {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(-7deg) scale(1.07); }
}

.hero__bonus-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__bonus-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cta {
  margin-bottom: var(--sp-5);
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.hero__notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__notes svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex: none;
}

.hero__visual {
  grid-area: visual;
  position: relative;
  display: flex;
  justify-content: center;
  align-self: center;
  min-width: 0;
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: 'top' 'visual' 'bottom';
    text-align: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero__notes,
  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    margin-block: var(--sp-5);
  }
}

/* --------------------------------------------------------------------------
   2. Ticker
   -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  background: linear-gradient(90deg, rgba(122, 10, 33, 0.34), rgba(42, 21, 71, 0.6), rgba(156, 122, 30, 0.28));
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: tickerRun 42s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

@keyframes tickerRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.ticker__item::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 16px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.ticker__item b {
  color: var(--color-gold-bright);
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   3. Featured slot grid
   -------------------------------------------------------------------------- */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}

.slot-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: rgba(31, 15, 56, 0.6);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.slot-card__media {
  position: relative;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: linear-gradient(160deg, #2a1547, #150a24);
}

.slot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.slot-card:hover {
  transform: translateY(-7px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover), var(--shadow-gold-glow);
}

.slot-card:hover .slot-card__media img {
  transform: scale(1.09);
}

.slot-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(21, 10, 36, 0.1), rgba(21, 10, 36, 0.86));
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.slot-card:hover .slot-card__overlay,
.slot-card:focus-visible .slot-card__overlay {
  opacity: 1;
}

.slot-card__play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold-diag);
  color: #23180a;
  font-size: 0.8rem;
  font-weight: 800;
  transform: translateY(10px);
  transition: transform var(--dur) var(--ease-spring);
}

.slot-card:hover .slot-card__play {
  transform: translateY(0);
}

.slot-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient-crimson);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(176, 16, 48, 0.5);
}

.slot-card__tag--gold {
  background: var(--gradient-gold-diag);
  color: #23180a;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
}

.slot-card__body {
  padding: 12px 13px 14px;
}

.slot-card__name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.slot-card__provider {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-card__rtp {
  flex: none;
  color: var(--color-success);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. OG banner showcase
   -------------------------------------------------------------------------- */

.ogbanner {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: rgba(21, 10, 36, 0.7);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(212, 175, 55, 0.12);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.ogbanner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover), 0 0 80px rgba(212, 175, 55, 0.24);
}

.ogbanner__link {
  display: block;
  position: relative;
}

.ogbanner__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.ogbanner:hover .ogbanner__img {
  transform: scale(1.025);
}

/* Gold light sweeping across the banner */
.ogbanner__link::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 42%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: promoSweep 7s var(--ease-out) infinite;
}

.ogbanner__frame {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(244, 205, 91, 0.35);
  border-radius: calc(var(--radius-lg) - 8px);
}

.ogbanner__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.6vw, 30px);
  border-top: 1px solid var(--color-border);
  background: rgba(13, 6, 23, 0.7);
}

.ogbanner__caption p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 62ch;
}

.ogbanner__caption strong {
  color: var(--color-gold-bright);
}

@media (prefers-reduced-motion: reduce) {
  .ogbanner__link::after { display: none; }
}

/* --------------------------------------------------------------------------
   5. Screenshot slider
   -------------------------------------------------------------------------- */

.shots {
  position: relative;
}

.shots__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: 18px 26px;
  /* Fade the edges so slides drift out of view elegantly */
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  cursor: grab;
}

.shots__viewport.is-dragging {
  cursor: grabbing;
}

.shots__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  will-change: transform;
  transition: transform 0.75s var(--ease-out);
}

.shots__slide {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 22vw, 250px);
  border-radius: 26px;
  transform: scale(0.86);
  opacity: 0.5;
  filter: saturate(0.7);
  transition: transform 0.75s var(--ease-out), opacity 0.75s var(--ease-out), filter 0.75s var(--ease-out);
}

.shots__slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
}

.shots__phone {
  position: relative;
  padding: 9px 9px 11px;
  border-radius: 30px;
  background: linear-gradient(155deg, #4a3a1a 0%, #16101f 24%, #0d0716 64%, #3d2f14 100%);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 20px 48px rgba(0, 0, 0, 0.55);
}

.shots__slide.is-active .shots__phone {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.7), 0 26px 60px rgba(0, 0, 0, 0.6),
    0 0 46px rgba(212, 175, 55, 0.22);
}

.shots__screen {
  border-radius: 22px;
  overflow: hidden;
  background: #120a20;
  aspect-ratio: 9 / 17.35;
}

.shots__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.shots__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease-out);
}

.shots__slide.is-active .shots__caption {
  color: var(--color-gold-bright);
}

.shots__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.shots__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: rgba(42, 21, 71, 0.6);
  color: var(--color-gold-bright);
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.shots__arrow svg {
  width: 20px;
  height: 20px;
}

.shots__arrow:hover {
  background: var(--gradient-gold-diag);
  color: #23180a;
  box-shadow: var(--shadow-gold-glow);
  transform: scale(1.08);
}

.shots__dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.shots__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.shots__dot.is-active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold);
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   6. Feature / benefit blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

/* Copy gets the wider column; the device mockup only needs ~330px */
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

.split__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  position: relative;
  display: flex;
  gap: 13px;
  margin: 0;
  font-size: 0.97rem;
}

.checklist svg {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 3px;
  color: var(--color-gold-bright);
}

.checklist b {
  display: block;
  color: var(--color-text-primary);
}

/* Editorial content block for long-form SEO copy */
.prose h3 {
  margin-top: var(--sp-6);
  font-size: var(--fs-h3);
}

.prose h4 {
  margin-top: var(--sp-5);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-gold-bright);
}

.prose p,
.prose li {
  font-size: 0.99rem;
}

.prose ul {
  padding-left: 1.1em;
}

.prose ul li::marker {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   7. Responsible gaming panel
   -------------------------------------------------------------------------- */

.rg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.rg__item {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(227, 28, 65, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(122, 10, 33, 0.28), rgba(31, 15, 56, 0.6));
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.rg__item:hover {
  border-color: rgba(227, 28, 65, 0.6);
  transform: translateY(-4px);
}

.rg__item h3 {
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: 800;
  margin-bottom: 10px;
}

.rg__item p {
  font-size: 0.93rem;
  margin: 0;
}
