/* ============================================================
   phmacao apk (phmacaoapk.homes) - Core stylesheet
   Mobile-first HTML5 casino layout. All custom classes use
   the project prefix `pge4-` to keep this site's namespace
   isolated from sibling sites on the same host.
   Palette: #0E1621 base / #80CBC4 #00E5FF #00FFFF accents
   ============================================================ */

:root {
  --pge4-bg: #0E1621;
  --pge4-bg-soft: #142233;
  --pge4-bg-card: #18293d;
  --pge4-bg-elev: #1d3350;
  --pge4-teal: #80CBC4;
  --pge4-cyan: #00E5FF;
  --pge4-bright: #00FFFF;
  --pge4-gold: #CD853F;
  --pge4-text: #E8F4F6;
  --pge4-muted: #9FB3C8;
  --pge4-line: rgba(128, 203, 196, 0.18);
  --pge4-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --pge4-radius: 14px;
  --pge4-radius-sm: 9px;
  --pge4-max: 430px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #16304a 0%, var(--pge4-bg) 55%) fixed;
  color: var(--pge4-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

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

a { color: var(--pge4-cyan); text-decoration: none; }
a:hover { color: var(--pge4-bright); }

/* ---------- Layout shell ---------- */
.pge4-shell {
  width: 100%;
  max-width: var(--pge4-max);
  margin: 0 auto;
  background: var(--pge4-bg);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  position: relative;
}

/* ---------- Header ---------- */
.pge4-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0c1626 0%, #10202f 100%);
  border-bottom: 1px solid var(--pge4-line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pge4-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.pge4-brand .pge4-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pge4-cyan), var(--pge4-teal));
  display: grid;
  place-items: center;
  color: #07121b;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.35);
}
.pge4-brand .pge4-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--pge4-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pge4-brand .pge4-name span { color: var(--pge4-cyan); }

.pge4-header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.pge4-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  line-height: 1;
}
.pge4-btn:active { transform: translateY(1px) scale(0.97); }

.pge4-btn-login {
  background: transparent;
  color: var(--pge4-teal);
  border: 1px solid var(--pge4-teal);
}
.pge4-btn-login:hover { background: rgba(128, 203, 196, 0.12); }

.pge4-btn-register {
  background: linear-gradient(135deg, var(--pge4-gold), #f0b36b);
  color: #1a0e00;
  box-shadow: 0 6px 16px rgba(205, 133, 63, 0.4);
}
.pge4-btn-register:hover { box-shadow: 0 8px 20px rgba(205, 133, 63, 0.55); }

.pge4-menu-toggle {
  background: transparent;
  border: 1px solid var(--pge4-line);
  color: var(--pge4-teal);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---------- Mobile slide menu ---------- */
.pge4-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.pge4-menu-backdrop.pge4-open { opacity: 1; visibility: visible; }

.pge4-mobile-menu {
  position: fixed;
  top: 0;
  right: -86%;
  width: 80%;
  max-width: 340px;
  height: 100%;
  background: linear-gradient(180deg, #0d1b2b, #0a141f);
  z-index: 9999;
  padding: 22px 18px;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--pge4-line);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}
.pge4-mobile-menu.pge4-open { right: 0; }

.pge4-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pge4-menu-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--pge4-cyan);
}
.pge4-menu-close {
  background: transparent;
  border: none;
  color: var(--pge4-muted);
  font-size: 22px;
  cursor: pointer;
}

.pge4-menu-section { margin-bottom: 18px; }
.pge4-menu-section h4 {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--pge4-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.pge4-menu-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--pge4-text);
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.pge4-menu-section a:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--pge4-line);
  color: var(--pge4-cyan);
}
.pge4-menu-section a i { width: 22px; text-align: center; color: var(--pge4-teal); }

.pge4-menu-cta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ---------- Main content ---------- */
main { padding-bottom: 92px; }

.pge4-section { padding: 22px 14px 8px; }

.pge4-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pge4-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--pge4-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pge4-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--pge4-cyan), var(--pge4-teal));
  border-radius: 4px;
}
.pge4-section-more {
  font-size: 12px;
  color: var(--pge4-cyan);
}

