/* Helo88 core base CSS - prefix: v8b8- */
/* Mobile-first casino gaming theme. Palette: #1C2833 (bg) | #66CDAA (accent) */

:root {
  --v8b8-primary: #66CDAA;
  --v8b8-primary-dark: #4db39a;
  --v8b8-bg: #1C2833;
  --v8b8-bg-2: #23323f;
  --v8b8-bg-3: #2d3f4f;
  --v8b8-text: #e8f4f0;
  --v8b8-muted: #9fb2bd;
  --v8b8-gold: #f5c451;
  --v8b8-red: #e8505b;
  --v8b8-radius: 12px;
  --v8b8-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v8b8-bg);
  color: var(--v8b8-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Header ===== */
.v8b8-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1C2833 0%, #23323f 100%);
  border-bottom: 2px solid var(--v8b8-primary);
  box-shadow: var(--v8b8-shadow);
}
.v8b8-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; min-height: 56px;
}
.v8b8-logo { display: flex; align-items: center; gap: 0.6rem; }
.v8b8-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v8b8-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--v8b8-primary); letter-spacing: 0.5px; }
.v8b8-logo-text span { color: var(--v8b8-text); }

.v8b8-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v8b8-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  font-size: 1.3rem; font-weight: 700; border: none; border-radius: 8px;
  padding: 0.55rem 1rem; cursor: pointer; min-height: 36px; transition: transform 0.15s, opacity 0.15s;
}
.v8b8-btn:active { transform: scale(0.94); }
.v8b8-btn-register { background: var(--v8b8-primary); color: #11303a; }
.v8b8-btn-login { background: transparent; color: var(--v8b8-primary); border: 1px solid var(--v8b8-primary); }

.v8b8-menu-btn {
  background: transparent; border: none; color: var(--v8b8-text);
  font-size: 2.0rem; cursor: pointer; padding: 0 0.4rem; line-height: 1;
}

/* ===== Mobile expandable menu ===== */
.v8b8-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  background: var(--v8b8-bg-2);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  border-bottom: 1px solid var(--v8b8-bg-3);
}
.v8b8-mobile-menu.v8b8-menu-open { max-height: 460px; box-shadow: var(--v8b8-shadow); }
.v8b8-mobile-menu ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.v8b8-mobile-menu li a {
  display: block; padding: 1.0rem 1.4rem; color: var(--v8b8-text); font-size: 1.35rem;
  border-bottom: 1px solid rgba(102,205,170,0.08);
}
.v8b8-mobile-menu li a:active { background: var(--v8b8-bg-3); color: var(--v8b8-primary); }

/* ===== Main / sections ===== */
main { padding-top: 72px; }
@media (max-width: 768px) { main { padding-bottom: 88px; } }

.v8b8-section { padding: 1.8rem 0; }
.v8b8-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--v8b8-text);
  margin: 0 0 1.0rem; padding-left: 0.8rem; border-left: 4px solid var(--v8b8-primary);
}
.v8b8-section-title em { color: var(--v8b8-primary); font-style: normal; }
.v8b8-lead { font-size: 1.35rem; color: var(--v8b8-muted); margin: 0 0 1.2rem; }

/* ===== Hero carousel ===== */
.v8b8-carousel { position: relative; border-radius: var(--v8b8-radius); overflow: hidden; box-shadow: var(--v8b8-shadow); }
.v8b8-slide { display: none; position: relative; cursor: pointer; }
.v8b8-slide img { width: 100%; height: 200px; object-fit: cover; }
.v8b8-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(28,40,51,0.92) 0%, rgba(28,40,51,0) 100%);
  padding: 1.2rem 1rem 1.0rem; font-size: 1.4rem; font-weight: 700; color: var(--v8b8-text);
}
.v8b8-slide-caption span { color: var(--v8b8-primary); }
.v8b8-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.v8b8-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.v8b8-dot.v8b8-dot-active { background: var(--v8b8-primary); }

