/* =========================================================
 * kuya king ph - base styles
 * Class prefix: g67e-
 * Palette: #BA55D3 | #66CDAA | #1C2833 | #8B008B | #9966CC
 * ========================================================= */

:root {
  --g67e-primary: #BA55D3;
  --g67e-secondary: #66CDAA;
  --g67e-bg: #1C2833;
  --g67e-bg-alt: #141c25;
  --g67e-card: #22303d;
  --g67e-deep: #8B008B;
  --g67e-soft: #9966CC;
  --g67e-text: #f3eef7;
  --g67e-muted: #a7b0bd;
  --g67e-gold: #ffd166;
  --g67e-border: rgba(186, 85, 211, 0.25);
  --g67e-radius: 14px;
  --g67e-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --g67e-header-h: 60px;
  --g67e-bnav-h: 62px;
}

* { 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", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #2a1d3a 0%, var(--g67e-bg) 55%, var(--g67e-bg-alt) 100%);
  color: var(--g67e-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--g67e-secondary); text-decoration: none; }

/* ============== Header ============== */
.g67e-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g67e-header-h);
  background: linear-gradient(90deg, var(--g67e-bg) 0%, #2c1b3e 60%, var(--g67e-deep) 100%);
  border-bottom: 1px solid var(--g67e-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.g67e-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.g67e-brand img { width: 30px; height: 30px; border-radius: 8px; }
.g67e-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g67e-brand-name span { color: var(--g67e-secondary); }

.g67e-header-actions { display: flex; align-items: center; gap: 6px; }

.g67e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--g67e-primary) 0%, var(--g67e-deep) 100%);
  box-shadow: 0 3px 10px rgba(139, 0, 139, 0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.g67e-btn:hover { transform: translateY(-1px); }
.g67e-btn:active { transform: scale(.97); }

.g67e-btn-outline {
  background: transparent;
  border: 1.5px solid var(--g67e-secondary);
  color: var(--g67e-secondary);
  box-shadow: none;
}

.g67e-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--g67e-border);
  color: #fff;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.g67e-menu-active { background: var(--g67e-deep); }

/* ============== Mobile Menu Drawer ============== */
.g67e-mobile-menu {
  position: fixed;
  top: var(--g67e-header-h);
  left: 50%;
  transform: translate(-50%, -12px);
  width: 100%;
  max-width: 430px;
  background: var(--g67e-bg-alt);
  border-bottom: 1px solid var(--g67e-border);
  padding: 8px 14px 14px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: var(--g67e-shadow);
}
.g67e-mobile-menu.g67e-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.g67e-mobile-menu a {
  display: block;
  padding: 11px 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--g67e-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.g67e-mobile-menu a:last-child { border-bottom: none; }
.g67e-mobile-menu a i { margin-right: 8px; color: var(--g67e-secondary); }

/* ============== Layout ============== */
.g67e-main { padding-top: calc(var(--g67e-header-h) + 8px); }

.g67e-container {
  width: 100%;
  max-width: 430px;
  padding: 0 12px;
  margin: 0 auto;
}

.g67e-section { padding: 22px 0 6px; }
.g67e-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g67e-section-title i { color: var(--g67e-secondary); }
.g67e-section-sub { color: var(--g67e-muted); font-size: 1.25rem; margin-bottom: 12px; }

/* ============== Carousel ============== */
.g67e-carousel {
  position: relative;
  border-radius: var(--g67e-radius);
  overflow: hidden;
  box-shadow: var(--g67e-shadow);
  margin-bottom: 6px;
}
.g67e-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g67e-slide.g67e-slide-active { display: block; }
.g67e-slide img { width: 100%; height: 200px; object-fit: cover; }
.g67e-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 24px 14px 14px;
  color: #fff;
}
.g67e-slide-cap h2 { font-size: 1.7rem; color: var(--g67e-secondary); margin-bottom: 4px; }
.g67e-slide-cap p { font-size: 1.25rem; color: #eee; }

.g67e-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.g67e-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
}
.g67e-dot.g67e-dot-active { background: var(--g67e-gold); }

