/* ============================================================
 * gperya apk - design-12c7.css
 * Palette: #1B263B (bg) | #CCCCCC (text) | #FF9500 (accent) | #00FFFF (cyan)
 * Mobile-first, max 430px primary. All classes prefixed pg12-
 * ============================================================ */

:root {
  --pg12-bg: #1B263B;
  --pg12-bg-2: #131c2c;
  --pg12-bg-3: #0e1626;
  --pg12-text: #CCCCCC;
  --pg12-text-dim: #9aa6bd;
  --pg12-primary: #FF9500;
  --pg12-cyan: #00FFFF;
  --pg12-white: #ffffff;
  --pg12-radius: 14px;
  --pg12-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, var(--pg12-bg-2) 0%, var(--pg12-bg) 55%, var(--pg12-bg-3) 100%);
  color: var(--pg12-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg12-cyan); text-decoration: none; }
a:hover { color: var(--pg12-primary); }

/* ---------- Layout helpers ---------- */
.pg12-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pg12-wrapper { padding: 8rem 0 9rem; }
.pg12-grid { display: grid; gap: 12px; }
.pg12-section { margin: 2.4rem 0; }
.pg12-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.pg12-reveal.pg12-visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.pg12-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.96), rgba(27, 38, 59, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
}
.pg12-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
}
.pg12-brand { display: flex; align-items: center; gap: 8px; color: var(--pg12-white); font-weight: 700; font-size: 1.5rem; }
.pg12-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pg12-brand-name { color: var(--pg12-cyan); }
.pg12-actions { display: flex; align-items: center; gap: 6px; }
.pg12-menu-btn {
  background: transparent; border: 0; color: var(--pg12-text);
  font-size: 2rem; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.pg12-menu-btn.pg12-active { color: var(--pg12-primary); }

/* ---------- Buttons ---------- */
.pg12-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 8px 16px; font-size: 1.3rem; font-weight: 700;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 38px;
}
.pg12-btn:hover { transform: translateY(-2px); }
.pg12-btn-primary {
  background: linear-gradient(135deg, var(--pg12-primary), #ff6a00);
  color: #1a1100;
  box-shadow: 0 6px 16px rgba(255, 149, 0, 0.35);
}
.pg12-btn-cyan {
  background: linear-gradient(135deg, var(--pg12-cyan), #00b8c4);
  color: #052029;
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.25);
}
.pg12-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--pg12-text);
  border: 1px solid rgba(0, 255, 255, 0.25);
}
.pg12-btn-block { display: flex; width: 100%; }

/* ---------- Mobile slide menu ---------- */
#pg12-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--pg12-bg-3);
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  padding: 6.4rem 14px 16px;
  transform: translateY(-120%);
  transition: transform .32s ease;
  z-index: 9999;
  max-height: 80vh; overflow-y: auto;
}
#pg12-mobile-menu.pg12-menu-open { transform: translateY(0); }
#pg12-mobile-menu a {
  display: block; padding: 12px 14px;
  color: var(--pg12-text); border-bottom: 1px solid rgba(204, 204, 204, 0.08);
  font-weight: 600;
}
#pg12-mobile-menu a:hover { color: var(--pg12-primary); background: rgba(255, 149, 0, 0.06); }

/* ---------- Hero carousel ---------- */
.pg12-hero {
  position: relative; border-radius: var(--pg12-radius);
  overflow: hidden; box-shadow: var(--pg12-shadow); margin-top: 10px;
}
.pg12-hero-slide {
  position: relative; display: block; opacity: 0;
  transition: opacity .6s ease; pointer-events: none; height: 200px;
}
.pg12-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg12-hero-slide.pg12-active { opacity: 1; pointer-events: auto; }
.pg12-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px;
  background: linear-gradient(0deg, rgba(14, 22, 38, 0.92), transparent);
  color: var(--pg12-white);
}
.pg12-hero-caption strong { color: var(--pg12-primary); }
.pg12-hero-dots {
  position: absolute; bottom: 10px; right: 12px;
  display: flex; gap: 6px;
}
.pg12-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(204, 204, 204, 0.45); cursor: pointer;
}
.pg12-hero-dot.pg12-active { background: var(--pg12-cyan); box-shadow: 0 0 8px var(--pg12-cyan); }

/* ---------- Headings ---------- */
.pg12-h1 {
  font-size: 2.1rem; line-height: 2.6rem; color: var(--pg12-white);
  margin: 1.6rem 0 0.6rem; font-weight: 800; text-align: center;
}
.pg12-h1 span { color: var(--pg12-primary); }
.pg12-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.6rem; font-weight: 700; color: var(--pg12-cyan);
  margin: 2rem 0 1rem; padding-left: 10px;
  border-left: 4px solid var(--pg12-primary);
}
.pg12-section-title i { color: var(--pg12-primary); }
.pg12-lead { color: var(--pg12-text-dim); text-align: center; margin: 0 0 1rem; }

/* ---------- Cards ---------- */
.pg12-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.12);
  border-radius: var(--pg12-radius);
  padding: 14px; box-shadow: var(--pg12-shadow);
}
.pg12-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg12-feature {
  background: rgba(0, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 12px; padding: 12px; text-align: center;
}
.pg12-feature i { font-size: 2.2rem; color: var(--pg12-primary); margin-bottom: 6px; }
.pg12-feature h3 { margin: 4px 0; font-size: 1.35rem; color: var(--pg12-white); }
.pg12-feature p { margin: 0; font-size: 1.2rem; color: var(--pg12-text-dim); }

/* ---------- Game grid ---------- */
.pg12-games-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.pg12-game {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px; padding: 6px; gap: 4px;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.pg12-game:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 255, 255, 0.18); }
.pg12-game img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.pg12-game-name {
  font-size: 1rem; color: var(--pg12-text); line-height: 1.2rem;
  height: 2.4rem; overflow: hidden; font-weight: 600;
}
.pg12-game-tag {
  position: absolute; top: 4px; left: 4px;
  background: var(--pg12-primary); color: #1a1100;
  font-size: 0.9rem; font-weight: 700; padding: 1px 6px; border-radius: 6px;
}
.pg12-game-wrap { position: relative; width: 100%; }

