/* ==========================================================================
   ph444 com casino - theme-982f.css
   All custom classes use the "s982-" prefix.
   Palette: #6A5ACD primary | #262626 dark bg | #9932CC accent | #F8F9FA text
   Mobile-first. Root font-size 62.5% (1rem = 10px).
   ========================================================================== */

:root {
  --s982-primary: #6A5ACD;
  --s982-bg: #262626;
  --s982-accent: #9932CC;
  --s982-text: #F8F9FA;
  --s982-muted: #B6B2C8;
  --s982-card: #322F3D;
  --s982-card-2: #2A2833;
  --s982-line: #3D3A4A;
  --s982-gold: #F2C14E;
  --s982-success: #46C29A;
  --s982-shadow: 0 2px 10px rgba(0, 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", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--s982-bg);
  color: var(--s982-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--s982-accent); text-decoration: none; }
a:hover { color: var(--s982-text); }

.s982-skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--s982-primary); color: #fff; padding: 8px 12px; z-index: 9999;
}
.s982-skip-link:focus { left: 0; }

/* ===================== Header ===================== */
.s982-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 60px; z-index: 1000;
  background: linear-gradient(90deg, #1F1B2E 0%, #3A2C57 60%, #4B2C73 100%);
  border-bottom: 1px solid var(--s982-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  box-shadow: var(--s982-shadow);
}
.s982-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--s982-text); font-weight: 700; font-size: 1.6rem;
  text-decoration: none; min-width: 0;
}
.s982-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s982-logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s982-logo-name b { color: var(--s982-gold); }

.s982-header-actions { display: flex; align-items: center; gap: 8px; }
.s982-menu-btn {
  background: transparent; border: 0; color: var(--s982-text);
  font-size: 2.0rem; cursor: pointer; padding: 6px 8px; line-height: 1;
  border-radius: 6px;
}
.s982-menu-btn:hover { background: rgba(255,255,255,0.08); }

.s982-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 1.4rem; font-weight: 700; cursor: pointer; border: 0;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.s982-btn:hover { transform: translateY(-1px); }
.s982-btn-primary { background: linear-gradient(135deg, var(--s982-accent), var(--s982-primary)); color: #fff; box-shadow: 0 4px 12px rgba(153,50,204,.35); }
.s982-btn-ghost { background: rgba(255,255,255,0.08); color: var(--s982-text); border: 1px solid rgba(255,255,255,0.18); }
.s982-btn-gold { background: linear-gradient(135deg, #F2C14E, #E08E0B); color: #2A1E00; }
.s982-btn-block { width: 100%; }

/* ===================== Mobile menu drawer ===================== */
.s982-mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0;
  background: #211E2C; border-bottom: 1px solid var(--s982-line);
  padding: 8px 14px 14px; z-index: 9999;
  transform: translateY(-130%); transition: transform .25s ease;
  max-height: calc(100vh - 60px); overflow-y: auto;
}
.s982-mobile-menu.s982-menu-open { transform: translateY(0); }
.s982-mobile-menu a {
  display: block; color: var(--s982-text); padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 600;
}
.s982-mobile-menu a:hover { background: rgba(154, 98, 215, 0.18); }

/* ===================== Layout ===================== */
.s982-main { padding-top: 70px; padding-bottom: 90px; max-width: 430px; margin: 0 auto; }
.s982-section { padding: 22px 14px; }
.s982-section h2 { font-size: 1.9rem; margin: 0 0 10px; color: var(--s982-text); }
.s982-section h3 { font-size: 1.65rem; margin: 14px 0 8px; color: var(--s982-gold); }
.s982-section p { margin: 0 0 10px; color: var(--s982-muted); }
.s982-section strong { color: var(--s982-text); }
.s982-list { padding-left: 18px; margin: 0 0 10px; color: var(--s982-muted); }
.s982-list li { margin-bottom: 6px; }

/* ===================== Carousel ===================== */
.s982-carousel { position: relative; padding: 6px 12px 0; }
.s982-slides { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--s982-shadow); }
.s982-slide {
  display: none; cursor: pointer; position: relative;
}
.s982-slide.s982-slide-active { display: block; }
.s982-slide img { width: 100%; height: 180px; object-fit: cover; }
.s982-slide-cap {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  color: #fff; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.8);
}
.s982-slide-cap span { color: var(--s982-gold); }
.s982-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.s982-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25);
  border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.s982-dot.s982-dot-active { background: var(--s982-gold); transform: scale(1.25); }

