@charset "UTF-8";

/* --- 輪播圖區塊 --- */
@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; 
    background-repeat: no-repeat;
    background-position: center; /* 確保 JS 標誌永遠在正中央 */
  }
}

/* 設定輪播圖背景底色，避免 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: 2rem auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: #000;
  /* 讓載入過程更平滑 */
  transition: transform 0.3s ease;
}

.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; 
    border-radius: 0.75rem;
  }
}