/* css/design-678d.css - x88 club core stylesheet (English comments) */
/* All custom classes use the s678- prefix to isolate from third-party CSS. */

/* CSS variables - palette from project brief */
:root {
  --s678-primary: #E9967A;
  --s678-secondary: #FFC0CB;
  --s678-accent: #BAE1FF;
  --s678-cream: #FFDFBA;
  --s678-dark: #3A3A3A;
  --s678-darker: #2a2a2a;
  --s678-light: #FFFFFF;
  --s678-muted: rgba(255, 255, 255, 0.72);
  --s678-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  --s678-radius: 14px;
  --s678-radius-sm: 10px;
  --s678-transition: 0.25s ease;
}

/* Root font sizing - rem units baseline 62.5% */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Inter", "Roboto", system-ui, sans-serif;
  background: linear-gradient(160deg, #2a2a2a 0%, #3A3A3A 60%, #5a4640 100%);
  color: var(--s678-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--s678-secondary); text-decoration: none; }
a:hover { color: var(--s678-cream); }

.s678-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.s678-wrapper { padding-top: 6.4rem; padding-bottom: 9rem; }

/* ===== Header ===== */
.s678-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #2a2a2a 0%, #3A3A3A 100%);
  border-bottom: 2px solid var(--s678-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.s678-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.s678-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.s678-brand img { width: 28px; height: 28px; border-radius: 6px; }
.s678-brand-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--s678-light);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.s678-brand-text span { color: var(--s678-primary); }

.s678-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.s678-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--s678-transition);
  text-decoration: none;
  white-space: nowrap;
}
.s678-btn:focus-visible { outline: 2px solid var(--s678-accent); outline-offset: 2px; }
.s678-btn-register {
  background: linear-gradient(90deg, var(--s678-primary), #d97a5e);
  color: #fff;
  box-shadow: 0 3px 10px rgba(233, 150, 122, 0.45);
}
.s678-btn-register:hover { transform: translateY(-1px); color: #fff; }
.s678-btn-login {
  background: transparent;
  color: var(--s678-accent);
  border: 1.5px solid var(--s678-accent);
}
.s678-btn-login:hover { background: rgba(186, 225, 255, 0.14); color: #fff; }

.s678-menu-btn {
  background: transparent;
  border: none;
  color: var(--s678-light);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
.s678-menu-btn:hover { color: var(--s678-primary); }

/* ===== Mobile menu ===== */
.s678-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: #2a2a2a;
  z-index: 999;
  transition: max-height 0.32s ease, padding 0.32s ease;
  padding: 0 1.4rem;
  border-bottom: 1px solid rgba(233, 150, 122, 0.4);
}
.s678-mobile-menu.s678-is-open {
  max-height: 460px;
  padding: 1rem 1.4rem 1.4rem;
}
.s678-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s678-light);
}
.s678-mobile-menu a:hover { color: var(--s678-primary); }
.s678-mobile-menu a:last-child { border-bottom: none; }

/* ===== Carousel ===== */
.s678-carousel {
  position: relative;
  margin: 1.4rem 0;
  border-radius: var(--s678-radius);
  overflow: hidden;
  box-shadow: var(--s678-shadow);
}
.s678-carousel-viewport { overflow: hidden; }
.s678-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  width: 100%;
}
.s678-carousel-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.s678-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.s678-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.s678-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.s678-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer; border: none; padding: 0;
}
.s678-carousel-dot.s678-is-active { background: var(--s678-primary); }

/* ===== Section titles ===== */
.s678-section { margin: 2.4rem 0; }
.s678-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.s678-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--s678-light);
  display: flex; align-items: center; gap: 0.6rem;
}
.s678-section-title i { color: var(--s678-primary); }
.s678-section-link { font-size: 1.25rem; color: var(--s678-accent); }

/* ===== Game grid ===== */
.s678-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.s678-game-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--s678-radius-sm);
  padding: 0.7rem;
  text-align: center;
  cursor: pointer;
  transition: var(--s678-transition);
}
.s678-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--s678-primary);
  box-shadow: 0 6px 16px rgba(233, 150, 122, 0.28);
}
.s678-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.s678-game-card-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--s678-light);
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
}

