/* ============================================================
   mm88 bets - Base Stylesheet
   Class prefix: wa24c-
   Palette: #00FFFF | #40E0D0 | #333333 | #AFEEEE
   ============================================================ */

:root {
  --wa24c-primary: #00FFFF;
  --wa24c-secondary: #40E0D0;
  --wa24c-bg: #333333;
  --wa24c-bg-deep: #1f2a2e;
  --wa24c-text: #AFEEEE;
  --wa24c-text-soft: #cfeef0;
  --wa24c-accent: #00FFFF;
  --wa24c-border: rgba(0, 255, 255, 0.18);
  --wa24c-radius: 1.2rem;
  --wa24c-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, #2b3438 0%, #333333 60%, #1f2a2e 100%);
  color: var(--wa24c-text-soft);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
}

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

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

h1, h2, h3 {
  color: var(--wa24c-primary);
  line-height: 1.4;
  margin: 1.2rem 0 0.8rem;
  font-weight: 700;
}

p { margin: 0.6rem 0; }

/* ============== Layout ============== */
.wa24c-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.wa24c-container {
  padding-bottom: 2rem;
}

main {
  padding-top: 6rem;
}

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

/* ============== Header ============== */
.wa24c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(31, 42, 46, 0.96);
  border-bottom: 0.1rem solid var(--wa24c-border);
  backdrop-filter: blur(0.8rem);
}

.wa24c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.wa24c-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.wa24c-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}

.wa24c-brand-name {
  font-weight: 800;
  color: var(--wa24c-primary);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.wa24c-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--wa24c-border);
  color: var(--wa24c-primary);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============== Buttons ============== */
.wa24c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.wa24c-btn:active { transform: scale(0.96); }

.wa24c-btn-primary {
  background: linear-gradient(135deg, #00FFFF, #40E0D0);
  color: #1f2a2e;
  box-shadow: 0 0.3rem 1rem rgba(0, 255, 255, 0.35);
}

.wa24c-btn-ghost {
  background: transparent;
  color: var(--wa24c-primary);
  border: 0.12rem solid var(--wa24c-primary);
}

.wa24c-btn-block {
  width: 100%;
  margin: 0.6rem 0;
}

/* ============== Navigation drawer ============== */
.wa24c-nav-drawer {
  position: fixed;
  top: 5.6rem;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(31, 42, 46, 0.99);
  border-bottom: 0.1rem solid var(--wa24c-border);
  padding: 1rem 1.2rem 1.4rem;
  transform: translateY(-130%);
  transition: transform 0.25s ease;
  max-height: 75vh;
  overflow-y: auto;
}

.wa24c-nav-drawer.wa24c-nav-open {
  transform: translateY(0);
}

.wa24c-nav-drawer a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--wa24c-text-soft);
  border-bottom: 0.05rem solid rgba(175, 238, 238, 0.12);
  font-size: 1.4rem;
}

.wa24c-nav-drawer a:hover {
  background: rgba(0, 255, 255, 0.08);
  color: var(--wa24c-primary);
}

/* ============== Carousel ============== */
.wa24c-carousel {
  position: relative;
  border-radius: var(--wa24c-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--wa24c-shadow);
}

.wa24c-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.wa24c-slide.wa24c-slide-active {
  display: block;
}

.wa24c-slide img {
  width: 100%;
  height: 17rem;
  object-fit: cover;
}

.wa24c-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(31, 42, 46, 0.92));
  color: var(--wa24c-primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.wa24c-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}

.wa24c-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(175, 238, 238, 0.4);
  border: none;
  cursor: pointer;
}

.wa24c-dot.wa24c-dot-active {
  background: var(--wa24c-primary);
}

/* ============== Section / card ============== */
.wa24c-section {
  margin: 1.6rem 0;
  padding: 1.2rem;
  background: rgba(31, 42, 46, 0.55);
  border: 0.1rem solid var(--wa24c-border);
  border-radius: var(--wa24c-radius);
}

