/* ============================================================
 * bwenas.click - theme stylesheet
 * Class prefix: s57a-
 * Palette: #0C0C0C bg / #FFB6C1 pink / #3CB371 green / #B22222 red
 * Mobile-first, max 430px, scales up for tablet/desktop.
 * ============================================================ */

:root {
  --s57a-bg: #0C0C0C;
  --s57a-bg-2: #141414;
  --s57a-bg-3: #1d1d1d;
  --s57a-card: #181818;
  --s57a-text: #FFE9EF;
  --s57a-text-muted: #c7b6bd;
  --s57a-pink: #FFB6C1;
  --s57a-green: #3CB371;
  --s57a-red: #B22222;
  --s57a-gold: #ffd479;
  --s57a-border: rgba(255, 182, 193, 0.18);
  --s57a-radius: 14px;
  --s57a-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --s57a-header-h: 58px;
  --s57a-bottom-h: 62px;
  --s57a-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1d1014 0%, var(--s57a-bg) 60%);
  color: var(--s57a-text);
  line-height: 1.5;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--s57a-pink); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

.s57a-container {
  width: 100%;
  max-width: var(--s57a-maxw);
  margin: 0 auto;
  padding: 0 14px;
}
.s57a-wrapper { width: 100%; max-width: var(--s57a-maxw); margin: 0 auto; }

