/* ============================================================
   Lucky Bingo - Core Stylesheet
   Prefix: g39c-
   Palette: #34495E | #F0FDFF | #E0F2F1 | #20B2AA
   ============================================================ */

:root {
  --g39c-primary: #34495E;
  --g39c-bg: #34495E;
  --g39c-bg-soft: #3C566F;
  --g39c-bg-deep: #243443;
  --g39c-text: #F0FDFF;
  --g39c-muted: #B8D4E0;
  --g39c-surface: #E0F2F1;
  --g39c-accent: #20B2AA;
  --g39c-accent-soft: #2FB3AC;
  --g39c-accent-deep: #178F89;
  --g39c-gold: #F2B441;
  --g39c-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  --g39c-radius: 14px;
  --g39c-radius-sm: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--g39c-text);
  background: linear-gradient(160deg, var(--g39c-bg-deep) 0%, var(--g39c-bg) 60%, var(--g39c-bg-soft) 100%);
  min-height: 100vh;
}

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

a { color: var(--g39c-accent); text-decoration: none; }

/* ---------- Layout helpers ---------- */
.g39c-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.g39c-section {
  margin: 22px 0;
  padding: 18px 14px;
  background: rgba(240, 253, 255, 0.04);
  border: 1px solid rgba(224, 242, 241, 0.08);
  border-radius: var(--g39c-radius);
}

.g39c-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--g39c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g39c-section-title i { color: var(--g39c-accent); }

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

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

/* ---------- Header ---------- */
.g39c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(36, 52, 67, 0.98), rgba(52, 73, 94, 0.95));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(32, 178, 170, 0.25);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.g39c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  gap: 8px;
}

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

.g39c-brand img {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--g39c-accent);
}

.g39c-brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--g39c-text);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.g39c-brand-name span { color: var(--g39c-accent); }

.g39c-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.g39c-btn-primary {
  background: linear-gradient(135deg, var(--g39c-gold), #e09b1c);
  color: #2a1d05;
  box-shadow: 0 3px 0 #b67a13;
}

.g39c-btn-ghost {
  background: transparent;
  color: var(--g39c-text);
  border: 1px solid var(--g39c-accent);
}

.g39c-btn-accent {
  background: linear-gradient(135deg, var(--g39c-accent), var(--g39c-accent-deep));
  color: #fff;
  box-shadow: 0 3px 0 var(--g39c-accent-deep);
}

.g39c-btn:hover { transform: translateY(-1px); }
.g39c-btn:active { transform: translateY(1px); }

.g39c-icon-btn {
  background: transparent;
  border: 0;
  color: var(--g39c-text);
  font-size: 1.9rem;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
}
.g39c-icon-btn:hover { background: rgba(32, 178, 170, 0.15); }

/* ---------- Mobile expandable menu ---------- */
.g39c-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--g39c-bg-deep);
  border-top: 1px solid rgba(32, 178, 170, 0.2);
}
.g39c-mobile-menu.g39c-menu-open { max-height: 420px; }

.g39c-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.g39c-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--g39c-radius-sm);
  background: rgba(32, 178, 170, 0.08);
  border: 1px solid rgba(32, 178, 170, 0.18);
  color: var(--g39c-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.g39c-mobile-menu a:hover { background: rgba(32, 178, 170, 0.2); }

/* ---------- Hero carousel ---------- */
.g39c-hero {
  margin-top: 70px;
}

.g39c-carousel {
  position: relative;
  border-radius: var(--g39c-radius);
  overflow: hidden;
  box-shadow: var(--g39c-shadow);
}

.g39c-carousel-viewport {
  overflow: hidden;
  border-radius: var(--g39c-radius);
}

.g39c-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g39c-carousel-slide {
  min-width: 100%;
  position: relative;
}

.g39c-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.g39c-carousel-caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.65));
  color: #fff;
  padding: 18px 12px 10px;
  border-radius: 0 0 var(--g39c-radius) var(--g39c-radius);
}

.g39c-carousel-caption strong {
  font-size: 1.7rem;
  color: var(--g39c-gold);
}

.g39c-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g39c-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(240, 253, 255, 0.4);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.g39c-carousel-dot.g39c-dot-active { background: var(--g39c-accent); }

/* ---------- H1 / Intro ---------- */
.g39c-h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 18px 0 8px;
  color: var(--g39c-text);
}
.g39c-h1 span { color: var(--g39c-gold); }

.g39c-intro {
  font-size: 1.45rem;
  color: var(--g39c-muted);
  margin: 0 0 6px;
}

.g39c-lead {
  font-size: 1.5rem;
  color: var(--g39c-text);
  margin: 8px 0;
}

/* ---------- Game grid ---------- */
.g39c-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(32, 178, 170, 0.25);
}
.g39c-cat-head i { color: var(--g39c-gold); font-size: 1.7rem; }
.g39c-cat-head h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--g39c-text);
}

