/*!
 * Super Ace Casino - Core Base Stylesheet
 * Site: superacecasino.homes (en-PH)
 * Class prefix: w40dd-
 * Palette: #0D1117 (bg) | #DEB887 (text/accent)
 * Mobile-first. Root font 62.5% (1rem = 10px).
 */

:root {
  --w40dd-bg: #0D1117;
  --w40dd-bg-soft: #141b24;
  --w40dd-bg-card: #1a222e;
  --w40dd-text: #DEB887;
  --w40dd-text-light: #f3e3c5;
  --w40dd-text-muted: #b9a987;
  --w40dd-primary: #DEB887;
  --w40dd-primary-2: #f0c98a;
  --w40dd-accent: #e8c98b;
  --w40dd-gold: #d4af37;
  --w40dd-danger: #d9534f;
  --w40dd-success: #4caf50;
  --w40dd-border: rgba(222, 184, 135, 0.22);
  --w40dd-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --w40dd-radius: 12px;
  --w40dd-radius-sm: 8px;
  --w40dd-radius-lg: 18px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--w40dd-bg);
  color: var(--w40dd-text-light);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--w40dd-primary); text-decoration: none; }
a:hover { color: var(--w40dd-primary-2); text-decoration: underline; }

.w40dd-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w40dd-wrapper { padding: 1rem 0; }
.w40dd-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== Header / Top Nav ===== */
.w40dd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.97);
  border-bottom: 1px solid var(--w40dd-border);
  box-shadow: var(--w40dd-shadow);
  max-width: 430px;
  margin: 0 auto;
}
.w40dd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}
.w40dd-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--w40dd-text);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
}
.w40dd-brand:hover { text-decoration: none; color: var(--w40dd-primary-2); }
.w40dd-brand img { width: 2.6rem; height: 2.6rem; border-radius: 6px; }
.w40dd-brand small {
  display: block;
  font-size: 1rem;
  color: var(--w40dd-text-muted);
  font-weight: 500;
}
.w40dd-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.w40dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.1rem;
  border-radius: var(--w40dd-radius-sm);
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.w40dd-btn:hover { transform: translateY(-1px); text-decoration: none; }
.w40dd-btn-primary {
  background: linear-gradient(135deg, #DEB887, #f0c98a);
  color: #1a1208;
}
.w40dd-btn-primary:hover { color: #1a1208; }
.w40dd-btn-ghost {
  background: transparent;
  color: var(--w40dd-text);
  border-color: var(--w40dd-border);
}
.w40dd-btn-ghost:hover { color: var(--w40dd-text-light); border-color: var(--w40dd-primary); }
.w40dd-btn-block { display: flex; width: 100%; }
.w40dd-menu-btn {
  background: transparent;
  border: 1px solid var(--w40dd-border);
  color: var(--w40dd-text);
  width: 3.4rem; height: 3.4rem;
  border-radius: var(--w40dd-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
}

/* ===== Expandable Nav Menu ===== */
.w40dd-nav-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w40dd-bg-soft);
  border-bottom: 1px solid var(--w40dd-border);
  box-shadow: var(--w40dd-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.w40dd-nav-menu.w40dd-nav-open { max-height: 460px; }
.w40dd-nav-list { list-style: none; padding: 0.6rem 0; }
.w40dd-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  color: var(--w40dd-text-light);
  font-size: 1.35rem;
  border-left: 3px solid transparent;
  transition: background .2s, border-color .2s;
}
.w40dd-nav-list li a:hover {
  background: rgba(222, 184, 135, 0.08);
  border-left-color: var(--w40dd-primary);
  text-decoration: none;
  color: var(--w40dd-text);
}
.w40dd-nav-list li a i { color: var(--w40dd-primary); width: 2rem; text-align: center; }

/* ===== Main ===== */
.w40dd-main { padding-top: 6rem; }
@media (max-width: 768px) {
  .w40dd-main { padding-bottom: 8rem; }
}

.w40dd-section { padding: 2rem 0; }
.w40dd-section-alt { background: var(--w40dd-bg-soft); }
.w40dd-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; gap: 0.6rem;
}
.w40dd-h1, .w40dd-h2, .w40dd-h3 { color: var(--w40dd-text); line-height: 1.25; font-weight: 800; }
.w40dd-h1 { font-size: 2rem; margin: 0.4rem 0 0.6rem; }
.w40dd-h2 { font-size: 1.85rem; margin: 0.4rem 0 0.6rem; }
.w40dd-h3 { font-size: 1.55rem; margin: 0.3rem 0 0.5rem; color: var(--w40dd-primary-2); }
.w40dd-section p { margin: 0.6rem 0; color: var(--w40dd-text-light); }
.w40dd-lead { font-size: 1.45rem; color: var(--w40dd-text-muted); }
.w40dd-text-accent { color: var(--w40dd-primary); font-weight: 700; }
.w40dd-promo-link { color: var(--w40dd-primary); font-weight: 700; text-decoration: underline; }

/* ===== Hero Carousel ===== */
.w40dd-hero { position: relative; overflow: hidden; border-radius: 0 0 var(--w40dd-radius-lg) var(--w40dd-radius-lg); }
.w40dd-slide-viewport { overflow: hidden; border-radius: var(--w40dd-radius); }
.w40dd-slide-track { display: flex; transition: transform .45s ease; }
.w40dd-slide {
  min-width: 100%;
  position: relative;
}
.w40dd-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.w40dd-slide-cap {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(13, 17, 23, 0.72);
  padding: 0.8rem 1rem;
  border-radius: var(--w40dd-radius-sm);
  border-left: 3px solid var(--w40dd-primary);
}
.w40dd-slide-cap h3 { color: var(--w40dd-text); font-size: 1.5rem; margin-bottom: 0.2rem; }
.w40dd-slide-cap p { color: var(--w40dd-text-muted); font-size: 1.2rem; margin: 0; }
.w40dd-slide-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 0;
}
.w40dd-slide-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(222, 184, 135, 0.4);
  border: none; cursor: pointer; transition: background .2s;
}
.w40dd-slide-dot.w40dd-slide-dot-active { background: var(--w40dd-primary); }

