/* pp999 core stylesheet - basefiles only */
/* All custom classes use v9d5- prefix */

:root {
  --v9d5-primary: #2E8B57;
  --v9d5-primary-dark: #1E5E3C;
  --v9d5-bg: #1E1E1E;
  --v9d5-bg-soft: #2A2A2A;
  --v9d5-bg-card: #262626;
  --v9d5-text: #FDF5E6;
  --v9d5-text-muted: #FFE4B5;
  --v9d5-accent: #8FBC8F;
  --v9d5-accent-gold: #FFD27A;
  --v9d5-border: #3A3A3A;
  --v9d5-danger: #E05A5A;
  --v9d5-header-h: 56px;
  --v9d5-bnav-h: 60px;
  --v9d5-radius: 10px;
  --v9d5-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--v9d5-bg);
  color: var(--v9d5-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(--v9d5-accent); text-decoration: none; }

.v9d5-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v9d5-wrapper { max-width: 430px; margin: 0 auto; position: relative; }

/* ===== Header ===== */
.v9d5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v9d5-header-h);
  background: linear-gradient(90deg, #1E1E1E 0%, #243a2c 60%, #1E1E1E 100%);
  border-bottom: 1px solid var(--v9d5-primary-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.v9d5-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.v9d5-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v9d5-text);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}
.v9d5-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v9d5-logo .v9d5-logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--v9d5-primary), var(--v9d5-accent-gold));
  display: flex; align-items: center; justify-content: center;
  color: #1E1E1E; font-weight: 800; font-size: 1.3rem;
}
.v9d5-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v9d5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.v9d5-btn:active { transform: scale(0.96); }
.v9d5-btn-register {
  background: linear-gradient(135deg, var(--v9d5-accent-gold), #f5b942);
  color: #1E1E1E;
  box-shadow: 0 2px 8px rgba(255, 210, 122, 0.35);
}
.v9d5-btn-login {
  background: var(--v9d5-primary);
  color: var(--v9d5-text);
  border: 1px solid var(--v9d5-accent);
}
.v9d5-btn-ghost {
  background: transparent;
  color: var(--v9d5-text);
  border: 1px solid var(--v9d5-border);
}
.v9d5-menu-toggle {
  background: transparent;
  border: 1px solid var(--v9d5-border);
  color: var(--v9d5-text);
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ===== Mobile Menu ===== */
.v9d5-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.v9d5-menu-overlay.v9d5-overlay-show { opacity: 1; visibility: visible; }
.v9d5-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 78%; max-width: 320px;
  height: 100%;
  background: var(--v9d5-bg-soft);
  z-index: 9999;
  padding: 1.6rem 1.2rem;
  transition: right .28s ease;
  overflow-y: auto;
}
.v9d5-mobile-menu.v9d5-menu-open { right: 0; }
.v9d5-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.4rem;
}
.v9d5-menu-title { color: var(--v9d5-accent-gold); font-size: 1.6rem; font-weight: 700; }
.v9d5-menu-close {
  background: transparent; border: none; color: var(--v9d5-text);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.v9d5-menu-list { list-style: none; }
.v9d5-menu-list li {
  border-bottom: 1px solid var(--v9d5-border);
}
.v9d5-menu-list a, .v9d5-menu-list button {
  display: flex; align-items: center; gap: 0.8rem;
  width: 100%;
  padding: 1.1rem 0.6rem;
  color: var(--v9d5-text);
  background: transparent; border: none;
  font-size: 1.4rem; text-align: left;
  cursor: pointer;
}
.v9d5-menu-list a:active, .v9d5-menu-list button:active { color: var(--v9d5-accent-gold); }
.v9d5-menu-list .mi { color: var(--v9d5-accent); font-size: 2rem; }

/* ===== Layout ===== */
main { padding-top: calc(var(--v9d5-header-h) + 8px); }
.v9d5-section { padding: 1.6rem 0; }
.v9d5-section-title {
  font-size: 1.7rem; font-weight: 700;
  color: var(--v9d5-accent-gold);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.v9d5-section-title .ico { color: var(--v9d5-primary); }
.v9d5-section-sub { color: var(--v9d5-text-muted); font-size: 1.25rem; margin-bottom: 1rem; }

/* ===== Carousel ===== */
.v9d5-carousel {
  position: relative;
  border-radius: var(--v9d5-radius);
  overflow: hidden;
  box-shadow: var(--v9d5-shadow);
  background: var(--v9d5-bg-soft);
}
.v9d5-slides { position: relative; }
.v9d5-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v9d5-slide.v9d5-slide-active { display: block; }
.v9d5-slide img { width: 100%; height: 180px; object-fit: cover; }
.v9d5-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--v9d5-text);
  font-size: 1.3rem; font-weight: 600;
}
.v9d5-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.v9d5-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.v9d5-dot.v9d5-dot-active { background: var(--v9d5-accent-gold); }
.v9d5-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff;
  border: none; width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.v9d5-arrow-prev { left: 8px; }
