/* plus222.homes - style-edb1.css
   All custom classes use the "v162-" prefix.
   Palette: #CD853F | #FFF176 | #FFDEAD | #1C2833 | #FFD700
   Mobile-first; literal max-width: 430px enforced.
   Comments in English per project convention.
*/

:root {
  --v162-primary: #CD853F;
  --v162-gold: #FFD700;
  --v162-cream: #FFDEAD;
  --v162-yellow: #FFF176;
  --v162-bg: #1C2833;
  --v162-bg-2: #22303d;
  --v162-bg-3: #2c3a48;
  --v162-text: #f6efe2;
  --v162-muted: #b8c0cb;
  --v162-line: rgba(255, 222, 173, 0.16);
  --v162-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
  --v162-radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--v162-bg);
  color: var(--v162-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v162-yellow); text-decoration: none; }
a:hover { color: var(--v162-gold); text-decoration: underline; }

.v162-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.v162-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ============ Header ============ */
.v162-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #243142 0%, #1C2833 100%);
  border-bottom: 1px solid var(--v162-line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.v162-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v162-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--v162-gold);
  font-size: 18px;
  letter-spacing: 0.5px;
}
.v162-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v162-logo span { color: var(--v162-cream); font-weight: 700; }
.v162-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.v162-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 24px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
  line-height: 1;
}
.v162-btn:hover { transform: translateY(-1px); text-decoration: none; }
.v162-btn:active { transform: translateY(0); }
.v162-btn-register {
  background: linear-gradient(135deg, #FFD700 0%, #FFF176 100%);
  color: #1C2833;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}
.v162-btn-login {
  background: transparent;
  color: var(--v162-cream);
  border: 1.5px solid var(--v162-primary);
}
.v162-btn-login:hover { background: rgba(205, 133, 63, 0.18); }

.v162-icon-btn {
  background: transparent;
  border: none;
  color: var(--v162-cream);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v162-icon-btn:hover { background: rgba(255, 222, 173, 0.12); }

/* ============ Mobile Menu ============ */
.v162-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.v162-backdrop-show { opacity: 1; visibility: visible; }

.v162-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--v162-bg-2);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform .28s ease;
  padding: 18px 16px;
  overflow-y: auto;
  box-shadow: -6px 0 24px rgba(0,0,0,0.45);
}
.v162-menu-open { transform: translateX(0); }
.v162-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v162-line);
}
.v162-menu-title { color: var(--v162-gold); font-weight: 800; font-size: 16px; }
.v162-menu-close {
  background: transparent;
  border: none;
  color: var(--v162-cream);
  font-size: 22px;
  cursor: pointer;
}
.v162-menu-section { margin-bottom: 18px; }
.v162-menu-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--v162-yellow);
}
.v162-menu-section a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--v162-text);
  font-size: 14px;
  margin-bottom: 3px;
}
.v162-menu-section a:hover { background: rgba(255, 222, 173, 0.08); text-decoration: none; }

/* ============ Hero / Carousel ============ */
.v162-hero {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}
.v162-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.v162-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.v162-slide img { width: 100%; height: 200px; object-fit: cover; }
.v162-slide-active { opacity: 1; }
.v162-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(28,40,51,0.92), transparent);
  color: var(--v162-cream);
}
.v162-slide-overlay h2 { margin: 0 0 4px; font-size: 16px; color: var(--v162-gold); }
.v162-slide-overlay p { margin: 0; font-size: 12px; }
.v162-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: var(--v162-cream);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.v162-arrow-prev { left: 8px; }
.v162-arrow-next { right: 8px; }
.v162-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.v162-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.v162-dot-active { background: var(--v162-gold); width: 18px; border-radius: 4px; }

/* ============ Section headings ============ */
.v162-section {
  padding: 22px 0 10px;
}
.v162-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--v162-gold);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v162-section-title .material-symbols-outlined,
.v162-section-title i { color: var(--v162-yellow); font-size: 22px; }
.v162-section-sub {
  font-size: 12px;
  color: var(--v162-muted);
  margin: 0 0 12px;
}
.v162-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--v162-primary), transparent);
  margin: 6px 0 14px;
  border-radius: 2px;
}

