/* em77 layout - base files
   All custom classes use s93e- prefix
   Comments in English per project convention */

:root {
  --s93e-primary: #FFDEAD;
  --s93e-bg: #0D1117;
  --s93e-bg-2: #161b22;
  --s93e-bg-3: #1f2530;
  --s93e-text: #F5DEB3;
  --s93e-muted: #6C757D;
  --s93e-accent: #FFDEAD;
  --s93e-accent-2: #f3c98a;
  --s93e-gold: #F5DEB3;
  --s93e-danger: #e0556a;
  --s93e-success: #4caf7d;
  --s93e-radius: 12px;
  --s93e-radius-sm: 8px;
  --s93e-header-h: 56px;
  --s93e-bottom-h: 60px;
  --s93e-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s93e-bg);
  color: var(--s93e-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--s93e-accent); text-decoration: none; }
a:hover { color: var(--s93e-accent-2); }

/* Container & layout */
.s93e-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s93e-bg);
  min-height: 100vh;
  position: relative;
}

.s93e-container {
  width: 100%;
  padding: 0 1.2rem;
}

main.s93e-main { padding-bottom: 80px; }

/* Header */
.s93e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s93e-header-h);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(245, 222, 179, 0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.s93e-header-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  background: rgba(13, 17, 23, 0.99);
}

.s93e-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s93e-primary);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.s93e-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}

.s93e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s93e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1.2rem;
  border: none;
  border-radius: var(--s93e-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  color: #0D1117;
  background: var(--s93e-primary);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.s93e-btn:hover { transform: translateY(-1px); color: #0D1117; }
.s93e-btn:active { transform: scale(0.97); }

.s93e-btn-outline {
  background: transparent;
  color: var(--s93e-primary);
  border: 1px solid var(--s93e-primary);
}
.s93e-btn-outline:hover { color: var(--s93e-accent-2); }

.s93e-btn-block {
  width: 100%;
  display: flex;
  padding: 1rem;
  font-size: 1.5rem;
}

.s93e-btn-lg { min-height: 48px; padding: 0 1.6rem; font-size: 1.4rem; }

.s93e-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--s93e-radius-sm);
  background: rgba(245, 222, 179, 0.08);
  color: var(--s93e-text);
  cursor: pointer;
  border: none;
  font-size: 1.8rem;
}

/* Mobile menu (slide-in) */
.s93e-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--s93e-bg-2);
  z-index: 9999;
  padding: 1.6rem 1.2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
}

.s93e-menu-open { right: 0; }

.s93e-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 222, 179, 0.1);
}

.s93e-menu-list { list-style: none; padding: 0; margin: 0; }
.s93e-menu-list li { margin-bottom: 0.4rem; }
.s93e-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  border-radius: var(--s93e-radius-sm);
  color: var(--s93e-text);
  font-size: 1.4rem;
}
.s93e-menu-list a:hover {
  background: rgba(255, 222, 173, 0.08);
  color: var(--s93e-primary);
}

.s93e-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.s93e-overlay-active { opacity: 1; visibility: visible; }

/* Carousel */
.s93e-hero {
  margin-top: calc(var(--s93e-header-h) + 1rem);
  padding: 0 1.2rem;
}

.s93e-carousel {
  position: relative;
  border-radius: var(--s93e-radius);
  overflow: hidden;
  box-shadow: var(--s93e-shadow);
  background: var(--s93e-bg-2);
}

.s93e-slides { position: relative; width: 100%; height: 180px; }
.s93e-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s93e-slide img { width: 100%; height: 100%; object-fit: cover; }
.s93e-slide-active { opacity: 1; }

.s93e-slide-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(13, 17, 23, 0.7);
  color: var(--s93e-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--s93e-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
}

.s93e-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.65);
  color: var(--s93e-primary);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s93e-carousel-arrow:hover { background: rgba(13, 17, 23, 0.85); }
.s93e-carousel-prev { left: 0.6rem; }
.s93e-carousel-next { right: 0.6rem; }

.s93e-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}
.s93e-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  cursor: pointer;
  border: none;
}
.s93e-dot-active { background: var(--s93e-primary); width: 18px; border-radius: 4px; }

