/* ============================================
   888jili - theme-5566.css
   Basefiles CSS (prefix: pg55-)
   Palette: #B22222 | #6C757D | #212F3D | #8B0000
   Mobile-first, max-width 430px
   ============================================ */

:root {
  --pg55-primary: #B22222;
  --pg55-primary-dark: #8B0000;
  --pg55-accent: #F2C200;
  --pg55-bg: #212F3D;
  --pg55-bg-2: #1A242E;
  --pg55-bg-3: #283A4A;
  --pg55-text: #F4F6F8;
  --pg55-text-mute: #B7C0CA;
  --pg55-gray: #6C757D;
  --pg55-border: rgba(255,255,255,0.08);
  --pg55-radius: 12px;
  --pg55-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pg55-bg);
  color: var(--pg55-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.pg55-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
.pg55-wrapper { padding-bottom: 24px; }
main { padding-bottom: 80px; }

/* ===== Header ===== */
.pg55-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A242E 0%, #212F3D 100%);
  border-bottom: 1px solid var(--pg55-border);
  box-shadow: var(--pg55-shadow);
}
.pg55-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.pg55-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.pg55-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg55-logo .pg55-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pg55-accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pg55-header-actions { display: flex; gap: 6px; }
.pg55-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.3rem;
  font-weight: 700;
  min-height: 36px;
  min-width: 44px;
  transition: transform .15s, opacity .15s;
}
.pg55-btn:active { transform: scale(0.96); }
.pg55-btn-login {
  background: transparent;
  color: var(--pg55-text);
  border: 1px solid var(--pg55-gray);
}
.pg55-btn-register {
  background: linear-gradient(180deg, var(--pg55-primary) 0%, var(--pg55-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(178,34,34,0.45);
}
.pg55-menu-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  font-size: 1.8rem;
  color: var(--pg55-text);
}

/* Mobile expand menu */
.pg55-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 9999;
  background: var(--pg55-bg-2);
  border-bottom: 1px solid var(--pg55-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.pg55-mobile-menu.pg55-open { max-height: 420px; }
.pg55-mobile-menu ul { padding: 6px 12px; }
.pg55-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg55-border);
  color: var(--pg55-text);
}
.pg55-mobile-menu li:last-child a { border-bottom: none; }
.pg55-mobile-menu li a i { width: 22px; text-align: center; color: var(--pg55-accent); }

/* ===== Hero Carousel ===== */
.pg55-hero { margin-top: 56px; }
.pg55-carousel {
  position: relative;
  border-radius: var(--pg55-radius);
  overflow: hidden;
  background: #000;
}
.pg55-slide {
  position: relative;
  display: none;
  width: 100%;
}
.pg55-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg55-slide.pg55-active { display: block; }
.pg55-slide .pg55-slide-cap {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%);
  padding: 24px 12px 8px;
  color: #fff;
  border-radius: 0 0 8px 8px;
}
.pg55-slide-cap h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 2px; }
.pg55-slide-cap p { font-size: 1.2rem; opacity: 0.92; }
.pg55-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.pg55-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pg55-gray);
  opacity: 0.6;
}
.pg55-dot.pg55-active { background: var(--pg55-accent); opacity: 1; }

/* ===== Section title ===== */
.pg55-section { padding: 18px 0; }
.pg55-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pg55-section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pg55-accent);
  display: flex; align-items: center; gap: 6px;
}
.pg55-section-head .pg55-more {
  font-size: 1.2rem;
  color: var(--pg55-text-mute);
}

/* ===== Game grid ===== */
.pg55-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.pg55-cat-tabs::-webkit-scrollbar { display: none; }
.pg55-filter-btn {
  white-space: nowrap;
  padding: 6px 14px;
  font-size: 1.2rem;
  border-radius: 20px;
  background: var(--pg55-bg-3);
  color: var(--pg55-text-mute);
}
.pg55-filter-btn.pg55-active {
  background: var(--pg55-primary);
  color: #fff;
}
.pg55-cat-title {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--pg55-primary);
}
.pg55-cat-title h3 {
  font-size: 1.4rem; font-weight: 700; color: var(--pg55-text);
}
.pg55-cat-title .pg55-cat-tag {
  font-size: 1.1rem; color: var(--pg55-text-mute); margin-left: auto;
}
.pg55-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pg55-game-card {
  position: relative;
  background: var(--pg55-bg-2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pg55-border);
}
.pg55-game-card a { display: block; }
.pg55-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}
.pg55-game-card .pg55-game-name {
  padding: 4px 6px;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: var(--pg55-text-mute);
}
.pg55-game-card:hover .pg55-game-name { color: var(--pg55-accent); }

