/* game_tgn_0053 detail · modal */

.g53-body--detail .g53-entry { padding-bottom: 24px; }
.g53-crumb a { color: var(--g53-muted); }
.g53-crumb a:hover { color: var(--g53-cord); }
.g53-crumb [aria-current="page"] { color: var(--g53-ink); font-weight: 700; }
.g53-entry-actions .g53-btn-primary,
.g53-entry-actions .play-btn {
  min-width: 148px;
  padding: 11px 20px;
  font-size: 1rem;
  box-shadow: 0 4px 0 rgba(92, 38, 38, 0.45);
}
.g53-entry-actions .g53-btn-primary:hover,
.g53-entry-actions .play-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(92, 38, 38, 0.45);
}

.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; color: var(--g53-ink);
}
.faq-title::-webkit-details-marker { display: none; }
.faq-section-toggle::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--g53-sage); box-shadow: 0 0 0 3px rgba(95, 122, 97, 0.25);
}
.faq-list { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  padding: 12px; background: rgba(28, 40, 51, 0.03); border: 1px solid var(--g53-line);
}
.faq-question { font-weight: 700; margin: 0 0 6px; font-size: 1rem; color: var(--g53-ink); }
.faq-answer { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.55; }

.rich-content, .game-description { color: var(--ink-muted); line-height: 1.65; }
.rich-content a { color: var(--g53-cord); font-weight: 600; }
.rich-content img { max-width: 100%; height: auto; margin: 10px 0; }
.description-toggle-btn { margin-top: 10px; }

@media (max-width: 768px) {
  .description-text-wrap.is-collapsed {
    max-height: 180px; overflow: hidden; position: relative;
  }
  .description-text-wrap.is-collapsed::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
    background: linear-gradient(transparent, var(--g53-panel));
  }
  .description-text-wrap.is-expanded { max-height: none; }
  .description-text-wrap.is-expanded::after { display: none; }
}

.g53-entry-actions .favorite-btn,
.g53-entry-actions .btn-favorite {
  border: 1px solid var(--g53-line); background: var(--g53-panel);
  color: var(--g53-ink); font-weight: 700; padding: 9px 14px; cursor: pointer;
}

#gameDetails .play-tgn-0001__pill,
#gameDetails .play-tgn-0001__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: rgba(95, 122, 97, 0.1); border: 1px solid var(--g53-line);
  color: var(--g53-ink); font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
#gameDetails .play-tgn-0001__pill--like.is-active,
#gameDetails .play-tgn-0001__pill--fav.is-active {
  color: var(--g53-cord); border-color: var(--g53-cord);
}

/* Detail modal chrome — READING LEDGE (match play_tgn close) */
body.game-modal-open .g53-dock,
body.game-modal-open .g53-edge,
body.game-modal-open .g53-totop,
body.game-modal-open .back-to-top {
  visibility: hidden;
  pointer-events: none;
}

#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(--g53-play-panel-2, #2c3e50);
  border-bottom: 1px solid var(--g53-play-line, rgba(240, 235, 227, 0.16));
}

#game-modal.detail-game-modal .detail-game-modal__panel {
  border-radius: 0;
  background: var(--g53-play-panel, #243342);
  border: 1px solid var(--g53-play-line, rgba(240, 235, 227, 0.16));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

#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(--g53-play-line, rgba(240, 235, 227, 0.16));
  border-radius: 0;
  background: var(--g53-play-panel, #243342);
  color: var(--g53-play-ink, #f0ebe3);
  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(--g53-play-electric, #8b3a3a);
  color: #fff;
  border-color: var(--g53-play-electric, #8b3a3a);
}