/* ---------- Hero ---------- */
.pge4-hero {
  position: relative;
  margin: 12px 14px 6px;
  border-radius: var(--pge4-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0d2a3f, #1a3b5c);
  border: 1px solid var(--pge4-line);
  box-shadow: var(--pge4-shadow);
}
.pge4-hero-slides { display: flex; scroll-snap-type: x mandatory; overflow-x: auto; scroll-behavior: smooth; }
.pge4-hero-slides::-webkit-scrollbar { display: none; }
.pge4-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 22px 18px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.25), transparent 60%);
}
.pge4-hero-badge {
  display: inline-block;
  background: rgba(205, 133, 63, 0.2);
  color: var(--pge4-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  border: 1px solid rgba(205, 133, 63, 0.4);
  margin-bottom: 10px;
}
.pge4-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff, var(--pge4-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pge4-hero p {
  margin: 0 0 14px;
  color: var(--pge4-muted);
  font-size: 13px;
  max-width: 92%;
}
.pge4-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.pge4-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.pge4-hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s;
}
.pge4-hero-dots span.pge4-active { background: var(--pge4-cyan); width: 16px; border-radius: 4px; }

/* ---------- Marquee ---------- */
.pge4-marquee {
  background: linear-gradient(90deg, rgba(0,229,255,0.12), rgba(128,203,196,0.06));
  border-top: 1px solid var(--pge4-line);
  border-bottom: 1px solid var(--pge4-line);
  margin: 8px 0 0;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: var(--pge4-teal);
}
.pge4-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: pge4scroll 22s linear infinite;
}
@keyframes pge4scroll {
  to { transform: translateX(-100%); }
}

/* ---------- Quick category pills ---------- */
.pge4-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px;
}
.pge4-cat {
  background: var(--pge4-bg-card);
  border: 1px solid var(--pge4-line);
  border-radius: 12px;
  padding: 12px 4px 9px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.pge4-cat:hover {
  transform: translateY(-2px);
  border-color: var(--pge4-cyan);
  background: var(--pge4-bg-elev);
}
.pge4-cat i { font-size: 22px; color: var(--pge4-cyan); display: block; margin-bottom: 5px; }
.pge4-cat span { font-size: 11px; color: var(--pge4-text); font-weight: 600; }

/* ---------- Game grid ---------- */
.pge4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.pge4-card {
  background: var(--pge4-bg-card);
  border: 1px solid var(--pge4-line);
  border-radius: var(--pge4-radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pge4-card:hover {
  transform: translateY(-3px);
  border-color: var(--pge4-cyan);
  box-shadow: 0 10px 22px rgba(0, 229, 255, 0.2);
}
.pge4-card .pge4-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a1422;
  overflow: hidden;
}
.pge4-card .pge4-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pge4-card:hover .pge4-thumb img { transform: scale(1.06); }
.pge4-card .pge4-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(205, 133, 63, 0.92);
  color: #1a0e00;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.4px;
}
.pge4-card .pge4-tag.pge4-hot { background: linear-gradient(135deg, #ff5b5b, #ff8a3d); color: #fff; }
.pge4-card .pge4-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 18, 30, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pge4-card:hover .pge4-play { opacity: 1; }
.pge4-card .pge4-play span {
  background: var(--pge4-cyan);
  color: #07121b;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}
.pge4-card .pge4-meta {
  padding: 7px 8px 9px;
}
.pge4-card .pge4-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--pge4-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pge4-card .pge4-vendor {
  font-size: 10px;
  color: var(--pge4-muted);
  margin-top: 2px;
}

/* ---------- Featured row ---------- */
.pge4-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pge4-feature {
  border-radius: var(--pge4-radius);
  overflow: hidden;
  position: relative;
  background: var(--pge4-bg-card);
  border: 1px solid var(--pge4-line);
  min-height: 130px;
  cursor: pointer;
  transition: transform 0.18s;
}
.pge4-feature:hover { transform: translateY(-2px); }
.pge4-feature img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.pge4-feature .pge4-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,18,30,0) 30%, rgba(8,18,30,0.92) 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pge4-feature .pge4-overlay h4 {
  margin: 0;
  font-size: 14px;
  color: #fff;
}
.pge4-feature .pge4-overlay p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--pge4-teal);
}

/* ---------- Promo banner ---------- */
.pge4-promo {
  margin: 16px 14px;
  padding: 16px;
  border-radius: var(--pge4-radius);
  background: linear-gradient(120deg, #1a3b5c, #2a4f7a);
  border: 1px solid var(--pge4-cyan);
  position: relative;
  overflow: hidden;
}
.pge4-promo::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,255,0.35), transparent 60%);
}
.pge4-promo h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
  position: relative;
}
.pge4-promo p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--pge4-muted);
  position: relative;
}
.pge4-promo .pge4-btn { position: relative; }

