/* ============================================================
   888p 22vip - Base Stylesheet (class prefix: s09d-)
   Palette: #E91E63 / #2E4057 / #BAFFC9 / #F0F8FF
   Mobile-first, max-width 430px container
   ============================================================ */

:root {
  --s09d-primary: #E91E63;
  --s09d-primary-dark: #b31550;
  --s09d-bg: #2E4057;
  --s09d-bg-dark: #1f2d3d;
  --s09d-bg-light: #3a5169;
  --s09d-mint: #BAFFC9;
  --s09d-ivory: #F0F8FF;
  --s09d-text: #F0F8FF;
  --s09d-text-muted: #c7d3e0;
  --s09d-accent-gold: #ffd166;
  --s09d-shadow: 0 4px 14px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--s09d-bg-dark) 0%, var(--s09d-bg) 60%, var(--s09d-bg-dark) 100%);
  color: var(--s09d-text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--s09d-mint); text-decoration: none; }
a:hover { color: var(--s09d-primary); }

.s09d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.s09d-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ----- Header ----- */
.s09d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--s09d-bg-dark), #344a63);
  border-bottom: 2px solid var(--s09d-primary);
  box-shadow: var(--s09d-shadow);
}
.s09d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.s09d-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.s09d-brand img {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.s09d-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s09d-ivory);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s09d-brand-name b { color: var(--s09d-primary); }

.s09d-header-actions { display: flex; align-items: center; gap: 0.4rem; }

.s09d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
}
.s09d-btn:active { transform: scale(0.96); }
.s09d-btn-primary { background: linear-gradient(135deg, var(--s09d-primary), var(--s09d-primary-dark)); box-shadow: 0 3px 10px rgba(233,30,99,.45); }
.s09d-btn-primary:hover { background: linear-gradient(135deg, #ff3b7a, var(--s09d-primary)); color:#fff; }
.s09d-btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(186,255,201,.4); }
.s09d-btn-ghost:hover { background: rgba(186,255,201,.18); color:#fff; }

.s09d-icon-btn {
  background: transparent;
  border: none;
  color: var(--s09d-ivory);
  font-size: 2rem;
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s09d-icon-btn:hover { background: rgba(255,255,255,.1); }

/* ----- Mobile menu ----- */
.s09d-mobile-menu {
  position: fixed;
  top: 56px; right: -100%;
  width: 78%;
  max-width: 320px;
  background: var(--s09d-bg-dark);
  border-left: 2px solid var(--s09d-primary);
  padding: 1rem 0.6rem 2rem;
  z-index: 9999;
  height: calc(100vh - 56px);
  overflow-y: auto;
  transition: right .28s ease;
  box-shadow: -6px 0 24px rgba(0,0,0,.5);
}
.s09d-mobile-menu.s09d-menu-open { right: 0; }
.s09d-mobile-menu h4 {
  font-size: 1.3rem;
  color: var(--s09d-mint);
  margin: 0.8rem 0.6rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.s09d-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  margin: 0.2rem 0;
  border-radius: 8px;
  color: var(--s09d-ivory);
  font-size: 1.35rem;
  font-weight: 500;
}
.s09d-mobile-menu a:hover { background: rgba(233,30,99,.18); color: #fff; }

.s09d-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  display: none;
}
.s09d-overlay.s09d-menu-open { display: block; }

/* ----- Main content padding (mobile clearance) ----- */
.s09d-main {
  flex: 1;
  padding-top: 68px;
  padding-bottom: 24px;
}

/* ----- Hero slider ----- */
.s09d-hero {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--s09d-shadow);
}
.s09d-slides { position: relative; }
.s09d-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.s09d-slide img { width: 100%; height: 170px; object-fit: cover; }
.s09d-slide-active { display: block; }
.s09d-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}
.s09d-slide-cap span { color: var(--s09d-accent-gold); }
.s09d-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.s09d-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.s09d-dot-active { background: var(--s09d-primary); width: 18px; border-radius: 4px; }

/* ----- Section / titles ----- */
.s09d-section { margin: 1.6rem 0; }
.s09d-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--s09d-ivory);
}
.s09d-section-title i, .s09d-section-title .material-icons-outlined { color: var(--s09d-primary); font-size: 2rem; }
.s09d-section-title b { color: var(--s09d-mint); }

.s09d-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(186,255,201,.15);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0;
}
.s09d-card p { margin: 0.4rem 0; font-size: 1.25rem; color: var(--s09d-text-muted); }

/* ----- Game grid ----- */
.s09d-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.s09d-filter-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--s09d-text);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.s09d-filter-tab.s09d-filter-active {
  background: var(--s09d-primary);
  color: #fff;
  border-color: var(--s09d-primary);
}

.s09d-group-head {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s09d-accent-gold);
  margin: 1rem 0 0.6rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--s09d-primary);
}

