/* FAQ Section — detail page */
.faq-section {
  margin-top: 0;
  content-visibility: visible;
  contain-intrinsic-size: auto;
  overflow-anchor: auto;
}
.faq-title {
  font-size: 1.05rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid rgba(93, 92, 222, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-title::-webkit-details-marker {
  display: none;
}

.faq-title:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-soft);
}
.faq-section[open] .faq-title {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  list-style: none;
}
.faq-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.35);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--glass-bg);
  border: 1px solid rgba(93, 92, 222, 0.25);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.faq-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(93, 92, 222, 0.12);
  border-radius: 14px;
  overflow: hidden;
}
.faq-question {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
}
.faq-answer {
  padding: 12px 16px 16px;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid rgba(93, 92, 222, 0.1);
}
.faq-answer a {
  color: var(--primary-color);
}
.faq-section-toggle .fa,
.faq-section-toggle .fa-chevron-right,
.faq-section-toggle i {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border: none;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: transparent;
  transform: rotate(-45deg);
  transition: transform var(--transition-normal, 0.25s ease);
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: visible;
  box-sizing: border-box;
}

.faq-section-toggle .fa::before,
.faq-section-toggle .fa-chevron-right::before,
.faq-section-toggle i::before {
  display: none !important;
  content: "" !important;
}

.faq-section[open] .faq-section-toggle .fa,
.faq-section[open] .faq-section-toggle .fa-chevron-right,
.faq-section[open] .faq-section-toggle i {
  transform: rotate(45deg);
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Game detail metadata */
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  padding: 8px 0;
  border-top: 1px solid var(--ink-rule, rgba(0, 0, 0, 0.12));
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted, var(--color-text-muted, #64748b));
}

.detail-facts .game-developer,
.detail-facts .game-publish-date,
.detail-facts .game-update-time {
  margin: 0;
}

.detail-facts + .detail-content-section > h2:first-child,
.detail-facts + .detail-content-section > .detail-split-block:first-child h2,
.detail-facts + .detail-content-sections {
  margin-top: 0;
}

.detail-facts + .detail-content-section > h2:first-child,
.detail-facts + .detail-content-section > .detail-split-block:first-child > h2 {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}