/* ---------- Content / SEO blocks ---------- */
.pge4-prose {
  padding: 18px 14px;
  font-size: 14px;
  color: var(--pge4-muted);
  line-height: 1.7;
}
.pge4-prose h2 {
  color: var(--pge4-text);
  font-size: 19px;
  margin: 22px 0 10px;
  position: relative;
  padding-left: 12px;
}
.pge4-prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--pge4-cyan);
  border-radius: 4px;
}
.pge4-prose h3 {
  color: var(--pge4-teal);
  font-size: 15px;
  margin: 16px 0 6px;
}
.pge4-prose p { margin: 0 0 10px; }
.pge4-prose ul { margin: 0 0 12px; padding-left: 20px; }
.pge4-prose li { margin-bottom: 6px; }
.pge4-prose strong { color: var(--pge4-cyan); font-weight: 700; }
.pge4-prose a { color: var(--pge4-gold); border-bottom: 1px dashed rgba(205,133,63,0.4); }
.pge4-prose a:hover { color: #f0b36b; }

/* ---------- Steps ---------- */
.pge4-steps {
  display: grid;
  gap: 10px;
  padding: 0 14px 8px;
}
.pge4-step {
  display: flex;
  gap: 12px;
  background: var(--pge4-bg-card);
  border: 1px solid var(--pge4-line);
  padding: 12px;
  border-radius: 12px;
}
.pge4-step-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pge4-cyan), var(--pge4-teal));
  color: #07121b;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.pge4-step h4 { margin: 0 0 3px; font-size: 14px; color: var(--pge4-text); }
.pge4-step p { margin: 0; font-size: 12px; color: var(--pge4-muted); }

/* ---------- FAQ ---------- */
.pge4-faq { padding: 0 14px 8px; }
.pge4-faq-item {
  background: var(--pge4-bg-card);
  border: 1px solid var(--pge4-line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pge4-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 13px 14px;
  color: var(--pge4-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pge4-faq-q i { color: var(--pge4-cyan); transition: transform 0.2s; }
.pge4-faq-item.pge4-open .pge4-faq-q i { transform: rotate(180deg); }
.pge4-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  color: var(--pge4-muted);
  font-size: 13px;
  line-height: 1.6;
}
.pge4-faq-item.pge4-open .pge4-faq-a {
  max-height: 400px;
  padding: 0 14px 13px;
}

/* ---------- Stats strip ---------- */
.pge4-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
}
.pge4-stat {
  background: var(--pge4-bg-card);
  border: 1px solid var(--pge4-line);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
}
.pge4-stat b {
  display: block;
  font-size: 18px;
  color: var(--pge4-cyan);
  font-weight: 800;
}
.pge4-stat span { font-size: 10px; color: var(--pge4-muted); text-transform: uppercase; letter-spacing: 0.6px; }

/* ---------- Footer ---------- */
.pge4-footer {
  background: linear-gradient(180deg, #0a141f, #060d16);
  border-top: 1px solid var(--pge4-line);
  padding: 22px 14px 26px;
  color: var(--pge4-muted);
  font-size: 12px;
}
.pge4-footer h4 {
  color: var(--pge4-cyan);
  font-size: 13px;
  margin: 14px 0 8px;
  letter-spacing: 0.4px;
}
.pge4-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.pge4-footer-links a { color: var(--pge4-muted); font-size: 12px; }
.pge4-footer-links a:hover { color: var(--pge4-cyan); }
.pge4-footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pge4-line);
  font-size: 11px;
  color: #5d7186;
  text-align: center;
  line-height: 1.6;
}
.pge4-disclaimer {
  margin-top: 10px;
  padding: 10px;
  background: rgba(205, 133, 63, 0.08);
  border: 1px solid rgba(205, 133, 63, 0.25);
  border-radius: 8px;
  font-size: 11px;
  color: #c7a987;
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.pge4-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 64px;
  background: linear-gradient(180deg, #0c1b2c 0%, #060d16 100%);
  border-top: 1px solid var(--pge4-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0 4px;
}
.pge4-bottomnav .pge4-shell-inner {
  width: 100%;
  max-width: var(--pge4-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.pge4-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pge4-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  padding: 6px 2px 4px;
  transition: color 0.18s;
}
.pge4-nav-btn i,
.pge4-nav-btn .material-symbols-outlined {
  font-size: 22px;
}
.pge4-nav-btn span {
  font-size: 10px;
  font-weight: 600;
}
.pge4-nav-btn:hover { color: var(--pge4-teal); }
.pge4-nav-btn.pge4-active { color: var(--pge4-cyan); }
.pge4-nav-btn.pge4-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pge4-cyan);
}
.pge4-nav-btn.pge4-center {
  position: relative;
  transform: translateY(-14px);
}
.pge4-nav-btn.pge4-center i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pge4-gold), #f0b36b);
  color: #1a0e00;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(205, 133, 63, 0.55);
  border: 3px solid #0c1b2c;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .pge4-bottomnav { display: none; }
  main { padding-bottom: 24px; }
  .pge4-shell { box-shadow: 0 0 80px rgba(0, 0, 0, 0.65); }
}

/* ---------- Small screens tuning ---------- */
@media (max-width: 360px) {
  .pge4-grid { grid-template-columns: repeat(2, 1fr); }
  .pge4-hero h1 { font-size: 22px; }
}
