/* 2jl.homes core layout - all custom classes use pge5- prefix. */

:root {
  --pge5-primary: #8A2BE2;       /* blueviolet - accent */
  --pge5-bg: #1A1A1A;            /* near-black - background */
  --pge5-bg-soft: #232323;       /* slightly lighter panel */
  --pge5-text: #F5DEB3;          /* wheat - light text */
  --pge5-text-muted: #E5E5E5;    /* light grey - body text */
  --pge5-accent: #A0522D;        /* sienna - warm accent */
  --pge5-gold: #F5DEB3;
  --pge5-radius: 1.2rem;
  --pge5-header-h: 5.6rem;
  --pge5-nav-h: 6.2rem;
  --pge5-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 62.5%;              /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--pge5-bg);
  color: var(--pge5-text-muted);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pge5-text); text-decoration: none; }

.pge5-container { width: 100%; padding: 0 1.2rem; }
.pge5-wrapper { padding-top: var(--pge5-header-h); padding-bottom: var(--pge5-nav-h); }
.pge5-section { padding: 2rem 0; }
.pge5-section-alt { background: var(--pge5-bg-soft); }

h1, h2, h3 { color: var(--pge5-text); line-height: 1.8rem; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1rem; }

.pge5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pge5-header-h);
  background: var(--pge5-bg);
  border-bottom: 0.2rem solid var(--pge5-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.pge5-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pge5-text);
  font-weight: 800;
  font-size: 1.8rem;
}
.pge5-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.pge5-brand .pge5-brand-accent { color: var(--pge5-primary); }

.pge5-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.pge5-menu-toggle {
  background: none;
  border: 0.2rem solid var(--pge5-primary);
  color: var(--pge5-text);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
}

.pge5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pge5-btn:active { transform: scale(0.96); }

.pge5-btn-register {
  background: linear-gradient(135deg, var(--pge5-primary), var(--pge5-accent));
  color: #fff;
  box-shadow: var(--pge5-shadow);
}
.pge5-btn-login {
  background: transparent;
  color: var(--pge5-text);
  border: 0.2rem solid var(--pge5-text);
}

.pge5-mobile-menu {
  position: fixed;
  top: var(--pge5-header-h);
  left: 0; right: 0;
  background: var(--pge5-bg-soft);
  border-bottom: 0.2rem solid var(--pge5-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
  max-width: 430px;
  margin: 0 auto;
}
.pge5-mobile-menu.pge5-menu-open { max-height: 50rem; }
.pge5-mobile-menu a {
  display: block;
  padding: 1.4rem 1.6rem;
  border-bottom: 0.1rem solid rgba(245, 222, 179, 0.12);
  color: var(--pge5-text-muted);
  font-size: 1.4rem;
}
.pge5-mobile-menu a:hover,
.pge5-mobile-menu a:focus { background: rgba(138, 43, 226, 0.18); color: var(--pge5-text); }

.pge5-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pge5-radius);
  margin: 1.2rem 0;
  box-shadow: var(--pge5-shadow);
}
.pge5-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.pge5-carousel-slide {
  min-width: 100%;
  position: relative;
}
.pge5-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}
.pge5-carousel-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  color: var(--pge5-text);
  text-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.7);
}
.pge5-carousel-caption strong { font-size: 1.8rem; display: block; }
.pge5-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
}
.pge5-carousel-dots .pge5-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.45);
  border: none;
  cursor: pointer;
}
.pge5-carousel-dots .pge5-dot.pge5-dot-active { background: var(--pge5-primary); }

.pge5-cta-band {
  background: linear-gradient(135deg, var(--pge5-accent), var(--pge5-primary));
  color: #fff;
  padding: 1.6rem;
  border-radius: var(--pge5-radius);
  margin: 1.2rem 0;
  text-align: center;
  box-shadow: var(--pge5-shadow);
}
.pge5-cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.pge5-cta-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 1rem 2rem;
  background: var(--pge5-gold);
  color: var(--pge5-bg);
  font-weight: 800;
  border-radius: 2rem;
  cursor: pointer;
}
.pge5-cta-inline {
  color: var(--pge5-text);
  font-weight: 700;
  border-bottom: 0.2rem dashed var(--pge5-primary);
  cursor: pointer;
}

