/* new88 layout stylesheet
   All custom classes use the pg4a- prefix.
   Color palette: #FF8C00 | #2D2D2D | #FFEFD5 | #999999 | #F4A460 | #FFAA00
   Mobile-first, max-width 430px, rem units with 62.5% root font.
*/

:root {
  --pg4a-primary: #FF8C00;
  --pg4a-bg: #2D2D2D;
  --pg4a-text: #FFEFD5;
  --pg4a-muted: #999999;
  --pg4a-accent: #F4A460;
  --pg4a-gold: #FFAA00;
  --pg4a-dark: #1a1a1a;
  --pg4a-card: #3a3a3a;
  --pg4a-border: rgba(255, 140, 0, 0.25);
  --pg4a-radius: 12px;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--pg4a-bg);
  color: var(--pg4a-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--pg4a-gold);
  text-decoration: none;
}

.pg4a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg4a-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.pg4a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #2D2D2D 0%, #3a2a12 100%);
  border-bottom: 2px solid var(--pg4a-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.pg4a-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.8rem;
}

.pg4a-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.pg4a-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.pg4a-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pg4a-gold);
  white-space: nowrap;
}

.pg4a-logo-text span {
  color: var(--pg4a-primary);
}

.pg4a-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg4a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #2D2D2D;
}

.pg4a-btn:hover {
  transform: translateY(-1px);
}

.pg4a-btn-login {
  background: var(--pg4a-text);
  color: var(--pg4a-bg);
}

.pg4a-btn-register {
  background: linear-gradient(135deg, var(--pg4a-primary), var(--pg4a-gold));
  color: #2D2D2D;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.35);
}

.pg4a-menu-btn {
  background: transparent;
  border: 1px solid var(--pg4a-primary);
  color: var(--pg4a-gold);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile expandable menu */
.pg4a-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #22190c;
  border-top: 1px solid var(--pg4a-border);
}

.pg4a-mobile-menu-open {
  max-height: 480px;
}

.pg4a-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.pg4a-mobile-menu-inner a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: #32240f;
  border-radius: 8px;
  color: var(--pg4a-text);
  font-size: 1.3rem;
  border: 1px solid transparent;
}

.pg4a-mobile-menu-inner a:hover,
.pg4a-mobile-menu-inner a:focus {
  border-color: var(--pg4a-primary);
  color: var(--pg4a-gold);
}

/* Main */
main {
  flex: 1;
  padding-top: 64px;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

.pg4a-section {
  padding: 1.6rem 0;
}

.pg4a-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pg4a-gold);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg4a-section-title::before {
  content: "";
  width: 4px;
  height: 1.6rem;
  background: var(--pg4a-primary);
  border-radius: 2px;
}

/* Carousel */
.pg4a-carousel {
  position: relative;
  border-radius: var(--pg4a-radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.pg4a-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.pg4a-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg4a-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg4a-carousel-active {
  opacity: 1;
}

.pg4a-carousel-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--pg4a-text);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.pg4a-carousel-dots {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.pg4a-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 239, 213, 0.5);
  border: none;
  cursor: pointer;
}

.pg4a-carousel-dot-active {
  background: var(--pg4a-gold);
  width: 18px;
  border-radius: 4px;
}

/* Hero / H1 */
.pg4a-hero {
  background: radial-gradient(circle at top, #3a2a12, var(--pg4a-bg));
  border-radius: var(--pg4a-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg4a-border);
}

.pg4a-hero h1 {
  font-size: 2rem;
  color: var(--pg4a-gold);
  line-height: 2.4rem;
  margin-bottom: 0.6rem;
}

.pg4a-hero p {
  font-size: 1.35rem;
  color: var(--pg4a-text);
  margin-bottom: 1rem;
}

.pg4a-hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pg4a-hero-actions .pg4a-btn {
  flex: 1;
  min-width: 130px;
}

/* Category tabs (static, non-switching) */
.pg4a-cat-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pg4a-primary);
  margin: 1.4rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Game grid */
