/* mumu player - design-1bbd.css
   Shared stylesheet (basefiles).
   All custom classes use the "w1bbd-" prefix for namespace isolation.
   Palette: #FFCCCB (light pink) | #34495E (slate) | #FF69B4 (hot pink) | #1A1A2E (deep dark)
   Dark backgrounds, light text. Mobile-first, max-width 430px.
   Comments are in English. */

:root {
  --w1bbd-primary: #FF69B4;
  --w1bbd-secondary: #FFCCCB;
  --w1bbd-accent: #34495E;
  --w1bbd-bg: #1A1A2E;
  --w1bbd-bg-alt: #211a35;
  --w1bbd-card: #25233b;
  --w1bbd-text: #FFCCCB;
  --w1bbd-text-light: #ffffff;
  --w1bbd-text-muted: #b9b3c9;
  --w1bbd-border: #3a3450;
  --w1bbd-gold: #ffd27a;
  --w1bbd-green: #4ee0a3;
  --w1bbd-radius: 1.2rem;
  --w1bbd-radius-sm: 0.8rem;
  --w1bbd-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --w1bbd-header-h: 5.6rem;
  --w1bbd-bottom-h: 6.4rem;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background-color: var(--w1bbd-bg);
  color: var(--w1bbd-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Main content wrapper */
.w1bbd-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* Header */
.w1bbd-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w1bbd-header-h);
  background: linear-gradient(90deg, #1A1A2E 0%, #2a1c3a 100%);
  border-bottom: 0.2rem solid var(--w1bbd-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--w1bbd-shadow);
}

.w1bbd-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.w1bbd-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}

.w1bbd-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w1bbd-text-light);
  letter-spacing: 0.04rem;
}

.w1bbd-logo-text span {
  color: var(--w1bbd-primary);
}

.w1bbd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */
.w1bbd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: var(--w1bbd-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
}

.w1bbd-btn:active {
  transform: scale(0.94);
}

.w1bbd-btn-login {
  background: transparent;
  color: var(--w1bbd-text-light);
  border: 0.15rem solid var(--w1bbd-secondary);
}

.w1bbd-btn-register {
  background: linear-gradient(90deg, var(--w1bbd-primary), #ff8fc7);
  color: #1A1A2E;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.35);
}

.w1bbd-menu-btn {
  background: transparent;
  border: none;
  color: var(--w1bbd-text-light);
  font-size: 2.2rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile menu */
.w1bbd-mobile-menu {
  position: fixed;
  top: var(--w1bbd-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w1bbd-bg-alt);
  border-bottom: 0.2rem solid var(--w1bbd-primary);
  padding: 1.2rem 1.4rem 1.6rem;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--w1bbd-shadow);
}

.w1bbd-mobile-menu.w1bbd-menu-open {
  display: flex;
  animation: w1bbd-slide 0.25s ease;
}

@keyframes w1bbd-slide {
  from { opacity: 0; transform: translate(-50%, -0.6rem); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.w1bbd-mobile-menu a {
  color: var(--w1bbd-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 1rem 0.8rem;
  border-radius: var(--w1bbd-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.w1bbd-mobile-menu a:active,
.w1bbd-mobile-menu a:hover {
  background: rgba(255, 105, 180, 0.14);
  color: var(--w1bbd-primary);
}

.w1bbd-mobile-menu a i {
  color: var(--w1bbd-primary);
  width: 2.4rem;
  text-align: center;
}

/* Main content padding for fixed header */
main.w1bbd-main {
  padding-top: var(--w1bbd-header-h);
  padding-bottom: 0;
}

/* Carousel */
.w1bbd-carousel {
  position: relative;
  width: 100%;
  margin: 1.4rem 0 0;
  border-radius: var(--w1bbd-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--w1bbd-shadow);
}

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

.w1bbd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.w1bbd-slide-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.4rem;
  background: rgba(26, 26, 46, 0.7);
  color: var(--w1bbd-text-light);
  padding: 0.6rem 1rem;
  border-radius: var(--w1bbd-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
}

.w1bbd-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.w1bbd-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 204, 203, 0.5);
  border: none;
  cursor: pointer;
}

.w1bbd-dot-active {
  background: var(--w1bbd-primary);
  width: 2rem;
  border-radius: 0.6rem;
}

/* Section blocks */
.w1bbd-section {
  padding: 2.2rem 1.4rem;
}

.w1bbd-section-alt {
  background: var(--w1bbd-bg-alt);
}

.w1bbd-h1 {
  font-size: 2.4rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--w1bbd-text-light);
  margin-bottom: 1rem;
}

.w1bbd-h1 span { color: var(--w1bbd-primary); }

.w1bbd-h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--w1bbd-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w1bbd-h2 i { color: var(--w1bbd-primary); }

.w1bbd-h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w1bbd-primary);
  margin: 1.2rem 0 0.6rem;
}

.w1bbd-p {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--w1bbd-text-muted);
  margin-bottom: 1rem;
}