/* ============ Filter chips ============ */
.v162-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.v162-chips::-webkit-scrollbar { display: none; }
.v162-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--v162-bg-3);
  color: var(--v162-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--v162-line);
  white-space: nowrap;
}
.v162-chip-active {
  background: linear-gradient(135deg, var(--v162-primary), var(--v162-gold));
  color: #1C2833;
  border-color: transparent;
}

/* ============ Game grid ============ */
.v162-cat-section { margin-bottom: 18px; }
.v162-cat-hidden { display: none; }
.v162-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.v162-cat-head h3 {
  font-size: 15px;
  color: var(--v162-cream);
  margin: 0;
  font-weight: 700;
}
.v162-cat-head .v162-cat-tag {
  font-size: 11px;
  color: var(--v162-yellow);
  background: rgba(255, 241, 118, 0.12);
  padding: 3px 8px;
  border-radius: 10px;
}
.v162-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v162-card {
  background: var(--v162-bg-2);
  border-radius: var(--v162-radius);
  overflow: hidden;
  border: 1px solid var(--v162-line);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.v162-card:hover {
  transform: translateY(-2px);
  border-color: var(--v162-gold);
  box-shadow: var(--v162-shadow);
}
.v162-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1620;
}
.v162-card-name {
  font-size: 11px;
  padding: 6px 8px;
  text-align: center;
  color: var(--v162-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v162-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #FFD700, #CD853F);
  color: #1C2833;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.4px;
}

/* ============ Feature / promo cards ============ */
.v162-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.v162-feature {
  background: var(--v162-bg-2);
  border: 1px solid var(--v162-line);
  border-radius: var(--v162-radius);
  padding: 14px;
  text-align: center;
}
.v162-feature i, .v162-feature .material-symbols-outlined {
  font-size: 30px;
  color: var(--v162-yellow);
  margin-bottom: 6px;
}
.v162-feature h4 { margin: 0 0 4px; font-size: 13px; color: var(--v162-cream); }
.v162-feature p { margin: 0; font-size: 11px; color: var(--v162-muted); }

/* CTA promo block */
.v162-cta {
  background: linear-gradient(135deg, #CD853F 0%, #FFD700 100%);
  color: #1C2833;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 14px 0;
  box-shadow: var(--v162-shadow);
}
.v162-cta h3 { margin: 0 0 6px; font-size: 18px; }
.v162-cta p { margin: 0 0 12px; font-size: 13px; }
.v162-cta-btn {
  display: inline-block;
  background: #1C2833;
  color: var(--v162-gold);
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 14px;
}
.v162-cta-btn:hover { text-decoration: none; filter: brightness(1.1); }

/* ============ Article / long-form ============ */
.v162-article {
  background: var(--v162-bg-2);
  border-radius: var(--v162-radius);
  padding: 16px;
  border: 1px solid var(--v162-line);
}
.v162-article h3 { color: var(--v162-gold); font-size: 16px; margin: 0 0 8px; }
.v162-article p { font-size: 13px; color: var(--v162-text); margin: 0 0 10px; }
.v162-article ul { padding-left: 18px; margin: 0 0 10px; }
.v162-article li { font-size: 13px; margin-bottom: 4px; color: var(--v162-text); }

/* ============ FAQ ============ */
.v162-faq-item {
  background: var(--v162-bg-2);
  border: 1px solid var(--v162-line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.v162-faq-q {
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--v162-cream);
  font-size: 13px;
}
.v162-faq-q .bi { color: var(--v162-yellow); transition: transform .2s ease; }
.v162-faq-open .v162-faq-q .bi-chevron-down { transform: rotate(180deg); }
.v162-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  font-size: 12px;
  color: var(--v162-muted);
}
.v162-faq-open .v162-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ============ Testimonials ============ */
.v162-testimonial {
  background: var(--v162-bg-2);
  border-left: 3px solid var(--v162-yellow);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.v162-testimonial p { margin: 0 0 6px; font-size: 12px; color: var(--v162-text); font-style: italic; }
.v162-testimonial .v162-author { font-size: 11px; color: var(--v162-yellow); font-weight: 700; }

/* ============ Payment methods ============ */
.v162-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v162-pay {
  background: var(--v162-bg-2);
  border: 1px solid var(--v162-line);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  font-size: 10px;
  color: var(--v162-text);
  font-weight: 600;
}
.v162-pay i { font-size: 22px; color: var(--v162-yellow); display: block; margin-bottom: 4px; }

/* ============ Winners ticker ============ */
.v162-winners {
  background: var(--v162-bg-2);
  border: 1px solid var(--v162-line);
  border-radius: 10px;
  padding: 10px;
}
.v162-winner-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--v162-line);
}
.v162-winner-row:last-child { border-bottom: none; }
.v162-winner-name { color: var(--v162-cream); font-weight: 600; }
.v162-winner-amount { color: var(--v162-gold); font-weight: 800; }

/* ============ Footer ============ */
.v162-footer {
  background: #15202b;
  border-top: 2px solid var(--v162-primary);
  margin-top: 24px;
  padding: 22px 0 80px;
}
.v162-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.v162-footer h4 {
  color: var(--v162-gold);
  font-size: 14px;
  margin: 14px 0 8px;
}
.v162-footer p { font-size: 12px; color: var(--v162-muted); margin: 0 0 10px; }
.v162-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.v162-footer-links a { font-size: 12px; color: var(--v162-cream); }
.v162-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.v162-footer-buttons .v162-btn { flex: 1 1 auto; min-width: 120px; padding: 8px 10px; font-size: 12px; }
.v162-footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--v162-muted);
  padding-top: 14px;
  border-top: 1px solid var(--v162-line);
  margin-top: 14px;
}

