/*!
 * jljl77 app - design.css
 * Mobile-first gaming website styles (max-width 430px core, scales up)
 * Palette: #1A1A2E | #006400 | #008B8B | #E0FFFF | #32CD32
 * All custom classes use the wbc29- prefix per project convention.
 */

:root {
  --wbc29-bg: #1A1A2E;
  --wbc29-bg-soft: #20203a;
  --wbc29-bg-card: #232342;
  --wbc29-primary: #006400;
  --wbc29-secondary: #008B8B;
  --wbc29-accent: #32CD32;
  --wbc29-text: #E0FFFF;
  --wbc29-text-muted: #9fb8c8;
  --wbc29-border: rgba(224, 255, 255, 0.12);
  --wbc29-radius: 14px;
  --wbc29-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Root font: 62.5% makes 1rem = 10px */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 10%, #20203a 0%, #1A1A2E 60%, #14142b 100%);
  color: var(--wbc29-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a { color: var(--wbc29-accent); text-decoration: none; }
a:hover, a:focus { color: #b6ffb6; }
img { max-width: 100%; display: block; }

.wbc29-skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.wbc29-skip:focus {
  left: 1rem; top: 1rem; width: auto; height: auto;
  background: var(--wbc29-accent); color: #082; padding: .6rem 1rem; border-radius: 8px; z-index: 2000;
}

/* ===== Layout ===== */
.wbc29-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
.wbc29-container { width: 100%; }
.wbc29-main { padding-bottom: 90px; padding-top: 8.4rem; }

/* ===== Header ===== */
.wbc29-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,46,.96), rgba(26,26,46,.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wbc29-border);
  transition: padding .25s ease, background .25s ease;
}
.wbc29-header.wbc29-scrolled { padding-top: 0; }
.wbc29-header-inner {
  max-width: 430px; margin: 0 auto; padding: .55rem 1.2rem;
  display: flex; align-items: center; gap: .6rem;
}
.wbc29-logo { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; }
.wbc29-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wbc29-logo-text {
  font-weight: 800; font-size: 1.6rem; color: var(--wbc29-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wbc29-logo-text span { color: var(--wbc29-accent); }

.wbc29-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; cursor: pointer; font-weight: 700; font-size: 1.25rem;
  padding: .65rem 1rem; border-radius: 999px; text-decoration: none;
  min-height: 36px; transition: transform .15s ease, box-shadow .15s ease;
}
.wbc29-btn:hover { transform: translateY(-1px); }
.wbc29-btn-login {
  background: transparent; color: var(--wbc29-text);
  border: 1px solid var(--wbc29-border); margin-right: .35rem;
}
.wbc29-btn-register {
  background: linear-gradient(135deg, var(--wbc29-accent), var(--wbc29-secondary));
  color: #06234a; box-shadow: 0 6px 16px rgba(50, 205, 50, .35);
}
.wbc29-iconbtn {
  background: transparent; border: 1px solid var(--wbc29-border);
  width: 38px; height: 38px; border-radius: 10px; color: var(--wbc29-text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* Mobile slide-down menu */
.wbc29-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--wbc29-bg-soft);
  border-bottom: 1px solid var(--wbc29-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  box-shadow: var(--wbc29-shadow);
}
.wbc29-mobile-menu.wbc29-open { max-height: 80vh; overflow-y: auto; }
.wbc29-mobile-menu-inner { padding: 1rem 1.4rem 1.6rem; }
.wbc29-mobile-menu-inner a {
  display: block; padding: .85rem .6rem; border-bottom: 1px solid var(--wbc29-border);
  color: var(--wbc29-text); font-weight: 600;
}
.wbc29-mobile-menu-inner a:hover { color: var(--wbc29-accent); }
.wbc29-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: .8rem; border-bottom: 1px solid var(--wbc29-border); margin-bottom: .6rem;
}

/* ===== Carousel ===== */
.wbc29-carousel {
  position: relative; border-radius: var(--wbc29-radius); overflow: hidden;
  box-shadow: var(--wbc29-shadow); margin: 1rem 0;
}
.wbc29-carousel-viewport { overflow: hidden; }
.wbc29-carousel-track { display: flex; transition: transform .45s ease; }
.wbc29-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.wbc29-carousel-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.wbc29-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  padding: 1.6rem 1.2rem 1rem; color: var(--wbc29-text);
}
.wbc29-carousel-caption strong { color: var(--wbc29-accent); }
.wbc29-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.4); color: var(--wbc29-text);
  border: 0; cursor: pointer; font-size: 1.6rem;
}
.wbc29-carousel-nav.wbc29-prev { left: 8px; }
.wbc29-carousel-nav.wbc29-next { right: 8px; }
.wbc29-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: .45rem;
}
.wbc29-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: 0; cursor: pointer; padding: 0;
}
.wbc29-carousel-dot.wbc29-active { background: var(--wbc29-accent); width: 18px; border-radius: 4px; }

