/*!
 * 365ok layout stylesheet
 * Mobile-first responsive design, max wrapper width 430px.
 * All custom classes use the wa5b7- prefix to isolate styles.
 */
:root {
  --wa5b7-primary: #FA8072;
  --wa5b7-accent: #FFB3FF;
  --wa5b7-bg: #1C2833;
  --wa5b7-bg-soft: #243343;
  --wa5b7-bg-card: #2C3E50;
  --wa5b7-text: #FFFFFF;
  --wa5b7-text-muted: #B8C2CC;
  --wa5b7-gold: #FFD27A;
  --wa5b7-border: rgba(255, 255, 255, 0.08);
  --wa5b7-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --wa5b7-radius: 14px;
}

* { 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", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--wa5b7-bg);
  color: var(--wa5b7-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

a { color: var(--wa5b7-accent); text-decoration: none; }

.wa5b7-skip-link {
  position: absolute; left: -999px;
}
.wa5b7-skip-link:focus { left: 8px; top: 8px; z-index: 10001; background: var(--wa5b7-primary); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* Page wrapper - enforces the 430px mobile-first design target. */
.wa5b7-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #1C2833 0%, #22303f 100%);
  position: relative;
  box-shadow: var(--wa5b7-shadow);
}

.wa5b7-container {
  width: 100%;
  padding: 0 12px;
}

/* ===================== Header ===================== */
.wa5b7-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(28, 40, 51, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wa5b7-border);
}

.wa5b7-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wa5b7-brand img { width: 28px; height: 28px; border-radius: 6px; }
.wa5b7-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--wa5b7-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.wa5b7-brand-name span { color: var(--wa5b7-accent); }

.wa5b7-header-actions { display: flex; align-items: center; gap: 6px; }

.wa5b7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.wa5b7-btn:active { transform: scale(0.96); }
.wa5b7-btn-login {
  background: transparent;
  border: 1px solid var(--wa5b7-accent);
  color: var(--wa5b7-accent);
}
.wa5b7-btn-register {
  background: linear-gradient(135deg, #FA8072 0%, #FFB3FF 100%);
  color: #1C2833;
  box-shadow: 0 4px 12px rgba(250, 128, 114, 0.4);
}

.wa5b7-menu-toggle {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--wa5b7-border);
  border-radius: 10px;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wa5b7-menu-toggle.wa5b7-active { background: var(--wa5b7-primary); }

/* Expandable navigation menu */
.wa5b7-mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: 100%;
  max-width: 430px;
  background: var(--wa5b7-bg-soft);
  border-bottom: 1px solid var(--wa5b7-border);
  padding: 10px 14px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: var(--wa5b7-shadow);
}
.wa5b7-mobile-menu.wa5b7-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.wa5b7-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--wa5b7-border);
  color: #fff;
  font-size: 1.35rem;
}
.wa5b7-mobile-menu a:last-child { border-bottom: none; }
.wa5b7-mobile-menu a i { color: var(--wa5b7-primary); margin-right: 8px; }

/* ===================== Main / Sections ===================== */
main { padding-bottom: 84px; }

.wa5b7-section {
  padding: 18px 12px 6px;
}
.wa5b7-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wa5b7-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  padding-left: 12px;
}
.wa5b7-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FA8072, #FFB3FF);
}
.wa5b7-section-title small { font-size: 1.15rem; color: var(--wa5b7-text-muted); font-weight: 500; }
.wa5b7-more { color: var(--wa5b7-accent); font-size: 1.2rem; }

.wa5b7-h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  font-weight: 800;
  margin: 14px 0 6px;
  color: #fff;
}
.wa5b7-h1 span { color: var(--wa5b7-primary); }
.wa5b7-lead {
  font-size: 1.35rem;
  color: var(--wa5b7-text-muted);
  margin-bottom: 12px;
}

/* ===================== Carousel ===================== */
.wa5b7-carousel {
  position: relative;
  border-radius: var(--wa5b7-radius);
  overflow: hidden;
  margin: 6px 0 4px;
  box-shadow: var(--wa5b7-shadow);
}
.wa5b7-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.wa5b7-slide img { width: 100%; height: 180px; object-fit: cover; }
.wa5b7-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}
.wa5b7-slide-active { display: block; }
.wa5b7-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.wa5b7-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.wa5b7-dot-active { background: var(--wa5b7-primary); width: 18px; border-radius: 4px; }

