/* 33win06 - Base stylesheet. English comments only. */
/* All custom classes use the "s0df-" prefix. */

:root {
  --s0df-primary: #40E0D0;
  --s0df-secondary: #AFEEEE;
  --s0df-bg: #333333;
  --s0df-bg-deep: #1f2a2e;
  --s0df-text: #AFEEEE;
  --s0df-muted: #6C757D;
  --s0df-dark: #2b2b2b;
  --s0df-accent: #ffd24a;
  --s0df-danger: #ff5b6e;
  --s0df-radius: 12px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
  background: var(--s0df-bg-deep);
  color: var(--s0df-text);
  line-height: 1.5;
  font-size: 1.6rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  -webkit-tap-highlight-color: transparent;
}

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

a { color: var(--s0df-primary); text-decoration: none; }

.s0df-wrapper {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #14201f 0%, #1b2c2c 100%);
}

/* ============ Header ============ */
.s0df-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(90deg, #11201f 0%, #1d3a37 100%);
  border-bottom: 1px solid rgba(64, 224, 208, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.s0df-brand { display: flex; align-items: center; gap: 8px; }
.s0df-brand img { width: 30px; height: 30px; border-radius: 8px; }
.s0df-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s0df-primary);
  letter-spacing: .5px;
}

.s0df-header-actions { display: flex; align-items: center; gap: 8px; }

.s0df-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  min-height: 36px;
}
.s0df-btn:active { transform: scale(0.95); }
.s0df-btn-login { background: transparent; color: var(--s0df-secondary); border: 1px solid var(--s0df-primary); }
.s0df-btn-register { background: linear-gradient(90deg, #40E0D0, #2bb6a5); color: #0d1f1d; }

.s0df-menu-btn {
  background: transparent;
  border: 1px solid rgba(175, 238, 238, 0.35);
  color: var(--s0df-secondary);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ============ Nav menu ============ */
.s0df-nav-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #11201f;
  border-bottom: 1px solid rgba(64, 224, 208, 0.25);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 999;
}
.s0df-nav-menu.s0df-nav-open { max-height: 420px; }
.s0df-nav-menu ul { list-style: none; margin: 0; padding: 8px 12px; }
.s0df-nav-menu li { padding: 10px 4px; border-bottom: 1px dashed rgba(175, 238, 238, 0.12); }
.s0df-nav-menu li:last-child { border-bottom: none; }
.s0df-nav-menu a { color: var(--s0df-text); font-size: 1.4rem; display: block; }
.s0df-nav-menu a:hover { color: var(--s0df-primary); }

/* ============ Hero / carousel ============ */
.s0df-main { padding-top: 64px; padding-bottom: 96px; }

.s0df-hero {
  position: relative;
  margin: 12px;
  border-radius: var(--s0df-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.s0df-slide { display: none; position: relative; }
.s0df-slide.s0df-slide-active { display: block; }
.s0df-slide img { width: 100%; height: 180px; object-fit: cover; }
.s0df-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8));
  color: #fff;
  padding: 22px 14px 10px;
  font-size: 1.3rem;
  font-weight: 600;
}
.s0df-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s0df-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; padding: 0; cursor: pointer;
}
.s0df-dot.s0df-dot-active { background: var(--s0df-primary); }

