/* AO88A - theme.css (basefiles)
   CSS class prefix: s118-
   Palette: #F8F9FA | #4682B4 | #3A3A3A | #00E5FF
   Mobile-first, root font 62.5%, rem units. */

:root {
  --s118-primary: #4682B4;
  --s118-accent: #00E5FF;
  --s118-bg: #3A3A3A;
  --s118-bg-dark: #2a2a2a;
  --s118-bg-darker: #1f1f1f;
  --s118-text: #F8F9FA;
  --s118-card: #4a4a4a;
  --s118-border: rgba(248, 249, 250, 0.12);
  --s118-radius: 10px;
}

/* use border-box sizing and smooth scrolling */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--s118-bg-dark);
  color: var(--s118-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

a { color: var(--s118-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0 0 1rem; }

/* ===================== Header ===================== */
.s118-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: var(--s118-bg-darker);
  border-bottom: 1px solid var(--s118-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}
.s118-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--s118-text);
}
.s118-logo img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.s118-logo span { font-weight: 700; font-size: 1.7rem; letter-spacing: 0.5px; color: var(--s118-accent); }
.s118-actions { display: flex; align-items: center; gap: 8px; }
.s118-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  touch-action: manipulation;
  transition: transform 0.12s ease, opacity 0.2s ease;
}
.s118-btn:active { transform: scale(0.96); }
.s118-btn-login {
  background: transparent;
  color: var(--s118-text);
  border: 1px solid var(--s118-border);
}
.s118-btn-register {
  background: linear-gradient(135deg, var(--s118-primary), var(--s118-accent));
  color: #1f1f1f;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}
.s118-menu-toggle {
  background: transparent;
  border: 1px solid var(--s118-border);
  color: var(--s118-text);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}
.s118-menu-toggle i { font-size: 18px; }

/* Mobile menu */
.s118-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s118-bg-darker);
  border-bottom: 1px solid var(--s118-border);
  padding: 10px 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  z-index: 1000;
}
.s118-mobile-menu.s118-menu-open { max-height: 420px; }
.s118-mobile-menu a {
  display: block;
  padding: 10px 8px;
  color: var(--s118-text);
  border-bottom: 1px solid var(--s118-border);
  font-size: 1.35rem;
}
.s118-mobile-menu a:last-child { border-bottom: none; }
.s118-mobile-menu a i { margin-right: 8px; color: var(--s118-accent); }

/* ===================== Layout ===================== */
.s118-wrapper {
  padding-top: 56px;
  padding-bottom: 0;
  max-width: 430px;
  margin: 0 auto;
}
main { padding-bottom: 0; }
@media (max-width: 768px) {
  main { padding-bottom: 84px; }
  .s118-wrapper { max-width: 430px; }
}

