/*
 * friend-code-help.css
 * ตัวดูรูปตัวอย่าง "วิธีดู Friend Code" แบบเปิดในหน้า
 *
 * ทำไมต้องมีไฟล์นี้: ของเดิมลิงก์ไปที่รูปตรง ๆ ด้วย target="_blank" ซึ่ง in-app browser
 * (LINE / Facebook) มักไม่เปิดให้ กดแล้วเงียบสนิท — เปลี่ยนมาเปิดทับในหน้าเดียวกันแทน
 *
 * ใช้ prefix `gp-fchelp-` ของตัวเองทั้งหมด ไม่ทับ class ใด ๆ ใน genplay-member.css (protected)
 */

.gp-fchelp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
}

.gp-fchelp-overlay[hidden] {
  display: none;
}

.gp-fchelp-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(920px, 100%);
  max-height: 100%;
}

.gp-fchelp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gp-fchelp-title {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.gp-fchelp-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #62738a;
  border-radius: 999px;
  background: rgba(24, 32, 44, 0.9);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.gp-fchelp-close:hover {
  border-color: #ffffff;
}

.gp-fchelp-close:focus-visible {
  outline: 2px solid #4b89c9;
  outline-offset: 2px;
}

.gp-fchelp-img {
  display: block;
  max-width: 100%;
  /* กันรูปล้นจอแนวตั้ง เผื่อหน้าจอมือถือแนวนอน — 96px คือที่เผื่อไว้ให้แถบหัวด้านบน */
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 8px;
  background: #0f141b;
}

.gp-fchelp-hint {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  font-size: 13px;
  color: #829ab1;
  text-align: center;
}

@media (max-width: 640px) {
  .gp-fchelp-overlay {
    padding: 12px;
  }

  .gp-fchelp-img {
    max-height: calc(100vh - 80px);
  }
}
