:root {
    --f186-primary: #11A84E;
    --f186-secondary: #22C768;
    --f186-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --f186-card-bg: #11271B;
    --f186-background: #08160F;
    --f186-text-main: #F2FFF6;
    --f186-text-secondary: #A7D9B8;
    --f186-border: #2E7A4E;
    --f186-glow: #57E38D;
    --f186-gold: #F2C14E;
    --f186-divider: #1E3A2A;
    --f186-deep-green: #0A4B2C;
}

.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: var(--f186-text-main); /* Main text color for dark body background */
    background-color: var(--f186-background); /* This should be from shared.css body, but setting here for safety */
    line-height: 1.6;
}

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

/* Hero Section */
.page-game-bai__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared */
    padding-bottom: 40px;
    background-color: var(--f186-background);
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover, will change to contain for mobile */
    border-radius: 10px;
}

.page-game-bai__hero-content {
    max-width: 900px;
    padding: 0 15px;
}

.page-game-bai__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Clamp for responsive H1 */
    font-weight: 700;
    color: var(--f186-glow);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-bai__hero-description {
    font-size: 1.1em;
    color: var(--f186-text-secondary);
    margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container fills width for mobile adaptation */
    max-width: 100%;
    box-sizing: border-box;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-view-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box; /* Crucial for max-width 100% */
    max-width: 100%; /* Crucial for mobile */
}

.page-game-bai__btn-primary {
    background: var(--f186-button-gradient);
    color: var(--f186-text-main);
    border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: var(--f186-glow);
    border: 2px solid var(--f186-glow);
}

.page-game-bai__btn-secondary:hover {
    background-color: var(--f186-glow);
    color: var(--f186-background);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

/* General Sections */
.page-game-bai__intro-section,
.page-game-bai__benefits-section,
.page-game-bai__promotions-section,
.page-game-bai__cta-final {
    padding: 60px 0;
    border-top: 1px solid var(--f186-divider);
}

.page-game-bai__dark-section {
    background-color: var(--f186-background);
    color: var(--f186-text-main);
}

.page-game-bai__light-bg {
    background-color: var(--f186-card-bg); /* Using card bg for light section to ensure contrast */
    color: var(--f186-text-main);
}

.page-game-bai__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--f186-glow);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-game-bai__section-title--dark {
    color: var(--f186-glow); /* For light bg sections, titles still glow */
}

.page-game-bai__text-block {
    font-size: 1em;
    color: var(--f186-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.page-game-bai__text-block--dark {
    color: var(--f186-text-main); /* Text on light background should be darker */
}

/* Game Grid Section */
.page-game-bai__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-game-bai__game-tile {
    background-color: var(--f186-card-bg);
    border: 1px solid var(--f186-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-game-bai__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent grid */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-game-bai__game-title {
    font-size: 1.4em;
    color: var(--f186-glow);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-description {
    font-size: 0.95em;
    color: var(--f186-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-game-bai__btn-play {
    background: var(--f186-button-gradient);
    color: var(--f186-text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 auto;
    width: calc(100% - 30px); /* Adjust width to fit padding */
}

.page-game-bai__btn-play:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 10px rgba(42, 209, 111, 0.5);
}

.page-game-bai__view-all-games {
    text-align: center;
    margin-top: 40px;
}

/* Benefits Section */
.page-game-bai__benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__benefit-card {
    background-color: var(--f186-card-bg);
    border: 1px solid var(--f186-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__benefit-icon {
    width: 100%;
    max-width: 200px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-game-bai__benefit-title {
    font-size: 1.5em;
    color: var(--f186-glow);
    margin-bottom: 15px;
}

.page-game-bai__benefit-description {
    font-size: 0.95em;
    color: var(--f186-text-secondary);
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
    border-top: 1px solid var(--f186-divider);
}

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

.page-game-bai__step-item {
    background-color: var(--f186-card-bg);
    border: 1px solid var(--f186-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-game-bai__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--f186-button-gradient);
    color: var(--f186-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    border: 3px solid var(--f186-background);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-game-bai__step-title {
    font-size: 1.4em;
    color: var(--f186-glow);
    margin-bottom: 10px;
}

.page-game-bai__step-description {
    font-size: 0.95em;
    color: var(--f186-text-secondary);
}

.page-game-bai__cta-buttons--centered {
    margin-top: 40px;
}

/* Promotions Section */
.page-game-bai__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__promo-card {
    background-color: var(--f186-card-bg);
    border: 1px solid var(--f186-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-game-bai__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-game-bai__promo-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-game-bai__promo-title {
    font-size: 1.4em;
    color: var(--f186-glow);
    margin-bottom: 10px;
}

.page-game-bai__promo-description {
    font-size: 0.95em;
    color: var(--f186-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__btn-view-promo {
    background: var(--f186-button-gradient);
    color: var(--f186-text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: auto; /* Push to bottom */
    width: 100%;
}

.page-game-bai__btn-view-promo:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 10px rgba(42, 209, 111, 0.5);
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 60px 0;
    border-top: 1px solid var(--f186-divider);
}

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

.page-game-bai__faq-item {
    background-color: var(--f186-card-bg);
    border: 1px solid var(--f186-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--f186-text-main);
    cursor: pointer;
    background-color: var(--f186-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for <summary> */
}