/* Elephant Casino Game - base stylesheet
 * Prefix: s05b-
 * Palette: #A9A9A9 | #DEB887 | #FFE135 | #D4AF37 | #273746 | #FA8072
 * Dark colors as backgrounds, light colors as text.
 */

:root {
  --s05b-primary: #D4AF37;      /* Gold */
  --s05b-accent: #FA8072;       /* Salmon */
  --s05b-gold-soft: #DEB887;    /* Burlywood */
  --s05b-yellow: #FFE135;       /* Bright yellow */
  --s05b-grey: #A9A9A9;         /* Dark grey */
  --s05b-bg: #273746;           /* Deep navy (dark background) */
  --s05b-bg-2: #1f2c38;         /* Darker panel */
  --s05b-text: #F5E9C9;         /* Warm light text */
  --s05b-text-dim: #C9B98A;
  --s05b-white: #ffffff;
  --s05b-shadow: 0 2px 10px rgba(0,0,0,0.35);
  --s05b-radius: 1.2rem;
  --s05b-header-h: 5.6rem;
  --s05b-bottomnav-h: 6.2rem;
}

* { 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(--s05b-bg);
  color: var(--s05b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--s05b-primary); text-decoration: none; }
a:hover { color: var(--s05b-yellow); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.s05b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1f2c38 0%, #273746 60%, #2e3f4f 100%);
  border-bottom: 2px solid var(--s05b-primary);
  box-shadow: var(--s05b-shadow);
}
.s05b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--s05b-header-h);
  padding: 0 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}
.s05b-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.s05b-logo img {
  width: 2.8rem; height: 2.8rem; border-radius: 0.6rem;
  border: 1px solid var(--s05b-primary);
}
.s05b-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--s05b-yellow);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s05b-logo-text span { color: var(--s05b-primary); }

