/* PG Soft website core styles
 * Palette: #1B263B (dark navy bg), #FFFFBA (pale yellow text),
 *          #FFB6C1 (light pink accent), #FF1493 (deep pink primary)
 * All custom classes use the g22f- prefix for namespace isolation.
 * Mobile-first design with a 430px max content width.
 */

:root {
  --g22f-primary: #FF1493;
  --g22f-primary-dark: #C0106F;
  --g22f-bg: #1B263B;
  --g22f-bg-alt: #0F1727;
  --g22f-bg-light: #243554;
  --g22f-text: #FFFFBA;
  --g22f-text-muted: #D8D8A8;
  --g22f-accent: #FFB6C1;
  --g22f-gold: #FFD36E;
  --g22f-border: rgba(255, 182, 193, 0.18);
  --g22f-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --g22f-radius: 14px;
  --g22f-header-h: 60px;
  --g22f-bottom-nav-h: 64px;
  --g22f-max-w: 430px;
  --g22f-vh: 1vh;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--g22f-text);
  background: var(--g22f-bg);
  background-image: linear-gradient(180deg, #1B263B 0%, #0F1727 55%, #1B263B 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--g22f-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--g22f-primary); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.g22f-container { width: 100%; max-width: var(--g22f-max-w); margin: 0 auto; padding: 0 1.2rem; }
.g22f-wrapper { padding: 1.6rem 0; }

/* ===== Header ===== */
.g22f-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g22f-header-h);
  z-index: 1000;
  background: rgba(15, 23, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g22f-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.g22f-header-scrolled {
  background: rgba(15, 23, 39, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.g22f-header-inner {
  max-width: var(--g22f-max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.g22f-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--g22f-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
.g22f-logo img { width: 32px; height: 32px; border-radius: 8px; }
.g22f-logo span {
  background: linear-gradient(90deg, var(--g22f-accent), var(--g22f-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g22f-header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ===== Buttons ===== */
.g22f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  font-size: 1.3rem; font-weight: 600;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 38px; white-space: nowrap; line-height: 1;
}
.g22f-btn:hover { transform: translateY(-1px); }
.g22f-btn:active { transform: scale(0.96); }
.g22f-btn-primary {
  background: linear-gradient(135deg, var(--g22f-primary), var(--g22f-primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.35);
}
.g22f-btn-primary:hover { color: #fff; box-shadow: 0 6px 18px rgba(255, 20, 147, 0.55); }
.g22f-btn-outline { background: transparent; color: var(--g22f-accent); border: 1px solid var(--g22f-accent); }
.g22f-btn-outline:hover { background: rgba(255, 182, 193, 0.12); color: var(--g22f-accent); }
.g22f-btn-block { width: 100%; }

.g22f-menu-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--g22f-accent);
  border-radius: 8px;
  font-size: 2rem;
}

/* ===== Mobile slide-in menu ===== */
.g22f-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 82%; max-width: 320px;
  height: 100vh;
  background: var(--g22f-bg-alt);
  border-left: 1px solid var(--g22f-border);
  z-index: 9999;
  padding: 2rem 1.4rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}
.g22f-mobile-menu.g22f-menu-open { right: 0; }
.g22f-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.g22f-menu-overlay.g22f-menu-overlay-open { opacity: 1; visibility: visible; }
.g22f-mobile-menu h3 {
  color: var(--g22f-primary);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--g22f-border);
  padding-bottom: 0.4rem;
}
.g22f-mobile-menu a {
  display: block;
  padding: 0.9rem 0.8rem;
  color: var(--g22f-text);
  border-bottom: 1px solid rgba(255, 182, 193, 0.06);
  font-size: 1.4rem;
}
.g22f-mobile-menu a:hover { background: rgba(255, 20, 147, 0.12); color: var(--g22f-accent); }
.g22f-menu-close { position: absolute; top: 0.8rem; right: 1rem; font-size: 2.2rem; color: var(--g22f-accent); }

/* ===== Main ===== */
.g22f-main { padding-top: var(--g22f-header-h); min-height: 100vh; }

/* ===== Carousel ===== */
.g22f-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--g22f-radius);
  overflow: hidden;
  box-shadow: var(--g22f-shadow);
  background: var(--g22f-bg-alt);
}
.g22f-carousel-track { position: relative; width: 100%; height: 100%; }
.g22f-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.g22f-carousel-slide.g22f-active { opacity: 1; }
.g22f-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g22f-carousel-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 39, 0.75) 100%);
  pointer-events: none;
}
.g22f-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 2;
}
.g22f-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s, transform 0.2s;
}
.g22f-carousel-dot.g22f-active { background: var(--g22f-primary); transform: scale(1.35); }
.g22f-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; font-size: 1.5rem;
}
.g22f-carousel-nav:hover { background: var(--g22f-primary); }
.g22f-carousel-nav-prev { left: 0.5rem; }
.g22f-carousel-nav-next { right: 0.5rem; }

