/* =========================================================
 * super ph vip - Core Layout
 * File: css/layout-1d46.css
 * All custom classes use the pg1d- prefix.
 * Palette: #273746 / #CD853F / #FDF5E6 / #D2691E
 * Mobile-first, max-width: 430px primary viewport.
 * ========================================================= */

:root {
  --pg1d-primary: #273746;
  --pg1d-accent: #CD853F;
  --pg1d-accent-deep: #D2691E;
  --pg1d-text: #FDF5E6;
  --pg1d-bg: #273746;
  --pg1d-bg-soft: #1f2c38;
  --pg1d-bg-deep: #18222c;
  --pg1d-card: #314557;
  --pg1d-border: rgba(205, 133, 63, 0.35);
  --pg1d-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --pg1d-radius: 12px;
  --pg1d-radius-lg: 18px;
  --pg1d-max: 430px;
  --pg1d-header-h: 56px;
  --pg1d-bottomnav-h: 62px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pg1d-text);
  background: var(--pg1d-bg);
  max-width: 100vw;
  overflow-x: hidden;
}
body.pg1d-no-scroll { overflow: hidden; }
a { color: var(--pg1d-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--pg1d-text); line-height: 1.25; }

/* ---------- Layout primitives ---------- */
.pg1d-wrapper { width: 100%; max-width: 100vw; margin: 0 auto; position: relative; }
.pg1d-container { width: 100%; max-width: var(--pg1d-max); margin: 0 auto; padding: 0 1.4rem; }
.pg1d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pg1d-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pg1d-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }

/* ---------- Buttons ---------- */
.pg1d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pg1d-text);
  background: linear-gradient(135deg, var(--pg1d-accent), var(--pg1d-accent-deep));
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pg1d-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pg1d-btn:active { transform: scale(0.97); }
.pg1d-btn-ghost {
  background: transparent;
  color: var(--pg1d-text);
  border: 1.5px solid var(--pg1d-accent);
}
.pg1d-btn-block { display: flex; width: 100%; }
.pg1d-text-link {
  color: var(--pg1d-accent);
  font-weight: 700;
  border-bottom: 1px dashed transparent;
}
.pg1d-text-link:hover { border-bottom-color: var(--pg1d-accent); }

/* ---------- Header ---------- */
.pg1d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg1d-header-h);
  background: var(--pg1d-bg-deep);
  border-bottom: 1px solid var(--pg1d-border);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}
.pg1d-header-shadow { box-shadow: var(--pg1d-shadow); }
.pg1d-header-inner {
  height: 100%;
  max-width: var(--pg1d-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.pg1d-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pg1d-text);
  font-weight: 800;
  font-size: 1.6rem;
  flex: 1 1 auto;
  min-width: 0;
}
.pg1d-logo img { width: 28px; height: 28px; border-radius: 50%; }
.pg1d-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg1d-logo i { color: var(--pg1d-accent); font-size: 1.6rem; }
.pg1d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg1d-btn-mini { padding: 0.6rem 1.1rem; font-size: 1.3rem; min-height: 36px; }
.pg1d-menu-icon {
  background: transparent;
  border: none;
  color: var(--pg1d-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Mobile menu ---------- */
.pg1d-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 9998;
}
.pg1d-menu-backdrop-active { opacity: 1; visibility: visible; }
.pg1d-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 84%;
  max-width: 360px;
  height: 100vh;
  background: var(--pg1d-bg-soft);
  padding: 2rem 1.5rem;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.22s ease;
  border-left: 1px solid var(--pg1d-border);
}
.pg1d-mobile-menu ul { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.pg1d-menu-link {
  display: block;
  padding: 1.1rem 1rem;
  color: var(--pg1d-text);
  background: var(--pg1d-card);
  border-radius: var(--pg1d-radius);
  font-size: 1.45rem;
  font-weight: 600;
}
.pg1d-menu-link:hover { background: var(--pg1d-accent); color: var(--pg1d-bg-deep); }
.pg1d-menu-active { right: 0; }
.pg1d-menu-header { display: flex; justify-content: space-between; align-items: center; }
.pg1d-menu-close {
  background: transparent; border: none; color: var(--pg1d-text);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.pg1d-menu-cta { margin-top: 1.8rem; display: flex; gap: 0.8rem; }
.pg1d-menu-cta .pg1d-btn { flex: 1; }

/* ---------- Main padding for fixed header & bottom nav ---------- */
.pg1d-main {
  padding-top: calc(var(--pg1d-header-h) + 0.5rem);
  padding-bottom: calc(var(--pg1d-bottomnav-h) + 1.5rem);
  min-height: 100vh;
}

/* ---------- Hero carousel ---------- */
.pg1d-hero {
  position: relative;
  border-radius: var(--pg1d-radius-lg);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--pg1d-shadow);
}
.pg1d-slides { position: relative; }
.pg1d-slide {
  display: none;
  position: relative;
}
.pg1d-slide-active { display: block; }
.pg1d-slide img { width: 100%; height: auto; min-height: 180px; object-fit: cover; cursor: pointer; }
.pg1d-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(24, 34, 44, 0.92), transparent);
}
.pg1d-slide-caption h2 { font-size: 1.7rem; color: var(--pg1d-accent); margin-bottom: 0.3rem; }
.pg1d-slide-caption p { font-size: 1.3rem; color: var(--pg1d-text); }
.pg1d-slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between; padding: 0 0.6rem; pointer-events: none;
}
.pg1d-slide-nav button {
  pointer-events: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.4); color: var(--pg1d-text);
  font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pg1d-dots {
  position: absolute; bottom: 0.8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.pg1d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(253, 245, 230, 0.5); cursor: pointer; border: none;
}
.pg1d-dot-active { background: var(--pg1d-accent); width: 22px; border-radius: 4px; }

