/* cwin98.cfd - Core Stylesheet
   Prefix: pg22-
   Mobile-first HTML5 casino & gaming website (Vietnamese market)
   Color palette: #2C3E50 | #A9A9A9 | #708090 | #80CBC4 | #0F0F23 | #FAFAFA
   Root font: 62.5% -> 1rem = 10px
*/

:root {
  --pg22-primary: #2C3E50;
  --pg22-secondary: #708090;
  --pg22-accent: #80CBC4;
  --pg22-bg-dark: #0F0F23;
  --pg22-bg-mid: #1a1a33;
  --pg22-text-light: #FAFAFA;
  --pg22-text-muted: #A9A9A9;
  --pg22-gold: #F5C518;
  --pg22-red: #E74C3C;
  --pg22-green: #27AE60;
  --pg22-radius: 1.2rem;
  --pg22-radius-sm: 0.8rem;
  --pg22-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --pg22-header-h: 5.6rem;
  --pg22-bottomnav-h: 6.2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--pg22-bg-dark);
  color: var(--pg22-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: var(--pg22-accent);
  text-decoration: none;
}

/* ===================== Header ===================== */
.pg22-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg22-header-h);
  background: linear-gradient(135deg, var(--pg22-bg-dark) 0%, var(--pg22-bg-mid) 100%);
  border-bottom: 1px solid rgba(128, 203, 196, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--pg22-shadow);
}

.pg22-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg22-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid var(--pg22-accent);
}

.pg22-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pg22-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pg22-accent), var(--pg22-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
}

.pg22-brand-tag {
  font-size: 0.95rem;
  color: var(--pg22-text-muted);
  letter-spacing: 0.5px;
}

.pg22-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg22-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--pg22-radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  min-height: 3.6rem;
  text-align: center;
  line-height: 1.2;
}

.pg22-btn:active {
  transform: scale(0.94);
}

.pg22-btn-register {
  background: linear-gradient(135deg, var(--pg22-gold), #e6ad00);
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(245, 197, 24, 0.35);
}

.pg22-btn-login {
  background: transparent;
  color: var(--pg22-accent);
  border: 1px solid var(--pg22-accent);
}

.pg22-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pg22-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
}

/* ===================== Mobile Menu ===================== */
.pg22-mobile-menu {
  position: fixed;
  top: var(--pg22-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--pg22-bg-mid);
  border-bottom: 1px solid rgba(128, 203, 196, 0.2);
  padding: 1rem 1.2rem 1.4rem;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.pg22-mobile-menu.pg22-open {
  max-height: 80vh;
  overflow-y: auto;
}

.pg22-menu-title {
  font-size: 1.2rem;
  color: var(--pg22-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0.4rem 0 0.6rem;
}

.pg22-menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0.8rem;
  color: var(--pg22-text-light);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: var(--pg22-radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.pg22-menu-link:active,
.pg22-menu-link:hover {
  background: rgba(128, 203, 196, 0.1);
}

.pg22-menu-link i {
  color: var(--pg22-accent);
  font-size: 1.7rem;
  width: 2.2rem;
  text-align: center;
}

/* ===================== Main / Layout ===================== */
main {
  padding-top: calc(var(--pg22-header-h) + 1rem);
  padding-bottom: 1.5rem;
}

.pg22-section {
  padding: 1.6rem 1.2rem;
  margin-bottom: 0.5rem;
}

.pg22-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pg22-text-light);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg22-section-title i {
  color: var(--pg22-gold);
  font-size: 2rem;
}

.pg22-section-sub {
  font-size: 1.2rem;
  color: var(--pg22-text-muted);
  margin-bottom: 1rem;
}

/* ===================== Hero Carousel ===================== */
.pg22-hero {
  position: relative;
  width: 100%;
  margin: 1rem 0 0.5rem;
  padding: 0 1.2rem;
}

.pg22-carousel {
  position: relative;
  border-radius: var(--pg22-radius);
  overflow: hidden;
  box-shadow: var(--pg22-shadow);
  background: var(--pg22-bg-mid);
}

.pg22-slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.pg22-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.pg22-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  display: block;
}

.pg22-slide-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(15, 15, 35, 0.92));
  color: var(--pg22-text-light);
}

.pg22-slide-cap b {
  color: var(--pg22-gold);
  font-size: 1.5rem;
}

.pg22-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
}

.pg22-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pg22-dot.pg22-active {
  background: var(--pg22-gold);
  transform: scale(1.25);
}