/* ============ Section ============ */
.s0df-section {
  margin: 18px 12px;
  padding: 14px;
  background: rgba(20, 35, 34, 0.55);
  border: 1px solid rgba(64, 224, 208, 0.15);
  border-radius: var(--s0df-radius);
}
.s0df-section-title {
  font-size: 1.7rem;
  color: var(--s0df-primary);
  margin: 0 0 4px;
  font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.s0df-section-sub { color: var(--s0df-muted); font-size: 1.25rem; margin: 0 0 12px; }

/* ============ Game grid ============ */
.s0df-filter-bar {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.s0df-filter-bar::-webkit-scrollbar { display: none; }
.s0df-filter-btn {
  flex: 0 0 auto;
  background: rgba(64, 224, 208, 0.1);
  border: 1px solid rgba(64, 224, 208, 0.3);
  color: var(--s0df-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}
.s0df-filter-btn.s0df-filter-active {
  background: var(--s0df-primary);
  color: #0d1f1d;
  font-weight: 700;
}

.s0df-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s0df-game-card {
  background: #18302d;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(64,224,208,0.12);
  transition: transform .15s ease;
}
.s0df-game-card:active { transform: scale(0.97); }
.s0df-game-card img { width: 100%; height: 80px; object-fit: cover; }
.s0df-game-name {
  font-size: 1.15rem;
  color: var(--s0df-text);
  padding: 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s0df-cat-tag {
  display: inline-block;
  font-size: 1.05rem;
  background: rgba(64,224,208,0.18);
  color: var(--s0df-primary);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ============ CTA ============ */
.s0df-cta {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #40E0D0, #2bb6a5);
  color: #0d1f1d;
  font-weight: 800;
  padding: 12px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 1.4rem;
}
.s0df-text-link { color: var(--s0df-primary); font-weight: 700; }
.s0df-text-link:hover { text-decoration: underline; }

/* ============ Cards / lists ============ */
.s0df-card {
  background: #18302d;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(64,224,208,0.12);
}
.s0df-card h3 { margin: 0 0 6px; color: var(--s0df-primary); font-size: 1.35rem; }
.s0df-card p { margin: 0; color: var(--s0df-text); font-size: 1.3rem; }

.s0df-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.s0df-feature-item {
  background: rgba(64,224,208,0.08);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.s0df-feature-item i, .s0df-feature-item span.material-icons-outlined {
  font-size: 22px; color: var(--s0df-accent);
}
.s0df-feature-item div { font-size: 1.2rem; margin-top: 4px; }

.s0df-rtp-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(175,238,238,0.12);
  font-size: 1.3rem;
}
.s0df-rtp-row:last-child { border-bottom: none; }
.s0df-rtp-bar {
  height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-top: 4px;
}
.s0df-rtp-bar span { display: block; height: 100%; background: var(--s0df-primary); }

.s0df-testimonial { font-style: italic; color: var(--s0df-secondary); font-size: 1.25rem; margin: 0 0 6px; }
.s0df-testimonial-author { font-size: 1.1rem; color: var(--s0df-muted); }

.s0df-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.s0df-pay-chip {
  background: rgba(64,224,208,0.1);
  border: 1px solid rgba(64,224,208,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.15rem;
  color: var(--s0df-text);
}

.s0df-winner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(175,238,238,0.12);
}
.s0df-winner:last-child { border-bottom: none; }
.s0df-winner-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd24a, #ff8b3d);
  color: #2b1d00; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.s0df-winner-info { flex: 1; font-size: 1.2rem; }
.s0df-winner-amount { color: var(--s0df-accent); font-weight: 700; font-size: 1.3rem; }

.s0df-app-cta {
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.s0df-app-cta .s0df-btn { flex: 1; }

/* ============ Footer ============ */
.s0df-footer {
  background: #0e1c1b;
  padding: 18px 12px 24px;
  margin-top: 18px;
  border-top: 1px solid rgba(64,224,208,0.2);
}
.s0df-footer h4 { color: var(--s0df-primary); font-size: 1.3rem; margin: 8px 0; }
.s0df-footer p { color: var(--s0df-text); font-size: 1.25rem; margin: 0 0 8px; }
.s0df-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0;
}
.s0df-footer-links a {
  color: var(--s0df-secondary);
  font-size: 1.15rem;
  text-decoration: underline;
}
.s0df-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0;
}
.s0df-footer-promos .s0df-btn { font-size: 1.15rem; padding: 6px 12px; }
.s0df-copyright {
  color: var(--s0df-muted); font-size: 1.1rem; text-align: center; margin-top: 10px;
}

/* ============ Mobile bottom nav ============ */
.s0df-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(90deg, #11201f, #1d3a37);
  border-top: 1px solid rgba(64,224,208,0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.s0df-bottom-nav-btn {
  background: transparent;
  border: none;
  color: var(--s0df-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.05rem;
  gap: 2px;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.s0df-bottom-nav-btn:active { transform: scale(0.9); }
.s0df-bottom-nav-btn i, .s0df-bottom-nav-btn span.material-icons {
  font-size: 22px;
}
.s0df-bottom-nav-btn ion-icon { font-size: 24px; }
.s0df-bottom-nav-btn .bi { font-size: 22px; }
.s0df-bottom-nav-btn.s0df-bottom-nav-active { color: var(--s0df-accent); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .s0df-bottom-nav { display: none; }
  body { max-width: 430px; }
}
