/* Base styles for About Us page */
.page-about {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-about__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(180deg, #0D0E12 0%, rgba(255,165,58,0.1) 100%);
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

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

.page-about__hero-content {
  max-width: 800px;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-about__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #FFB04D; /* Glow */
}

.page-about__section-description {
  font-size: 16px;
  margin-bottom: 30px;
  text-align: center;
  color: #FFF3E6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__introduction-section,
.page-about__commitment-section,
.page-about__cta-section {
  padding: 60px 0;
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.page-about__text-block h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFA53A;
}

.page-about__text-block p {
  margin-bottom: 20px;
}

.page-about__text-block .page-about__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__values-list li {
  background-color: #17191F; /* Card B G */
  border-left: 5px solid #FF8C1A;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__values-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255,140,26,0.2);
}

.page-about__values-list strong {
  color: #FFB04D; /* Glow */
}

.page-about__why-choose-us {
  padding: 60px 0;
  background-color: #17191F; /* Card B G */
  color: #FFF3E6;
}

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

.page-about__feature-card {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255,165,58,0.3);
}

.page-about__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFA53A;
}

.page-about__feature-card p {
  font-size: 15px;
  color: #FFF3E6;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: #0D0E12;
  color: #FFF3E6;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card B G */
}

details.page-about__faq-item summary.page-about__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-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(23,25,31,0.5); /* Semi-transparent Card B G */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  font-size: 16px;
}

.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-about__cta-content {
  max-width: 700px;
}

.page-about__cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255,165,58,0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,165,58,0.6);
  opacity: 0.9;
}

/* Game Trial Section Styles */
.page-about__game-trial-section {
  padding: 60px 0;
  background-color: #17191F; /* Card B G */
  color: #FFF3E6;
  text-align: center;
}

.page-about__game-trial-wrapper {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-about__game-trial-shell {
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  background-color: #0D0E12; /* Background */
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.page-about__game-trial-topbar {
  background-color: #FF8C1A;
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid #D96800;
}

.page-about__game-trial-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFF3E6;
}

.page-about__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768;
  overflow: hidden;
}

.page-about__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.page-about__game-trial-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.page-about__game-trial-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.page-about__game-trial-start {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255,165,58,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-about__game-trial-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,165,58,0.6);
}

.page-about__game-trial-bottombar {
  background-color: #0D0E12;
  padding: 15px 20px;
  border-top: 1px solid #A84F0C;
}

.page-about__game-trial-full-version {
  color: #FFB04D;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-about__game-trial-full-version:hover {
  color: #FFA53A;
  text-decoration: underline;
}

/* Reward Modal Styles */
.page-about__reward-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-about__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.page-about__reward-modal-content {
  background-color: #17191F; /* Card B G */
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #A84F0C;
}

.page-about__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFF3E6;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.page-about__reward-modal-close:hover {
  color: #FFA53A;
}

.page-about__reward-modal-title {
  font-size: 32px;
  color: #FFB04D;
  margin-bottom: 20px;
}

.page-about__reward-modal-description {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* --- Media Queries for Game Trial (MUST BE INCLUDED) --- */
@media (max-width: 1023px) {
  .page-about__game-trial-section .page-about__container {
    padding: 0;
  }
  .page-about__game-trial-wrapper {
    margin: 40px 0 0;
  }
  .page-about__game-trial-shell {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .page-about__game-trial-topbar {
    display: none !important;
  }
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768; /* MUST use 1024/768 */
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__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-about__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* This is an inner page, so no 3-column hero layout here. */
  /* The game trial section will simply be full width within its container. */
  .page-about__game-trial-section .page-about__game-trial-wrapper {
    max-width: 900px;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none; /* Allow height to be determined by content or aspect-ratio */
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
}

/* --- General Responsive Styles (MUST BE INCLUDED) --- */
@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: 32px;
  }

  .page-about__hero-description {
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .page-about__introduction-section,
  .page-about__why-choose-us,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__game-trial-section {
    padding: 40px 0;
  }

  .page-about__text-block {
    font-size: 16px;
  }

  .page-about__text-block h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

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

  .page-about__faq-qtext {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-about__cta-container {
    gap: 20px;
  }

  .page-about__cta-content p {
    font-size: 16px;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__why-choose-us,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__game-trial-section,
  .page-about__game-trial-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about 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;
    margin-left: auto;
    margin-right: auto;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__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;
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-about__reward-modal-content {
    padding: 25px;
  }

  .page-about__reward-modal-title {
    font-size: 26px;
  }

  .page-about__reward-modal-description {
    font-size: 16px;
  }
}

/* No specific promo-strip, hot-games, brand-intro, winner-ticker for about.css */
/* The game trial section specific mobile rules are handled by the 1023px media query above. */