/* ============================================================
 * km88.homes - shared stylesheet
 * All custom classes use the wbf27- prefix to avoid collisions.
 * Palette: #FF8A80 (coral) | #1A1A2E (deep navy) | #FFE135 (gold)
 * Mobile first; root font 62.5% so 1rem == 10px.
 * ============================================================ */

:root {
  --wbf27-primary: #FF8A80;       /* coral accent */
  --wbf27-bg: #1A1A2E;            /* deep navy background */
  --wbf27-bg-2: #21213d;          /* card surface */
  --wbf27-bg-3: #2a2a4e;          /* hover surface */
  --wbf27-gold: #FFE135;          /* highlight gold */
  --wbf27-text: #f5f5fa;          /* primary text */
  --wbf27-muted: #a9a9c8;         /* secondary text */
  --wbf27-border: #35355c;
  --wbf27-radius: 14px;
  --wbf27-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #2a2a52 0%, var(--wbf27-bg) 55%);
  color: var(--wbf27-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--wbf27-primary); text-decoration: none; }
a:hover { color: var(--wbf27-gold); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 0.8rem; line-height: 1.25; color: #fff; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; color: var(--wbf27-text); }

/* ---------- Layout helpers ---------- */
.wbf27-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.wbf27-wrapper {
  padding-top: 6.2rem;
  padding-bottom: 1rem;
}

/* ---------- Header ---------- */
.wbf27-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wbf27-border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.wbf27-header-scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  background: rgba(20, 20, 36, 0.98);
}
.wbf27-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.wbf27-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.wbf27-logo img {
  width: 30px; height: 30px;
  border-radius: 8px;
}
.wbf27-logo-text {
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  letter-spacing: 0.5px;
}
.wbf27-logo-text span { color: var(--wbf27-gold); }

.wbf27-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wbf27-icon-btn {
  background: transparent;
  border: 1px solid var(--wbf27-border);
  color: var(--wbf27-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}
.wbf27-icon-btn:hover { background: var(--wbf27-bg-3); }

.wbf27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  min-height: 38px;
  transition: transform 0.12s ease, filter 0.2s ease;
}
.wbf27-btn:active { transform: scale(0.96); }
.wbf27-btn-login {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--wbf27-primary);
}
.wbf27-btn-login:hover { background: rgba(255,138,128,0.12); }
.wbf27-btn-register {
  background: linear-gradient(135deg, var(--wbf27-gold) 0%, var(--wbf27-primary) 100%);
  color: #1A1A2E;
  box-shadow: 0 4px 14px rgba(255,138,128,0.35);
}
.wbf27-btn-register:hover { filter: brightness(1.06); }

/* ---------- Expandable mobile menu ---------- */
.wbf27-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--wbf27-bg-2);
  border-top: 1px solid var(--wbf27-border);
  transition: max-height 0.3s ease;
}
.wbf27-menu-open { max-height: 540px; }
.wbf27-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.wbf27-mobile-menu-inner a {
  display: block;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  background: var(--wbf27-bg-3);
  color: var(--wbf27-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.wbf27-mobile-menu-inner a:hover {
  background: var(--wbf27-primary);
  color: #1A1A2E;
}

/* ---------- Hero / carousel ---------- */
.wbf27-hero {
  margin: 1rem 0 1.2rem;
}
.wbf27-carousel {
  position: relative;
  border-radius: var(--wbf27-radius);
  overflow: hidden;
  box-shadow: var(--wbf27-shadow);
}
.wbf27-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.wbf27-carousel-slide {
  min-width: 100%;
  position: relative;
}
.wbf27-carousel-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.wbf27-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
}
.wbf27-carousel-caption strong { color: var(--wbf27-gold); font-size: 1.6rem; }
.wbf27-carousel-caption span { color: #fff; font-size: 1.3rem; display: block; }
.wbf27-carousel-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex; gap: 5px;
}
.wbf27-carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
}
.wbf27-dot-active { background: var(--wbf27-gold); }

