/* ============================================================
   22ph Layout Stylesheet - layout-30b9.css
   CSS class prefix: s30b-
   Palette: #DEB887 | #6A5ACD | #808080 | #800080 | #EE82EE | #2C3E50
   Mobile-first, max-width 430px. rem units, root font 62.5%.
   ============================================================ */

:root {
  --s30b-primary: #DEB887;      /* burlywood / brand gold */
  --s30b-accent: #6A5ACD;       /* slate blue */
  --s30b-muted: #808080;        /* neutral gray */
  --s30b-purple: #800080;       /* deep purple */
  --s30b-pink: #EE82EE;         /* violet accent */
  --s30b-bg: #2C3E50;           /* dark background */
  --s30b-bg-dark: #1c2a36;
  --s30b-text: #f5efe6;
  --s30b-text-soft: #c9c0b5;
  --s30b-card: #34495e;
  --s30b-card-light: #3d566e;
  --s30b-border: rgba(222, 184, 135, 0.25);
  --s30b-shadow: 0 2px 8px rgba(0,0,0,0.35);
  --s30b-radius: 10px;
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--s30b-bg);
  color: var(--s30b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--s30b-primary); text-decoration: none; }
a:hover { color: var(--s30b-pink); }

/* ---------- Layout containers ---------- */
.s30b-container { width: 100%; padding: 0 1.2rem; }
.s30b-wrapper { max-width: 430px; margin: 0 auto; position: relative; }
.s30b-grid { display: grid; gap: 1rem; }

/* ---------- Header / Top Navigation ---------- */
.s30b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--s30b-bg-dark), var(--s30b-bg));
  border-bottom: 2px solid var(--s30b-primary);
  z-index: 1000;
  box-shadow: var(--s30b-shadow);
}
.s30b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.s30b-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s30b-primary);
  letter-spacing: 0.5px;
}
.s30b-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s30b-logo .s30b-logo-text { color: var(--s30b-primary); }

