/* slot 365 theme - mobile-first casino gaming site (PH) */
/* All custom classes use pg77- prefix */

:root {
  --pg77-primary: #4682B4;
  --pg77-bg: #1C2833;
  --pg77-bg2: #243446;
  --pg77-bg3: #2E4259;
  --pg77-text: #B0E0E6;
  --pg77-text-light: #E8F4F8;
  --pg77-accent: #F5C45E;
  --pg77-accent2: #5BD1A6;
  --pg77-danger: #E8635A;
  --pg77-radius: 1.2rem;
  --pg77-shadow: 0 4px 18px rgba(0,0,0,.45);
  --pg77-header-h: 6rem;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pg77-bg);
  color: var(--pg77-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

a { color: var(--pg77-text); text-decoration: none; }
a:hover, a:focus { color: var(--pg77-accent); }

/* ===== Header ===== */
.pg77-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg77-header-h);
  background: linear-gradient(135deg, var(--pg77-bg) 0%, var(--pg77-bg2) 100%);
  border-bottom: 2px solid var(--pg77-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: var(--pg77-shadow);
}

.pg77-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex: 1;
  min-width: 0;
}
.pg77-brand img { width: 2.8rem; height: 2.8rem; border-radius: .5rem; }
.pg77-brand strong {
  color: var(--pg77-text-light);
  font-size: 1.7rem;
  letter-spacing: .5px;
  white-space: nowrap;
}
.pg77-brand span { color: var(--pg77-primary); }

.pg77-header-actions { display: flex; align-items: center; gap: .6rem; }

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

.pg77-btn-register {
  background: linear-gradient(135deg, var(--pg77-accent) 0%, #E89A2E 100%);
  color: var(--pg77-bg);
}
.pg77-btn-login {
  background: transparent;
  color: var(--pg77-text-light);
  border: 1.5px solid var(--pg77-primary);
}

.pg77-menu-btn {
  background: transparent;
  border: none;
  color: var(--pg77-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Expandable mobile menu ===== */
.pg77-mobile-menu {
  position: fixed;
  top: var(--pg77-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg77-bg2);
  border-bottom: 2px solid var(--pg77-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.pg77-mobile-menu.pg77-menu-open { max-height: 60rem; }
.pg77-mobile-menu ul { list-style: none; padding: .8rem 1rem; }
.pg77-mobile-menu li { border-bottom: 1px solid rgba(70,130,180,.25); }
.pg77-mobile-menu li:last-child { border-bottom: none; }
.pg77-mobile-menu a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.4rem .5rem;
  color: var(--pg77-text-light);
  font-size: 1.4rem;
  min-height: 4.4rem;
}
.pg77-mobile-menu a i { color: var(--pg77-primary); font-size: 1.8rem; width: 2rem; text-align: center; }
.pg77-mobile-menu a:hover { background: rgba(70,130,180,.12); color: var(--pg77-accent); }

/* ===== Layout ===== */
.pg77-main {
  padding-top: calc(var(--pg77-header-h) + 1rem);
  padding-bottom: 1rem;
}
.pg77-container { padding: 0 1.2rem; }
.pg77-section { margin: 2rem 0; }
.pg77-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pg77-text);
  margin-bottom: 1rem;
  padding-left: .8rem;
  border-left: 4px solid var(--pg77-accent);
}

/* ===== Hero carousel ===== */
.pg77-carousel {
  position: relative;
  border-radius: var(--pg77-radius);
  overflow: hidden;
  box-shadow: var(--pg77-shadow);
}
.pg77-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.pg77-slide.pg77-active { display: block; }
.pg77-slide img { width: 100%; height: 17rem; object-fit: cover; }
.pg77-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(28,40,51,.92));
  color: var(--pg77-text-light);
  font-size: 1.3rem;
  font-weight: 600;
}
.pg77-dots {
  position: absolute;
  bottom: .6rem;
  right: 1rem;
  display: flex;
  gap: .4rem;
}
.pg77-dot {
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: rgba(176,224,230,.5);
  cursor: pointer;
}
.pg77-dot.pg77-dot-active { background: var(--pg77-accent); }

/* ===== Game grid ===== */
.pg77-game-group { margin-bottom: 2rem; }
.pg77-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}
.pg77-game-card {
  background: var(--pg77-bg2);
  border-radius: .8rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(70,130,180,.2);
}
.pg77-game-card:active { transform: scale(.95); }
.pg77-game-card:hover { box-shadow: 0 0 0 2px var(--pg77-primary); }
.pg77-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0e1722;
}
.pg77-game-card .pg77-game-name {
  font-size: 1.05rem;
  color: var(--pg77-text-light);
  padding: .4rem .2rem .5rem;
  line-height: 1.2rem;
  height: 2.6rem;
  overflow: hidden;
}

