/* game_tgn_0043 — detail + inline play (Instant Arcade) */

.g43-body--detail .g43-detail {
  padding: 12px var(--g43-pad) 28px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.g43-crumb { margin-bottom: 12px; font-size: .78rem; color: var(--g43-muted, #94a3b8); }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb-separator { opacity: .5; }

/* ——— 70 / 30 layout (sidebar sticky beside full column) ——— */
.g43-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 960px) {
  .g43-detail-layout {
    grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
    gap: 18px;
  }
}
.g43-detail-col { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.g43-play-main { min-width: 0; }

.g43-play-side {
  position: relative;
  background: linear-gradient(165deg, #1a2230 0%, var(--g43-panel, #141a24) 55%);
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.g43-play-side::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--g43-play, #c8f542), transparent 85%);
}
.g43-play-side__inner {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 960px) {
  .g43-play-side {
    position: sticky;
    top: calc(var(--g43-header, 56px) + 12px);
    max-height: calc(100vh - var(--g43-header, 56px) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 245, 66, 0.35) transparent;
  }
}
.g43-play-side h1 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--g43-ink, #f4f7fb);
}
.g43-play-side .game-star--detail-hero {
  margin: 0 0 12px;
}
.g43-cinema-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.g43-play-side .g43-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--g43-line, rgba(255,255,255,.12));
  color: var(--g43-ink, #f4f7fb);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 999px;
}
.g43-side-facts {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--g43-line, rgba(255,255,255,.08));
  display: grid;
  gap: 8px;
}
.g43-side-fact {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: .8rem;
  line-height: 1.35;
}
.g43-side-fact dt {
  margin: 0;
  color: var(--g43-play, #c8f542);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .68rem;
}
.g43-side-fact dd {
  margin: 0;
  color: #cbd5e1;
  min-width: 0;
  word-break: break-word;
}
.g43-side-brief {
  color: #cbd5e1;
  font-size: .84rem;
  margin: 0 0 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Inline player shell ——— */
#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: #000;
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  border-radius: 10px;
  overflow: hidden;
  height: auto;
  min-height: 0;
  max-height: none;
  text-align: center;
}
/* Collapse empty top mask before play (close bar only needed while playing) */
#gameDetails.play-tgn-hide-login .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),
#gameDetails[data-play-hide-login="1"] .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-top-mask-height: 0;
  grid-template-rows: 0 auto var(--hero-bottom-mask-height);
}
#gameDetails.play-tgn-hide-login .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--top,
#gameDetails[data-play-hide-login="1"] .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--top {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  border: none !important;
}
#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: #000;
  background-size: cover;
  background-position: center;
  position: relative;
}

#gameDetails .game-launch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 14, 19, 0.5);
}