/* ---------- Section blocks ---------- */
.pg1d-section { margin-bottom: 2rem; }
.pg1d-section-title {
  font-size: 1.7rem; color: var(--pg1d-accent); margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  border-bottom: 1px solid var(--pg1d-border); padding-bottom: 0.6rem;
}
.pg1d-section-title i { font-size: 1.8rem; }
.pg1d-section-text { color: var(--pg1d-text); margin-bottom: 0.8rem; }
.pg1d-card {
  background: var(--pg1d-card);
  border-radius: var(--pg1d-radius);
  padding: 1.2rem;
  box-shadow: var(--pg1d-shadow);
  margin-bottom: 1rem;
}
.pg1d-card h3 { color: var(--pg1d-accent); font-size: 1.5rem; margin-bottom: 0.5rem; }
.pg1d-card p { font-size: 1.35rem; }

/* ---------- Category quick-nav chips ---------- */
.pg1d-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem;
}
.pg1d-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--pg1d-card); color: var(--pg1d-text);
  font-size: 1.25rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--pg1d-border);
  -webkit-tap-highlight-color: transparent;
}
.pg1d-chip:hover { background: var(--pg1d-accent); color: var(--pg1d-bg-deep); }
.pg1d-chip i { font-size: 1.4rem; color: var(--pg1d-accent); }
.pg1d-chip:hover i { color: var(--pg1d-bg-deep); }

/* ---------- Game grid ---------- */
.pg1d-game-section { margin-bottom: 2rem; scroll-margin-top: 80px; }
.pg1d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.pg1d-game-card {
  display: block;
  background: var(--pg1d-card);
  border-radius: var(--pg1d-radius);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--pg1d-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pg1d-game-card:hover, .pg1d-game-card:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(205, 133, 63, 0.35);
}
.pg1d-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #1d2733;
}
.pg1d-game-name {
  font-size: 1.2rem; color: var(--pg1d-text); padding: 0.5rem 0.4rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Info columns / features ---------- */
.pg1d-features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pg1d-feature {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--pg1d-bg-soft); border-radius: var(--pg1d-radius); padding: 1rem 1.2rem;
  border-left: 4px solid var(--pg1d-accent);
}
.pg1d-feature .pg1d-feature-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--pg1d-accent-deep); color: var(--pg1d-text);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.pg1d-feature h4 { color: var(--pg1d-accent); font-size: 1.45rem; margin-bottom: 0.3rem; }
.pg1d-feature p { font-size: 1.3rem; }

/* ---------- RTP / stat tiles ---------- */
.pg1d-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pg1d-stat {
  background: var(--pg1d-card); border-radius: var(--pg1d-radius);
  padding: 1rem; text-align: center;
}
.pg1d-stat .pg1d-stat-num { font-size: 2.1rem; font-weight: 800; color: var(--pg1d-accent); }
.pg1d-stat .pg1d-stat-label { font-size: 1.2rem; color: var(--pg1d-text); }