/* ===== Info modules ===== */
.pg55-card {
  background: var(--pg55-bg-2);
  border-radius: var(--pg55-radius);
  padding: 14px;
  border: 1px solid var(--pg55-border);
  margin-bottom: 12px;
}
.pg55-card h3 {
  font-size: 1.5rem; font-weight: 700; color: var(--pg55-accent);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.pg55-card p { font-size: 1.25rem; color: var(--pg55-text); margin-bottom: 8px; line-height: 1.6rem; }
.pg55-card ul { padding-left: 18px; }
.pg55-card ul li { font-size: 1.2rem; color: var(--pg55-text-mute); margin-bottom: 4px; list-style: disc; }

/* Promo inline link (text style) */
.pg55-promo-link {
  color: var(--pg55-accent);
  font-weight: 700;
  border-bottom: 1px dashed var(--pg55-accent);
}
.pg55-promo-btn {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, var(--pg55-primary) 0%, var(--pg55-primary-dark) 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 6px 4px 6px 0;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(178,34,34,0.45);
}

/* Feature grid */
.pg55-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pg55-feature {
  background: var(--pg55-bg-3);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--pg55-border);
}
.pg55-feature i { font-size: 2.4rem; color: var(--pg55-accent); }
.pg55-feature h4 { font-size: 1.3rem; margin: 6px 0 4px; color: var(--pg55-text); }
.pg55-feature p { font-size: 1.1rem; color: var(--pg55-text-mute); line-height: 1.4rem; }

/* RTP compact table */
.pg55-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.pg55-rtp-table th, .pg55-rtp-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--pg55-border);
}
.pg55-rtp-table th { color: var(--pg55-accent); font-size: 1.15rem; }
.pg55-rtp-bar {
  display: inline-block;
  height: 6px;
  background: var(--pg55-primary);
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Testimonials */
.pg55-testi {
  background: var(--pg55-bg-3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--pg55-primary);
}
.pg55-testi .pg55-testi-user { font-weight: 700; color: var(--pg55-accent); font-size: 1.25rem; }
.pg55-testi p { font-size: 1.2rem; color: var(--pg55-text); margin-top: 4px; }
.pg55-stars { color: var(--pg55-accent); font-size: 1.1rem; }

/* Payment methods */
.pg55-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pg55-pay-item {
  background: var(--pg55-bg-3);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg55-text-mute);
  border: 1px solid var(--pg55-border);
}
.pg55-pay-item i { font-size: 2rem; color: var(--pg55-accent); display: block; margin-bottom: 4px; }

/* Winners showcase */
.pg55-winner {
  display: flex; align-items: center; gap: 8px;
  background: var(--pg55-bg-3);
  padding: 8px; border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.pg55-winner .pg55-win-amount {
  margin-left: auto; color: var(--pg55-accent); font-weight: 800;
}

/* App download CTA */
.pg55-app-cta {
  background: linear-gradient(135deg, var(--pg55-primary) 0%, var(--pg55-primary-dark) 100%);
  border-radius: var(--pg55-radius);
  padding: 16px;
  text-align: center;
  color: #fff;
  margin-bottom: 12px;
}
.pg55-app-cta h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.pg55-app-cta p { font-size: 1.2rem; opacity: 0.92; margin-bottom: 10px; }
.pg55-app-cta .pg55-app-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pg55-app-cta .pg55-app-btns button {
  background: #fff;
  color: var(--pg55-primary-dark);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; gap: 6px;
}

/* FAQ */
.pg55-faq-item {
  background: var(--pg55-bg-2);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--pg55-border);
  overflow: hidden;
}
.pg55-faq-q {
  padding: 12px;
  font-size: 1.3rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--pg55-text);
}
.pg55-faq-q .pg55-faq-icon { color: var(--pg55-accent); }
.pg55-faq-item .pg55-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 12px;
}
.pg55-faq-item.pg55-open .pg55-faq-a {
  max-height: 240px;
  padding: 0 12px 12px;
  font-size: 1.2rem;
  color: var(--pg55-text-mute);
}