/* ===== H1 hero ===== */
.v8b8-h1 {
  font-size: 2.1rem; font-weight: 900; line-height: 1.25; margin: 1.4rem 0 0.6rem;
  color: var(--v8b8-text);
}
.v8b8-h1 strong { color: var(--v8b8-primary); }
.v8b8-h1-sub { font-size: 1.3rem; color: var(--v8b8-muted); margin: 0 0 1.2rem; }

/* ===== Filter tabs ===== */
.v8b8-filters { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1.0rem; -webkit-overflow-scrolling: touch; }
.v8b8-filter-tab {
  flex: 0 0 auto; padding: 0.5rem 1.0rem; border-radius: 20px;
  background: var(--v8b8-bg-2); color: var(--v8b8-muted); font-size: 1.2rem; font-weight: 600;
  border: 1px solid var(--v8b8-bg-3); cursor: pointer; white-space: nowrap;
}
.v8b8-filter-active { background: var(--v8b8-primary); color: #11303a; border-color: var(--v8b8-primary); }

/* ===== Game grid ===== */
.v8b8-game-section { margin-bottom: 1.6rem; }
.v8b8-game-cat-title { font-size: 1.4rem; font-weight: 700; color: var(--v8b8-gold); margin: 0 0 0.8rem; }
.v8b8-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v8b8-game-card { cursor: pointer; text-align: center; transition: transform 0.15s; }
.v8b8-game-card:active { transform: scale(0.93); }
.v8b8-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--v8b8-bg-3); background: var(--v8b8-bg-2);
}
.v8b8-game-name {
  font-size: 1.0rem; color: var(--v8b8-text); margin-top: 0.35rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v8b8-game-card:hover img { border-color: var(--v8b8-primary); }

/* ===== Info / feature cards ===== */
.v8b8-card {
  background: var(--v8b8-bg-2); border-radius: var(--v8b8-radius); padding: 1.2rem;
  margin-bottom: 1.0rem; border: 1px solid var(--v8b8-bg-3);
}
.v8b8-card h2 { font-size: 1.5rem; margin: 0 0 0.6rem; color: var(--v8b8-primary); }
.v8b8-card h3 { font-size: 1.3rem; margin: 0.8rem 0 0.4rem; color: var(--v8b8-text); }
.v8b8-card p { font-size: 1.25rem; color: var(--v8b8-muted); margin: 0 0 0.6rem; }
.v8b8-card ul { padding-left: 1.4rem; color: var(--v8b8-muted); font-size: 1.2rem; }
.v8b8-card li { margin-bottom: 0.4rem; }

.v8b8-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.v8b8-feature {
  background: var(--v8b8-bg-2); border-radius: 10px; padding: 1.0rem; text-align: center;
  border: 1px solid var(--v8b8-bg-3);
}
.v8b8-feature .v8b8-feature-ic { font-size: 2.2rem; color: var(--v8b8-primary); margin-bottom: 0.3rem; }
.v8b8-feature h3 { font-size: 1.25rem; margin: 0 0 0.3rem; color: var(--v8b8-text); }
.v8b8-feature p { font-size: 1.1rem; color: var(--v8b8-muted); margin: 0; }

/* ===== Promo CTA ===== */
.v8b8-cta {
  display: block; text-align: center; background: linear-gradient(90deg, var(--v8b8-primary) 0%, var(--v8b8-primary-dark) 100%);
  color: #11303a; font-weight: 800; font-size: 1.45rem; padding: 1.0rem; border-radius: 10px;
  margin: 1.2rem 0; cursor: pointer; box-shadow: var(--v8b8-shadow);
}
.v8b8-cta:active { transform: scale(0.97); }
.v8b8-cta-text a { color: var(--v8b8-primary); font-weight: 700; }
.v8b8-inline-link { color: var(--v8b8-primary); font-weight: 700; cursor: pointer; }

/* ===== RTP table ===== */
.v8b8-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.v8b8-table th, .v8b8-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--v8b8-bg-3); text-align: left; }
.v8b8-table th { color: var(--v8b8-primary); font-size: 1.1rem; }
.v8b8-table td .v8b8-rtp { color: var(--v8b8-gold); font-weight: 700; }