/* Sections */
.s93e-section {
  padding: 1.6rem 1.2rem;
}

.s93e-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s93e-primary);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.s93e-section-sub {
  color: var(--s93e-muted);
  font-size: 1.3rem;
  margin: 0 0 1.2rem;
}

.s93e-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--s93e-primary);
  margin: 1.2rem 0 0.6rem;
  line-height: 1.25;
}

.s93e-lead {
  font-size: 1.4rem;
  color: var(--s93e-text);
  margin: 0 0 1.2rem;
}

/* Filter chips */
.s93e-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.s93e-filter-bar::-webkit-scrollbar { display: none; }

.s93e-filter-btn {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background: var(--s93e-bg-2);
  color: var(--s93e-text);
  border: 1px solid rgba(245, 222, 179, 0.1);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.s93e-filter-active {
  background: var(--s93e-primary);
  color: #0D1117;
  border-color: var(--s93e-primary);
  font-weight: 600;
}

/* Game grid */
.s93e-game-group { margin-bottom: 1.6rem; }
.s93e-game-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s93e-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(245, 222, 179, 0.1);
}

.s93e-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.s93e-card {
  background: var(--s93e-bg-2);
  border-radius: var(--s93e-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(245, 222, 179, 0.06);
}
.s93e-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.s93e-card:active { transform: scale(0.97); }

.s93e-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--s93e-bg-3);
}
.s93e-card-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.05rem;
  color: var(--s93e-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Cards / panels */
.s93e-panel {
  background: var(--s93e-bg-2);
  border-radius: var(--s93e-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(245, 222, 179, 0.06);
}

.s93e-panel h2,
.s93e-panel h3 { color: var(--s93e-primary); margin: 0 0 0.6rem; }
.s93e-panel h2 { font-size: 1.8rem; }
.s93e-panel h3 { font-size: 1.5rem; }
.s93e-panel p { margin: 0 0 0.8rem; font-size: 1.35rem; color: var(--s93e-text); }

.s93e-list { padding-left: 1.4rem; margin: 0; }
.s93e-list li { margin-bottom: 0.5rem; font-size: 1.3rem; }

.s93e-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.s93e-steps li {
  position: relative;
  padding: 0.6rem 0.6rem 0.6rem 3rem;
  margin-bottom: 0.6rem;
  background: var(--s93e-bg-3);
  border-radius: var(--s93e-radius-sm);
  font-size: 1.3rem;
  counter-increment: step;
}
.s93e-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem; top: 50%;
  transform: translateY(-50%);
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--s93e-primary);
  color: #0D1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Promo banner */
.s93e-promo {
  background: linear-gradient(135deg, #FFDEAD 0%, #F5DEB3 100%);
  color: #0D1117;
  border-radius: var(--s93e-radius);
  padding: 1.4rem;
  margin: 1.2rem 0;
  text-align: center;
}
.s93e-promo h3 { margin: 0 0 0.4rem; color: #0D1117; font-size: 1.7rem; }
.s93e-promo p { margin: 0 0 1rem; font-size: 1.3rem; color: #2a1f12; }
.s93e-promo .s93e-btn { background: #0D1117; color: var(--s93e-primary); }
.s93e-promo .s93e-btn:hover { color: var(--s93e-primary); }

/* Inline text promo link */
.s93e-text-link {
  color: var(--s93e-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Testimonials */
.s93e-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.s93e-testimonial {
  background: var(--s93e-bg-3);
  border-radius: var(--s93e-radius-sm);
  padding: 1rem;
  font-size: 1.25rem;
  border-left: 3px solid var(--s93e-primary);
}
.s93e-testimonial .s93e-author {
  display: block;
  margin-top: 0.5rem;
  color: var(--s93e-muted);
  font-size: 1.1rem;
}

/* Payment / winners / badges */
.s93e-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.s93e-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--s93e-bg-3);
  color: var(--s93e-text);
  font-size: 1.15rem;
  border: 1px solid rgba(245, 222, 179, 0.08);
}

.s93e-winners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.s93e-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--s93e-bg-3);
  padding: 0.8rem 1rem;
  border-radius: var(--s93e-radius-sm);
  font-size: 1.25rem;
}
.s93e-winner .s93e-amount { color: var(--s93e-primary); font-weight: 700; }

/* RTP compact table */
.s93e-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.s93e-rtp-table th, .s93e-rtp-table td {
  padding: 0.6rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(245, 222, 179, 0.08);
}
.s93e-rtp-table th { color: var(--s93e-primary); font-size: 1.2rem; }
.s93e-rtp-table td { color: var(--s93e-text); }
.s93e-rtp-table .s93e-rtp-high { color: var(--s93e-success); font-weight: 700; }

/* CTA */
.s93e-cta {
  text-align: center;
  padding: 1.8rem 1.2rem;
  background: linear-gradient(135deg, rgba(255, 222, 173, 0.15), rgba(245, 222, 179, 0.05));
  border-radius: var(--s93e-radius);
  margin: 1.2rem 0;
  border: 1px solid rgba(255, 222, 173, 0.2);
}
.s93e-cta h3 { color: var(--s93e-primary); margin: 0 0 0.6rem; font-size: 1.8rem; }
.s93e-cta p { color: var(--s93e-text); margin: 0 0 1rem; font-size: 1.3rem; }

/* FAQ */
.s93e-faq-item {
  background: var(--s93e-bg-2);
  border-radius: var(--s93e-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(245, 222, 179, 0.06);
}
.s93e-faq-q {
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s93e-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s93e-faq-a {
  padding: 0 1rem 1rem;
  font-size: 1.25rem;
  color: var(--s93e-text);
}

/* Footer */
.s93e-footer {
  background: var(--s93e-bg-2);
  padding: 1.8rem 1.2rem 2rem;
  border-top: 1px solid rgba(245, 222, 179, 0.08);
}

.s93e-footer-brand {
  color: var(--s93e-text);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.s93e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
}
.s93e-footer-links a {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.5rem 0.8rem;
  background: var(--s93e-bg-3);
  border-radius: var(--s93e-radius-sm);
  color: var(--s93e-text);
  font-size: 1.15rem;
}
.s93e-footer-links a:hover { background: rgba(255, 222, 173, 0.1); color: var(--s93e-primary); }

.s93e-footer-copy {
  text-align: center;
  color: var(--s93e-muted);
  font-size: 1.1rem;
  border-top: 1px solid rgba(245, 222, 179, 0.08);
  padding-top: 1rem;
}

/* Bottom nav */
.s93e-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s93e-bottom-h);
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid rgba(245, 222, 179, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}

.s93e-bottom-nav-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: none;
  color: var(--s93e-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.s93e-bottom-nav-btn i,
.s93e-bottom-nav-btn .material-icons-outlined,
.s93e-bottom-nav-btn .material-icons-two-tone,
.s93e-bottom-nav-btn .ti,
.s93e-bottom-nav-btn .bi,
.s93e-bottom-nav-btn .icon,
.s93e-bottom-nav-btn .ion-icon {
  font-size: 22px;
}
.s93e-bottom-nav-btn:hover { color: var(--s93e-text); }
.s93e-bottom-nav-btn:active { transform: scale(0.92); }
.s93e-bottom-nav-btn.s93e-nav-active { color: var(--s93e-primary); }
.s93e-bottom-nav-btn.s93e-nav-active i { transform: translateY(-1px); }

.s93e-nav-badge {
  position: absolute;
  top: 6px; right: 18px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--s93e-danger);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Utilities */
.s93e-mt-1 { margin-top: 0.6rem; }
.s93e-mt-2 { margin-top: 1.2rem; }
.s93e-mb-2 { margin-bottom: 1.2rem; }
.s93e-text-center { text-align: center; }
.s93e-hidden { display: none !important; }
.s93e-flex { display: flex; gap: 0.6rem; align-items: center; }

/* Desktop adjustments */
@media (min-width: 769px) {
  .s93e-bottom-nav { display: none; }
  main.s93e-main { padding-bottom: 1.2rem; }
  .s93e-wrapper { max-width: 720px; }
  .s93e-header { max-width: 720px; }
  .s93e-grid { grid-template-columns: repeat(6, 1fr); }
  .s93e-slides { height: 280px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .s93e-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
