/* ============================================================
   casinoplus-apk.css
   Shared stylesheet for casinoplus-apk.homes
   Every custom class uses the "pg23-" prefix.
   Palette: #0C0C0C | #F0F0F0 | #4169E1 | #FF8000 | #87CEFA | #0000CD
   Mobile-first. Root font-size: 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --pg23-bg: #0C0C0C;
  --pg23-bg-soft: #141414;
  --pg23-bg-card: #1c1c22;
  --pg23-text: #F0F0F0;
  --pg23-text-muted: #b9b9c4;
  --pg23-primary: #4169E1;
  --pg23-primary-deep: #0000CD;
  --pg23-accent: #FF8000;
  --pg23-sky: #87CEFA;
  --pg23-border: rgba(240, 240, 240, 0.08);
  --pg23-radius: 12px;
  --pg23-radius-sm: 8px;
  --pg23-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --pg23-header-h: 56px;
  --pg23-bottom-h: 60px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--pg23-bg);
  color: var(--pg23-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--pg23-sky); text-decoration: none; }
a:hover { color: var(--pg23-accent); }

.pg23-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg23-wrapper { width: 100%; }

/* ============== Header ============== */
.pg23-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pg23-header-h);
  background: linear-gradient(90deg, #0C0C0C 0%, #14223f 60%, #0000CD 100%);
  border-bottom: 1px solid var(--pg23-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.pg23-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.pg23-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.pg23-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--pg23-accent), var(--pg23-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.pg23-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg23-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg23-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg23-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
}

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

.pg23-btn-register {
  background: linear-gradient(90deg, var(--pg23-accent), #ffb347);
  color: #1a0c00;
  box-shadow: 0 3px 10px rgba(255, 128, 0, 0.35);
}

.pg23-btn-login {
  background: transparent;
  color: var(--pg23-text);
  border: 1px solid var(--pg23-sky);
}

.pg23-menu-btn {
  background: transparent;
  border: none;
  color: var(--pg23-text);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============== Mobile dropdown menu ============== */
.pg23-mobile-menu {
  position: fixed;
  top: var(--pg23-header-h);
  left: 0;
  right: 0;
  background: var(--pg23-bg-soft);
  border-bottom: 1px solid var(--pg23-border);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.pg23-mobile-menu.pg23-menu-open {
  max-height: 460px;
  box-shadow: var(--pg23-shadow);
}

.pg23-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.pg23-mobile-menu li a {
  display: block;
  padding: 1rem 1.4rem;
  color: var(--pg23-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg23-border);
}

.pg23-mobile-menu li a:hover { background: rgba(65, 105, 225, 0.18); }

/* ============== Main / sections ============== */
main.pg23-main {
  padding-top: calc(var(--pg23-header-h) + 8px);
  padding-bottom: calc(var(--pg23-bottom-h) + 24px);
}

.pg23-section {
  padding: 1.6rem 0;
}

.pg23-section-alt { background: var(--pg23-bg-soft); }

.pg23-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  color: var(--pg23-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg23-section-title .pg23-bar {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--pg23-accent), var(--pg23-primary));
  border-radius: 3px;
}

.pg23-section-sub {
  color: var(--pg23-text-muted);
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
}

/* ============== Hero / Carousel ============== */
.pg23-carousel {
  position: relative;
  border-radius: var(--pg23-radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--pg23-shadow);
}

.pg23-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

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

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

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

.pg23-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.pg23-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}

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

.pg23-carousel-dot.pg23-dot-active {
  background: var(--pg23-accent);
  width: 18px;
  border-radius: 4px;
}

/* ============== Hero CTA strip ============== */
.pg23-hero-cta {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pg23-hero-cta .pg23-btn { flex: 1; min-height: 42px; font-size: 1.35rem; }

.pg23-cta-primary {
  background: linear-gradient(90deg, var(--pg23-accent), #ffb347);
  color: #1a0c00;
}

.pg23-cta-secondary {
  background: linear-gradient(90deg, var(--pg23-primary), var(--pg23-primary-deep));
  color: #fff;
}

/* ============== Game grid ============== */
.pg23-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pg23-grid-4 { grid-template-columns: repeat(4, 1fr); }

.pg23-game-card {
  background: var(--pg23-bg-card);
  border-radius: var(--pg23-radius-sm);
  border: 1px solid var(--pg23-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.pg23-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--pg23-accent);
  box-shadow: 0 8px 18px rgba(255,128,0,0.18);
}

.pg23-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.pg23-game-name {
  font-size: 1.15rem;
  color: var(--pg23-text);
  text-align: center;
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg23-game-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--pg23-accent);
  color: #1a0c00;
  font-size: 1rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.pg23-game-card-wrap { position: relative; }

/* ============== Cards / generic ============== */
.pg23-card {
  background: var(--pg23-bg-card);
  border-radius: var(--pg23-radius);
  padding: 1.2rem;
  border: 1px solid var(--pg23-border);
  margin-bottom: 1rem;
}

.pg23-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--pg23-text);
}

.pg23-card p {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: var(--pg23-text-muted);
}

.pg23-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 4px;
}

.pg23-pill-hot { background: rgba(255,128,0,0.18); color: var(--pg23-accent); }
.pg23-pill-new { background: rgba(65,105,225,0.2); color: var(--pg23-sky); }

/* ============== Feature list ============== */
.pg23-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pg23-feature {
  background: var(--pg23-bg-card);
  border: 1px solid var(--pg23-border);
  border-radius: var(--pg23-radius-sm);
  padding: 1rem;
  text-align: center;
}

.pg23-feature .ico {
  font-size: 24px;
  color: var(--pg23-accent);
  margin-bottom: 0.4rem;
}

.pg23-feature h4 {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  color: var(--pg23-text);
}

.pg23-feature p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--pg23-text-muted);
}

