/* The Quay demonstration only (play/quay/). The site's own styles.css is not changed by it. */
.quay { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0c1116; overflow: hidden; border-radius: 6px; }
.quay-still, .quay-view, .quay-labels, .quay-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.quay-still { object-fit: cover; display: block; }
.quay-view iframe { width: 100%; height: 100%; border: 0; display: block; }
.quay-labels { pointer-events: none; }
.quay-label { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 3px; background: rgba(12, 17, 22, .78); color: #f4f2ec; font-size: .8125rem; white-space: nowrap; will-change: transform; }
.quay-label span { margin-left: 6px; opacity: .72; font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.quay-label.behind { opacity: .45; }
.quay-over { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: linear-gradient(rgba(12, 17, 22, 0), rgba(12, 17, 22, .35)); }
.quay[data-state="live"] .quay-still { display: none; }
.quay[data-state="live"][data-started="1"] .quay-over { display: none; }
/* While the scene loads, and while it waits for the visitor's click, the page's own plate covers the frame: the engine's own cover
   (its checks, the name of the graphics card) is never shown. The plate lets the click through, because the browser starts sound and
   the pointer only for a click inside the scene. */
.quay[data-state="loading"] .quay-over, .quay[data-state="live"][data-started="0"] .quay-over {
  background: linear-gradient(rgba(12, 17, 22, .62), rgba(12, 17, 22, .82)), #0c1116 url("/play/quay/still.jpg") center / cover no-repeat;
}
.quay[data-state="live"][data-started="0"] .quay-over { pointer-events: none; }
.quay[data-state="still"] .quay-view, .quay[data-state="pictures"] .quay-view { display: none; }
.quay[data-state="loading"] #quay-enter, .quay[data-state="live"] #quay-enter, .quay[data-state="pictures"] #quay-enter { display: none; }
.quay-note { margin: 0; color: #f4f2ec; max-width: 52ch; text-shadow: 0 1px 2px #000; }
.quay-progress { width: min(360px, 80%); height: 6px; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; }
.quay-progress span { display: block; height: 100%; width: 0; background: #f4f2ec; transition: width .3s linear; }
/* Nothing has been counted yet: a bar that moves without claiming a number */
.quay-progress.indeterminate span { width: 35%; transition: none; animation: quay-sweep 1.4s ease-in-out infinite alternate; }
@keyframes quay-sweep { from { transform: translateX(0); } to { transform: translateX(185%); } }
@media (prefers-reduced-motion: reduce) { .quay-progress.indeterminate span { width: 100%; opacity: .4; animation: none; } }
.quay-meta { margin: 0; min-height: 1.2em; color: #f4f2ec; opacity: .8; font-size: .875rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.quay-play { cursor: pointer; font-size: 1.125rem; }
.quay-play[hidden] { display: none; }
.quay-leave { position: absolute; top: 12px; right: 12px; }
.quay-card { position: absolute; left: 16px; bottom: 16px; max-width: 46ch; padding: 10px 14px; background: rgba(12, 17, 22, .82); color: #f4f2ec; border-radius: 4px; }
.quay-card p { margin: 0; }
.quay-who { font-weight: 600; }
.quay-keys { margin-top: .75rem; font-size: .875rem; }
.quay-credits { margin-top: 2rem; font-size: .875rem; max-width: 70ch; }
.quay-credits summary { cursor: pointer; }
