/* 66ff.css - Core stylesheet for 66ff.homes (VN) */
/* All custom classes use the "pg81-" prefix. */

:root {
  --pg81-bg: #1B263B;
  --pg81-bg-alt: #243349;
  --pg81-card: #2A3A55;
  --pg81-text: #FDF5E6;
  --pg81-text-soft: #D3D3D3;
  --pg81-primary: #F4A460;
  --pg81-accent: #8B7355;
  --pg81-border: #3A4A66;
  --pg81-gold: #E5B17A;
  --pg81-danger: #E05A6A;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

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

a { color: var(--pg81-primary); text-decoration: none; }
a:hover { color: var(--pg81-gold); }
img { max-width: 100%; display: block; }

.pg81-container { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.pg81-wrapper { padding: 0 1.2rem; }

/* ===== Header ===== */
.pg81-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1B263B 0%, #243349 100%);
  border-bottom: 1px solid var(--pg81-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.pg81-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
}
.pg81-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.7rem; font-weight: 700; color: var(--pg81-text); }
.pg81-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg81-logo .pg81-brand { background: linear-gradient(135deg, #F4A460, #E5B17A); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pg81-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg81-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.3rem; border-radius: 8px; border: none;
  font-size: 1.35rem; font-weight: 600; cursor: pointer;
  min-height: 44px; min-width: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pg81-btn:active { transform: scale(0.95); }
.pg81-btn-login { background: transparent; color: var(--pg81-text); border: 1px solid var(--pg81-primary); }
.pg81-btn-login:hover { background: rgba(244,164,96,0.12); color: var(--pg81-gold); }
.pg81-btn-register { background: linear-gradient(135deg, #F4A460, #E5B17A); color: #1B263B; font-weight: 700; }
.pg81-btn-register:hover { box-shadow: 0 3px 10px rgba(244,164,96,0.45); }

.pg81-menu-toggle {
  background: transparent; border: none; color: var(--pg81-text);
  font-size: 1.9rem; cursor: pointer; padding: 0.4rem 0.6rem;
  display: inline-flex; align-items: center;
}

/* ===== Mobile menu drawer ===== */
.pg81-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px;
  height: 100vh; z-index: 9999;
  background: #1B263B;
  border-left: 1px solid var(--pg81-border);
  padding: 6rem 1.5rem 2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
}
.pg81-mobile-menu.pg81-menu-open { right: 0; }
.pg81-mobile-menu h3 { margin: 1.5rem 0 0.8rem; color: var(--pg81-primary); font-size: 1.5rem; }
.pg81-mobile-menu a {
  display: block; padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--pg81-border);
  color: var(--pg81-text-soft); font-size: 1.4rem;
}
.pg81-mobile-menu a:hover { color: var(--pg81-gold); }
.pg81-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--pg81-text);
  font-size: 2rem; cursor: pointer;
}

/* ===== Main ===== */
.pg81-main { padding-top: 64px; }
@media (max-width: 768px) { .pg81-main { padding-bottom: 80px; } }

/* ===== Hero carousel ===== */
.pg81-carousel {
  position: relative; width: 100%; max-width: 430px; margin: 1rem auto 1.2rem;
  border-radius: 12px; overflow: hidden; height: 200px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.pg81-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.pg81-carousel-slide.pg81-slide-active { opacity: 1; }
.pg81-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg81-carousel-slide .pg81-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(to top, rgba(27,38,59,0.92), transparent);
  font-size: 1.4rem; font-weight: 600;
}
.pg81-carousel-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.pg81-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(253,245,230,0.4); cursor: pointer; border: none;
}
.pg81-carousel-dot.pg81-dot-active { background: var(--pg81-primary); }