.w1bbd-p strong, .w1bbd-p b {
  color: var(--w1bbd-secondary);
  font-weight: 700;
}

/* Inline text link to affiliate (SEO friendly) */
.w1bbd-link {
  color: var(--w1bbd-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.w1bbd-link:hover, .w1bbd-link:active {
  text-decoration: underline;
}

/* Promo CTA banner */
.w1bbd-cta {
  background: linear-gradient(90deg, var(--w1bbd-primary), #ff8fc7);
  color: #1A1A2E;
  border-radius: var(--w1bbd-radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  margin: 1.6rem 0;
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.3);
}

.w1bbd-cta h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #1A1A2E;
}

.w1bbd-cta p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2a1c3a;
}

.w1bbd-cta-btn {
  background: #1A1A2E;
  color: var(--w1bbd-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--w1bbd-radius-sm);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

/* Filter bar */
.w1bbd-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 1.4rem 0.4rem;
  scrollbar-width: none;
}

.w1bbd-filter-bar::-webkit-scrollbar { display: none; }

.w1bbd-filter-btn {
  background: var(--w1bbd-card);
  color: var(--w1bbd-text-muted);
  border: 0.15rem solid var(--w1bbd-border);
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.w1bbd-filter-active {
  background: var(--w1bbd-primary);
  color: #1A1A2E;
  border-color: var(--w1bbd-primary);
}

/* Game grid */
.w1bbd-group-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w1bbd-secondary);
  margin: 1.6rem 1.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w1bbd-group-title i { color: var(--w1bbd-primary); }

.w1bbd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1rem 0.4rem;
}