/* ===================== Game Grid ===================== */
.pg22-cat-block {
  margin-bottom: 1.4rem;
}

.pg22-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0 0.8rem;
  padding: 0 0.4rem;
}

.pg22-cat-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pg22-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg22-cat-name .material-symbols-outlined,
.pg22-cat-name i {
  font-size: 1.9rem;
  color: var(--pg22-gold);
}

.pg22-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.pg22-game-card {
  background: var(--pg22-bg-mid);
  border: 1px solid rgba(128, 203, 196, 0.12);
  border-radius: var(--pg22-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.pg22-game-card:active {
  transform: scale(0.95);
  border-color: var(--pg22-gold);
}

.pg22-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #11112a;
}

.pg22-game-name {
  font-size: 1.05rem;
  color: var(--pg22-text-light);
  padding: 0.4rem 0.4rem 0.6rem;
  text-align: center;
  line-height: 1.25;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== Info / Feature Cards ===================== */
.pg22-card {
  background: var(--pg22-bg-mid);
  border: 1px solid rgba(128, 203, 196, 0.15);
  border-radius: var(--pg22-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.pg22-card-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--pg22-accent);
}

.pg22-card p {
  font-size: 1.25rem;
  color: var(--pg22-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.6rem;
}

.pg22-card p b,
.pg22-inline-link {
  color: var(--pg22-gold);
  font-weight: 700;
  cursor: pointer;
}

.pg22-feature-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.pg22-feature-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.8rem;
  background: rgba(128, 203, 196, 0.06);
  border-radius: var(--pg22-radius-sm);
}

.pg22-feature-item .pg22-ico {
  font-size: 2rem;
  color: var(--pg22-gold);
  flex-shrink: 0;
}

.pg22-feature-item b {
  color: var(--pg22-text-light);
  font-size: 1.3rem;
}

.pg22-feature-item span {
  display: block;
  color: var(--pg22-text-muted);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

/* ===================== Steps ===================== */
.pg22-steps {
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
}

.pg22-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--pg22-bg-mid);
  border-radius: var(--pg22-radius-sm);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--pg22-accent);
}

.pg22-step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg22-gold), #c79500);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg22-step-num::before {
  content: counter(step);
}

.pg22-step-body b {
  color: var(--pg22-text-light);
  font-size: 1.3rem;
}

.pg22-step-body p {
  color: var(--pg22-text-muted);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

/* ===================== RTP Table ===================== */
.pg22-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
  background: var(--pg22-bg-mid);
  border-radius: var(--pg22-radius-sm);
  overflow: hidden;
}

.pg22-rtp-table th,
.pg22-rtp-table td {
  padding: 0.8rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pg22-rtp-table th {
  background: rgba(128, 203, 196, 0.15);
  color: var(--pg22-accent);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pg22-rtp-table td b {
  color: var(--pg22-gold);
}

.pg22-rtp-bar {
  height: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.4rem;
  overflow: hidden;
  margin-top: 0.3rem;
}

.pg22-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pg22-accent), var(--pg22-gold));
}

/* ===================== Testimonials ===================== */
.pg22-testi-grid {
  display: grid;
  gap: 0.8rem;
}

.pg22-testi {
  background: var(--pg22-bg-mid);
  border-radius: var(--pg22-radius-sm);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--pg22-gold);
}

.pg22-testi-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}

.pg22-testi-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg22-accent), var(--pg22-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
}

.pg22-testi-name {
  font-weight: 700;
  color: var(--pg22-text-light);
  font-size: 1.25rem;
}

.pg22-testi-stars {
  color: var(--pg22-gold);
  font-size: 1.1rem;
}

.pg22-testi p {
  color: var(--pg22-text-muted);
  font-size: 1.15rem;
  line-height: 1.6rem;
}

/* ===================== Winners ===================== */
.pg22-winner-list {
  display: grid;
  gap: 0.5rem;
}

.pg22-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pg22-bg-mid);
  border-radius: var(--pg22-radius-sm);
  padding: 0.7rem 1rem;
  font-size: 1.15rem;
}

.pg22-winner-name {
  color: var(--pg22-text-light);
  font-weight: 600;
}

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

/* ===================== Payment ===================== */
.pg22-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pg22-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pg22-bg-mid);
  border: 1px solid rgba(128, 203, 196, 0.2);
  color: var(--pg22-text-light);
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.pg22-pay-chip i,
.pg22-pay-chip .material-symbols-outlined {
  color: var(--pg22-accent);
  font-size: 1.5rem;
}

