/* f8bet casino - layout CSS
   All custom classes use the s970- prefix
   Mobile-first: max-width 430px target, scales up to desktop
   Palette: #4DB6AC (teal primary) | #F0FDFF (light bg) | #808080 (grey) | #0A0A0A (dark bg) | #E0FFFF (cyan accent)
*/

:root {
  --s970-primary: #4DB6AC;
  --s970-bg: #0A0A0A;
  --s970-text: #F0FDFF;
  --s970-grey: #808080;
  --s970-accent: #E0FFFF;
  --s970-deep: #06100F;
  --s970-card: #121A19;
  --s970-border: #1E2B29;
  --s970-gold: #FFD27A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--s970-bg);
  color: var(--s970-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

a {
  color: var(--s970-primary);
  text-decoration: none;
}

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

.s970-wrapper {
  min-height: 100vh;
  background: var(--s970-bg);
}

/* ============ HEADER ============ */
.s970-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0A0A0A 0%, #06100F 100%);
  border-bottom: 2px solid var(--s970-primary);
  max-width: 430px;
  margin: 0 auto;
}

.s970-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}

.s970-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.s970-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s970-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--s970-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s970-logo-text span {
  color: var(--s970-accent);
}

.s970-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s970-menu-btn {
  background: transparent;
  border: 1px solid var(--s970-primary);
  color: var(--s970-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.s970-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  min-height: 40px;
}

.s970-btn-register {
  background: linear-gradient(90deg, #4DB6AC, #2E8B82);
  color: #0A0A0A;
}

.s970-btn-login {
  background: transparent;
  color: var(--s970-primary);
  border: 1px solid var(--s970-primary);
}

.s970-btn-promo {
  background: linear-gradient(90deg, #FFD27A, #E0FFFF);
  color: #0A0A0A;
  padding: 1rem 1.4rem;
  width: 100%;
  font-size: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
}

/* ============ MOBILE MENU ============ */
.s970-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 16, 15, 0.98);
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}

.s970-mobile-menu.s970-menu-open {
  transform: translateX(0);
}

.s970-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  background: transparent;
  border: 1px solid var(--s970-primary);
  color: var(--s970-primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 2rem;
  cursor: pointer;
}

.s970-menu-title {
  color: var(--s970-primary);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.s970-menu-link {
  display: block;
  padding: 1.1rem 1rem;
  color: var(--s970-text);
  border-bottom: 1px solid var(--s970-border);
  font-size: 1.4rem;
  font-weight: 600;
}

.s970-menu-link i,
.s970-menu-link .material-icons-outlined {
  color: var(--s970-primary);
  margin-right: 0.6rem;
}

.s970-menu-link:active {
  background: var(--s970-card);
}

/* ============ MAIN ============ */
.s970-main {
  padding-top: 6rem;
}

@media (max-width: 768px) {
  .s970-main {
    padding-bottom: 8rem;
  }
}

.s970-section {
  padding: 1.6rem 0;
}

.s970-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s970-primary);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--s970-accent);
  padding-left: 0.8rem;
}

.s970-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--s970-accent);
  margin: 1rem 0;
  line-height: 1.4;
}

.s970-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--s970-primary);
  margin: 1.2rem 0 0.6rem;
}

.s970-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s970-accent);
  margin: 1rem 0 0.4rem;
}

.s970-text-block {
  color: #D6E8E6;
  font-size: 1.35rem;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.s970-text-block a {
  color: var(--s970-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ============ CAROUSEL ============ */
.s970-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}

.s970-slides {
  position: relative;
  height: 180px;
}

.s970-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.s970-slide.s970-slide-active {
  opacity: 1;
}

.s970-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s970-slide-caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(10, 10, 10, 0.7);
  color: var(--s970-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.s970-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0;
}

.s970-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s970-grey);
  cursor: pointer;
  border: none;
}

.s970-dot.s970-dot-active {
  background: var(--s970-primary);
  transform: scale(1.3);
}

/* ============ GAME GRID ============ */
.s970-game-group {
  margin-bottom: 1.4rem;
}

