/* W188 - Core stylesheet (mobile-first, max-width 430px) */
/* Prefix: w7658- */

:root {
  --w7658-bg: #141414;
  --w7658-bg-2: #1d1a17;
  --w7658-bg-3: #2a221c;
  --w7658-primary: #FFBF00;
  --w7658-primary-2: #FF9800;
  --w7658-secondary: #CD853F;
  --w7658-soft: #BC8F8F;
  --w7658-text: #FFF6E5;
  --w7658-text-muted: #CDBFA8;
  --w7658-line: rgba(255, 191, 0, 0.18);
  --w7658-radius: 14px;
  --w7658-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --w7658-gradient: linear-gradient(135deg, #FFBF00 0%, #FF9800 50%, #CD853F 100%);
  --w7658-gradient-dark: linear-gradient(180deg, #1d1a17 0%, #141414 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--w7658-bg);
  color: var(--w7658-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--w7658-primary); text-decoration: none; }
a:hover, a:focus { color: var(--w7658-primary-2); }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.w7658-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w7658-line);
}
.w7658-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; min-height: 56px;
}
.w7658-logo { display: flex; align-items: center; gap: 8px; color: var(--w7658-text); font-weight: 700; }
.w7658-logo img { width: 30px; height: 30px; border-radius: 8px; }
.w7658-logo .w7658-logo-text { font-size: 1.7rem; letter-spacing: 0.4px; }
.w7658-logo .w7658-logo-text b { color: var(--w7658-primary); }

.w7658-header-actions { display: flex; align-items: center; gap: 8px; }
.w7658-btn {
  border: none; cursor: pointer; border-radius: 999px;
  font-weight: 700; font-size: 1.3rem; padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px; line-height: 1;
}
.w7658-btn:hover { transform: translateY(-1px); }
.w7658-btn-primary { background: var(--w7658-gradient); color: #141414; box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35); }
.w7658-btn-outline { background: transparent; color: var(--w7658-primary); border: 1.5px solid var(--w7658-primary); }
.w7658-btn-ghost { background: rgba(255, 191, 0, 0.12); color: var(--w7658-primary); }

.w7658-menu-toggle {
  background: transparent; border: none; color: var(--w7658-primary);
  font-size: 2rem; cursor: pointer; padding: 4px 8px; display: inline-flex; align-items: center;
}

/* ===== Mobile dropdown menu ===== */
.w7658-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 360px;
  background: var(--w7658-gradient-dark); z-index: 9999;
  transform: translateX(100%); transition: transform .28s ease;
  padding: 80px 18px 24px; overflow-y: auto; border-left: 1px solid var(--w7658-line);
}
.w7658-mobile-menu.w7658-open { transform: translateX(0); }
.w7658-mobile-menu .w7658-menu-title { color: var(--w7658-primary); font-size: 1.6rem; margin: 14px 0 8px; font-weight: 700; }
.w7658-mobile-menu a {
  display: block; padding: 12px 14px; margin: 6px 0; border-radius: 10px;
  background: rgba(255, 191, 0, 0.08); color: var(--w7658-text); font-weight: 600;
}
.w7658-mobile-menu a:hover { background: rgba(255, 191, 0, 0.18); }
.w7658-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.w7658-overlay.w7658-open { opacity: 1; pointer-events: auto; }

.w7658-menu-close {
  position: absolute; top: 18px; right: 18px; background: transparent; border: none;
  color: var(--w7658-primary); font-size: 2.2rem; cursor: pointer;
}

/* ===== Hero / Carousel ===== */
.w7658-hero { margin-top: 64px; }
.w7658-carousel { position: relative; border-radius: var(--w7658-radius); overflow: hidden; box-shadow: var(--w7658-shadow); }
.w7658-carousel-track { display: flex; transition: transform .4s ease; }
.w7658-carousel-slide { min-width: 100%; position: relative; }
.w7658-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.w7658-carousel-slide .w7658-slide-cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: var(--w7658-text); padding: 18px 12px 8px; border-radius: 10px;
}
.w7658-carousel-slide .w7658-slide-cap h3 { margin: 0 0 4px; font-size: 1.7rem; color: var(--w7658-primary); }
.w7658-carousel-slide .w7658-slide-cap p { margin: 0; font-size: 1.25rem; color: var(--w7658-text-muted); }
.w7658-carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.w7658-carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; }
.w7658-carousel-dots span.w7658-active { background: var(--w7658-primary); width: 22px; border-radius: 999px; }

/* ===== Section ===== */
.w7658-section { padding: 18px 0; }
.w7658-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w7658-section-head h2 { font-size: 1.9rem; margin: 0; color: var(--w7658-text); }
.w7658-section-head h2 b { color: var(--w7658-primary); }
.w7658-section-head .w7658-more { font-size: 1.25rem; color: var(--w7658-primary); }

.w7658-card {
  background: var(--w7658-bg-2); border: 1px solid var(--w7658-line);
  border-radius: var(--w7658-radius); padding: 14px; box-shadow: var(--w7658-shadow);
}

/* ===== Game grid ===== */
.w7658-cat-title {
  font-size: 1.6rem; font-weight: 700; color: var(--w7658-primary);
  margin: 16px 0 8px; display: flex; align-items: center; gap: 8px;
}
.w7658-cat-title .w7658-cat-icon {
  width: 26px; height: 26px; border-radius: 8px; background: var(--w7658-gradient);
  color: #141414; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.w7658-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w7658-game-card {
  background: var(--w7658-bg-2); border: 1px solid var(--w7658-line); border-radius: 12px;
  padding: 8px; text-align: center; cursor: pointer; transition: transform .15s, border-color .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.w7658-game-card:hover { transform: translateY(-2px); border-color: var(--w7658-primary); }
.w7658-game-card img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; }
.w7658-game-card .w7658-game-name {
  font-size: 1.15rem; color: var(--w7658-text); font-weight: 600;
  line-height: 1.2; min-height: 28px; display: flex; align-items: center; justify-content: center;
  text-align: center;
}

