/* ==========================================================================
   Yukickers Official Website - Experimental View Standalone Styles (Vanilla CSS)
   ========================================================================== */

:root {
  --exp-dark-bg: rgba(255, 245, 248, 0.9);
  --exp-pink-neon: #ff85a2;
  --exp-pink-glow: rgba(255, 133, 162, 0.3);
  --exp-gold-neon: #ffaa00;
  --exp-gold-glow: rgba(255, 170, 0, 0.3);
  --exp-card-bg: rgba(255, 255, 255, 0.95);
}

/* Base View Container (Fullscreen Page Mode - Perfectly harmonized with Yukickers milky pink theme) */
.experimental-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* 本サイトのメインカラーである可愛いミルキーピンクに完全に調和する優しいグラデーション */
  background: radial-gradient(circle at 50% 30%, #fff5f8 0%, #ffeaf0 100%);
  z-index: 99999;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  color: var(--text-main); /* #5d3a4b */
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(1.02); filter: blur(8px); }
  to { opacity: 1; transform: scale(1.0); filter: blur(0); }
}

/* Page Exit Animation Class */
.experimental-view.fade-out {
  animation: pageFadeOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeOut {
  from { opacity: 1; transform: scale(1.0); filter: blur(0); }
  to { opacity: 0; transform: scale(0.98); filter: blur(8px); }
}

/* Header bar for fullscreen page */
.experimental-page-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 133, 162, 0.2);
  z-index: 10;
  flex-shrink: 0;
}

.exp-back-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--pink-main);
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-japanese);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 133, 162, 0.1);
}

.exp-back-btn:hover {
  background: var(--pink-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px var(--pink-glow);
  transform: translateX(-3px);
}

.exp-page-title {
  text-align: center;
}

.exp-page-title h2 {
  font-family: var(--font-pop), var(--font-japanese), sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-main);
  margin: 0;
}

.exp-page-title h2 .neon-pink-text {
  color: var(--pink-main);
  text-shadow: 0 0 8px var(--pink-glow);
}

.exp-page-title p {
  margin: 5px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-japanese);
  letter-spacing: 1px;
}

.header-right-spacer {
  width: 100px;
}

/* Gravity Bubbles Stage Wrapper */
.gravity-bubbles-wrapper {
  width: 100%;
  max-width: 1200px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: calc(100vh - 120px);
}

.bubble-canvas-container {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* パステルに調和する半透明ホワイト */
  border: 2px solid var(--pink-main);
  border-radius: 25px;
  box-shadow: inset 0 0 30px rgba(255, 133, 162, 0.05), 0 15px 35px rgba(255, 133, 162, 0.08);
  overflow: hidden;
  position: relative;
}

#bubble-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.bubble-instruction {
  font-family: var(--font-japanese);
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 133, 162, 0.25);
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 133, 162, 0.05);
  max-width: 800px;
  z-index: 10;
  flex-shrink: 0;
}

.bubble-instruction i {
  color: var(--pink-main);
  margin-right: 5px;
}

/* ==========================================================================
   Experimental Overlay Card Styling (ミルキーパステルピンク版)
   ========================================================================== */
.experimental-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 245, 248, 0.6);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.experimental-popup-card {
  width: 290px;
  background: rgba(255, 255, 255, 0.98);
  border: 3px solid var(--pink-main);
  border-radius: 25px;
  box-shadow: 0 0 25px rgba(255, 133, 162, 0.2), 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  animation: popCardIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popCardIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to { transform: scale(1.0) translateY(0); opacity: 1; }
}

/* Close button for popup card */
.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 133, 162, 0.4);
  color: var(--text-main);
  font-size: 1.0rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  z-index: 10;
}

.popup-close-btn:hover {
  background: var(--pink-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 10px var(--pink-glow);
  transform: rotate(90deg);
}

/* Card details */
.popup-card-inner {
  display: flex;
  flex-direction: column;
}

.popup-image-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-status-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
}

.popup-status-badge.live {
  background: var(--pink-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px var(--pink-glow);
  animation: liveLabelPulse 1.5s infinite;
}

.popup-info {
  padding: 18px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 245, 248, 0.99));
  border-top: 1px solid rgba(255, 133, 162, 0.2);
}

.popup-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.popup-name {
  font-family: var(--font-round), var(--font-japanese), sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
}

.popup-username {
  font-size: 0.8rem;
  color: var(--pink-main);
  margin: 0 0 12px;
}

.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.popup-btn {
  flex-grow: 1;
  padding: 10px;
  border-radius: 12px;
  font-family: var(--font-japanese);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  text-decoration: none;
}

.popup-btn-kick {
  background: linear-gradient(135deg, var(--pink-main), #ff6b8b);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 133, 162, 0.25);
}

.popup-btn-kick:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 133, 162, 0.45);
}

