/*!
 * sz777 win - Core stylesheet
 * Mobile-first casino layout. All custom classes use the v8d0- prefix.
 * Palette: #1B263B deep navy, #FF6347 tomato accent, #FAFAFA paper,
 *          #FFEFD5 cream, #FFE4B5 moccasin, #8B7355 cocoa.
 */
:root {
  --v8d0-bg: #1B263B;
  --v8d0-bg-2: #243049;
  --v8d0-bg-3: #0f1828;
  --v8d0-primary: #FF6347;
  --v8d0-primary-dark: #d94b34;
  --v8d0-text: #FAFAFA;
  --v8d0-muted: #c3c9d6;
  --v8d0-cream: #FFEFD5;
  --v8d0-moccasin: #FFE4B5;
  --v8d0-cocoa: #8B7355;
  --v8d0-gold: #FFD27A;
  --v8d0-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.28);
  --v8d0-radius: 1.4rem;
  --v8d0-radius-sm: 0.9rem;
  --v8d0-maxw: 430px;
  font-size: 62.5%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v8d0-bg);
  color: var(--v8d0-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v8d0-cream); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.8rem; }

/* Layout */
.v8d0-wrapper {
  width: 100%;
  max-width: var(--v8d0-maxw);
  margin: 0 auto;
  position: relative;
}
.v8d0-container { padding: 1.4rem; }

/* Header */
.v8d0-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(90deg, var(--v8d0-bg-3), var(--v8d0-bg-2));
  border-bottom: 0.2rem solid var(--v8d0-primary);
  box-shadow: var(--v8d0-shadow);
  z-index: 1000;
}
.v8d0-header-inner {
  max-width: var(--v8d0-maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.v8d0-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v8d0-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.v8d0-brand img { width: 30px; height: 30px; border-radius: 0.5rem; }
.v8d0-brand span { background: linear-gradient(90deg, var(--v8d0-gold), var(--v8d0-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.v8d0-actions { display: flex; gap: 0.5rem; align-items: center; }
.v8d0-btn {
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.v8d0-btn:active { transform: scale(0.94); }
.v8d0-btn--login { background: rgba(255, 255, 255, 0.12); color: var(--v8d0-text); }
.v8d0-btn--register { background: linear-gradient(90deg, var(--v8d0-primary), var(--v8d0-gold)); color: var(--v8d0-bg-3); }

.v8d0-nav-toggle {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0.6rem;
  color: var(--v8d0-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.v8d0-nav-toggle--active { background: var(--v8d0-primary); }

/* Mobile nav menu */
.v8d0-nav-menu {
  position: fixed;
  top: 60px; right: -100%;
  width: 80%;
  max-width: 320px;
  background: var(--v8d0-bg-2);
  border-left: 0.2rem solid var(--v8d0-primary);
  height: calc(100vh - 60px);
  padding: 1.5rem 1.2rem;
  transition: right 0.28s ease;
  z-index: 9999;
  overflow-y: auto;
}
.v8d0-nav-menu--open { right: 0; }
.v8d0-nav-menu h4 { font-size: 1.3rem; color: var(--v8d0-gold); margin: 1.4rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.1rem; }
.v8d0-nav-menu a {
  display: block;
  padding: 1rem 0.8rem;
  border-radius: 0.7rem;
  margin-bottom: 0.4rem;
  color: var(--v8d0-text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.4rem;
}
.v8d0-nav-menu a:active { background: var(--v8d0-primary); }

/* Hero carousel */
.v8d0-hero { margin-top: 60px; }
.v8d0-carousel { position: relative; overflow: hidden; border-radius: 0 0 1.6rem 1.6rem; }
.v8d0-slide {
  position: relative; display: none;
  cursor: pointer;
}
.v8d0-slide img { width: 100%; height: 220px; object-fit: cover; }
.v8d0-slide--active { display: block; animation: v8d0-fade 0.6s ease; }
@keyframes v8d0-fade { from { opacity: 0.4; } to { opacity: 1; } }
.v8d0-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(15, 24, 40, 0.78);
  padding: 0.7rem 1rem; border-radius: 0.8rem;
  font-size: 1.4rem; font-weight: 600;
}
.v8d0-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.8rem 0; }
.v8d0-dot { width: 9px; height: 9px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; cursor: pointer; }
.v8d0-dot--active { background: var(--v8d0-primary); transform: scale(1.25); }

/* Section titles */
.v8d0-section { padding: 1.6rem 1.2rem; }
.v8d0-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--v8d0-cream);
  display: flex; align-items: center; gap: 0.5rem;
}
.v8d0-section-title i { color: var(--v8d0-primary); }
.v8d0-section-sub { font-size: 1.35rem; color: var(--v8d0-muted); margin-bottom: 1rem; }

/* Inline promotion links */
.v8d0-cta {
  display: inline-block;
  margin: 0.6rem 0.3rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(90deg, var(--v8d0-primary), var(--v8d0-gold));
  color: var(--v8d0-bg-3);
  font-weight: 700;
  border-radius: 2rem;
  font-size: 1.35rem;
  cursor: pointer;
}
.v8d0-text-link { color: var(--v8d0-primary); font-weight: 700; text-decoration: underline; }

/* Game grid */
.v8d0-game-list { margin-bottom: 1.6rem; }
.v8d0-game-list--hidden { display: none; }
.v8d0-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v8d0-game-card {
  background: var(--v8d0-bg-2);
  border-radius: var(--v8d0-radius-sm);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.v8d0-game-card:active { transform: scale(0.95); border-color: var(--v8d0-primary); }
.v8d0-game-card img { width: 100%; height: 80px; object-fit: cover; border-radius: 0.6rem; }
.v8d0-game-name { font-size: 1.15rem; margin-top: 0.4rem; color: var(--v8d0-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v8d0-filter-chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 0; margin-bottom: 0.4rem; }
.v8d0-filter-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--v8d0-text);
  border: 1px solid transparent;
}
.v8d0-filter-chip--active { background: var(--v8d0-primary); color: var(--v8d0-bg-3); font-weight: 700; }

/* Card panels */
.v8d0-card {
  background: linear-gradient(145deg, var(--v8d0-bg-2), var(--v8d0-bg-3));
  border-radius: var(--v8d0-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--v8d0-shadow);
}
.v8d0-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; color: var(--v8d0-gold); }
.v8d0-card p { font-size: 1.3rem; color: var(--v8d0-muted); margin-bottom: 0.6rem; }

.v8d0-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.8rem; }
.v8d0-stat { background: rgba(255, 99, 71, 0.1); border-radius: 0.8rem; padding: 0.8rem; text-align: center; }
.v8d0-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--v8d0-primary); }
.v8d0-stat-label { font-size: 1.1rem; color: var(--v8d0-muted); }

.v8d0-faq-item { background: var(--v8d0-bg-2); border-radius: 0.8rem; padding: 1rem; margin-bottom: 0.6rem; }
.v8d0-faq-item h4 { font-size: 1.35rem; color: var(--v8d0-cream); margin-bottom: 0.4rem; }
.v8d0-faq-item p { font-size: 1.25rem; color: var(--v8d0-muted); }

.v8d0-testimonial { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem; background: var(--v8d0-bg-2); border-radius: 0.8rem; margin-bottom: 0.6rem; }
.v8d0-testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--v8d0-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--v8d0-bg-3); }
.v8d0-testimonial p { font-size: 1.25rem; color: var(--v8d0-text); }
.v8d0-testimonial small { color: var(--v8d0-gold); }

