/* game_tgn_0036 — detail + inline play shell (VOLTAGE RACK) */

.description-collapse-section .description-text-wrap.is-collapsed {
  max-height: 180px;
  overflow: hidden;
  position: relative;
}
.description-collapse-section .description-text-wrap.is-collapsed::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--g36-bg, #12140f));
}
.description-collapse-section .description-text-wrap.is-expanded {
  max-height: none;
}
.description-toggle-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--g36-border, rgba(200,245,66,.18));
  color: var(--g36-lime, #c8f542);
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-section {
  border: 1px solid var(--g36-border, rgba(200,245,66,.18));
  background: var(--g36-card, #22261a);
  padding: 0;
}
.faq-title {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-title::-webkit-details-marker { display: none; }
.faq-section-toggle::before {
  content: '▸';
  color: var(--g36-lime, #c8f542);
}
.faq-section[open] .faq-section-toggle::before { content: '▾'; }
.faq-list { padding: 0 16px 16px; }
.faq-item { padding: 12px 0; border-top: 1px solid rgba(200,245,66,.1); }
.faq-question { font-weight: 700; margin-bottom: 6px; color: var(--g36-text, #f2f0e6); }
.faq-answer { color: var(--g36-text2, #a8a494); font-size: 0.95rem; }

.g36-detail-wrap {
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: 24px;
}

#gameDetails .game-hero-card[data-play-inline-visible] {
  --hero-top-mask-height: 48px;
  --hero-bottom-mask-height: 68px;
  background: var(--g36-card, #22261a);
  border: 1px solid var(--g36-border, rgba(200,245,66,.18));
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-rows: var(--hero-top-mask-height) auto var(--hero-bottom-mask-height);
  align-items: stretch;
  text-align: center;
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  margin: 0 0 24px;
  box-shadow: none;
}

#gameDetails .game-hero-card[data-play-inline-visible]::before,
#gameDetails .game-hero-card[data-play-inline-visible]::after {
  display: none;
}

#gameDetails .game-launch-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background-color: #0c0e08;
  background-size: cover;
  background-position: center;
  position: relative;
}

#gameDetails .game-launch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(12, 14, 8, 0.45);
}

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

#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;
}

#gameDetails .game-hero-card[data-play-inline-visible] .game-launch-container,
#gameDetails .game-hero-card[data-play-inline-visible] .game-launch-overlay {
  position: relative;
  z-index: 1;
}
#gameDetails .game-hero-card[data-play-inline-visible] .game-launch-overlay {
  position: absolute;
  inset: 0;
}

#gameDetails .hero-play-btn.game-launch-btn {
  background: var(--g36-lime, #c8f542);
  color: #0c0e08;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
#gameDetails .hero-play-btn.game-launch-btn:hover {
  filter: brightness(1.06);
}

.hero-mask-frame {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  background: rgba(26, 29, 20, 0.97);
}
.hero-mask-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.hero-mask-frame--top {
  grid-row: 1;
  height: var(--hero-top-mask-height, 48px);
  border-bottom: 1px solid rgba(200, 245, 66, 0.12);
}
.hero-mask-frame--top .hero-mask-frame__bar {
  height: 100%;
  padding: 0 14px;
}
.hero-mask-frame--bottom {
  grid-row: 3;
  height: var(--hero-bottom-mask-height, 68px);
  border-top: 1px solid rgba(200, 245, 66, 0.12);
}
.hero-mask-frame--bottom .hero-mask-frame__bar {
  height: 100%;
  padding: 0 14px;
  align-items: center;
}
/* Idle only — keep close visible in fullscreen / immersive / mobile play */
.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(200, 245, 66, 0.25);
  background: transparent;
  color: #f2f0e6;
  font-size: 1.35rem;
  cursor: pointer;
  margin-left: auto;
}
#gameDetails .hero-mask-close:hover {
  border-color: #c8f542;
  color: #c8f542;
}

.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,
#gameDetails .hero-game-actions .play-tgn-0001__pill,
#gameDetails .hero-game-actions .play-tgn-0001__btn {
  background: rgba(200, 245, 66, 0.08);
  border: 1px solid rgba(200, 245, 66, 0.22);
  color: #f2f0e6;
  border-radius: 0;
  flex-shrink: 0;
}
#gameDetails .play-tgn-0001__pill:hover,
#gameDetails .play-tgn-0001__btn:hover {
  border-color: #c8f542;
  color: #c8f542;
}
#gameDetails .play-tgn-0001__pill--like.is-active,
#gameDetails .play-tgn-0001__pill--fav.is-active {
  color: #c8f542;
  border-color: #c8f542;
}
#gameDetails .play-tgn-0001__pill--dislike.is-active {
  color: #e0794a;
  border-color: #e0794a;
}

.rich-content a { color: var(--g36-lime, #c8f542); }

@media (max-width: 768px) {
  #gameDetails .game-hero-card[data-play-inline-visible] {
    --hero-bottom-mask-height: 56px;
  }

  .hero-mask-frame--bottom .hero-mask-frame__bar {
    padding: 0 10px;
  }

  .hero-game-actions__inner {
    gap: 6px;
  }

  .hero-game-actions__left,
  .hero-game-actions__right {
    gap: 4px;
  }

  #gameDetails .hero-game-actions .play-tgn-0001__btn span {
    display: none;
  }

  #gameDetails .hero-game-actions .play-tgn-0001__pill,
  #gameDetails .hero-game-actions .play-tgn-0001__btn {
    padding: 0;
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
    justify-content: center;
    gap: 0;
  }

  #gameDetails .hero-game-actions .play-tgn-0001__pill--like,
  #gameDetails .hero-game-actions .play-tgn-0001__pill--dislike {
    width: auto;
    min-width: 44px;
    padding: 0 8px;
    gap: 4px;
  }

  #gameDetails .hero-game-actions .play-tgn-0001__pill svg,
  #gameDetails .hero-game-actions .play-tgn-0001__btn svg {
    width: 16px;
    height: 16px;
  }
}

/* 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: #111111;
  border-bottom: 1px solid var(--color-border, #E4E4E4);
}

#game-modal.detail-game-modal .detail-game-modal__close {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--color-primary, #c8f542);
  border-radius: var(--radius-full, 9999px);
  background: var(--color-bg-tertiary, #e4e4e4);
  color: var(--color-primary, #c8f542);
  font-size: 24px;
  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(--color-primary, #c8f542);
  color: #fff;
  border-color: var(--color-primary, #c8f542);
}

