/* ==========================================================================
   PK888 Game — Royal Vault Edition
   pages/home.css — homepage-only layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — asymmetric 60/40 split, vault plate on the left, device on the right
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 6.5vw, 108px) clamp(64px, 7vw, 120px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 82% 34%, rgba(201, 162, 75, 0.12), transparent 62%),
    radial-gradient(ellipse 58% 62% at 8% 78%, rgba(158, 16, 48, 0.14), transparent 66%);
}

/* Faint engraved vault dial behind the device column. */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12%;
  width: min(760px, 78vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.12);
  box-shadow:
    0 0 0 30px rgba(201, 162, 75, 0.035),
    0 0 0 31px rgba(201, 162, 75, 0.08),
    0 0 0 74px rgba(201, 162, 75, 0.025);
  pointer-events: none;
}

/* Three named areas so the mobile stacking order (intro, then the app
   mockup, then the bonus/CTA block) can differ from the desktop 60/40 split
   without duplicating markup. */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  grid-template-areas:
    "intro   media"
    "actions media";
  /* Row-gap 0 — hero__lede already carries its own bottom margin, so the
     intro/actions cells should sit flush and let that margin do the work. */
  gap: 0 clamp(36px, 5vw, 78px);
  align-items: center;
}

.hero__intro   { grid-area: intro; }
.hero__media   { grid-area: media; }
.hero__actions { grid-area: actions; }

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "media"
      "actions";
    gap: clamp(36px, 8vw, 56px);
  }
  .hero__intro,
  .hero__actions { text-align: center; }
  .hero__intro .eyebrow { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__bonus-row { justify-content: center; }
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-5);
}

.hero__title span { display: block; }

.hero__lede {
  font-size: var(--fs-lg);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}

@media (max-width: 1000px) {
  .hero__lede { margin-inline: auto; }
}

.hero__bonus-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.hero__bonus-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  max-width: 26ch;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Telegram row sits directly under the main CTA cluster. */
.hero__tg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed rgba(53, 166, 224, 0.38);
  border-radius: var(--radius-lg);
  background: rgba(21, 115, 173, 0.08);
  margin-bottom: var(--space-7);
}

.hero__tg-text {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 34ch;
}

.hero__tg-text b { color: var(--color-text-primary); display: block; font-size: var(--fs-sm); }

@media (max-width: 1000px) {
  .hero__tg { justify-content: center; text-align: center; }
}

.hero__media { min-width: 0; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Diagonal stat ribbon
   -------------------------------------------------------------------------- */

.stat-ribbon {
  position: relative;
  background: var(--color-bg-inset);
  clip-path: polygon(0 3.2%, 100% 0, 100% 96.8%, 0 100%);
  padding-block: clamp(40px, 4.5vw, 68px);
  box-shadow: var(--shadow-panel-inset);
}

.stat-ribbon::before,
.stat-ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-gold-inlay);
  opacity: 0.32;
}

.stat-ribbon::before { top: 3.2%;    transform: rotate(-0.34deg); }
.stat-ribbon::after  { bottom: 3.2%; transform: rotate(-0.34deg); }

.stat-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

@media (max-width: 860px) {
  .stat-ribbon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) 0; }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 460px) {
  .stat-ribbon__grid { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--color-border-soft); }
}

/* --------------------------------------------------------------------------
   OG banner showcase
   -------------------------------------------------------------------------- */

.og-showcase { overflow: hidden; }

.og-showcase__frame {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(201, 162, 75, 0.2);
  background: var(--color-bg-inset);
  transition: transform var(--dur-base) var(--ease-metal),
              box-shadow var(--dur-base) var(--ease-soft);
}

.og-showcase__frame:hover,
.og-showcase__frame:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(232, 200, 120, 0.5);
}

.og-showcase__frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-metal);
}

.og-showcase__frame:hover img { transform: scale(1.02); }

/* Sweeping gold light across the banner. */
.og-showcase__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.og-showcase__shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 244, 214, 0.22) 48%, transparent);
  transform: rotate(16deg);
  animation: og-sweep 7s var(--ease-soft) infinite;
}

@keyframes og-sweep {
  0%, 58%   { left: -60%; }
  88%, 100% { left: 130%; }
}

/* Sits below the artwork rather than over it — the supplied banner already
   carries its own bottom feature strip and an overlay would fight with it. */
.og-showcase__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 34px);
  background: var(--color-bg-inset);
  border-top: 1px solid var(--color-border-strong);
}

.og-showcase__caption p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  font-weight: 700;
}

