/* ===========================================================
   33win com 99 - design.css
   All custom classes use the sdf2- prefix.
   Color palette: #AFEEEE | #0A0A0A | #FFFACD | #EEE8AA | #FFCC33
   Dark colors as backgrounds, light colors as text.
   Mobile-first: root font-size 62.5% (1rem = 10px).
   =========================================================== */

:root {
  --sdf2-primary: #FFCC33;
  --sdf2-bg: #0A0A0A;
  --sdf2-bg-soft: #141414;
  --sdf2-bg-card: #1c1c1c;
  --sdf2-text: #FFFACD;
  --sdf2-text-muted: #EEE8AA;
  --sdf2-accent: #AFEEEE;
  --sdf2-border: rgba(255, 204, 51, 0.22);
  --sdf2-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --sdf2-radius: 14px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Be Vietnam Pro", "Inter", system-ui, Arial, sans-serif;
  background: radial-gradient(circle at top, #1a1205 0%, var(--sdf2-bg) 55%);
  color: var(--sdf2-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */
.sdf2-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main {
  padding-bottom: 92px; /* clearance for fixed bottom nav on mobile */
}

/* ---------- Header ---------- */
.sdf2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #100d02 0%, #0A0A0A 100%);
  border-bottom: 1px solid var(--sdf2-border);
  box-shadow: var(--sdf2-shadow);
}

.sdf2-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}

.sdf2-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.sdf2-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.sdf2-brand-name {
  font-weight: 800;
  color: var(--sdf2-primary);
  font-size: 1.5rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sdf2-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sdf2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  color: #0A0A0A;
  background: linear-gradient(135deg, var(--sdf2-primary) 0%, #ffb20a 100%);
  box-shadow: 0 3px 10px rgba(255, 204, 51, 0.35);
}

.sdf2-btn:active {
  transform: scale(0.95);
}

.sdf2-btn-outline {
  background: transparent;
  color: var(--sdf2-text);
  border: 1px solid var(--sdf2-primary);
  box-shadow: none;
}

.sdf2-btn-outline:active {
  background: rgba(255, 204, 51, 0.12);
}

.sdf2-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--sdf2-border);
  color: var(--sdf2-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---------- Mobile expandable menu ---------- */
.sdf2-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: #0c0c0c;
  border-top: 1px solid transparent;
}

.sdf2-menu-open {
  max-height: 480px;
  border-top: 1px solid var(--sdf2-border);
}

.sdf2-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.8rem 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sdf2-mobile-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #161616;
  color: var(--sdf2-text);
  font-size: 1.3rem;
  border: 1px solid var(--sdf2-border);
}

.sdf2-mobile-menu a:hover {
  background: #1f1c04;
  text-decoration: none;
}

/* ---------- Hero carousel ---------- */
.sdf2-hero {
  margin: 1rem 0;
}

.sdf2-carousel {
  position: relative;
  border-radius: var(--sdf2-radius);
  overflow: hidden;
  box-shadow: var(--sdf2-shadow);
  border: 1px solid var(--sdf2-border);
  background: #000;
}

.sdf2-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.sdf2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--carousel-transition, 0.5s) ease;
  cursor: pointer;
}

.sdf2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sdf2-slide-active {
  opacity: 1;
}

.sdf2-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.sdf2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 250, 205, 0.5);
  cursor: pointer;
  border: 0;
  padding: 0;
}

.sdf2-dot-active {
  background: var(--sdf2-primary);
  width: 22px;
  border-radius: 5px;
}

/* ---------- Sections / headings ---------- */
.sdf2-section {
  margin: 1.8rem 0;
}

.sdf2-section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  border-left: 4px solid var(--sdf2-primary);
  padding-left: 0.7rem;
}

.sdf2-section-head h2 {
  font-size: 1.7rem;
  margin: 0;
  color: var(--sdf2-text);
  font-weight: 800;
}

.sdf2-section-head .material-symbols-outlined,
.sdf2-section-head i {
  color: var(--sdf2-primary);
  font-size: 2rem;
}

.sdf2-h1 {
  font-size: 2rem;
  line-height: 1.35;
  color: var(--sdf2-primary);
  margin: 1rem 0 0.6rem;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(255, 204, 51, 0.25);
}

.sdf2-lead {
  color: var(--sdf2-text-muted);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}

.sdf2-prose {
  color: var(--sdf2-text);
  font-size: 1.35rem;
  line-height: 1.55;
}

.sdf2-prose p {
  margin: 0 0 0.8rem;
}

/* ---------- Game grid ---------- */
.sdf2-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.sdf2-game-card {
  background: var(--sdf2-bg-card);
  border-radius: 12px;
  border: 1px solid var(--sdf2-border);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.sdf2-game-card:active {
  transform: scale(0.96);
  border-color: var(--sdf2-primary);
  box-shadow: 0 4px 14px rgba(255, 204, 51, 0.25);
}

.sdf2-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 0.35rem;
}

