/* ============================================================
 * bl5555.homes - core stylesheet
 * CSS class prefix: pg41-   |   JS function prefix: site4ef
 * Palette: #4169E1 #DC143C #CD853F #4682B4 #3A3A3A
 * Mobile-first. Max content width 430px.
 * Comments in English.
 * ============================================================ */

:root {
  --pg41-primary: #4169E1;    /* royal blue */
  --pg41-accent: #DC143C;     /* crimson */
  --pg41-gold: #CD853F;       /* peru / gold */
  --pg41-steel: #4682B4;      /* steel blue */
  --pg41-dark: #3A3A3A;       /* dark base */
  --pg41-bg: #1c2230;
  --pg41-bg-2: #252c3d;
  --pg41-bg-3: #2f3852;
  --pg41-text: #f3f5fb;
  --pg41-text-dim: #b8c0d6;
  --pg41-line: rgba(255,255,255,0.08);
  --pg41-radius: 14px;
  --pg41-shadow: 0 6px 18px 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", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--pg41-bg);
  color: var(--pg41-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pg41-gold); text-decoration: none; }
a:hover { color: var(--pg41-accent); }

/* ============================================================
 * Layout containers
 * ============================================================ */
.pg41-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--pg41-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.pg41-container {
  width: 100%;
  padding: 0 14px;
}

main { padding-bottom: 90px; }

/* ============================================================
 * Header / top navigation
 * ============================================================ */
.pg41-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pg41-dark), var(--pg41-steel));
  border-bottom: 2px solid var(--pg41-primary);
  box-shadow: var(--pg41-shadow);
}

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

.pg41-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg41-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.pg41-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg41-logo span { color: var(--pg41-gold); }

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