/* ===================== Play Now CTA ===================== */
.pg22-cta {
  background: linear-gradient(135deg, var(--pg22-primary), var(--pg22-bg-mid));
  border-radius: var(--pg22-radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  border: 1px solid var(--pg22-accent);
  margin: 1.2rem 0;
}

.pg22-cta h3 {
  font-size: 1.8rem;
  color: var(--pg22-gold);
  margin-bottom: 0.4rem;
}

.pg22-cta p {
  color: var(--pg22-text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.pg22-btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg22-gold), #d49b00);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 1rem 2.4rem;
  border-radius: 2.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.4);
}

.pg22-btn-cta:active {
  transform: scale(0.95);
}

/* ===================== FAQ ===================== */
.pg22-faq-item {
  background: var(--pg22-bg-mid);
  border-radius: var(--pg22-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pg22-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--pg22-text-light);
  font-size: 1.3rem;
  cursor: pointer;
}

.pg22-faq-q i {
  color: var(--pg22-accent);
  transition: transform 0.2s;
}

.pg22-faq-item.pg22-open .pg22-faq-q i {
  transform: rotate(45deg);
}

.pg22-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
  color: var(--pg22-text-muted);
  font-size: 1.2rem;
  line-height: 1.7rem;
}

.pg22-faq-item.pg22-open .pg22-faq-a {
  max-height: 30rem;
  padding: 0 1.2rem 1rem;
}

/* ===================== App Download CTA ===================== */
.pg22-app {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  text-align: center;
}

.pg22-app-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pg22-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pg22-bg-dark);
  border: 1px solid var(--pg22-accent);
  color: var(--pg22-text-light);
  padding: 0.7rem 1.2rem;
  border-radius: var(--pg22-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.pg22-app-btn i {
  font-size: 1.8rem;
  color: var(--pg22-accent);
}

/* ===================== Footer ===================== */
.pg22-footer {
  background: var(--pg22-bg-mid);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(128, 203, 196, 0.18);
}

.pg22-footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pg22-gold);
  margin-bottom: 0.5rem;
}

.pg22-footer-desc {
  color: var(--pg22-text-muted);
  font-size: 1.15rem;
  line-height: 1.7rem;
  margin-bottom: 1rem;
}

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

.pg22-footer-links a {
  color: var(--pg22-accent);
  font-size: 1.15rem;
  font-weight: 600;
}

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

.pg22-footer-promo button {
  background: rgba(128, 203, 196, 0.12);
  border: 1px solid var(--pg22-accent);
  color: var(--pg22-accent);
  padding: 0.5rem 0.9rem;
  border-radius: 1.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.pg22-footer-copy {
  color: var(--pg22-text-muted);
  font-size: 1.05rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.8rem;
}

/* ===================== Bottom Nav ===================== */
.pg22-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg22-bottomnav-h);
  background: linear-gradient(180deg, var(--pg22-bg-mid), var(--pg22-bg-dark));
  border-top: 1px solid rgba(128, 203, 196, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}

.pg22-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;
  gap: 0.2rem;
  color: var(--pg22-text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s, transform 0.15s;
}

.pg22-nav-btn i,
.pg22-nav-btn .material-symbols-outlined,
.pg22-nav-btn ion-icon {
  font-size: 2.2rem;
}

.pg22-nav-btn span.pg22-nav-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pg22-nav-btn:active {
  transform: scale(0.9);
}

.pg22-nav-btn.pg22-active {
  color: var(--pg22-gold);
}

.pg22-nav-btn.pg22-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 0.25rem;
  background: var(--pg22-gold);
  border-radius: 0 0 0.4rem 0.4rem;
}

.pg22-nav-btn.pg22-promo {
  color: var(--pg22-accent);
}

.pg22-nav-badge {
  position: absolute;
  top: 0.4rem;
  right: 1.2rem;
  background: var(--pg22-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== Responsive ===================== */
@media (min-width: 769px) {
  .pg22-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--pg22-bottomnav-h) + 1rem);
  }
}

@media (max-width: 360px) {
  .pg22-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pg22-brand-tag {
    display: none;
  }
}

/* Utility */
.pg22-text-center { text-align: center; }
.pg22-mt-1 { margin-top: 1rem; }
.pg22-mb-1 { margin-bottom: 1rem; }
.pg22-hidden { display: none !important; }