/* Play now floating CTA inside content */
.pg55-playnow {
  text-align: center;
  background: linear-gradient(135deg, #212F3D 0%, #8B0000 100%);
  padding: 18px 12px;
  border-radius: var(--pg55-radius);
  margin: 14px 0;
}
.pg55-playnow h3 { font-size: 1.7rem; font-weight: 800; color: var(--pg55-accent); margin-bottom: 6px; }
.pg55-playnow p { font-size: 1.2rem; color: var(--pg55-text); margin-bottom: 10px; }
.pg55-playnow .pg55-promo-btn { font-size: 1.5rem; padding: 14px 28px; }

/* Security strip */
.pg55-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pg55-security-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--pg55-bg-3);
  padding: 10px; border-radius: 8px;
  font-size: 1.2rem;
}
.pg55-security-item i { color: #2ECC71; font-size: 1.8rem; }

/* Category highlights */
.pg55-cat-high {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pg55-cat-high a{
  background: var(--pg55-bg-3);
  padding: 12px; border-radius: 10px;
  text-align: center;
  border: 1px solid var(--pg55-border);
}
.pg55-cat-high i { font-size: 2rem; color: var(--pg55-accent); }
.pg55-cat-high h4 { font-size: 1.25rem; margin: 4px 0; color: var(--pg55-text); }
.pg55-cat-high p { font-size: 1.05rem; color: var(--pg55-text-mute); line-height: 1.35rem; }

/* ===== Footer ===== */
.pg55-footer {
  background: var(--pg55-bg-2);
  border-top: 1px solid var(--pg55-border);
  padding: 18px 12px 20px;
  margin-top: 16px;
}
.pg55-footer .pg55-foot-brand {
  font-size: 1.4rem; color: var(--pg55-accent); font-weight: 800; margin-bottom: 4px;
}
.pg55-footer p { font-size: 1.15rem; color: var(--pg55-text-mute); margin-bottom: 10px; line-height: 1.45rem; }
.pg55-foot-links {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.pg55-foot-links a{
  font-size: 1.15rem;
  color: var(--pg55-text);
  padding: 6px 10px;
  background: var(--pg55-bg-3);
  border-radius: 6px;
  border: 1px solid var(--pg55-border);
}
.pg55-foot-promos {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.pg55-foot-promos button {
  flex: 1;
  min-height: 40px;
  background: var(--pg55-primary-dark);
  color: #fff;
  border-radius: 6px;
  font-size: 1.15rem; font-weight: 700;
  padding: 8px 6px;
}
.pg55-foot-copy {
  font-size: 1.05rem; color: var(--pg55-text-mute); text-align: center; margin-top: 8px;
}

/* ===== Mobile Bottom Nav ===== */
.pg55-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: linear-gradient(180deg, #1A242E 0%, #11181F 100%);
  border-top: 1px solid var(--pg55-border);
  height: 62px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.45);
}
.pg55-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  color: var(--pg55-text-mute);
  transition: transform .15s, color .15s;
}
.pg55-bnav-btn i, .pg55-bnav-btn .material-icons-outlined,
.pg55-bnav-btn .bi, .pg55-bnav-btn ion-icon {
  font-size: 22px;
}
.pg55-bnav-btn span { font-size: 1rem; }
.pg55-bnav-btn:active { transform: scale(0.92); }
.pg55-bnav-btn.pg55-active { color: var(--pg55-accent); }
.pg55-bnav-btn.pg55-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--pg55-accent);
  border-radius: 0 0 3px 3px;
}
.pg55-bnav-btn.pg55-promo i { color: var(--pg55-primary); }
.pg55-bnav-btn.pg55-promo span { color: var(--pg55-text); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .pg55-bnav { display: none; }
  main { padding-bottom: 24px; }
  .pg55-container { max-width: 768px; }
  .pg55-game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile bottom padding clearance (default main has 80px) */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Utility */
.pg55-text-center { text-align: center; }
.pg55-mt8 { margin-top: 8px; } .pg55-mt12 { margin-top: 12px; }
.pg55-hide { display: none; }
.pg55-row { display: flex; gap: 8px; flex-wrap: wrap; }