.wa24c-section-title {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  border-left: 0.4rem solid var(--wa24c-primary);
  padding-left: 0.8rem;
}

.wa24c-card {
  background: rgba(43, 52, 56, 0.85);
  border: 0.1rem solid var(--wa24c-border);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.wa24c-text-link {
  color: var(--wa24c-primary);
  font-weight: 700;
}

/* ============== Game grid ============== */
.wa24c-cat-title {
  font-size: 1.5rem;
  color: var(--wa24c-secondary);
  margin: 1.4rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.1rem dashed var(--wa24c-border);
}

.wa24c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

@media (min-width: 380px) {
  .wa24c-grid { grid-template-columns: repeat(4, 1fr); }
}

.wa24c-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: rgba(31, 42, 46, 0.6);
  border: 0.1rem solid var(--wa24c-border);
  border-radius: 0.9rem;
  padding: 0.5rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.wa24c-game:hover {
  transform: translateY(-0.2rem);
  border-color: var(--wa24c-primary);
}

.wa24c-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.6rem;
}

.wa24c-game-name {
  font-size: 1.05rem;
  color: var(--wa24c-text-soft);
  margin-top: 0.4rem;
  line-height: 1.25;
  min-height: 2.6rem;
  word-break: break-word;
}

/* ============== RTP / stat list ============== */
.wa24c-stat-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0;
}

.wa24c-stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.4rem;
  border-bottom: 0.05rem solid rgba(175, 238, 238, 0.1);
  font-size: 1.25rem;
}

.wa24c-stat-bar {
  flex: 1;
  height: 0.6rem;
  background: rgba(175, 238, 238, 0.15);
  border-radius: 0.4rem;
  margin: 0 0.8rem;
  overflow: hidden;
}

.wa24c-stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00FFFF, #40E0D0);
}

/* ============== Testimonial ============== */
.wa24c-review {
  background: rgba(43, 52, 56, 0.8);
  border-left: 0.3rem solid var(--wa24c-secondary);
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.wa24c-review-author {
  display: block;
  color: var(--wa24c-primary);
  font-weight: 700;
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

/* ============== Footer ============== */
.wa24c-footer {
  background: #1a2426;
  border-top: 0.15rem solid var(--wa24c-border);
  padding: 1.6rem 1.2rem 2rem;
  color: var(--wa24c-text-soft);
  font-size: 1.2rem;
}

.wa24c-footer h3 {
  color: var(--wa24c-primary);
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}

.wa24c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.6rem 0;
}

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

.wa24c-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.wa24c-copyright {
  margin-top: 1rem;
  color: rgba(175, 238, 238, 0.65);
  font-size: 1.1rem;
  text-align: center;
}

/* ============== Mobile bottom nav ============== */
.wa24c-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 6rem;
  background: linear-gradient(180deg, #2b3438, #1a2426);
  border-top: 0.12rem solid var(--wa24c-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.4);
}

.wa24c-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--wa24c-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.wa24c-bottomnav-btn:active { transform: scale(0.92); }

.wa24c-bottomnav-btn i,
.wa24c-bottomnav-btn .material-icons-outlined,
.wa24c-bottomnav-btn ion-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.wa24c-bottomnav-btn ion-icon { font-size: 2.4rem; }

.wa24c-bottomnav-btn:hover { color: var(--wa24c-primary); }

.wa24c-bottomnav-active {
  color: var(--wa24c-primary);
}

.wa24c-bottomnav-active::after {
  content: '';
  display: block;
  width: 2.4rem;
  height: 0.25rem;
  margin-top: 0.2rem;
  background: var(--wa24c-primary);
  border-radius: 0.2rem;
}

@media (min-width: 769px) {
  .wa24c-bottomnav { display: none; }
  main { padding-bottom: 2rem; }
}

/* ============== Utility ============== */
.wa24c-center { text-align: center; }
.wa24c-mt-1 { margin-top: 0.6rem; }
.wa24c-mt-2 { margin-top: 1.2rem; }
.wa24c-hidden { display: none !important; }