.s118-section {
  padding: 18px 14px;
}
.s118-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s118-text);
  margin-bottom: 10px;
  padding-left: 6px;
  border-left: 4px solid var(--s118-accent);
}
.s118-section-sub { font-size: 1.25rem; color: #cfcfcf; margin-bottom: 12px; }

/* ===================== Carousel ===================== */
.s118-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.s118-slide {
  display: none;
  position: relative;
}
.s118-slide.s118-slide-active { display: block; }
.s118-slide img { width: 100%; height: 180px; object-fit: cover; }
.s118-slide-caption {
  position: absolute;
  left: 12px; bottom: 10px;
  background: rgba(0,0,0,0.5);
  color: var(--s118-text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 1.3rem;
}
.s118-slide-dots {
  position: absolute;
  right: 10px; bottom: 12px;
  display: flex; gap: 6px;
}
.s118-slide-dot {
  width: 9px; height: 9px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  cursor: pointer;
}
.s118-slide-dot.s118-slide-dot-active { background: var(--s118-accent); }

/* ===================== Promo CTA strip ===================== */
.s118-cta {
  background: linear-gradient(135deg, #4682B4, #00E5FF);
  color: #1f1f1f;
  border-radius: 12px;
  padding: 14px;
  margin: 12px;
  text-align: center;
}
.s118-cta h2 { font-size: 1.6rem; margin-bottom: 6px; }
.s118-cta p { font-size: 1.3rem; margin-bottom: 8px; color: #10212e; }
.s118-cta-btn {
  background: #1f1f1f;
  color: var(--s118-accent);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

/* ===================== Game grid ===================== */
.s118-cat-title {
  font-size: 1.6rem;
  color: var(--s118-accent);
  margin: 14px 4px 8px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.s118-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 2px;
}
.s118-card {
  background: var(--s118-card);
  border: 1px solid var(--s118-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 8px 6px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease;
}
.s118-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,229,255,0.18); }
.s118-card:active { transform: scale(0.97); }
.s118-card img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.s118-card-name { font-size: 1.15rem; color: var(--s118-text); line-height: 1.3; word-break: break-word; }
.s118-card-tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--s118-accent);
  background: rgba(0,229,255,0.12);
  border-radius: 6px;
  padding: 1px 6px;
  margin-top: 4px;
}

/* ===================== Info modules ===================== */
.s118-card-block {
  background: var(--s118-card);
  border: 1px solid var(--s118-border);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.s118-card-block h2 { font-size: 1.55rem; color: var(--s118-text); margin-bottom: 8px; }
.s118-card-block h3 { font-size: 1.3rem; color: var(--s118-accent); margin: 10px 0 4px; }
.s118-card-block p { font-size: 1.3rem; color: #dcdcdc; }
.s118-card-block ul { padding-left: 18px; color: #dcdcdc; }
.s118-card-block li { font-size: 1.28rem; margin-bottom: 4px; }

.s118-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.s118-feature-item {
  background: var(--s118-bg-darker);
  border: 1px solid var(--s118-border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.s118-feature-item i { font-size: 24px; color: var(--s118-accent); }
.s118-feature-item h4 { margin: 6px 0 2px; font-size: 1.25rem; color: var(--s118-text); }
.s118-feature-item p { font-size: 1.12rem; color: #cfcfcf; margin: 0; }

/* rtp mini table */
.s118-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--s118-border);
  font-size: 1.28rem;
}
.s118-rtp-row span:last-child { color: var(--s118-accent); font-weight: 600; }
.s118-rtp-bar {
  height: 6px;
  background: var(--s118-bg-darker);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
.s118-rtp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--s118-primary), var(--s118-accent));
}

/* testimonial */
.s118-testimonial {
  background: var(--s118-bg-darker);
  border-left: 3px solid var(--s118-accent);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.s118-testimonial p { margin: 0 0 4px; font-size: 1.25rem; color: #dcdcdc; }
.s118-testimonial small { color: var(--s118-accent); font-size: 1.1rem; }

/* payment chips */
.s118-pay-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.s118-pay-chip {
  background: var(--s118-bg-darker);
  border: 1px solid var(--s118-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.18rem;
  color: #dcdcdc;
}
.s118-pay-chip i { margin-right: 4px; color: var(--s118-accent); }

/* winners showcase */
.s118-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--s118-bg-darker);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.s118-winner i { font-size: 22px; color: #ffd700; }
.s118-winner div { font-size: 1.2rem; }
.s118-winner small { color: #cfcfcf; }

/* play-now floating button on sections */
.s118-play-now {
  display: inline-block;
  background: linear-gradient(135deg, var(--s118-primary), var(--s118-accent));
  color: #1f1f1f;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
}

/* reveal animation */
.s118-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.s118-reveal.s118-revealed { opacity: 1; transform: translateY(0); }

/* inline seo link */
.s118-seo-link { color: var(--s118-accent); text-decoration: underline; }

/* ===================== Footer ===================== */
.s118-footer {
  background: var(--s118-bg-darker);
  border-top: 1px solid var(--s118-border);
  padding: 18px 14px;
  color: #cfcfcf;
}
.s118-footer-brand { font-size: 1.28rem; margin-bottom: 10px; color: #dcdcdc; }
.s118-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.s118-footer-links a {
  flex: 1 1 40%;
  font-size: 1.2rem;
  color: var(--s118-text);
  text-decoration: underline;
}
.s118-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0;
}
.s118-footer-promo button {
  flex: 1 1 45%;
  background: linear-gradient(135deg, var(--s118-primary), var(--s118-accent));
  color: #1f1f1f;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.s118-footer-copy { font-size: 1.1rem; color: #9a9a9a; text-align: center; margin-top: 6px; }

/* ===================== Mobile bottom nav ===================== */
.s118-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: var(--s118-bg-darker);
  border-top: 1px solid var(--s118-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
@media (min-width: 769px) { .s118-bnav { display: none; } }

.s118-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #cfcfcf;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}
.s118-bnav-btn i, .s118-bnav-btn span.material-icons-outlined {
  font-size: 22px;
}
.s118-bnav-btn span { font-size: 1.05rem; line-height: 1; }
.s118-bnav-btn:active { transform: scale(0.92); }
.s118-bnav-btn:hover { color: var(--s118-accent); }
.s118-bnav-active { color: var(--s118-accent) !important; }

/* badge */
.s118-bnav-badge {
  position: relative;
}
.s118-bnav-badge::after {
  content: "1";
  position: absolute;
  top: 6px; right: 18px;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 50%;
  min-width: 14px; height: 14px;
  line-height: 14px;
  text-align: center;
  padding: 0 3px;
}