/* ===========================================================
 * Club 888 Casino - style-7763.css
 * All custom classes use the "pg77-" prefix for isolation.
 * Palette: #2C2C2C | #5D5D5D | #FDF5E6 | #D3D3D3 | #D2691E | #DCDCDC
 * =========================================================== */

:root {
  --pg77-bg: #2C2C2C;
  --pg77-bg-2: #3a3a3a;
  --pg77-bg-3: #5D5D5D;
  --pg77-text: #FDF5E6;
  --pg77-muted: #D3D3D3;
  --pg77-line: #DCDCDC;
  --pg77-primary: #D2691E;
  --pg77-primary-2: #b3591a;
  --pg77-gold: #e6a415;
  --pg77-dark: #1c1c1c;
  --pg77-radius: 12px;
  --pg77-radius-sm: 8px;
  --pg77-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Roboto", sans-serif;
  background: var(--pg77-bg);
  color: var(--pg77-text);
  line-height: 1.55;
  font-size: 14px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

a { color: var(--pg77-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--pg77-text); line-height: 1.3; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 18px 0 10px; }
h3 { font-size: 1.05rem; margin: 14px 0 8px; }

/* ---------- Layout helpers ---------- */
.pg77-container {
  width: 100%;
  padding: 0 12px;
}
.pg77-wrapper { padding: 12px; }
.pg77-section {
  padding: 18px 12px;
  border-top: 1px solid rgba(220, 220, 220, 0.12);
}
.pg77-section--alt { background: var(--pg77-bg-2); }
.pg77-center { text-align: center; }

/* ---------- Header ---------- */
.pg77-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c1c1c 0%, #2C2C2C 100%);
  border-bottom: 2px solid var(--pg77-primary);
  padding: 8px 10px;
}
.pg77-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pg77-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.pg77-brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--pg77-primary);
}
.pg77-brand-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--pg77-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg77-brand-text span { color: var(--pg77-primary); }
.pg77-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg77-icon-btn {
  background: transparent;
  border: 0;
  color: var(--pg77-text);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
.pg77-icon-btn:hover { background: rgba(210, 105, 30, 0.18); }

/* ---------- Buttons ---------- */
.pg77-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  min-height: 38px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pg77-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pg77-btn--register {
  background: linear-gradient(135deg, var(--pg77-gold), var(--pg77-primary));
  color: #1c1c1c;
  box-shadow: 0 4px 12px rgba(230, 164, 21, 0.35);
}
.pg77-btn--login {
  background: transparent;
  color: var(--pg77-text);
  border: 1.5px solid var(--pg77-primary);
}
.pg77-btn--ghost {
  background: rgba(253, 245, 230, 0.08);
  color: var(--pg77-text);
}
.pg77-btn--lg { padding: 12px 24px; font-size: 15px; min-height: 48px; }
.pg77-btn--block { display: flex; width: 100%; }
.pg77-text-link {
  color: var(--pg77-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Mobile menu ---------- */
.pg77-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: var(--pg77-dark);
}
.pg77-mobile-menu.pg77-menu-open { max-height: 480px; }
.pg77-mobile-menu ul {
  list-style: none;
  padding: 6px 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pg77-mobile-menu a {
  display: block;
  padding: 10px 12px;
  background: var(--pg77-bg-2);
  border-radius: var(--pg77-radius-sm);
  color: var(--pg77-text);
  font-size: 12.5px;
  border: 1px solid rgba(210, 105, 30, 0.25);
}
.pg77-mobile-menu a:hover { background: var(--pg77-primary); color: #1c1c1c; text-decoration: none; }

/* ---------- Hero / Carousel ---------- */
.pg77-hero {
  position: relative;
  margin: 10px 0 0;
  border-radius: var(--pg77-radius);
  overflow: hidden;
  box-shadow: var(--pg77-shadow);
}
.pg77-hero-slide {
  display: none;
  position: relative;
}
.pg77-hero-slide.pg77-active { display: block; }
.pg77-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.pg77-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0.05) 30%, rgba(28,28,28,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.pg77-hero-title {
  font-size: 1.25rem;
  color: var(--pg77-text);
  font-weight: 800;
  margin-bottom: 4px;
}
.pg77-hero-sub {
  color: var(--pg77-muted);
  font-size: 12.5px;
  margin-bottom: 10px;
}
.pg77-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pg77-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(253, 245, 230, 0.4);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.pg77-hero-dot.pg77-active { background: var(--pg77-gold); width: 18px; border-radius: 4px; }

/* ---------- Generic grid ---------- */
.pg77-grid {
  display: grid;
  gap: 10px;
}
.pg77-grid--games {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Game cards ---------- */
.pg77-game {
  background: var(--pg77-bg-2);
  border-radius: var(--pg77-radius);
  border: 1px solid rgba(220, 220, 220, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
  display: flex;
  flex-direction: column;
}
.pg77-game:hover {
  transform: translateY(-2px);
  border-color: var(--pg77-primary);
}
.pg77-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}
.pg77-game-name {
  padding: 6px 6px 8px;
  font-size: 11px;
  text-align: center;
  color: var(--pg77-muted);
  line-height: 1.25;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg77-game-badge {
  position: relative;
}
.pg77-game-badge::after {
  content: "HOT";
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--pg77-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ---------- Category header ---------- */
.pg77-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  gap: 8px;
}
.pg77-cat-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pg77-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg77-cat-title i { color: var(--pg77-gold); font-size: 1.1rem; }
.pg77-cat-more {
  font-size: 12px;
  color: var(--pg77-gold);
  font-weight: 700;
}

/* ---------- Info / feature / security cards ---------- */
.pg77-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pg77-card {
  background: var(--pg77-bg-2);
  border-radius: var(--pg77-radius);
  padding: 14px;
  border: 1px solid rgba(220, 220, 220, 0.1);
}
.pg77-card h3 { color: var(--pg77-gold); margin-bottom: 6px; }
.pg77-card p { color: var(--pg77-muted); font-size: 13px; }
.pg77-card i { color: var(--pg77-primary); }

.pg77-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg77-feature {
  background: var(--pg77-bg-2);
  padding: 14px 10px;
  border-radius: var(--pg77-radius);
  text-align: center;
  border: 1px solid rgba(210, 105, 30, 0.2);
}
.pg77-feature i { font-size: 26px; color: var(--pg77-gold); }
.pg77-feature h4 { font-size: 13px; margin: 6px 0 4px; color: var(--pg77-text); }
.pg77-feature p { font-size: 11.5px; color: var(--pg77-muted); }

/* ---------- RTP table ---------- */
.pg77-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pg77-bg-2);
  border-radius: var(--pg77-radius-sm);
  overflow: hidden;
  font-size: 12.5px;
}
.pg77-rtp-table th, .pg77-rtp-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(220, 220, 220, 0.1);
}
.pg77-rtp-table th { background: var(--pg77-primary); color: #1c1c1c; font-weight: 800; }
.pg77-rtp-table td:last-child { color: var(--pg77-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.pg77-testi {
  background: var(--pg77-bg-2);
  padding: 12px;
  border-radius: var(--pg77-radius);
  border-left: 3px solid var(--pg77-gold);
  margin-bottom: 10px;
}
.pg77-testi p { color: var(--pg77-muted); font-size: 12.5px; font-style: italic; }
.pg77-testi .pg77-testi-name { color: var(--pg77-gold); font-weight: 700; font-size: 12px; margin-top: 6px; }

/* ---------- Winners ---------- */
.pg77-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pg77-bg-2);
  padding: 10px;
  border-radius: var(--pg77-radius-sm);
  margin-bottom: 8px;
}
.pg77-winner i { color: var(--pg77-gold); font-size: 20px; }
.pg77-winner div b { color: var(--pg77-text); font-size: 13px; }
.pg77-winner div span { color: var(--pg77-muted); font-size: 11.5px; display: block; }
.pg77-winner .pg77-amt { margin-left: auto; color: #6cd16c; font-weight: 800; font-size: 13px; }

/* ---------- Payment ---------- */
.pg77-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pg77-pay {
  background: var(--pg77-bg-2);
  border-radius: var(--pg77-radius-sm);
  padding: 10px 4px;
  text-align: center;
  border: 1px solid rgba(220, 220, 220, 0.12);
}
.pg77-pay i { font-size: 22px; color: var(--pg77-gold); }
.pg77-pay span { display: block; font-size: 10.5px; color: var(--pg77-muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.pg77-faq-item {
  background: var(--pg77-bg-2);
  border-radius: var(--pg77-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(220, 220, 220, 0.1);
}
.pg77-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--pg77-text);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.pg77-faq-q .pg77-faq-ico { color: var(--pg77-gold); transition: transform 0.2s; }
.pg77-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--pg77-muted);
  font-size: 12.5px;
  padding: 0 14px;
}
.pg77-faq-item.pg77-open .pg77-faq-a { max-height: 240px; padding-bottom: 12px; }
.pg77-faq-item.pg77-open .pg77-faq-ico { transform: rotate(45deg); }

/* ---------- App CTA ---------- */
.pg77-app-cta {
  background: linear-gradient(135deg, var(--pg77-primary), var(--pg77-primary-2));
  border-radius: var(--pg77-radius);
  padding: 18px 14px;
  text-align: center;
  color: #fff;
}
.pg77-app-cta h3 { color: #fff; }
.pg77-app-cta p { color: rgba(255,255,255,0.92); font-size: 12.5px; margin: 6px 0 12px; }
.pg77-app-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.pg77-footer {
  background: var(--pg77-dark);
  padding: 18px 12px 26px;
  border-top: 2px solid var(--pg77-primary);
  font-size: 12px;
  color: var(--pg77-muted);
}
.pg77-footer h4 { color: var(--pg77-text); margin-bottom: 8px; font-size: 13px; }
.pg77-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 12px;
}
.pg77-footer-links a { color: var(--pg77-muted); font-size: 12px; }
.pg77-footer-links a:hover { color: var(--pg77-gold); }
.pg77-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.pg77-footer-promo .pg77-btn { flex: 1; min-width: 120px; }
.pg77-footer-copy {
  border-top: 1px solid rgba(220, 220, 220, 0.12);
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11px;
  color: var(--pg77-muted);
  text-align: center;
}

/* ---------- Toast ---------- */
.pg77-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: rgba(28, 28, 28, 0.96);
  color: var(--pg77-text);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--pg77-primary);
  font-size: 12.5px;
  z-index: 5000;
  box-shadow: var(--pg77-shadow);
}

/* ---------- Bottom navigation ---------- */
.pg77-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1c1c1c, #000);
  border-top: 2px solid var(--pg77-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  z-index: 1000;
  padding: 4px 0 2px;
}
.pg77-bottom-nav button {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--pg77-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 58px;
  cursor: pointer;
  font-size: 10px;
  transition: color 0.15s, transform 0.15s;
  padding: 4px 2px;
}
.pg77-bottom-nav button i,
.pg77-bottom-nav button .material-icons-outlined {
  font-size: 22px;
}
.pg77-bottom-nav button:hover { color: var(--pg77-gold); transform: translateY(-1px); }
.pg77-bottom-nav button.pg77-active { color: var(--pg77-gold); }
.pg77-bottom-nav .pg77-nav-label { font-size: 10px; line-height: 1; }
.pg77-bottom-nav .pg77-nav-badge {
  position: absolute;
  background: var(--pg77-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  margin-top: -8px;
  margin-left: 18px;
}

/* ---------- Misc ---------- */
.pg77-lead {
  font-size: 13.5px;
  color: var(--pg77-muted);
  margin-bottom: 12px;
}
.pg77-kicker {
  display: inline-block;
  background: rgba(210, 105, 30, 0.18);
  color: var(--pg77-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.pg77-seo-text { font-size: 13px; color: var(--pg77-muted); }
.pg77-seo-text p { margin-bottom: 10px; }
.pg77-seo-text strong { color: var(--pg77-text); }
.pg77-note {
  font-size: 11.5px;
  color: var(--pg77-muted);
  border-left: 3px solid var(--pg77-primary);
  padding: 6px 10px;
  background: rgba(210, 105, 30, 0.08);
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .pg77-bottom-nav { display: none; }
}

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

@media (min-width: 431px) {
  body { box-shadow: 0 0 24px rgba(0,0,0,0.4); }
}