.s30b-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s30b-menu-btn {
  background: transparent;
  border: 1px solid var(--s30b-primary);
  color: var(--s30b-primary);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.s30b-btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s30b-btn:active { transform: scale(0.96); }
.s30b-btn-register {
  background: linear-gradient(135deg, var(--s30b-purple), var(--s30b-pink));
  color: #fff;
  box-shadow: 0 3px 10px rgba(128,0,128,0.4);
}
.s30b-btn-login {
  background: linear-gradient(135deg, var(--s30b-primary), #b89b6a);
  color: var(--s30b-bg-dark);
  box-shadow: 0 3px 10px rgba(222,184,135,0.4);
}
.s30b-btn-block { display: block; width: 100%; padding: 1rem; font-size: 1.5rem; }

/* ---------- Mobile expandable menu ---------- */
.s30b-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s30b-bg-dark);
  border-bottom: 2px solid var(--s30b-primary);
  padding: 5rem 1rem 1rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
}
.s30b-mobile-menu.s30b-menu-open { transform: translateY(0); }
.s30b-mobile-menu a {
  display: block;
  padding: 1rem 0.8rem;
  border-bottom: 1px solid var(--s30b-border);
  color: var(--s30b-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.s30b-mobile-menu a:hover { color: var(--s30b-primary); }
.s30b-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: var(--s30b-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Main / Sections ---------- */
main { padding-top: 6rem; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

.s30b-section { padding: 1.5rem 1.2rem; }
.s30b-section h2 {
  font-size: 1.9rem;
  color: var(--s30b-primary);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--s30b-pink);
  padding-left: 0.8rem;
}
.s30b-section h3 {
  font-size: 1.5rem;
  color: var(--s30b-pink);
  margin: 1rem 0 0.5rem;
}
.s30b-section p {
  margin-bottom: 0.8rem;
  color: var(--s30b-text-soft);
}

/* ---------- Hero / Carousel ---------- */
.s30b-carousel {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--s30b-radius);
  overflow: hidden;
  box-shadow: var(--s30b-shadow);
}
.s30b-carousel-track { position: relative; height: 180px; }
.s30b-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s30b-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s30b-carousel-slide.s30b-slide-active { opacity: 1; }
.s30b-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s30b-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.s30b-carousel-dot.s30b-dot-active { background: var(--s30b-primary); }

/* ---------- Game grid ---------- */
.s30b-game-section { margin-bottom: 1.5rem; }
.s30b-game-section .s30b-cat-title {
  font-size: 1.6rem;
  color: var(--s30b-primary);
  margin: 1rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s30b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
@media (min-width: 400px) { .s30b-game-grid { grid-template-columns: repeat(5, 1fr); } }

.s30b-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: var(--s30b-card);
  border-radius: 8px;
  padding: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.s30b-game-card:active { transform: scale(0.94); }
.s30b-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--s30b-border);
}
.s30b-game-card .s30b-game-name {
  font-size: 1rem;
  color: var(--s30b-text-soft);
  line-height: 1.2rem;
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Info cards ---------- */
.s30b-card {
  background: var(--s30b-card);
  border-radius: var(--s30b-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--s30b-border);
  box-shadow: var(--s30b-shadow);
}
.s30b-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.s30b-mini-card {
  background: var(--s30b-card-light);
  border-radius: 8px;
  padding: 0.9rem;
  text-align: center;
}
.s30b-mini-card .s30b-icon { font-size: 2.2rem; color: var(--s30b-primary); margin-bottom: 0.4rem; }
.s30b-mini-card .s30b-title { font-size: 1.2rem; font-weight: 700; color: var(--s30b-text); }
.s30b-mini-card .s30b-desc { font-size: 1rem; color: var(--s30b-text-soft); margin-top: 0.3rem; }

/* ---------- Promo links inside text ---------- */
.s30b-promo-link {
  color: var(--s30b-pink);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.s30b-promo-btn {
  display: inline-block;
  margin: 0.8rem 0;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--s30b-purple), var(--s30b-pink));
  color: #fff;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Testimonials ---------- */
.s30b-testimonial {
  background: var(--s30b-card-light);
  border-left: 3px solid var(--s30b-primary);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}
.s30b-testimonial .s30b-author { font-size: 1.1rem; color: var(--s30b-pink); font-weight: 700; margin-top: 0.4rem; }

/* ---------- Payment methods ---------- */
.s30b-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.s30b-pay-item {
  background: var(--s30b-card-light);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 1.1rem;
  color: var(--s30b-text);
  border: 1px solid var(--s30b-border);
}

/* ---------- Winners showcase ---------- */
.s30b-winner {
  display: flex;
  justify-content: space-between;
  background: var(--s30b-card-light);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.s30b-winner .s30b-amount { color: var(--s30b-primary); font-weight: 700; }

/* ---------- FAQ ---------- */
.s30b-faq-item {
  background: var(--s30b-card);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--s30b-border);
}
.s30b-faq-item .s30b-q { font-weight: 700; color: var(--s30b-primary); margin-bottom: 0.4rem; }
.s30b-faq-item .s30b-a { color: var(--s30b-text-soft); font-size: 1.25rem; }

/* ---------- Footer ---------- */
.s30b-footer {
  background: var(--s30b-bg-dark);
  border-top: 2px solid var(--s30b-primary);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 1.5rem;
}
.s30b-footer .s30b-footer-brand { color: var(--s30b-text-soft); font-size: 1.2rem; margin-bottom: 1rem; }
.s30b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.s30b-footer-links a {
  flex: 1 1 45%;
  background: var(--s30b-card);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  text-align: center;
  color: var(--s30b-text);
  font-size: 1.1rem;
  border: 1px solid var(--s30b-border);
}
.s30b-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.s30b-footer-promo button, .s30b-footer-promo a {
  flex: 1 1 30%;
  padding: 0.7rem 0.4rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--s30b-purple), var(--s30b-pink));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
}
.s30b-footer-copy { font-size: 1rem; color: var(--s30b-muted); text-align: center; border-top: 1px solid var(--s30b-border); padding-top: 0.8rem; }

/* ---------- Mobile bottom navigation ---------- */
.s30b-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(135deg, var(--s30b-bg-dark), var(--s30b-bg));
  border-top: 2px solid var(--s30b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.35);
}
.s30b-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s30b-text-soft);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s30b-bottomnav-btn:active { transform: scale(0.9); }
.s30b-bottomnav-btn .s30b-nav-icon { font-size: 22px; line-height: 1; }
.s30b-bottomnav-btn .s30b-nav-label { font-size: 11px; line-height: 1; }
.s30b-bottomnav-btn.s30b-nav-active,
.s30b-bottomnav-btn:hover { color: var(--s30b-primary); }
.s30b-bottomnav-btn.s30b-nav-active .s30b-nav-icon { color: var(--s30b-pink); }

@media (min-width: 769px) { .s30b-bottomnav { display: none; } }

/* ---------- Utility ---------- */
.s30b-text-center { text-align: center; }
.s30b-mt-1 { margin-top: 1rem; }
.s30b-mb-1 { margin-bottom: 1rem; }
.s30b-hidden { display: none !important; }