/* ===== Feature / info cards ===== */
.s678-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--s678-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.s678-card h2, .s678-card h3 { margin: 0 0 0.8rem; color: var(--s678-cream); }
.s678-card h2 { font-size: 1.8rem; }
.s678-card h3 { font-size: 1.5rem; }
.s678-card p { margin: 0 0 0.8rem; color: var(--s678-muted); font-size: 1.35rem; }

.s678-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.s678-feature-box {
  background: rgba(233, 150, 122, 0.12);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.s678-feature-box i { font-size: 2.2rem; color: var(--s678-primary); }
.s678-feature-box span { display: block; margin-top: 0.4rem; font-size: 1.2rem; font-weight: 600; }

.s678-text-promo {
  color: var(--s678-primary);
  font-weight: 700;
  cursor: pointer;
}
.s678-text-promo:hover { text-decoration: underline; }

.s678-cta {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, var(--s678-primary), #d97a5e);
  color: #fff !important;
  padding: 1.2rem;
  border-radius: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.4rem 0;
  box-shadow: 0 4px 14px rgba(233, 150, 122, 0.45);
}

/* ===== RTP table ===== */
.s678-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.s678-rtp-table th, .s678-rtp-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.s678-rtp-table th { color: var(--s678-cream); font-size: 1.2rem; }
.s678-rtp-table td.rtp-val { color: var(--s678-accent); font-weight: 700; }

/* ===== Testimonials ===== */
.s678-testimonials { display: grid; gap: 0.8rem; }
.s678-testimonial {
  background: rgba(186, 225, 255, 0.08);
  border-left: 3px solid var(--s678-accent);
  padding: 1rem 1.2rem;
  border-radius: 8px;
}
.s678-testimonial p { margin: 0 0 0.4rem; font-size: 1.25rem; color: var(--s678-light); }
.s678-testimonial span { font-size: 1.1rem; color: var(--s678-cream); }

/* ===== Payment icons ===== */
.s678-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s678-pay-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--s678-light);
}

/* ===== Footer ===== */
.s678-footer {
  background: #232323;
  margin-top: 2rem;
  padding: 2rem 1.4rem 2.5rem;
  border-top: 2px solid var(--s678-primary);
}
.s678-footer-inner { max-width: 430px; margin: 0 auto; }
.s678-footer-about { font-size: 1.25rem; color: var(--s678-muted); margin-bottom: 1.2rem; }
.s678-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.s678-footer-promos a {
  background: var(--s678-primary);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
}
.s678-footer-promos a:hover { background: #d97a5e; color: #fff; }
.s678-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
.s678-footer-links a { font-size: 1.2rem; color: var(--s678-accent); }
.s678-footer-copy { margin-top: 1.2rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.45); }

/* ===== Bottom nav ===== */
.s678-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(90deg, #2a2a2a, #3A3A3A);
  border-top: 2px solid var(--s678-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.45);
}
.s678-bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  gap: 2px;
  cursor: pointer;
  transition: var(--s678-transition);
  background: none;
  border: none;
  text-decoration: none;
}
.s678-bottomnav-item i { font-size: 22px; }
.s678-bottomnav-item .material-icons-outlined,
.s678-bottomnav-item .material-icons { font-size: 24px; }
.s678-bottomnav-item:hover { color: var(--s678-primary); transform: translateY(-2px); }
.s678-bottomnav-item.s678-is-current { color: var(--s678-primary); }
.s678-bottomnav-item.s678-is-current::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 36px;
  height: 3px;
  background: var(--s678-primary);
  border-radius: 0 0 6px 6px;
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .s678-bottomnav { display: none; }
  .s678-container { max-width: 720px; }
  .s678-header-inner { max-width: 720px; }
  .s678-footer-inner { max-width: 720px; }
  .s678-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Mobile: reserve space for bottom nav */
@media (max-width: 768px) {
  .s678-wrapper { padding-bottom: 9rem; }
  main { padding-bottom: 80px; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
