/* ==========================================================
   jilib - style-7ecc.css
   Prefix: pg7e-
   Palette: #1C2833 #0097A7 #FF5722 #FFD700 #00CED1 #CED4DA
   Mobile-first, max-width 430px
   ========================================================== */

:root {
  --pg7e-bg: #1C2833;
  --pg7e-bg-2: #14202b;
  --pg7e-bg-3: #21323f;
  --pg7e-primary: #0097A7;
  --pg7e-accent: #FF5722;
  --pg7e-gold: #FFD700;
  --pg7e-cyan: #00CED1;
  --pg7e-text: #CED4DA;
  --pg7e-text-light: #ffffff;
  --pg7e-muted: #8aa0ab;
  --pg7e-border: rgba(206, 212, 218, 0.12);
  --pg7e-radius: 14px;
  --pg7e-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #21323f 0%, var(--pg7e-bg) 55%);
  color: var(--pg7e-text);
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { color: var(--pg7e-text-light); line-height: 1.3; }
h1 { font-size: 2.3rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.7rem; }

.pg7e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.pg7e-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.pg7e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(20,32,43,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pg7e-border);
}
.pg7e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
}
.pg7e-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.pg7e-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg7e-logo-text {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--pg7e-gold);
  letter-spacing: 0.3px;
}
.pg7e-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.pg7e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color: #fff;
}
.pg7e-btn:active { transform: scale(0.96); }
.pg7e-btn-login {
  background: var(--pg7e-primary);
  box-shadow: 0 3px 10px rgba(0,151,167,0.35);
}
.pg7e-btn-register {
  background: linear-gradient(135deg, var(--pg7e-accent), #ff7a4d);
  box-shadow: 0 3px 10px rgba(255,87,34,0.4);
}
.pg7e-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--pg7e-border);
  background: var(--pg7e-bg-3);
  color: var(--pg7e-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pg7e-icon-btn:hover { background: var(--pg7e-primary); }
.pg7e-icon-btn.pg7e-active { background: var(--pg7e-accent); }

/* ---------- Mobile dropdown menu ---------- */
.pg7e-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 9999;
  background: var(--pg7e-bg-2);
  border-bottom: 1px solid var(--pg7e-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.pg7e-mobile-menu.pg7e-menu-open { max-height: 460px; }
.pg7e-mobile-menu ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.pg7e-mobile-menu li a {
  display: block;
  padding: 1.05rem 1.6rem;
  color: var(--pg7e-text);
  border-bottom: 1px solid var(--pg7e-border);
  font-size: 1.45rem;
}
.pg7e-mobile-menu li a:hover, .pg7e-mobile-menu li a:focus { background: var(--pg7e-bg-3); color: var(--pg7e-gold); }

/* ---------- Main ---------- */
.pg7e-main { padding-top: 72px; padding-bottom: 1rem; }
main { padding-bottom: 1rem; }

/* ---------- Carousel ---------- */
.pg7e-carousel {
  position: relative;
  border-radius: var(--pg7e-radius);
  overflow: hidden;
  box-shadow: var(--pg7e-shadow);
  margin-bottom: 1.6rem;
}
.pg7e-slides { position: relative; }
.pg7e-slide {
  display: none;
  cursor: pointer;
}
.pg7e-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg7e-slide-active { display: block; }
.pg7e-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}
.pg7e-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.pg7e-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer; padding: 0;
}
.pg7e-dot-active { background: var(--pg7e-gold); width: 22px; border-radius: 4px; }

/* ---------- Section / cards ---------- */
.pg7e-section { margin-bottom: 2rem; }
.pg7e-section-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.pg7e-section-head h2 { margin: 0; }
.pg7e-section-head .pg7e-bar {
  width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--pg7e-accent), var(--pg7e-gold));
}
.pg7e-card {
  background: var(--pg7e-bg-3);
  border: 1px solid var(--pg7e-border);
  border-radius: var(--pg7e-radius);
  padding: 1.3rem;
  box-shadow: var(--pg7e-shadow);
  margin-bottom: 1rem;
}

