/* ============================================================
 * 58win fun - design-cc35.css
 * Palette: #262626 (bg) | #6F4E37 (text/brand)
 * All classes use the "v5b1-" prefix.
 * Mobile-first, max-width 430px.
 * ============================================================ */

:root {
  --v5b1-bg: #262626;
  --v5b1-bg-2: #1c1c1c;
  --v5b1-bg-3: #333333;
  --v5b1-text: #f5efe6;
  --v5b1-text-soft: #d8cfc2;
  --v5b1-brand: #6F4E37;
  --v5b1-brand-2: #8a6447;
  --v5b1-accent: #e0b188;
  --v5b1-gold: #d9a441;
  --v5b1-danger: #c9533b;
  --v5b1-border: #3d342a;
  --v5b1-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--v5b1-bg);
  color: var(--v5b1-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v5b1-accent); text-decoration: none; }

.v5b1-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ---------------- Header ---------------- */
.v5b1-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c1c1c 0%, #262626 100%);
  border-bottom: 1px solid var(--v5b1-border);
  box-shadow: var(--v5b1-shadow);
}
.v5b1-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  min-height: 56px;
}
.v5b1-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v5b1-text);
}
.v5b1-logo img { width: 30px; height: 30px; border-radius: 6px; }
.v5b1-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v5b1-accent);
  letter-spacing: 0.3px;
}
.v5b1-logo-text span { color: var(--v5b1-gold); }

.v5b1-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.v5b1-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 36px;
}
.v5b1-btn:active { transform: scale(0.95); }
.v5b1-btn-login {
  background: transparent;
  color: var(--v5b1-text);
  border: 1px solid var(--v5b1-brand-2);
}
.v5b1-btn-register {
  background: linear-gradient(135deg, var(--v5b1-gold), var(--v5b1-brand));
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(217, 164, 65, 0.35);
}
.v5b1-menu-btn {
  background: transparent;
  border: none;
  color: var(--v5b1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
}

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

.v5b1-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--v5b1-bg-2);
  z-index: 9999;
  padding: 2rem 1.4rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.v5b1-menu-open { right: 0; }
.v5b1-mobile-menu h3 {
  font-size: 1.6rem;
  color: var(--v5b1-accent);
  margin: 1.2rem 0 0.6rem;
  border-bottom: 1px solid var(--v5b1-border);
  padding-bottom: 0.4rem;
}
.v5b1-mobile-menu a {
  display: block;
  padding: 0.8rem 0.4rem;
  color: var(--v5b1-text);
  font-size: 1.4rem;
  border-bottom: 1px dashed var(--v5b1-border);
}
.v5b1-mobile-menu a:active { color: var(--v5b1-gold); }
.v5b1-menu-close {
  background: transparent;
  border: none;
  color: var(--v5b1-text);
  font-size: 2.2rem;
  cursor: pointer;
  float: right;
}

/* ---------------- Layout ---------------- */
main.v5b1-main {
  padding-top: 64px;
  padding-bottom: 80px;
}
.v5b1-section {
  padding: 1.6rem 1rem;
}
.v5b1-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v5b1-accent);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v5b1-section-title i { color: var(--v5b1-gold); }
.v5b1-lead {
  font-size: 1.4rem;
  color: var(--v5b1-text-soft);
  line-height: 2.2rem;
}

/* ---------------- Carousel ---------------- */
.v5b1-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 1rem 1rem;
  box-shadow: var(--v5b1-shadow);
}
.v5b1-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v5b1-slide-active { display: block; }
.v5b1-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.v5b1-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  padding: 1rem;
}
.v5b1-slide-overlay h2 {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
  color: var(--v5b1-gold);
}
.v5b1-slide-overlay p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--v5b1-text);
}
.v5b1-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 0.4rem;
}
.v5b1-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.v5b1-dot-active { background: var(--v5b1-gold); }

