/**
 * phlwinapp.css - Core Stylesheet for phlwinapp.sbs
 * All classes prefixed with pg68- to avoid conflicts
 * Color palette: #32CD32 #E65100 #FF8000 #00FF00 #2E4057
 */

/* === CSS Variables === */
:root {
  --pg68-primary: #32CD32;
  --pg68-accent: #FF8000;
  --pg68-accent2: #E65100;
  --pg68-glow: #00FF00;
  --pg68-bg: #2E4057;
  --pg68-bg-dark: #1a2a3a;
  --pg68-bg-card: #243447;
  --pg68-text: #f0f0f0;
  --pg68-text-muted: #a0b0c0;
  --pg68-white: #ffffff;
  --pg68-border: #3a5068;
  --pg68-radius: 8px;
  --pg68-radius-lg: 12px;
  --pg68-header-h: 56px;
  --pg68-bottom-h: 62px;
  --pg68-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--pg68-font);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pg68-text);
  background: var(--pg68-bg-dark);
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--pg68-primary); text-decoration: none; }
a:hover { color: var(--pg68-glow); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.pg68-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg68-bg-dark), var(--pg68-bg));
  border-bottom: 2px solid var(--pg68-primary);
  max-width: 430px;
  margin: 0 auto;
}
.pg68-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: var(--pg68-header-h);
}
.pg68-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg68-logo-area img { width: 30px; height: 30px; border-radius: 4px; }
.pg68-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg68-primary);
  letter-spacing: 0.5px;
}
.pg68-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg68-btn-register {
  background: var(--pg68-primary);
  color: var(--pg68-bg-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--pg68-radius);
  cursor: pointer;
  transition: all 0.2s;
}
.pg68-btn-register:hover { background: var(--pg68-glow); transform: scale(1.05); }
.pg68-btn-login {
  background: transparent;
  color: var(--pg68-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--pg68-primary);
  border-radius: var(--pg68-radius);
  cursor: pointer;
  transition: all 0.2s;
}
.pg68-btn-login:hover { background: var(--pg68-primary); color: var(--pg68-bg-dark); }

/* === Mobile Menu === */
.pg68-menu-btn {
  background: none;
  border: none;
  color: var(--pg68-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}
.pg68-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.pg68-overlay-active { display: block; }
.pg68-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100%;
  background: var(--pg68-bg-dark);
  border-left: 2px solid var(--pg68-primary);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.pg68-menu-active { right: 0; }
.pg68-menu-close {
  background: none;
  border: none;
  color: var(--pg68-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}
.pg68-menu-list { list-style: none; margin-top: 2rem; }
.pg68-menu-list li { margin-bottom: 0.8rem; }
.pg68-menu-list a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--pg68-text);
  font-size: 1.4rem;
  border-radius: var(--pg68-radius);
  transition: all 0.2s;
}
.pg68-menu-list a:hover {
  background: var(--pg68-bg-card);
  color: var(--pg68-primary);
  padding-left: 1.4rem;
}

/* === Carousel === */
.pg68-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--pg68-header-h);
}
.pg68-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.pg68-slide-active { display: block; }
.pg68-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.pg68-slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg68-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.pg68-dot-active { background: var(--pg68-primary); }

/* === Main Content === */
.pg68-main {
  padding: 1.2rem;
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  .pg68-main { padding-bottom: calc(var(--pg68-bottom-h) + 1.5rem); }
}

/* === Section Titles === */
.pg68-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg68-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg68-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg68-section-title i { font-size: 2.2rem; color: var(--pg68-accent); }

/* === Game Grid === */
.pg68-game-section { margin-bottom: 2rem; }
.pg68-game-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg68-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg68-primary);
}
.pg68-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.pg68-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--pg68-radius);
  overflow: hidden;
  background: var(--pg68-bg-card);
  padding: 0.4rem;
}
.pg68-game-item:hover { transform: scale(1.05); }
.pg68-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.pg68-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--pg68-text-muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.2rem;
}