.v8d0-winners { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; }
.v8d0-winner { flex: 0 0 auto; background: var(--v8d0-bg-2); border: 1px solid rgba(255, 210, 122, 0.3); border-radius: 0.8rem; padding: 0.7rem 1rem; }
.v8d0-winner b { color: var(--v8d0-gold); display: block; font-size: 1.3rem; }
.v8d0-winner span { font-size: 1.15rem; color: var(--v8d0-muted); }

/* Payment icons */
.v8d0-pay-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.v8d0-pay-row .v8d0-pay { flex: 1 1 28%; background: var(--v8d0-bg-3); border-radius: 0.7rem; padding: 0.7rem; text-align: center; font-size: 1.15rem; color: var(--v8d0-cream); border: 1px solid rgba(255, 255, 255, 0.06); }
.v8d0-pay i { font-size: 2rem; color: var(--v8d0-gold); display: block; margin-bottom: 0.3rem; }

/* Footer */
.v8d0-footer {
  background: var(--v8d0-bg-3);
  padding: 1.8rem 1.2rem 6rem;
  border-top: 0.2rem solid var(--v8d0-primary);
}
.v8d0-footer-brand { font-size: 1.35rem; color: var(--v8d0-muted); margin-bottom: 1rem; }
.v8d0-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v8d0-footer-promos .v8d0-btn { flex: 1 1 40%; justify-content: center; }
.v8d0-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1rem 0; }
.v8d0-footer-links a { font-size: 1.25rem; padding: 0.4rem 0; color: var(--v8d0-muted); }
.v8d0-footer-links a:hover { color: var(--v8d0-primary); }
.v8d0-footer-copy { font-size: 1.15rem; color: var(--v8d0-muted); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1rem; text-align: center; }

/* Bottom mobile nav */
.v8d0-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--v8d0-bg-2), var(--v8d0-bg-3));
  border-top: 0.2rem solid var(--v8d0-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.35);
}
.v8d0-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--v8d0-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s ease;
}
.v8d0-bottom-nav-btn i, .v8d0-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.v8d0-bottom-nav-btn--active { color: var(--v8d0-primary); }
.v8d0-bottom-nav-btn--active::before {
  content: ''; position: absolute; top: -2px; left: 25%; right: 25%;
  height: 3px; background: var(--v8d0-primary); border-radius: 0 0 0.4rem 0.4rem;
}
.v8d0-bottom-nav-btn--promo { color: var(--v8d0-gold); }

/* Desktop */
@media (min-width: 769px) {
  .v8d0-bottom-nav { display: none; }
  body { padding-bottom: 0; }
  main { padding-bottom: 2rem; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