.g67e-car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.g67e-car-prev { left: 6px; }
.g67e-car-next { right: 6px; }

/* ============== Hero H1 ============== */
.g67e-hero { padding: 14px 0 6px; text-align: center; }
.g67e-hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  background: linear-gradient(90deg, var(--g67e-primary), var(--g67e-secondary), var(--g67e-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g67e-hero p { color: var(--g67e-muted); margin: 8px 6px 0; font-size: 1.35rem; }

.g67e-cta-row { display: flex; gap: 10px; justify-content: center; margin: 14px 0 4px; }
.g67e-cta-row .g67e-btn { min-height: 44px; flex: 1; max-width: 180px; font-size: 1.4rem; }

/* ============== Game Grid ============== */
.g67e-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--g67e-deep);
}
.g67e-cat-head h2 {
  font-size: 1.7rem;
  color: #fff;
  font-weight: 800;
}
.g67e-cat-head h2 i { color: var(--g67e-gold); margin-right: 6px; }
.g67e-cat-tag {
  font-size: 1.15rem;
  color: var(--g67e-secondary);
  border: 1px solid var(--g67e-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

.g67e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g67e-game-card {
  background: var(--g67e-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--g67e-border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.g67e-game-card:hover { transform: translateY(-2px); box-shadow: var(--g67e-shadow); }
.g67e-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1620;
}
.g67e-game-name {
  display: block;
  text-align: center;
  padding: 6px 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g67e-game-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--g67e-deep), var(--g67e-primary));
  color: #fff;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}

/* ============== Content Blocks ============== */
.g67e-card {
  background: var(--g67e-card);
  border-radius: var(--g67e-radius);
  padding: 16px;
  border: 1px solid var(--g67e-border);
  box-shadow: var(--g67e-shadow);
  margin-bottom: 14px;
}
.g67e-card h2 { font-size: 1.75rem; color: #fff; margin-bottom: 8px; }
.g67e-card h3 { font-size: 1.45rem; color: var(--g67e-secondary); margin: 10px 0 6px; }
.g67e-card p { color: var(--g67e-text); margin-bottom: 8px; font-size: 1.35rem; }
.g67e-card ul, .g67e-card ol { padding-left: 18px; margin: 6px 0 10px; }
.g67e-card li { font-size: 1.3rem; margin-bottom: 6px; color: var(--g67e-text); }

.g67e-prose p { font-size: 1.35rem; color: var(--g67e-text); margin-bottom: 8px; }
.g67e-prose strong { color: var(--g67e-secondary); font-weight: 700; }
.g67e-prose a { color: var(--g67e-gold); font-weight: 600; border-bottom: 1px dashed var(--g67e-gold); }

.g67e-step-list { counter-reset: step; list-style: none; padding-left: 0; }
.g67e-step-list li {
  position: relative;
  padding: 8px 8px 8px 42px;
  margin-bottom: 8px;
  background: rgba(186, 85, 211, 0.08);
  border-radius: 10px;
  font-size: 1.3rem;
  counter-increment: step;
}
.g67e-step-list li::before {
  content: counter(step);
  position: absolute;
  left: 8px; top: 8px;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--g67e-primary), var(--g67e-deep));
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ============== RTP table ============== */
.g67e-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.g67e-rtp-table th, .g67e-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--g67e-border);
  text-align: left;
}
.g67e-rtp-table th { color: var(--g67e-secondary); font-weight: 700; }
.g67e-rtp-bar {
  display: inline-block;
  height: 8px;
  background: linear-gradient(90deg, var(--g67e-deep), var(--g67e-secondary));
  border-radius: 4px;
  vertical-align: middle;
}