/* ===== Sections / typography ===== */
.g22f-section { margin: 1.8rem 0; }
.g22f-section-title {
  font-size: 1.7rem; font-weight: 700;
  color: var(--g22f-accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g22f-primary);
}
.g22f-section-title i,
.g22f-section-title .material-icons,
.g22f-section-title bi { color: var(--g22f-primary); font-size: 2rem; }
.g22f-section-text { font-size: 1.35rem; line-height: 1.65; color: var(--g22f-text-muted); margin-bottom: 0.9rem; }
.g22f-h1 {
  font-size: 1.9rem; line-height: 1.3;
  color: var(--g22f-text);
  margin: 1.2rem 0 0.9rem;
  font-weight: 800;
}
.g22f-h1 .g22f-highlight { color: var(--g22f-primary); }
.g22f-content-p { font-size: 1.4rem; line-height: 1.65; color: var(--g22f-text-muted); margin-bottom: 0.9rem; }
.g22f-content-p strong { color: var(--g22f-text); font-weight: 700; }

/* ===== Game grid & cards ===== */
.g22f-game-section { margin: 1.6rem 0; }
.g22f-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.g22f-game-card {
  display: block;
  background: var(--g22f-bg-light);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--g22f-border);
}
.g22f-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 20, 147, 0.3);
  border-color: var(--g22f-primary);
}
.g22f-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.g22f-game-card-name {
  font-size: 1.1rem; padding: 0.4rem 0.3rem;
  text-align: center;
  color: var(--g22f-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Generic card ===== */
.g22f-card {
  background: var(--g22f-bg-light);
  border-radius: var(--g22f-radius);
  padding: 1.3rem;
  border: 1px solid var(--g22f-border);
  margin-bottom: 1rem;
}
.g22f-card h3 { color: var(--g22f-accent); font-size: 1.55rem; margin-bottom: 0.5rem; }
.g22f-card p { color: var(--g22f-text-muted); font-size: 1.3rem; line-height: 1.6; }

/* ===== Stats grid ===== */
.g22f-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin: 0.9rem 0; }
.g22f-stat {
  background: var(--g22f-bg-light);
  padding: 0.9rem 0.6rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--g22f-border);
}
.g22f-stat-value { font-size: 1.7rem; font-weight: 800; color: var(--g22f-primary); }
.g22f-stat-label { font-size: 1.1rem; color: var(--g22f-text-muted); margin-top: 0.2rem; }

/* ===== Testimonials ===== */
.g22f-testimonial {
  background: var(--g22f-bg-light);
  border-radius: 10px;
  padding: 1.1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--g22f-primary);
}
.g22f-testimonial-text { font-style: italic; color: var(--g22f-text); font-size: 1.3rem; line-height: 1.5; }
.g22f-testimonial-author { color: var(--g22f-accent); font-size: 1.15rem; margin-top: 0.5rem; font-weight: 600; }

/* ===== FAQ ===== */
.g22f-faq-item {
  background: var(--g22f-bg-light);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--g22f-border);
}
.g22f-faq-item h4 { color: var(--g22f-accent); font-size: 1.35rem; margin-bottom: 0.35rem; }
.g22f-faq-item p { color: var(--g22f-text-muted); font-size: 1.25rem; line-height: 1.55; }