.pge5-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
  font-size: 1.8rem;
  color: var(--pge5-text);
}
.pge5-section-title .pge5-title-bar {
  width: 0.5rem; height: 2rem; background: var(--pge5-primary); border-radius: 0.3rem;
}

.pge5-game-block { margin-bottom: 1.6rem; }
.pge5-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pge5-game-card {
  background: var(--pge5-bg-soft);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0.1rem solid rgba(138, 43, 226, 0.25);
}
.pge5-game-card:active { transform: scale(0.96); }
.pge5-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.6rem;
}
.pge5-game-name {
  font-size: 1.1rem;
  color: var(--pge5-text);
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pge5-card {
  background: var(--pge5-bg-soft);
  border-radius: var(--pge5-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 0.4rem solid var(--pge5-primary);
}
.pge5-card h3 { margin-bottom: 0.6rem; color: var(--pge5-text); }

.pge5-feature-list { list-style: none; }
.pge5-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 0.1rem dashed rgba(245, 222, 179, 0.15);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.pge5-feature-list li:last-child { border-bottom: none; }
.pge5-feature-list .pge5-feature-ico { color: var(--pge5-primary); font-size: 1.8rem; }

.pge5-testimonials { display: grid; gap: 0.8rem; }
.pge5-testimonial {
  background: var(--pge5-bg-soft);
  padding: 1.2rem;
  border-radius: var(--pge5-radius);
  border-left: 0.4rem solid var(--pge5-accent);
}
.pge5-testimonial .pge5-stars { color: var(--pge5-gold); margin-bottom: 0.4rem; }
.pge5-testimonial .pge5-author { color: var(--pge5-text); font-weight: 700; font-size: 1.2rem; margin-top: 0.6rem; }

.pge5-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pge5-chip {
  background: var(--pge5-bg-soft);
  border: 0.1rem solid var(--pge5-primary);
  color: var(--pge5-text);
  border-radius: 2rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pge5-app-cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.pge5-app-btn {
  flex: 1;
  background: var(--pge5-bg-soft);
  border: 0.1rem solid var(--pge5-primary);
  color: var(--pge5-text);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
}

.pge5-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pge5-rtp-table th, .pge5-rtp-table td {
  padding: 0.8rem;
  border-bottom: 0.1rem solid rgba(245, 222, 179, 0.12);
  text-align: left;
}
.pge5-rtp-table th { color: var(--pge5-primary); }

.pge5-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--pge5-bg-soft);
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.pge5-winner .pge5-winner-amount { color: var(--pge5-gold); font-weight: 700; }

.pge5-footer {
  background: var(--pge5-bg-soft);
  padding: 2rem 1.2rem;
  margin-top: 1rem;
  border-top: 0.2rem solid var(--pge5-primary);
}
.pge5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.pge5-footer-links a {
  font-size: 1.2rem;
  color: var(--pge5-text-muted);
  background: rgba(138, 43, 226, 0.15);
  padding: 0.5rem 0.9rem;
  border-radius: 2rem;
}
.pge5-footer-copy { font-size: 1.1rem; color: var(--pge5-text-muted); margin-top: 1rem; }

.pge5-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pge5-nav-h);
  background: var(--pge5-bg);
  border-top: 0.2rem solid var(--pge5-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4);
}
.pge5-bottom-nav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: none;
  border: none;
  color: var(--pge5-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pge5-bottom-nav-btn .pge5-nav-icon { font-size: 2.2rem; }
.pge5-bottom-nav-btn:active { transform: scale(0.9); color: var(--pge5-primary); }
.pge5-bottom-nav-btn.pge5-nav-current { color: var(--pge5-primary); }

.pge5-back-top {
  position: fixed;
  right: 1.2rem;
  bottom: calc(var(--pge5-nav-h) + 1rem);
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--pge5-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--pge5-shadow);
  border: none;
  font-size: 1.8rem;
}

@media (min-width: 769px) {
  .pge5-bottom-nav { display: none; }
  body { max-width: 430px; }
  .pge5-wrapper { padding-bottom: 2rem; }
}

@media (max-width: 360px) {
  html { font-size: 56%; }
  .pge5-game-grid { grid-template-columns: repeat(2, 1fr); }
}