/* ============== Testimonials ============== */
.g67e-testi {
  background: linear-gradient(135deg, rgba(102, 205, 170, 0.1), rgba(186, 85, 211, 0.1));
  border-left: 3px solid var(--g67e-secondary);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.g67e-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.g67e-testi-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--g67e-deep);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.g67e-testi-name { font-weight: 700; color: #fff; font-size: 1.3rem; }
.g67e-testi-stars { color: var(--g67e-gold); font-size: 1.1rem; }
.g67e-testi p { font-size: 1.25rem; color: var(--g67e-muted); }

/* ============== Payment chips ============== */
.g67e-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g67e-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--g67e-border);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--g67e-text);
}
.g67e-chip i { color: var(--g67e-secondary); }

/* ============== Winners strip ============== */
.g67e-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(186, 85, 211, 0.08);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.g67e-winner b { color: var(--g67e-gold); }

/* ============== Banner CTA ============== */
.g67e-banner-cta {
  background: linear-gradient(135deg, var(--g67e-deep) 0%, var(--g67e-primary) 60%, var(--g67e-soft) 100%);
  border-radius: var(--g67e-radius);
  padding: 18px 14px;
  text-align: center;
  margin: 14px 0;
  box-shadow: var(--g67e-shadow);
}
.g67e-banner-cta h2 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.g67e-banner-cta p { color: #f6e8ff; font-size: 1.3rem; margin-bottom: 10px; }

/* ============== Search ============== */
.g67e-search-wrap { margin: 8px 0 4px; }
.g67e-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid var(--g67e-border);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.3rem;
  outline: none;
}
.g67e-search:focus { border-color: var(--g67e-secondary); }

/* ============== Footer ============== */
.g67e-footer {
  background: var(--g67e-bg-alt);
  border-top: 1px solid var(--g67e-border);
  padding: 22px 14px 14px;
  margin-top: 18px;
  color: var(--g67e-muted);
  font-size: 1.25rem;
}
.g67e-footer h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.g67e-footer p { margin-bottom: 8px; }
.g67e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.g67e-footer-links a {
  color: var(--g67e-secondary);
  font-size: 1.2rem;
  padding: 4px 8px;
  border: 1px solid var(--g67e-border);
  border-radius: 6px;
}
.g67e-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.g67e-footer-promo .g67e-btn { flex: 1; min-width: 120px; }
.g67e-footer-copy {
  text-align: center;
  border-top: 1px dashed rgba(255,255,255,.08);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 1.15rem;
  color: var(--g67e-muted);
}

/* ============== Bottom Nav ============== */
.g67e-bnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g67e-bnav-h);
  background: linear-gradient(180deg, #2c1b3e 0%, var(--g67e-bg) 100%);
  border-top: 1px solid var(--g67e-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.g67e-bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  color: var(--g67e-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .15s, transform .15s;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.g67e-bnav-btn .material-icons,
.g67e-bnav-btn i,
.g67e-bnav-btn ion-icon,
.g67e-bnav-btn bi {
  font-size: 24px;
}
.g67e-bnav-btn:hover { color: var(--g67e-secondary); transform: translateY(-1px); }
.g67e-bnav-btn:active { transform: scale(.92); }
.g67e-bnav-active { color: var(--g67e-gold) !important; }
.g67e-bnav-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  background: var(--g67e-gold);
  border-radius: 0 0 4px 4px;
}
.g67e-bnav-promo {
  color: var(--g67e-secondary);
}
.g67e-bnav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--g67e-gold);
  color: var(--g67e-bg);
  font-size: .9rem;
  font-weight: 800;
  border-radius: 50%;
  min-width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ============== Desktop & responsive ============== */
@media (min-width: 769px) {
  .g67e-bnav { display: none; }
  body { max-width: 430px; }
}

@media (max-width: 768px) {
  .g67e-main { padding-bottom: calc(var(--g67e-bnav-h) + 12px); }
}

@media (max-width: 360px) {
  .g67e-grid { grid-template-columns: repeat(2, 1fr); }
  .g67e-hero h1 { font-size: 2rem; }
}

.g67e-hide-mobile { display: none; }
@media (min-width: 769px) { .g67e-hide-desktop { display: none; } }

.g67e-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g67e-border), transparent);
  margin: 14px 0;
}
