/* ==========================================================================
   q8xx.click - Core stylesheet (prefix: pg56-)
   Mobile-first casino / gaming site
   ========================================================================== */

:root {
  --pg56-bg-dark: #0D1117;
  --pg56-bg-mid: #131b24;
  --pg56-bg-soft: #1a2530;
  --pg56-cyan: #00E5FF;
  --pg56-mint: #80CBC4;
  --pg56-sky: #00BFFF;
  --pg56-text: #DEE2E6;
  --pg56-text-mute: #9fb0bd;
  --pg56-mint-soft: #E8F5E8;
  --pg56-accent: #00E5FF;
  --pg56-warn: #ffd54f;
  --pg56-radius: 12px;
  --pg56-radius-lg: 18px;
  --pg56-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pg56-header-h: 56px;
  --pg56-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--pg56-bg-dark);
  color: var(--pg56-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  overflow-x: hidden;
}

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

a { color: var(--pg56-cyan); text-decoration: none; }
a:hover { color: var(--pg56-sky); }

.pg56-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.pg56-container {
  padding: 0 14px;
}

main { padding-bottom: calc(var(--pg56-bottomnav-h) + 18px); }

/* ---------------- Header ---------------- */
.pg56-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a1016 0%, #0D1117 100%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.pg56-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg56-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pg56-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pg56-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pg56-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pg56-cyan);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pg56-brand-name span { color: var(--pg56-text); }

.pg56-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg56-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pg56-btn:active { transform: scale(0.96); }

.pg56-btn-login {
  background: transparent;
  color: var(--pg56-cyan);
  border: 1px solid var(--pg56-cyan);
}

.pg56-btn-register {
  background: linear-gradient(135deg, #00E5FF 0%, #00BFFF 100%);
  color: #052029;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
}

.pg56-btn-register:hover { color: #052029; }

.pg56-menu-btn {
  background: transparent;
  color: var(--pg56-text);
  border: 1px solid rgba(0, 229, 255, 0.25);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Mobile menu ---------------- */
.pg56-mobile-menu {
  position: fixed;
  top: var(--pg56-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--pg56-bg-mid);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.pg56-mobile-menu.pg56-menu-open { max-height: 460px; }

.pg56-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px 14px;
  max-width: 430px;
  margin: 0 auto;
}

.pg56-mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pg56-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: var(--pg56-text);
  font-size: 0.95rem;
}

.pg56-mobile-menu a span.pg56-mi { color: var(--pg56-cyan); font-size: 1.2rem; }

/* ---------------- Hero carousel ---------------- */
.pg56-hero {
  margin-top: var(--pg56-header-h);
  position: relative;
  padding: 12px 0 6px;
}

.pg56-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg56-radius-lg);
  overflow: hidden;
  box-shadow: var(--pg56-shadow);
}

.pg56-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }

.pg56-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg56-carousel-slide.pg56-slide-active { opacity: 1; }

.pg56-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.pg56-carousel-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pg56-carousel-caption h2 { margin: 0 0 4px; font-size: 1.05rem; }

.pg56-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pg56-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.pg56-carousel-dot.pg56-dot-active { background: var(--pg56-cyan); }

/* ---------------- Section base ---------------- */
.pg56-section {
  padding: 18px 0;
}

.pg56-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pg56-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pg56-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.pg56-section-title .pg56-mi { color: var(--pg56-cyan); }

.pg56-section-more { font-size: 0.8rem; color: var(--pg56-cyan); }

.pg56-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}

.pg56-filter-row::-webkit-scrollbar { display: none; }

