:root {
    --page-game-bai-primary-color: #2F6BFF;
    --page-game-bai-secondary-color: #6FA3FF;
    --page-game-bai-text-main: #1F2D3D;
    --page-game-bai-text-dark: #000000;
    --page-game-bai-bg-light: #F4F7FB;
    --page-game-bai-card-bg: #FFFFFF;
    --page-game-bai-border-color: #D6E2FF;
    --page-game-bai-glow-color: #A5C4FF;
    --page-game-bai-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-game-bai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-game-bai-text-main);
    background-color: var(--page-game-bai-bg-light);
}

.page-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-game-bai__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--page-game-bai-text-dark);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-bai__section-subtitle {
    font-size: 18px;
    color: var(--page-game-bai-text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background: var(--page-game-bai-btn-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
    background: var(--page-game-bai-card-bg);
    color: var(--page-game-bai-primary-color);
    border: 2px solid var(--page-game-bai-primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
    background: var(--page-game-bai-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

.page-game-bai__btn-play {
    background: var(--page-game-bai-btn-gradient);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-game-bai__btn-play:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-game-bai__btn-detail {
    background: var(--page-game-bai-primary-color);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-game-bai__btn-detail:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-game-bai__card {
    background: var(--page-game-bai-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: var(--page-game-bai-text-main);
}

.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-game-bai__hero-section {
    position: relative;
    background-color: #000; /* Fallback for image loading */
    padding-top: 10px; /* Small top padding for first section, relying on body for header offset */
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

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

.page-game-bai__hero-content {
    text-align: center;
    padding: 60px 20px;
    background: var(--page-game-bai-bg-light);
}

.page-game-bai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--page-game-bai-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__description {
    font-size: 20px;
    color: var(--page-game-bai-text-main);
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-game-bai__about-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-bg-light);
}

.page-game-bai__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-game-bai__about-content .page-game-bai__text-block {
    flex: 1;
}

.page-game-bai__about-content .page-game-bai__text-block p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
}

.page-game-bai__about-content .page-game-bai__image-block {
    flex: 1;
    min-width: 200px;
}

.page-game-bai__about-content .page-game-bai__image-block img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-game-bai__games-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-primary-color);
    color: #ffffff;
}

.page-game-bai__games-section .page-game-bai__section-title,
.page-game-bai__games-section .page-game-bai__section-subtitle {
    color: #ffffff;
}

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

.page-game-bai__game-card {
    background: var(--page-game-bai-card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-game-bai__game-card .page-game-bai__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-card .page-game-bai__card-title a {
    color: var(--page-game-bai-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__game-card .page-game-bai__card-title a:hover {
    color: var(--page-game-bai-primary-color);
}

.page-game-bai__game-card .page-game-bai__card-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-game-bai__cta-more {
    text-align: center;
}

.page-game-bai__features-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-bg-light);
}

.page-game-bai__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-game-bai__feature-card {
    text-align: center;
    padding: 30px;
}

.page-game-bai__feature-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.page-game-bai__feature-card .page-game-bai__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--page-game-bai-text-dark);
    margin-bottom: 15px;
}

.page-game-bai__feature-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.page-game-bai__promo-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-primary-color);
    color: #ffffff;
}

.page-game-bai__promo-section .page-game-bai__section-title,
.page-game-bai__promo-section .page-game-bai__section-subtitle {
    color: #ffffff;
}

.page-game-bai__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-game-bai__promo-card {
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 20px;
}

.page-game-bai__promo-card .page-game-bai__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-game-bai__promo-card .page-game-bai__card-title a {
    color: var(--page-game-bai-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__promo-card .page-game-bai__card-title a:hover {
    color: var(--page-game-bai-primary-color);
}

.page-game-bai__promo-card .page-game-bai__card-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

.page-game-bai__guide-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-bg-light);
}

.page-game-bai__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-game-bai__step-item {
    background: var(--page-game-bai-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-game-bai__step-item:hover {
    transform: translateY(-5px);
}

.page-game-bai__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--page-game-bai-primary-color);
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--page-game-bai-text-dark);
    margin-bottom: 15px;
}

.page-game-bai__step-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.page-game-bai__cta-guide {
    text-align: center;
    margin-top: 50px;
}

.page-game-bai__tips-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-primary-color);
    color: #ffffff;
}

.page-game-bai__tips-section .page-game-bai__section-title,
.page-game-bai__tips-section .page-game-bai__section-subtitle {
    color: #ffffff;
}

.page-game-bai__tips-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 50px;
}

.page-game-bai__tips-list li {
    background: var(--page-game-bai-card-bg);
    padding: 20px 30px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 17px;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: var(--page-game-bai-text-main);
}

.page-game-bai__tips-list li strong {
    color: var(--page-game-bai-primary-color);
}

.page-game-bai__cta-tips {
    text-align: center;
}

.page-game-bai__faq-section {
    padding: 80px 0;
    background-color: var(--page-game-bai-bg-light);
}

.page-game-bai__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--page-game-bai-border-color);
  overflow: hidden;
  background: var(--page-game-bai-card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--page-game-bai-text-dark);
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #f8f8f8;
}