/* ============================================================
   Sic bo - layout stylesheet (css/layout-6c01.css)
   All custom classes use the v1c8- prefix.
   Mobile-first, container capped at max-width: 430px.
   Color palette:
     #4169E1 #DB7093 #FA8072 #CED4DA #FF7F50 #1A1A1A
   ============================================================ */

:root {
  --v1c8-primary: #4169E1;       /* royal blue */
  --v1c8-pink: #DB7093;          /* pale violet red */
  --v1c8-coral: #FA8072;         /* salmon */
  --v1c8-silver: #CED4DA;        /* light grey */
  --v1c8-orange: #FF7F50;        /* coral orange */
  --v1c8-bg: #1A1A1A;            /* near black */
  --v1c8-bg-soft: #232323;
  --v1c8-bg-card: #2a2a2a;
  --v1c8-text: #ffffff;
  --v1c8-text-muted: #c9c9c9;
  --v1c8-accent: #FFD479;
  --v1c8-line: rgba(255,255,255,0.08);
  --v1c8-radius: 14px;
  --v1c8-header-h: 56px;
  --v1c8-bottomnav-h: 62px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #2b2b3a 0%, var(--v1c8-bg) 55%);
  color: var(--v1c8-text);
  line-height: 1.55;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v1c8-accent); text-decoration: none; }
a:hover { color: var(--v1c8-orange); }

/* Page wrapper - mobile first, hard cap 430px for primary layout */
.v1c8-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, #1c1c1c 0%, #161616 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
.v1c8-container {
  width: 100%;
  padding: 0 14px;
}

/* Body lock when mobile menu open */
.v1c8-no-scroll { overflow: hidden; }

/* ====================== Header ====================== */
.v1c8-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--v1c8-bg) 0%, #20203a 60%, var(--v1c8-bg) 100%);
  border-bottom: 1px solid var(--v1c8-line);
  transition: box-shadow .25s ease, background .25s ease;
}
.v1c8-header-scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  background: rgba(20,20,20,0.96);
}
.v1c8-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--v1c8-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.v1c8-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--v1c8-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: .3px;
}
.v1c8-brand img { width: 30px; height: 30px; border-radius: 8px; }
.v1c8-brand .v1c8-brand-dot { color: var(--v1c8-orange); }

.v1c8-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.v1c8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  min-height: 38px;
  line-height: 1;
  color: #fff;
}
.v1c8-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.v1c8-btn-register {
  background: linear-gradient(135deg, var(--v1c8-orange), var(--v1c8-coral));
  box-shadow: 0 4px 14px rgba(255,127,80,0.45);
}
.v1c8-btn-login {
  background: linear-gradient(135deg, var(--v1c8-primary), #5b86e5);
  box-shadow: 0 4px 14px rgba(65,105,225,0.45);
}
.v1c8-btn-ghost {
  background: transparent;
  border: 1px solid var(--v1c8-silver);
  color: var(--v1c8-text);
}
.v1c8-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--v1c8-text);
  border: 1px solid var(--v1c8-line);
  cursor: pointer;
}
.v1c8-hamburger { display: inline-flex; }

/* ====================== Mobile slide menu ====================== */
.v1c8-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background: #161616;
  border-left: 1px solid var(--v1c8-line);
  z-index: 9999;
  transform: translateX(110%);
  transition: transform .3s ease;
  padding: 18px 16px;
  overflow-y: auto;
}
.v1c8-menu-open { transform: translateX(0); }
.v1c8-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.v1c8-menu-open + .v1c8-menu-overlay,
.v1c8-mobile-menu.v1c8-menu-open ~ .v1c8-menu-overlay { opacity: 1; pointer-events: auto; }
.v1c8-menu-title {
  font-size: 1.6rem;
  color: var(--v1c8-silver);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 14px 0 8px;
}
.v1c8-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--v1c8-text);
  font-size: 1.45rem;
  border-bottom: 1px solid var(--v1c8-line);
}
.v1c8-mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--v1c8-orange); }
.v1c8-menu-close { position: absolute; top: 12px; right: 12px; }

/* ====================== Main ====================== */
main.v1c8-main {
  padding-top: calc(var(--v1c8-header-h) + 6px);
  padding-bottom: calc(var(--v1c8-bottomnav-h) + 24px);
}
.v1c8-section { padding: 22px 14px; }
.v1c8-section-alt { background: rgba(255,255,255,0.025); }

.v1c8-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 6px 0 10px;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, var(--v1c8-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v1c8-h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0 12px;
  position: relative;
  padding-left: 14px;
}
.v1c8-h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--v1c8-orange), var(--v1c8-pink));
}
.v1c8-h3 { font-size: 1.5rem; font-weight: 700; margin: 10px 0 6px; color: var(--v1c8-coral); }
.v1c8-lead { color: var(--v1c8-text-muted); font-size: 1.4rem; }
.v1c8-p { margin: 8px 0; color: var(--v1c8-text-muted); }

/* ====================== Carousel ====================== */
.v1c8-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  margin-bottom: 8px;
}
.v1c8-carousel-track { position: relative; }
.v1c8-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.v1c8-carousel-slide.v1c8-active { display: block; }
.v1c8-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.v1c8-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}
.v1c8-carousel-cap small { display:block; font-weight: 400; color: var(--v1c8-silver); font-size: 1.2rem; }
.v1c8-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 0; color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.v1c8-carousel-arrow:hover { background: var(--v1c8-orange); }
.v1c8-carousel-prev { left: 8px; }
.v1c8-carousel-next { right: 8px; }
.v1c8-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v1c8-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 0; cursor: pointer; padding: 0;
}
.v1c8-carousel-dot.v1c8-active { background: var(--v1c8-orange); width: 22px; border-radius: 4px; }