.og-showcase__caption > div > span {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-3xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

@media (max-width: 620px) {
  .og-showcase__caption { justify-content: center; text-align: center; }
}

/* The shine sweep must stay above the artwork but below the caption bar. */
.og-showcase__shine { bottom: auto; aspect-ratio: 1536 / 1024; }

.og-showcase__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}

.og-showcase__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-4) var(--space-5);
  background: rgba(44, 22, 80, 0.5);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.og-showcase__points strong { display: block; color: var(--color-text-primary); font-size: var(--fs-sm); }

.og-showcase__points svg { width: 18px; height: 18px; color: var(--color-gold); flex: 0 0 auto; margin-top: 3px; }

/* --------------------------------------------------------------------------
   Featured slots — asymmetric mixed-size grid
   -------------------------------------------------------------------------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  /* Cards size to their own native aspect ratio rather than stretching to
     fill a taller/wider spanned cell — that stretch is what previously
     forced object-fit: cover to crop the feature tiles' artwork. */
  align-items: start;
}

/* Two wide feature tiles + six standard tiles. Only the column count grows —
   the media keeps its native 211:260 ratio, so the poster simply scales up
   instead of being cropped into a mismatched box. */
.featured-grid > :nth-child(1),
.featured-grid > :nth-child(4) { grid-column: span 2; }

@media (max-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  /* nth(1) and nth(4) already span 2 columns from the base rule, which is
     now the full row width at this breakpoint — no extra override needed. */
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Screenshot gallery — phone frames on a slider
   -------------------------------------------------------------------------- */

.shots { position: relative; overflow: hidden; }

.shots__slider { --slide-w: clamp(206px, 22vw, 268px); }

.shots__frame {
  position: relative;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(158deg, #E8C878 0%, #8A6A2E 24%, #2C1650 25%, #180B2E 76%, #8A6A2E 97%, #E8C878 100%);
  box-shadow: 0 0 0 1px rgba(232, 200, 120, 0.38), 0 26px 54px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-base) var(--ease-metal),
              box-shadow var(--dur-base) var(--ease-soft);
}

.shots__slide:nth-child(odd)  .shots__frame { transform: translateY(14px) rotate(-1.4deg); }
.shots__slide:nth-child(even) .shots__frame { transform: translateY(-6px) rotate(1.4deg); }

.shots__frame:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.03);
  box-shadow: 0 0 0 1px rgba(255, 243, 212, 0.7), 0 34px 68px rgba(0, 0, 0, 0.7);
  z-index: 3;
}

.shots__screen {
  position: relative;
  border-radius: 23px;
  overflow: hidden;
  background: #0d0518;
  aspect-ratio: 9 / 18.5;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.24);
}

.shots__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shots__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 15px;
  background: #0a0414;
  border-radius: 0 0 11px 11px;
  z-index: 2;
}

.shots__caption {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.shots__slide:nth-child(odd) .shots__caption { margin-top: calc(var(--space-5) + 14px); }

/* --------------------------------------------------------------------------
   Why PK888 — split screen
   -------------------------------------------------------------------------- */

.why__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-deep);
  background: var(--color-bg-inset);
}

.why__media img { width: 100%; height: auto; display: block; }

.why__media-tag {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(18, 8, 35, 0.92);
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.why__media-tag strong { display: block; color: var(--color-gold-bright); font-size: var(--fs-sm); margin-bottom: 3px; }

/* --------------------------------------------------------------------------
   Download teaser — angled panel
   -------------------------------------------------------------------------- */

.dl-teaser {
  position: relative;
  background:
    linear-gradient(150deg, rgba(44, 22, 80, 0.95) 0%, rgba(18, 8, 35, 0.98) 62%);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  padding-block: clamp(56px, 6vw, 104px);
  border-block: 1px solid transparent;
}

.dl-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 22% 40%, rgba(201, 162, 75, 0.12), transparent 62%);
  pointer-events: none;
}

.dl-teaser__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

@media (max-width: 940px) {
  .dl-teaser__inner { grid-template-columns: minmax(0, 1fr); }
  .dl-teaser__media { order: -1; }
}

.dl-teaser__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}

.dl-teaser__badges li {
  padding: 10px 16px;
  font-size: var(--fs-3xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: rgba(18, 8, 35, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Provider strip
   -------------------------------------------------------------------------- */

.providers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.providers li {
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  background: rgba(44, 22, 80, 0.55);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  transition: color var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-metal);
}

.providers li:hover {
  color: var(--color-gold-bright);
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Responsible gaming panel
   -------------------------------------------------------------------------- */

.rg__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.rg__item {
  padding: var(--space-6);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: rgba(34, 16, 63, 0.5);
}

.rg__item h4 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.rg__item p { font-size: var(--fs-sm); margin: 0; }

/* Telegram duo layout lives in main.css — shared with the contact page. */
