/* What every demo shares: the pointer's hand, and the gate (gate.js). The player under its
   device is film.css's .dctl (scrub.js). */

/* Pointers get a hand over everything a demo answers to. */
[data-game], [data-hero], [data-act], [data-part], .card, .vrow, .zones > div { cursor: pointer; }

/* The demo waits for the visitor (gate.js): a veil over the device, one white
   button that springs in, the app's play-button halo breathing out of it
   (ChannelScreen's playing mark: 1 to 1.8, 0.8 to 0). Its bar waits, its room kept. */
.gate { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; border-radius: inherit;
  background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity .35s; }
.gate.bare { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.gate.bare .trycta { pointer-events: auto; }
.gate.open { opacity: 0; pointer-events: none; }
.trycta { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px 0 25px; border: 0; border-radius: 28px;
  background: #f5f5f7; color: #000; font: inherit; font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .55); transform: scale(.7); opacity: 0; -webkit-tap-highlight-color: transparent; }
.trycta svg { width: 15px; height: 15px; flex: none; }
.gate.seen .trycta { animation: trypop .7s cubic-bezier(.2, 1.4, .4, 1) .2s forwards; }
@keyframes trypop { to { transform: none; opacity: 1; } }
.trycta::before, .trycta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); opacity: 0; pointer-events: none; }
.gate.seen .trycta::before { animation: tryhalo 2.4s cubic-bezier(.2, .6, .3, 1) 1s infinite; }
.gate.seen .trycta::after { animation: tryhalo 2.4s cubic-bezier(.2, .6, .3, 1) 2.2s infinite; }
@keyframes tryhalo { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45, 1.8); opacity: 0; } }
.trycta:active { filter: brightness(.9); }
.gated .ctl { opacity: 0; pointer-events: none; }
.ctl { transition: opacity .45s .15s; }
@media (max-width: 734px) {
  .trycta { height: 46px; padding: 0 22px 0 18px; font-size: 17px; gap: 9px; }
  .trycta svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .trycta { transform: none; opacity: 1; }
  .gate.seen .trycta, .gate.seen .trycta::before, .gate.seen .trycta::after { animation: none; }
}
