/* 须含：1023px试玩重置、1024px三栏300px、overlay z-index、promo、hot-games、768px */
@media (max-width:1023px){.page-faq__home-hero{display:block!important;grid-template-columns:none!important;height:auto!important;max-height:none!important;overflow-x:hidden;box-sizing:border-box;}.page-faq__hero-brand,.page-faq__hero-jackpot{display:none!important;}.page-faq__game-trial{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:hidden!important;padding:0 0 12px!important;box-sizing:border-box;}.page-faq__game-trial-shell{height:auto!important;max-height:none!important;width:100%;max-width:100%;overflow:hidden;box-sizing:border-box;}.page-faq__game-trial-topbar,.page-faq__game-trial-bottombar{display:none!important;}.page-faq__game-trial-viewport{position:relative;aspect-ratio:1024/768;min-height:240px;max-height:none!important;flex:none!important;overflow:hidden;box-sizing:border-box;width:100%;}.page-faq__game-trial-frame{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-width:100%;border:none;z-index:1;overflow:hidden;}.page-faq__game-trial-overlay{z-index:5!important;pointer-events:auto!important;}.page-faq__game-trial-start{z-index:6!important;pointer-events:auto!important;touch-action:manipulation;}}
@media (min-width:1024px){.page-faq__home-hero{display:grid;grid-template-columns:26% 48% 26%;align-items:stretch;max-width:1280px;margin:0 auto;padding-bottom:24px;}.page-faq__hero-brand,.page-faq__hero-jackpot,.page-faq__game-trial{height:300px;max-height:300px;}.page-faq__game-trial{overflow:hidden;}.page-faq__game-trial-shell{display:flex;flex-direction:column;height:100%;}.page-faq__game-trial-viewport{flex:1;min-height:0;}.page-faq__game-trial-frame{height:100%;min-height:0;}.page-faq__hero-jackpot-claim{background:#c62828!important;}.page-faq__promo-strip{margin-top:16px;}}
@media (max-width:768px){.page-faq__promo-strip-track{grid-template-columns:repeat(4,1fr);overflow-x:hidden;}.page-faq__hot-games-grid{grid-template-columns:repeat(2,1fr);}}
.page-faq__game-trial-overlay{z-index:5;pointer-events:auto;}.page-faq__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-faq__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-faq__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-faq__reward-modal{position:fixed;inset:0;z-index:10000;}

/* Base styles for FAQ page */
.page-faq {
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-faq__hero-content {
  max-width: 800px;
  margin-bottom: 20px;
}

.page-faq__main-title {
  font-size: 3em;
  font-weight: 700;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
}

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

.page-faq__highlight {
  color: #FFD86A;
  font-weight: bold;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for light button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

.page-faq__section-spacing {
  padding: 40px 20px;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFD86A; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.4);
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: 2em;
  font-weight: 600;
  color: #F2B544; /* Border color for category titles */
  margin-bottom: 25px;
  border-bottom: 2px solid #F2B544;
  padding-bottom: 10px;
  text-align: center;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  background: #D32F2F; /* Card BG */
  overflow: hidden;
  border: 1px solid #F2B544; /* Border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

details.page-faq__faq-item summary.page-faq__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, border-color 0.3s ease;
  color: #FFF5E1; /* Text Main */
  font-size: 1.1em;
  font-weight: 600;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #C91F17; /* Main color for hover */
  border-color: #FFD86A;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A; /* Gold for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #7A0E0E; /* Deep Red for answer background */
  color: #FFF5E1; /* Text Main */
  border-radius: 0 0 10px 10px;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
  color: #FFF5E1;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
  color: #FFF5E1;
}

.page-faq__btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for light button */
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: #FFD86A; /* Gold text */
  text-decoration: none;
  border: 2px solid #F2B544; /* Border */
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background: rgba(244, 211, 77, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.page-faq__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-section {
  text-align: center;
  padding: 40px 20px;
  background: #C91F17; /* Main color */
  border-radius: 15px;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-faq__cta-text {
  font-size: 1.3em;
  font-weight: 500;
  color: #FFF5E1;
  margin-bottom: 25px;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-faq__hero-section {
    flex-direction: column;
    padding: 10px 15px 30px;
  }
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__category-title {
    font-size: 1.6em;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 20px;
  }
  .page-faq__main-title {
    font-size: 2em;
    line-height: 1.3;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 1.4em;
    margin-bottom: 20px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 12px 15px;
  }
  .page-faq__faq-qtext {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 18px;
    width: 20px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__faq-answer p, .page-faq__faq-answer li {
    font-size: 0.9em;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 0.9em;
  }
  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section, .page-faq__card, .page-faq__container, .page-faq__hero-section, .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-text {
    font-size: 1.1em;
  }
  /* Mobile specific adjustments for general content images */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block;
  }
}

/* Mobile button container adaptation */
@media (max-width: 768px) {
  .page-faq__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
}

/* Shared CSS for homepage elements (as required by prompt, even if not directly used on FAQ page) */
@media (max-width: 1023px) {
  .page-faq__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-faq__hero-brand,
  .page-faq__hero-jackpot {
    display: none !important;
  }
  .page-faq__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-faq__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-topbar,
  .page-faq__game-trial-bottombar {
    display: none !important;
  }
  .page-faq__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-faq__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-faq__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-faq__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-faq__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-faq__hero-brand,
  .page-faq__hero-jackpot,
  .page-faq__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-faq__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-faq__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-faq__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-faq__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-faq__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-faq__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-faq__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-faq__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-faq__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

/* Reward Modal Close Button (as required by prompt) */
.page-faq__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #C91F17;
  color: #FFF5E1;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.page-faq__reward-modal-close:hover {
  background: #E53935;
}

/* General image and container rules for content area */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-faq__section, .page-faq__container, .page-faq__card {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Fixed header spacing (only if shared doesn't handle body padding) */
/* If shared.css already has body { padding-top: var(--header-offset); }, then do NOT add this to .page-faq */
/* For this FAQ page, relying on body padding for header offset, and specific padding for sections. */