/* pl7 theme stylesheet - all custom classes use pg20- prefix */
:root {
  --pg20-primary: #A0522D;
  --pg20-primary-dark: #7a3f22;
  --pg20-bg: #3A3A3A;
  --pg20-bg-2: #2c2c2c;
  --pg20-bg-3: #424242;
  --pg20-text: #FAFAFA;
  --pg20-muted: #BDC3C7;
  --pg20-slate: #708090;
  --pg20-grey: #5D5D5D;
  --pg20-gold: #d9a066;
  --pg20-accent: #e0823f;
  --pg20-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --pg20-radius: 12px;
  --pg20-max: 430px;
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pg20-bg);
  color: var(--pg20-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 100%;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.pg20-wrapper {
  width: 100%;
  max-width: var(--pg20-max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg20-container { padding: 1.6rem 0; }

main { padding-bottom: 96px; }

/* ---------- Header ---------- */
.pg20-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2c2c2c 0%, #3A3A3A 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow .25s ease;
}
.pg20-header-scrolled { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }

.pg20-header-inner {
  max-width: var(--pg20-max);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.pg20-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--pg20-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.pg20-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pg20-brand span b { color: var(--pg20-gold); }

.pg20-head-actions { display: flex; align-items: center; gap: .5rem; }

.pg20-icon-btn {
  background: transparent;
  border: none;
  color: var(--pg20-text);
  font-size: 1.8rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pg20-icon-btn:active { transform: scale(.94); }

.pg20-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pg20-btn:active { transform: scale(.96); }
.pg20-btn-primary {
  background: linear-gradient(135deg, var(--pg20-accent), var(--pg20-primary));
  color: #fff;
  box-shadow: 0 4px 10px rgba(160, 82, 45, 0.35);
}
.pg20-btn-ghost {
  background: transparent;
  color: var(--pg20-text);
  border: 1px solid rgba(189, 195, 199, 0.4);
}
.pg20-btn-gold {
  background: linear-gradient(135deg, #f0c27b, #d9a066);
  color: #2c2c2c;
}

/* ---------- Mobile menu ---------- */
.pg20-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--pg20-bg-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 0;
  overflow: hidden;
  z-index: 9999;
  transition: max-height .28s ease;
}
.pg20-menu-open { max-height: 80vh; overflow-y: auto; }
.pg20-mobile-menu ul { list-style: none; padding: .4rem 1rem; }
.pg20-mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.pg20-mobile-menu a {
  display: block;
  padding: 1rem .4rem;
  color: var(--pg20-text);
  font-size: 1.4rem;
}
.pg20-mobile-menu a:hover { color: var(--pg20-gold); text-decoration: none; }

/* ---------- Hero carousel ---------- */
.pg20-hero {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.pg20-slide {
  display: none;
  position: relative;
  border-radius: 0;
}
.pg20-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.pg20-slide-active { display: block; }
.pg20-slide-cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(0, 0, 0, 0.55);
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: 1.3rem;
}
.pg20-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.pg20-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none; cursor: pointer;
}
.pg20-dot-active { background: var(--pg20-gold); }

/* ---------- Sections ---------- */
.pg20-section { padding: 2rem 0; }
.pg20-section-alt { background: var(--pg20-bg-2); }

.pg20-h1 {
  font-size: 2.1rem;
  line-height: 2.6rem;
  margin-bottom: .8rem;
  color: var(--pg20-text);
}
.pg20-h1 b { color: var(--pg20-gold); }
.pg20-h2 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
  padding-left: .8rem;
  border-left: 4px solid var(--pg20-primary);
  color: var(--pg20-text);
}
.pg20-h3 { font-size: 1.45rem; margin: 1rem 0 .6rem; color: var(--pg20-gold); }
.pg20-lead { color: var(--pg20-muted); margin-bottom: 1rem; }

/* ---------- Game grid ---------- */
.pg20-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 .8rem;
}
.pg20-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--pg20-gold);
}
.pg20-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.pg20-game {
  background: var(--pg20-bg-3);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.pg20-game:active { transform: scale(.96); }
.pg20-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}
.pg20-game-name {
  font-size: 1.1rem;
  color: var(--pg20-text);
  padding: .35rem .2rem .5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.pg20-card {
  background: var(--pg20-bg-3);
  border-radius: var(--pg20-radius);
  padding: 1.2rem;
  box-shadow: var(--pg20-shadow);
  margin-bottom: 1rem;
}
.pg20-card-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem 0;
}
.pg20-card-row + .pg20-card-row { border-top: 1px solid rgba(255,255,255,.05); }
.pg20-badge {
  display: inline-block;
  background: var(--pg20-primary);
  color: #fff;
  font-size: 1rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-right: .4rem;
}

/* ---------- CTA band ---------- */
.pg20-cta {
  background: linear-gradient(135deg, var(--pg20-primary), var(--pg20-primary-dark));
  border-radius: var(--pg20-radius);
  padding: 1.6rem;
  text-align: center;
  color: #fff;
}
.pg20-cta h3 { color: #fff; }
.pg20-cta p { color: rgba(255,255,255,.85); margin: .6rem 0 1rem; }

/* ---------- Testimonials ---------- */
.pg20-testi { border-left: 3px solid var(--pg20-gold); padding-left: 1rem; margin-bottom: 1rem; }
.pg20-testi p { font-style: italic; color: var(--pg20-muted); }
.pg20-testi small { color: var(--pg20-slate); }

/* ---------- Payment chips ---------- */
.pg20-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.pg20-chip {
  background: var(--pg20-bg-3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ---------- Footer ---------- */
.pg20-footer {
  background: var(--pg20-bg-2);
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pg20-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin: .8rem 0;
}
.pg20-footer-links a { font-size: 1.2rem; color: var(--pg20-muted); }
.pg20-promo-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.pg20-promo-links .pg20-btn { font-size: 1.15rem; padding: .5rem 1rem; }
.pg20-copy { font-size: 1.1rem; color: var(--pg20-grey); margin-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.pg20-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #3A3A3A, #262626);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.pg20-navbtn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--pg20-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  padding: 4px 2px;
}
.pg20-navbtn .material-icons,
.pg20-navbtn .ion { font-size: 22px; }
.pg20-navbtn i { font-size: 20px; }
.pg20-navbtn span.label { font-size: 1rem; }
.pg20-navbtn:active { transform: scale(.92); }
.pg20-navbtn.is-active { color: var(--pg20-gold); }
.pg20-navbtn.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--pg20-gold);
  border-radius: 0 0 4px 4px;
}
.pg20-navbtn.promo { color: var(--pg20-accent); }

/* ---------- Desktop ---------- */
.pg20-desktop-nav { display: none; }

@media (min-width: 769px) {
  .pg20-bottomnav { display: none; }
  main { padding-bottom: 0; }
  .pg20-header-inner { max-width: 960px; }
  .pg20-wrapper { max-width: 960px; }
  .pg20-grid { grid-template-columns: repeat(6, 1fr); }
  .pg20-desktop-nav { display: flex; gap: 1.2rem; align-items: center; }
  .pg20-desktop-nav a { color: var(--pg20-text); font-size: 1.3rem; }
}

/* ---------- Utilities ---------- */
.pg20-text-center { text-align: center; }
.pg20-mt-1 { margin-top: .6rem; }
.pg20-mt-2 { margin-top: 1.2rem; }
.pg20-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.pg20-muted-text { color: var(--pg20-muted); font-size: 1.25rem; }
.pg20-divider { height: 1px; background: rgba(255,255,255,.06); margin: 1.4rem 0; }
