/**
 * S5 Arena - Main Stylesheet
 * All classes use s4ec- prefix for namespace isolation
 * Color palette: #DEB887 | #FFE4B5 | #6F4E37 | #2C3E50
 */

/* CSS Variables */
:root {
  --s4ec-primary: #DEB887;
  --s4ec-secondary: #FFE4B5;
  --s4ec-accent: #6F4E37;
  --s4ec-dark: #2C3E50;
  --s4ec-bg: #1a2332;
  --s4ec-bg-card: #243447;
  --s4ec-bg-deep: #141d29;
  --s4ec-text: #FFE4B5;
  --s4ec-text-light: #f5f0e8;
  --s4ec-text-muted: #a89880;
  --s4ec-border: #3a4f66;
  --s4ec-gold: #DEB887;
  --s4ec-gold-light: #f0d8a0;
  --s4ec-brown: #6F4E37;
  --s4ec-success: #4caf50;
  --s4ec-radius: 0.8rem;
  --s4ec-radius-sm: 0.4rem;
  --s4ec-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --s4ec-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--s4ec-bg);
  color: var(--s4ec-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s4ec-gold); text-decoration: none; transition: var(--s4ec-transition); }
a:hover { color: var(--s4ec-gold-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Container */
.s4ec-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.s4ec-wrapper { width: 100%; position: relative; }

/* Header */
.s4ec-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s4ec-dark), #1e2d3d);
  border-bottom: 2px solid var(--s4ec-gold);
  padding: 0;
  height: 5.6rem;
}
.s4ec-header-inner {
  max-width: 430px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 0 1.2rem; height: 100%;
}
.s4ec-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.s4ec-logo-area img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.s4ec-logo-text { color: var(--s4ec-gold); font-size: 1.8rem; font-weight: 800; letter-spacing: 0.5px; }
.s4ec-header-btns { display: flex; align-items: center; gap: 0.6rem; }
.s4ec-btn-register, .s4ec-btn-login {
  padding: 0.6rem 1.4rem; border-radius: 2rem; font-size: 1.3rem;
  font-weight: 700; cursor: pointer; border: none; transition: var(--s4ec-transition);
  min-height: 3.6rem; min-width: 7rem;
}
.s4ec-btn-register {
  background: linear-gradient(135deg, var(--s4ec-gold), #c9a05c);
  color: var(--s4ec-dark);
}
.s4ec-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(222,184,135,0.5); }
.s4ec-btn-login {
  background: transparent; color: var(--s4ec-gold);
  border: 2px solid var(--s4ec-gold);
}
.s4ec-btn-login:hover { background: rgba(222,184,135,0.15); }
.s4ec-menu-toggle {
  background: none; border: none; color: var(--s4ec-gold);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.s4ec-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.s4ec-overlay-active { display: block; }
.s4ec-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: linear-gradient(180deg, var(--s4ec-dark), #1a2530);
  z-index: 9999; transition: right 0.3s ease; padding: 2rem 0;
  overflow-y: auto; border-left: 2px solid var(--s4ec-gold);
}
.s4ec-menu-active { right: 0; }
.s4ec-mobile-menu .s4ec-menu-header {
  padding: 0 1.6rem 1.6rem; border-bottom: 1px solid var(--s4ec-border);
  display: flex; justify-content: space-between; align-items: center;
}
.s4ec-mobile-menu .s4ec-menu-title { color: var(--s4ec-gold); font-size: 1.8rem; font-weight: 700; }
.s4ec-mobile-menu .s4ec-menu-close {
  background: none; border: none; color: var(--s4ec-text-muted);
  font-size: 2.4rem; cursor: pointer;
}
.s4ec-mobile-menu ul { padding: 1rem 0; }
.s4ec-mobile-menu li a {
  display: block; padding: 1.2rem 1.6rem; color: var(--s4ec-text);
  font-size: 1.5rem; transition: var(--s4ec-transition); border-left: 3px solid transparent;
}
.s4ec-mobile-menu li a:hover, .s4ec-mobile-menu li a.s4ec-active-link {
  background: rgba(222,184,135,0.1); color: var(--s4ec-gold);
  border-left-color: var(--s4ec-gold);
}

/* Main Content */
.s4ec-main { padding-top: 5.6rem; }
@media (max-width: 768px) {
  .s4ec-main { padding-bottom: 80px; }
}

/* Carousel */
.s4ec-carousel { position: relative; overflow: hidden; width: 100%; border-radius: var(--s4ec-radius); }
.s4ec-slide { display: none; width: 100%; cursor: pointer; }
.s4ec-slide img { width: 100%; height: auto; min-height: 180px; object-fit: cover; border-radius: var(--s4ec-radius); }
.s4ec-dots { text-align: center; padding: 0.8rem 0; display: flex; justify-content: center; gap: 0.6rem; }
.s4ec-dot {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--s4ec-border); cursor: pointer; border: none; transition: var(--s4ec-transition);
}
.s4ec-dot-active { background: var(--s4ec-gold); transform: scale(1.2); }

