/* EM777 Core Stylesheet - Prefix: s30f- */
/* Color Palette: #40E0D0 | #2C3E50 | #00FFFF | #34495E | #FF1493 */

:root {
  --s30f-primary: #40E0D0;
  --s30f-secondary: #00FFFF;
  --s30f-accent: #FF1493;
  --s30f-bg-dark: #2C3E50;
  --s30f-bg-darker: #34495E;
  --s30f-bg-card: #1a2634;
  --s30f-text-light: #f0f0f0;
  --s30f-text-muted: #b0bec5;
  --s30f-radius: 8px;
  --s30f-radius-lg: 12px;
  --s30f-header-h: 56px;
  --s30f-bottom-h: 60px;
  font-size: 62.5%;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s30f-bg-dark);
  color: var(--s30f-text-light);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.s30f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s30f-bg-darker), var(--s30f-bg-dark));
  height: var(--s30f-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  border-bottom: 2px solid var(--s30f-primary);
  max-width: 430px; margin: 0 auto;
}
.s30f-logo-area {
  display: flex; align-items: center; gap: 0.8rem; cursor: pointer;
}
.s30f-logo-area img { width: 32px; height: 32px; border-radius: 50%; }
.s30f-logo-text {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(90deg, var(--s30f-primary), var(--s30f-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s30f-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.s30f-btn {
  padding: 0.6rem 1.4rem; border: none; border-radius: var(--s30f-radius);
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: all 0.25s ease; text-decoration: none; display: inline-block;
  min-height: 36px; line-height: 1.8rem;
}
.s30f-btn-register {
  background: linear-gradient(135deg, var(--s30f-accent), #ff4081);
  color: #fff;
}
.s30f-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(255,20,147,0.5); }
.s30f-btn-login {
  background: transparent; color: var(--s30f-primary);
  border: 1.5px solid var(--s30f-primary);
}
.s30f-btn-login:hover { background: rgba(64,224,208,0.1); }
.s30f-menu-btn {
  background: none; border: none; color: var(--s30f-primary);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu */
.s30f-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; transition: opacity 0.3s;
}
.s30f-overlay-active { display: block; }
.s30f-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--s30f-bg-darker); z-index: 9999;
  transition: right 0.35s ease; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.s30f-menu-active { right: 0; }
.s30f-mobile-menu a {
  display: block; padding: 1.2rem 1rem; color: var(--s30f-text-light);
  text-decoration: none; border-bottom: 1px solid rgba(64,224,208,0.15);
  font-size: 1.5rem; transition: all 0.2s;
}
.s30f-mobile-menu a:hover { color: var(--s30f-primary); padding-left: 1.5rem; }
.s30f-menu-close {
  background: none; border: none; color: var(--s30f-accent); font-size: 2.8rem;
  cursor: pointer; position: absolute; top: 1rem; right: 1.2rem;
}
.s30f-menu-title {
  font-size: 1.8rem; color: var(--s30f-primary); margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Main Content */
.s30f-main { padding-top: calc(var(--s30f-header-h) + 1rem); }
@media (max-width: 768px) {
  .s30f-main { padding-bottom: calc(var(--s30f-bottom-h) + 2rem); }
}

/* Banner */
.s30f-banner {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--s30f-radius-lg); margin-bottom: 1.5rem;
}
.s30f-banner-slide {
  display: none; width: 100%; cursor: pointer;
  border-radius: var(--s30f-radius-lg); overflow: hidden;
}
.s30f-slide-active { display: block; }
.s30f-banner-slide img {
  width: 100%; height: auto; display: block;
  border-radius: var(--s30f-radius-lg);
}
.s30f-banner-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 0;
}
.s30f-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--s30f-bg-darker); cursor: pointer;
  transition: all 0.3s;
}
.s30f-dot-active { background: var(--s30f-primary); transform: scale(1.3); }

/* Section Titles */
.s30f-section-title {
  font-size: 2rem; font-weight: 800; margin: 2rem 0 1rem;
  padding-left: 1.2rem; position: relative;
}
.s30f-section-title::before {
  content: ''; position: absolute; left: 0; top: 0.3rem;
  width: 4px; height: 2rem; background: var(--s30f-primary); border-radius: 2px;
}
.s30f-section-title span { color: var(--s30f-primary); }