/* === Content Sections === */
.pg68-content-block {
  background: var(--pg68-bg-card);
  border-radius: var(--pg68-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--pg68-border);
}
.pg68-content-block h2 {
  font-size: 1.8rem;
  color: var(--pg68-primary);
  margin-bottom: 1rem;
}
.pg68-content-block h3 {
  font-size: 1.5rem;
  color: var(--pg68-accent);
  margin: 1rem 0 0.5rem;
}
.pg68-content-block p {
  color: var(--pg68-text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* === Promo Buttons === */
.pg68-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg68-primary), #28a428);
  color: var(--pg68-bg-dark);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--pg68-radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  margin: 0.5rem 0;
}
.pg68-promo-btn:hover {
  background: linear-gradient(135deg, var(--pg68-glow), var(--pg68-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}
.pg68-promo-btn-accent {
  background: linear-gradient(135deg, var(--pg68-accent), var(--pg68-accent2));
}
.pg68-promo-btn-accent:hover {
  background: linear-gradient(135deg, #ff9933, var(--pg68-accent));
  box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
}

/* === Promo Link (text) === */
.pg68-promo-link {
  color: var(--pg68-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--pg68-primary);
  transition: color 0.2s;
}
.pg68-promo-link:hover { color: var(--pg68-glow); }

/* === Footer === */
.pg68-footer {
  background: var(--pg68-bg-dark);
  border-top: 2px solid var(--pg68-primary);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
}
.pg68-footer-desc {
  color: var(--pg68-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.pg68-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pg68-footer-links a {
  background: var(--pg68-bg-card);
  color: var(--pg68-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--pg68-radius);
  font-size: 1.2rem;
  border: 1px solid var(--pg68-border);
  transition: all 0.2s;
}
.pg68-footer-links a:hover { background: var(--pg68-primary); color: var(--pg68-bg-dark); }
.pg68-footer-copy {
  color: var(--pg68-text-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg68-border);
}

/* === Bottom Navigation (Mobile) === */
.pg68-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg68-bg), var(--pg68-bg-dark));
  border-top: 2px solid var(--pg68-primary);
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg68-bottom-h);
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}
.pg68-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg68-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
  border-radius: var(--pg68-radius);
}
.pg68-bottom-btn:hover,
.pg68-bottom-btn.pg68-btn-active {
  color: var(--pg68-primary);
}
.pg68-bottom-btn .pg68-bnav-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 2px;
}
.pg68-bottom-btn .pg68-bnav-label {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}
.pg68-btn-pressed {
  transform: scale(0.9);
  background: rgba(50, 205, 50, 0.15);
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
  .pg68-bottom-nav { display: flex; }
}

/* === Utility Classes === */
.pg68-text-center { text-align: center; }
.pg68-mt-1 { margin-top: 1rem; }
.pg68-mb-1 { margin-bottom: 1rem; }
.pg68-mt-2 { margin-top: 2rem; }
.pg68-highlight {
  background: linear-gradient(135deg, var(--pg68-bg-card), var(--pg68-bg));
  border-left: 3px solid var(--pg68-accent);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--pg68-radius) var(--pg68-radius) 0;
  margin: 1rem 0;
}

/* === Winner Ticker === */
.pg68-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pg68-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pg68-bg);
  padding: 0.6rem 1rem;
  border-radius: var(--pg68-radius);
  font-size: 1.2rem;
}
.pg68-winner-name { color: var(--pg68-primary); font-weight: 600; }
.pg68-winner-amount { color: var(--pg68-accent); font-weight: 700; }

/* === Payment Icons === */
.pg68-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}
.pg68-payment-item {
  background: var(--pg68-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--pg68-radius);
  color: var(--pg68-text-muted);
  font-size: 1.2rem;
  border: 1px solid var(--pg68-border);
}

/* === Testimonials === */
.pg68-testimonial {
  background: var(--pg68-bg);
  border-radius: var(--pg68-radius-lg);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--pg68-primary);
}
.pg68-testimonial p { font-size: 1.3rem; font-style: italic; margin-bottom: 0.3rem; }
.pg68-testimonial cite { color: var(--pg68-accent); font-size: 1.1rem; }

/* === Responsive Desktop === */
@media (min-width: 769px) {
  .pg68-bottom-nav { display: none !important; }
  .pg68-header { max-width: 430px; }
}

/* === Inner link styles for SEO === */
.pg68-inner-link {
  color: var(--pg68-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pg68-inner-link:hover { color: var(--pg68-primary); }

/* === Achievement badges === */
.pg68-badge {
  display: inline-block;
  background: var(--pg68-bg-card);
  color: var(--pg68-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid var(--pg68-primary);
  margin: 0.2rem;
}

/* === Strategy tips === */
.pg68-tip-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 0.6rem 0;
}
.pg68-tip-num {
  background: var(--pg68-primary);
  color: var(--pg68-bg-dark);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pg68-tip-text { color: var(--pg68-text-muted); font-size: 1.3rem; line-height: 1.5; }