/* ===== Cards & info blocks ===== */
.pg77-card {
  background: var(--pg77-bg2);
  border-radius: var(--pg77-radius);
  padding: 1.4rem;
  box-shadow: var(--pg77-shadow);
  margin-bottom: 1.4rem;
  border: 1px solid rgba(70,130,180,.18);
}
.pg77-card h2, .pg77-card h3 { color: var(--pg77-text); margin-bottom: .8rem; }
.pg77-card p { color: var(--pg77-text-light); font-size: 1.25rem; margin-bottom: .8rem; }
.pg77-card ul { padding-left: 1.6rem; color: var(--pg77-text-light); font-size: 1.2rem; }
.pg77-card li { margin-bottom: .5rem; }

.pg77-promo-link {
  color: var(--pg77-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Feature / stats grid ===== */
.pg77-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.pg77-feature {
  background: var(--pg77-bg2);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(70,130,180,.18);
}
.pg77-feature i { font-size: 2.4rem; color: var(--pg77-primary); margin-bottom: .6rem; }
.pg77-feature strong { display: block; color: var(--pg77-text); font-size: 1.25rem; margin-bottom: .3rem; }
.pg77-feature span { color: var(--pg77-text-light); font-size: 1.1rem; }

/* ===== Winners strip ===== */
.pg77-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px dashed rgba(70,130,180,.25);
  font-size: 1.15rem;
}
.pg77-winner:last-child { border-bottom: none; }
.pg77-winner b { color: var(--pg77-accent2); }

/* ===== Testimonials ===== */
.pg77-quote {
  background: var(--pg77-bg3);
  border-left: 3px solid var(--pg77-accent);
  border-radius: .6rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--pg77-text-light);
}
.pg77-quote b { display: block; color: var(--pg77-text); margin-top: .5rem; font-size: 1.1rem; }

/* ===== Payment icons ===== */
.pg77-pay-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pg77-pay {
  background: var(--pg77-bg2);
  border-radius: .5rem;
  padding: .6rem .9rem;
  font-size: 1.1rem;
  color: var(--pg77-text);
  border: 1px solid rgba(70,130,180,.2);
}

/* ===== App download CTA ===== */
.pg77-app-cta {
  background: linear-gradient(135deg, var(--pg77-primary), #2E5C82);
  border-radius: var(--pg77-radius);
  padding: 1.6rem;
  text-align: center;
  color: var(--pg77-text-light);
  margin-bottom: 1.4rem;
}
.pg77-app-cta h3 { color: var(--pg77-text-light); margin-bottom: .6rem; }
.pg77-app-cta .pg77-btn { margin: .6rem .3rem 0; }

/* ===== Footer ===== */
.pg77-footer {
  background: var(--pg77-bg2);
  border-top: 2px solid var(--pg77-primary);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
}
.pg77-footer p { font-size: 1.15rem; color: var(--pg77-text); margin-bottom: 1rem; }
.pg77-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-bottom: 1rem;
}
.pg77-footer-links a { color: var(--pg77-text-light); font-size: 1.15rem; }
.pg77-footer-links a:hover { color: var(--pg77-accent); }
.pg77-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
.pg77-footer-promo .pg77-btn { font-size: 1.1rem; padding: 0 1rem; min-height: 3.6rem; }
.pg77-copy { font-size: 1.05rem; color: rgba(176,224,230,.7); text-align: center; padding-top: 1rem; border-top: 1px solid rgba(70,130,180,.2); }

/* ===== Mobile bottom nav ===== */
.pg77-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, var(--pg77-bg2), var(--pg77-bg));
  border-top: 2px solid var(--pg77-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.45);
}
.pg77-bnav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--pg77-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.pg77-bnav-btn i, .pg77-bnav-btn .material-icons-outlined, .pg77-bnav-btn .ion {
  font-size: 2.4rem;
  line-height: 1;
}
.pg77-bnav-btn span { font-size: 1.05rem; }
.pg77-bnav-btn:active { transform: scale(.92); }
.pg77-bnav-btn:hover { color: var(--pg77-text-light); }
.pg77-bnav-active { color: var(--pg77-accent) !important; }
.pg77-bnav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3rem; height: .3rem;
  background: var(--pg77-accent);
  border-radius: 0 0 .3rem .3rem;
}

/* ===== Utilities ===== */
.pg77-text-center { text-align: center; }
.pg77-mt1 { margin-top: 1rem; }
.pg77-mt2 { margin-top: 2rem; }
.pg77-badge {
  display: inline-block;
  background: var(--pg77-danger);
  color: #fff;
  font-size: .9rem;
  padding: .1rem .5rem;
  border-radius: 1rem;
  margin-left: .3rem;
}

/* Desktop: hide bottom nav, show header centered (still mobile max-width feel) */
@media (min-width: 769px) {
  .pg77-bnav { display: none; }
}
@media (max-width: 768px) {
  .pg77-main { padding-bottom: 7.5rem; }
  .pg77-footer { padding-bottom: 7rem; }
}