.pg4a-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.pg4a-card {
  background: var(--pg4a-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.pg4a-card:hover,
.pg4a-card:focus {
  transform: translateY(-2px);
  border-color: var(--pg4a-primary);
}

.pg4a-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pg4a-card-name {
  padding: 0.35rem 0.4rem 0.45rem;
  font-size: 1.05rem;
  color: var(--pg4a-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info / feature blocks */
.pg4a-info {
  background: #32240f;
  border-radius: var(--pg4a-radius);
  padding: 1.2rem;
  border: 1px solid var(--pg4a-border);
  margin-bottom: 1rem;
}

.pg4a-info h2 {
  font-size: 1.6rem;
  color: var(--pg4a-gold);
  margin-bottom: 0.6rem;
}

.pg4a-info h3 {
  font-size: 1.4rem;
  color: var(--pg4a-primary);
  margin: 0.8rem 0 0.4rem;
}

.pg4a-info p {
  font-size: 1.3rem;
  color: var(--pg4a-text);
  margin-bottom: 0.6rem;
}

.pg4a-info ul {
  list-style: none;
  padding-left: 0;
}

.pg4a-info ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.pg4a-info ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pg4a-gold);
  position: absolute;
  left: 0;
}

.pg4a-link-inline {
  color: var(--pg4a-gold);
  font-weight: 700;
  cursor: pointer;
}

/* Winner showcase */
.pg4a-winners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.pg4a-winner {
  background: var(--pg4a-card);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--pg4a-border);
}

.pg4a-winner .pg4a-winner-amount {
  color: var(--pg4a-gold);
  font-weight: 800;
}

/* Testimonials */
.pg4a-testimonials {
  display: grid;
  gap: 0.7rem;
}

.pg4a-testimonial {
  background: #32240f;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--pg4a-primary);
}

.pg4a-testimonial p {
  font-size: 1.25rem;
  color: var(--pg4a-text);
  margin-bottom: 0.4rem;
}

.pg4a-testimonial .pg4a-testimonial-author {
  font-size: 1.1rem;
  color: var(--pg4a-muted);
}

/* Payment chips */
.pg4a-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pg4a-payment {
  background: var(--pg4a-card);
  border: 1px solid var(--pg4a-border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pg4a-text);
}

/* CTA banner */
.pg4a-cta {
  background: linear-gradient(135deg, var(--pg4a-primary), var(--pg4a-gold));
  border-radius: var(--pg4a-radius);
  padding: 1.2rem;
  text-align: center;
  color: #2D2D2D;
  margin-bottom: 1rem;
}

.pg4a-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #2D2D2D;
}

.pg4a-cta p {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #2D2D2D;
}

.pg4a-cta .pg4a-btn {
  background: var(--pg4a-bg);
  color: var(--pg4a-gold);
}

/* App download */
.pg4a-app {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: #32240f;
  border-radius: var(--pg4a-radius);
  padding: 1rem;
  border: 1px solid var(--pg4a-border);
}

.pg4a-app-text {
  flex: 1;
}

.pg4a-app-text h3 {
  font-size: 1.5rem;
  color: var(--pg4a-gold);
  margin-bottom: 0.3rem;
}

.pg4a-app-text p {
  font-size: 1.2rem;
  color: var(--pg4a-text);
  margin-bottom: 0.6rem;
}

/* Footer */
.pg4a-footer {
  background: #1a1a1a;
  border-top: 2px solid var(--pg4a-primary);
  padding: 1.6rem 0 1.4rem;
  margin-top: 1.4rem;
}

.pg4a-footer-brand {
  font-size: 1.3rem;
  color: var(--pg4a-muted);
  margin-bottom: 0.8rem;
}

.pg4a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.8rem;
}

.pg4a-footer-links a {
  font-size: 1.2rem;
  color: var(--pg4a-text);
  text-decoration: underline;
}

.pg4a-footer-links a:hover {
  color: var(--pg4a-gold);
}

.pg4a-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.pg4a-footer-promo .pg4a-btn {
  padding: 0 0.9rem;
  min-height: 32px;
  font-size: 1.15rem;
}

.pg4a-footer-copy {
  font-size: 1.1rem;
  color: var(--pg4a-muted);
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 0.8rem;
}

/* Bottom navigation (mobile only) */
.pg4a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #2D2D2D, #1a1a1a);
  border-top: 2px solid var(--pg4a-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.pg4a-bottom-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--pg4a-muted);
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pg4a-bottom-nav-item .pg4a-bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.pg4a-bottom-nav-item:hover,
.pg4a-bottom-nav-item:focus {
  color: var(--pg4a-gold);
  transform: translateY(-2px);
}

.pg4a-bottom-nav-active {
  color: var(--pg4a-primary) !important;
}

.pg4a-bottom-nav-active .pg4a-bottom-nav-icon {
  transform: scale(1.1);
}

.pg4a-bottom-nav-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  margin-right: -22px;
  background: #e03b3b;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 4px;
  min-width: 16px;
  text-align: center;
}

.pg4a-bottom-nav-item {
  position: relative;
}

/* Desktop: hide bottom nav, show top menu button */
@media (min-width: 769px) {
  .pg4a-bottom-nav {
    display: none;
  }
  main {
    padding-bottom: 0;
  }
}

/* Utility */
.pg4a-text-center {
  text-align: center;
}

.pg4a-mt-1 {
  margin-top: 0.6rem;
}