.s970-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--s970-primary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s970-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (min-width: 480px) {
  .s970-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.s970-card {
  background: var(--s970-card);
  border: 1px solid var(--s970-border);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.s970-card:active {
  transform: scale(0.94);
  border-color: var(--s970-primary);
}

.s970-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.s970-card-name {
  font-size: 1rem;
  color: var(--s970-text);
  line-height: 1.2;
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ FEATURES / MODULES ============ */
.s970-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.s970-feature {
  background: var(--s970-card);
  border: 1px solid var(--s970-border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.s970-feature i,
.s970-feature .material-icons-outlined {
  font-size: 2.2rem;
  color: var(--s970-primary);
  margin-bottom: 0.4rem;
}

.s970-feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--s970-accent);
  margin-bottom: 0.2rem;
}

.s970-feature-desc {
  font-size: 1.1rem;
  color: #B6C9C7;
  line-height: 1.35;
}

.s970-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s970-card);
  border-radius: 10px;
  overflow: hidden;
}

.s970-rtp-table th,
.s970-rtp-table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--s970-border);
  font-size: 1.2rem;
}

.s970-rtp-table th {
  background: #0E1A18;
  color: var(--s970-primary);
}

.s970-rtp-table td:last-child {
  color: var(--s970-gold);
  font-weight: 700;
}

.s970-testimonial {
  background: var(--s970-card);
  border-left: 3px solid var(--s970-primary);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.7rem;
}

.s970-testimonial-name {
  color: var(--s970-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.s970-testimonial-text {
  color: #C9DBD9;
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

.s970-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.s970-winner {
  background: var(--s970-card);
  border: 1px solid var(--s970-border);
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1.15rem;
}

.s970-winner-name {
  color: var(--s970-accent);
  font-weight: 700;
}

.s970-winner-amount {
  color: var(--s970-gold);
  font-weight: 800;
  font-size: 1.3rem;
}

.s970-pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.s970-pay-item {
  background: var(--s970-card);
  border: 1px solid var(--s970-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--s970-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.s970-pay-item i {
  color: var(--s970-primary);
}

.s970-cta-box {
  background: linear-gradient(135deg, #06100F, #122623);
  border: 1px solid var(--s970-primary);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}

.s970-cta-box h3 {
  color: var(--s970-gold);
  margin-bottom: 0.4rem;
}

.s970-cta-box p {
  color: #D6E8E6;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

/* ============ FOOTER ============ */
.s970-footer {
  background: #06100F;
  border-top: 2px solid var(--s970-primary);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.4rem;
}

.s970-footer-brand {
  color: #C9DBD9;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.s970-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1rem;
}

.s970-footer-links a {
  color: var(--s970-primary);
  font-size: 1.2rem;
}

.s970-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.s970-footer-promos .s970-btn {
  width: 100%;
  font-size: 1.15rem;
  padding: 0.7rem;
}

.s970-footer-copy {
  color: var(--s970-grey);
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid var(--s970-border);
  padding-top: 0.8rem;
}

/* ============ BOTTOM NAV ============ */
.s970-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: #06100F;
  border-top: 2px solid var(--s970-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.s970-bnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--s970-grey);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.s970-bnav-item i,
.s970-bnav-item .material-icons-outlined,
.s970-bnav-item ion-icon {
  font-size: 24px;
}

.s970-bnav-item span {
  font-size: 1rem;
  font-weight: 600;
}

.s970-bnav-item:active,
.s970-bnav-item.s970-bnav-active {
  color: var(--s970-primary);
  transform: scale(1.08);
}

.s970-bnav-badge {
  position: absolute;
  top: 4px;
  right: 18px;
  background: #FFD27A;
  color: #0A0A0A;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 50%;
  padding: 0 0.35rem;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
}

.s970-bnav-item {
  position: relative;
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .s970-bottom-nav {
    display: none;
  }
  .s970-container,
  .s970-header,
  .s970-mobile-menu {
    max-width: 760px;
  }
}

/* Desktop top nav links */
.s970-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .s970-desktop-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .s970-desktop-nav a {
    color: var(--s970-text);
    font-size: 1.2rem;
    font-weight: 600;
  }
  .s970-desktop-nav a:hover {
    color: var(--s970-primary);
  }
  .s970-menu-btn {
    display: none;
  }
}

.s970-list {
  list-style: none;
  padding-left: 0;
}

.s970-list li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  color: #D6E8E6;
  font-size: 1.25rem;
  line-height: 1.5;
}

.s970-list li::before {
  content: "▸";
  color: var(--s970-primary);
  position: absolute;
  left: 0.2rem;
}

.s970-faq-item {
  background: var(--s970-card);
  border: 1px solid var(--s970-border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 0.6rem;
}

.s970-faq-q {
  color: var(--s970-accent);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.s970-faq-a {
  color: #C9DBD9;
  font-size: 1.2rem;
  line-height: 1.45;
}

.s970-tag {
  display: inline-block;
  background: rgba(77, 182, 172, 0.15);
  color: var(--s970-primary);
  border: 1px solid var(--s970-primary);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 1.1rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
}