/* ===== Feature / promo blocks ===== */
.w7658-feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.w7658-feature {
  background: var(--w7658-gradient-dark); border: 1px solid var(--w7658-line);
  border-radius: var(--w7658-radius); padding: 16px;
}
.w7658-feature h3 { margin: 0 0 8px; font-size: 1.7rem; color: var(--w7658-primary); }
.w7658-feature p { margin: 0 0 10px; color: var(--w7658-text-muted); font-size: 1.35rem; }
.w7658-feature .w7658-inline-link { color: var(--w7658-primary); font-weight: 700; }

.w7658-cta {
  background: var(--w7658-gradient); color: #141414; border-radius: var(--w7658-radius);
  padding: 18px 16px; text-align: center; box-shadow: var(--w7658-shadow);
}
.w7658-cta h3 { margin: 0 0 6px; font-size: 1.8rem; color: #141414; }
.w7658-cta p { margin: 0 0 12px; color: #2a221c; font-size: 1.3rem; }
.w7658-cta .w7658-btn { background: #141414; color: var(--w7658-primary); }

.w7658-list { list-style: none; padding: 0; margin: 0; }
.w7658-list li { padding: 10px 0; border-bottom: 1px dashed var(--w7658-line); color: var(--w7658-text-muted); font-size: 1.35rem; }
.w7658-list li:last-child { border-bottom: none; }
.w7658-list li b { color: var(--w7658-primary); }

.w7658-testimonial { background: var(--w7658-bg-2); border-radius: 12px; padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--w7658-primary); }
.w7658-testimonial .w7658-name { font-weight: 700; color: var(--w7658-primary); font-size: 1.3rem; margin-bottom: 4px; }
.w7658-testimonial .w7658-stars { color: #FFBF00; font-size: 1.2rem; margin-bottom: 4px; }
.w7658-testimonial p { margin: 0; font-size: 1.3rem; color: var(--w7658-text-muted); }

.w7658-payment { display: flex; flex-wrap: wrap; gap: 8px; }
.w7658-payment span { background: var(--w7658-bg-2); border: 1px solid var(--w7658-line); border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; color: var(--w7658-text); }

.w7658-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.w7658-winner { background: var(--w7658-bg-2); border-radius: 10px; padding: 8px; text-align: center; border: 1px solid var(--w7658-line); }
.w7658-winner .w7658-amount { color: var(--w7658-primary); font-weight: 700; font-size: 1.4rem; }
.w7658-winner .w7658-game { color: var(--w7658-text-muted); font-size: 1.15rem; }

/* ===== Footer ===== */
.w7658-footer { background: var(--w7658-bg-2); border-top: 1px solid var(--w7658-line); padding: 22px 0 96px; margin-top: 18px; }
.w7658-footer .w7658-footer-brand { color: var(--w7658-text-muted); font-size: 1.3rem; margin-bottom: 12px; }
.w7658-footer .w7658-footer-brand b { color: var(--w7658-primary); }
.w7658-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.w7658-footer-links a { background: rgba(255,191,0,0.08); border: 1px solid var(--w7658-line); border-radius: 999px; padding: 6px 12px; font-size: 1.2rem; color: var(--w7658-primary); }
.w7658-footer-copy { color: var(--w7658-text-muted); font-size: 1.15rem; }

/* ===== Bottom nav ===== */
.w7658-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20, 20, 20, 0.98); backdrop-filter: blur(8px);
  border-top: 1px solid var(--w7658-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.w7658-bottom-nav .w7658-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--w7658-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: color .15s, transform .15s; padding: 4px;
}
.w7658-bottom-nav .w7658-nav-btn .w7658-nav-icon { font-size: 22px; line-height: 1; }
.w7658-bottom-nav .w7658-nav-btn .w7658-nav-label { font-size: 11px; line-height: 1; }
.w7658-bottom-nav .w7658-nav-btn:hover, .w7658-bottom-nav .w7658-nav-btn.w7658-active { color: var(--w7658-primary); transform: translateY(-2px); }
.w7658-bottom-nav .w7658-nav-btn.w7658-active .w7658-nav-icon { background: var(--w7658-gradient); color: #141414; border-radius: 999px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.w7658-bottom-nav .w7658-nav-badge { position: absolute; top: 6px; right: 18px; background: #FF3B30; color: #fff; font-size: 9px; border-radius: 999px; padding: 1px 5px; }

/* ===== Misc ===== */
.w7658-text-link { color: var(--w7658-primary); font-weight: 700; }
.w7658-divider { height: 1px; background: var(--w7658-line); margin: 16px 0; border: none; }
.w7658-pill { background: rgba(255,191,0,0.15); color: var(--w7658-primary); border-radius: 999px; padding: 3px 10px; font-size: 1.15rem; display: inline-block; }

/* Desktop: hide bottom nav, show header centered */
@media (min-width: 769px) {
  .w7658-bottom-nav { display: none; }
  .w7658-footer { padding-bottom: 22px; }
}
@media (max-width: 768px) {
  main.w7658-main { padding-bottom: 80px; }
}