/* ============== RTP table ============== */
.pg23-rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  background: var(--pg23-bg-card);
  border-radius: var(--pg23-radius-sm);
  overflow: hidden;
}

.pg23-rpt-table th, .pg23-rpt-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--pg23-border);
}

.pg23-rpt-table th { background: rgba(65,105,225,0.18); color: var(--pg23-sky); }
.pg23-rpt-table td:last-child { color: var(--pg23-accent); font-weight: 700; }

/* ============== Testimonials ============== */
.pg23-testimonial {
  background: var(--pg23-bg-card);
  border-left: 3px solid var(--pg23-accent);
  padding: 0.9rem 1.1rem;
  border-radius: var(--pg23-radius-sm);
  margin-bottom: 0.8rem;
}

.pg23-testimonial .name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pg23-text);
  margin-bottom: 0.2rem;
}

.pg23-testimonial .quote {
  font-size: 1.2rem;
  color: var(--pg23-text-muted);
  margin: 0;
}

.pg23-stars { color: #ffb347; font-size: 1.1rem; }

/* ============== Winners strip ============== */
.pg23-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--pg23-bg-card);
  border-radius: var(--pg23-radius-sm);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.pg23-winner .amt { color: var(--pg23-accent); font-weight: 700; }

/* ============== Payment chips ============== */
.pg23-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pg23-chip {
  background: var(--pg23-bg-card);
  border: 1px solid var(--pg23-border);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--pg23-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============== FAQ ============== */
.pg23-faq-item {
  background: var(--pg23-bg-card);
  border: 1px solid var(--pg23-border);
  border-radius: var(--pg23-radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}

.pg23-faq-item .q {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pg23-text);
  margin: 0 0 0.3rem;
}

.pg23-faq-item .a {
  font-size: 1.2rem;
  color: var(--pg23-text-muted);
  margin: 0;
}

/* ============== SEO long text ============== */
.pg23-prose p {
  font-size: 1.3rem;
  color: var(--pg23-text-muted);
  margin: 0 0 0.8rem;
}

.pg23-prose strong { color: var(--pg23-text); }

.pg23-prose a { color: var(--pg23-accent); font-weight: 600; }

.pg23-kw { color: var(--pg23-accent); font-weight: 700; }

/* ============== Footer ============== */
.pg23-footer {
  background: #050505;
  border-top: 1px solid var(--pg23-border);
  padding: 1.8rem 0 1.2rem;
  color: var(--pg23-text-muted);
}

.pg23-footer-brand {
  font-size: 1.4rem;
  color: var(--pg23-text);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.pg23-footer p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin: 0 0 0.8rem;
}

.pg23-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.6rem 0 1rem;
}

.pg23-footer-links a {
  font-size: 1.2rem;
  color: var(--pg23-sky);
}

.pg23-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.pg23-footer-buttons .pg23-btn {
  flex: 1 1 auto;
  min-height: 38px;
}

.pg23-copyright {
  font-size: 1.1rem;
  color: #6b6b76;
  text-align: center;
  margin-top: 0.6rem;
}

/* ============== Bottom nav (mobile only) ============== */
.pg23-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pg23-bottom-h);
  background: linear-gradient(180deg, #14223f, #0C0C0C);
  border-top: 1px solid var(--pg23-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.55);
}

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

.pg23-bottom-nav-btn .ico { font-size: 22px; line-height: 1; }
.pg23-bottom-nav-btn .ico.mat { font-family: "Material Icons"; }
.pg23-bottom-nav-btn .ico.bi { font-family: bootstrap-icons; }

.pg23-bottom-nav-btn:active { transform: scale(0.92); }

.pg23-bottom-nav-btn.pg23-nav-active,
.pg23-bottom-nav-btn:hover {
  color: var(--pg23-accent);
}

.pg23-bottom-nav-btn.pg23-nav-active .ico { color: var(--pg23-accent); }

/* ============== Utility ============== */
.pg23-text-center { text-align: center; }
.pg23-mt-1 { margin-top: 0.6rem; }
.pg23-mt-2 { margin-top: 1.2rem; }
.pg23-hidden { display: none !important; }

/* ============== Desktop / tablet ============== */
@media (min-width: 769px) {
  .pg23-bottom-nav { display: none; }
  .pg23-container { max-width: 960px; }
  .pg23-header-inner { max-width: 960px; }
  main.pg23-main { padding-bottom: 2.4rem; }
  .pg23-grid { grid-template-columns: repeat(6, 1fr); }
  .pg23-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .pg23-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .pg23-mobile-menu { display: none; }
  .pg23-menu-btn { display: none; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .pg23-container { max-width: 760px; }
  .pg23-grid { grid-template-columns: repeat(5, 1fr); }
  .pg23-grid-4 { grid-template-columns: repeat(6, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