.s05b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s05b-menu-btn {
  background: transparent;
  border: 0;
  color: var(--s05b-text);
  font-size: 2.2rem;
  width: 4.4rem; height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.s05b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.s05b-btn:active { transform: scale(0.96); }
.s05b-btn-register {
  background: linear-gradient(135deg, #D4AF37 0%, #FFE135 100%);
  color: #273746;
}
.s05b-btn-login {
  background: transparent;
  color: var(--s05b-yellow);
  border: 1.5px solid var(--s05b-primary);
}

/* Expandable nav menu */
.s05b-nav-menu {
  position: fixed;
  top: var(--s05b-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s05b-bg-2);
  border-bottom: 2px solid var(--s05b-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 999;
}
.s05b-nav-menu.s05b-open { max-height: 60rem; }
.s05b-nav-menu ul { list-style: none; padding: 0.6rem 0; }
.s05b-nav-menu li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  color: var(--s05b-text);
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.s05b-nav-menu li a i { color: var(--s05b-primary); width: 2.4rem; text-align: center; }
.s05b-nav-menu li a:hover { background: rgba(212,175,55,0.08); color: var(--s05b-yellow); }

/* ===== Layout ===== */
.s05b-wrapper { padding-top: var(--s05b-header-h); }
.s05b-container { padding: 1.2rem 1.2rem; }
main { display: block; }

/* ===== Hero carousel ===== */
.s05b-carousel {
  position: relative;
  margin: 1.2rem;
  border-radius: var(--s05b-radius);
  overflow: hidden;
  box-shadow: var(--s05b-shadow);
  background: var(--s05b-bg-2);
}
.s05b-slides { position: relative; }
.s05b-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.s05b-slide.s05b-active { display: block; }
.s05b-slide img { width: 100%; height: auto; }
.s05b-slide-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(transparent, rgba(39,55,70,0.85));
  color: var(--s05b-yellow);
  font-weight: 800;
  font-size: 1.6rem;
  padding: 1.6rem 1rem 0.8rem;
  border-radius: 0 0 1rem 1rem;
}
.s05b-dots {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.6rem;
}
.s05b-dot {
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: rgba(245,233,201,0.5);
  border: 0; cursor: pointer;
}
.s05b-dot.s05b-active { background: var(--s05b-primary); }

/* ===== Headings ===== */
.s05b-section { margin: 1.6rem 0; }
.s05b-h1 {
  font-size: 2rem;
  color: var(--s05b-yellow);
  margin: 1.2rem 1.2rem 0.8rem;
  line-height: 2.4rem;
  font-weight: 800;
}
.s05b-h2 {
  font-size: 1.7rem;
  color: var(--s05b-primary);
  margin: 1.8rem 1.2rem 0.8rem;
  font-weight: 800;
  border-left: 4px solid var(--s05b-accent);
  padding-left: 0.8rem;
}
.s05b-h3 {
  font-size: 1.4rem;
  color: var(--s05b-gold-soft);
  margin: 1.2rem 1.2rem 0.6rem;
  font-weight: 700;
}
.s05b-p { margin: 0.6rem 1.2rem; font-size: 1.35rem; color: var(--s05b-text); line-height: 1.5rem; }
.s05b-intro {
  background: var(--s05b-bg-2);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--s05b-radius);
  padding: 1.2rem;
  margin: 1.2rem;
  color: var(--s05b-text);
  font-size: 1.32rem;
}

/* ===== Game grid ===== */
.s05b-gamesection { margin: 1.2rem; }
.s05b-gamesection h3 {
  color: var(--s05b-yellow);
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.s05b-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s05b-card {
  background: var(--s05b-bg-2);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.s05b-card:active { transform: scale(0.95); box-shadow: 0 0 12px rgba(212,175,55,0.5); }
.s05b-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: #11181f;
}
.s05b-card-name {
  font-size: 1.05rem;
  color: var(--s05b-text);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Promo link blocks ===== */
.s05b-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--s05b-yellow);
  font-weight: 800;
  text-decoration: underline;
  font-size: 1.35rem;
}
.s05b-promo:hover { color: var(--s05b-primary); }
.s05b-cta {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin: 1.2rem; justify-content: center;
}
.s05b-cta .s05b-btn { min-width: 14rem; }

/* ===== Feature / info modules ===== */
.s05b-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem;
}
.s05b-feature {
  background: var(--s05b-bg-2);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
.s05b-feature i { color: var(--s05b-primary); font-size: 2.4rem; }
.s05b-feature h4 { color: var(--s05b-yellow); font-size: 1.3rem; margin: 0.4rem 0; }
.s05b-feature p { color: var(--s05b-text-dim); font-size: 1.15rem; line-height: 1.4rem; }

.s05b-list { margin: 0.6rem 1.2rem 1rem 2.4rem; }
.s05b-list li { margin: 0.4rem 0; font-size: 1.3rem; color: var(--s05b-text); line-height: 1.5rem; }

/* FAQ */
.s05b-faq-item {
  background: var(--s05b-bg-2);
  border-radius: 1rem;
  margin: 0.8rem 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(212,175,55,0.15);
}
.s05b-faq-item h4 { color: var(--s05b-yellow); font-size: 1.3rem; margin-bottom: 0.4rem; }
.s05b-faq-item p { color: var(--s05b-text); font-size: 1.25rem; line-height: 1.45rem; }

/* Testimonials */
.s05b-testimonials { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1.2rem; }
.s05b-testimonial {
  background: var(--s05b-bg-2);
  border-left: 4px solid var(--s05b-accent);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
}
.s05b-testimonial .s05b-stars { color: var(--s05b-yellow); }
.s05b-testimonial p { color: var(--s05b-text); font-size: 1.25rem; margin: 0.4rem 0; }
.s05b-testimonial cite { color: var(--s05b-gold-soft); font-style: normal; font-size: 1.15rem; }

/* Payment methods */
.s05b-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem; }
.s05b-payment {
  background: var(--s05b-bg-2);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--s05b-text);
  display: flex; align-items: center; gap: 0.4rem;
}
.s05b-payment i { color: var(--s05b-primary); }

