/* game_tgn_0049 — Sample Bay detail helpers (modal play) */

.g49-body--detail .g49-detail {
  padding-bottom: 24px;
}

.g49-crumb a { color: var(--g49-muted); }
.g49-crumb a:hover { color: var(--g49-cta); }
.g49-crumb [aria-current="page"] { color: var(--g49-ink); font-weight: 700; }

.g49-side-actions .g49-btn-primary,
.g49-side-actions .play-btn {
  min-width: 140px;
}

.faq-section { border: 0; }
.faq-title {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-title::-webkit-details-marker { display: none; }
.faq-section-toggle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g49-accent);
  box-shadow: 0 0 0 3px rgba(196, 216, 46, 0.25);
}
.faq-list { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  padding: 12px;
  background: rgba(21, 32, 37, 0.03);
  border: 1px solid var(--g49-line);
  border-radius: var(--g49-radius);
}
.faq-question {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--g49-ink);
}
.faq-answer {
  color: var(--g49-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rich-content {
  color: var(--g49-muted);
  line-height: 1.65;
}
.rich-content a { color: var(--g49-cta); font-weight: 600; }
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--g49-radius);
  margin: 10px 0;
}

.description-toggle-btn { margin-top: 10px; }

/* Favorite button alignment in Sample Bay */
.g49-side-actions .favorite-btn,
.g49-side-actions [data-favorite-btn],
.g49-side-actions .btn-favorite,
.g49-side-actions .detail-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--g49-line);
  background: var(--g49-panel);
  color: var(--g49-ink);
  border-radius: var(--g49-radius);
  font-weight: 700;
  cursor: pointer;
}

.g49-side-actions .detail-favorite-btn:hover,
.g49-side-actions .detail-favorite-btn.is-active {
  color: var(--g49-cta);
  border-color: var(--g49-cta);
  background: rgba(232, 93, 76, 0.1);
}

/* Outer play modal shell — Sample Bay (Steel overlay + Acid edge) */
body.game-modal-open .g49-bay-open,
body.game-modal-open .g49-mobnav,
body.game-modal-open .g49-back-top,
body.game-modal-open .back-to-top {
  display: none !important;
}

#game-modal.detail-game-modal {
  z-index: 20050;
  background: rgba(26, 36, 40, 0.92);
  pointer-events: none;
}

#game-modal.detail-game-modal .detail-game-modal__panel {
  width: min(1100px, 100%);
  height: min(88vh, 760px);
  max-height: calc(100dvh - 32px);
  background: transparent;
  box-shadow: none;
  border-radius: var(--g49-radius, 4px);
  border-left: 4px solid var(--g49-accent, #c4d82e);
  pointer-events: auto;
  overflow: hidden;
}

/* Detail modal close - themed to match play_tgn close */
#game-modal.detail-game-modal .detail-game-modal__title {
  display: none !important;
}

#game-modal.detail-game-modal .detail-game-modal__bar {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--g49-play-panel-2);
  border-bottom: 1px solid var(--g49-play-line);
}

#game-modal.detail-game-modal .detail-game-modal__close {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--g49-play-line);
  border-radius: 4px;
  background: var(--g49-play-panel);
  color: var(--g49-play-ink);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#game-modal.detail-game-modal .detail-game-modal__close:hover {
  background: var(--g49-play-electric);
  color: #fff;
  border-color: var(--g49-play-electric);
}

#game-modal.detail-game-modal .detail-game-modal__frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: #1a2428;
  pointer-events: auto;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  #game-modal.detail-game-modal {
    padding: 0;
    background: #1a2428;
    overflow: hidden;
  }

  #game-modal.detail-game-modal .detail-game-modal__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border-left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #game-modal.detail-game-modal .detail-game-modal__frame {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }
}
