/*!
 * abc app layout stylesheet
 * Mobile-first HTML5 gaming website styles
 * All custom classes use the w36b5- prefix for namespace isolation
 * Color palette: #1A1A2E | #FFC0CB | #9400D3 | #9932CC | #7B68EE
 */

:root {
  --w36b5-bg: #1A1A2E;
  --w36b5-bg-alt: #211b3a;
  --w36b5-card: #26213f;
  --w36b5-primary: #9400D3;
  --w36b5-primary-2: #9932CC;
  --w36b5-accent: #7B68EE;
  --w36b5-text: #FFC0CB;
  --w36b5-text-light: #f4e7f8;
  --w36b5-text-muted: #b9a7d6;
  --w36b5-border: rgba(123, 104, 238, 0.28);
  --w36b5-gold: #ffd27a;
  --w36b5-success: #4ade80;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w36b5-bg);
  color: var(--w36b5-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--w36b5-accent); text-decoration: none; }
a:hover, a:focus { color: var(--w36b5-text); }

/* ========== Layout containers ========== */
.w36b5-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.w36b5-container {
  width: 100%;
  padding: 0 1.2rem;
}

.w36b5-main {
  padding-top: 5.6rem;
}

@media (max-width: 768px) {
  .w36b5-main { padding-bottom: 8rem; }
}

/* ========== Header / Top nav ========== */
.w36b5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A2E 0%, #2a1a45 100%);
  border-bottom: 1px solid var(--w36b5-border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.w36b5-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1rem;
}

.w36b5-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--w36b5-text-light);
  font-weight: 700;
  font-size: 1.5rem;
}

.w36b5-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.w36b5-logo span {
  background: linear-gradient(90deg, var(--w36b5-text), var(--w36b5-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.w36b5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.w36b5-btn-login {
  background: transparent;
  color: var(--w36b5-text-light);
  border: 1px solid var(--w36b5-accent);
}

.w36b5-btn-register {
  background: linear-gradient(90deg, var(--w36b5-primary), var(--w36b5-primary-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(148, 0, 211, 0.45);
}

.w36b5-btn:hover { transform: translateY(-1px); }
.w36b5-btn:active { transform: scale(0.97); }

.w36b5-menu-btn {
  background: transparent;
  border: 1px solid var(--w36b5-border);
  color: var(--w36b5-text-light);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w36b5-btn-active { background: rgba(123, 104, 238, 0.18); }

/* ========== Mobile slide menu ========== */
.w36b5-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.6);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.w36b5-overlay-show { opacity: 1; visibility: visible; }

.w36b5-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  max-width: 80vw;
  height: 100vh;
  background: var(--w36b5-bg-alt);
  z-index: 9999;
  padding: 6rem 1.2rem 2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--w36b5-border);
}

.w36b5-menu-open { right: 0; }

.w36b5-mobile-menu a, .w36b5-mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  color: var(--w36b5-text-light);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.w36b5-mobile-menu a:hover, .w36b5-mobile-menu button:hover {
  background: rgba(123, 104, 238, 0.18);
  color: var(--w36b5-text);
}

.w36b5-mobile-menu .w36b5-menu-title {
  color: var(--w36b5-text-muted);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.2rem 0.4rem;
}

/* ========== Hero / Carousel ========== */
.w36b5-carousel {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

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

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

.w36b5-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.w36b5-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.92));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.w36b5-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.7);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w36b5-carousel-nav:hover { background: rgba(148, 0, 211, 0.8); }

#w36b5-carousel-prev { left: 8px; }
#w36b5-carousel-next { right: 8px; }

.w36b5-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.w36b5-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.w36b5-dot-active { background: var(--w36b5-text); }

/* ========== Section / Headings ========== */
.w36b5-section {
  padding: 1.6rem 1.2rem;
  margin-top: 0.8rem;
}

.w36b5-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w36b5-text);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w36b5-section-title i { color: var(--w36b5-accent); }

.w36b5-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  margin: 1rem 0;
  text-align: center;
  background: linear-gradient(90deg, var(--w36b5-text), var(--w36b5-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w36b5-subtitle {
  color: var(--w36b5-text-muted);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.w36b5-text p {
  margin-bottom: 1rem;
  color: var(--w36b5-text-light);
}

/* ========== Game grid ========== */
.w36b5-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--w36b5-border);
}

.w36b5-cat-head i { color: var(--w36b5-gold); font-size: 1.8rem; }
.w36b5-cat-head h3 { font-size: 1.5rem; color: var(--w36b5-text); font-weight: 700; }
.w36b5-cat-head span { margin-left: auto; color: var(--w36b5-text-muted); font-size: 1.1rem; }

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

@media (max-width: 360px) {
  .w36b5-grid { grid-template-columns: repeat(3, 1fr); }
}

.w36b5-game-card {
  display: block;
  background: var(--w36b5-card);
  border: 1px solid var(--w36b5-border);
  border-radius: 12px;
  padding: 0.6rem 0.4rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.w36b5-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--w36b5-accent);
  box-shadow: 0 6px 16px rgba(123, 104, 238, 0.35);
}

.w36b5-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.w36b5-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--w36b5-text-light);
  line-height: 1.25;
  min-height: 2.6em;
  overflow: hidden;
}

