/* Web 版だけの見た目（真ん中の案内のカード。src/endcard.js） */
/* ストアのページを開くボタン（アプリのボタンと同じ紫） */
.vamweb-endcard-store {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: #4a35b8;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}
.vamweb-endcard-store:hover { background: #5b45d6; }

/* 真ん中に出すカード（終わりの案内・書き出しの案内） */
.vamweb-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}
.vamweb-popup-card {
  position: relative;
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 20px;
  border-radius: 12px;
  background: #1d2027;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: vamweb-pop 0.16s ease-out;
}
@keyframes vamweb-pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.vamweb-popup-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #000;
}
.vamweb-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}
.vamweb-popup-close:hover { background: rgba(0, 0, 0, 0.8); }

/* カードの画像の下の一言（デスクトップ版の紹介で、押した操作に合わせる） */
.vamweb-popup-caption {
  margin: 0;
  padding: 0 8px;
  color: #e8eaef;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

/* 前回のフォルダを開き直すボタン（ツリーの上。src/restore.js） */
.vamweb-restore {
  display: block;
  margin: 8px 10px;
  padding: 8px 12px;
  width: calc(100% - 20px);
  border: 1px solid #4a35b8;
  border-radius: 6px;
  background: rgba(74, 53, 184, 0.18);
  color: #e8eaef;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vamweb-restore:hover { background: rgba(74, 53, 184, 0.35); }

/* 画像と、画像の空きに重ねるボタンの箱 */
.vamweb-popup-frame {
  position: relative;
  width: 100%;
}
.vamweb-endcard-store.in-image {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 22px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* デモ動画を読み込んでいる間の札（demo-video.js）。画面の上のまん中 */
.vamweb-demo-banner {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 8px 16px;
  border: 1px solid #4a35b8;
  border-radius: 6px;
  background: rgba(20, 16, 40, 0.92);
  color: #e8eaef;
  font-size: 13px;
  pointer-events: none;
}

/* 案内（#welcome）に足す「デモ動画で試す」（demo-video.js）。「フォルダを選ぶ」の下に、控えめな枠のボタンで */
.vamweb-demo-btn {
  display: block;
  margin: 12px auto 0;
  padding: 8px 18px;
  background: none;
  border: 1px solid #7c5cff;
  border-radius: 6px;
  color: #e8eaef;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.vamweb-demo-btn:hover { background: rgba(124, 92, 255, 0.18); }

/* 虫眼鏡（coach.js）。右上の「表示」と ⚙ を大きく映す。縁は赤 */
.vamweb-coach { position: fixed; inset: 0; z-index: 10001; pointer-events: none; }
.vamweb-coach-ring {
  position: fixed;
  border: 2px solid #ff3b3b;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.25), 0 0 14px rgba(255, 59, 59, 0.6);
}
.vamweb-coach-line { position: fixed; height: 2px; background: #ff3b3b; transform-origin: 0 50%; }
.vamweb-coach-lens {
  position: fixed;
  border-radius: 50%;
  border: 5px solid #ff3b3b;
  background: #2a2a2e;
  box-shadow: 0 0 0 6px rgba(255, 59, 59, 0.22), 0 0 28px rgba(255, 59, 59, 0.55), 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  pointer-events: auto;
}
.vamweb-coach-stage { position: absolute; transform-origin: 0 0; }
