/* game_tgn_0048 — CARD INDEX detail + inline play */

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

.g48-crumb { margin: 14px 0; font-size: 13px; color: var(--g48-muted); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-separator { opacity: 0.5; }

.g48-play-main { min-width: 0; }

.g48-play-side h1 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--g48-ink);
}

@media (max-width: 899px) {
  .g48-play-stage { display: flex; flex-direction: column; }
  .g48-play-side { order: -1; }
}

/* ——— Inline player shell (Card Window) ——— */
#gameDetails .game-hero-card[data-play-inline-visible] {
  --hero-top-mask-height: 44px;
  --hero-bottom-mask-height: 64px;
  display: grid;
  grid-template-rows: var(--hero-top-mask-height) auto var(--hero-bottom-mask-height);
  align-items: stretch;
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--g48-bar);
  border: 2px solid var(--g48-accent);
  border-radius: 10px;
  box-shadow:
    0 0 0 3px var(--g48-petal),
    0 12px 28px var(--g48-shadow);
  overflow: hidden;
  height: auto;
  min-height: 0;
  max-height: none;
  text-align: center;
}
#gameDetails .game-hero-card[data-play-inline-visible]::before,
#gameDetails .game-hero-card[data-play-inline-visible]::after {
  display: none;
}

#gameDetails .hero-card-main {
  grid-row: 2;
  position: relative;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: 0;
}

#gameDetails .game-launch-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background-color: var(--g48-bar);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
#gameDetails .g48-launch-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
#gameDetails .game-hero-card.playing .g48-launch-cover,
#gameDetails .game-hero-card.is-game-started .g48-launch-cover {
  display: none;
}

#gameDetails .game-launch-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(131, 24, 67, 0.35), transparent 70%),
    rgba(59, 31, 43, 0.48);
}

#gameDetails .game-hero-card[data-play-inline-visible]:not(.playing):not(.is-game-started):not(.is-immersive-play):not(.is-mobile-play):not(.is-browser-fs):not(:fullscreen):not(:-webkit-full-screen) .hero-card-main {
  z-index: 35;
}
#gameDetails .game-hero-card[data-play-inline-visible]:not(.playing):not(.is-game-started):not(.is-immersive-play):not(.is-mobile-play):not(.is-browser-fs):not(:fullscreen):not(:-webkit-full-screen) .hero-mask-frame {
  z-index: 10;
  overflow: hidden;
}
#gameDetails .game-hero-card[data-play-inline-visible].playing .hero-mask-frame,
#gameDetails .game-hero-card[data-play-inline-visible].is-game-started .hero-mask-frame,
#gameDetails .game-hero-card[data-play-inline-visible].is-immersive-play .hero-mask-frame,
#gameDetails .game-hero-card[data-play-inline-visible].is-mobile-play .hero-mask-frame,
#gameDetails .game-hero-card[data-play-inline-visible].is-browser-fs .hero-mask-frame,
#gameDetails .game-hero-card[data-play-inline-visible]:is(:fullscreen, :-webkit-full-screen) .hero-mask-frame {
  z-index: 30;
}

/* Play Now — solid stamp CTA */
#gameDetails .hero-play-btn.game-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 28px 12px 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--g48-rose), var(--g48-accent));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  box-shadow:
    0 0 0 4px rgba(219, 39, 119, 0.28),
    0 10px 24px rgba(131, 24, 67, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
#gameDetails .hero-play-btn.game-launch-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 5px rgba(219, 39, 119, 0.34),
    0 14px 28px rgba(131, 24, 67, 0.5);
}
#gameDetails .hero-play-btn.game-launch-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
#gameDetails .hero-play-btn .hero-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
#gameDetails .hero-play-btn .launch-text {
  padding-right: 4px;
}