.v9d5-arrow-next { right: 8px; }

/* ===== Hero CTA ===== */
.v9d5-hero-cta {
  background: linear-gradient(135deg, var(--v9d5-primary-dark), var(--v9d5-primary));
  border-radius: var(--v9d5-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--v9d5-shadow);
}
.v9d5-hero-cta-text { color: var(--v9d5-text); font-size: 1.3rem; font-weight: 600; }
.v9d5-hero-cta-text strong { color: var(--v9d5-accent-gold); }

/* ===== Filter chips ===== */
.v9d5-chips {
  display: flex; gap: 0.6rem; overflow-x: auto;
  padding: 0.4rem 0 0.8rem; margin-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}
.v9d5-chips::-webkit-scrollbar { display: none; }
.v9d5-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--v9d5-bg-soft);
  color: var(--v9d5-text-muted);
  font-size: 1.2rem; font-weight: 600;
  border: 1px solid var(--v9d5-border);
  cursor: pointer;
}
.v9d5-chip.v9d5-chip-active {
  background: var(--v9d5-primary);
  color: var(--v9d5-text);
  border-color: var(--v9d5-accent);
}

/* ===== Game grid ===== */
.v9d5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.v9d5-game-card {
  background: var(--v9d5-bg-card);
  border: 1px solid var(--v9d5-border);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; align-items: center;
  min-height: 88px;
}
.v9d5-game-card:active { transform: scale(0.95); border-color: var(--v9d5-accent); }
.v9d5-game-card img {
  width: 48px; height: 48px; border-radius: 8px; margin-bottom: 0.35rem;
  object-fit: cover;
}
.v9d5-game-card .v9d5-game-name {
  font-size: 1.05rem;
  color: var(--v9d5-text);
  line-height: 1.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.v9d5-game-tag {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--v9d5-accent-gold);
  background: rgba(255,210,122,0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

/* ===== Cards / Info blocks ===== */
.v9d5-card {
  background: var(--v9d5-bg-card);
  border: 1px solid var(--v9d5-border);
  border-radius: var(--v9d5-radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.v9d5-card h3 { color: var(--v9d5-accent-gold); font-size: 1.4rem; margin-bottom: 0.5rem; }
.v9d5-card p { color: var(--v9d5-text); font-size: 1.25rem; margin-bottom: 0.5rem; }
.v9d5-card ul { list-style: none; padding-left: 0; }
.v9d5-card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  color: var(--v9d5-text);
}
.v9d5-card ul li::before {
  content: "▸";
  position: absolute; left: 0; top: 0;
  color: var(--v9d5-primary);
}
.v9d5-link-inline {
  color: var(--v9d5-accent-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Features grid ===== */
.v9d5-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v9d5-feature {
  background: var(--v9d5-bg-card);
  border: 1px solid var(--v9d5-border);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.v9d5-feature .ico { font-size: 2.2rem; color: var(--v9d5-primary); margin-bottom: 0.3rem; }
.v9d5-feature h4 { color: var(--v9d5-accent-gold); font-size: 1.2rem; margin-bottom: 0.2rem; }
.v9d5-feature p { font-size: 1.1rem; color: var(--v9d5-text-muted); line-height: 1.3rem; }

/* ===== RTP table ===== */
.v9d5-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.v9d5-rtp-table th, .v9d5-rtp-table td {
  border: 1px solid var(--v9d5-border);
  padding: 0.5rem 0.6rem;
  text-align: left;
}
.v9d5-rtp-table th { background: var(--v9d5-primary-dark); color: var(--v9d5-text); }
.v9d5-rtp-table td { color: var(--v9d5-text-muted); }
.v9d5-rtp-bar {
  height: 6px; border-radius: 3px; background: var(--v9d5-bg-soft); overflow: hidden; margin-top: 0.3rem;
}
.v9d5-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--v9d5-primary), var(--v9d5-accent-gold)); }

/* ===== Testimonials ===== */
.v9d5-testi {
  background: var(--v9d5-bg-card);
  border-left: 3px solid var(--v9d5-primary);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}
.v9d5-testi p { font-size: 1.2rem; color: var(--v9d5-text); font-style: italic; }
.v9d5-testi .v9d5-testi-author { font-size: 1.05rem; color: var(--v9d5-accent); margin-top: 0.3rem; font-weight: 600; }

/* ===== Winners ===== */
.v9d5-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--v9d5-border);
  font-size: 1.15rem;
}
.v9d5-winner-row:last-child { border-bottom: none; }
.v9d5-winner-name { color: var(--v9d5-text); }
.v9d5-winner-amount { color: var(--v9d5-accent-gold); font-weight: 700; }

/* ===== Payment ===== */
.v9d5-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v9d5-pay-item {
  flex: 1 1 30%;
  background: var(--v9d5-bg-card);
  border: 1px solid var(--v9d5-border);
  border-radius: 8px;
  padding: 0.7rem;
  text-align: center;
  min-width: 90px;
}
.v9d5-pay-item .ico { font-size: 2rem; color: var(--v9d5-accent); }
.v9d5-pay-item span { display: block; font-size: 1.05rem; color: var(--v9d5-text-muted); margin-top: 0.2rem; }

/* ===== App CTA ===== */
.v9d5-app-cta {
  background: linear-gradient(135deg, #2a3a2c, var(--v9d5-primary-dark));
  border-radius: var(--v9d5-radius);
  padding: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.v9d5-app-cta .ico { font-size: 3rem; color: var(--v9d5-accent-gold); }
.v9d5-app-cta h3 { color: var(--v9d5-text); font-size: 1.4rem; margin-bottom: 0.3rem; }
.v9d5-app-cta p { color: var(--v9d5-text-muted); font-size: 1.15rem; }

/* ===== FAQ ===== */
.v9d5-faq-item {
  background: var(--v9d5-bg-card);
  border: 1px solid var(--v9d5-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.v9d5-faq-item h4 { color: var(--v9d5-accent-gold); font-size: 1.25rem; margin-bottom: 0.3rem; }
.v9d5-faq-item p { color: var(--v9d5-text); font-size: 1.15rem; line-height: 1.4rem; }

/* ===== Footer ===== */
.v9d5-footer {
  background: #161616;
  border-top: 2px solid var(--v9d5-primary-dark);
  padding: 1.4rem 1.2rem 2rem;
  margin-top: 1.5rem;
}
.v9d5-footer-brand { color: var(--v9d5-text-muted); font-size: 1.15rem; margin-bottom: 0.8rem; line-height: 1.4rem; }
.v9d5-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.v9d5-footer-links a, .v9d5-footer-links button {
  background: var(--v9d5-bg-soft);
  color: var(--v9d5-accent);
  border: 1px solid var(--v9d5-border);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.v9d5-footer-copy { color: #777; font-size: 1.05rem; border-top: 1px solid var(--v9d5-border); padding-top: 0.7rem; }

/* ===== Bottom nav ===== */
.v9d5-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v9d5-bnav-h);
  background: linear-gradient(180deg, #1c2a20, #14201a);
  border-top: 1px solid var(--v9d5-primary-dark);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}
.v9d5-bnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v9d5-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  position: relative;
  padding: 4px 2px;
}
.v9d5-bnav-btn .ico { font-size: 2.2rem; line-height: 1; }
.v9d5-bnav-btn .lbl { font-size: 1rem; line-height: 1.1rem; }
.v9d5-bnav-btn:active { transform: scale(0.92); }
.v9d5-bnav-btn.v9d5-bnav-active { color: var(--v9d5-accent-gold); }
.v9d5-bnav-btn.v9d5-bnav-active::before {
  content: "";
  position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--v9d5-accent-gold); border-radius: 0 0 4px 4px;
}
.v9d5-bnav-promo { color: var(--v9d5-accent-gold); }
.v9d5-bnav-badge {
  position: absolute; top: 4px; right: 18px;
  background: var(--v9d5-danger); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  min-width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ===== Mobile padding for bottom nav ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .v9d5-bnav { display: none; }
  .v9d5-container, .v9d5-header-inner { max-width: 760px; }
  .v9d5-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v9d5-feature-grid { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 0; }
}

@media (max-width: 360px) {
  .v9d5-game-grid { grid-template-columns: repeat(3, 1fr); }
  .v9d5-btn { padding: 0.6rem 0.8rem; font-size: 1.2rem; }
}
