/* ============================================================
   CasinoSignup (casinosignup.cfd) - Base Stylesheet
   Prefix: sdd8-
   Palette: #1E1E1E / #E91E63 / #CD853F / #FFEBCD
   Mobile-first 320-430px canvas
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  background: #1E1E1E;
  color: #FFEBCD;
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.sdd8-wrap { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.sdd8-section { padding: 22px 0 8px; }
.sdd8-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.sdd8-section-title {
  font-size: 18px; font-weight: 800; color: #FFEBCD;
  letter-spacing: .3px;
  border-left: 4px solid #E91E63;
  padding-left: 8px;
}
.sdd8-section-more {
  font-size: 12px; color: #CD853F; font-weight: 600;
}
.sdd8-hidden { display: none !important; }

/* ---------- Top notification bar ---------- */
.sdd8-topbar {
  background: linear-gradient(90deg, #CD853F, #E91E63);
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 5px 8px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* ---------- Header ---------- */
.sdd8-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(30, 30, 30, 0.96);
  border-bottom: 1px solid rgba(255, 235, 205, 0.12);
  backdrop-filter: blur(6px);
}
.sdd8-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 12px;
}
.sdd8-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sdd8-brand-logo {
  width: 34px; height: 34px; border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 235, 205, 0.25);
  background: #2a2a2a;
  flex-shrink: 0;
}
.sdd8-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.sdd8-brand-name {
  font-size: 16px; font-weight: 800; color: #FFEBCD;
  white-space: nowrap;
}
.sdd8-brand-tag {
  font-size: 9px; color: #CD853F; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
}
.sdd8-header-actions { display: flex; align-items: center; gap: 8px; }
.sdd8-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; border-radius: 999px;
  padding: 9px 16px; font-size: 13px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
  white-space: nowrap;
}
.sdd8-btn:active { transform: scale(0.96); }
.sdd8-btn-login {
  background: transparent;
  color: #FFEBCD;
  border: 1px solid rgba(255, 235, 205, 0.45);
  padding: 8px 14px;
}
.sdd8-btn-register {
  background: linear-gradient(135deg, #E91E63, #CD853F);
  color: #fff;
  box-shadow: 0 3px 10px rgba(233, 30, 99, 0.35);
  padding: 9px 18px;
}

/* ---------- Hamburger / mobile menu ---------- */
.sdd8-menu-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 235, 205, 0.06);
  border: 1px solid rgba(255, 235, 205, 0.15);
  color: #FFEBCD;
}
.sdd8-menu-btn span {
  display: block; width: 16px; height: 2px; background: #FFEBCD;
  position: relative;
}
.sdd8-menu-btn span::before,
.sdd8-menu-btn span::after {
  content: ""; position: absolute; left: 0;
  width: 16px; height: 2px; background: #FFEBCD;
}
.sdd8-menu-btn span::before { top: -5px; }
.sdd8-menu-btn span::after { top: 5px; }