/* ===== Sections ===== */
.wbc29-section { margin: 2.2rem 0; }
.wbc29-section-head {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.wbc29-section-head h2 {
  font-size: 1.8rem; margin: 0; color: var(--wbc29-text); font-weight: 800;
}
.wbc29-section-head .material-icons, .wbc29-section-head i { color: var(--wbc29-accent); font-size: 22px; }
.wbc29-section-head .wbc29-more { margin-left: auto; font-size: 1.2rem; color: var(--wbc29-text-muted); }

.wbc29-card {
  background: var(--wbc29-bg-card);
  border: 1px solid var(--wbc29-border);
  border-radius: var(--wbc29-radius);
  padding: 1.2rem;
  box-shadow: var(--wbc29-shadow);
  margin-bottom: 1rem;
}
.wbc29-card h3 { margin: 0 0 .5rem; font-size: 1.45rem; color: var(--wbc29-text); }
.wbc29-card p { margin: .3rem 0; color: var(--wbc29-text-muted); font-size: 1.32rem; }

/* ===== Game grid ===== */
.wbc29-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
}
.wbc29-game {
  background: var(--wbc29-bg-card); border: 1px solid var(--wbc29-border);
  border-radius: 12px; padding: .6rem; text-align: center; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.wbc29-game:hover { transform: translateY(-2px); border-color: var(--wbc29-accent); }
.wbc29-game img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: .35rem; }
.wbc29-game-name {
  font-size: 1.1rem; color: var(--wbc29-text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wbc29-game-tag {
  display: inline-block; font-size: .95rem; padding: .1rem .5rem;
  background: rgba(50,205,50,.18); color: var(--wbc29-accent);
  border-radius: 4px; margin-top: .2rem;
}

/* ===== CTA ===== */
.wbc29-cta {
  display: block; text-align: center; padding: 1.2rem;
  background: linear-gradient(135deg, var(--wbc29-primary), var(--wbc29-secondary));
  border-radius: var(--wbc29-radius); color: var(--wbc29-text); font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,139,139,.4); margin: 1.2rem 0; font-size: 1.5rem;
}
.wbc29-cta:hover { color: var(--wbc29-text); filter: brightness(1.08); }
.wbc29-cta-inline { color: var(--wbc29-accent); font-weight: 700; }
.wbc29-cta-inline:hover { text-decoration: underline; }

/* ===== Features list ===== */
.wbc29-features { list-style: none; padding: 0; margin: 0; }
.wbc29-features li {
  display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0;
  border-bottom: 1px dashed var(--wbc29-border);
}
.wbc29-features li:last-child { border-bottom: 0; }
.wbc29-features .material-icons { color: var(--wbc29-accent); font-size: 20px; }

/* ===== Testimonials ===== */
.wbc29-testi {
  background: var(--wbc29-bg-card); border-radius: 12px; padding: 1rem;
  border-left: 3px solid var(--wbc29-accent); margin-bottom: .8rem;
}
.wbc29-testi-name { font-weight: 700; color: var(--wbc29-accent); }
.wbc29-testi-stars { color: #ffd84d; font-size: 1.2rem; }

/* ===== Payment ===== */
.wbc29-pay-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.wbc29-pay {
  background: var(--wbc29-bg-card); border: 1px solid var(--wbc29-border);
  border-radius: 8px; padding: .5rem .8rem; font-size: 1.15rem; color: var(--wbc29-text);
  display: inline-flex; align-items: center; gap: .35rem;
}

/* ===== Winners ===== */
.wbc29-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; border-bottom: 1px dashed var(--wbc29-border); font-size: 1.2rem;
}
.wbc29-winner:last-child { border-bottom: 0; }
.wbc29-winner b { color: var(--wbc29-accent); }

/* ===== RTP table ===== */
.wbc29-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.wbc29-rtp-table th, .wbc29-rtp-table td {
  padding: .55rem .4rem; border-bottom: 1px solid var(--wbc29-border); text-align: left;
}
.wbc29-rtp-table th { color: var(--wbc29-accent); }
.wbc29-rtp-bar {
  height: 6px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; margin-top: .25rem;
}
.wbc29-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--wbc29-accent), var(--wbc29-secondary)); }