.s09d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.s09d-game-item {
  display: block;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s;
  text-align: center;
  padding: 0.3rem;
}
.s09d-game-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(233,30,99,.35); }
.s09d-game-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; }
.s09d-game-item span {
  display: block;
  font-size: 1.05rem;
  color: var(--s09d-text);
  margin-top: 0.3rem;
  line-height: 1.2;
  min-height: 2.6rem;
  overflow: hidden;
}
.s09d-hot-badge {
  position: relative;
}
.s09d-hot-badge::after {
  content: "HOT";
  position: absolute;
  top: 4px; right: 4px;
  background: var(--s09d-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ----- Features / lists ----- */
.s09d-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.s09d-feature {
  background: linear-gradient(135deg, rgba(233,30,99,.18), rgba(46,64,87,.4));
  border: 1px solid rgba(233,30,99,.3);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.s09d-feature .material-icons, .s09d-feature i {
  font-size: 2.4rem;
  color: var(--s09d-accent-gold);
}
.s09d-feature h3 { font-size: 1.25rem; margin: 0.4rem 0 0.2rem; color: var(--s09d-ivory); }
.s09d-feature p { font-size: 1.1rem; color: var(--s09d-text-muted); margin: 0; }

.s09d-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(186,255,201,.2);
  font-size: 1.25rem;
}
.s09d-rtp-row:last-child { border-bottom: none; }
.s09d-rtp-bar {
  width: 90px; height: 7px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0.6rem;
}
.s09d-rtp-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--s09d-primary), var(--s09d-accent-gold)); }
.s09d-rtp-val { color: var(--s09d-mint); font-weight: 700; }

.s09d-testimonial {
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--s09d-primary);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}
.s09d-testimonial p { margin: 0 0 0.3rem; font-size: 1.2rem; color: var(--s09d-text-muted); font-style: italic; }
.s09d-testimonial .s09d-stars { color: var(--s09d-accent-gold); font-size: 1.1rem; }
.s09d-testimonial cite { color: var(--s09d-mint); font-size: 1.1rem; font-style: normal; font-weight: 600; }

.s09d-pay-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s09d-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(186,255,201,.25);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.15rem;
  color: var(--s09d-ivory);
}
.s09d-pay-chip i { color: var(--s09d-mint); }

.s09d-cta-banner {
  background: linear-gradient(135deg, var(--s09d-primary), #ff5a8c);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  margin: 1rem 0;
  box-shadow: 0 6px 20px rgba(233,30,99,.4);
}
.s09d-cta-banner h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #fff; }
.s09d-cta-banner p { margin: 0 0 0.8rem; font-size: 1.2rem; color: #fff; opacity: .95; }

/* ----- Reveal animation ----- */
.s09d-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.s09d-reveal.s09d-revealed { opacity: 1; transform: none; }

/* ----- Footer ----- */
.s09d-footer {
  background: var(--s09d-bg-dark);
  border-top: 2px solid var(--s09d-primary);
  padding: 1.4rem 0 1rem;
  margin-top: 1.5rem;
}
.s09d-footer-brand { font-size: 1.2rem; color: var(--s09d-text-muted); margin: 0.5rem 0 0.8rem; }
.s09d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.5rem 0;
}
.s09d-footer-links a {
  font-size: 1.15rem;
  color: var(--s09d-ivory);
  text-decoration: underline;
}
.s09d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.s09d-copyright { font-size: 1.1rem; color: var(--s09d-text-muted); text-align: center; margin-top: 0.6rem; }

/* ----- Mobile bottom navigation ----- */
.s09d-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  z-index: 1000;
  background: linear-gradient(180deg, #344a63, var(--s09d-bg-dark));
  border-top: 2px solid var(--s09d-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -3px 12px rgba(0,0,0,.4);
}
.s09d-bottom-nav a, .s09d-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s09d-text-muted);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, transform .15s;
  position: relative;
}
.s09d-bottom-nav a:active, .s09d-bottom-nav button:active { transform: scale(0.92); }
.s09d-bottom-nav .material-icons-outlined,
.s09d-bottom-nav .material-icons,
.s09d-bottom-nav i { font-size: 24px; }
.s09d-bottom-nav a:hover, .s09d-bottom-nav button:hover { color: var(--s09d-mint); }
.s09d-bottom-nav .s09d-active { color: var(--s09d-primary); }
.s09d-bottom-nav .s09d-active::before {
  content: "";
  position: absolute;
  top: -2px; left: 30%; right: 30%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s09d-primary);
}
.s09d-bottom-nav .s09d-nav-badge {
  position: absolute;
  top: 6px; right: 22%;
  background: var(--s09d-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .s09d-main { padding-bottom: 84px; }
}

@media (min-width: 769px) {
  .s09d-bottom-nav { display: none; }
  .s09d-container { max-width: 760px; }
  .s09d-game-grid { grid-template-columns: repeat(6, 1fr); }
  .s09d-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .s09d-slide img { height: 320px; }
}
