:root {
  --bj27-primary: #FF8C1A;
  --bj27-secondary: #FFA53A;
  --bj27-glow: #FFB04D;
  --bj27-border: #A84F0C;
  --bj27-button: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --bj27-card-bg: #17191F;
  --bj27-text-main: #FFF3E6;
  --bj27-background: #0D0E12;
  --bj27-deep-orange: #D96800;
}

.indep-site-header {
  background-color: var(--bj27-background);
  padding: 15px 20px;
  border-bottom: 1px solid var(--bj27-border);
  color: var(--bj27-text-main);
}

.indep-site-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.indep-site-header-brand {
  font-size: 28px;
  font-weight: bold;
  color: var(--bj27-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.indep-site-header-brand:hover {
  color: var(--bj27-glow);
}

.indep-site-header-actions {
  display: flex;
  gap: 10px;
}

.indep-site-header-button {
  background: var(--bj27-button);
  color: var(--bj27-text-main);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--bj27-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.indep-site-header-button:hover {
  background: linear-gradient(180deg, var(--bj27-glow) 0%, var(--bj27-deep-orange) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .indep-site-header-container {
    flex-direction: column;
    gap: 15px;
  }

  .indep-site-header-brand {
    font-size: 24px;
  }

  .indep-site-header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .indep-site-header-button {
    padding: 7px 12px;
    font-size: 14px;
  }
}

:root {
  --bj27-primary: #FF8C1A;
  --bj27-secondary: #FFA53A;
  --bj27-glow: #FFB04D;
  --bj27-border: #A84F0C;
  --bj27-button: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --bj27-card-bg: #17191F;
  --bj27-text-main: #FFF3E6;
  --bj27-background: #0D0E12;
  --bj27-deep-orange: #D96800;
}

.indep-site-footer {
  background-color: var(--bj27-background);
  color: var(--bj27-text-main);
  padding: 30px 20px;
  border-top: 1px solid var(--bj27-border);
  font-size: 14px;
}

.indep-site-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.indep-site-footer-brand {
  font-size: 24px;
  font-weight: bold;
  color: var(--bj27-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.indep-site-footer-brand:hover {
  color: var(--bj27-glow);
}

.indep-site-footer .footer-col p {
  line-height: 1.6;
  color: var(--bj27-text-main);
}

.indep-site-footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.indep-site-footer .footer-nav li {
  margin-bottom: 10px;
}

.indep-site-footer .footer-nav a {
  color: var(--bj27-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.indep-site-footer .footer-nav a:hover {
  color: var(--bj27-primary);
}

.indep-site-footer .footer-dynamic-row {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  min-height: 20px; /* Ensure visibility for empty slots */
}

.indep-site-footer .footer-slot-anchor-inner {
  min-height: 1px; /* Ensure the div takes up space */
}

.indep-site-footer-grid-mid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  min-height: 50px; /* Ensure visibility for empty slots */
}

.indep-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--bj27-border);
  margin-top: 30px;
  color: var(--bj27-text-main);
}

.indep-footer-bottom p {
  margin: 0;
}

@media (max-width: 992px) {
  .indep-site-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .indep-site-footer-grid-mid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .indep-site-footer-cols {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .indep-site-footer-brand {
    margin-bottom: 10px;
  }

  .indep-site-footer .footer-nav {
    text-align: center;
  }

  .indep-site-footer .footer-col p {
    padding: 0 15px;
  }

  .indep-site-footer-grid-mid {
    grid-template-columns: 1fr;
  }
}

.indep-position-nav{width:100%;box-sizing:border-box;padding:10px 16px;font-size:14px;line-height:1.5;background:#f6f7f9;color:#606266}
.indep-position-nav ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0}
.indep-position-nav li{display:flex;align-items:center;gap:6px}
.indep-position-nav li+li::before{content:">";color:#909399}
.indep-position-nav a{color:#409eff;text-decoration:none}
.indep-position-nav [aria-current="page"]{color:#303133}
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --glow-color: #FFB04D;
  --border-color: #A84F0C;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg-color: #17191F;
  --text-main-color: #FFF3E6;
  --background-color: #0D0E12;
  --deep-orange: #D96800;
}

.page-bj27-index {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-bj27-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-bj27-index__hero-section {
  padding-top: 10px; /* Adjust as per shared header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

.page-bj27-index__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 20px;
}

.page-bj27-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-bj27-index__hero-content {
  max-width: 800px;
  padding: 40px 20px;
  z-index: 2;
}

.page-bj27-index__main-title {
  font-size: clamp(2em, 5vw, 3em);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-bj27-index__description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-bj27-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-bj27-index__btn-primary,
.page-bj27-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-bj27-index__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-bj27-index__btn-primary:hover {
  background: var(--deep-orange);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-bj27-index__btn-secondary {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-bj27-index__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-bj27-index__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-bj27-index__about-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

.page-bj27-index__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-bj27-index__image-box {
  flex: 1;
  max-width: 50%;
}

.page-bj27-index__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-bj27-index__text-box {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.page-bj27-index__text-box p {
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-bj27-index__features-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-bj27-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-bj27-index__feature-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-bj27-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-bj27-index__card-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-bj27-index__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-bj27-index__card-description {
  color: var(--text-main-color);
  font-size: 0.95em;
}

.page-bj27-index__cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--button-gradient);
}

.page-bj27-index__cta-content {
  max-width: 900px;
}

.page-bj27-index__cta-section .page-bj27-index__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-bj27-index__cta-section .page-bj27-index__description {
  color: #ffffff;
  margin-bottom: 40px;
}

.page-bj27-index__dark-bg {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-bj27-index__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

.page-bj27-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-bj27-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-color);
}

details.page-bj27-index__faq-item summary.page-bj27-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-bj27-index__faq-item summary.page-bj27-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-bj27-index__faq-item summary.page-bj27-index__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-bj27-index__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-bj27-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-bj27-index__faq-item .page-bj27-index__faq-answer {
  padding: 0 20px 20px;
  background: var(--card-bg-color);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-bj27-index__hero-section {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-bj27-index__hero-brand,
  .page-bj27-index__hero-jackpot {
    display: none !important;
  }
  .page-bj27-index__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-bj27-index__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-bj27-index__game-trial-topbar,
  .page-bj27-index__game-trial-bottombar {
    display: none !important;
  }
  .page-bj27-index__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-bj27-index__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-bj27-index__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-bj27-index__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-bj27-index__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-bj27-index__hero-brand,
  .page-bj27-index__hero-jackpot,
  .page-bj27-index__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-bj27-index__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-bj27-index__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-bj27-index__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-bj27-index__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-bj27-index__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-bj27-index__hero-content {
    padding: 20px 15px;
  }

  .page-bj27-index__main-title {
    font-size: 1.8em;
  }

  .page-bj27-index__description {
    font-size: 1em;
  }

  .page-bj27-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-bj27-index__btn-primary,
  .page-bj27-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-bj27-index__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-bj27-index__about-section {
    padding: 40px 0;
  }

  .page-bj27-index__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-bj27-index__image-box,
  .page-bj27-index__text-box {
    max-width: 100%;
    width: 100%;
  }

  .page-bj27-index__features-section {
    padding: 40px 0;
  }

  .page-bj27-index__feature-card {
    padding: 20px;
  }

  .page-bj27-index__card-title {
    font-size: 1.3em;
  }

  .page-bj27-index__cta-section {
    padding: 50px 0;
  }

  details.page-bj27-index__faq-item summary.page-bj27-index__faq-question {
    padding: 15px;
  }

  .page-bj27-index__faq-qtext {
    font-size: 1em;
  }

  .page-bj27-index__faq-toggle {
    font-size: 20px;
  }

  details.page-bj27-index__faq-item .page-bj27-index__faq-answer {
    padding: 0 15px 15px;
  }

  .page-bj27-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-bj27-index__section,
  .page-bj27-index__card,
  .page-bj27-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-bj27-index__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-bj27-index__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Common styles for game trial if applicable, ensuring no overlap with generic hero section */
.page-bj27-index__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-bj27-index__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-bj27-index__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-bj27-index__game-trial-shell {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}
.page-bj27-index__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-bj27-index__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.page-bj27-index__reward-modal-content {
  background: var(--card-bg-color);
  color: var(--text-main-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}
.page-bj27-index__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-main-color);
  font-size: 24px;
  cursor: pointer;
}
.page-bj27-index--reward-open {
  overflow: hidden;
}