/* =========================================================
 * casino plus ph - Shared Stylesheet
 * Class prefix: s22d-
 * Palette: #228B22 #98FB98 #2D2D2D #A9A9A9 #2E8B57 #DEB887
 * Mobile-first, max-width 430px
 * ========================================================= */

:root {
  --s22d-primary: #228B22;
  --s22d-primary-dark: #2E8B57;
  --s22d-accent: #DEB887;
  --s22d-bg: #2D2D2D;
  --s22d-bg-light: #3a3a3a;
  --s22d-text: #98FB98;
  --s22d-text-soft: #A9A9A9;
  --s22d-white: #ffffff;
  --s22d-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --s22d-radius: 12px;
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--s22d-bg);
  color: var(--s22d-white);
  font-size: 1.5rem;
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--s22d-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.2rem; color: var(--s22d-text); margin: 1.2rem 0; }
h2 { font-size: 1.9rem; color: var(--s22d-text); margin: 1rem 0; }
h3 { font-size: 1.6rem; color: var(--s22d-accent); margin: 0.8rem 0; }
p { margin: 0.6rem 0; color: #eee; line-height: 1.5; }

/* ---------- Header ---------- */
.s22d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--s22d-primary-dark), var(--s22d-primary));
  box-shadow: var(--s22d-shadow);
  max-width: 430px;
  margin: 0 auto;
}
.s22d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  gap: 0.5rem;
}
.s22d-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.s22d-brand img { width: 28px; height: 28px; border-radius: 6px; }
.s22d-brand-name {
  color: var(--s22d-white);
  font-weight: 800;
  font-size: 1.4rem;
  white-space: nowrap;
}
.s22d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.s22d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  min-height: 36px;
}
.s22d-btn:hover { transform: scale(1.04); text-decoration: none; }
.s22d-btn-login {
  background: transparent;
  color: var(--s22d-white);
  border: 1.5px solid var(--s22d-accent);
}
.s22d-btn-register {
  background: var(--s22d-accent);
  color: #3a2a10;
}
.s22d-nav-toggle {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--s22d-white);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Expandable menu */
.s22d-nav-menu {
  display: none;
  background: var(--s22d-bg-light);
  padding: 0.6rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.s22d-nav-menu.s22d-open { display: block; }
.s22d-nav-menu a {
  display: block;
  padding: 0.8rem 0.4rem;
  color: var(--s22d-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.35rem;
}
.s22d-nav-menu a:last-child { border-bottom: none; }

/* ---------- Layout ---------- */
.s22d-wrapper {
  padding-top: 56px; /* header height */
  padding-bottom: 16px;
}
main.s22d-main { padding: 0 0.9rem 80px; }
.s22d-container { width: 100%; }
.s22d-section {
  margin: 1.4rem 0;
  padding: 1rem;
  background: var(--s22d-bg-light);
  border-radius: var(--s22d-radius);
  box-shadow: var(--s22d-shadow);
}
.s22d-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--s22d-text);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--s22d-accent);
  padding-left: 0.6rem;
}

/* ---------- Hero carousel ---------- */
.s22d-carousel {
  position: relative;
  border-radius: var(--s22d-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--s22d-shadow);
}
.s22d-slides { position: relative; }
.s22d-slide {
  display: none;
  cursor: pointer;
}
.s22d-slide.s22d-active { display: block; }
.s22d-slide img { width: 100%; height: 180px; object-fit: cover; }
.s22d-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--s22d-white);
  padding: 1.6rem 0.9rem 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.s22d-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.s22d-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}
.s22d-dot.s22d-active { background: var(--s22d-accent); }