/* Section */
.s4ec-section { padding: 2rem 0; }
.s4ec-section-title {
  font-size: 2rem; font-weight: 800; color: var(--s4ec-gold);
  margin-bottom: 1.4rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--s4ec-accent);
  display: flex; align-items: center; gap: 0.8rem;
}
.s4ec-section-title i, .s4ec-section-title .material-icons { font-size: 2.2rem; }
.s4ec-subtitle {
  font-size: 1.7rem; font-weight: 700; color: var(--s4ec-gold-light);
  margin: 1.6rem 0 1rem;
}

/* Game Grid */
.s4ec-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 360px) { .s4ec-game-grid { grid-template-columns: repeat(3, 1fr); } }
.s4ec-game-item {
  text-align: center; cursor: pointer; transition: var(--s4ec-transition);
  border-radius: var(--s4ec-radius-sm); padding: 0.6rem;
}
.s4ec-game-item:hover { transform: translateY(-3px); background: rgba(222,184,135,0.08); }
.s4ec-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--s4ec-radius-sm); margin-bottom: 0.4rem;
  border: 2px solid var(--s4ec-border);
}
.s4ec-game-item:hover img { border-color: var(--s4ec-gold); }
.s4ec-game-name {
  font-size: 1.1rem; color: var(--s4ec-text-light); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Category Label */
.s4ec-cat-label {
  font-size: 1.5rem; font-weight: 700; color: var(--s4ec-primary);
  margin: 1.8rem 0 1rem; padding-left: 0.6rem;
  border-left: 4px solid var(--s4ec-gold);
}

/* Cards */
.s4ec-card {
  background: var(--s4ec-bg-card); border-radius: var(--s4ec-radius);
  padding: 1.6rem; margin-bottom: 1.4rem; border: 1px solid var(--s4ec-border);
  box-shadow: var(--s4ec-shadow);
}
.s4ec-card h3 { color: var(--s4ec-gold); font-size: 1.6rem; margin-bottom: 0.8rem; }
.s4ec-card p { color: var(--s4ec-text-muted); font-size: 1.4rem; line-height: 1.6; }

/* CTA / Promo Link */
.s4ec-cta {
  display: inline-block; padding: 1.2rem 3rem; border-radius: 3rem;
  background: linear-gradient(135deg, var(--s4ec-gold), #c9a05c);
  color: var(--s4ec-dark); font-weight: 800; font-size: 1.6rem;
  cursor: pointer; border: none; transition: var(--s4ec-transition);
  text-align: center; min-height: 4.4rem; line-height: 2rem;
}
.s4ec-cta:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(222,184,135,0.4); }
.s4ec-cta-outline {
  display: inline-block; padding: 1rem 2.4rem; border-radius: 3rem;
  border: 2px solid var(--s4ec-gold); color: var(--s4ec-gold);
  font-weight: 700; font-size: 1.4rem; cursor: pointer;
  background: transparent; transition: var(--s4ec-transition);
  text-align: center;
}
.s4ec-cta-outline:hover { background: rgba(222,184,135,0.15); }

/* Promo text link */
.s4ec-promo-link {
  color: var(--s4ec-gold); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: var(--s4ec-transition);
}
.s4ec-promo-link:hover { color: var(--s4ec-gold-light); }

/* Footer */
.s4ec-footer {
  background: linear-gradient(180deg, var(--s4ec-bg-deep), #0e1520);
  padding: 2.4rem 0 1.6rem; border-top: 2px solid var(--s4ec-accent);
  margin-top: 2rem;
}
.s4ec-footer-brand { text-align: center; margin-bottom: 1.6rem; }
.s4ec-footer-brand p { color: var(--s4ec-text-muted); font-size: 1.3rem; line-height: 1.6; max-width: 360px; margin: 0 auto; }
.s4ec-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 1.6rem; }
.s4ec-footer-links a {
  padding: 0.6rem 1.2rem; background: rgba(222,184,135,0.1);
  border-radius: 2rem; color: var(--s4ec-text); font-size: 1.2rem;
  transition: var(--s4ec-transition); border: 1px solid var(--s4ec-border);
}
.s4ec-footer-links a:hover { background: var(--s4ec-gold); color: var(--s4ec-dark); }
.s4ec-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.s4ec-footer-nav a { color: var(--s4ec-text-muted); font-size: 1.3rem; }
.s4ec-footer-nav a:hover { color: var(--s4ec-gold); }
.s4ec-footer-copy { text-align: center; color: var(--s4ec-text-muted); font-size: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--s4ec-border); }
.s4ec-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin: 1.4rem 0; align-items: center; }
.s4ec-partners span { color: var(--s4ec-text-muted); font-size: 1.1rem; opacity: 0.7; }