.g39c-game-card {
  display: block;
  background: rgba(240, 253, 255, 0.05);
  border: 1px solid rgba(32, 178, 170, 0.18);
  border-radius: var(--g39c-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.g39c-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--g39c-accent);
  box-shadow: 0 6px 16px rgba(32, 178, 170, 0.25);
}
.g39c-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.g39c-game-card-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g39c-text);
  padding: 4px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / feature boxes ---------- */
.g39c-card {
  background: rgba(224, 242, 241, 0.06);
  border: 1px solid rgba(32, 178, 170, 0.2);
  border-radius: var(--g39c-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.g39c-card h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: var(--g39c-gold);
}
.g39c-card p {
  margin: 0;
  font-size: 1.35rem;
  color: var(--g39c-muted);
}

.g39c-list {
  margin: 8px 0;
  padding-left: 18px;
  color: var(--g39c-text);
  font-size: 1.4rem;
}
.g39c-list li { margin-bottom: 6px; line-height: 1.5; }

.g39c-tag {
  display: inline-block;
  font-size: 1.15rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(32, 178, 170, 0.15);
  color: var(--g39c-accent);
  margin: 0 4px 4px 0;
}

.g39c-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.g39c-inline-link {
  color: var(--g39c-gold);
  font-weight: 700;
  border-bottom: 1px dashed var(--g39c-gold);
}
.g39c-inline-link:hover { color: #ffd07a; }

/* ---------- Stats / RTP ---------- */
.g39c-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.g39c-stat {
  background: rgba(32, 178, 170, 0.1);
  border-radius: var(--g39c-radius-sm);
  padding: 10px;
  text-align: center;
}
.g39c-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--g39c-gold);
}
.g39c-stat-label {
  font-size: 1.2rem;
  color: var(--g39c-muted);
}

.g39c-bar {
  height: 8px;
  background: rgba(240, 253, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 10px;
}
.g39c-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g39c-accent), var(--g39c-gold));
}

/* ---------- Testimonials ---------- */
.g39c-testi {
  background: rgba(224, 242, 241, 0.06);
  border-left: 3px solid var(--g39c-gold);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.g39c-testi p { margin: 0 0 4px; font-size: 1.35rem; color: var(--g39c-text); }
.g39c-testi span { font-size: 1.2rem; color: var(--g39c-muted); }

/* ---------- Payment chips ---------- */
.g39c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g39c-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 253, 255, 0.07);
  border: 1px solid rgba(32, 178, 170, 0.25);
  font-size: 1.25rem;
  color: var(--g39c-text);
}

/* ---------- Footer ---------- */
.g39c-footer {
  margin-top: 30px;
  padding: 22px 14px 90px;
  background: var(--g39c-bg-deep);
  border-top: 1px solid rgba(32, 178, 170, 0.2);
}
.g39c-footer-inner { max-width: 430px; margin: 0 auto; }
.g39c-footer-brand {
  font-size: 1.4rem;
  color: var(--g39c-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.g39c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.g39c-footer-links a {
  color: var(--g39c-accent);
  font-size: 1.25rem;
  font-weight: 600;
}
.g39c-footer-links a:hover { color: var(--g39c-gold); }
.g39c-footer-copy {
  font-size: 1.15rem;
  color: var(--g39c-muted);
  border-top: 1px dashed rgba(240, 253, 255, 0.12);
  padding-top: 10px;
}

/* ---------- Mobile bottom navigation ---------- */
.g39c-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, rgba(36, 52, 67, 0.98), rgba(28, 41, 53, 1));
  border-top: 1px solid rgba(32, 178, 170, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.35);
}

.g39c-bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  color: var(--g39c-muted);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.g39c-bottomnav-item .material-icons,
.g39c-bottomnav-item i,
.g39c-bottomnav-item ion-icon,
.g39c-bottomnav-item bi {
  font-size: 22px;
}
.g39c-bottomnav-item span.g39c-bn-label {
  font-size: 1.05rem;
  font-weight: 600;
}
.g39c-bottomnav-item:hover { color: var(--g39c-accent); transform: translateY(-1px); }
.g39c-bottomnav-item:active { transform: scale(0.94); }

.g39c-bottomnav-active {
  color: var(--g39c-gold) !important;
}
.g39c-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 3px;
  background: var(--g39c-gold);
  border-radius: 0 0 4px 4px;
}

.g39c-bottomnav-badge {
  position: absolute;
  top: 8px; right: 22%;
  background: #e74c3c;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}

/* ---------- Desktop tuning ---------- */
@media (min-width: 769px) {
  .g39c-bottomnav { display: none; }
  body { font-size: 1.6rem; }
  .g39c-wrapper { max-width: 760px; }
  .g39c-header-inner { max-width: 760px; }
  .g39c-mobile-menu-inner { max-width: 760px; }
  .g39c-footer-inner { max-width: 760px; }
  .g39c-footer { padding-bottom: 30px; }
  .g39c-grid { grid-template-columns: repeat(6, 1fr); }
  .g39c-carousel-slide img { height: 320px; }
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  .g39c-main { padding-bottom: 80px; }
  .g39c-hero { margin-top: 64px; }
}