.pg56-filter-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pg56-bg-soft);
  color: var(--pg56-text-mute);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pg56-filter-chip.pg56-chip-active {
  background: linear-gradient(135deg, #00E5FF, #00BFFF);
  color: #052029;
  border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.pg56-game-section { margin-bottom: 18px; }

.pg56-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pg56-game-card {
  background: var(--pg56-bg-mid);
  border-radius: var(--pg56-radius);
  padding: 8px;
  text-align: center;
  border: 1px solid rgba(0, 229, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  overflow: hidden;
}

.pg56-game-card:hover { border-color: rgba(0, 229, 255, 0.4); transform: translateY(-2px); }

.pg56-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
}

.pg56-game-card-name {
  font-size: 0.75rem;
  color: var(--pg56-text);
  line-height: 1.1rem;
  height: 2.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pg56-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--pg56-mint);
  background: rgba(128, 203, 196, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------------- Feature / info cards ---------------- */
.pg56-card {
  background: var(--pg56-bg-mid);
  border-radius: var(--pg56-radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: var(--pg56-shadow);
}

.pg56-card h3 {
  margin: 0 0 8px;
  color: var(--pg56-cyan);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg56-card p { margin: 0 0 8px; color: var(--pg56-text); font-size: 0.9rem; }

.pg56-card p:last-child { margin-bottom: 0; }

.pg56-text-link {
  color: var(--pg56-cyan);
  font-weight: 700;
}

.pg56-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00E5FF 0%, #00BFFF 100%);
  color: #052029;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.35);
  transition: transform 0.15s ease;
}

.pg56-cta:active { transform: scale(0.96); }

.pg56-cta:hover { color: #052029; }

.pg56-cta-row { text-align: center; margin: 18px 0; }

/* ---------------- Stat row ---------------- */
.pg56-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pg56-stat {
  background: var(--pg56-bg-soft);
  border-radius: var(--pg56-radius);
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(0, 229, 255, 0.08);
}

.pg56-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pg56-cyan);
}

.pg56-stat-label { font-size: 0.78rem; color: var(--pg56-text-mute); }

/* ---------------- Testimonials ---------------- */
.pg56-testimonials { display: grid; gap: 10px; }

.pg56-quote {
  background: var(--pg56-bg-soft);
  border-left: 3px solid var(--pg56-cyan);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
}

.pg56-quote-author {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--pg56-mint);
}

/* ---------------- Payment methods ---------------- */
.pg56-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pg56-pay-item {
  background: var(--pg56-bg-soft);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--pg56-text-mute);
}

.pg56-pay-item .pg56-mi { font-size: 1.3rem; color: var(--pg56-cyan); display: block; margin-bottom: 4px; }

/* ---------------- Winners ---------------- */
.pg56-winners { display: grid; gap: 8px; }

.pg56-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pg56-bg-soft);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.pg56-winner-name { color: var(--pg56-text); }

.pg56-winner-amount { color: var(--pg56-warn); font-weight: 800; }

/* ---------------- App download CTA ---------------- */
.pg56-app-cta {
  background: linear-gradient(135deg, #0a1622 0%, #16303f 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--pg56-radius-lg);
  padding: 18px;
  text-align: center;
}

.pg56-app-cta h3 { color: var(--pg56-cyan); margin: 0 0 6px; }

.pg56-app-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

.pg56-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--pg56-bg-soft);
  color: var(--pg56-text);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(0, 229, 255, 0.25);
  cursor: pointer;
}

/* ---------------- Footer ---------------- */
.pg56-footer {
  background: #080d12;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  padding: 22px 14px calc(var(--pg56-bottomnav-h) + 22px);
  margin-top: 12px;
}

.pg56-footer-brand {
  font-size: 0.85rem;
  color: var(--pg56-text-mute);
  margin-bottom: 14px;
  line-height: 1.4rem;
}

.pg56-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pg56-footer-promos button,
.pg56-footer-promos a.pg56-promo-link {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--pg56-bg-soft);
  color: var(--pg56-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.pg56-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  margin-bottom: 14px;
}

.pg56-footer-links a {
  font-size: 0.8rem;
  color: var(--pg56-text);
  padding: 4px 0;
}

.pg56-footer-copy {
  font-size: 0.72rem;
  color: var(--pg56-text-mute);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ---------------- Bottom navigation ---------------- */
.pg56-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--pg56-bottomnav-h);
  background: linear-gradient(180deg, #0a1118 0%, #060a0f 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}

.pg56-bottom-nav-inner {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.pg56-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg56-text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.66rem;
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pg56-nav-btn .pg56-nav-icon { font-size: 22px; line-height: 1; }

.pg56-nav-btn .material-icons,
.pg56-nav-btn .pg56-nav-icon.material-icons { font-size: 24px; }

.pg56-nav-btn:hover { color: var(--pg56-cyan); }
.pg56-nav-btn:active { transform: scale(0.92); }

.pg56-nav-btn.pg56-nav-active { color: var(--pg56-cyan); }

.pg56-nav-btn.pg56-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #00E5FF, #00BFFF);
}

.pg56-nav-badge {
  position: absolute;
  top: 4px;
  right: 14px;
  background: #ff4d6d;
  color: #fff;
  font-size: 9px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------------- Reveal animation ---------------- */
.pg56-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pg56-reveal.pg56-revealed { opacity: 1; transform: translateY(0); }

/* ---------------- Helpers ---------------- */
.pg56-lead {
  font-size: 0.92rem;
  color: var(--pg56-text);
  line-height: 1.55rem;
  margin: 0 0 10px;
}

.pg56-bullets { padding-left: 18px; margin: 8px 0; color: var(--pg56-text); font-size: 0.88rem; }
.pg56-bullets li { margin-bottom: 6px; }

.pg56-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pg56-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--pg56-cyan);
}

/* ---------------- Desktop: hide bottom nav ---------------- */
@media (min-width: 769px) {
  .pg56-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .pg56-wrapper { max-width: 760px; }
  .pg56-header-inner { max-width: 760px; }
  .pg56-footer { padding-bottom: 30px; }
}

@media (max-width: 360px) {
  .pg56-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg56-pay-grid { grid-template-columns: repeat(3, 1fr); }
}