/* ===== Game Grid ===== */
.w40dd-cat-chips {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.w40dd-cat-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--w40dd-bg-card);
  color: var(--w40dd-text-muted);
  font-size: 1.2rem;
  border: 1px solid var(--w40dd-border);
  cursor: pointer;
  transition: all .2s;
}
.w40dd-cat-chip.w40dd-cat-chip-active,
.w40dd-cat-chip:hover {
  background: var(--w40dd-primary);
  color: #1a1208;
  border-color: var(--w40dd-primary);
}
.w40dd-game-cat-title {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1.6rem 0 0.8rem;
  font-size: 1.55rem; font-weight: 800; color: var(--w40dd-text);
}
.w40dd-game-cat-title i { color: var(--w40dd-primary); }
.w40dd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w40dd-game-card {
  background: var(--w40dd-bg-card);
  border-radius: var(--w40dd-radius-sm);
  border: 1px solid var(--w40dd-border);
  overflow: hidden;
  text-align: center;
  transition: transform .15s, box-shadow .2s;
  display: block;
  color: var(--w40dd-text-light);
}
.w40dd-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--w40dd-shadow);
  border-color: var(--w40dd-primary);
  text-decoration: none;
  color: var(--w40dd-text);
}
.w40dd-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #0a0e14;
}
.w40dd-game-card-name {
  font-size: 1.1rem;
  padding: 0.45rem 0.3rem;
  color: var(--w40dd-text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / Features ===== */
.w40dd-card {
  background: var(--w40dd-bg-card);
  border-radius: var(--w40dd-radius);
  border: 1px solid var(--w40dd-border);
  padding: 1.2rem;
  box-shadow: var(--w40dd-shadow);
}
.w40dd-card-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.w40dd-card-row .w40dd-icon-box {
  flex-shrink: 0;
  width: 3.6rem; height: 3.6rem;
  border-radius: var(--w40dd-radius-sm);
  background: rgba(222, 184, 135, 0.12);
  color: var(--w40dd-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.w40dd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w40dd-feature {
  background: var(--w40dd-bg-card);
  padding: 1rem;
  border-radius: var(--w40dd-radius-sm);
  border: 1px solid var(--w40dd-border);
}
.w40dd-feature i { font-size: 1.9rem; color: var(--w40dd-primary); }
.w40dd-feature h4 { font-size: 1.25rem; margin: 0.4rem 0; color: var(--w40dd-text); }
.w40dd-feature p { font-size: 1.15rem; color: var(--w40dd-text-muted); margin: 0; }

/* ===== RTP / Stats ===== */
.w40dd-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--w40dd-border);
  font-size: 1.25rem;
}
.w40dd-stat-row:last-child { border-bottom: none; }
.w40dd-stat-row strong { color: var(--w40dd-primary); }
.w40dd-bar {
  height: 0.7rem; background: rgba(222, 184, 135, 0.15);
  border-radius: 999px; overflow: hidden; margin-top: 0.3rem;
}
.w40dd-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #DEB887, #f0c98a); }

/* ===== Testimonials ===== */
.w40dd-testimonial {
  background: var(--w40dd-bg-card);
  border-radius: var(--w40dd-radius);
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--w40dd-primary);
  margin-bottom: 0.7rem;
}
.w40dd-testimonial .w40dd-stars { color: var(--w40dd-gold); margin-bottom: 0.3rem; }
.w40dd-testimonial p { font-size: 1.25rem; color: var(--w40dd-text-light); margin: 0; }
.w40dd-testimonial cite { display: block; margin-top: 0.3rem; color: var(--w40dd-text-muted); font-style: normal; font-size: 1.1rem; }

/* ===== Winners ===== */
.w40dd-winner {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: var(--w40dd-bg-card);
  border-radius: var(--w40dd-radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid var(--w40dd-border);
}
.w40dd-winner .w40dd-avatar {
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--w40dd-primary); color: #1a1208;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
}
.w40dd-winner .w40dd-win-amt { color: var(--w40dd-primary); font-weight: 800; }

/* ===== Payment / App ===== */
.w40dd-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.w40dd-pay-item {
  background: var(--w40dd-bg-card);
  border-radius: var(--w40dd-radius-sm);
  padding: 0.7rem 0.3rem;
  text-align: center;
  border: 1px solid var(--w40dd-border);
  font-size: 1.05rem;
  color: var(--w40dd-text-muted);
}
.w40dd-pay-item i { font-size: 1.7rem; color: var(--w40dd-primary); display: block; margin-bottom: 0.3rem; }

.w40dd-app-cta {
  background: linear-gradient(135deg, rgba(222,184,135,0.18), rgba(13,17,23,0.6));
  border: 1px solid var(--w40dd-border);
  border-radius: var(--w40dd-radius);
  padding: 1.3rem;
  text-align: center;
}
.w40dd-app-cta h3 { margin-bottom: 0.5rem; }
.w40dd-app-cta .w40dd-btn { margin: 0.6rem 0.3rem 0; }

/* ===== FAQ ===== */
.w40dd-faq-item {
  background: var(--w40dd-bg-card);
  border: 1px solid var(--w40dd-border);
  border-radius: var(--w40dd-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.w40dd-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--w40dd-text);
  cursor: pointer;
  font-size: 1.3rem;
}
.w40dd-faq-a {
  padding: 0 1.1rem 1rem;
  color: var(--w40dd-text-muted);
  font-size: 1.2rem;
  display: none;
}
.w40dd-faq-item.w40dd-faq-open .w40dd-faq-a { display: block; }
.w40dd-faq-item.w40dd-faq-open .w40dd-faq-toggle { transform: rotate(45deg); }
.w40dd-faq-toggle { color: var(--w40dd-primary); font-size: 1.5rem; transition: transform .2s; }

/* ===== Footer ===== */
.w40dd-footer {
  background: var(--w40dd-bg-soft);
  border-top: 1px solid var(--w40dd-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}
.w40dd-footer-brand { color: var(--w40dd-text); margin-bottom: 0.8rem; font-size: 1.3rem; }
.w40dd-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.w40dd-footer-links a {
  color: var(--w40dd-text-muted);
  font-size: 1.15rem;
}
.w40dd-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.w40dd-footer-promos .w40dd-btn { font-size: 1.15rem; padding: 0.6rem 0.9rem; min-height: 3rem; }
.w40dd-footer-copy {
  color: var(--w40dd-text-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--w40dd-border);
}

/* ===== Mobile Bottom Nav ===== */
.w40dd-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, #141b24, #0D1117);
  border-top: 1px solid var(--w40dd-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
}
.w40dd-bottom-nav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--w40dd-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.3rem;
  transition: color .2s, transform .15s;
  position: relative;
}
.w40dd-bottom-nav-btn i { font-size: 2.2rem; }
.w40dd-bottom-nav-btn .material-icons-outlined,
.w40dd-bottom-nav-btn .material-icons { font-size: 2.2rem; }
.w40dd-bottom-nav-btn span { font-size: 1.05rem; }
.w40dd-bottom-nav-btn:hover { color: var(--w40dd-primary); transform: translateY(-1px); text-decoration: none; }
.w40dd-bottom-nav-btn.w40dd-bottom-nav-active { color: var(--w40dd-primary); }
.w40dd-bottom-nav-btn.w40dd-bottom-nav-active::before {
  content: "";
  position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 4px 4px;
  background: var(--w40dd-primary);
}
.w40dd-bottom-nav-badge {
  position: absolute; top: 0.5rem; right: 1.3rem;
  background: var(--w40dd-danger); color: #fff;
  font-size: 0.9rem; min-width: 1.5rem; height: 1.5rem;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 0.3rem;
}
@media (min-width: 769px) {
  .w40dd-bottom-nav { display: none; }
  body, .w40dd-container, .w40dd-header, .w40dd-nav-menu { max-width: 430px; }
}

/* ===== Utility ===== */
.w40dd-mt-1 { margin-top: 0.5rem; } .w40dd-mt-2 { margin-top: 1rem; } .w40dd-mt-3 { margin-top: 1.5rem; }
.w40dd-center { text-align: center; }
.w40dd-hide-mobile { display: none; }
@media (min-width: 769px) { .w40dd-hide-mobile { display: initial; } }