/* Game Grid */
.s30f-category-label {
  font-size: 1.6rem; font-weight: 700; color: var(--s30f-secondary);
  margin: 1.5rem 0 0.8rem; padding-left: 1rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.s30f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0 1rem;
}
.s30f-game-card {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  border-radius: var(--s30f-radius); overflow: hidden;
  background: var(--s30f-bg-card); padding: 0.5rem;
}
.s30f-game-card:hover { transform: translateY(-2px); }
.s30f-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--s30f-radius); display: block;
}
.s30f-game-name {
  font-size: 1.1rem; margin-top: 0.4rem; color: var(--s30f-text-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}

/* Content Sections */
.s30f-content-section {
  padding: 1.5rem 1.2rem; margin-bottom: 1rem;
  background: var(--s30f-bg-card); border-radius: var(--s30f-radius-lg);
}
.s30f-content-section h2 {
  font-size: 1.8rem; margin-bottom: 1rem; color: var(--s30f-primary);
}
.s30f-content-section h3 {
  font-size: 1.5rem; margin: 1rem 0 0.5rem; color: var(--s30f-secondary);
}
.s30f-content-section p {
  color: var(--s30f-text-muted); line-height: 1.6; margin-bottom: 0.8rem;
  font-size: 1.4rem;
}
.s30f-promo-link {
  color: var(--s30f-accent); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.s30f-promo-link:hover { color: var(--s30f-primary); }
.s30f-internal-link {
  color: var(--s30f-primary); text-decoration: none;
  border-bottom: 1px dashed var(--s30f-primary);
}
.s30f-internal-link:hover { color: var(--s30f-secondary); }

/* Play Now Button */
.s30f-play-btn {
  display: block; width: 100%; max-width: 320px; margin: 1.5rem auto;
  padding: 1.4rem; border: none; border-radius: var(--s30f-radius-lg);
  background: linear-gradient(135deg, var(--s30f-primary), var(--s30f-secondary));
  color: var(--s30f-bg-dark); font-size: 1.8rem; font-weight: 800;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(64,224,208,0.4);
}
.s30f-play-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(64,224,208,0.6); }

/* Stats Grid */
.s30f-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem; margin: 1rem 0;
}
.s30f-stat-card {
  background: var(--s30f-bg-darker); padding: 1rem;
  border-radius: var(--s30f-radius); text-align: center;
  border: 1px solid rgba(64,224,208,0.2);
}
.s30f-stat-value { font-size: 2rem; font-weight: 800; color: var(--s30f-primary); }
.s30f-stat-label { font-size: 1.2rem; color: var(--s30f-text-muted); margin-top: 0.3rem; }

/* Testimonials */
.s30f-testimonial {
  background: var(--s30f-bg-darker); padding: 1.2rem;
  border-radius: var(--s30f-radius); margin-bottom: 0.8rem;
  border-left: 3px solid var(--s30f-primary);
}
.s30f-testimonial-text { font-size: 1.3rem; color: var(--s30f-text-muted); font-style: italic; }
.s30f-testimonial-author { font-size: 1.2rem; color: var(--s30f-primary); margin-top: 0.5rem; font-weight: 600; }

/* Winners */
.s30f-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s30f-winner-game { color: var(--s30f-secondary); font-weight: 600; font-size: 1.3rem; }
.s30f-winner-amount { color: var(--s30f-accent); font-weight: 800; font-size: 1.4rem; }

/* Payment Icons */
.s30f-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.s30f-payment-item {
  background: var(--s30f-bg-darker); padding: 0.8rem 1.2rem;
  border-radius: var(--s30f-radius); font-size: 1.2rem;
  color: var(--s30f-text-muted); border: 1px solid rgba(64,224,208,0.15);
}

/* Footer */
.s30f-footer {
  background: var(--s30f-bg-darker); padding: 2rem 1.2rem 1rem;
  margin-top: 2rem; border-top: 2px solid var(--s30f-primary);
}
.s30f-footer-brand { font-size: 1.3rem; color: var(--s30f-text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.s30f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
}
.s30f-footer-link {
  padding: 0.5rem 1rem; background: var(--s30f-bg-dark);
  border-radius: var(--s30f-radius); font-size: 1.2rem;
  color: var(--s30f-primary); text-decoration: none;
  border: 1px solid rgba(64,224,208,0.2); transition: all 0.2s;
}
.s30f-footer-link:hover { background: rgba(64,224,208,0.1); }
.s30f-footer-copy {
  text-align: center; font-size: 1.1rem; color: rgba(255,255,255,0.4);
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08);
}

/* Bottom Navigation */
.s30f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--s30f-bg-darker), #1a2332);
  border-top: 2px solid var(--s30f-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: var(--s30f-bottom-h);
  max-width: 430px; margin: 0 auto;
}
.s30f-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; cursor: pointer;
  color: var(--s30f-text-muted); transition: all 0.25s;
  border-radius: var(--s30f-radius); padding: 0.3rem;
}
.s30f-bottom-nav-btn:hover { color: var(--s30f-primary); }
.s30f-bottom-nav-btn .s30f-nav-icon { font-size: 2.2rem; line-height: 1; }
.s30f-bottom-nav-btn .s30f-nav-label { font-size: 1rem; margin-top: 0.2rem; }
.s30f-nav-active { color: var(--s30f-primary) !important; }
.s30f-nav-active .s30f-nav-icon { transform: scale(1.1); }

/* Back to Top */
.s30f-back-top {
  position: fixed; bottom: 7rem; right: 1.2rem; z-index: 999;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--s30f-primary); color: var(--s30f-bg-dark);
  border: none; cursor: pointer; font-size: 2rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(64,224,208,0.4);
}

/* Desktop overrides */
@media (min-width: 769px) {
  .s30f-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  body { max-width: 100%; }
}

/* Animations */
@keyframes s30f-fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.s30f-fade-in { animation: s30f-fadeIn 0.4s ease forwards; }

/* Container helper */
.s30f-container { padding: 0 1rem; width: 100%; }
.s30f-wrapper { max-width: 430px; margin: 0 auto; }