/* ---------------- Filter ---------------- */
.v5b1-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
  scrollbar-width: none;
}
.v5b1-filter::-webkit-scrollbar { display: none; }
.v5b1-filter-btn {
  flex: 0 0 auto;
  background: var(--v5b1-bg-3);
  color: var(--v5b1-text);
  border: 1px solid var(--v5b1-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.v5b1-filter-active {
  background: linear-gradient(135deg, var(--v5b1-gold), var(--v5b1-brand));
  color: #1a1a1a;
  border-color: transparent;
  font-weight: 700;
}

/* ---------------- Game grid ---------------- */
.v5b1-cat-group { margin-bottom: 1.4rem; }
.v5b1-cat-title {
  font-size: 1.5rem;
  color: var(--v5b1-accent);
  margin: 0 0 0.8rem 0.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v5b1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v5b1-card {
  background: var(--v5b1-bg-2);
  border: 1px solid var(--v5b1-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  padding-bottom: 0.4rem;
}
.v5b1-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--v5b1-gold);
}
.v5b1-card-img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: #000;
}
.v5b1-card-name {
  font-size: 1.1rem;
  color: var(--v5b1-text);
  padding: 0.3rem 0.2rem 0.4rem;
  line-height: 1.4rem;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- Promo banner ---------------- */
.v5b1-banner {
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  padding: 1.4rem 1rem;
  margin: 1rem;
  color: var(--v5b1-text);
  position: relative;
  overflow: hidden;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--v5b1-shadow);
}
.v5b1-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38,38,38,0.85) 30%, rgba(38,38,38,0.25));
}
.v5b1-banner > * { position: relative; z-index: 1; }
.v5b1-banner h3 {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
  color: var(--v5b1-gold);
}
.v5b1-banner p { margin: 0 0 0.8rem; font-size: 1.3rem; }

/* ---------------- CTA ---------------- */
.v5b1-cta {
  display: block;
  width: calc(100% - 2rem);
  margin: 1rem;
  text-align: center;
  padding: 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v5b1-gold), var(--v5b1-brand));
  color: #1a1a1a;
  font-size: 1.6rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217,164,65,0.4);
}
.v5b1-cta:active { transform: scale(0.98); }
.v5b1-cta-text {
  text-align: center;
  margin: 0.4rem 1rem 1rem;
}
.v5b1-cta-text a {
  font-weight: 700;
  color: var(--v5b1-gold);
  text-decoration: underline;
}

/* ---------------- Info blocks ---------------- */
.v5b1-info-block {
  background: var(--v5b1-bg-2);
  border: 1px solid var(--v5b1-border);
  border-left: 3px solid var(--v5b1-brand);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem;
}
.v5b1-info-block h3 {
  color: var(--v5b1-accent);
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}
.v5b1-info-block p,
.v5b1-info-block li {
  color: var(--v5b1-text-soft);
  font-size: 1.35rem;
  line-height: 2.2rem;
}
.v5b1-info-block ul { padding-left: 1.4rem; margin: 0.4rem 0; }

/* ---------------- RTP table ---------------- */
.v5b1-rtp-table {
  width: calc(100% - 2rem);
  margin: 0 1rem;
  border-collapse: collapse;
  background: var(--v5b1-bg-2);
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.3rem;
}
.v5b1-rtp-table th,
.v5b1-rtp-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--v5b1-border);
  text-align: left;
}
.v5b1-rtp-table th { background: var(--v5b1-bg-3); color: var(--v5b1-gold); }
.v5b1-rtp-table td:last-child { color: var(--v5b1-accent); font-weight: 700; }

/* ---------------- Testimonials ---------------- */
.v5b1-testi {
  background: var(--v5b1-bg-2);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.6rem 1rem;
  border: 1px solid var(--v5b1-border);
}
.v5b1-testi-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.v5b1-testi-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--v5b1-brand);
  color: var(--v5b1-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
}
.v5b1-testi-name { font-size: 1.3rem; color: var(--v5b1-accent); font-weight: 700; }
.v5b1-testi-stars { color: var(--v5b1-gold); font-size: 1.1rem; }
.v5b1-testi-text { font-size: 1.3rem; color: var(--v5b1-text-soft); line-height: 2rem; }