.sdd8-drawer {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100%;
  background: #232323;
  z-index: 200;
  transition: right .25s ease;
  padding: 20px 18px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 235, 205, 0.08);
}
.sdd8-drawer.open { right: 0; }
.sdd8-drawer-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.sdd8-drawer-mask.open { opacity: 1; pointer-events: auto; }
.sdd8-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 235, 205, 0.1);
}
.sdd8-drawer-title { font-size: 16px; font-weight: 800; color: #FFEBCD; }
.sdd8-drawer-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 235, 205, 0.08);
  color: #FFEBCD; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sdd8-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px;
  font-size: 14px; font-weight: 600; color: #FFEBCD;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 235, 205, 0.06);
}
.sdd8-drawer-link:active { background: rgba(255, 235, 205, 0.06); }
.sdd8-drawer-link .sdd8-arrow { color: #CD853F; }
.sdd8-drawer-cta {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ---------- Hero / Carousel ---------- */
.sdd8-hero {
  position: relative;
  margin: 12px 0 4px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #2b1230, #3a1f1a);
  border: 1px solid rgba(205, 133, 63, 0.25);
}
.sdd8-slides { display: flex; transition: transform .4s ease; }
.sdd8-slide {
  min-width: 100%; padding: 12px 16px 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.sdd8-slide > img {
  width: 100%; height: 118px; object-fit: cover; border-radius: 9px;
  border: 1px solid rgba(255,235,205,.16);
}
.sdd8-slide-eyebrow {
  display: inline-block; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  background: rgba(233, 30, 99, 0.18);
  color: #FFB1CC;
  border: 1px solid rgba(233, 30, 99, 0.4);
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase;
}
.sdd8-slide-title {
  font-size: 22px; font-weight: 900; color: #FFEBCD;
  line-height: 1.2;
}
.sdd8-slide-title em { color: #E91E63; font-style: normal; }
.sdd8-slide-desc {
  font-size: 13px; color: #e9d9bf; max-width: 90%;
}
.sdd8-slide-cta { margin-top: 6px; }
.sdd8-hero-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
}
.sdd8-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 235, 205, 0.35);
  transition: background .2s ease, width .2s ease;
}
.sdd8-hero-dot.active {
  background: #E91E63; width: 18px; border-radius: 999px;
}

/* ---------- Quick action chips ---------- */
.sdd8-chips {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 14px 0 4px;
}
.sdd8-chip {
  background: #2a2a2a;
  border: 1px solid rgba(255, 235, 205, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: background .15s ease, transform .12s;
}
.sdd8-chip:active { transform: scale(0.95); background: #333; }
.sdd8-chip-ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #E91E63, #CD853F);
  color: #fff; font-size: 15px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.sdd8-chip-label { font-size: 10.5px; color: #FFEBCD; font-weight: 600; line-height: 1.2; }

/* ---------- Category tabs ---------- */
.sdd8-cats {
  display: flex; gap: 7px; overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.sdd8-cats::-webkit-scrollbar { display: none; }
.sdd8-cat {
  flex-shrink: 0;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: #2a2a2a; color: #FFEBCD;
  border: 1px solid rgba(255, 235, 205, 0.1);
  white-space: nowrap;
  transition: background .15s, color .15s, border .15s;
}
.sdd8-cat.active {
  background: linear-gradient(135deg, #E91E63, #CD853F);
  color: #fff; border-color: transparent;
}

/* ---------- Game grid ---------- */
.sdd8-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.sdd8-card {
  background: #262626;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 205, 0.07);
  position: relative;
  transition: transform .12s;
  display: flex; flex-direction: column;
}
.sdd8-card:active { transform: scale(0.97); }
.sdd8-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1a1a1a;
}
.sdd8-card-body {
  padding: 6px 7px 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.sdd8-card-name {
  font-size: 11px; font-weight: 700; color: #FFEBCD;
  line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 28px;
}
.sdd8-card-play {
  font-size: 10px; color: #CD853F; font-weight: 700;
  text-align: center;
  border-top: 1px solid rgba(255, 235, 205, 0.06);
  padding-top: 5px;
}
.sdd8-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 800;
  background: rgba(233, 30, 99, 0.92);
  color: #fff; padding: 2px 6px; border-radius: 4px;
  letter-spacing: .3px;
}
.sdd8-badge.hot { background: linear-gradient(135deg, #E91E63, #CD853F); }
.sdd8-badge.new { background: #2E7D32; }

/* ---------- Promo banner block ---------- */
.sdd8-promo {
  margin: 16px 0 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a1f1a, #2b1230);
  border: 1px solid rgba(205, 133, 63, 0.3);
  padding: 16px;
  display: flex; gap: 12px; align-items: center;
}
.sdd8-promo-text { flex: 1; min-width: 0; }
.sdd8-promo-title {
  font-size: 15px; font-weight: 800; color: #FFEBCD; margin-bottom: 4px;
}
.sdd8-promo-desc { font-size: 12px; color: #e9d9bf; }
.sdd8-promo-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #E91E63, #CD853F);
  color: #fff; font-weight: 700; font-size: 12px;
  padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(233, 30, 99, 0.35);
}

/* ---------- Article / SEO content ---------- */
.sdd8-article {
  background: #232323;
  border-radius: 12px;
  padding: 16px 15px;
  margin: 10px 0;
  border: 1px solid rgba(255, 235, 205, 0.06);
}
.sdd8-article h2 {
  font-size: 17px; font-weight: 800; color: #FFEBCD;
  margin: 14px 0 8px;
}
.sdd8-article h2:first-child { margin-top: 0; }
.sdd8-article h3 {
  font-size: 14px; font-weight: 700; color: #CD853F;
  margin: 12px 0 6px;
}
.sdd8-article p {
  font-size: 13px; color: #e9d9bf; margin-bottom: 10px;
}
.sdd8-article ul { padding-left: 18px; margin-bottom: 10px; }
.sdd8-article ul li {
  list-style: disc; font-size: 13px; color: #e9d9bf;
  margin-bottom: 5px;
}
.sdd8-article a {
  color: #E91E63; font-weight: 600;
  border-bottom: 1px dashed rgba(233, 30, 99, 0.4);
}
.sdd8-article a:active { opacity: .7; }
.sdd8-article strong { color: #FFEBCD; }

/* ---------- Featured links grid ---------- */
.sdd8-feat {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px;
  margin: 10px 0;
}
.sdd8-feat a {
  background: #262626;
  border: 1px solid rgba(255, 235, 205, 0.08);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px; font-weight: 700; color: #FFEBCD;
  display: flex; flex-direction: column; gap: 4px;
}
.sdd8-feat a small {
  font-size: 10px; color: #CD853F; font-weight: 600;
}

/* ---------- FAQ ---------- */
.sdd8-faq-item {
  background: #262626;
  border: 1px solid rgba(255, 235, 205, 0.07);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.sdd8-faq-q {
  width: 100%; text-align: left;
  padding: 12px 14px;
  font-size: 13px; font-weight: 700; color: #FFEBCD;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.sdd8-faq-q .sdd8-toggle { color: #CD853F; font-size: 16px; transition: transform .2s; }
.sdd8-faq-item.open .sdd8-toggle { transform: rotate(45deg); }
.sdd8-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
  font-size: 12.5px; color: #e9d9bf;
}
.sdd8-faq-item.open .sdd8-faq-a {
  max-height: 320px; padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.sdd8-footer {
  background: #181818;
  margin-top: 22px;
  padding: 22px 0 90px;
  border-top: 1px solid rgba(255, 235, 205, 0.08);
}
.sdd8-footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 16px;
}
.sdd8-footer-col h4 {
  font-size: 13px; font-weight: 800; color: #FFEBCD;
  margin-bottom: 8px;
}
.sdd8-footer-col a {
  display: block;
  font-size: 12px; color: #c9b89a; padding: 3px 0;
}
.sdd8-footer-col a:active { color: #E91E63; }
.sdd8-footer-desc {
  font-size: 12px; color: #a99c82; margin-bottom: 12px; line-height: 1.6;
}
.sdd8-footer-bottom {
  border-top: 1px solid rgba(255, 235, 205, 0.07);
  padding-top: 12px;
  font-size: 11px; color: #897d68;
  text-align: center;
}
.sdd8-footer-bottom p { margin-bottom: 4px; }
.sdd8-18plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #CD853F; color: #CD853F;
  font-weight: 800; font-size: 11px; margin-bottom: 6px;
}

/* ---------- Mobile bottom nav ---------- */
.sdd8-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: rgba(24, 24, 24, 0.98);
  border-top: 1px solid rgba(255, 235, 205, 0.1);
  backdrop-filter: blur(8px);
  max-width: 430px; margin: 0 auto;
}
.sdd8-bottomnav-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 4px 8px;
}
.sdd8-navitem {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px;
  color: #a99c82;
  font-size: 10px; font-weight: 600;
  text-align: center;
  transition: color .15s;
  position: relative;
}
.sdd8-navitem.active { color: #FFEBCD; }
.sdd8-navitem.active .sdd8-nav-ico {
  background: linear-gradient(135deg, #E91E63, #CD853F);
  color: #fff;
  box-shadow: 0 3px 10px rgba(233, 30, 99, 0.4);
}
.sdd8-nav-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 235, 205, 0.07);
  color: #a99c82;
  transition: background .15s, color .15s, transform .12s;
  font-size: 15px;
}
.sdd8-nav-ico svg { width: 16px; height: 16px; fill: currentColor; }
.sdd8-navitem:active .sdd8-nav-ico { transform: scale(0.9); }
.sdd8-nav-center {
  position: relative; top: -10px;
}
.sdd8-nav-center .sdd8-nav-ico {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #E91E63, #CD853F);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.45);
  border: 3px solid #1E1E1E;
  font-size: 20px;
}
.sdd8-nav-label { line-height: 1.1; }

/* ---------- Wider screens keep mobile canvas ---------- */
@media (min-width: 431px) {
  body { background: #0f0f0f; }
  .sdd8-header, .sdd8-topbar { max-width: 430px; margin: 0 auto; }
  .sdd8-header { border-left: 1px solid rgba(255,235,205,0.06); border-right: 1px solid rgba(255,235,205,0.06); }
  .sdd8-shell {
    max-width: 430px; margin: 0 auto;
    background: #1E1E1E;
    min-height: 100vh;
    border-left: 1px solid rgba(255,235,205,0.05);
    border-right: 1px solid rgba(255,235,205,0.05);
    padding-bottom: 0;
  }
}

@media (min-width: 375px) {
  .sdd8-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .sdd8-card-name { font-size: 10px; }
}