/* Winners showcase */
.s05b-winners { margin: 1.2rem; }
.s05b-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--s05b-bg-2);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(212,175,55,0.15);
}
.s05b-winner .s05b-wname { color: var(--s05b-yellow); font-weight: 700; font-size: 1.2rem; }
.s05b-winner .s05b-wamt { color: var(--s05b-accent); font-weight: 800; font-size: 1.3rem; }

/* RTP compact table */
.s05b-rtp-table { width: 100%; margin: 1.2rem; border-collapse: collapse; font-size: 1.15rem; }
.s05b-rtp-table th { color: var(--s05b-yellow); text-align: left; padding: 0.5rem; border-bottom: 2px solid var(--s05b-primary); }
.s05b-rtp-table td { padding: 0.5rem; border-bottom: 1px solid rgba(212,175,55,0.15); color: var(--s05b-text); }
.s05b-rtp-table td.s05b-num { color: var(--s05b-accent); font-weight: 700; }

/* App download CTA */
.s05b-appcta {
  background: linear-gradient(135deg, #D4AF37 0%, #FFE135 100%);
  color: #273746;
  border-radius: 1.2rem;
  padding: 1.4rem 1.2rem;
  margin: 1.2rem;
  text-align: center;
}
.s05b-appcta h3 { color: #273746; margin: 0 0 0.4rem; }
.s05b-appcta p { color: #2e3f4f; font-size: 1.25rem; margin-bottom: 0.8rem; }
.s05b-appcta .s05b-btn { background: #273746; color: var(--s05b-yellow); }

/* ===== Footer ===== */
.s05b-footer {
  background: var(--s05b-bg-2);
  border-top: 2px solid var(--s05b-primary);
  padding: 1.6rem 1.2rem;
  margin-top: 1.6rem;
  color: var(--s05b-text-dim);
  font-size: 1.2rem;
}
.s05b-footer-brand { color: var(--s05b-text); margin-bottom: 0.8rem; line-height: 1.5rem; }
.s05b-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  margin: 0.8rem 0;
}
.s05b-footer-links a { color: var(--s05b-gold-soft); font-size: 1.15rem; }
.s05b-footer-links a:hover { color: var(--s05b-yellow); }
.s05b-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 1rem; }
.s05b-footer-promos .s05b-btn { min-height: 3.2rem; font-size: 1.15rem; }
.s05b-copyright { margin-top: 0.6rem; color: var(--s05b-grey); font-size: 1.1rem; }

/* ===== Mobile bottom navigation ===== */
.s05b-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s05b-bottomnav-h);
  background: linear-gradient(180deg, #2e3f4f 0%, #1f2c38 100%);
  border-top: 2px solid var(--s05b-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.s05b-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: 0;
  color: var(--s05b-text-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  text-decoration: none;
}
.s05b-bottomnav-btn i { font-size: 2.2rem; }
.s05b-bottomnav-btn .material-icons-outlined { font-size: 2.2rem; }
.s05b-bottomnav-btn:active { transform: scale(0.9); }
.s05b-bottomnav-btn.s05b-active { color: var(--s05b-yellow); }
.s05b-bottomnav-btn.s05b-active i { color: var(--s05b-primary); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .s05b-bottomnav { display: none; }
}

/* Mobile: bottom padding clearance for main content */
@media (max-width: 768px) {
  main, .s05b-wrapper { padding-bottom: calc(var(--s05b-bottomnav-h) + 1rem); }
}

/* Accessibility focus */
.s05b-btn:focus-visible, .s05b-card:focus-visible, .s05b-bottomnav-btn:focus-visible {
  outline: 2px solid var(--s05b-yellow);
  outline-offset: 2px;
}
