/* ============================================================
   Bee PH - design-19d3.css
   Palette: #141414 (bg) | #8B4513 (brand) | #F5DEB3 (accent)
            #FAFAFA (text)
   Mobile-first, max 430px content, prefixed with s19d-.
   ============================================================ */

:root {
  --s19d-bg: #141414;
  --s19d-bg-2: #1f1a16;
  --s19d-bg-3: #2a211a;
  --s19d-primary: #8B4513;
  --s19d-primary-2: #a65a1f;
  --s19d-accent: #F5DEB3;
  --s19d-text: #FAFAFA;
  --s19d-text-soft: #d9cdb8;
  --s19d-muted: #9a8c78;
  --s19d-border: rgba(245, 222, 179, 0.16);
  --s19d-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --s19d-radius: 12px;
  --s19d-radius-sm: 8px;
  --s19d-header-h: 56px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--s19d-bg);
  color: var(--s19d-text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; }
a { color: var(--s19d-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.s19d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, #141414 0%, #1a1410 100%);
  min-height: 100vh;
}
.s19d-container {
  width: 100%;
  padding: 0 14px;
}
main { padding-bottom: 84px; }

/* ---------- Header ---------- */
.s19d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1a1410, #2a1d12);
  border-bottom: 1px solid var(--s19d-border);
  box-shadow: var(--s19d-shadow);
}
.s19d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--s19d-header-h);
  padding: 0 12px;
}
.s19d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--s19d-accent);
  letter-spacing: .5px;
}
.s19d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s19d-logo .material-icons, .s19d-logo .fas { color: var(--s19d-accent); font-size: 22px; }

.s19d-header-actions { display: flex; align-items: center; gap: 8px; }
.s19d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s ease, filter .15s ease;
}
.s19d-btn:active { transform: scale(0.95); }
.s19d-btn-login {
  background: transparent;
  color: var(--s19d-accent);
  border: 1px solid var(--s19d-accent);
}
.s19d-btn-register {
  background: linear-gradient(90deg, var(--s19d-primary), var(--s19d-primary-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.45);
}
.s19d-menu-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--s19d-accent);
  border-radius: 8px;
  border: 1px solid var(--s19d-border);
}
.s19d-menu-toggle .material-icons { font-size: 26px; }

/* ---------- Mobile menu drawer ---------- */
.s19d-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.s19d-overlay-active { opacity: 1; pointer-events: auto; }
.s19d-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: #1a1410;
  z-index: 9999;
  padding: 22px 18px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--s19d-border);
}
.s19d-menu-open { right: 0; }
.s19d-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.s19d-menu-title { color: var(--s19d-accent); font-weight: 800; font-size: 1.2rem; }
.s19d-menu-close {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--s19d-border);
  color: var(--s19d-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.s19d-mobile-menu ul { list-style: none; }
.s19d-mobile-menu li { border-bottom: 1px solid var(--s19d-border); }
.s19d-mobile-menu a {
  display: block; padding: 14px 6px;
  color: var(--s19d-text);
  font-size: 1rem;
}
.s19d-mobile-menu a:active { color: var(--s19d-accent); }

/* ---------- Hero carousel ---------- */
.s19d-carousel {
  position: relative;
  margin: 14px 0;
  border-radius: var(--s19d-radius);
  overflow: hidden;
  box-shadow: var(--s19d-shadow);
}
.s19d-slides { position: relative; }
.s19d-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.s19d-slide img { width: 100%; height: 180px; object-fit: cover; }
.s19d-slide-active { display: block; animation: s19dfade .5s ease; }
@keyframes s19dfade { from { opacity: 0.4; } to { opacity: 1; } }
.s19d-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
}
.s19d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 222, 179, 0.45);
}
.s19d-dot-active { background: var(--s19d-accent); width: 22px; border-radius: 4px; }
.s19d-slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.s19d-slide-arrow .material-icons { font-size: 20px; }
#s19d-slide-prev { left: 8px; }
#s19d-slide-next { right: 8px; }

