/* BET cinematic launch — isolated from the store's existing animation system. */
:root { --bet-intro-bg: #1F0103; --bet-intro-champagne: #C5A58C; --bet-intro-duration: 3200ms; }
.bet-intro {
  position: fixed; inset: 0; z-index: 9999;
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden; isolation: isolate;
  background: transparent; cursor: pointer; touch-action: manipulation;
}
.bet-intro[hidden], html.bet-intro-seen .bet-intro { display: none !important; }
.bet-intro-backdrop { position: absolute; inset: 0; background: var(--bet-intro-bg); }
.bet-intro.is-playing .bet-intro-backdrop { animation: bet-intro-backdrop var(--bet-intro-duration) both; }
@keyframes bet-intro-backdrop { 0%, 56.25% { opacity: 1; } 56.3%, 100% { opacity: 0; } }
.bet-intro-panel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-color: var(--bet-intro-bg);
  background-image: url('./assets/intro-bet.webp');
  background-size: cover; background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  backface-visibility: hidden;
  /* Both halves keep identical full-viewport background alignment. */
}
.bet-intro-left { clip-path: inset(0 50% 0 0); }
.bet-intro-right { clip-path: inset(0 0 0 50%); }
.bet-intro-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  transform: translateX(-50%); opacity: 0;
  background: var(--bet-intro-champagne);
  box-shadow: 0 0 9px 2px rgba(197,165,140,.38);
  pointer-events: none;
}
.bet-intro-sweep {
  position: absolute; inset: -35%; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, transparent 36%, rgba(197,165,140,.10) 50%, transparent 64%);
  transform: translateX(35%);
}
.bet-intro.is-playing .bet-intro-left { animation: bet-intro-open-left var(--bet-intro-duration) both; }
.bet-intro.is-playing .bet-intro-right { animation: bet-intro-open-right var(--bet-intro-duration) both; }
.bet-intro.is-playing .bet-intro-seam { animation: bet-intro-line var(--bet-intro-duration) both; }
.bet-intro.is-playing .bet-intro-sweep { animation: bet-intro-glint var(--bet-intro-duration) both; }
@keyframes bet-intro-open-left {
  0% { opacity: 0; transform: scale(1.06); animation-timing-function: ease-out; }
  25% { opacity: 1; transform: scale(1); }
  56.25% { opacity: 1; transform: scale(1); animation-timing-function: cubic-bezier(.77,0,.18,1); }
  87.5%, 100% { opacity: 1; transform: translateX(-100%); }
}
@keyframes bet-intro-open-right {
  0% { opacity: 0; transform: scale(1.06); animation-timing-function: ease-out; }
  25% { opacity: 1; transform: scale(1); }
  56.25% { opacity: 1; transform: scale(1); animation-timing-function: cubic-bezier(.77,0,.18,1); }
  87.5%, 100% { opacity: 1; transform: translateX(100%); }
}
@keyframes bet-intro-line {
  0%, 55% { opacity: 0; }
  59%, 70% { opacity: .9; }
  87.5%, 100% { opacity: 0; }
}
@keyframes bet-intro-glint {
  0%, 25%, 55% { opacity: 0; transform: translateX(40%); }
  31% { opacity: .6; }
  55% { opacity: 0; transform: translateX(-40%); }
  100% { opacity: 0; }
}
/* Accessible: no moving panels; release the store after a 300ms fade. */
@media (prefers-reduced-motion: reduce) {
  .bet-intro *, .bet-intro.is-playing * { animation: none !important; transition: none !important; }
  .bet-intro-panel { opacity: 1; transform: none; }
  .bet-intro.is-reducing { animation: bet-intro-quiet 300ms ease-out both !important; }
  @keyframes bet-intro-quiet { to { opacity: 0; } }
}
/* Preserve the desktop phone-sized store invitation and add the requested QR placeholder. */
.bet-intro-qr-placeholder { width: 104px; height: 104px; border: 1px dashed #D9C8C3; margin: 20px auto 0; display: grid; place-items: center; color: #6D5D5E; font: 12px Arial, sans-serif; text-align: center; }