/* Bottom Navigation */
.s4ec-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s4ec-dark), #1e2d3d);
  border-top: 2px solid var(--s4ec-gold);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0 0.4rem;
}
.s4ec-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.4rem; background: none; border: none;
  color: var(--s4ec-text-muted); cursor: pointer; transition: var(--s4ec-transition);
  border-radius: 0.8rem; padding: 0.4rem;
}
.s4ec-bottom-btn:hover, .s4ec-bottom-btn.s4ec-active {
  color: var(--s4ec-gold); background: rgba(222,184,135,0.08);
}
.s4ec-bottom-btn i, .s4ec-bottom-btn .material-icons, .s4ec-bottom-btn ion-icon, .s4ec-bottom-btn bi {
  font-size: 2.4rem; margin-bottom: 0.2rem;
}
.s4ec-bottom-btn span { font-size: 1rem; font-weight: 600; }
@media (min-width: 769px) {
  .s4ec-bottom-nav { display: none; }
}

/* Text Utilities */
.s4ec-text-gold { color: var(--s4ec-gold); }
.s4ec-text-brown { color: var(--s4ec-accent); }
.s4ec-text-muted { color: var(--s4ec-text-muted); }
.s4ec-text-light { color: var(--s4ec-text-light); }
.s4ec-text-center { text-align: center; }
.s4ec-fw-bold { font-weight: 700; }
.s4ec-mt-1 { margin-top: 1rem; }
.s4ec-mt-2 { margin-top: 2rem; }
.s4ec-mb-1 { margin-bottom: 1rem; }
.s4ec-mb-2 { margin-bottom: 2rem; }

/* Feature List */
.s4ec-feature-list { list-style: none; padding: 0; }
.s4ec-feature-list li {
  padding: 0.8rem 0; border-bottom: 1px solid rgba(58,79,102,0.5);
  display: flex; align-items: flex-start; gap: 0.8rem; font-size: 1.4rem;
  color: var(--s4ec-text-light);
}
.s4ec-feature-list li:last-child { border-bottom: none; }
.s4ec-feature-list li i { color: var(--s4ec-gold); margin-top: 0.2rem; }