/* ---------- Section ---------- */
.s19d-section {
  padding: 18px 14px 8px;
}
.s19d-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem;
  color: var(--s19d-accent);
  font-weight: 800;
  margin-bottom: 12px;
  border-left: 4px solid var(--s19d-primary-2);
  padding-left: 10px;
}
.s19d-section-title .fas, .s19d-section-title .material-icons { font-size: 20px; }
.s19d-section p { color: var(--s19d-text-soft); margin-bottom: 10px; font-size: .98rem; }
.s19d-section h1 {
  font-size: 1.5rem; line-height: 1.35;
  color: var(--s19d-text);
  margin: 10px 0 12px;
}
.s19d-section h2 { font-size: 1.18rem; color: var(--s19d-accent); margin: 16px 0 8px; }
.s19d-section h3 { font-size: 1.02rem; color: var(--s19d-text); margin: 12px 0 6px; }
.s19d-section strong { color: var(--s19d-accent); }
.s19d-promo-text {
  color: var(--s19d-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--s19d-accent);
}

/* ---------- Category header ---------- */
.s19d-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 10px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--s19d-primary), transparent);
  border-radius: var(--s19d-radius-sm);
}
.s19d-cat-head h2 { color: #fff; font-size: 1.12rem; font-weight: 800; }

/* ---------- Game grid ---------- */
.s19d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s19d-game-card {
  background: var(--s19d-bg-2);
  border: 1px solid var(--s19d-border);
  border-radius: var(--s19d-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.s19d-game-card:active { transform: scale(0.96); }
.s19d-game-card img {
  width: 100%; height: 84px; object-fit: cover;
  border-bottom: 1px solid var(--s19d-border);
}
.s19d-game-name {
  display: block;
  padding: 6px 4px;
  font-size: .78rem;
  color: var(--s19d-text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards / info blocks ---------- */
.s19d-card {
  background: var(--s19d-bg-2);
  border: 1px solid var(--s19d-border);
  border-radius: var(--s19d-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.s19d-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s19d-feature {
  background: var(--s19d-bg-3);
  border-radius: var(--s19d-radius-sm);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--s19d-border);
}
.s19d-feature .material-icons, .s19d-feature .fas, .s19d-feature .bi {
  font-size: 26px; color: var(--s19d-accent);
}
.s19d-feature b { display: block; margin: 4px 0 2px; color: var(--s19d-text); }
.s19d-feature span { font-size: .82rem; color: var(--s19d-muted); }

/* ---------- RTP table ---------- */
.s19d-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--s19d-border);
  font-size: .92rem;
}
.s19d-rtp-row:last-child { border-bottom: none; }
.s19d-rtp-bar {
  width: 60px; height: 6px; border-radius: 3px;
  background: rgba(245, 222, 179, 0.18);
  overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 8px;
}
.s19d-rtp-bar i { display: block; height: 100%; background: var(--s19d-accent); }

/* ---------- Testimonials ---------- */
.s19d-quote {
  background: var(--s19d-bg-3);
  border-radius: var(--s19d-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--s19d-primary-2);
}
.s19d-quote p { font-size: .9rem; color: var(--s19d-text-soft); margin-bottom: 6px; }
.s19d-quote small { color: var(--s19d-muted); }

/* ---------- Payment ---------- */
.s19d-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.s19d-pay {
  flex: 1 1 calc(33.33% - 8px);
  background: var(--s19d-bg-3);
  border: 1px solid var(--s19d-border);
  border-radius: var(--s19d-radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: .8rem; color: var(--s19d-text-soft);
}
.s19d-pay .fab, .s19d-pay .bi { font-size: 22px; color: var(--s19d-accent); display: block; margin-bottom: 4px; }

/* ---------- Winners ---------- */
.s19d-winner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--s19d-border);
}
.s19d-winner img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.s19d-winner b { color: var(--s19d-accent); display: block; font-size: .92rem; }
.s19d-winner span { font-size: .82rem; color: var(--s19d-muted); }

/* ---------- CTA block ---------- */
.s19d-cta {
  background: linear-gradient(135deg, var(--s19d-primary), var(--s19d-primary-2));
  border-radius: var(--s19d-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
  color: #fff;
}
.s19d-cta h2 { color: #fff; }
.s19d-cta p { color: #f3e6d1; margin-bottom: 12px; }
.s19d-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--s19d-accent); color: #2a1d12;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 800; font-size: 1rem;
}

/* ---------- App download ---------- */
.s19d-app {
  display: flex; gap: 12px; align-items: center;
  background: var(--s19d-bg-2); border: 1px solid var(--s19d-border);
  border-radius: var(--s19d-radius); padding: 14px; margin-bottom: 12px;
}
.s19d-app img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.s19d-app-body b { color: var(--s19d-accent); display: block; margin-bottom: 4px; }
.s19d-app-body p { font-size: .86rem; color: var(--s19d-text-soft); margin-bottom: 8px; }
.s19d-app-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--s19d-primary-2); color: #fff;
  padding: 8px 14px; border-radius: 6px; font-size: .85rem; font-weight: 700;
}

/* ---------- FAQ ---------- */
.s19d-faq-item {
  background: var(--s19d-bg-2);
  border: 1px solid var(--s19d-border);
  border-radius: var(--s19d-radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.s19d-faq-item b { color: var(--s19d-accent); display: block; margin-bottom: 4px; }
.s19d-faq-item p { font-size: .92rem; color: var(--s19d-text-soft); }

/* ---------- Footer ---------- */
.s19d-footer {
  background: #100b07;
  border-top: 1px solid var(--s19d-border);
  padding: 20px 14px 24px;
  color: var(--s19d-text-soft);
}
.s19d-footer p { font-size: .86rem; margin-bottom: 10px; color: var(--s19d-muted); }
.s19d-footer h3 { color: var(--s19d-accent); font-size: 1rem; margin: 14px 0 8px; }
.s19d-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.s19d-footer-links a {
  flex: 1 1 calc(50% - 8px);
  background: var(--s19d-bg-2);
  border: 1px solid var(--s19d-border);
  border-radius: var(--s19d-radius-sm);
  padding: 8px 10px;
  font-size: .85rem; color: var(--s19d-text-soft);
}
.s19d-footer-links a:active { color: var(--s19d-accent); }
.s19d-promo-buttons {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.s19d-promo-buttons button {
  flex: 1 1 calc(50% - 8px);
  background: linear-gradient(90deg, var(--s19d-primary), var(--s19d-primary-2));
  color: #fff;
  padding: 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
}
.s19d-copyright {
  text-align: center; padding-top: 14px;
  border-top: 1px solid var(--s19d-border);
  font-size: .78rem; color: var(--s19d-muted);
}

/* ---------- Bottom nav ---------- */
.s19d-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #1f1812, #100b07);
  border-top: 1px solid var(--s19d-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}
.s19d-bottom-nav-btn {
  min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--s19d-text-soft);
  transition: transform .15s ease, color .15s ease;
  position: relative;
}
.s19d-bottom-nav-btn:active { transform: scale(0.9); }
.s19d-bottom-nav-btn .material-icons,
.s19d-bottom-nav-btn .fas,
.s19d-bottom-nav-btn .far,
.s19d-bottom-nav-btn .bi,
.s19d-bottom-nav-btn .icon {
  font-size: 24px;
}
.s19d-bottom-nav-btn span.lbl { font-size: 11px; }
.s19d-bottom-nav-active { color: var(--s19d-accent); }
.s19d-bottom-nav-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 2px; background: var(--s19d-accent);
}
.s19d-nav-badge {
  position: absolute; top: 6px; right: 16px;
  background: #d4502a; color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 999px;
}

/* ---------- Back to top ---------- */
#s19d-back-top {
  position: fixed; right: 14px; bottom: 76px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--s19d-primary-2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  box-shadow: var(--s19d-shadow);
}
.s19d-back-top-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s19d-bottom-nav { display: none; }
  .s19d-menu-toggle { display: none; }
  main { padding-bottom: 24px; }
  .s19d-wrapper { max-width: 720px; }
  .s19d-header-inner { max-width: 720px; }
}

/* ---------- Touch target safeguard ---------- */
@media (max-width: 768px) {
  .s19d-btn, .s19d-game-card, .s19d-bottom-nav-btn, .s19d-footer-links a {
    min-height: 44px;
  }
}