.w1bbd-game-card {
  background: var(--w1bbd-card);
  border: 0.15rem solid var(--w1bbd-border);
  border-radius: var(--w1bbd-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.w1bbd-game-card:active {
  transform: scale(0.95);
  border-color: var(--w1bbd-primary);
}

.w1bbd-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.w1bbd-game-name {
  font-size: 1.1rem;
  color: var(--w1bbd-text-light);
  padding: 0.4rem 0.3rem 0.6rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature / info cards */
.w1bbd-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.w1bbd-card {
  background: var(--w1bbd-card);
  border: 0.15rem solid var(--w1bbd-border);
  border-radius: var(--w1bbd-radius-sm);
  padding: 1.2rem;
}

.w1bbd-card .w1bbd-card-icon {
  font-size: 2.4rem;
  color: var(--w1bbd-primary);
  margin-bottom: 0.6rem;
}

.w1bbd-card h3 {
  font-size: 1.5rem;
  color: var(--w1bbd-text-light);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.w1bbd-card p {
  font-size: 1.25rem;
  color: var(--w1bbd-text-muted);
  line-height: 1.4;
}

/* Compact RTP table */
.w1bbd-rtp {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  background: var(--w1bbd-card);
  border-radius: var(--w1bbd-radius-sm);
  overflow: hidden;
}

.w1bbd-rtp th, .w1bbd-rtp td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 0.1rem solid var(--w1bbd-border);
}

.w1bbd-rtp th {
  background: rgba(255, 105, 180, 0.14);
  color: var(--w1bbd-primary);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.w1bbd-rtp td { color: var(--w1bbd-text-muted); }
.w1bbd-rtp tr:last-child td { border-bottom: none; }
.w1bbd-rtp .w1bbd-rtp-high { color: var(--w1bbd-green); font-weight: 700; }

/* Testimonials */
.w1bbd-testimonials {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.w1bbd-testimonial {
  background: var(--w1bbd-card);
  border-left: 0.4rem solid var(--w1bbd-primary);
  border-radius: var(--w1bbd-radius-sm);
  padding: 1rem 1.2rem;
}

.w1bbd-testimonial p {
  font-size: 1.3rem;
  color: var(--w1bbd-text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.w1bbd-testimonial .w1bbd-author {
  font-size: 1.2rem;
  color: var(--w1bbd-secondary);
  font-weight: 700;
}

/* Winners strip */
.w1bbd-winners {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.4rem 0;
  scrollbar-width: none;
}

.w1bbd-winners::-webkit-scrollbar { display: none; }

.w1bbd-winner {
  min-width: 12rem;
  background: var(--w1bbd-card);
  border: 0.15rem solid var(--w1bbd-border);
  border-radius: var(--w1bbd-radius-sm);
  padding: 0.8rem 1rem;
  text-align: center;
}

.w1bbd-winner .w1bbd-winner-name {
  font-size: 1.2rem;
  color: var(--w1bbd-text-light);
  font-weight: 700;
}

.w1bbd-winner .w1bbd-winner-amount {
  font-size: 1.5rem;
  color: var(--w1bbd-gold);
  font-weight: 800;
  margin: 0.2rem 0;
}

.w1bbd-winner .w1bbd-winner-game {
  font-size: 1.05rem;
  color: var(--w1bbd-text-muted);
}

/* Payment methods */
.w1bbd-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.w1bbd-payment {
  background: var(--w1bbd-card);
  border: 0.15rem solid var(--w1bbd-border);
  border-radius: var(--w1bbd-radius-sm);
  padding: 0.6rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
  color: var(--w1bbd-text-light);
  font-weight: 600;
}

.w1bbd-payment i { color: var(--w1bbd-primary); }

/* App download CTA */
.w1bbd-app-cta {
  background: linear-gradient(135deg, #2a1c3a, #1A1A2E);
  border: 0.15rem solid var(--w1bbd-primary);
  border-radius: var(--w1bbd-radius);
  padding: 1.4rem;
  text-align: center;
}

.w1bbd-app-cta h3 {
  font-size: 1.8rem;
  color: var(--w1bbd-primary);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.w1bbd-app-cta p {
  font-size: 1.3rem;
  color: var(--w1bbd-text-muted);
  margin-bottom: 1rem;
}

.w1bbd-app-cta .w1bbd-app-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Footer */
.w1bbd-footer {
  background: var(--w1bbd-bg-alt);
  border-top: 0.2rem solid var(--w1bbd-primary);
  padding: 2.2rem 1.4rem 7rem;
  margin-top: 2rem;
}

.w1bbd-footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--w1bbd-primary);
  margin-bottom: 0.6rem;
}

.w1bbd-footer-desc {
  font-size: 1.25rem;
  color: var(--w1bbd-text-muted);
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

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

.w1bbd-footer-links a {
  color: var(--w1bbd-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.w1bbd-footer-links a:hover {
  color: var(--w1bbd-primary);
}

.w1bbd-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.w1bbd-footer-promos button {
  background: var(--w1bbd-card);
  border: 0.15rem solid var(--w1bbd-primary);
  color: var(--w1bbd-primary);
  padding: 0.6rem 1rem;
  border-radius: var(--w1bbd-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.w1bbd-copyright {
  font-size: 1.1rem;
  color: var(--w1bbd-text-muted);
  text-align: center;
  border-top: 0.1rem solid var(--w1bbd-border);
  padding-top: 1rem;
}

/* Bottom navigation */
.w1bbd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w1bbd-bottom-h);
  background: linear-gradient(90deg, #1A1A2E 0%, #2a1c3a 100%);
  border-top: 0.2rem solid var(--w1bbd-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.w1bbd-bottom-btn {
  background: transparent;
  border: none;
  color: var(--w1bbd-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.w1bbd-bottom-btn i,
.w1bbd-bottom-btn .material-icons-outlined,
.w1bbd-bottom-btn .ion-icon {
  font-size: 2.4rem;
}

.w1bbd-bottom-btn:active {
  transform: scale(0.92);
}

.w1bbd-bottom-active {
  color: var(--w1bbd-primary);
}

.w1bbd-bottom-active i,
.w1bbd-bottom-active .material-icons-outlined {
  color: var(--w1bbd-primary);
}

.w1bbd-bottom-badge {
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  background: var(--w1bbd-primary);
  color: #1A1A2E;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 1rem;
  padding: 0 0.4rem;
  min-width: 1.6rem;
  height: 1.6rem;
  line-height: 1.6rem;
  text-align: center;
}

/* Mobile bottom padding clearance */
@media (max-width: 768px) {
  main.w1bbd-main { padding-bottom: 7rem; }
}

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .w1bbd-bottom-nav { display: none; }
  body { max-width: 430px; }
  .w1bbd-footer { padding-bottom: 2.2rem; }
}

/* Utility */
.w1bbd-text-center { text-align: center; }
.w1bbd-mt-1 { margin-top: 1rem; }
.w1bbd-mb-1 { margin-bottom: 1rem; }