/* ---------- Promo CTA ---------- */
.s22d-cta {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, var(--s22d-accent), #f0d199);
  color: #3a2a10;
  font-weight: 800;
  padding: 1rem;
  border-radius: var(--s22d-radius);
  margin: 1rem 0;
  font-size: 1.5rem;
}
.s22d-cta:hover { text-decoration: none; opacity: 0.95; }
.s22d-link-text {
  color: var(--s22d-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Game grid ---------- */
.s22d-cat-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--s22d-text);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.6rem;
}
.s22d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.s22d-game {
  display: block;
  background: #4a4a4a;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  min-height: 44px;
}
.s22d-game:hover { transform: translateY(-2px); text-decoration: none; }
.s22d-game img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}
.s22d-game-name {
  display: block;
  color: var(--s22d-text);
  font-size: 1rem;
  padding: 0.3rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info / feature cards ---------- */
.s22d-card {
  background: #404040;
  border-radius: 10px;
  padding: 0.9rem;
  margin: 0.6rem 0;
}
.s22d-feature-list {
  list-style: none;
  margin: 0.5rem 0;
}
.s22d-feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  color: #eee;
  font-size: 1.35rem;
}
.s22d-feature-list li:last-child { border-bottom: none; }
.s22d-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.s22d-badge {
  background: var(--s22d-primary-dark);
  color: var(--s22d-white);
  border-radius: 14px;
  padding: 0.3rem 0.8rem;
  font-size: 1.15rem;
}

/* ---------- Testimonials ---------- */
.s22d-testimonial {
  background: #404040;
  border-left: 3px solid var(--s22d-accent);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  margin: 0.5rem 0;
  font-style: italic;
  color: #f0f0f0;
  font-size: 1.3rem;
}
.s22d-testimonial span { display: block; margin-top: 0.3rem; color: var(--s22d-text-soft); font-size: 1.15rem; font-style: normal; }

/* ---------- Payment methods ---------- */
.s22d-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.6rem 0;
}
.s22d-pay-item {
  background: #4a4a4a;
  border-radius: 8px;
  padding: 0.7rem 0.3rem;
  text-align: center;
  color: var(--s22d-text);
  font-size: 1.1rem;
}
.s22d-pay-item i { font-size: 2rem; color: var(--s22d-accent); display: block; margin-bottom: 0.3rem; }

/* ---------- Winners ---------- */
.s22d-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background: #404040;
  border-radius: 6px;
  margin: 0.3rem 0;
  font-size: 1.25rem;
}
.s22d-winner b { color: var(--s22d-accent); }

/* ---------- Footer ---------- */
.s22d-footer {
  background: #1f1f1f;
  padding: 1.4rem 0.9rem 2rem;
  color: var(--s22d-text-soft);
  font-size: 1.2rem;
  border-top: 3px solid var(--s22d-primary);
}
.s22d-footer h3 { color: var(--s22d-text); margin-bottom: 0.5rem; font-size: 1.4rem; }
.s22d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.5rem 0;
}
.s22d-footer-links a {
  color: var(--s22d-text);
  font-size: 1.15rem;
}
.s22d-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.s22d-footer-cta a {
  flex: 1 1 45%;
  text-align: center;
  background: var(--s22d-primary-dark);
  color: var(--s22d-white);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 1.15rem;
}
.s22d-footer-cta a:hover { background: var(--s22d-primary); text-decoration: none; }
.s22d-copy {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 1.1rem;
  color: #777;
}

/* ---------- Mobile bottom nav ---------- */
.s22d-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--s22d-primary-dark);
  border-top: 2px solid var(--s22d-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.s22d-bnav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--s22d-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 0.2rem;
}
.s22d-bnav-btn i,
.s22d-bnav-btn .material-icons-outlined,
.s22d-bnav-btn .material-icons {
  font-size: 22px;
}
.s22d-bnav-btn:hover { transform: scale(1.08); color: var(--s22d-accent); }
.s22d-bnav-btn.s22d-current { color: var(--s22d-accent); }
.s22d-bnav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: #ff4d4d;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0 4px;
  min-width: 14px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .s22d-bnav { display: none; }
  main.s22d-main { padding-bottom: 16px; }
  body { max-width: 430px; }
}

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