/* ===== Feature list ===== */
.g22f-feature-list { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.g22f-feature-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  background: var(--g22f-bg-light);
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--g22f-border);
}
.g22f-feature-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(255, 20, 147, 0.15);
  color: var(--g22f-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.g22f-feature-text h4 { color: var(--g22f-accent); font-size: 1.3rem; margin-bottom: 0.2rem; }
.g22f-feature-text p { color: var(--g22f-text-muted); font-size: 1.2rem; line-height: 1.5; }

/* ===== Payment chips ===== */
.g22f-payment-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0; }
.g22f-payment-chip {
  background: var(--g22f-bg-light);
  color: var(--g22f-text);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 1.15rem;
  border: 1px solid var(--g22f-border);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.g22f-payment-chip i, .g22f-payment-chip .bi { color: var(--g22f-gold); }

/* ===== Promo banner & link ===== */
.g22f-promo-banner {
  background: linear-gradient(135deg, var(--g22f-primary), var(--g22f-primary-dark));
  border-radius: var(--g22f-radius);
  padding: 1.3rem;
  color: #fff;
  text-align: center;
  margin: 1.3rem 0;
  box-shadow: 0 6px 18px rgba(255, 20, 147, 0.35);
}
.g22f-promo-banner h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.g22f-promo-banner p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 0.8rem; }
.g22f-promo-link {
  color: var(--g22f-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.g22f-promo-link:hover { color: var(--g22f-accent); }

/* ===== Footer ===== */
.g22f-footer {
  background: var(--g22f-bg-alt);
  padding: 1.8rem 1.2rem 9rem;
  margin-top: 2rem;
  border-top: 2px solid var(--g22f-primary);
}
.g22f-footer h4 { color: var(--g22f-accent); font-size: 1.35rem; margin: 1.2rem 0 0.5rem; }
.g22f-footer p { color: var(--g22f-text-muted); font-size: 1.2rem; line-height: 1.6; margin-bottom: 0.8rem; }
.g22f-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.g22f-footer-links a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 20, 147, 0.12);
  color: var(--g22f-accent);
  border-radius: 6px;
  font-size: 1.15rem;
  border: 1px solid var(--g22f-border);
  transition: background 0.2s, color 0.2s;
}
.g22f-footer-links a:hover { background: var(--g22f-primary); color: #fff; }
.g22f-footer-bottom {
  text-align: center;
  margin-top: 1.3rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--g22f-border);
  font-size: 1.1rem;
  color: var(--g22f-text-muted);
}

/* ===== Mobile bottom navigation ===== */
.g22f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g22f-bottom-nav-h);
  background: rgba(15, 23, 39, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--g22f-border);
  z-index: 1000;
  display: flex; align-items: stretch; justify-content: space-around;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3);
}
.g22f-bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--g22f-text-muted);
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
  min-width: 60px; min-height: 60px;
}
.g22f-bottom-nav-item i,
.g22f-bottom-nav-item .material-icons,
.g22f-bottom-nav-item .material-icons-outlined,
.g22f-bottom-nav-item ion-icon {
  font-size: 2.2rem;
  transition: transform 0.2s ease;
}
.g22f-bottom-nav-item span { font-size: 1rem; line-height: 1; }
.g22f-bottom-nav-item:hover { color: var(--g22f-accent); }
.g22f-bottom-nav-item:hover i,
.g22f-bottom-nav-item:hover .material-icons,
.g22f-bottom-nav-item:hover ion-icon { transform: scale(1.12); }
.g22f-bottom-nav-item.g22f-active { color: var(--g22f-primary); }
.g22f-bottom-nav-item.g22f-active::before {
  content: '';
  position: absolute;
  top: 0; left: 28%; right: 28%;
  height: 3px;
  background: var(--g22f-primary);
  border-radius: 0 0 6px 6px;
}

/* ===== Toast ===== */
.g22f-toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--g22f-primary);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font-size: 1.25rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}
.g22f-toast.g22f-toast-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .g22f-main { padding-bottom: calc(var(--g22f-bottom-nav-h) + 20px); }
  .g22f-footer { padding-bottom: 9rem; }
}

@media (min-width: 400px) and (max-width: 768px) {
  .g22f-game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 769px) {
  .g22f-bottom-nav { display: none; }
  .g22f-container { max-width: 768px; }
  .g22f-header-inner { max-width: 768px; }
  .g22f-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g22f-carousel { height: 320px; }
  .g22f-footer { padding-bottom: 2rem; }
}