/* ===================== Game Grid ===================== */
.wa5b7-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wa5b7-card {
  background: var(--wa5b7-bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  padding-bottom: 4px;
}
.wa5b7-card:active { transform: scale(0.95); }
.wa5b7-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
}
.wa5b7-card-name {
  display: block;
  font-size: 1.05rem;
  color: var(--wa5b7-text);
  padding: 4px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.wa5b7-card-tag {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--wa5b7-primary);
  color: #1C2833;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

/* ===================== Promo CTA ===================== */
.wa5b7-cta {
  display: block;
  background: linear-gradient(135deg, #FA8072 0%, #FFB3FF 100%);
  color: #1C2833;
  text-align: center;
  font-weight: 800;
  font-size: 1.45rem;
  padding: 14px 12px;
  border-radius: 12px;
  margin: 10px 0;
  box-shadow: 0 4px 14px rgba(250, 128, 114, 0.45);
}
.wa5b7-text-link {
  color: var(--wa5b7-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--wa5b7-accent);
}

/* ===================== Info / Feature / FAQ ===================== */
.wa5b7-card-box {
  background: var(--wa5b7-bg-card);
  border-radius: 12px;
  padding: 14px;
  margin: 8px 0;
  border: 1px solid var(--wa5b7-border);
}
.wa5b7-card-box h2 { font-size: 1.55rem; color: var(--wa5b7-primary); margin-bottom: 8px; }
.wa5b7-card-box h3 { font-size: 1.35rem; color: var(--wa5b7-accent); margin: 8px 0 4px; }
.wa5b7-card-box p { color: var(--wa5b7-text-muted); margin-bottom: 8px; }
.wa5b7-card-box ul { padding-left: 18px; color: var(--wa5b7-text-muted); }
.wa5b7-card-box li { margin-bottom: 4px; }

.wa5b7-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.wa5b7-feature {
  background: var(--wa5b7-bg-card);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--wa5b7-border);
}
.wa5b7-feature i { font-size: 2.2rem; color: var(--wa5b7-primary); }
.wa5b7-feature h3 { font-size: 1.25rem; margin: 6px 0 4px; color: #fff; }
.wa5b7-feature p { font-size: 1.15rem; color: var(--wa5b7-text-muted); }

.wa5b7-faq-item {
  border-bottom: 1px solid var(--wa5b7-border);
  padding: 10px 0;
}
.wa5b7-faq-item summary {
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  list-style: none;
}
.wa5b7-faq-item summary::-webkit-details-marker { display: none; }
.wa5b7-faq-item p { margin-top: 6px; color: var(--wa5b7-text-muted); }

/* RTP compact table */
.wa5b7-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid var(--wa5b7-border);
  font-size: 1.2rem;
}
.wa5b7-rtp-row span:last-child { color: var(--wa5b7-gold); font-weight: 700; }

/* Payment / partners */
.wa5b7-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.wa5b7-pill {
  background: var(--wa5b7-bg-soft);
  border: 1px solid var(--wa5b7-border);
  color: var(--wa5b7-text);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 1.15rem;
}
.wa5b7-pill i { color: var(--wa5b7-primary); margin-right: 4px; }

/* Testimonial */
.wa5b7-quote {
  background: var(--wa5b7-bg-card);
  border-left: 3px solid var(--wa5b7-primary);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.wa5b7-quote p { color: #fff; font-style: italic; }
.wa5b7-quote small { color: var(--wa5b7-text-muted); }

/* Winners ticker */
.wa5b7-winner {
  display: flex;
  justify-content: space-between;
  background: var(--wa5b7-bg-card);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.wa5b7-winner b { color: var(--wa5b7-gold); }

/* ===================== Footer ===================== */
.wa5b7-footer {
  background: #161F2A;
  padding: 18px 14px 24px;
  border-top: 1px solid var(--wa5b7-border);
  margin-top: 14px;
}
.wa5b7-footer p { color: var(--wa5b7-text-muted); font-size: 1.2rem; margin-bottom: 8px; }
.wa5b7-footer h4 { color: var(--wa5b7-primary); font-size: 1.35rem; margin: 12px 0 6px; }
.wa5b7-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.wa5b7-footer-links a {
  color: var(--wa5b7-text);
  font-size: 1.2rem;
  padding: 4px 0;
}
.wa5b7-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.wa5b7-footer-promos button {
  flex: 1 1 45%;
  background: var(--wa5b7-primary);
  color: #1C2833;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}
.wa5b7-footer-promos button.alt {
  background: transparent;
  border: 1px solid var(--wa5b7-accent);
  color: var(--wa5b7-accent);
}
.wa5b7-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--wa5b7-text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--wa5b7-border);
  margin-top: 8px;
}

/* ===================== Bottom Nav ===================== */
.wa5b7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: rgba(22, 31, 42, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--wa5b7-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.wa5b7-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--wa5b7-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.wa5b7-bottom-nav-btn i,
.wa5b7-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.wa5b7-bottom-nav-btn:active { transform: scale(0.9); }
.wa5b7-bottom-nav-btn.wa5b7-nav-current { color: var(--wa5b7-primary); }
.wa5b7-bottom-nav-btn.wa5b7-nav-current::before {
  content: '';
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--wa5b7-primary);
}
.wa5b7-nav-badge {
  position: absolute;
  top: 6px; right: 14px;
  background: var(--wa5b7-primary);
  color: #1C2833;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
}

/* ===================== Desktop ===================== */
.wa5b7-desktop-nav { display: none; }

@media (min-width: 769px) {
  .wa5b7-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
  .wa5b7-desktop-nav {
    display: flex;
    gap: 14px;
    align-items: center;
  }
  .wa5b7-desktop-nav a {
    color: var(--wa5b7-text);
    font-size: 1.25rem;
    font-weight: 600;
  }
  .wa5b7-desktop-nav a:hover { color: var(--wa5b7-primary); }
}

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