/* ===== FAQ ===== */
.wbc29-faq-item {
  background: var(--wbc29-bg-card); border: 1px solid var(--wbc29-border);
  border-radius: 10px; margin-bottom: .6rem; overflow: hidden;
}
.wbc29-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem; cursor: pointer; font-weight: 700; color: var(--wbc29-text);
}
.wbc29-faq-icon { color: var(--wbc29-accent); font-size: 1.6rem; }
.wbc29-faq-a { padding: 0 1rem 1rem; color: var(--wbc29-text-muted); font-size: 1.3rem; display: none; }
.wbc29-faq-item.wbc29-expanded .wbc29-faq-a { display: block; }

/* ===== Reveal animation ===== */
.wbc29-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.wbc29-reveal.wbc29-visible { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.wbc29-footer {
  background: var(--wbc29-bg-soft); border-top: 1px solid var(--wbc29-border);
  padding: 1.6rem 1.4rem 2rem; color: var(--wbc29-text-muted); font-size: 1.2rem;
}
.wbc29-footer-brand { color: var(--wbc29-text); font-weight: 700; margin-bottom: .6rem; }
.wbc29-footer-links {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .8rem 0;
}
.wbc29-footer-links a { color: var(--wbc29-text-muted); font-size: 1.15rem; }
.wbc29-footer-links a:hover { color: var(--wbc29-accent); }
.wbc29-footer-cta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.wbc29-footer-copy { font-size: 1.05rem; color: var(--wbc29-text-muted); margin-top: .8rem; }

/* ===== Bottom nav (mobile only) ===== */
.wbc29-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, rgba(26,26,46,.98), #14142b);
  border-top: 1px solid var(--wbc29-border);
  box-shadow: 0 -6px 18px rgba(0,0,0,.45);
}
.wbc29-bottomnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--wbc29-text-muted); cursor: pointer;
  background: transparent; border: 0; min-width: 60px; min-height: 60px;
  text-decoration: none; transition: color .15s ease, transform .15s ease; padding: 0;
}
.wbc29-bottomnav-item:active { transform: scale(.92); }
.wbc29-bottomnav-item i, .wbc29-bottomnav-item .material-icons {
  font-size: 22px;
}
.wbc29-bottomnav-label { font-size: 1.05rem; }
.wbc29-bottomnav-item.wbc29-current { color: var(--wbc29-accent); }
.wbc29-bottomnav-item.wbc29-current i, .wbc29-bottomnav-item.wbc29-current .material-icons { color: var(--wbc29-accent); }
.wbc29-bottomnav-promo { color: var(--wbc29-text); }
.wbc29-bottomnav-promo i, .wbc29-bottomnav-promo .material-icons { color: var(--wbc29-accent); }
.wbc29-badge {
  position: absolute; top: 8px; right: 22%;
  background: #ff4d6d; color: #fff; font-size: .9rem; padding: 0 5px; border-radius: 8px;
}

/* ===== Desktop: hide bottom nav, widen wrapper ===== */
@media (min-width: 769px) {
  .wbc29-bottomnav { display: none; }
  .wbc29-wrapper { max-width: 960px; }
  .wbc29-header-inner { max-width: 960px; }
  .wbc29-grid { grid-template-columns: repeat(6, 1fr); }
  .wbc29-main { padding-bottom: 40px; }
}

/* ===== Mobile-first core breakpoint (max-width 430px) ===== */
@media (max-width: 430px) {
  .wbc29-wrapper { padding: 0 1rem; }
  .wbc29-header-inner { padding: .5rem 1rem; }
  .wbc29-section-head h2 { font-size: 1.6rem; }
  .wbc29-grid { grid-template-columns: repeat(3, 1fr); gap: .55rem; }
  .wbc29-game-name { font-size: 1rem; }
  .wbc29-btn { padding: .55rem .8rem; font-size: 1.15rem; }
  .wbc29-logo-text { font-size: 1.45rem; }
  .wbc29-cta { font-size: 1.35rem; padding: 1rem; }
  .wbc29-bottomnav-label { font-size: 1rem; }
}

@media (max-width: 360px) {
  .wbc29-grid { grid-template-columns: repeat(2, 1fr); }
  .wbc29-btn-login { padding: .5rem .6rem; }
}