.popup-btn-x {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 133, 162, 0.3);
  color: var(--text-main);
}

.popup-btn-x:hover {
  background: rgba(255, 133, 162, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   Standalone Experimental Toggle Button & Layout Styles
   ========================================================================== */
.members-intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto 50px;
  width: 100%;
}

.experimental-standalone-trigger {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  justify-content: center;
}

/* Override existing margins for better layout inside flex container */
.members-intro-container .member-intro-box {
  margin: 0;
  flex-grow: 1;
  max-width: 720px;
  text-align: center;
}

/* 左右対称レイアウトにして説明文を完全に中央寄せするためのダミースペーサー */
.intro-layout-spacer {
  width: 140px;
  flex-shrink: 0;
  pointer-events: none;
}

/* Standalone Premium Button */
.experimental-trigger-btn {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 25px;
  border: 3px solid rgba(255, 133, 162, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(255, 133, 162, 0.08), inset 0 0 15px rgba(255, 133, 162, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.experimental-trigger-btn .btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  transition: transform 0.3s;
}

.experimental-trigger-btn .btn-content i {
  font-size: 2.2rem;
  color: var(--pink-main);
  text-shadow: 0 0 10px rgba(255, 133, 162, 0.3);
  transition: all 0.3s;
}

.experimental-trigger-btn .btn-content span {
  font-family: var(--font-round), var(--font-japanese), sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.experimental-trigger-btn .btn-content .btn-subtext {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pulsating Background Glow */
.experimental-trigger-btn .btn-glow-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 133, 162, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  animation: btnGlowPulse 2s infinite alternate;
}

@keyframes btnGlowPulse {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.15); opacity: 0.6; }
}

/* Standalone Button Active State */
.experimental-trigger-btn.active {
  border-color: var(--pink-main);
  box-shadow: 0 0 35px rgba(255, 133, 162, 0.4), inset 0 0 20px rgba(255, 133, 162, 0.1);
  transform: scale(1.05);
}

.experimental-trigger-btn.active .btn-glow-back {
  opacity: 1;
}

.experimental-trigger-btn.active .btn-content i {
  color: var(--pink-main);
  text-shadow: 0 0 15px var(--pink-main), 0 0 30px var(--pink-main);
  transform: scale(1.1) rotate(15deg);
  animation: flaskShake 1s infinite alternate;
}

@keyframes flaskShake {
  0% { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1.1) rotate(20deg); }
}

.experimental-trigger-btn:hover {
  border-color: var(--pink-main);
  box-shadow: 0 0 25px rgba(255, 133, 162, 0.25);
  transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .members-intro-container {
    flex-direction: column;
    gap: 20px;
    margin: 30px auto 40px;
  }

  .intro-layout-spacer {
    display: none;
  }

  .experimental-standalone-trigger {
    width: auto;
  }
  
  .experimental-trigger-btn {
    width: 240px;
    height: 70px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }
  
  .experimental-trigger-btn .btn-content {
    flex-direction: row;
    gap: 15px;
  }
  
  .experimental-trigger-btn .btn-content i {
    font-size: 1.6rem;
  }
  
  .experimental-trigger-btn .btn-content .btn-subtext {
    margin-left: 5px;
  }
}

@media (max-width: 768px) {
  .experimental-view {
    padding: 15px 10px;
  }
  
  .exp-page-title h2 {
    font-size: 1.3rem;
  }
  
  .exp-back-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .header-right-spacer {
    display: none;
  }
}

/* ==========================================================================
   Experimental View - Header Selector Styles (ミルキーパステルピンク版)
   ========================================================================== */
.exp-header-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.exp-mode-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 133, 162, 0.3);
  border-radius: 30px;
  padding: 3px;
  box-shadow: 0 4px 15px rgba(255, 133, 162, 0.05);
}

