@media (max-width: 767px) {
    .hero-slider-1 { aspect-ratio: 5/4; }
    .hero-slider-1 .flex-viewport, 
    .hero-slider-1 .slides,
    .hero-slider-1 .js-fullscreen-height { height:100%!important; }
    .hero-slider-1 .slide-bg-image { height:120%; background-size: contain; }
}
.hero-slider-1 ul.slides > li.dark-color {background-color: rgb(222, 236, 242);}
.hero-slider-1 ul.slides > li.light-color {background-color: rgb(19, 48, 73);}



/* 桌機：固定一個舒適比例的遊戲框 */
.pipe-game-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;          /* 避免太寬，維持遊戲畫質 */
  aspect-ratio: 860 / 620;   /* 跟你的遊戲原始設計接近 */
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: #000;
}

/* 讓 iframe 完整填滿這個框 */
.pipe-game-frame-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 手機：高度拉高一點，讓遊戲畫面不要太矮 */
@media (max-width: 767px) {
  .pipe-game-frame-wrapper {
    max-width: 100%;       /* 滿版手機寬 */
    width: 100vw;
    aspect-ratio: 9 / 16;  /* 比較接近手機直立比例，可再依你感覺調 3/4、4/5 之類 */
    border-radius: 0.75rem;
  }
}