/* ---------- Testimonials ---------- */
.pg1d-testimonial {
  background: var(--pg1d-bg-soft); border-radius: var(--pg1d-radius);
  padding: 1.1rem 1.2rem; margin-bottom: 0.9rem; border-left: 3px solid var(--pg1d-accent);
}
.pg1d-testimonial-stars { color: #FFD66B; font-size: 1.3rem; margin-bottom: 0.4rem; }
.pg1d-testimonial p { font-size: 1.35rem; margin-bottom: 0.5rem; }
.pg1d-testimonial .pg1d-testimonial-author { font-size: 1.2rem; color: var(--pg1d-accent); font-weight: 700; }

/* ---------- Payment / winner pills ---------- */
.pg1d-pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg1d-pill {
  padding: 0.5rem 1rem; background: var(--pg1d-card); color: var(--pg1d-text);
  border-radius: 999px; font-size: 1.25rem; font-weight: 600;
  border: 1px solid var(--pg1d-border); display: inline-flex; align-items: center; gap: 0.4rem;
}
.pg1d-pill i { color: var(--pg1d-accent); }

/* ---------- App download / CTA ---------- */
.pg1d-app-cta {
  background: linear-gradient(135deg, var(--pg1d-bg-soft), var(--pg1d-card));
  border-radius: var(--pg1d-radius-lg); padding: 1.6rem 1.4rem; text-align: center;
  border: 1px solid var(--pg1d-border);
}
.pg1d-app-cta h3 { color: var(--pg1d-accent); font-size: 1.7rem; margin-bottom: 0.5rem; }
.pg1d-app-cta p { margin-bottom: 1rem; font-size: 1.35rem; }
.pg1d-app-cta .pg1d-btn-group { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.pg1d-faq-item {
  background: var(--pg1d-card); border-radius: var(--pg1d-radius);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg1d-accent);
}
.pg1d-faq-item h4 { color: var(--pg1d-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.pg1d-faq-item p { font-size: 1.3rem; }

/* ---------- Footer ---------- */
.pg1d-footer {
  background: var(--pg1d-bg-deep); color: var(--pg1d-text);
  padding: 2rem 0 1rem; border-top: 1px solid var(--pg1d-border); margin-top: 1.5rem;
}
.pg1d-footer-cols { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.pg1d-footer-col h4 { color: var(--pg1d-accent); font-size: 1.4rem; margin-bottom: 0.7rem; }
.pg1d-footer-col ul li { margin-bottom: 0.4rem; }
.pg1d-footer-col a { color: var(--pg1d-text); font-size: 1.3rem; }
.pg1d-footer-col a:hover { color: var(--pg1d-accent); }
.pg1d-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.5rem;
}
.pg1d-footer-promo .pg1d-btn { font-size: 1.2rem; padding: 0.7rem 1.1rem; min-height: 40px; }
.pg1d-footer-bottom {
  text-align: center; font-size: 1.2rem; color: rgba(253, 245, 230, 0.7);
  border-top: 1px solid rgba(205, 133, 63, 0.2); padding-top: 1rem;
}
.pg1d-footer-brand { font-size: 1.3rem; color: var(--pg1d-accent); margin-bottom: 0.4rem; font-weight: 700; }

/* ---------- Mobile bottom navigation ---------- */
.pg1d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--pg1d-bottomnav-h);
  background: var(--pg1d-bg-deep);
  border-top: 1px solid var(--pg1d-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.3);
}
.pg1d-bottom-nav a, .pg1d-bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  color: var(--pg1d-text); background: transparent; border: none;
  font-size: 1.1rem; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, color 0.15s ease;
}
.pg1d-bottom-nav a i, .pg1d-bottom-nav button i { font-size: 2.2rem; margin-bottom: 0.2rem; color: var(--pg1d-text); }
.pg1d-bottom-nav a:active, .pg1d-bottom-nav button:active { transform: scale(0.9); }
.pg1d-bottom-nav .pg1d-bn-active i,
.pg1d-bottom-nav .pg1d-bn-active { color: var(--pg1d-accent); }
.pg1d-bottom-nav .pg1d-bn-promo i { color: var(--pg1d-accent-deep); }

/* ---------- Desktop: hide bottom nav & expand layout ---------- */
@media (min-width: 769px) {
  .pg1d-bottom-nav { display: none; }
  body { max-width: 100%; }
  .pg1d-container { max-width: 1200px; }
  .pg1d-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pg1d-grid { grid-template-columns: repeat(6, 1fr); }
  .pg1d-features { grid-template-columns: repeat(3, 1fr); }
  .pg1d-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pg1d-header-inner { max-width: 1200px; }
  .pg1d-main { padding-bottom: 2rem; }
}

/* ---------- Small phone safety ---------- */
@media (max-width: 360px) {
  .pg1d-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg1d-grid { grid-template-columns: repeat(2, 1fr); }
}
