.page-game-bai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

.page-game-bai__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-game-bai__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  text-align: center;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-bai__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #FFCC66; /* Gold */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-bai__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-bai__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn--primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-bai__btn--secondary {
  background: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn--secondary:hover {
  background: #E53935; /* Auxiliary Color */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-bai__btn--small {
  padding: 8px 18px;
  font-size: 0.95em;
  border-radius: 6px;
}

.page-game-bai__section {
  padding: 40px 0;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #FFCC66; /* Gold */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-game-bai__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #FFF5E1;
  text-align: justify;
}

.page-game-bai__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.page-game-bai__light-bg {
  background-color: #B71C1C; /* Background */
  color: #FFF5E1;
}

.page-game-bai__feature-grid, .page-game-bai__game-card-grid, .page-game-bai__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-bai__card {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
  box-sizing: border-box;
}

.page-game-bai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-game-bai__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__feature-title, .page-game-bai__game-title, .page-game-bai__step-title, .page-game-bai__faq-question {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFCC66; /* Gold */
}

.page-game-bai__feature-description, .page-game-bai__game-description, .page-game-bai__step-description, .page-game-bai__faq-answer {
  font-size: 1em;
  color: #FFF5E1;
}

.page-game-bai__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-game-bai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  border: 2px solid #F4D34D;
}

.page-game-bai__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-game-bai__list-item {
  font-size: 1.05em;
  color: #FFF5E1;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  text-align: justify;
}

.page-game-bai__list-item::before {
  content: '★';
  color: #FFCC66; /* Gold */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-game-bai__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
}

.page-game-bai__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-game-bai__figcaption {
  font-size: 0.95em;
  color: #FFF5E1;
  margin-top: 10px;
  font-style: italic;
}

.page-game-bai__faq-list {
  margin-top: 30px;
}

.page-game-bai__faq-item {
  margin-bottom: 20px;
  text-align: left;
}

.page-game-bai__faq-question {
  cursor: default; /* No pointer for non-interactive FAQ */
  margin-bottom: 10px;
}

.page-game-bai__faq-answer {
  margin-top: 10px;
}

.page-game-bai__cta-final-section .page-game-bai__article-wrap {
  padding: 50px 20px;
  border-radius: 15px;
  text-align: center;
  background-color: #7A0E0E; /* Deep Red */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-game-bai__cta-final-section .page-game-bai__section-title {
  color: #FFCC66; /* Gold */
  margin-bottom: 20px;
}

.page-game-bai__cta-final-section .page-game-bai__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-game-bai__section-title {
    font-size: 2em;
  }

  .page-game-bai__feature-grid, .page-game-bai__game-card-grid, .page-game-bai__step-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-game-bai__card {
    padding: 20px;
  }

  .page-game-bai__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* 1. Top section (padding, CTA layout) */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-game-bai__hero-content {
    margin-top: 15px;
    padding: 0 15px;
  }

  .page-game-bai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    line-height: 1.2;
  }

  .page-game-bai__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column; /* Buttons stack vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
    width: 100%;
    box-sizing: border-box;
  }

  /* 2. Single column long article container */
  .page-game-bai__article-wrap {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-bai__text-block, .page-game-bai__list-item, .page-game-bai__feature-description, .page-game-bai__game-description, .page-game-bai__step-description, .page-game-bai__faq-answer {
    font-size: 0.95em;
    line-height: 1.5;
  }

  .page-game-bai__card {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. Generic images and figures */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-bai__figure {
    margin: 20px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-game-bai__figcaption {
    font-size: 0.85em;
  }

  /* 4. Buttons and button containers */
  .page-game-bai__btn,
  .page-game-bai__btn--primary,
  .page-game-bai__btn--secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-game-bai__feature-grid, .page-game-bai__game-card-grid, .page-game-bai__step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__feature-title, .page-game-bai__game-title, .page-game-bai__step-title, .page-game-bai__faq-question {
    font-size: 1.2em;
  }

  .page-game-bai__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
  }

  .page-game-bai__faq-item {
    margin-bottom: 15px;
  }

  .page-game-bai__cta-final-section .page-game-bai__article-wrap {
    padding: 30px 15px;
  }
}