/* ---------- Hero CTA strip ---------- */
.wbf27-cta-strip {
  display: flex;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.wbf27-cta-strip .wbf27-btn { flex: 1; }

/* ---------- Section heading ---------- */
.wbf27-section { margin: 1.6rem 0; }
.wbf27-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.wbf27-section-title h2 {
  margin: 0;
  font-size: 1.8rem;
}
.wbf27-section-title .material-icons,
.wbf27-section-title .fas {
  color: var(--wbf27-gold);
  font-size: 2rem;
}
.wbf27-section-title small {
  margin-left: auto;
  color: var(--wbf27-muted);
  font-size: 1.2rem;
}

/* ---------- Filter chips ---------- */
.wbf27-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.wbf27-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--wbf27-bg-2);
  border: 1px solid var(--wbf27-border);
  color: var(--wbf27-text);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wbf27-chip-active {
  background: linear-gradient(135deg, var(--wbf27-gold), var(--wbf27-primary));
  color: #1A1A2E;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.wbf27-game-section { margin-bottom: 1.4rem; }
.wbf27-game-section h3 {
  font-size: 1.5rem;
  color: var(--wbf27-gold);
  border-left: 3px solid var(--wbf27-primary);
  padding-left: 0.6rem;
  margin-bottom: 0.7rem;
}
.wbf27-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.wbf27-card {
  background: var(--wbf27-bg-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--wbf27-border);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.wbf27-card:hover { transform: translateY(-2px); border-color: var(--wbf27-primary); }
.wbf27-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0d0d1d;
}
.wbf27-card-name {
  font-size: 1.15rem;
  color: #fff;
  padding: 0.4rem 0.3rem 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info modules ---------- */
.wbf27-panel {
  background: var(--wbf27-bg-2);
  border: 1px solid var(--wbf27-border);
  border-radius: var(--wbf27-radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.wbf27-panel h2 { color: var(--wbf27-gold); font-size: 1.7rem; }
.wbf27-panel h3 { color: var(--wbf27-primary); font-size: 1.4rem; margin-top: 0.6rem; }
.wbf27-panel p { color: var(--wbf27-text); }
.wbf27-panel ul { padding-left: 1.4rem; color: var(--wbf27-text); }
.wbf27-panel li { margin-bottom: 0.4rem; }

.wbf27-text-link {
  color: var(--wbf27-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Feature grid ---------- */
.wbf27-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.wbf27-feature {
  background: var(--wbf27-bg-3);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}
.wbf27-feature .material-icons,
.wbf27-feature .fas,
.wbf27-feature .bi { font-size: 2.2rem; color: var(--wbf27-gold); }
.wbf27-feature h4 { margin: 0.4rem 0 0.2rem; color: #fff; font-size: 1.3rem; }
.wbf27-feature p { margin: 0; font-size: 1.15rem; color: var(--wbf27-muted); }

/* ---------- RTP table ---------- */
.wbf27-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.wbf27-table th, .wbf27-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--wbf27-border);
}
.wbf27-table th { color: var(--wbf27-gold); }
.wbf27-table td .wbf27-bar {
  display: inline-block;
  height: 6px;
  background: var(--wbf27-primary);
  border-radius: 3px;
  vertical-align: middle;
}

/* ---------- Testimonials ---------- */
.wbf27-testi {
  background: var(--wbf27-bg-3);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}
.wbf27-testi-stars { color: var(--wbf27-gold); font-size: 1.2rem; }
.wbf27-testi p { margin: 0.3rem 0; font-size: 1.3rem; }
.wbf27-testi small { color: var(--wbf27-muted); }

/* ---------- Winners strip ---------- */
.wbf27-winners {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}
.wbf27-winner {
  flex: 0 0 auto;
  background: var(--wbf27-bg-3);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--wbf27-border);
  min-width: 140px;
}
.wbf27-winner b { color: var(--wbf27-gold); font-size: 1.3rem; }
.wbf27-winner small { color: var(--wbf27-muted); }

/* ---------- Payment methods ---------- */
.wbf27-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wbf27-pay {
  background: var(--wbf27-bg-3);
  border: 1px solid var(--wbf27-border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Download CTA ---------- */
.wbf27-download {
  background: linear-gradient(135deg, #2a2a52, #15152a);
  border: 1px solid var(--wbf27-primary);
  border-radius: var(--wbf27-radius);
  padding: 1.2rem;
  text-align: center;
}
.wbf27-download h3 { color: var(--wbf27-gold); }
.wbf27-download-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.6rem;
}

/* ---------- Footer ---------- */
.wbf27-footer {
  background: #12121f;
  border-top: 1px solid var(--wbf27-border);
  padding: 1.6rem 1.2rem 8.4rem;
  margin-top: 1.4rem;
}
.wbf27-footer-inner { max-width: 430px; margin: 0 auto; }
.wbf27-footer-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.wbf27-footer-brand span { color: var(--wbf27-gold); }
.wbf27-footer-desc { color: var(--wbf27-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }
.wbf27-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.wbf27-footer-links a {
  color: var(--wbf27-text);
  font-size: 1.2rem;
}
.wbf27-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}
.wbf27-footer-promos button,
.wbf27-footer-promos a {
  flex: 1 1 30%;
  min-width: 90px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--wbf27-bg-3);
  color: var(--wbf27-gold);
  border: 1px solid var(--wbf27-border);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.wbf27-footer-copy {
  color: var(--wbf27-muted);
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid var(--wbf27-border);
  padding-top: 0.8rem;
}

/* ---------- Bottom navigation ---------- */
.wbf27-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(18, 18, 31, 0.98);
  border-top: 1px solid var(--wbf27-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.4);
}
.wbf27-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--wbf27-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 4px 2px;
  transition: color 0.2s ease, transform 0.15s ease;
}
.wbf27-bottom-nav-btn .material-icons,
.wbf27-bottom-nav-btn .fas,
.wbf27-bottom-nav-btn .bi,
.wbf27-bottom-nav-btn ion-icon { font-size: 22px; }
.wbf27-bottom-nav-btn:active { transform: scale(0.92); }
.wbf27-nav-active { color: var(--wbf27-gold); }
.wbf27-nav-promo { color: var(--wbf27-primary); position: relative; }
.wbf27-nav-promo::after {
  content: '';
  position: absolute;
  top: 4px; right: 18px;
  width: 6px; height: 6px;
  background: var(--wbf27-gold);
  border-radius: 50%;
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  body { background: #15152a; }
  .wbf27-bottom-nav { display: none; }
  .wbf27-footer { padding-bottom: 2rem; }
  .wbf27-container, .wbf27-header-inner, .wbf27-mobile-menu-inner, .wbf27-footer-inner {
    max-width: 760px;
  }
  .wbf27-grid { grid-template-columns: repeat(6, 1fr); }
}

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

@media (max-width: 360px) {
  .wbf27-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.0rem; }
}
