/* dddjili layout stylesheet - prefix s2ef- */
/* Palette: #D3D3D3 | #AFEEEE | #333333 | #40E0D0 | #F8F8FF */

:root {
  --s2ef-bg: #333333;
  --s2ef-bg-soft: #3f3f3f;
  --s2ef-bg-deep: #2a2a2a;
  --s2ef-text: #F8F8FF;
  --s2ef-muted: #D3D3D3;
  --s2ef-accent: #40E0D0;
  --s2ef-accent-soft: #AFEEEE;
  --s2ef-border: rgba(240, 240, 240, 0.12);
  --s2ef-radius: 14px;
  --s2ef-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --s2ef-header-h: 58px;
  --s2ef-nav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--s2ef-bg);
  color: var(--s2ef-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--s2ef-accent-soft); text-decoration: none; }
a:hover { color: var(--s2ef-accent); }

h1, h2, h3, h4 { color: #fff; margin: 0 0 0.5em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }

/* Layout containers */
.s2ef-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.s2ef-wrapper { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* Header */
.s2ef-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s2ef-header-h);
  background: rgba(42, 42, 42, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s2ef-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.s2ef-header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.s2ef-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.s2ef-brand .s2ef-brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--s2ef-accent), var(--s2ef-accent-soft));
  display: inline-flex; align-items: center; justify-content: center;
  color: #1a3a3a; font-weight: 800; font-size: 16px;
}
.s2ef-header-actions { display: flex; align-items: center; gap: 8px; }
.s2ef-menu-btn {
  background: transparent;
  border: 1px solid var(--s2ef-border);
  color: var(--s2ef-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Buttons */
.s2ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.s2ef-btn:active { transform: scale(0.97); }
.s2ef-btn-primary {
  background: linear-gradient(135deg, var(--s2ef-accent), #2bb8aa);
  color: #0d2a2a;
  box-shadow: 0 4px 14px rgba(64, 224, 208, 0.35);
}
.s2ef-btn-secondary {
  background: transparent;
  color: var(--s2ef-text);
  border: 1px solid var(--s2ef-accent);
}
.s2ef-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--s2ef-text);
}
.s2ef-btn-block { width: 100%; }
.s2ef-btn-lg { padding: 14px 26px; font-size: 16px; }

/* Hero / carousel */
.s2ef-main { padding-top: var(--s2ef-header-h); }
.s2ef-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(160deg, #1f4f4a 0%, #2a2a2a 70%);
}
.s2ef-hero-track { position: relative; min-height: 240px; }
.s2ef-hero-slide {
  display: none;
  padding: 26px 18px 30px;
  flex-direction: column;
  gap: 8px;
}
.s2ef-hero-slide.s2ef-slide-active { display: flex; animation: s2effade 0.5s ease; }
@keyframes s2effade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.s2ef-hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--s2ef-accent-soft);
  background: rgba(64, 224, 208, 0.15);
  border: 1px solid rgba(64, 224, 208, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.s2ef-hero-title { font-size: 26px; line-height: 1.2; }
.s2ef-hero-sub { color: var(--s2ef-muted); font-size: 14px; max-width: 320px; }
.s2ef-hero-cta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.s2ef-hero-dots { display: flex; gap: 6px; justify-content: center; padding: 0 0 16px; }
.s2ef-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
}
.s2ef-hero-dot.s2ef-dot-active { background: var(--s2ef-accent); width: 20px; border-radius: 5px; }

/* Section base */
.s2ef-section { padding: 26px 0; }
.s2ef-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.s2ef-section-title {
  font-size: 19px;
  display: flex; align-items: center; gap: 8px;
}
.s2ef-section-title i { color: var(--s2ef-accent); }
.s2ef-section-link { font-size: 13px; color: var(--s2ef-accent-soft); }