#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 .hero-play-btn.game-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--g43-play, #c8f542);
  /* Dark ink on mint — avoid light --g43-ink / play chrome text vars */
  color: var(--g43-cabinet, #0b0e13) !important;
  -webkit-text-fill-color: var(--g43-cabinet, #0b0e13);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  box-shadow: 0 4px 18px rgba(200, 245, 66, 0.28);
}
#gameDetails .hero-play-btn.game-launch-btn .hero-play-icon,
#gameDetails .hero-play-btn.game-launch-btn .launch-text {
  color: inherit !important;
  -webkit-text-fill-color: inherit;
}
#gameDetails .hero-play-btn.game-launch-btn:hover {
  filter: brightness(1.06);
  transform: scale(1.03);
}
#gameDetails .g43-btn-play,
#gameDetails .g43-btn-primary {
  background: var(--g43-play, #c8f542) !important;
  color: var(--g43-cabinet, #0b0e13) !important;
  -webkit-text-fill-color: var(--g43-cabinet, #0b0e13) !important;
}

.hero-mask-frame {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  background: rgba(20, 26, 36, 0.98);
}
.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 var(--g43-line, rgba(255,255,255,.1));
}
.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 var(--g43-line, rgba(255,255,255,.1));
}
.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 var(--g43-line, rgba(255,255,255,.1));
  background: transparent;
  color: var(--g43-ink, #f4f7fb);
  border-radius: 6px;
  font-size: 1.35rem;
  cursor: pointer;
  margin-left: auto;
}
#gameDetails .hero-mask-close:hover {
  border-color: var(--g43-play, #c8f542);
  color: var(--g43-play, #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 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(200, 245, 66, 0.08);
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  color: var(--g43-ink, #f4f7fb);
  border-radius: 6px;
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
#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(--g43-play, #c8f542);
  color: var(--g43-play, #c8f542);
}
#gameDetails .play-tgn-0001__pill--like.is-active,
#gameDetails .play-tgn-0001__pill--fav.is-active {
  color: var(--g43-play, #c8f542);
  border-color: var(--g43-play, #c8f542);
}
#gameDetails .play-tgn-0001__pill--dislike.is-active {
  color: var(--g43-muted, #94a3b8);
}

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

/* ——— Controls ——— */
.g43-controls {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--g43-panel, #141a24);
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
}
.g43-controls-title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g43-muted, #94a3b8);
  margin: 0 0 8px;
}
.g43-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.g43-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  background: var(--g43-elev, #1c2433);
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
  font-size: .75rem;
  font-weight: 700;
}
.g43-keys-sep { color: var(--g43-muted, #94a3b8); font-size: .75rem; }
.g43-keys-hint { color: var(--g43-muted, #94a3b8); font-size: .75rem; margin-left: 4px; }

/* ——— Below fold ——— */
.g43-detail-body { margin-top: 22px; max-width: none; }
.g43-detail-section { margin-bottom: 22px; }
.g43-detail-section h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.g43-quote { color: var(--g43-muted, #94a3b8); font-size: .95rem; line-height: 1.55; margin: 0; }
.g43-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.g43-shot {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--g43-elev, #1c2433);
}
.g43-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.description-text-wrap.is-collapsed {
  max-height: var(--desc-collapse-height, 168px);
  overflow: hidden;
  position: relative;
}
.description-text-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--desc-collapse-fade-to, var(--g43-cabinet, #0b0e13))
  );
}
.description-text-wrap.is-expanded {
  max-height: none;
  overflow: visible;
}
.description-text-wrap.is-expanded::after { display: none; }
.rich-content,
.game-description { color: #cbd5e1; line-height: 1.65; }
.rich-content strong,
.game-description strong { color: var(--g43-ink, #f4f7fb); }

/* Description fold toggle — always readable CTA */
.description-toggle-btn,
.description-collapse-section .description-toggle-btn.g43-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--desc-collapse-btn-bg, #c8f542) !important;
  color: var(--desc-collapse-btn-color, #0b0e13) !important;
  -webkit-text-fill-color: var(--desc-collapse-btn-color, #0b0e13) !important;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(200, 245, 66, 0.28);
}
.description-toggle-btn::after,
.description-collapse-section .description-toggle-btn.g43-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
}
.description-toggle-btn[aria-expanded="true"]::after,
.description-collapse-section .description-toggle-btn.g43-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}
.description-toggle-btn:hover,
.description-collapse-section .description-toggle-btn.g43-btn:hover {
  background: var(--desc-collapse-btn-bg-hover, #ffb020) !important;
  color: var(--desc-collapse-btn-color-hover, #0b0e13) !important;
  -webkit-text-fill-color: var(--desc-collapse-btn-color-hover, #0b0e13) !important;
  filter: none;
  transform: none;
}
.description-toggle-btn[hidden] { display: none !important; }

@media (max-width: 768px) {
  .description-collapse-section .description-toggle-btn,
  .description-collapse-section .description-toggle-btn.g43-btn {
    width: 100%;
  }
}

/* FAQ */
.faq-title {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-title::-webkit-details-marker { display: none; }
.faq-section-toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  background: var(--g43-play, #c8f542);
  flex-shrink: 0;
}
.faq-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--g43-line, rgba(255,255,255,.1)); }
.faq-question { font-weight: 700; margin-bottom: 4px; color: var(--g43-ink, #f4f7fb); }

/* Comments baseline (member-detail.css refines when member is on) */
.g43-comments-section {
  padding: 18px;
  background: linear-gradient(165deg, #1a2230 0%, var(--g43-panel, #141a24) 60%);
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  border-radius: 12px;
}
.g43-comment-login-prompt {
  padding: 20px 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  border-radius: 10px;
  margin-bottom: 16px;
}
.g43-comment-login-prompt__title { font-weight: 800; margin: 0 0 6px; }
.g43-comment-login-prompt__text { margin: 0 0 14px; color: var(--g43-muted, #94a3b8); font-size: .875rem; }
.g43-comment-login-prompt__footer { margin: 12px 0 0; color: var(--g43-muted, #94a3b8); font-size: .85rem; }
.g43-comment-login-prompt__footer a { color: var(--g43-play, #c8f542); font-weight: 700; }
.g43-comment-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  border-radius: 10px;
  margin-bottom: 16px;
}
.g43-comment-form-head { display: flex; align-items: center; gap: 10px; }
.g43-comment-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g43-play, #c8f542), #a8d12e);
  color: var(--g43-play-ink, #0b0e13);
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.g43-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g43-rating-input { display: flex; gap: 2px; }
.g43-rating-star {
  width: 36px; height: 36px;
  color: var(--g43-star-off, #3d4656);
  font-size: 1.25rem;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.g43-rating-star.active { color: var(--g43-star, #ffb020); }
.g43-comment-textarea {
  width: 100%; min-height: 96px; resize: vertical;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--g43-line, rgba(255,255,255,.1));
  background: var(--g43-elev, #1c2433); color: var(--g43-ink, #f4f7fb);
  font: inherit;
}
.g43-comment-textarea:focus {
  outline: none;
  border-color: rgba(200, 245, 66, 0.55);
}
.g43-comment-list { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.g43-comment-item {
  display: flex; gap: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--g43-line, rgba(255,255,255,.08));
  border-radius: 10px;
}
.g43-comment-meta { flex: 1; min-width: 0; }
.g43-comment-meta-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.g43-comment-name { font-weight: 800; color: var(--g43-ink, #f4f7fb); }
.g43-comment-time { font-size: .75rem; color: var(--g43-muted, #94a3b8); }
.g43-comment-rating { display: inline-flex; gap: 1px; color: var(--g43-star, #ffb020); margin-left: auto; }
.g43-comment-star { color: var(--g43-star-off, #3d4656); }
.g43-comment-star.is-on { color: var(--g43-star, #ffb020); }
.g43-comment-body { font-size: .9rem; line-height: 1.6; color: var(--g43-muted, #94a3b8); word-break: break-word; }
.g43-comments-empty {
  color: var(--g43-muted, #94a3b8);
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--g43-line, rgba(255,255,255,.12));
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}
#commentsActions,
.g43-comment-actions { margin-top: 14px; display: flex; justify-content: center; }

@media (max-width: 959px) {
  .g43-play-side { order: -1; }
  .g43-detail-layout { display: flex; flex-direction: column; }
}