.hero-mask-frame {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  background: var(--g48-bar);
}
.hero-mask-frame__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.hero-mask-frame--top {
  grid-row: 1;
  height: var(--hero-top-mask-height, 44px);
  border-bottom: 1px solid rgba(255, 240, 245, 0.12);
}
.hero-mask-frame--top .hero-mask-frame__bar {
  height: 100%;
  padding: 0 12px;
}
.hero-mask-frame--bottom {
  grid-row: 3;
  height: var(--hero-bottom-mask-height, 64px);
  border-top: 1px solid rgba(255, 240, 245, 0.12);
  background: linear-gradient(180deg, #5c2a3a, var(--g48-bar));
}
.hero-mask-frame--bottom .hero-mask-frame__bar {
  height: 100%;
  padding: 0 12px;
  align-items: center;
}

.game-hero-card:not(.playing):not(.is-game-started):not(.is-immersive-play):not(.is-mobile-play):not(.is-browser-fs):not(:fullscreen):not(:-webkit-full-screen) .hero-mask-close {
  display: none !important;
}

#gameDetails .hero-mask-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 240, 245, 0.22);
  background: rgba(59, 31, 43, 0.45);
  color: #fff0f5;
  border-radius: var(--g48-radius);
  font-size: 1.35rem;
  cursor: pointer;
  margin-left: auto;
}
#gameDetails .hero-mask-close:hover {
  border-color: var(--g48-rose);
  color: #fff;
  background: var(--g48-accent);
}

.hero-game-actions { width: 100%; min-width: 0; }
.hero-game-actions__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}
.hero-game-actions__left,
.hero-game-actions__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
.hero-game-actions__right { margin-left: auto; }

#gameDetails .play-tgn-0001__pill,
#gameDetails .play-tgn-0001__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  background: rgba(59, 31, 43, 0.55);
  border: 1px solid rgba(255, 240, 245, 0.18);
  color: #fff0f5;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#gameDetails .play-tgn-0001__pill svg,
#gameDetails .play-tgn-0001__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
#gameDetails .play-tgn-0001__pill:hover,
#gameDetails .play-tgn-0001__btn:hover {
  border-color: var(--g48-rose);
  color: #fff;
  background: rgba(219, 39, 119, 0.35);
}
#gameDetails .play-tgn-0001__pill--fav {
  background: var(--g48-accent);
  border-color: var(--g48-accent);
  color: #fff;
  padding: 7px 9px;
}
#gameDetails .play-tgn-0001__pill--fav:hover {
  background: var(--g48-cta);
  border-color: var(--g48-cta);
}
#gameDetails .play-tgn-0001__pill--like.is-active,
#gameDetails .play-tgn-0001__pill--fav.is-active {
  color: #fff;
  border-color: var(--g48-rose);
  background: rgba(219, 39, 119, 0.45);
}
#gameDetails .play-tgn-0001__pill--dislike.is-active {
  color: #d4a0b0;
}

@media (max-width: 700px) {
  .hero-game-actions__inner { flex-wrap: wrap; row-gap: 6px; }
  #gameDetails .play-tgn-0001__btn span { display: none; }
  .hero-mask-frame--bottom { height: auto; min-height: var(--hero-bottom-mask-height, 64px); }
  .hero-mask-frame--bottom .hero-mask-frame__bar { padding: 8px 10px; }
  #gameDetails .hero-play-btn.game-launch-btn {
    min-height: 48px;
    padding: 10px 22px 10px 12px;
    font-size: 0.88rem;
  }
  #gameDetails .hero-play-btn .hero-play-icon {
    width: 32px;
    height: 32px;
  }
}

/* Below fold */
.rich-content,
.game-description {
  color: var(--g48-muted);
  line-height: 1.65;
}
.rich-content a { color: var(--g48-cta); }

.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(--g48-panel));
}
.description-text-wrap.is-expanded { max-height: none; }
.description-text-wrap.is-expanded::after { display: none; }

.faq-title {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--g48-ink);
}
.faq-title::-webkit-details-marker { display: none; }
.faq-section-toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--g48-line);
  background: var(--g48-accent);
  flex-shrink: 0;
}
.faq-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--g48-line);
}
.faq-question {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--g48-ink);
}
.faq-answer { color: var(--g48-muted); }

/* 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(--g48-play-panel-2);
  border-bottom: 1px solid var(--g48-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(--g48-play-line);
  border-radius: 6px;
  background: var(--g48-play-panel);
  color: var(--g48-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(--g48-play-electric);
  color: #fff;
  border-color: var(--g48-play-electric);
}