.sdf2-game-name {
  font-size: 1.15rem;
  color: var(--sdf2-text);
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sdf2-cat-tag {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--sdf2-accent);
  background: rgba(175, 238, 238, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

/* ---------- Info cards / features ---------- */
.sdf2-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.sdf2-card {
  background: var(--sdf2-bg-card);
  border: 1px solid var(--sdf2-border);
  border-radius: var(--sdf2-radius);
  padding: 1rem;
  box-shadow: var(--sdf2-shadow);
}

.sdf2-card h3 {
  margin: 0 0 0.4rem;
  color: var(--sdf2-primary);
  font-size: 1.5rem;
}

.sdf2-card p {
  margin: 0;
  color: var(--sdf2-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.sdf2-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.sdf2-feature {
  background: #131212;
  border: 1px solid var(--sdf2-border);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}

.sdf2-feature i,
.sdf2-feature .material-symbols-outlined {
  color: var(--sdf2-primary);
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.sdf2-feature h4 {
  margin: 0 0 0.3rem;
  color: var(--sdf2-text);
  font-size: 1.3rem;
}

.sdf2-feature p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--sdf2-text-muted);
  line-height: 1.4;
}

/* ---------- Steps ---------- */
.sdf2-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.sdf2-steps li {
  position: relative;
  padding: 0.8rem 0.8rem 0.8rem 3.4rem;
  background: var(--sdf2-bg-card);
  border: 1px solid var(--sdf2-border);
  border-radius: 12px;
  counter-increment: step;
  font-size: 1.3rem;
  color: var(--sdf2-text);
  line-height: 1.45;
}

.sdf2-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, var(--sdf2-primary), #ffb20a);
  color: #0A0A0A;
  border-radius: 50%;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ---------- Testimonials ---------- */
.sdf2-testi {
  background: var(--sdf2-bg-card);
  border: 1px solid var(--sdf2-border);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.6rem;
}

.sdf2-testi-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.sdf2-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sdf2-primary), #ffb20a);
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.sdf2-stars {
  color: var(--sdf2-primary);
  font-size: 1.2rem;
}

.sdf2-testi p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--sdf2-text);
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.sdf2-faq-item {
  background: var(--sdf2-bg-card);
  border: 1px solid var(--sdf2-border);
  border-radius: 12px;
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.sdf2-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.9rem 1rem;
  color: var(--sdf2-text);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.sdf2-faq-q .sdf2-faq-icon {
  color: var(--sdf2-primary);
  transition: transform 0.25s ease;
}

.sdf2-faq-open .sdf2-faq-icon {
  transform: rotate(45deg);
}

.sdf2-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  color: var(--sdf2-text-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.sdf2-faq-open .sdf2-faq-a {
  max-height: 260px;
  padding: 0 1rem 0.9rem;
}

/* ---------- Winners / payment ---------- */
.sdf2-winners {
  display: grid;
  gap: 0.5rem;
}

.sdf2-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sdf2-bg-card);
  border: 1px solid var(--sdf2-border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 1.25rem;
}

.sdf2-winner .sdf2-amt {
  color: var(--sdf2-primary);
  font-weight: 800;
}

.sdf2-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sdf2-pay-chip {
  background: #131313;
  border: 1px solid var(--sdf2-border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 1.2rem;
  color: var(--sdf2-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Promo CTA ---------- */
.sdf2-cta {
  background: linear-gradient(135deg, #1c1605 0%, #0c0a02 100%);
  border: 1px solid var(--sdf2-primary);
  border-radius: var(--sdf2-radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--sdf2-shadow);
}

.sdf2-cta h3 {
  margin: 0 0 0.4rem;
  color: var(--sdf2-primary);
  font-size: 1.7rem;
}

.sdf2-cta p {
  margin: 0 0 0.9rem;
  color: var(--sdf2-text-muted);
  font-size: 1.3rem;
}

.sdf2-cta .sdf2-btn {
  font-size: 1.5rem;
  padding: 0.75rem 1.6rem;
}

/* ---------- Footer ---------- */
.sdf2-footer {
  background: #060606;
  border-top: 1px solid var(--sdf2-border);
  padding: 1.4rem 1rem 1rem;
  margin-top: 1.4rem;
  color: var(--sdf2-text-muted);
}

.sdf2-footer-brand {
  font-size: 1.3rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.sdf2-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.sdf2-footer-links a {
  font-size: 1.2rem;
  color: var(--sdf2-text);
}

.sdf2-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.8rem 0;
}

.sdf2-footer-promos .sdf2-btn {
  font-size: 1.2rem;
  padding: 0.5rem 0.9rem;
}

.sdf2-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: #888;
  border-top: 1px solid #1c1c1c;
  padding-top: 0.8rem;
}

/* ---------- Mobile bottom navigation ---------- */
.sdf2-bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #0e0e0e 0%, #050505 100%);
  border-top: 1px solid var(--sdf2-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.55);
  max-width: 430px;
  margin: 0 auto;
}

.sdf2-bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: var(--sdf2-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sdf2-bnav-btn i,
.sdf2-bnav-btn .material-symbols-outlined {
  font-size: 22px;
  color: var(--sdf2-text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.sdf2-bnav-btn:active {
  transform: scale(0.92);
}

.sdf2-bnav-btn:active i,
.sdf2-bnav-btn:active .material-symbols-outlined {
  color: var(--sdf2-primary);
}

.sdf2-bnav-active {
  color: var(--sdf2-primary);
}

.sdf2-bnav-active i,
.sdf2-bnav-active .material-symbols-outlined {
  color: var(--sdf2-primary);
}

/* ---------- Utility ---------- */
.sdf2-text-link {
  color: var(--sdf2-primary);
  font-weight: 700;
}

.sdf2-divider {
  height: 1px;
  background: var(--sdf2-border);
  margin: 1.2rem 0;
  border: 0;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body {
    max-width: 960px;
  }
  .sdf2-wrapper {
    max-width: 960px;
  }
  .sdf2-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .sdf2-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sdf2-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .sdf2-bnav {
    display: none;
  }
  main {
    padding-bottom: 24px;
  }
  .sdf2-footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .sdf2-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
