/* Film stage: the demo full-frame (1440 x 900 by default), title cards and captions for the recorder. */
html, body { margin: 0; height: 100%; background: #0b0d12; overflow: hidden; }
body { font-family: "Chivo", system-ui, sans-serif; }
.stage { position: fixed; inset: 0; }
.stage .dm { position: absolute; inset: 0; margin: 0; border-radius: 0; box-shadow: none; }
.stage .dm__win { top: 64px; }
.stage .dmp { width: 330px; height: min(520px, calc(100% - 120px)); }
.stage .dm__hint { display: none !important; }
.stage .dm__cursor { width: 26px; height: 26px; }

/* title cards over a blurred desktop */
.film-card { position: absolute; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; color: #fff;
  background: rgb(8 10 16 / .62); backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.film-card.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.fc-line { margin: 0; font-size: 52px; font-weight: 500; letter-spacing: -0.03em; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.fc-line.is-on { opacity: 1; transform: none; }
.fc-line--bad { color: #ff8a7a; }
.fc-slot { position: relative; width: 640px; height: 84px; border-radius: 22px; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.fc-slot__label { position: absolute; left: 22px; top: -12px; padding: 2px 10px; border-radius: 99px; background: #2f5ff5; font-size: 15px; font-weight: 500; }
.fc-item { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); font: 500 28px/1.2 "Chivo", sans-serif; text-align: left; white-space: nowrap;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .6s ease, filter .6s ease; }
.fc-b { opacity: 0; transform: translateY(-160%); }
.film-card.swap .fc-a { opacity: 0; transform: translateY(120%) scale(.94); filter: blur(4px); }
.film-card.swap .fc-b { opacity: 1; transform: translateY(-50%); }
.fc-big { margin: 0; font-size: 76px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.fc-sub { margin: 0; font-size: 30px; color: rgb(255 255 255 / .78); max-width: 26ch; line-height: 1.3; }
.film-card img { width: 120px; height: 120px; }

/* the caption under each chapter */
.film-cap { position: absolute; z-index: 30; left: 50%; bottom: 88px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 14px;
  border-radius: 99px; background: rgb(12 14 20 / .82); color: #fff; font-size: 26px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7);
  opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.film-cap.is-on { opacity: 1; transform: translate(-50%, 0); }
.film-cap__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #2f5ff5; font-size: 20px; }
.dm[data-os="win"] ~ .film-cap { bottom: 96px; }
.film-os { position: absolute; z-index: 30; right: 28px; top: 44px; padding: 8px 14px; border-radius: 99px; background: rgb(12 14 20 / .7); color: #fff; font-size: 18px; font-weight: 500; opacity: 0; transition: opacity .4s; }
.film-os.is-on { opacity: 1; }
body.no-cap .film-cap, body.no-cap .film-os { display: none; }

.stage .dm__keys { bottom: auto; top: 38%; }
.stage .dm__keys kbd { min-width: 64px; height: 64px; font-size: 26px; border-radius: 14px; }