/* Winner Table */
.s4ec-winner-table { width: 100%; border-collapse: collapse; }
.s4ec-winner-table th { background: var(--s4ec-bg-card); color: var(--s4ec-gold); padding: 0.8rem; font-size: 1.2rem; text-align: left; }
.s4ec-winner-table td { padding: 0.6rem 0.8rem; font-size: 1.2rem; border-bottom: 1px solid var(--s4ec-border); color: var(--s4ec-text-light); }

/* Payment Grid */
.s4ec-payment-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.s4ec-payment-item {
  background: var(--s4ec-bg-card); border-radius: var(--s4ec-radius-sm);
  padding: 1rem 1.4rem; text-align: center; border: 1px solid var(--s4ec-border);
  min-width: 8rem;
}
.s4ec-payment-item i { font-size: 2.4rem; color: var(--s4ec-gold); }
.s4ec-payment-item span { display: block; font-size: 1.1rem; color: var(--s4ec-text-muted); margin-top: 0.4rem; }

/* Testimonial */
.s4ec-testimonial {
  background: var(--s4ec-bg-card); border-radius: var(--s4ec-radius);
  padding: 1.4rem; margin-bottom: 1rem; border-left: 4px solid var(--s4ec-gold);
}
.s4ec-testimonial p { font-size: 1.3rem; color: var(--s4ec-text-light); font-style: italic; margin-bottom: 0.6rem; }
.s4ec-testimonial .s4ec-author { font-size: 1.2rem; color: var(--s4ec-gold); font-weight: 700; }

/* Responsive */
@media (min-width: 769px) {
  .s4ec-container { max-width: 430px; }
  .s4ec-main { margin: 0 auto; }
}

/* Help Page Styles */
.s4ec-help-section { margin-bottom: 2rem; }
.s4ec-help-section h2 { color: var(--s4ec-gold); font-size: 1.8rem; margin-bottom: 1rem; }
.s4ec-help-section p { color: var(--s4ec-text-light); font-size: 1.4rem; line-height: 1.7; margin-bottom: 0.8rem; }
.s4ec-step-list { counter-reset: s4ec-counter; padding-left: 0; }
.s4ec-step-list li {
  counter-increment: s4ec-counter; position: relative;
  padding: 0.8rem 0 0.8rem 3.2rem; font-size: 1.4rem; color: var(--s4ec-text-light);
  border-bottom: 1px solid rgba(58,79,102,0.3);
}
.s4ec-step-list li::before {
  content: counter(s4ec-counter); position: absolute; left: 0; top: 0.6rem;
  width: 2.4rem; height: 2.4rem; background: var(--s4ec-gold);
  color: var(--s4ec-dark); border-radius: 50%; text-align: center;
  line-height: 2.4rem; font-weight: 700; font-size: 1.2rem;
}
.s4ec-faq-item { margin-bottom: 1.2rem; }
.s4ec-faq-q { color: var(--s4ec-gold); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.4rem; }
.s4ec-faq-a { color: var(--s4ec-text-light); font-size: 1.3rem; line-height: 1.6; padding-left: 1.2rem; border-left: 3px solid var(--s4ec-accent); }

/* RTP compact */
.s4ec-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s4ec-rtp-item {
  background: var(--s4ec-bg-card); border-radius: var(--s4ec-radius-sm);
  padding: 1rem; text-align: center; border: 1px solid var(--s4ec-border);
}
.s4ec-rtp-item .s4ec-rtp-name { font-size: 1.1rem; color: var(--s4ec-text-muted); margin-bottom: 0.3rem; }
.s4ec-rtp-item .s4ec-rtp-val { font-size: 1.6rem; font-weight: 800; color: var(--s4ec-gold); }