/* ===================== Hero / H1 ===================== */
.s982-hero { padding: 18px 14px 6px; }
.s982-hero h1 {
  font-size: 2.2rem; line-height: 1.35; margin: 0 0 8px;
  background: linear-gradient(90deg, #F8F9FA, #F2C14E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s982-hero p { color: var(--s982-muted); margin: 0 0 14px; }
.s982-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================== Game category ===================== */
.s982-cat-filter {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.s982-cat-filter::-webkit-scrollbar { display: none; }
.s982-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: var(--s982-card); color: var(--s982-muted);
  font-size: 1.3rem; font-weight: 600; border: 1px solid var(--s982-line);
  cursor: pointer; white-space: nowrap;
}
.s982-chip.s982-chip-active { background: var(--s982-accent); color: #fff; border-color: transparent; }

.s982-cat-section h2 {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px 0; font-size: 1.8rem;
}
.s982-cat-section h2 i { color: var(--s982-gold); }

.s982-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px 12px 4px;
}
.s982-game {
  display: flex; flex-direction: column; align-items: center;
  background: var(--s982-card); border-radius: 10px; padding: 6px;
  text-align: center; cursor: pointer; text-decoration: none;
  border: 1px solid var(--s982-line); transition: transform .15s, border-color .15s;
}
.s982-game:hover { transform: translateY(-2px); border-color: var(--s982-accent); }
.s982-game img { width: 100%; height: 76px; object-fit: cover; border-radius: 6px; }
.s982-game-name {
  font-size: 1.15rem; color: var(--s982-text); margin-top: 5px;
  font-weight: 600; line-height: 1.25; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===================== Cards ===================== */
.s982-card {
  background: var(--s982-card); border: 1px solid var(--s982-line);
  border-radius: 12px; padding: 14px; margin: 8px 12px;
  box-shadow: var(--s982-shadow);
}
.s982-card h3 { margin-top: 0; }
.s982-faq-item { border-bottom: 1px solid var(--s982-line); padding: 8px 0; }
.s982-faq-item:last-child { border-bottom: 0; }
.s982-faq-q { font-weight: 700; color: var(--s982-text); margin-bottom: 4px; }
.s982-faq-a { color: var(--s982-muted); font-size: 1.35rem; }

/* ===================== Promo / winners / testimonial rows ===================== */
.s982-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; }
.s982-row::-webkit-scrollbar { display: none; }
.s982-mini {
  flex: 0 0 120px; background: var(--s982-card-2); border-radius: 10px;
  padding: 8px; text-align: center; border: 1px solid var(--s982-line);
}
.s982-mini b { color: var(--s982-gold); display: block; }
.s982-mini small { color: var(--s982-muted); }

/* ===================== Footer ===================== */
.s982-footer {
  background: #1A1822; border-top: 1px solid var(--s982-line);
  padding: 18px 14px 28px; color: var(--s982-muted);
}
.s982-footer-brand { margin-bottom: 12px; }
.s982-footer-brand b { color: var(--s982-gold); }
.s982-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.s982-footer-links a {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--s982-text);
  font-size: 1.25rem; border: 1px solid var(--s982-line);
}
.s982-footer-links a:hover { background: var(--s982-accent); color: #fff; }
.s982-footer-site-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
  margin: 10px 0; font-size: 1.25rem;
}
.s982-footer-site-links a { color: var(--s982-muted); }
.s982-footer-site-links a:hover { color: var(--s982-accent); }
.s982-copy { font-size: 1.15rem; color: #6E6A7E; margin-top: 8px; }

/* ===================== Bottom nav ===================== */
.s982-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #2B2540 0%, #181521 100%);
  border-top: 1px solid var(--s982-line);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -3px 14px rgba(0,0,0,.4);
}
.s982-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--s982-muted);
  font-size: 1.05rem; gap: 2px; cursor: pointer; padding: 4px 2px;
  transition: color .15s, transform .15s;
}
.s982-bottom-nav-btn .material-icons,
.s982-bottom-nav-btn .ion,
.s982-bottom-nav-btn i { font-size: 22px; }
.s982-bottom-nav-btn:hover { color: var(--s982-text); transform: translateY(-1px); }
.s982-bottom-nav-btn.s982-nav-current { color: var(--s982-gold); }
.s982-bottom-nav-btn .s982-badge {
  position: absolute; transform: translate(8px, -8px);
  background: #E5413F; color: #fff; border-radius: 999px;
  padding: 0 5px; font-size: .95rem; line-height: 1.4;
}

/* ===================== Utilities ===================== */
.s982-text-center { text-align: center; }
.s982-mt-8 { margin-top: 8px; }
.s982-mt-16 { margin-top: 16px; }
.s982-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--s982-accent); color: #fff; font-size: 1.1rem; font-weight: 700;
}
.s982-note { background: rgba(106,90,205,.12); border-left: 3px solid var(--s982-primary); padding: 8px 10px; border-radius: 4px; color: var(--s982-muted); }
.s982-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.s982-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--s982-primary), var(--s982-accent)); }
.s982-rtp-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; margin: 6px 0; }
.s982-rtp-row b { color: var(--s982-gold); }

/* ===================== Mobile nav clearance ===================== */
@media (max-width: 768px) {
  .s982-main { padding-bottom: 80px; }
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  .s982-bottom-nav { display: none; }
  .s982-main { padding-bottom: 30px; }
  .s982-grid { grid-template-columns: repeat(6, 1fr); }
  .s982-slide img { height: 320px; }
}