/* ---------------- Winners ---------------- */
.v5b1-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--v5b1-bg-2);
  border: 1px solid var(--v5b1-border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.4rem 1rem;
  font-size: 1.25rem;
}
.v5b1-winner-name { color: var(--v5b1-text); }
.v5b1-winner-amount { color: var(--v5b1-gold); font-weight: 700; }

/* ---------------- Payment ---------------- */
.v5b1-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 1rem;
}
.v5b1-pay {
  flex: 1 1 30%;
  background: var(--v5b1-bg-2);
  border: 1px solid var(--v5b1-border);
  border-radius: 8px;
  padding: 0.7rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--v5b1-text-soft);
  min-width: 90px;
}
.v5b1-pay i { font-size: 1.8rem; color: var(--v5b1-accent); display: block; margin-bottom: 0.3rem; }

/* ---------------- FAQ ---------------- */
.v5b1-faq-item {
  background: var(--v5b1-bg-2);
  border: 1px solid var(--v5b1-border);
  border-radius: 10px;
  margin: 0.6rem 1rem;
  overflow: hidden;
}
.v5b1-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--v5b1-text);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.6rem;
}
.v5b1-faq-q i { color: var(--v5b1-gold); transition: transform 0.2s; }
.v5b1-faq-open .v5b1-faq-q i { transform: rotate(180deg); }
.v5b1-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  color: var(--v5b1-text-soft);
  font-size: 1.3rem;
  line-height: 2.1rem;
}
.v5b1-faq-open .v5b1-faq-a { max-height: 320px; padding-bottom: 0.9rem; }

/* ---------------- Footer ---------------- */
.v5b1-footer {
  background: var(--v5b1-bg-2);
  border-top: 1px solid var(--v5b1-border);
  padding: 1.6rem 1rem 2.4rem;
  margin-top: 1rem;
}
.v5b1-footer h4 {
  color: var(--v5b1-accent);
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
}
.v5b1-footer p { font-size: 1.25rem; color: var(--v5b1-text-soft); line-height: 2rem; }
.v5b1-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin: 0.6rem 0;
}
.v5b1-footer-links a {
  font-size: 1.25rem;
  color: var(--v5b1-text);
  text-decoration: underline;
}
.v5b1-footer-pay {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 0.6rem 0;
}
.v5b1-footer-pay span {
  background: var(--v5b1-bg-3);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 1.15rem;
  color: var(--v5b1-text-soft);
}
.v5b1-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--v5b1-text-soft);
  margin-top: 1rem;
  border-top: 1px dashed var(--v5b1-border);
  padding-top: 0.8rem;
}

/* ---------------- Bottom Nav ---------------- */
.v5b1-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #1c1c1c, #161616);
  border-top: 1px solid var(--v5b1-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.v5b1-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v5b1-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  cursor: pointer;
  min-height: 60px;
  min-width: 60px;
  padding: 4px 2px;
  transition: color 0.15s, transform 0.15s;
}
.v5b1-nav-btn i,
.v5b1-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.v5b1-nav-btn:active { transform: scale(0.92); }
.v5b1-nav-btn.is-active { color: var(--v5b1-gold); }
.v5b1-nav-btn-promo { color: var(--v5b1-accent); }

/* ---------------- Back to top ---------------- */
.v5b1-top-btn {
  position: fixed;
  bottom: 74px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--v5b1-brand);
  color: var(--v5b1-text);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s;
  z-index: 900;
  box-shadow: var(--v5b1-shadow);
}
.v5b1-top-show { opacity: 1; visibility: visible; }

/* ---------------- Desktop ---------------- */
@media (min-width: 769px) {
  .v5b1-bottom-nav { display: none; }
  main.v5b1-main { padding-bottom: 2rem; }
  .v5b1-wrapper { max-width: 760px; }
  .v5b1-header-inner { max-width: 760px; }
  .v5b1-grid { grid-template-columns: repeat(6, 1fr); }
}
