/* ✅ 安裝 G FUN 彈窗樣式（獨立命名版） */
.install-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.install-modal-wrapper.active {
  display: flex;
}

.install-modal-inner {
  background: #1a1a1a;
  border: 2px solid gold;
  border-radius: 16px;
  padding: 20px;
  width: 90vw;                  /* ✅ 改為相對寬度 */
  max-width: 420px;             /* ✅ 設定最大寬度（視窗內可容納） */
  max-height: 80vh;             /* ✅ 限制最大高度 */
  overflow-y: auto;             /* ✅ 過高時出現滾動條 */
  color: white;
  text-align: center;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  box-sizing: border-box;       /* ✅ 確保 padding 不影響寬度計算 */
}

.install-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: gold;
  cursor: pointer;
}

.install-btn {
  margin-top: 20px;
  background: gold;
  color: black;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.install-btn:hover {
  background: #ffe066;
}

.install-info {
  margin-top: 12px;
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* ✅ G FUN 自訂浮動提示訊息框 */
.gfun-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  border: 2px solid gold;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gfun-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}



@media screen and (max-width: 480px) {
  .install-modal-inner {
    padding: 16px;
    font-size: 0.95rem;
  }

  .install-modal-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }
}