/* ====================== Category tabs ====================== */
.v1c8-cat-tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.v1c8-cat-tabs::-webkit-scrollbar { display: none; }
.v1c8-cat-tab {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--v1c8-text-muted);
  font-size: 1.3rem;
  border: 1px solid var(--v1c8-line);
  cursor: pointer;
}
.v1c8-cat-tab.v1c8-cat-active {
  background: linear-gradient(135deg, var(--v1c8-orange), var(--v1c8-pink));
  color: #fff;
  border-color: transparent;
}

/* ====================== Game grid ====================== */
.v1c8-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v1c8-card {
  background: var(--v1c8-bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--v1c8-line);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease;
}
.v1c8-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.5); }
.v1c8-card img { width: 100%; height: 96px; object-fit: cover; }
.v1c8-card-name {
  padding: 8px 8px 10px;
  font-size: 1.2rem;
  color: var(--v1c8-text);
  text-align: center;
  min-height: 38px;
  display: flex; align-items: center; justify-content: center;
}

/* ====================== Feature / promo blocks ====================== */
.v1c8-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v1c8-tile {
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
  border: 1px solid var(--v1c8-line);
  border-radius: 12px;
  padding: 14px;
}
.v1c8-tile .v1c8-tile-ic { font-size: 2.2rem; color: var(--v1c8-orange); }
.v1c8-tile h3 { margin: 6px 0 4px; font-size: 1.4rem; color: #fff; }
.v1c8-tile p { margin: 0; font-size: 1.25rem; color: var(--v1c8-text-muted); }

.v1c8-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--v1c8-primary), var(--v1c8-pink));
  border: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(65,105,225,0.4);
}
.v1c8-cta:hover { filter: brightness(1.08); }
.v1c8-cta-orange { background: linear-gradient(135deg, var(--v1c8-orange), var(--v1c8-coral)); }

.v1c8-promo-link {
  color: var(--v1c8-accent);
  font-weight: 700;
  border-bottom: 1px dashed var(--v1c8-orange);
  cursor: pointer;
}
.v1c8-promo-link:hover { color: var(--v1c8-orange); }

/* Testimonials */
.v1c8-testi {
  background: var(--v1c8-bg-card);
  border-left: 3px solid var(--v1c8-orange);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.v1c8-testi .v1c8-stars { color: var(--v1c8-accent); }
.v1c8-testi p { margin: 4px 0 0; font-size: 1.3rem; color: var(--v1c8-text-muted); }
.v1c8-testi cite { color: var(--v1c8-coral); font-style: normal; font-weight: 700; }

/* Payment chips */
.v1c8-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v1c8-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--v1c8-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 1.25rem;
  color: var(--v1c8-text);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Winners ticker */
.v1c8-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  background: var(--v1c8-bg-card);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.v1c8-winner b { color: var(--v1c8-accent); }
.v1c8-winner .v1c8-amt { color: var(--v1c8-orange); font-weight: 800; }

/* Reveal animation */
.v1c8-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.v1c8-reveal.v1c8-visible { opacity: 1; transform: none; }

/* ====================== Footer ====================== */
.v1c8-footer {
  background: #101010;
  border-top: 1px solid var(--v1c8-line);
  padding: 22px 14px calc(var(--v1c8-bottomnav-h) + 26px);
  color: var(--v1c8-text-muted);
  font-size: 1.3rem;
}
.v1c8-footer h4 { color: #fff; font-size: 1.4rem; margin: 14px 0 8px; }
.v1c8-footer a { color: var(--v1c8-text-muted); }
.v1c8-footer a:hover { color: var(--v1c8-orange); }
.v1c8-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0;
}
.v1c8-footer-promo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0;
}
.v1c8-footer-promo .v1c8-btn { width: 100%; }
.v1c8-footer-brand { margin: 10px 0 6px; line-height: 1.6; }
.v1c8-copy { margin-top: 14px; font-size: 1.2rem; color: #7a7a7a; text-align: center; }

/* ====================== Mobile bottom navigation ====================== */
.v1c8-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v1c8-bottomnav-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,28,28,0.96), rgba(10,10,10,0.99));
  border-top: 1px solid var(--v1c8-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.5);
}
.v1c8-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--v1c8-silver);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 2px;
  font-size: 1.1rem;
  transition: transform .15s ease, color .2s ease;
}
.v1c8-navbtn .v1c8-nav-ic { font-size: 24px; line-height: 1; }
.v1c8-navbtn:hover { color: var(--v1c8-orange); transform: translateY(-2px); }
.v1c8-navbtn.v1c8-navbtn-current { color: var(--v1c8-orange); }
.v1c8-navbtn.v1c8-navbtn-current .v1c8-nav-ic { transform: scale(1.12); }
.v1c8-navbtn.v1c8-nav-promo {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,127,80,0.18), transparent);
}
.v1c8-navbtn.v1c8-nav-promo .v1c8-nav-ic { color: var(--v1c8-orange); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v1c8-bottomnav { display: none; }
  main.v1c8-main { padding-bottom: 40px; }
  .v1c8-footer { padding-bottom: 22px; }
}

/* Desktop wider layout for header inner */
@media (min-width: 769px) {
  .v1c8-header-inner { max-width: 960px; }
  .v1c8-wrapper { max-width: 960px; }
  .v1c8-grid { grid-template-columns: repeat(6, 1fr); }
  .v1c8-tiles { grid-template-columns: repeat(4, 1fr); }
}