/* ===== Testimonials ===== */
.v8b8-testi { background: var(--v8b8-bg-2); border-radius: 10px; padding: 1.0rem; margin-bottom: 0.7rem; border-left: 3px solid var(--v8b8-primary); }
.v8b8-testi p { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--v8b8-text); }
.v8b8-testi .v8b8-testi-author { font-size: 1.1rem; color: var(--v8b8-muted); }

/* ===== Winners ===== */
.v8b8-winner { display: flex; justify-content: space-between; padding: 0.55rem 0.8rem; background: var(--v8b8-bg-2); border-radius: 8px; margin-bottom: 0.4rem; font-size: 1.15rem; }
.v8b8-winner .v8b8-winner-amt { color: var(--v8b8-gold); font-weight: 700; }

/* ===== Payment ===== */
.v8b8-pay-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.v8b8-pay { background: var(--v8b8-bg-2); border: 1px solid var(--v8b8-bg-3); border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 1.1rem; color: var(--v8b8-text); }

/* ===== FAQ ===== */
.v8b8-faq-item { background: var(--v8b8-bg-2); border-radius: 8px; margin-bottom: 0.5rem; overflow: hidden; border: 1px solid var(--v8b8-bg-3); }
.v8b8-faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--v8b8-text); font-size: 1.25rem; font-weight: 700; padding: 0.8rem 1.0rem; cursor: pointer; }
.v8b8-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.0rem; color: var(--v8b8-muted); font-size: 1.15rem; }
.v8b8-faq-open .v8b8-faq-a { max-height: 240px; padding-bottom: 0.8rem; }

/* ===== Footer ===== */
.v8b8-footer { background: var(--v8b8-bg-2); border-top: 2px solid var(--v8b8-primary); padding: 1.6rem 1.2rem 2.0rem; margin-top: 1.4rem; }
.v8b8-footer-brand { font-size: 1.2rem; color: var(--v8b8-muted); margin-bottom: 1.0rem; }
.v8b8-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.0rem; margin-bottom: 1.0rem; }
.v8b8-footer-links a { font-size: 1.15rem; color: var(--v8b8-text); }
.v8b8-footer-links a:active { color: var(--v8b8-primary); }
.v8b8-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.0rem; }
.v8b8-footer-promo button { background: var(--v8b8-primary); color: #11303a; border: none; border-radius: 6px; padding: 0.45rem 0.8rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.v8b8-copy { font-size: 1.05rem; color: var(--v8b8-muted); border-top: 1px solid var(--v8b8-bg-3); padding-top: 0.8rem; }

/* ===== Bottom nav ===== */
.v8b8-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: 60px;
  background: linear-gradient(180deg, #23323f 0%, #1C2833 100%);
  border-top: 2px solid var(--v8b8-primary);
  display: flex; justify-content: space-around; align-items: stretch;
}
.v8b8-bottom-nav .v8b8-nav-btn {
  flex: 1; background: none; border: none; color: var(--v8b8-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; cursor: pointer; gap: 2px; transition: color 0.15s;
}
.v8b8-bottom-nav .v8b8-nav-btn .v8b8-nav-ic { font-size: 22px; line-height: 1; }
.v8b8-bottom-nav .v8b8-nav-btn .v8b8-nav-tx { font-size: 10px; font-weight: 600; }
.v8b8-bottom-nav .v8b8-nav-btn:active { transform: scale(0.92); }
.v8b8-bottom-nav .v8b8-nav-btn.v8b8-nav-active { color: var(--v8b8-primary); }
.v8b8-bottom-nav .v8b8-nav-btn.v8b8-nav-promo { color: var(--v8b8-gold); }

@media (min-width: 769px) {
  .v8b8-bottom-nav { display: none; }
  .v8b8-menu-btn { display: none; }
  .v8b8-container { max-width: 760px; }
  .v8b8-header-inner { max-width: 760px; }
  .v8b8-grid { grid-template-columns: repeat(6, 1fr); }
  .v8b8-feature-row { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.v8b8-center { text-align: center; }
.v8b8-mt { margin-top: 1.2rem; }
.v8b8-mb { margin-bottom: 1.2rem; }
