/* =========================================================
   ph777 login - layout-738b.css
   Shared stylesheet for all pages.
   All custom classes use the "pg73-" prefix.
   Palette: #E0FFFF | #000080 | #87CEEB | #2E4057 | #999999
   ========================================================= */

:root {
  --pg73-primary: #000080;       /* navy */
  --pg73-accent: #87CEEB;        /* sky blue */
  --pg73-light: #E0FFFF;         /* light cyan */
  --pg73-dark: #2E4057;          /* slate */
  --pg73-muted: #999999;         /* grey */
  --pg73-bg: #0b1330;            /* deep navy background */
  --pg73-bg-2: #111e44;          /* card background */
  --pg73-text: #E0FFFF;
  --pg73-text-soft: #c7d4ee;
  --pg73-gold: #ffd36b;
  --pg73-danger: #ff5a6e;
  --pg73-success: #4ade80;
  --pg73-radius: 14px;
  --pg73-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pg73-header-h: 60px;
  --pg73-bottomnav-h: 62px;
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #15224d 0%, var(--pg73-bg) 55%, #060c22 100%);
  color: var(--pg73-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html { font-size: 62.5%; } /* 1rem = 10px baseline for rem scaling */

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

/* ---------- Layout containers ---------- */
.pg73-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.pg73-wrapper {
  padding-top: calc(var(--pg73-header-h) + 1rem);
  padding-bottom: calc(var(--pg73-bottomnav-h) + 2rem);
  min-height: 100vh;
}
.pg73-grid {
  display: grid;
  gap: 1.2rem;
}

/* ---------- Header ---------- */
.pg73-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg73-header-h);
  background: linear-gradient(90deg, var(--pg73-primary), #1a2a66);
  border-bottom: 1px solid rgba(135, 206, 235, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.pg73-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.pg73-brand { display: flex; align-items: center; gap: 0.7rem; }
.pg73-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg73-brand-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg73-light);
  letter-spacing: 0.3px;
}
.pg73-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg73-menu-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(135,206,235,0.35);
  color: var(--pg73-light);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---------- Buttons ---------- */
.pg73-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 40px;
  line-height: 1;
}
.pg73-btn:active { transform: scale(0.96); }
.pg73-btn-primary {
  background: linear-gradient(135deg, var(--pg73-gold), #ff9d3a);
  color: #3a1d00;
  box-shadow: 0 6px 18px rgba(255, 211, 107, 0.35);
}
.pg73-btn-secondary {
  background: linear-gradient(135deg, var(--pg73-accent), #4aa3df);
  color: #06223e;
  box-shadow: 0 6px 18px rgba(135, 206, 235, 0.3);
}
.pg73-btn-ghost {
  background: rgba(224, 255, 255, 0.08);
  color: var(--pg73-light);
  border: 1px solid rgba(135, 206, 235, 0.4);
}
.pg73-btn-block { width: 100%; }
.pg73-text-link {
  color: var(--pg73-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Mobile menu ---------- */
.pg73-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.pg73-overlay-active { opacity: 1; pointer-events: auto; }
.pg73-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--pg73-bg-2);
  border-left: 1px solid rgba(135,206,235,0.2);
  z-index: 9999;
  padding: calc(var(--pg73-header-h) + 1rem) 1.4rem 2rem;
  transform: translateX(0);
  transition: right 0.28s ease;
  overflow-y: auto;
}
.pg73-menu-open { right: 0; }
.pg73-mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--pg73-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(135,206,235,0.12);
}
.pg73-mobile-menu a:hover { background: rgba(135,206,235,0.1); }
.pg73-menu-title {
  font-size: 1.5rem; color: var(--pg73-accent);
  margin: 0.5rem 0 0.3rem; font-weight: 700;
}

/* ---------- Hero carousel ---------- */
.pg73-carousel {
  position: relative;
  border-radius: var(--pg73-radius);
  overflow: hidden;
  box-shadow: var(--pg73-shadow);
  margin-bottom: 1.5rem;
}
.pg73-carousel-track { position: relative; }
.pg73-carousel-slide {
  display: block;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pg73-carousel-slide img {
  width: 100%; height: 180px; object-fit: cover;
}
.pg73-slide-active { opacity: 1; position: relative; }
.pg73-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.pg73-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.pg73-dot-active { background: var(--pg73-gold); width: 18px; border-radius: 6px; }

/* ---------- Sections ---------- */
.pg73-section {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: linear-gradient(160deg, var(--pg73-bg-2), #0d1838);
  border: 1px solid rgba(135,206,235,0.18);
  border-radius: var(--pg73-radius);
  box-shadow: var(--pg73-shadow);
}
.pg73-section h2 {
  font-size: 1.9rem; color: var(--pg73-light);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.pg73-section h3 {
  font-size: 1.6rem; color: var(--pg73-accent);
  margin: 1rem 0 0.5rem;
}
.pg73-section p { color: var(--pg73-text-soft); font-size: 1.4rem; }
.pg73-eyebrow {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--pg73-gold);
  background: rgba(255,211,107,0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

/* ---------- Hero CTA ---------- */
.pg73-hero {
  text-align: center;
  padding: 1.6rem 1.2rem;
}
.pg73-hero h1 {
  font-size: 2.6rem;
  color: var(--pg73-light);
  margin: 0.4rem 0;
  line-height: 1.25;
}
.pg73-hero p { color: var(--pg73-text-soft); font-size: 1.4rem; }

/* ---------- Game grid ---------- */
.pg73-cat-title {
  font-size: 1.6rem; color: var(--pg73-gold);
  margin: 1.4rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pg73-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg73-game-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(135,206,235,0.15);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
  padding: 0.5rem;
}
.pg73-game-card:hover { transform: translateY(-2px); border-color: var(--pg73-accent); }
.pg73-game-card img {
  width: 100%; height: 76px; object-fit: cover;
  border-radius: 8px;
}
.pg73-game-name {
  font-size: 1.15rem;
  color: var(--pg73-text);
  margin-top: 0.4rem;
  line-height: 1.2;
  min-height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Cards / feature list ---------- */
.pg73-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(135,206,235,0.15);
  border-radius: 12px;
  padding: 1rem;
}
.pg73-feature-list { list-style: none; padding: 0; margin: 0; }
.pg73-feature-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(135,206,235,0.15);
  color: var(--pg73-text-soft);
  font-size: 1.4rem;
}
.pg73-feature-list li:last-child { border-bottom: none; }

/* ---------- Stats / RTP ---------- */
.pg73-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pg73-stat {
  background: rgba(0,0,128,0.25);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.pg73-stat-num {
  font-size: 2rem; color: var(--pg73-gold); font-weight: 800;
}
.pg73-stat-label { font-size: 1.2rem; color: var(--pg73-text-soft); }

/* ---------- Testimonials ---------- */
.pg73-testimonials { display: grid; gap: 0.8rem; }
.pg73-testimonial {
  background: rgba(135,206,235,0.08);
  border-left: 3px solid var(--pg73-accent);
  padding: 1rem;
  border-radius: 10px;
}
.pg73-testimonial p { margin: 0 0 0.4rem; color: var(--pg73-text); font-size: 1.35rem; }
.pg73-testimonial span { color: var(--pg73-muted); font-size: 1.2rem; }

/* ---------- Payment methods ---------- */
.pg73-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  text-align: center;
}
.pg73-pay-item {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.9rem 0.5rem;
  font-size: 1.2rem;
  color: var(--pg73-text);
}
.pg73-pay-item i { font-size: 2.2rem; color: var(--pg73-accent); display: block; margin-bottom: 0.3rem; }

/* ---------- Winners ---------- */
.pg73-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(135,206,235,0.1);
  font-size: 1.3rem;
}
.pg73-winner:last-child { border-bottom: none; }
.pg73-winner-badge {
  background: var(--pg73-success);
  color: #06280f;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.pg73-footer {
  margin-top: 2rem;
  padding: 1.6rem 1.4rem 1rem;
  background: #060c22;
  border-top: 1px solid rgba(135,206,235,0.15);
}
.pg73-footer p { font-size: 1.25rem; color: var(--pg73-text-soft); }
.pg73-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 0.8rem 0;
}
.pg73-footer-links a {
  font-size: 1.2rem;
  color: var(--pg73-text);
}
.pg73-footer-cta {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: 0.8rem 0;
}
.pg73-copyright {
  font-size: 1.15rem; color: var(--pg73-muted);
  border-top: 1px dashed rgba(135,206,235,0.15);
  padding-top: 0.8rem;
  text-align: center;
}

/* ---------- Mobile bottom navigation ---------- */
.pg73-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg73-bottomnav-h);
  background: linear-gradient(180deg, #10204d, #060c22);
  border-top: 1px solid rgba(135,206,235,0.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.pg73-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pg73-text-soft);
  font-size: 1.1rem;
  gap: 2px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
  min-width: 60px;
  min-height: 60px;
}
.pg73-bottomnav a:active { transform: scale(0.92); }
.pg73-bottomnav a i,
.pg73-bottomnav a .material-icons,
.pg73-bottomnav a ion-icon {
  font-size: 24px;
}
.pg73-bottomnav a.pg73-active { color: var(--pg73-gold); }
.pg73-bottomnav a span { font-size: 1.1rem; }

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

/* ---------- Desktop / wide screens ---------- */
@media (min-width: 769px) {
  .pg73-bottomnav { display: none; }
  .pg73-wrapper { padding-bottom: 2rem; }
  .pg73-container { max-width: 760px; }
}

/* ---------- Mobile tuned (max-width 430px) ---------- */
@media (max-width: 430px) {
  body { font-size: 1.45rem; }
  .pg73-hero h1 { font-size: 2.3rem; }
  .pg73-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .pg73-game-card img { height: 66px; }
  .pg73-section { padding: 1.1rem; }
  .pg73-section h2 { font-size: 1.7rem; }
  .pg73-stats { grid-template-columns: repeat(2, 1fr); }
  .pg73-container { padding: 0 1rem; }
  .pg73-btn { padding: 0.6rem 1.2rem; font-size: 1.3rem; }
}

/* ---------- Very small screens ---------- */
@media (max-width: 360px) {
  .pg73-brand-text { font-size: 1.4rem; }
  .pg73-game-grid { grid-template-columns: repeat(2, 1fr); }
}