/* ---------- Game grid ---------- */
.pg7e-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg7e-gold);
  margin: 1.4rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pg7e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.pg7e-game {
  background: var(--pg7e-bg-3);
  border: 1px solid var(--pg7e-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.pg7e-game:hover { transform: translateY(-3px); border-color: var(--pg7e-accent); }
.pg7e-game img {
  width: 100%; height: 84px; object-fit: cover;
}
.pg7e-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--pg7e-text-light);
  padding: 0.4rem 0.3rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Promo CTA ---------- */
.pg7e-cta {
  background: linear-gradient(135deg, var(--pg7e-primary), #00b3c4);
  border-radius: var(--pg7e-radius);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  margin: 1.6rem 0;
  box-shadow: var(--pg7e-shadow);
}
.pg7e-cta h3 { color: #fff; margin-top: 0; }
.pg7e-cta .pg7e-btn { margin-top: 0.6rem; }
.pg7e-promo-link {
  color: var(--pg7e-gold);
  font-weight: 700;
}
.pg7e-promo-link:hover { text-decoration: underline; color: var(--pg7e-accent); }

/* ---------- Feature list / RTP ---------- */
.pg7e-feature {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--pg7e-border);
}
.pg7e-feature:last-child { border-bottom: none; }
.pg7e-feature .pg7e-ico {
  flex: 0 0 36px; height: 36px; border-radius: 8px;
  background: rgba(0,151,167,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--pg7e-cyan);
}
.pg7e-rtp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pg7e-border);
  font-size: 1.3rem;
}
.pg7e-rtp-row:last-child { border-bottom: none; }
.pg7e-rtp-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  margin: 0 0.7rem; overflow: hidden;
}
.pg7e-rtp-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pg7e-cyan), var(--pg7e-gold)); }
.pg7e-rtp-val { color: var(--pg7e-gold); font-weight: 700; min-width: 48px; text-align: right; }

/* ---------- Testimonials ---------- */
.pg7e-testi {
  background: var(--pg7e-bg-3);
  border-left: 3px solid var(--pg7e-accent);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.pg7e-testi p { margin: 0 0 0.4rem; font-size: 1.3rem; }
.pg7e-testi .pg7e-author { font-size: 1.15rem; color: var(--pg7e-cyan); font-weight: 700; }

/* ---------- Payments ---------- */
.pg7e-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg7e-pay {
  flex: 1 1 28%;
  background: var(--pg7e-bg-3);
  border: 1px solid var(--pg7e-border);
  border-radius: 8px;
  padding: 0.7rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--pg7e-text-light);
}
.pg7e-pay i { color: var(--pg7e-gold); }

/* ---------- Winners ---------- */
.pg7e-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pg7e-bg-3);
  border: 1px solid var(--pg7e-border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.pg7e-winner .pg7e-amt { color: var(--pg7e-gold); font-weight: 800; }

/* ---------- Reveal animation ---------- */
.pg7e-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pg7e-revealed { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.pg7e-footer {
  background: var(--pg7e-bg-2);
  border-top: 1px solid var(--pg7e-border);
  padding: 1.8rem 0 1rem;
  margin-top: 1.5rem;
}
.pg7e-footer p { font-size: 1.3rem; color: var(--pg7e-muted); margin: 0 0 0.8rem; }
.pg7e-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem;
  margin-bottom: 0.8rem;
}
.pg7e-footer-links a {
  font-size: 1.2rem;
  color: var(--pg7e-text);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--pg7e-bg-3);
}
.pg7e-footer-links a:hover { color: var(--pg7e-gold); }
.pg7e-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.pg7e-footer-promos .pg7e-btn { padding: 0 0.9rem; min-height: 34px; font-size: 1.2rem; }
.pg7e-copyright { font-size: 1.15rem; color: var(--pg7e-muted); text-align: center; padding-top: 0.6rem; border-top: 1px solid var(--pg7e-border); }

/* ---------- Bottom nav (mobile) ---------- */
.pg7e-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, rgba(20,32,43,0.98), rgba(28,40,51,0.98));
  border-top: 1px solid var(--pg7e-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.pg7e-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg7e-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pg7e-bnav-btn i, .pg7e-bnav-btn .material-icons-outlined,
.pg7e-bnav-btn ion-icon { font-size: 22px; }
.pg7e-bnav-btn ion-icon { width: 22px; height: 22px; }
.pg7e-bnav-btn span { font-size: 1.05rem; line-height: 1; }
.pg7e-bnav-btn:active { transform: scale(0.92); }
.pg7e-bnav-btn:hover { color: var(--pg7e-cyan); }
.pg7e-bnav-current { color: var(--pg7e-gold) !important; }
.pg7e-bnav-promo { color: var(--pg7e-accent); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .pg7e-bnav { display: none; }
  .pg7e-header-inner { max-width: 768px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .pg7e-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .pg7e-grid { grid-template-columns: repeat(2, 1fr); }
  .pg7e-logo-text { font-size: 1.5rem; }
}