/* ---------------- Header ---------------- */
.s57a-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s57a-header-h);
  background: linear-gradient(180deg, #0a0a0a 0%, #100709 100%);
  border-bottom: 1px solid var(--s57a-border);
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.s57a-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--s57a-maxw);
  margin: 0 auto;
  padding: 0 12px;
}
.s57a-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.s57a-brand img { width: 28px; height: 28px; border-radius: 7px; }
.s57a-brand-name {
  font-size: 1.9rem; font-weight: 800; letter-spacing: 0.4px;
  background: linear-gradient(90deg, var(--s57a-pink), var(--s57a-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s57a-header-actions { display: flex; align-items: center; gap: 8px; }
.s57a-menu-btn {
  background: transparent; border: 1px solid var(--s57a-border);
  color: var(--s57a-text); width: 40px; height: 40px;
  border-radius: 10px; font-size: 2rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

.s57a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 700; font-size: 1.4rem; cursor: pointer;
  border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  text-decoration: none;
}
.s57a-btn:active { transform: scale(0.96); }
.s57a-btn-register {
  background: linear-gradient(135deg, var(--s57a-red), #7a1414);
  color: #fff; box-shadow: 0 4px 14px rgba(178,34,34,0.45);
}
.s57a-btn-login {
  background: linear-gradient(135deg, var(--s57a-green), #1f6a45);
  color: #fff; box-shadow: 0 4px 14px rgba(60,179,113,0.4);
}
.s57a-btn-pink {
  background: linear-gradient(135deg, var(--s57a-pink), #e98ea0);
  color: #1a0608; box-shadow: 0 4px 14px rgba(255,182,193,0.35);
}
.s57a-btn-ghost {
  background: transparent; color: var(--s57a-text);
  border: 1px solid var(--s57a-border);
}

/* ---------------- Mobile menu ---------------- */
.s57a-mobile-menu {
  position: fixed;
  top: var(--s57a-header-h); left: 0; right: 0;
  background: #0d0608;
  border-bottom: 1px solid var(--s57a-border);
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.s57a-mobile-menu.s57a-menu-open { max-height: 80vh; overflow-y: auto; }
.s57a-mobile-menu ul { list-style: none; margin: 0; padding: 8px 14px; }
.s57a-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.s57a-mobile-menu li:last-child { border-bottom: none; }
.s57a-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 6px; color: var(--s57a-text); font-size: 1.5rem; font-weight: 600;
}
.s57a-mobile-menu a i { color: var(--s57a-pink); width: 22px; text-align: center; }

/* ---------------- Page body spacer ---------------- */
.s57a-main { padding-top: calc(var(--s57a-header-h) + 8px); padding-bottom: 90px; }

/* ---------------- Carousel ---------------- */
.s57a-carousel {
  position: relative;
  border-radius: var(--s57a-radius);
  overflow: hidden;
  box-shadow: var(--s57a-shadow);
  margin: 12px 0 18px;
}
.s57a-slides { position: relative; }
.s57a-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s57a-slide.s57a-slide-active { display: block; }
.s57a-slide img { width: 100%; height: 190px; object-fit: cover; }
.s57a-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.s57a-slide-cap h2 { margin: 0 0 4px; font-size: 1.7rem; color: var(--s57a-pink); }
.s57a-slide-cap p { margin: 0; font-size: 1.25rem; color: #ffe9ef; }

.s57a-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  border: 1px solid var(--s57a-border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.6rem;
}
.s57a-carousel-arrow:hover { background: var(--s57a-red); }
.s57a-prev { left: 8px; } .s57a-next { right: 8px; }

.s57a-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s57a-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
}
.s57a-dot.s57a-dot-active { background: var(--s57a-pink); }

/* ---------------- Section common ---------------- */
.s57a-section { margin: 22px 0; }
.s57a-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px; gap: 8px;
}
.s57a-section-title {
  font-size: 1.85rem; font-weight: 800; margin: 0;
  color: #fff;
  position: relative; padding-left: 12px;
}
.s57a-section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  background: linear-gradient(180deg, var(--s57a-pink), var(--s57a-red));
  border-radius: 2px;
}
.s57a-section-title em { color: var(--s57a-pink); font-style: normal; }
.s57a-section-more { font-size: 1.25rem; color: var(--s57a-green); font-weight: 600; }

.s57a-intro {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: var(--s57a-radius);
  padding: 14px; margin: 12px 0;
  color: var(--s57a-text-muted); font-size: 1.35rem;
}
.s57a-intro strong { color: var(--s57a-pink); }
.s57a-intro a { font-weight: 700; }

/* ---------------- Filter chips ---------------- */
.s57a-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 10px; -webkit-overflow-scrolling: touch;
}
.s57a-chips::-webkit-scrollbar { display: none; }
.s57a-chip {
  flex: 0 0 auto;
  padding: 7px 14px; border-radius: 999px;
  background: var(--s57a-bg-3); color: var(--s57a-text);
  border: 1px solid var(--s57a-border);
  font-size: 1.25rem; cursor: pointer; font-weight: 600;
  white-space: nowrap;
}
.s57a-chip.s57a-chip-active {
  background: linear-gradient(135deg, var(--s57a-red), var(--s57a-pink));
  color: #fff; border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.s57a-cat-section { margin: 18px 0; }
.s57a-cat-header {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px;
}
.s57a-cat-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--s57a-red), var(--s57a-pink));
  color: #fff;
}
.s57a-cat-name { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0; }
.s57a-cat-tag {
  margin-left: auto; font-size: 1.15rem; color: var(--s57a-green);
  font-weight: 700;
}

.s57a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s57a-game {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  text-align: center;
  padding-bottom: 6px;
}
.s57a-game:hover, .s57a-game:focus {
  transform: translateY(-2px);
  border-color: var(--s57a-pink);
  box-shadow: 0 6px 18px rgba(255,182,193,0.18);
}
.s57a-game img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s57a-game-name {
  font-size: 1.15rem; color: var(--s57a-text);
  padding: 6px 4px 2px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s57a-game-tag {
  font-size: 1.05rem; color: var(--s57a-green); font-weight: 700;
}

/* ---------------- Feature / highlight blocks ---------------- */
.s57a-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.s57a-feature {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.s57a-feature i { font-size: 2.4rem; color: var(--s57a-pink); margin-bottom: 6px; }
.s57a-feature h3 { margin: 0 0 4px; font-size: 1.35rem; color: #fff; }
.s57a-feature p { margin: 0; font-size: 1.15rem; color: var(--s57a-text-muted); }

/* ---------------- Promo banner ---------------- */
.s57a-promo {
  background: linear-gradient(135deg, var(--s57a-red), #2a0608 70%);
  border: 1px solid var(--s57a-border);
  border-radius: var(--s57a-radius);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
}
.s57a-promo-text { flex: 1; min-width: 0; }
.s57a-promo-text h3 { margin: 0 0 4px; font-size: 1.6rem; color: var(--s57a-pink); }
.s57a-promo-text p { margin: 0; font-size: 1.2rem; color: #ffe9ef; }

/* ---------------- Testimonials ---------------- */
.s57a-testimonials { display: grid; gap: 10px; }
.s57a-testimonial {
  background: var(--s57a-card);
  border-left: 3px solid var(--s57a-green);
  border-radius: 10px;
  padding: 12px;
}
.s57a-testimonial-stars { color: var(--s57a-gold); font-size: 1.2rem; margin-bottom: 4px; }
.s57a-testimonial p { margin: 0 0 6px; font-size: 1.25rem; color: var(--s57a-text-muted); }
.s57a-testimonial cite { font-size: 1.15rem; color: var(--s57a-pink); font-style: normal; font-weight: 700; }

/* ---------------- Payment ---------------- */
.s57a-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.s57a-pay {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.15rem; color: var(--s57a-text);
}
.s57a-pay i { color: var(--s57a-green); }

/* ---------------- Winners ---------------- */
.s57a-winners {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: 12px;
  overflow: hidden;
}
.s57a-winner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.2rem;
}
.s57a-winner:last-child { border-bottom: none; }
.s57a-winner-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--s57a-pink), var(--s57a-green));
  color: #0C0C0C; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.s57a-winner-name { flex: 1; min-width: 0; color: var(--s57a-text); font-weight: 600; }
.s57a-winner-amount { color: var(--s57a-gold); font-weight: 800; }

/* ---------------- RTP table ---------------- */
.s57a-rtp-table {
  width: 100%; border-collapse: collapse;
  background: var(--s57a-card);
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--s57a-border);
  font-size: 1.2rem;
}
.s57a-rtp-table th, .s57a-rtp-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s57a-rtp-table th { background: #20121618; color: var(--s57a-pink); font-weight: 700; }
.s57a-rtp-table tr:last-child td { border-bottom: none; }
.s57a-rtp-bar {
  display: inline-block; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--s57a-green), var(--s57a-pink));
  vertical-align: middle;
}

/* ---------------- FAQ ---------------- */
.s57a-faq-item {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.s57a-faq-q {
  width: 100%; text-align: left;
  padding: 12px 14px; background: transparent; border: none;
  color: var(--s57a-text); font-weight: 700; font-size: 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  cursor: pointer;
}
.s57a-faq-q .s57a-faq-icon { color: var(--s57a-pink); transition: transform .2s; }
.s57a-faq-item.s57a-faq-open .s57a-faq-icon { transform: rotate(45deg); }
.s57a-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px; color: var(--s57a-text-muted); font-size: 1.2rem;
}
.s57a-faq-item.s57a-faq-open .s57a-faq-a { max-height: 360px; padding: 0 14px 12px; }

/* ---------------- App download CTA ---------------- */
.s57a-app-cta {
  background: linear-gradient(135deg, #10241a, #0C0C0C);
  border: 1px solid var(--s57a-border);
  border-radius: var(--s57a-radius);
  padding: 16px; display: flex; gap: 12px; align-items: center;
  margin: 18px 0;
}
.s57a-app-cta-text { flex: 1; min-width: 0; }
.s57a-app-cta-text h3 { margin: 0 0 4px; font-size: 1.55rem; color: var(--s57a-green); }
.s57a-app-cta-text p { margin: 0; font-size: 1.2rem; color: var(--s57a-text-muted); }
.s57a-qr {
  width: 84px; height: 84px; border-radius: 10px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  color: #0C0C0C; font-weight: 800; font-size: 1.1rem; text-align: center;
}

/* ---------------- Achievements ---------------- */
.s57a-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.s57a-stat {
  background: var(--s57a-card);
  border: 1px solid var(--s57a-border);
  border-radius: 12px; padding: 12px 6px; text-align: center;
}
.s57a-stat b { display: block; font-size: 1.8rem; color: var(--s57a-pink); }
.s57a-stat span { font-size: 1.1rem; color: var(--s57a-text-muted); }

/* ---------------- Tips list ---------------- */
.s57a-tips { padding-left: 18px; margin: 8px 0; color: var(--s57a-text-muted); font-size: 1.25rem; }
.s57a-tips li { margin-bottom: 6px; }
.s57a-tips strong { color: var(--s57a-pink); }

/* ---------------- CTA band ---------------- */
.s57a-cta-band {
  background: linear-gradient(135deg, var(--s57a-pink), var(--s57a-red));
  border-radius: var(--s57a-radius);
  padding: 18px; text-align: center; color: #fff;
  margin: 20px 0;
}
.s57a-cta-band h3 { margin: 0 0 6px; font-size: 1.8rem; color: #fff; }
.s57a-cta-band p { margin: 0 0 12px; font-size: 1.25rem; }

/* ---------------- Footer ---------------- */
.s57a-footer {
  margin-top: 28px;
  background: #070304;
  border-top: 1px solid var(--s57a-border);
  padding: 22px 14px calc(var(--s57a-bottom-h) + 22px);
}
.s57a-footer-brand {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 6px;
  background: linear-gradient(90deg, var(--s57a-pink), var(--s57a-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s57a-footer-desc { font-size: 1.2rem; color: var(--s57a-text-muted); margin: 0 0 12px; }
.s57a-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.s57a-footer-links a {
  background: var(--s57a-bg-3);
  border: 1px solid var(--s57a-border);
  padding: 6px 12px; border-radius: 999px;
  font-size: 1.15rem; color: var(--s57a-text);
}
.s57a-footer-links a:hover { color: var(--s57a-pink); border-color: var(--s57a-pink); }
.s57a-footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 12px 0;
}
.s57a-footer-col h4 { font-size: 1.25rem; color: var(--s57a-pink); margin: 0 0 6px; }
.s57a-footer-col a { display: block; font-size: 1.15rem; padding: 3px 0; color: var(--s57a-text-muted); }
.s57a-footer-col a:hover { color: var(--s57a-green); }
.s57a-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  font-size: 1.1rem; color: var(--s57a-text-muted); text-align: center;
}

/* ---------------- Mobile bottom nav ---------------- */
.s57a-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--s57a-bottom-h);
  background: linear-gradient(180deg, #0a0608, #050203);
  border-top: 1px solid var(--s57a-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.5);
}
.s57a-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--s57a-text-muted);
  font-size: 1.05rem; font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color .15s ease, transform .15s ease;
  min-width: 60px; min-height: 60px;
  padding: 4px 2px;
}
.s57a-bottom-nav a i { font-size: 2.2rem; }
.s57a-bottom-nav a:active { transform: scale(0.92); }
.s57a-bottom-nav a:hover { color: var(--s57a-pink); }
.s57a-bottom-nav a.s57a-nav-current { color: var(--s57a-pink); }
.s57a-bottom-nav a.s57a-nav-current::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--s57a-pink), var(--s57a-red));
}
.s57a-nav-badge {
  position: absolute; top: 4px; right: 18px;
  background: var(--s57a-red); color: #fff;
  font-size: 0.95rem; padding: 0 5px; border-radius: 8px;
  line-height: 1.5; font-weight: 700;
}

/* ---------------- Helpers ---------------- */
.s57a-hide { display: none !important; }
.s57a-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.s57a-anim-run { opacity: 1; transform: none; }

/* ---------------- Desktop / tablet ---------------- */
@media (min-width: 769px) {
  :root { --s57a-maxw: 960px; }
  body { font-size: 1.65rem; }
  .s57a-grid { grid-template-columns: repeat(6, 1fr); }
  .s57a-features { grid-template-columns: repeat(4, 1fr); }
  .s57a-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .s57a-bottom-nav { display: none; }
  .s57a-footer { padding-bottom: 28px; }
  .s57a-main { padding-bottom: 30px; }
  .s57a-slide img { height: 320px; }
  .s57a-stats { grid-template-columns: repeat(6, 1fr); }
  .s57a-menu-btn { display: none; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .s57a-grid { grid-template-columns: repeat(4, 1fr); }
  .s57a-slide img { height: 240px; }
}

/* Ensure tap targets meet 44px minimum on small screens */
@media (max-width: 430px) {
  .s57a-header-actions .s57a-btn { min-height: 38px; padding: 0 12px; font-size: 1.3rem; }
}