.pg41-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  text-decoration: none;
}
.pg41-btn:hover { transform: translateY(-1px); color: #fff; }
.pg41-btn:active { transform: scale(0.96); }

.pg41-btn-register {
  background: linear-gradient(90deg, var(--pg41-accent), #ff5a78);
  box-shadow: 0 4px 12px rgba(220,20,60,0.4);
}
.pg41-btn-login {
  background: linear-gradient(90deg, var(--pg41-primary), var(--pg41-steel));
  box-shadow: 0 4px 12px rgba(65,105,225,0.4);
}
.pg41-btn-gold {
  background: linear-gradient(90deg, var(--pg41-gold), #e6a957);
  color: #2a1f12;
}

.pg41-menu-btn {
  background: transparent;
  border: 1px solid var(--pg41-line);
  color: var(--pg41-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Expandable mobile menu */
.pg41-mobile-menu {
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg41-bg-2);
  border-bottom: 2px solid var(--pg41-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.pg41-mobile-menu.pg41-menu-open { max-height: 520px; }
.pg41-mobile-menu ul { list-style: none; padding: 6px 12px 12px; }
.pg41-mobile-menu li a {
  display: block;
  padding: 11px 10px;
  color: var(--pg41-text-dim);
  border-bottom: 1px solid var(--pg41-line);
  font-size: 1.4rem;
}
.pg41-mobile-menu li a:hover { color: var(--pg41-gold); padding-left: 16px; }

/* ============================================================
 * Hero carousel
 * ============================================================ */
.pg41-carousel {
  position: relative;
  margin-top: 58px;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}
.pg41-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.pg41-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.pg41-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg41-slide-active { opacity: 1; }
.pg41-slide-cap {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,0.55);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.pg41-dots {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; gap: 6px;
}
.pg41-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.pg41-dot-active { background: var(--pg41-gold); }

/* ============================================================
 * Section + titles
 * ============================================================ */
.pg41-section { padding: 18px 14px; }
.pg41-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--pg41-accent);
  color: var(--pg41-text);
}
.pg41-section-title em { color: var(--pg41-gold); font-style: normal; }
.pg41-subtitle {
  font-size: 1.5rem; font-weight: 700;
  margin: 14px 0 8px; color: var(--pg41-steel);
}

/* ============================================================
 * Game grid (compact icons)
 * ============================================================ */
.pg41-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pg41-game-card {
  background: var(--pg41-bg-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pg41-line);
  transition: transform .15s, border-color .15s;
  cursor: pointer;
}
.pg41-game-card:hover { transform: translateY(-2px); border-color: var(--pg41-gold); }
.pg41-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg41-game-name {
  font-size: 1.1rem;
  color: var(--pg41-text-dim);
  padding: 5px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3rem;
}

/* Category tag */
.pg41-cat-tag {
  display: inline-block;
  font-size: 1.1rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(65,105,225,0.2);
  color: var(--pg41-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

/* ============================================================
 * Cards / info blocks
 * ============================================================ */
.pg41-card {
  background: var(--pg41-bg-2);
  border-radius: var(--pg41-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--pg41-line);
  box-shadow: var(--pg41-shadow);
}
.pg41-card p { margin-bottom: 8px; color: var(--pg41-text-dim); }
.pg41-card p:last-child { margin-bottom: 0; }
.pg41-card strong { color: var(--pg41-gold); }

.pg41-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg41-feature {
  background: var(--pg41-bg-2);
  padding: 12px;
  border-radius: 10px;
  border-left: 3px solid var(--pg41-primary);
}
.pg41-feature .pg41-feature-icon { font-size: 2.2rem; color: var(--pg41-gold); margin-bottom: 6px; }
.pg41-feature h3 { font-size: 1.4rem; margin-bottom: 4px; color: var(--pg41-text); }
.pg41-feature p { font-size: 1.2rem; color: var(--pg41-text-dim); line-height: 1.4rem; }

/* ============================================================
 * Promo CTA
 * ============================================================ */
.pg41-cta {
  background: linear-gradient(120deg, var(--pg41-accent), var(--pg41-gold));
  border-radius: var(--pg41-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
  color: #fff;
}
.pg41-cta h3 { font-size: 1.7rem; margin-bottom: 6px; }
.pg41-cta p { font-size: 1.3rem; margin-bottom: 10px; opacity: 0.95; }
.pg41-cta .pg41-btn { background: #fff; color: var(--pg41-accent); }

/* ============================================================
 * Testimonial / winner list
 * ============================================================ */
.pg41-list { list-style: none; }
.pg41-list li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pg41-line);
  font-size: 1.3rem;
}
.pg41-list li span:first-child { color: var(--pg41-text); }
.pg41-list li span:last-child { color: var(--pg41-gold); font-weight: 700; }

/* ============================================================
 * Payment icons row
 * ============================================================ */
.pg41-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.pg41-pay {
  background: #fff; color: var(--pg41-dark);
  border-radius: 6px; padding: 6px 10px;
  font-size: 1.2rem; font-weight: 700;
}

/* ============================================================
 * Footer
 * ============================================================ */
.pg41-footer {
  background: var(--pg41-dark);
  border-top: 2px solid var(--pg41-primary);
  padding: 20px 14px 80px;
  text-align: center;
}
.pg41-footer-brand { font-size: 1.4rem; color: var(--pg41-text-dim); margin-bottom: 12px; }
.pg41-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 12px;
}
.pg41-footer-links a {
  font-size: 1.2rem;
  color: var(--pg41-text-dim);
  padding: 4px 8px;
  border: 1px solid var(--pg41-line);
  border-radius: 6px;
}
.pg41-footer-links a:hover { color: var(--pg41-gold); border-color: var(--pg41-gold); }
.pg41-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 10px 0;
}
.pg41-copy { font-size: 1.1rem; color: var(--pg41-text-dim); margin-top: 8px; }

/* ============================================================
 * Mobile bottom navigation (5 buttons, fixed)
 * ============================================================ */
.pg41-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg41-bg-3), var(--pg41-dark));
  border-top: 2px solid var(--pg41-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.pg41-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg41-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color .15s, transform .15s;
}
.pg41-bottomnav-btn .pg41-nav-icon { font-size: 24px; line-height: 24px; }
.pg41-bottomnav-btn:hover { color: var(--pg41-gold); }
.pg41-bottomnav-btn:active { transform: scale(0.9); }
.pg41-bottomnav-active { color: var(--pg41-gold); }
.pg41-bottomnav-active .pg41-nav-icon { color: var(--pg41-accent); }

/* ============================================================
 * Utility
 * ============================================================ */
.pg41-center { text-align: center; }
.pg41-mt { margin-top: 14px; }
.pg41-mb { margin-bottom: 14px; }
.pg41-seo-text { font-size: 1.3rem; color: var(--pg41-text-dim); line-height: 1.6rem; }
.pg41-seo-text a { color: var(--pg41-gold); font-weight: 600; }

/* ============================================================
 * Desktop: hide bottom nav, widen wrapper
 * ============================================================ */
@media (min-width: 769px) {
  .pg41-bottomnav { display: none; }
  .pg41-wrapper { max-width: 480px; }
  main { padding-bottom: 40px; }
}

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