/* ---------- RTP / stats ---------- */
.pg12-rtp-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-bottom: 1px dashed rgba(204, 204, 204, 0.15); }
.pg12-rtp-row:last-child { border-bottom: 0; }
.pg12-rtp-bar { flex: 1; height: 6px; background: rgba(204, 204, 204, 0.15); border-radius: 6px; margin: 0 10px; overflow: hidden; }
.pg12-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--pg12-cyan), var(--pg12-primary)); }

/* ---------- Testimonials ---------- */
.pg12-testimonial { background: rgba(0, 255, 255, 0.04); border-left: 3px solid var(--pg12-primary); padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; }
.pg12-testimonial .pg12-stars { color: var(--pg12-primary); }
.pg12-testimonial p { margin: 4px 0 0; font-size: 1.25rem; color: var(--pg12-text); }
.pg12-testimonial cite { color: var(--pg12-cyan); font-style: normal; font-size: 1.1rem; }

/* ---------- Payment chips ---------- */
.pg12-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg12-pay {
  flex: 1 1 30%; min-width: 90px; text-align: center;
  background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 6px;
  border: 1px solid rgba(0, 255, 255, 0.12);
}
.pg12-pay i { font-size: 2rem; color: var(--pg12-cyan); }
.pg12-pay span { display: block; margin-top: 4px; font-size: 1.1rem; }

/* ---------- Winners ---------- */
.pg12-winner { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(204, 204, 204, 0.08); font-size: 1.2rem; }
.pg12-winner b { color: var(--pg12-primary); }

/* ---------- FAQ ---------- */
.pg12-faq-item { background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(0, 255, 255, 0.08); }
.pg12-faq-item h3 { margin: 0 0 4px; color: var(--pg12-white); font-size: 1.3rem; }
.pg12-faq-item p { margin: 0; color: var(--pg12-text-dim); font-size: 1.2rem; }

/* ---------- CTA band ---------- */
.pg12-cta {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.16), rgba(0, 255, 255, 0.10));
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--pg12-radius); padding: 18px; text-align: center; margin: 1.4rem 0;
}
.pg12-cta h2 { margin: 0 0 8px; color: var(--pg12-white); font-size: 1.7rem; }
.pg12-cta p { margin: 0 0 12px; color: var(--pg12-text); }
.pg12-text-link { color: var(--pg12-primary); font-weight: 700; }
.pg12-text-link:hover { text-decoration: underline; color: var(--pg12-cyan); }

/* ---------- Footer ---------- */
.pg12-footer {
  background: var(--pg12-bg-3);
  border-top: 1px solid rgba(0, 255, 255, 0.12);
  padding: 22px 14px 90px;
  color: var(--pg12-text-dim);
}
.pg12-footer h4 { color: var(--pg12-cyan); margin: 10px 0 6px; font-size: 1.3rem; }
.pg12-footer a { color: var(--pg12-text); }
.pg12-footer-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pg12-footer-links a { font-size: 1.15rem; }
.pg12-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg12-footer-promos .pg12-btn { font-size: 1.1rem; padding: 6px 12px; }
.pg12-copy { text-align: center; font-size: 1.1rem; margin-top: 12px; color: var(--pg12-text-dim); }

/* ---------- Bottom nav (mobile only) ---------- */
.pg12-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1000; height: 62px;
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.98), rgba(27, 38, 59, 1));
  border-top: 1px solid rgba(0, 255, 255, 0.18);
  display: flex; justify-content: space-around; align-items: stretch;
}
.pg12-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--pg12-text); cursor: pointer;
  background: transparent; border: 0; text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.pg12-bottomnav-btn i, .pg12-bottomnav-btn span.material-symbols-outlined {
  font-size: 22px; line-height: 1;
}
.pg12-bottomnav-btn .pg12-bottomnav-label { font-size: 1rem; line-height: 1.2rem; }
.pg12-bottomnav-btn:active { transform: scale(0.92); }
.pg12-bottomnav-active { color: var(--pg12-primary); }
.pg12-bottomnav-promo { color: var(--pg12-cyan); }
.pg12-bottomnav-badge {
  position: absolute; top: 6px; right: 22%;
  background: var(--pg12-primary); color: #1a1100;
  font-size: 0.9rem; font-weight: 700;
  border-radius: 999px; padding: 0 5px; line-height: 1.4rem;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .pg12-bottomnav { display: none; }
  .pg12-container { max-width: 720px; }
  .pg12-games-grid { grid-template-columns: repeat(8, 1fr); }
}

/* ---------- Mobile <430 fine tuning ---------- */
@media (max-width: 430px) {
  html { font-size: 58%; }
  .pg12-games-grid { grid-template-columns: repeat(3, 1fr); }
  .pg12-h1 { font-size: 1.9rem; }
  .pg12-feature-grid { grid-template-columns: 1fr 1fr; }
  main { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .pg12-games-grid { grid-template-columns: repeat(2, 1fr); }
  .pg12-brand { font-size: 1.3rem; }
}

/* Utility */
.pg12-text-center { text-align: center; }
.pg12-mt-12 { margin-top: 12px; }
.pg12-mb-0 { margin-bottom: 0; }
.pg12-hidden { display: none !important; }