/* ============ Bottom Nav ============ */
.v162-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: linear-gradient(180deg, #243142 0%, #15202b 100%);
  border-top: 1px solid var(--v162-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.v162-bottom-nav a {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--v162-muted);
  font-size: 10px;
  font-weight: 600;
  gap: 3px;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.v162-bottom-nav a:hover { text-decoration: none; }
.v162-bottom-nav a i,
.v162-bottom-nav a .material-symbols-outlined,
.v162-bottom-nav a ion-icon {
  font-size: 22px;
  transition: transform .15s ease;
}
.v162-bottom-nav a:active { transform: scale(0.92); }
.v162-bottom-nav a:hover { color: var(--v162-yellow); }
.v162-bottom-nav a:hover i,
.v162-bottom-nav a:hover .material-symbols-outlined { transform: translateY(-2px) scale(1.1); }
.v162-nav-active { color: var(--v162-gold) !important; }
.v162-nav-promo {
  position: relative;
}
.v162-nav-promo::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--v162-primary), var(--v162-gold));
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

/* ============ Back to top ============ */
.v162-to-top {
  position: fixed;
  right: 14px;
  bottom: 78px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--v162-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .15s ease;
  z-index: 999;
}
.v162-to-top-show { opacity: 1; visibility: visible; }
.v162-to-top:hover { transform: translateY(-2px); }

/* ============ Reveal animation ============ */
.v162-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v162-in-view { opacity: 1; transform: translateY(0); }

/* ============ Utility ============ */
.v162-text-center { text-align: center; }
.v162-mt-12 { margin-top: 12px; }
.v162-mb-12 { margin-bottom: 12px; }
.v162-no-scroll { overflow: hidden; }

/* Main padding for mobile nav clearance */
main { padding-bottom: 80px; }

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .v162-bottom-nav { display: none; }
  body { background: #15202b; }
  .v162-container, .v162-header-inner, .v162-hero, .v162-footer-inner {
    max-width: 430px;
  }
}