.mode-select-btn {
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 25px;
  font-family: var(--font-japanese);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.mode-select-btn i {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.mode-select-btn:hover {
  background: rgba(255, 133, 162, 0.1);
  color: var(--pink-main);
}

.mode-select-btn.active {
  background: var(--pink-main);
  color: #fff;
  box-shadow: 0 4px 12px var(--pink-glow);
}

.mode-select-btn.active i {
  color: #fff;
}

/* ==========================================================================
   3D Card Carousel Styling (メリーゴーランド立体3D表示)
   ========================================================================== */
.carousel-3d-wrapper {
  width: 100%;
  max-width: 1200px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.carousel-3d-stage-container {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 3D空間の奥行き（パースペクティブ）を1300pxにし、程よい立体奥行き感を演出 */
  perspective: 1300px;
  perspective-origin: 50% 28%;
  position: relative;
  touch-action: none; /* タッチデバイスでのドラッグ阻害を防ぐ */
  user-select: none;  /* テキスト選択を無効化 */
  transform-style: preserve-3d; /* 親子間での3D空間の完全な引き継ぎを保証 */
}

.carousel-3d-stage {
  width: 200px;
  height: 280px;
  position: relative;
  /* 子要素に3D空間を引き継ぐ */
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
  will-change: transform; /* GPUアクセラレーションを強制し、3D配置の崩れを防止 */
}

.carousel-3d-stage:active {
  cursor: grabbing;
}

/* 立体カード本体 */
.carousel-3d-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 280px;
  border-radius: 20px;
  border: 3px solid rgba(255, 133, 162, 0.25);
  /* 白背景から、パステル調の高級感あふれるガラス調ミルキーピンクグラデーションに強化 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 248, 0.96) 100%);
  box-sizing: border-box;
  overflow: hidden;
  /* パステルピンクの美しい浮遊シャドウをさらに滑らかに強化 */
  box-shadow: 0 10px 30px rgba(255, 133, 162, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-style: preserve-3d; /* カード内部の立体配置を保護 */
  will-change: transform;       /* 各カードの立体移動を個別に最適化 */
  backface-visibility: hidden;  /* 裏返ったカード（奥側のカード）を描画せず、前後の重なりをクリアにする */
  -webkit-backface-visibility: hidden; /* Safari等のモバイルブラウザ用互換プレフィックス */
  touch-action: none;           /* モバイルブラウザのスクロールによるポインターキャンセルを完全に防止 */
  transition: border-color 0.4s, box-shadow 0.4s, filter 0.5s, opacity 0.5s, visibility 0.5s, z-index 0.3s;
}

.carousel-3d-card.focused {
  border-color: var(--pink-main);
  /* 正面フォーカス時のピンクネオングロー影を圧倒的な高級ネオンに劇的強化 */
  box-shadow: 0 20px 45px rgba(255, 133, 162, 0.42), 0 0 20px rgba(255, 133, 162, 0.25);
  filter: brightness(1.0);
}

.carousel-3d-card.unfocused {
  filter: brightness(0.65);
  opacity: 0.75;
}

.carousel-3d-card:hover {
  border-color: var(--pink-main);
  box-shadow: 0 0 20px rgba(255, 133, 162, 0.3);
}

/* カードインナー */
.carousel-3d-img-wrap {
  width: 100%;
  height: 195px;
  position: relative;
  overflow: hidden;
  background: #ffeaf0;
}

.carousel-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.carousel-3d-card:hover .carousel-3d-img {
  transform: scale(1.06);
}

.carousel-3d-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
}

.carousel-3d-badge.live {
  background: var(--pink-main);
  color: #fff;
  box-shadow: 0 0 8px var(--pink-glow);
  animation: liveLabelPulse 1.5s infinite;
}

.carousel-3d-info {
  padding: 10px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to bottom, #ffffff, #fffafd);
  border-top: 1px solid rgba(255, 133, 162, 0.15);
}

.carousel-3d-name {
  font-family: var(--font-round), var(--font-japanese), sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 2px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-3d-username {
  font-size: 0.7rem;
  color: var(--pink-main);
  margin: 0;
  text-align: center;
}

/* コントロールUI */
.carousel-3d-controls {
  display: flex;
  gap: 30px;
  margin-bottom: 5px;
  z-index: 10;
  flex-shrink: 0;
}

.carousel-3d-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--pink-main);
  color: var(--pink-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(255, 133, 162, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-3d-btn:hover {
  background: var(--pink-main);
  color: #fff;
  box-shadow: 0 0 15px var(--pink-glow);
  transform: scale(1.1);
}

.carousel-3d-btn:active {
  transform: scale(0.95);
}

.carousel-3d-instruction {
  font-family: var(--font-japanese);
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 133, 162, 0.25);
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 133, 162, 0.05);
  max-width: 800px;
  z-index: 10;
  flex-shrink: 0;
}

.carousel-3d-instruction i {
  color: var(--pink-main);
  margin-right: 5px;
}

/* ==========================================================================
   Carousel Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
  .carousel-3d-stage-container {
    perspective: 900px;
    perspective-origin: 50% 30%;
  }

  .carousel-3d-stage {
    width: 140px;
    height: 200px;
  }

  .carousel-3d-card {
    width: 140px;
    height: 200px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(255, 133, 162, 0.18), 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .carousel-3d-img-wrap {
    height: 140px;
  }

  .carousel-3d-badge {
    top: 6px;
    left: 6px;
    padding: 2px 5px;
    font-size: 0.5rem;
  }

  .carousel-3d-info {
    padding: 6px 8px;
  }

  .carousel-3d-name {
    font-size: 0.8rem;
  }

  .carousel-3d-username {
    font-size: 0.6rem;
  }

  .carousel-3d-btn {
    width: 42px;
    height: 42px;
    font-size: 1.0rem;
  }
}