/* Filter tabs */
.s2ef-filters {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.s2ef-filters::-webkit-scrollbar { display: none; }
.s2ef-filter-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--s2ef-border);
  color: var(--s2ef-muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.s2ef-filter-tab.s2ef-tab-active {
  background: var(--s2ef-accent);
  color: #0d2a2a;
  border-color: var(--s2ef-accent);
  font-weight: 700;
}

/* Game grid */
.s2ef-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s2ef-card {
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-radius: var(--s2ef-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s2ef-card:hover { transform: translateY(-3px); box-shadow: var(--s2ef-shadow); }
.s2ef-card-thumb {
  aspect-ratio: 1 / 1;
  background: #222;
  overflow: hidden;
}
.s2ef-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s2ef-card-name {
  padding: 6px 8px;
  font-size: 11px;
  text-align: center;
  color: var(--s2ef-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s2ef-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55));
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.s2ef-card:hover .s2ef-card-overlay { opacity: 1; }
.s2ef-card-play {
  background: var(--s2ef-accent);
  color: #0d2a2a;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.s2ef-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--s2ef-accent);
  color: #0d2a2a;
  font-size: 9px; font-weight: 800;
  padding: 3px 7px; border-radius: 999px;
  letter-spacing: 0.5px;
}

/* Feature blocks */
.s2ef-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.s2ef-feature {
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-left: 3px solid var(--s2ef-accent);
  border-radius: var(--s2ef-radius);
  padding: 16px;
}
.s2ef-feature-title { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.s2ef-feature-title i { color: var(--s2ef-accent); }
.s2ef-feature p { color: var(--s2ef-muted); font-size: 13px; margin: 0; }

/* Featured / promo banner */
.s2ef-promo {
  background: linear-gradient(135deg, #155e57, #2a2a2a);
  border: 1px solid rgba(64, 224, 208, 0.35);
  border-radius: 18px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.s2ef-promo h3 { font-size: 18px; }
.s2ef-promo p { color: var(--s2ef-muted); font-size: 13px; margin: 0; }

/* Categories highlight */
.s2ef-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s2ef-cat {
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-radius: var(--s2ef-radius);
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
}
.s2ef-cat i { font-size: 22px; color: var(--s2ef-accent); }
.s2ef-cat-name { font-size: 14px; font-weight: 700; }
.s2ef-cat-count { font-size: 11px; color: var(--s2ef-muted); }

/* Steps */
.s2ef-steps { counter-reset: step; display: grid; gap: 12px; }
.s2ef-step {
  position: relative;
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-radius: var(--s2ef-radius);
  padding: 14px 14px 14px 54px;
}
.s2ef-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px;
  background: var(--s2ef-accent);
  color: #0d2a2a;
  border-radius: 50%;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.s2ef-step h4 { font-size: 14px; margin-bottom: 2px; }
.s2ef-step p { margin: 0; color: var(--s2ef-muted); font-size: 13px; }

/* Testimonials */
.s2ef-testi-grid { display: grid; gap: 12px; }
.s2ef-testi {
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-radius: var(--s2ef-radius);
  padding: 14px;
}
.s2ef-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.s2ef-testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--s2ef-accent), var(--s2ef-accent-soft));
  color: #0d2a2a; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.s2ef-testi-name { font-size: 13px; font-weight: 700; }
.s2ef-testi-stars { color: #f5c542; font-size: 12px; }
.s2ef-testi p { margin: 0; font-size: 13px; color: var(--s2ef-muted); }

/* Winners ticker */
.s2ef-winners {
  background: var(--s2ef-bg-deep);
  border: 1px solid var(--s2ef-border);
  border-radius: var(--s2ef-radius);
  padding: 12px 14px;
}
.s2ef-winners-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--s2ef-border);
  font-size: 13px;
}
.s2ef-winners-row:last-child { border-bottom: 0; }
.s2ef-winners-amount { color: var(--s2ef-accent); font-weight: 700; }

/* Payment chips */
.s2ef-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.s2ef-pay {
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--s2ef-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.s2ef-pay i { color: var(--s2ef-accent); }

/* SEO long text */
.s2ef-prose { color: var(--s2ef-muted); font-size: 14px; }
.s2ef-prose h2 { font-size: 19px; color: #fff; margin-top: 1.2em; }
.s2ef-prose h3 { font-size: 16px; color: var(--s2ef-accent-soft); margin-top: 1em; }
.s2ef-prose ul { padding-left: 18px; }
.s2ef-prose li { margin-bottom: 4px; }
.s2ef-prose strong { color: #fff; }

/* FAQ */
.s2ef-faq-item {
  background: var(--s2ef-bg-soft);
  border: 1px solid var(--s2ef-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.s2ef-faq-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.s2ef-faq-icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--s2ef-accent);
  font-size: 18px;
}
.s2ef-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
  color: var(--s2ef-muted);
  font-size: 13px;
}
.s2ef-faq-open .s2ef-faq-body { max-height: 400px; padding: 0 16px 14px; }

/* Footer */
.s2ef-footer {
  background: var(--s2ef-bg-deep);
  border-top: 1px solid var(--s2ef-border);
  padding: 28px 0 100px;
  color: var(--s2ef-muted);
}
.s2ef-footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.s2ef-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.s2ef-footer-links a { color: var(--s2ef-muted); font-size: 13px; }
.s2ef-footer-links a:hover { color: var(--s2ef-accent); }
.s2ef-footer-bottom {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--s2ef-border);
  font-size: 12px; text-align: center;
}
.s2ef-footer-disclaimer { font-size: 11px; color: #888; margin-top: 10px; }

/* Mobile menu */
.s2ef-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.s2ef-menu-backdrop.s2ef-backdrop-visible { opacity: 1; pointer-events: auto; }
.s2ef-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px; height: 100vh;
  background: var(--s2ef-bg-deep);
  border-left: 1px solid var(--s2ef-border);
  padding: 20px 16px;
  z-index: 9999;
  transition: right 0.28s ease;
  overflow-y: auto;
}
.s2ef-mobile-menu.s2ef-menu-open { right: 0; }
.s2ef-mobile-menu h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 8px; }
.s2ef-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--s2ef-text);
  font-size: 14px;
  border-bottom: 1px solid var(--s2ef-border);
}
.s2ef-mobile-menu a:hover { background: rgba(64,224,208,0.08); color: var(--s2ef-accent); }
.s2ef-menu-close {
  background: transparent; border: 0; color: var(--s2ef-text);
  font-size: 22px; cursor: pointer; float: right;
}

/* Bottom nav */
.s2ef-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s2ef-nav-h);
  background: rgba(31, 31, 31, 0.98);
  border-top: 1px solid var(--s2ef-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.s2ef-nav-btn {
  min-width: 60px;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--s2ef-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 10px;
  border-radius: 12px;
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.s2ef-nav-btn i, .s2ef-nav-btn .material-icons-outlined, .s2ef-nav-btn .ion {
  font-size: 22px;
}
.s2ef-nav-btn:hover { color: var(--s2ef-accent); transform: translateY(-2px); }
.s2ef-nav-btn-current { color: var(--s2ef-accent); }
.s2ef-nav-btn-promo {
  color: #fff;
  background: linear-gradient(135deg, var(--s2ef-accent), #2bb8aa);
  width: 48px; height: 48px;
  border-radius: 50%;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(64, 224, 208, 0.45);
  border: 3px solid var(--s2ef-bg-deep);
}
.s2ef-nav-btn-promo i { font-size: 22px; }

/* App CTA */
.s2ef-app-cta {
  background: linear-gradient(135deg, #155e57, #2a2a2a);
  border: 1px solid rgba(64,224,208,0.35);
  border-radius: 18px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.s2ef-app-cta h3 { font-size: 18px; }
.s2ef-app-cta p { color: var(--s2ef-muted); font-size: 13px; margin: 0; }

/* Helpers */
.s2ef-text-center { text-align: center; }
.s2ef-mt-12 { margin-top: 12px; }
.s2ef-mt-16 { margin-top: 16px; }
.s2ef-pb-nav { padding-bottom: 80px; }

/* Desktop */
@media (min-width: 769px) {
  body { font-size: 16px; }
  .s2ef-container { max-width: 1100px; }
  .s2ef-grid { grid-template-columns: repeat(6, 1fr); }
  .s2ef-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .s2ef-cat-grid { grid-template-columns: repeat(5, 1fr); }
  .s2ef-testi-grid { grid-template-columns: repeat(3, 1fr); }
  .s2ef-bottom-nav { display: none; }
  .s2ef-footer { padding-bottom: 28px; }
  .s2ef-hero-track { min-height: 320px; }
  .s2ef-hero-slide { padding: 50px 40px; }
  .s2ef-hero-title { font-size: 36px; }
  .s2ef-mobile-menu { display: none; }
  .s2ef-prose { max-width: 900px; }
  .s2ef-app-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Mobile bottom padding on main content */
@media (max-width: 768px) {
  .s2ef-main { padding-bottom: calc(var(--s2ef-nav-h) + 24px); }
}