/* ========== Card / Feature / Promo ========== */
.w36b5-card {
  background: var(--w36b5-card);
  border: 1px solid var(--w36b5-border);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.w36b5-card h3 {
  color: var(--w36b5-text);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w36b5-card h3 i { color: var(--w36b5-accent); }

.w36b5-card ul { padding-left: 1.4rem; margin: 0.4rem 0; }
.w36b5-card li { margin-bottom: 0.5rem; color: var(--w36b5-text-light); }

.w36b5-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.w36b5-promo-row .w36b5-btn { font-size: 1.2rem; padding: 0.6rem 1rem; }

.w36b5-inline-link {
  color: var(--w36b5-text);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.w36b5-inline-link:hover { color: var(--w36b5-accent); }

/* ========== RTP stat grid ========== */
.w36b5-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.w36b5-stat {
  background: rgba(123, 104, 238, 0.12);
  border: 1px solid var(--w36b5-border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}

.w36b5-stat .w36b5-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w36b5-gold);
}

.w36b5-stat .w36b5-stat-label {
  font-size: 1.1rem;
  color: var(--w36b5-text-muted);
  margin-top: 0.2rem;
}

/* ========== Testimonials ========== */
.w36b5-testi {
  background: var(--w36b5-card);
  border-left: 3px solid var(--w36b5-primary);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.w36b5-testi .w36b5-testi-name { color: var(--w36b5-text); font-weight: 700; font-size: 1.3rem; }
.w36b5-testi .w36b5-testi-stars { color: var(--w36b5-gold); margin: 0.2rem 0; }
.w36b5-testi p { color: var(--w36b5-text-light); font-size: 1.2rem; margin: 0.3rem 0 0; }

/* ========== FAQ ========== */
.w36b5-faq-item {
  background: var(--w36b5-card);
  border: 1px solid var(--w36b5-border);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.w36b5-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--w36b5-text);
  font-size: 1.3rem;
}

.w36b5-faq-q .w36b5-faq-icon { transition: transform 0.25s ease; }

.w36b5-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.2rem;
  color: var(--w36b5-text-muted);
  font-size: 1.2rem;
}

.w36b5-faq-open .w36b5-faq-a {
  max-height: 320px;
  padding: 0 1.2rem 1rem;
}

.w36b5-faq-open .w36b5-faq-icon { transform: rotate(45deg); }

/* ========== Winners / payment / app cta ========== */
.w36b5-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.w36b5-winner {
  background: linear-gradient(135deg, rgba(148, 0, 211, 0.2), rgba(123, 104, 238, 0.1));
  border: 1px solid var(--w36b5-border);
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 1.1rem;
}

.w36b5-winner b { color: var(--w36b5-gold); display: block; font-size: 1.2rem; }

.w36b5-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.w36b5-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(123, 104, 238, 0.14);
  border: 1px solid var(--w36b5-border);
  color: var(--w36b5-text-light);
  font-size: 1.2rem;
}

.w36b5-app-cta {
  background: linear-gradient(135deg, rgba(148, 0, 211, 0.3), rgba(255, 192, 203, 0.12));
  border: 1px solid var(--w36b5-border);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
}

.w36b5-app-cta h3 { color: var(--w36b5-text); margin-bottom: 0.5rem; font-size: 1.6rem; }
.w36b5-app-cta p { color: var(--w36b5-text-muted); margin-bottom: 1rem; }

/* ========== Play Now CTA banner ========== */
.w36b5-cta-banner {
  background: linear-gradient(90deg, var(--w36b5-primary), var(--w36b5-accent));
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: 0 6px 18px rgba(148, 0, 211, 0.45);
}

.w36b5-cta-banner h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.4rem; }
.w36b5-cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0.9rem; }
.w36b5-cta-banner .w36b5-btn {
  background: #fff;
  color: var(--w36b5-primary);
  font-size: 1.4rem;
  padding: 0.9rem 2rem;
}

/* ========== Footer ========== */
.w36b5-footer {
  background: var(--w36b5-bg-alt);
  border-top: 1px solid var(--w36b5-border);
  padding: 2rem 1.2rem 6rem;
  margin-top: 2rem;
  text-align: center;
}

.w36b5-footer .w36b5-footer-brand { color: var(--w36b5-text-muted); font-size: 1.2rem; line-height: 1.6; max-width: 380px; margin: 0 auto 1rem; }

.w36b5-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.w36b5-footer-links a, .w36b5-footer-links button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: rgba(123, 104, 238, 0.14);
  color: var(--w36b5-text-light);
  font-size: 1.1rem;
  border: 1px solid var(--w36b5-border);
  cursor: pointer;
}

.w36b5-footer-links a:hover, .w36b5-footer-links button:hover {
  background: rgba(148, 0, 211, 0.3);
  color: var(--w36b5-text);
}

.w36b5-footer-copy {
  color: var(--w36b5-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ========== Bottom navigation ========== */
.w36b5-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #2a1a45 0%, #1A1A2E 100%);
  border-top: 1px solid var(--w36b5-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}

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

.w36b5-bottomnav-btn i, .w36b5-bottomnav-btn .material-icons-outlined,
.w36b5-bottomnav-btn ion-icon {
  font-size: 22px;
}

.w36b5-bottomnav-btn span {
  font-size: 1rem;
  line-height: 1.1;
}

.w36b5-bottomnav-btn:hover { color: var(--w36b5-text); }
.w36b5-bottomnav-btn:active { transform: scale(0.92); }

.w36b5-bottomnav-active {
  color: var(--w36b5-text) !important;
}

.w36b5-bottomnav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--w36b5-text), var(--w36b5-accent));
}

.w36b5-bottomnav-badge {
  position: absolute;
  top: 4px;
  right: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--w36b5-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .w36b5-bottomnav { display: none; }
  .w36b5-footer { padding-bottom: 2rem; }
  .w36b5-wrapper { max-width: 760px; }
  .w36b5-header-inner { max-width: 760px; }
  .w36b5-grid { grid-template-columns: repeat(6, 1fr); }
  .w36b5-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .w36b5-winners { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .w36b5-desktop-only { display: none !important; }
}