/* ===== Section titles ===== */
.pg81-section { padding: 1.5rem 1.2rem; }
.pg81-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 0 0 1rem;
  color: var(--pg81-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.pg81-section-title .pg81-bar {
  width: 4px; height: 1.6rem; background: var(--pg81-primary); border-radius: 2px;
}
.pg81-subtitle { font-size: 1.45rem; color: var(--pg81-primary); margin: 1.2rem 0 0.6rem; font-weight: 700; }
.pg81-text-soft { color: var(--pg81-text-soft); }

/* ===== Game grid ===== */
.pg81-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg81-game-card {
  background: var(--pg81-card);
  border: 1px solid var(--pg81-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
  padding-bottom: 0.5rem;
}
.pg81-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  border-color: var(--pg81-primary);
}
.pg81-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.pg81-game-name {
  font-size: 1.15rem; color: var(--pg81-text);
  padding: 0.4rem 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg81-game-tag {
  display: inline-block; font-size: 1rem; color: var(--pg81-gold);
  background: rgba(244,164,96,0.15); padding: 0.1rem 0.5rem;
  border-radius: 4px; margin-top: 0.2rem;
}

/* ===== Filter chips ===== */
.pg81-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.pg81-chip {
  padding: 0.5rem 1rem; border-radius: 20px;
  background: var(--pg81-card); border: 1px solid var(--pg81-border);
  color: var(--pg81-text-soft); font-size: 1.25rem; cursor: pointer;
  transition: all 0.15s ease;
}
.pg81-chip:hover, .pg81-chip.pg81-chip-active {
  background: var(--pg81-primary); color: #1B263B; border-color: var(--pg81-primary);
}

/* ===== Promo banner CTA ===== */
.pg81-cta {
  background: linear-gradient(135deg, #F4A460, #8B7355);
  border-radius: 12px; padding: 1.5rem 1.2rem; text-align: center;
  color: #1B263B;
}
.pg81-cta h2 { margin: 0 0 0.5rem; font-size: 1.9rem; }
.pg81-cta p { margin: 0 0 1rem; font-size: 1.35rem; color: #2A2A2A; }
.pg81-cta .pg81-btn { background: #1B263B; color: var(--pg81-text); }

/* ===== Cards ===== */
.pg81-card {
  background: var(--pg81-card);
  border: 1px solid var(--pg81-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.pg81-card h3 { margin: 0 0 0.6rem; font-size: 1.5rem; color: var(--pg81-primary); }
.pg81-card p { margin: 0.3rem 0; font-size: 1.3rem; color: var(--pg81-text-soft); }

/* ===== Inline promo text link ===== */
.pg81-promo-link {
  color: var(--pg81-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--pg81-primary);
}
.pg81-promo-link:hover { color: var(--pg81-gold); }

/* ===== Feature list ===== */
.pg81-feature {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.8rem 0; border-bottom: 1px dashed var(--pg81-border);
}
.pg81-feature:last-child { border-bottom: none; }
.pg81-feature .pg81-icon {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: rgba(244,164,96,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--pg81-primary); font-size: 1.8rem;
}

/* ===== Reviews ===== */
.pg81-review {
  background: var(--pg81-card); border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg81-primary);
}
.pg81-review .pg81-reviewer { color: var(--pg81-gold); font-weight: 700; font-size: 1.3rem; }
.pg81-review .pg81-stars { color: #F4D35E; margin: 0.3rem 0; }
.pg81-review p { margin: 0.3rem 0 0; font-size: 1.3rem; color: var(--pg81-text-soft); }

/* ===== Winners ===== */
.pg81-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--pg81-border);
  font-size: 1.3rem;
}
.pg81-winner-row .pg81-amount { color: var(--pg81-primary); font-weight: 700; }

/* ===== Payment ===== */
.pg81-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pg81-payment-grid .pg81-pay {
  background: var(--pg81-card); border: 1px solid var(--pg81-border);
  border-radius: 8px; padding: 0.8rem; text-align: center;
  font-size: 1.15rem; color: var(--pg81-text-soft);
}

/* ===== Footer ===== */
.pg81-footer {
  background: #16202F; border-top: 1px solid var(--pg81-border);
  padding: 2rem 1.2rem; margin-top: 1.5rem;
}
.pg81-footer-brand { font-size: 1.35rem; color: var(--pg81-text-soft); margin-bottom: 1rem; }
.pg81-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.pg81-footer-links a {
  font-size: 1.25rem; color: var(--pg81-text-soft);
  padding: 0.3rem 0.6rem; border-radius: 6px;
  background: var(--pg81-card);
}
.pg81-footer-links a:hover { color: var(--pg81-gold); }
.pg81-footer-copy { font-size: 1.15rem; color: var(--pg81-text-soft); opacity: 0.7; }

/* ===== Mobile bottom nav ===== */
.pg81-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px;
  background: linear-gradient(135deg, #1B263B, #243349);
  border-top: 1px solid var(--pg81-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.45);
}
.pg81-bottom-nav .pg81-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pg81-text-soft); font-size: 1.05rem;
  cursor: pointer; gap: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pg81-bottom-nav .pg81-nav-btn i,
.pg81-bottom-nav .pg81-nav-btn span.material-icons-outlined,
.pg81-bottom-nav .pg81-nav-btn ion-icon { font-size: 22px; }
.pg81-bottom-nav .pg81-nav-btn:hover,
.pg81-bottom-nav .pg81-nav-btn.pg81-nav-active { color: var(--pg81-primary); transform: translateY(-2px); }
.pg81-bottom-nav .pg81-nav-btn .pg81-badge {
  position: absolute; top: 6px; right: 12px;
  background: var(--pg81-danger); color: #fff;
  font-size: 0.9rem; padding: 0 4px; border-radius: 6px; min-width: 14px;
}
@media (min-width: 769px) { .pg81-bottom-nav { display: none; } }

/* ===== Desktop minor adjustments ===== */
@media (min-width: 769px) {
  .pg81-container { max-width: 768px; }
  .pg81-header-inner { max-width: 768px; }
  .pg81-carousel { max-width: 768px; height: 320px; }
  .pg81-game-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Utility ===== */
.pg81-mt { margin-top: 1rem; }
.pg81-tc { text-align: center; }
.pg81-h1 { font-size: 2rem; font-weight: 700; margin: 1rem 0; color: var(--pg81-text); line-height: 1.3; }
.pg81-pill {
  display: inline-block; padding: 0.2rem 0.8rem;
  background: rgba(244,164,96,0.15); color: var(--pg81-gold);
  border-radius: 12px; font-size: 1.15rem;
}